7d7be3a05a71deb2ef8de738842af69764312228
[gnulib.git] / ChangeLog
1 2011-05-22  Bruno Haible  <bruno@clisp.org>
2
3         wctype: Move AC_LIBOBJ invocations to module description.
4         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
5         invocation from here...
6         * modules/wctype (configure.ac): ... to here.
7         (Depends-on): Update conditions.
8
9 2011-05-22  Bruno Haible  <bruno@clisp.org>
10
11         wctrans: Move AC_LIBOBJ invocations to module description.
12         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
13         invocation from here...
14         * modules/wctrans (configure.ac): ... to here.
15
16 2011-05-22  Bruno Haible  <bruno@clisp.org>
17
18         wctomb: Move AC_LIBOBJ invocations to module description.
19         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
20         invocations from here...
21         * modules/wctomb (configure.ac): ... to here.
22
23 2011-05-22  Bruno Haible  <bruno@clisp.org>
24
25         wctob: Move AC_LIBOBJ invocations to module description.
26         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
27         gl_PREREQ_WCTOB invocations from here...
28         * modules/wctob (configure.ac): ... to here.
29         (Depends-on): Update conditions.
30
31 2011-05-22  Bruno Haible  <bruno@clisp.org>
32
33         wcsxfrm: Move AC_LIBOBJ invocations to module description.
34         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
35         here...
36         * modules/wcsxfrm (configure.ac): ... to here.
37
38 2011-05-22  Bruno Haible  <bruno@clisp.org>
39
40         wcstok: Move AC_LIBOBJ invocations to module description.
41         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
42         * modules/wcstok (configure.ac): ... to here.
43
44 2011-05-22  Bruno Haible  <bruno@clisp.org>
45
46         wcsstr: Move AC_LIBOBJ invocations to module description.
47         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
48         * modules/wcsstr (configure.ac): ... to here.
49
50 2011-05-22  Bruno Haible  <bruno@clisp.org>
51
52         wcsspn: Move AC_LIBOBJ invocations to module description.
53         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
54         * modules/wcsspn (configure.ac): ... to here.
55
56 2011-05-22  Bruno Haible  <bruno@clisp.org>
57
58         wcsrtombs: Move AC_LIBOBJ invocations to module description.
59         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
60         gl_PREREQ_WCSRTOMBS invocations from here...
61         * modules/wcsrtombs (configure.ac): ... to here.
62
63 2011-05-22  Bruno Haible  <bruno@clisp.org>
64
65         wcsrchr: Move AC_LIBOBJ invocations to module description.
66         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
67         here...
68         * modules/wcsrchr (configure.ac): ... to here.
69
70 2011-05-22  Bruno Haible  <bruno@clisp.org>
71
72         wcspbrk: Move AC_LIBOBJ invocations to module description.
73         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
74         here...
75         * modules/wcspbrk (configure.ac): ... to here.
76
77 2011-05-22  Bruno Haible  <bruno@clisp.org>
78
79         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
80         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
81         gl_PREREQ_WCSNRTOMBS invocations from here...
82         * modules/wcsnrtombs (configure.ac): ... to here.
83
84 2011-05-22  Bruno Haible  <bruno@clisp.org>
85
86         wcsnlen: Move AC_LIBOBJ invocations to module description.
87         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
88         here...
89         * modules/wcsnlen (configure.ac): ... to here.
90
91 2011-05-22  Bruno Haible  <bruno@clisp.org>
92
93         wcsncpy: Move AC_LIBOBJ invocations to module description.
94         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
95         here...
96         * modules/wcsncpy (configure.ac): ... to here.
97
98 2011-05-22  Bruno Haible  <bruno@clisp.org>
99
100         wcsncmp: Move AC_LIBOBJ invocations to module description.
101         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
102         here...
103         * modules/wcsncmp (configure.ac): ... to here.
104
105 2011-05-22  Bruno Haible  <bruno@clisp.org>
106
107         wcsncat: Move AC_LIBOBJ invocations to module description.
108         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
109         here...
110         * modules/wcsncat (configure.ac): ... to here.
111
112 2011-05-22  Bruno Haible  <bruno@clisp.org>
113
114         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
115         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
116         from here...
117         * modules/wcsncasecmp (configure.ac): ... to here.
118
119 2011-05-22  Bruno Haible  <bruno@clisp.org>
120
121         wcslen: Move AC_LIBOBJ invocations to module description.
122         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
123         * modules/wcslen (configure.ac): ... to here.
124
125 2011-05-22  Bruno Haible  <bruno@clisp.org>
126
127         wcsdup: Move AC_LIBOBJ invocations to module description.
128         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
129         * modules/wcsdup (configure.ac): ... to here.
130
131 2011-05-22  Bruno Haible  <bruno@clisp.org>
132
133         wcscspn: Move AC_LIBOBJ invocations to module description.
134         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
135         here...
136         * modules/wcscspn (configure.ac): ... to here.
137
138 2011-05-22  Bruno Haible  <bruno@clisp.org>
139
140         wcscpy: Move AC_LIBOBJ invocations to module description.
141         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
142         * modules/wcscpy (configure.ac): ... to here.
143
144 2011-05-22  Bruno Haible  <bruno@clisp.org>
145
146         wcscoll: Move AC_LIBOBJ invocations to module description.
147         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
148         here...
149         * modules/wcscoll (configure.ac): ... to here.
150
151 2011-05-22  Bruno Haible  <bruno@clisp.org>
152
153         wcscmp: Move AC_LIBOBJ invocations to module description.
154         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
155         * modules/wcscmp (configure.ac): ... to here.
156
157 2011-05-22  Bruno Haible  <bruno@clisp.org>
158
159         wcschr: Move AC_LIBOBJ invocations to module description.
160         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
161         * modules/wcschr (configure.ac): ... to here.
162
163 2011-05-22  Bruno Haible  <bruno@clisp.org>
164
165         wcscat: Move AC_LIBOBJ invocations to module description.
166         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
167         * modules/wcscat (configure.ac): ... to here.
168
169 2011-05-22  Bruno Haible  <bruno@clisp.org>
170
171         wcscasecmp: Move AC_LIBOBJ invocations to module description.
172         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
173         here...
174         * modules/wcscasecmp (configure.ac): ... to here.
175
176 2011-05-22  Bruno Haible  <bruno@clisp.org>
177
178         wcrtomb: Move AC_LIBOBJ invocations to module description.
179         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
180         invocations from here...
181         * modules/wcrtomb (configure.ac): ... to here.
182
183 2011-05-22  Bruno Haible  <bruno@clisp.org>
184
185         wcpncpy: Move AC_LIBOBJ invocations to module description.
186         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
187         here...
188         * modules/wcpncpy (configure.ac): ... to here.
189
190 2011-05-22  Bruno Haible  <bruno@clisp.org>
191
192         wcpcpy: Move AC_LIBOBJ invocations to module description.
193         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
194         * modules/wcpcpy (configure.ac): ... to here.
195
196 2011-05-22  Bruno Haible  <bruno@clisp.org>
197
198         waitpid: Move AC_LIBOBJ invocations to module description.
199         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
200         invocation from here...
201         * modules/waitpid (configure.ac): ... to here.
202
203 2011-05-22  Bruno Haible  <bruno@clisp.org>
204
205         utimensat: Move AC_LIBOBJ invocations to module description.
206         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
207         here...
208         * modules/utimensat (configure.ac): ... to here.
209
210 2011-05-22  Bruno Haible  <bruno@clisp.org>
211
212         usleep: Move AC_LIBOBJ invocations to module description.
213         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
214         here...
215         * modules/usleep (configure.ac): ... to here.
216
217 2011-05-22  Bruno Haible  <bruno@clisp.org>
218
219         unlockpt: Move AC_LIBOBJ invocations to module description.
220         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
221         gl_PREREQ_UNLOCKPT invocations from here...
222         * modules/unlockpt (configure.ac): ... to here.
223
224 2011-05-22  Bruno Haible  <bruno@clisp.org>
225
226         unlink: Respect rules for use of AC_LIBOBJ.
227         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
228         * modules/unlink (configure.ac): ... to here.
229
230 2011-05-22  Bruno Haible  <bruno@clisp.org>
231
232         uname: Move AC_LIBOBJ invocations to module description.
233         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
234         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
235         here...
236         * modules/uname (configure.ac): ... to here.
237
238 2011-05-22  Bruno Haible  <bruno@clisp.org>
239
240         ttyname_r: Move AC_LIBOBJ invocations to module description.
241         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
242         gl_PREREQ_TTYNAME_R invocations from here...
243         * modules/ttyname_r (configure.ac): ... to here.
244
245 2011-05-22  Bruno Haible  <bruno@clisp.org>
246
247         tsearch: Move AC_LIBOBJ invocations to module description.
248         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
249         invocations from here...
250         * modules/tsearch (configure.ac): ... to here.
251
252 2011-05-22  Bruno Haible  <bruno@clisp.org>
253
254         towctrans: Move AC_LIBOBJ invocations to module description.
255         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
256         AC_LIBOBJ invocation from here...
257         * modules/towctrans (configure.ac): ... to here.
258
259 2011-05-22  Bruno Haible  <bruno@clisp.org>
260
261         tmpfile: Move AC_LIBOBJ invocations to module description.
262         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
263         invocations from here...
264         * modules/tmpfile (configure.ac): ... to here.
265
266 2011-05-22  Bruno Haible  <bruno@clisp.org>
267
268         times: Move AC_LIBOBJ invocations to module description.
269         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
270         * modules/times (configure.ac): ... to here.
271
272 2011-05-22  Bruno Haible  <bruno@clisp.org>
273
274         time_r: Move AC_LIBOBJ invocations to module description.
275         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
276         invocations from here...
277         * modules/time_r (configure.ac): ... to here.
278
279 2011-05-22  Bruno Haible  <bruno@clisp.org>
280
281         timegm: Move AC_LIBOBJ invocations to module description.
282         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
283         invocations from here...
284         * modules/timegm (configure.ac): ... to here.
285
286 2011-05-22  Bruno Haible  <bruno@clisp.org>
287
288         tcgetsid: Move AC_LIBOBJ invocations to module description.
289         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
290         and gl_PREREQ_TCGETSID invocations from here...
291         * modules/tcgetsid (configure.ac): ... to here.
292         (Depends-on): Update conditions.
293
294 2011-05-22  Bruno Haible  <bruno@clisp.org>
295
296         symlinkat: Move AC_LIBOBJ invocations to module description.
297         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
298         here...
299         * modules/symlinkat (configure.ac): ... to here.
300
301 2011-05-22  Bruno Haible  <bruno@clisp.org>
302
303         symlink: Move AC_LIBOBJ invocations to module description.
304         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
305         here...
306         * modules/symlink (configure.ac): ... to here.
307
308 2011-05-22  Bruno Haible  <bruno@clisp.org>
309
310         strverscmp: Move AC_LIBOBJ invocations to module description.
311         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
312         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
313         from here...
314         * modules/strverscmp (configure.ac): ... to here.
315
316 2011-05-22  Bruno Haible  <bruno@clisp.org>
317
318         strtok_r: Move AC_LIBOBJ invocations to module description.
319         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
320         and gl_PREREQ_STRTOK_R invocations from here...
321         * modules/strtok_r (configure.ac): ... to here.
322         (Depends-on): Update conditions.
323
324 2011-05-22  Bruno Haible  <bruno@clisp.org>
325
326         strtoumax: Move AC_LIBOBJ invocations to module description.
327         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
328         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
329         from here...
330         * modules/strtoumax (configure.ac): ... to here.
331
332 2011-05-22  Bruno Haible  <bruno@clisp.org>
333
334         strtoimax: Move AC_LIBOBJ invocations to module description.
335         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
336         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
337         from here...
338         * modules/strtoimax (configure.ac): ... to here.
339
340 2011-05-22  Bruno Haible  <bruno@clisp.org>
341
342         strtoull: Move AC_LIBOBJ invocations to module description.
343         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
344         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
345         from here...
346         * modules/strtoull (configure.ac): ... to here.
347
348 2011-05-22  Bruno Haible  <bruno@clisp.org>
349
350         strtoll: Move AC_LIBOBJ invocations to module description.
351         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
352         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
353         here...
354         * modules/strtoll (configure.ac): ... to here.
355
356 2011-05-22  Bruno Haible  <bruno@clisp.org>
357
358         strtoul: Move AC_LIBOBJ invocations to module description.
359         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
360         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
361         * modules/strtoul (configure.ac): ... to here.
362
363 2011-05-22  Bruno Haible  <bruno@clisp.org>
364
365         strtol: Move AC_LIBOBJ invocations to module description.
366         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
367         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
368         * modules/strtol (configure.ac): ... to here.
369
370 2011-05-22  Bruno Haible  <bruno@clisp.org>
371
372         strtod: Move AC_LIBOBJ invocations to module description.
373         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
374         invocations from here...
375         * modules/strtod (configure.ac): ... to here.
376
377 2011-05-22  Bruno Haible  <bruno@clisp.org>
378
379         strstr*: Move AC_LIBOBJ invocations to module description.
380         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
381         invocations from here...
382         * modules/strstr-simple (configure.ac): ... to here.
383         * modules/strstr (configure.ac): ... and here.
384
385 2011-05-22  Bruno Haible  <bruno@clisp.org>
386
387         strsignal: Move AC_LIBOBJ invocations to module description.
388         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
389         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
390         * modules/strsignal (configure.ac): ... to here.
391         (Depends-on): Update conditions.
392
393 2011-05-22  Bruno Haible  <bruno@clisp.org>
394
395         strsep: Move AC_LIBOBJ invocations to module description.
396         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
397         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
398         here...
399         * modules/strsep (configure.ac): ... to here.
400
401 2011-05-22  Bruno Haible  <bruno@clisp.org>
402
403         strptime: Move AC_LIBOBJ invocations to module description.
404         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
405         gl_PREREQ_STRPTIME invocations from here...
406         * modules/strptime (configure.ac): ... to here.
407
408 2011-05-22  Bruno Haible  <bruno@clisp.org>
409
410         strpbrk: Move AC_LIBOBJ invocations to module description.
411         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
412         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
413         here...
414         * modules/strpbrk (configure.ac): ... to here.
415
416 2011-05-22  Bruno Haible  <bruno@clisp.org>
417
418         strnlen: Move AC_LIBOBJ invocations to module description.
419         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
420         invocations from here...
421         * modules/strnlen (configure.ac): ... to here.
422
423 2011-05-22  Bruno Haible  <bruno@clisp.org>
424
425         strndup: Move AC_LIBOBJ invocations to module description.
426         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
427         invocations from here...
428         * modules/strndup (configure.ac): ... to here.
429         (Depends-on): Update conditions.
430
431 2011-05-22  Bruno Haible  <bruno@clisp.org>
432
433         strncat: Move AC_LIBOBJ invocations to module description.
434         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
435         invocations from here...
436         * modules/strncat (configure.ac): ... to here.
437
438 2011-05-22  Bruno Haible  <bruno@clisp.org>
439
440         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
441         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
442         invocations from here...
443         * modules/strdup (configure.ac): ... to here.
444         * modules/strdup-posix (configure.ac): ... and here.
445
446 2011-05-22  Bruno Haible  <bruno@clisp.org>
447
448         strcspn: Move AC_LIBOBJ invocations to module description.
449         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
450         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
451         here...
452         * modules/strcspn (configure.ac): ... to here.
453
454 2011-05-22  Bruno Haible  <bruno@clisp.org>
455
456         strchrnul: Move AC_LIBOBJ invocations to module description.
457         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
458         gl_PREREQ_STRCHRNUL invocations from here...
459         * modules/strchrnul (configure.ac): ... to here.
460
461 2011-05-22  Bruno Haible  <bruno@clisp.org>
462
463         strcasestr*: Move AC_LIBOBJ invocations to module description.
464         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
465         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
466         * modules/strcasestr-simple (configure.ac): ... to here.
467         * modules/strcasestr (configure.ac): ... and here.
468
469 2011-05-22  Bruno Haible  <bruno@clisp.org>
470
471         strcase: Move AC_LIBOBJ invocations to module description.
472         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
473         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
474         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
475         gl_PREREQ_STRNCASECMP invocations from here...
476         * modules/strcase (configure.ac): ... to here.
477
478 2011-05-22  Bruno Haible  <bruno@clisp.org>
479
480         stpncpy: Move AC_LIBOBJ invocations to module description.
481         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
482         here...
483         * modules/stpncpy (configure.ac): ... to here.
484
485 2011-05-22  Bruno Haible  <bruno@clisp.org>
486
487         stpcpy: Move AC_LIBOBJ invocations to module description.
488         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
489         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
490         here...
491         * modules/stpcpy (configure.ac): ... to here.
492
493 2011-05-21  Bruno Haible  <bruno@clisp.org>
494
495         stat: Move AC_LIBOBJ invocations to module description.
496         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
497         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
498         here...
499         * modules/stat (configure.ac): ... to here.
500
501 2011-05-21  Bruno Haible  <bruno@clisp.org>
502
503         sleep: Move AC_LIBOBJ invocations to module description.
504         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
505         * modules/sleep (configure.ac): ... to here.
506
507 2011-05-21  Bruno Haible  <bruno@clisp.org>
508
509         signbit: Move AC_LIBOBJ invocations to module description.
510         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
511         * modules/signbit (configure.ac): ... to here.
512
513 2011-05-21  Bruno Haible  <bruno@clisp.org>
514
515         sigprocmask: Move AC_LIBOBJ invocations to module description.
516         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
517         gl_PREREQ_SIGPROMASK invocations from here...
518         * modules/sigprocmask (configure.ac): ... to here.
519
520 2011-05-21  Bruno Haible  <bruno@clisp.org>
521
522         sigaction: Move AC_LIBOBJ invocations to module description.
523         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
524         gl_PREREQ_SIGACTION invocations from here...
525         * modules/sigaction (configure.ac): ... to here.
526
527 2011-05-21  Bruno Haible  <bruno@clisp.org>
528
529         sig2str: Move AC_LIBOBJ invocations to module description.
530         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
531         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
532         here...
533         * modules/sig2str (configure.ac): ... to here.
534
535 2011-05-21  Bruno Haible  <bruno@clisp.org>
536
537         setlocale: Move AC_LIBOBJ invocations to module description.
538         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
539         gl_PREREQ_SETLOCALE invocations from here...
540         * modules/setlocale (configure.ac): ... to here.
541
542 2011-05-21  Bruno Haible  <bruno@clisp.org>
543
544         unsetenv: Move AC_LIBOBJ invocations to module description.
545         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
546         and gl_PREREQ_UNSETENV invocations from here...
547         * modules/unsetenv (configure.ac): ... to here.
548         (Depends-on): Update.
549
550 2011-05-21  Bruno Haible  <bruno@clisp.org>
551
552         setenv: Move AC_LIBOBJ invocations to module description.
553         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
554         here...
555         * modules/setenv (configure.ac): ... to here.
556
557 2011-05-21  Bruno Haible  <bruno@clisp.org>
558
559         selinux-h: Move AC_LIBOBJ invocations to module description.
560         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
561         AC_LIBOBJ invocation from here...
562         * modules/selinux-h (configure.ac): ... to here.
563
564 2011-05-21  Bruno Haible  <bruno@clisp.org>
565
566         select: Respect rules for use of AC_LIBOBJ.
567         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
568         here...
569         * modules/select (configure.ac): ... to here.
570
571 2011-05-21  Bruno Haible  <bruno@clisp.org>
572
573         scandir: Move AC_LIBOBJ invocations to module description.
574         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
575         invocations from here...
576         * modules/scandir (configure.ac): ... to here.
577
578 2011-05-21  Bruno Haible  <bruno@clisp.org>
579
580         rpmatch: Move AC_LIBOBJ invocations to module description.
581         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
582         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
583         here...
584         * modules/rpmatch (configure.ac): ... to here.
585
586 2011-05-21  Bruno Haible  <bruno@clisp.org>
587
588         rmdir: Respect rules for use of AC_LIBOBJ.
589         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
590         * modules/rmdir (configure.ac): ... to here.
591
592 2011-05-21  Bruno Haible  <bruno@clisp.org>
593
594         renameat: Move AC_LIBOBJ invocations to module description.
595         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
596         here...
597         * modules/renameat (configure.ac): ... to here.
598
599 2011-05-21  Bruno Haible  <bruno@clisp.org>
600
601         rename: Respect rules for use of AC_LIBOBJ.
602         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
603         here...
604         * modules/rename (configure.ac): ... to here.
605
606 2011-05-21  Bruno Haible  <bruno@clisp.org>
607
608         remove: Move AC_LIBOBJ invocations to module description.
609         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
610         here...
611         * modules/remove (configure.ac): ... to here.
612
613 2011-05-21  Bruno Haible  <bruno@clisp.org>
614
615         relocatable-lib: Move AC_LIBOBJ invocations to module description.
616         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
617         macro.
618         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
619         * modules/relocatable-lib (configure.ac): ... to here.
620         * modules/relocatable-prog-wrapper (configure.ac): Invoke
621         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
622
623 2011-05-21  Bruno Haible  <bruno@clisp.org>
624
625         relocatable-prog: Move AC_LIBOBJ invocations to module description.
626         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
627         here...
628         * modules/relocatable-prog (configure.ac): ... to here.
629
630 2011-05-21  Bruno Haible  <bruno@clisp.org>
631
632         regex: Move AC_LIBOBJ invocations to module description.
633         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
634         invocations from here...
635         * modules/regex (configure.ac): ... to here.
636
637 2011-05-21  Bruno Haible  <bruno@clisp.org>
638
639         realloc-*: Move AC_LIBOBJ invocations to module description.
640         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
641         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
642         AC_LIBOBJ invocations from here...
643         * modules/realloc-gnu (configure.ac): ... to here.
644         * modules/realloc-posix (configure.ac): ... and here.
645
646 2011-05-21  Bruno Haible  <bruno@clisp.org>
647
648         readutmp: Move AC_LIBOBJ invocations to module description.
649         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
650         * modules/readutmp (configure.ac): ... to here.
651
652 2011-05-21  Bruno Haible  <bruno@clisp.org>
653
654         readlinkat: Move AC_LIBOBJ invocations to module description.
655         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
656         here...
657         * modules/readlinkat (configure.ac): ... to here.
658
659 2011-05-21  Bruno Haible  <bruno@clisp.org>
660
661         readlink: Move AC_LIBOBJ invocations to module description.
662         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
663         gl_PREREQ_READLINK invocations from here...
664         * modules/readlink (configure.ac): ... to here.
665
666 2011-05-21  Bruno Haible  <bruno@clisp.org>
667
668         readline: Move AC_LIBOBJ invocations to module description.
669         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
670         gl_PREREQ_READLINE invocations from here...
671         * modules/readline (configure.ac): ... to here.
672
673 2011-05-21  Bruno Haible  <bruno@clisp.org>
674
675         read: Move AC_LIBOBJ invocations to module description.
676         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
677         * modules/read (configure.ac): ... to here.
678
679 2011-05-21  Bruno Haible  <bruno@clisp.org>
680
681         rawmemchr: Move AC_LIBOBJ invocations to module description.
682         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
683         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
684         from here...
685         * modules/rawmemchr (configure.ac): ... to here.
686
687 2011-05-21  Bruno Haible  <bruno@clisp.org>
688
689         random_r: Move AC_LIBOBJ invocations to module description.
690         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
691         gl_PREREQ_RANDOM_R invocations from here...
692         * modules/random_r (configure.ac): ... to here.
693
694 2011-05-21  Bruno Haible  <bruno@clisp.org>
695
696         pwrite: Move AC_LIBOBJ invocations to module description.
697         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
698         * modules/pwrite (configure.ac): ... to here.
699
700 2011-05-21  Bruno Haible  <bruno@clisp.org>
701
702         putenv: Move AC_LIBOBJ invocations to module description.
703         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
704         * modules/putenv (configure.ac): ... to here.
705
706 2011-05-21  Bruno Haible  <bruno@clisp.org>
707
708         login_tty: Move AC_LIBOBJ invocations to module description.
709         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
710         * modules/login_tty (configure.ac): ... to here.
711
712 2011-05-21  Bruno Haible  <bruno@clisp.org>
713
714         openpty: Move AC_LIBOBJ invocations to module description.
715         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
716         * modules/openpty (configure.ac): ... to here.
717
718 2011-05-21  Bruno Haible  <bruno@clisp.org>
719
720         forkpty: Move AC_LIBOBJ invocations to module description.
721         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
722         * modules/forkpty (configure.ac): ... to here.
723
724 2011-05-21  Bruno Haible  <bruno@clisp.org>
725
726         ptsname: Move AC_LIBOBJ invocations to module description.
727         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
728         invocations from here...
729         * modules/ptsname (configure.ac): ... to here.
730
731 2011-05-21  Bruno Haible  <bruno@clisp.org>
732
733         pread: Move AC_LIBOBJ invocations to module description.
734         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
735         * modules/pread (configure.ac): ... to here.
736
737 2011-05-21  Bruno Haible  <bruno@clisp.org>
738
739         posix_spawn*: Move AC_LIBOBJ invocations to module description.
740         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
741         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
742         * modules/posix_spawn (configure.ac): ... to here.
743         * modules/posix_spawnp (configure.ac): ... and here.
744
745 2011-05-21  Bruno Haible  <bruno@clisp.org>
746
747         popen: Move AC_LIBOBJ invocations to module description.
748         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
749         invocations from here...
750         * modules/popen (configure.ac): ... to here.
751
752 2011-05-21  Bruno Haible  <bruno@clisp.org>
753
754         poll: Move AC_LIBOBJ invocations to module description.
755         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
756         invocations from here...
757         * modules/poll (configure.ac): ... to here.
758
759 2011-05-21  Bruno Haible  <bruno@clisp.org>
760
761         pipe-posix: Move AC_LIBOBJ invocations to module description.
762         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
763         * modules/pipe-posix (configure.ac): ... to here.
764
765 2011-05-21  Bruno Haible  <bruno@clisp.org>
766
767         openat: Respect rules for use of AC_LIBOBJ.
768         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
769         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
770         * modules/openat (configure.ac): ... to here.
771
772 2011-05-21  Bruno Haible  <bruno@clisp.org>
773
774         obstack-printf*: Move AC_LIBOBJ invocations to module description.
775         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
776         invocation from here...
777         * modules/obstack-printf (configure.ac): ... to here.
778         * modules/obstack-printf-posix (configure.ac): ... and here.
779
780 2011-05-21  Bruno Haible  <bruno@clisp.org>
781
782         nl_langinfo: Move AC_LIBOBJ invocations to module description.
783         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
784         from here...
785         * modules/nl_langinfo (configure.ac): ... to here.
786
787 2011-05-21  Bruno Haible  <bruno@clisp.org>
788
789         nanosleep: Move AC_LIBOBJ invocations to module description.
790         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
791         gl_PREREQ_NANOSLEEP invocations from here...
792         * modules/nanosleep (configure.ac): ... to here.
793
794 2011-05-21  Bruno Haible  <bruno@clisp.org>
795
796         mountlist: Move AC_LIBOBJ invocations to module description.
797         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
798         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
799         * modules/mountlist (configure.ac): ... to here.
800
801 2011-05-21  Bruno Haible  <bruno@clisp.org>
802
803         mktime: Respect rules for use of AC_LIBOBJ.
804         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
805         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
806         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
807         (gl_FUNC_MKTIME_INTERNAL): ... and here...
808         * modules/mktime (configure.ac): ... to here.
809         * modules/mktime-internal (configure.ac): ... and here.
810         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
811
812 2011-05-21  Bruno Haible  <bruno@clisp.org>
813
814         mkstemps: Move AC_LIBOBJ invocations to module description.
815         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
816         here...
817         * modules/mkstemps (configure.ac): ... to here.
818
819 2011-05-21  Bruno Haible  <bruno@clisp.org>
820
821         mkstemp: Move AC_LIBOBJ invocations to module description.
822         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
823         gl_PREREQ_MKSTEMP invocations from here...
824         * modules/mkstemp (configure.ac): ... to here.
825
826 2011-05-21  Bruno Haible  <bruno@clisp.org>
827
828         mkostemps: Move AC_LIBOBJ invocations to module description.
829         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
830         here...
831         * modules/mkostemps (configure.ac): ... to here.
832
833 2011-05-21  Bruno Haible  <bruno@clisp.org>
834
835         mkostemp: Move AC_LIBOBJ invocations to module description.
836         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
837         gl_PREREQ_MKOSTEMP invocations from here...
838         * modules/mkostemp (configure.ac): ... to here.
839
840 2011-05-21  Bruno Haible  <bruno@clisp.org>
841
842         mknod: Move AC_LIBOBJ invocations to module description.
843         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
844         * modules/mknod (configure.ac): ... to here.
845
846 2011-05-21  Bruno Haible  <bruno@clisp.org>
847
848         mkfifoat: Move AC_LIBOBJ invocations to module description.
849         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
850         here...
851         * modules/mkfifoat (configure.ac): ... to here.
852
853 2011-05-21  Bruno Haible  <bruno@clisp.org>
854
855         mkfifo: Respect rules for use of AC_LIBOBJ.
856         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
857         here...
858         * modules/mkfifo (configure.ac): ... to here.
859
860 2011-05-21  Bruno Haible  <bruno@clisp.org>
861
862         mkdtemp: Move AC_LIBOBJ invocations to module description.
863         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
864         invocations from here...
865         * modules/mkdtemp (configure.ac): ... to here.
866
867 2011-05-21  Bruno Haible  <bruno@clisp.org>
868
869         mkdir: Move AC_LIBOBJ invocations to module description.
870         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
871         * modules/mkdir (configure.ac): ... to here.
872
873 2011-05-21  Bruno Haible  <bruno@clisp.org>
874
875         memset: Move AC_LIBOBJ invocations to module description.
876         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
877         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
878         here...
879         * modules/memset (configure.ac): ... to here.
880
881 2011-05-21  Bruno Haible  <bruno@clisp.org>
882
883         memrchr: Move AC_LIBOBJ invocations to module description.
884         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
885         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
886         here...
887         * modules/memrchr (configure.ac): ... to here.
888
889 2011-05-21  Bruno Haible  <bruno@clisp.org>
890
891         mempcpy: Move AC_LIBOBJ invocations to module description.
892         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
893         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
894         here...
895         * modules/mempcpy (configure.ac): ... to here.
896
897 2011-05-21  Bruno Haible  <bruno@clisp.org>
898
899         memmove: Move AC_LIBOBJ invocations to module description.
900         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
901         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
902         here...
903         * modules/memmove (configure.ac): ... to here.
904
905 2011-05-21  Bruno Haible  <bruno@clisp.org>
906
907         memmem*: Move AC_LIBOBJ invocations to module description.
908         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
909         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
910         here...
911         (gl_FUNC_MEMMEM): ... and here...
912         * modules/memmem-simple (configure.ac): ... to here.
913         * modules/memmem (configure.ac): ... and here.
914
915 2011-05-21  Bruno Haible  <bruno@clisp.org>
916
917         memcpy: Move AC_LIBOBJ invocations to module description.
918         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
919         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
920         here...
921         * modules/memcpy (configure.ac): ... to here.
922
923 2011-05-21  Bruno Haible  <bruno@clisp.org>
924
925         memcmp: Simplify autoconf macro.
926         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
927         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
928         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
929
930 2011-05-21  Bruno Haible  <bruno@clisp.org>
931
932         memcmp: Move AC_LIBOBJ invocations to module description.
933         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
934         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
935         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
936         * modules/memcmp (configure.ac): ... to here.
937         (Depends-on): Update conditions.
938
939 2011-05-21  Bruno Haible  <bruno@clisp.org>
940
941         memchr: Respect rules for use of AC_LIBOBJ.
942         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
943         invocations from here...
944         * modules/memchr (configure.ac): ... to here.
945
946 2011-05-21  Bruno Haible  <bruno@clisp.org>
947
948         mbtowc: Move AC_LIBOBJ invocations to module description.
949         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
950         invocations from here...
951         * modules/mbtowc (configure.ac): ... to here.
952
953 2011-05-21  Bruno Haible  <bruno@clisp.org>
954
955         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
956         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
957         gl_PREREQ_MBSRTOWCS invocations from here...
958         * modules/mbsrtowcs (configure.ac): ... to here.
959
960 2011-05-21  Bruno Haible  <bruno@clisp.org>
961
962         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
963         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
964         gl_PREREQ_MBSNRTOWCS invocations from here...
965         * modules/mbsnrtowcs (configure.ac): ... to here.
966
967 2011-05-21  Bruno Haible  <bruno@clisp.org>
968
969         mbsinit: Move AC_LIBOBJ invocations to module description.
970         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
971         invocations from here...
972         * modules/mbsinit (configure.ac): ... to here.
973
974 2011-05-21  Bruno Haible  <bruno@clisp.org>
975
976         mbrlen: Move AC_LIBOBJ invocations to module description.
977         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
978         invocations from here...
979         * modules/mbrlen (configure.ac): ... to here.
980
981 2011-05-21  Bruno Haible  <bruno@clisp.org>
982
983         mbrtowc: Respect rules for use of AC_LIBOBJ.
984         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
985         invocations from here...
986         * modules/mbrtowc (configure.ac): ... to here.
987
988 2011-05-21  Bruno Haible  <bruno@clisp.org>
989
990         malloc-*: Move AC_LIBOBJ invocations to module description.
991         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
992         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
993         AC_LIBOBJ invocations from here...
994         * modules/malloc-gnu (configure.ac): ... to here.
995         * modules/malloc-posix (configure.ac): ... and here.
996
997 2011-05-21  Bruno Haible  <bruno@clisp.org>
998
999         lstat, openat: Respect rules for use of AC_LIBOBJ.
1000         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
1001         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
1002         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
1003         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
1004         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
1005         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
1006         here.
1007         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
1008
1009 2011-05-21  Bruno Haible  <bruno@clisp.org>
1010
1011         lseek: Move AC_LIBOBJ invocations to module description.
1012         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
1013         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
1014         * modules/lseek (configure.ac): ... to here.
1015
1016 2011-05-21  Bruno Haible  <bruno@clisp.org>
1017
1018         linkat: Move AC_LIBOBJ invocations to module description.
1019         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
1020         here...
1021         * modules/linkat (configure.ac): ... to here.
1022
1023 2011-05-21  Bruno Haible  <bruno@clisp.org>
1024
1025         link: Respect rules for use of AC_LIBOBJ.
1026         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
1027         * modules/link (configure.ac): ... to here.
1028
1029 2011-05-21  Bruno Haible  <bruno@clisp.org>
1030
1031         lchown: Move AC_LIBOBJ invocations to module description.
1032         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
1033         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
1034         * modules/lchown (configure.ac): ... to here.
1035
1036 2011-05-21  Bruno Haible  <bruno@clisp.org>
1037
1038         iswctype: Move AC_LIBOBJ invocations to module description.
1039         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
1040         here...
1041         * modules/iswctype (configure.ac): ... to here.
1042
1043 2011-05-21  Bruno Haible  <bruno@clisp.org>
1044
1045         iswblank: Move AC_LIBOBJ invocations to module description.
1046         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
1047         here...
1048         * modules/iswblank (configure.ac): ... to here.
1049
1050 2011-05-21  Bruno Haible  <bruno@clisp.org>
1051
1052         atanl: Move AC_LIBOBJ invocations to module description.
1053         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
1054         * modules/atanl (configure.ac): ... to here.
1055
1056 2011-05-21  Bruno Haible  <bruno@clisp.org>
1057
1058         acosl: Move AC_LIBOBJ invocations to module description.
1059         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
1060         * modules/acosl (configure.ac): ... to here.
1061
1062 2011-05-21  Bruno Haible  <bruno@clisp.org>
1063
1064         asinl: Respect rules for use of AC_LIBOBJ.
1065         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
1066         * modules/asinl (configure.ac): ... to here.
1067
1068 2011-05-21  Bruno Haible  <bruno@clisp.org>
1069
1070         tanl: Move AC_LIBOBJ invocations to module description.
1071         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
1072         * modules/tanl (configure.ac): ... to here.
1073
1074 2011-05-21  Bruno Haible  <bruno@clisp.org>
1075
1076         cosl: Move AC_LIBOBJ invocations to module description.
1077         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
1078         * modules/cosl (configure.ac): ... to here.
1079
1080 2011-05-21  Bruno Haible  <bruno@clisp.org>
1081
1082         sinl: Move AC_LIBOBJ invocations to module description.
1083         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
1084         * modules/sinl (configure.ac): ... to here.
1085
1086 2011-05-21  Bruno Haible  <bruno@clisp.org>
1087
1088         logl: Move AC_LIBOBJ invocations to module description.
1089         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
1090         * modules/logl (configure.ac): ... to here.
1091
1092 2011-05-21  Bruno Haible  <bruno@clisp.org>
1093
1094         expl: Move AC_LIBOBJ invocations to module description.
1095         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
1096         * modules/expl (configure.ac): ... to here.
1097
1098 2011-05-21  Bruno Haible  <bruno@clisp.org>
1099
1100         roundl: Move AC_LIBOBJ invocations to module description.
1101         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
1102         * modules/roundl (configure.ac): ... to here.
1103
1104 2011-05-21  Bruno Haible  <bruno@clisp.org>
1105
1106         round: Move AC_LIBOBJ invocations to module description.
1107         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
1108         * modules/round (configure.ac): ... to here.
1109
1110 2011-05-21  Bruno Haible  <bruno@clisp.org>
1111
1112         roundf: Move AC_LIBOBJ invocations to module description.
1113         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
1114         * modules/roundf (configure.ac): ... to here.
1115
1116 2011-05-21  Bruno Haible  <bruno@clisp.org>
1117
1118         truncl: Move AC_LIBOBJ invocations to module description.
1119         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
1120         * modules/truncl (configure.ac): ... to here.
1121
1122 2011-05-21  Bruno Haible  <bruno@clisp.org>
1123
1124         trunc: Move AC_LIBOBJ invocations to module description.
1125         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
1126         * modules/trunc (configure.ac): ... to here.
1127
1128 2011-05-21  Bruno Haible  <bruno@clisp.org>
1129
1130         truncf: Move AC_LIBOBJ invocations to module description.
1131         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
1132         * modules/truncf (configure.ac): ... to here.
1133
1134 2011-05-21  Bruno Haible  <bruno@clisp.org>
1135
1136         ceill: Move AC_LIBOBJ invocations to module description.
1137         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
1138         * modules/ceill (configure.ac): ... to here.
1139
1140 2011-05-21  Bruno Haible  <bruno@clisp.org>
1141
1142         ceil: Move AC_LIBOBJ invocations to module description.
1143         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
1144         * modules/ceil (configure.ac): ... to here.
1145
1146 2011-05-21  Bruno Haible  <bruno@clisp.org>
1147
1148         ceilf: Move AC_LIBOBJ invocations to module description.
1149         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
1150         * modules/ceilf (configure.ac): ... to here.
1151
1152 2011-05-21  Bruno Haible  <bruno@clisp.org>
1153
1154         floorl: Respect rules for use of AC_LIBOBJ.
1155         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
1156         * modules/floorl (configure.ac): ... to here.
1157
1158 2011-05-21  Bruno Haible  <bruno@clisp.org>
1159
1160         floor: Respect rules for use of AC_LIBOBJ.
1161         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
1162         * modules/floor (configure.ac): ... to here.
1163
1164 2011-05-21  Bruno Haible  <bruno@clisp.org>
1165
1166         floorf: Move AC_LIBOBJ invocations to module description.
1167         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
1168         * modules/floorf (configure.ac): ... to here.
1169
1170 2011-05-20  Bruno Haible  <bruno@clisp.org>
1171
1172         sqrtl: Respect rules for use of AC_LIBOBJ.
1173         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
1174         * modules/sqrtl (configure.ac): ... to here.
1175
1176 2011-05-20  Bruno Haible  <bruno@clisp.org>
1177
1178         ldexpl: Respect rules for use of AC_LIBOBJ.
1179         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
1180         * modules/ldexpl (configure.ac): ... to here.
1181
1182 2011-05-20  Bruno Haible  <bruno@clisp.org>
1183
1184         frexpl*: Respect rules for use of AC_LIBOBJ.
1185         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
1186         invocation from here...
1187         * modules/frexpl (configure.ac): ... to here.
1188         * modules/frexpl-nolibm (configure.ac): ... and here.
1189
1190 2011-05-20  Bruno Haible  <bruno@clisp.org>
1191
1192         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
1193         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
1194         invocation from here...
1195         * modules/frexp (configure.ac): ... to here.
1196         * modules/frexp-nolibm (configure.ac): ... and here.
1197
1198 2011-05-20  Bruno Haible  <bruno@clisp.org>
1199
1200         isnan: Respect rules for use of AC_LIBOBJ.
1201         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
1202         invocations here.
1203         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
1204         REPLACE_ISNAN.
1205         * modules/isnand (configure.ac): Likewise.
1206         * modules/isnanl (configure.ac): Likewise.
1207
1208 2011-05-20  Bruno Haible  <bruno@clisp.org>
1209
1210         isnanl*: Respect rules for use of AC_LIBOBJ.
1211         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
1212         invocation from here...
1213         * modules/isnanl (configure.ac): ... to here.
1214         * modules/isnanl-nolibm (configure.ac): ... and here.
1215
1216 2011-05-20  Bruno Haible  <bruno@clisp.org>
1217
1218         isnand*: Move AC_LIBOBJ invocations to module description.
1219         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
1220         invocation from here...
1221         * modules/isnand (configure.ac): ... to here.
1222         * modules/isnand-nolibm (configure.ac): ... and here.
1223
1224 2011-05-20  Bruno Haible  <bruno@clisp.org>
1225
1226         isnanf*: Move AC_LIBOBJ invocations to module description.
1227         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
1228         invocation from here...
1229         * modules/isnanf (configure.ac): ... to here.
1230         * modules/isnanf-nolibm (configure.ac): ... and here.
1231
1232 2011-05-20  Bruno Haible  <bruno@clisp.org>
1233
1234         isnan*: Separate the AC_LIBOBJ invocations.
1235         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
1236         AC_LIBOBJ invocation.
1237         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
1238         here.
1239         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
1240         AC_LIBOBJ invocation.
1241         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
1242         here.
1243         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
1244         AC_LIBOBJ invocation.
1245         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
1246         here.
1247         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
1248
1249 2011-05-08  Bruno Haible  <bruno@clisp.org>
1250
1251         isinf: Move AC_LIBOBJ invocations to module description.
1252         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
1253         * modules/isinf (configure.ac): ... to here.
1254
1255 2011-05-08  Bruno Haible  <bruno@clisp.org>
1256
1257         isfinite: Move AC_LIBOBJ invocations to module description.
1258         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
1259         * modules/isfinite (configure.ac): ... to here.
1260
1261 2011-05-08  Bruno Haible  <bruno@clisp.org>
1262
1263         isblank: Move AC_LIBOBJ invocations to module description.
1264         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
1265         here...
1266         * modules/isblank (configure.ac): ... to here.
1267
1268 2011-05-08  Bruno Haible  <bruno@clisp.org>
1269
1270         isapipe: Move AC_LIBOBJ invocations to module description.
1271         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
1272         gl_PREREQ_ISAPIPE invocations from here...
1273         * modules/isapipe (configure.ac): ... to here.
1274         (Depends-on): Update condition.
1275
1276 2011-05-08  Bruno Haible  <bruno@clisp.org>
1277
1278         ioctl: Move AC_LIBOBJ invocations to module description.
1279         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
1280         invocations from here...
1281         * modules/ioctl (configure.ac): ... to here.
1282         (Depends-on): Update condition.
1283
1284 2011-05-08  Bruno Haible  <bruno@clisp.org>
1285
1286         imaxdiv: Move AC_LIBOBJ invocations to module description.
1287         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
1288         invocations from here...
1289         * modules/imaxdiv (configure.ac): ... to here.
1290
1291 2011-05-08  Bruno Haible  <bruno@clisp.org>
1292
1293         imaxabs: Move AC_LIBOBJ invocations to module description.
1294         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
1295         invocations from here...
1296         * modules/imaxabs (configure.ac): ... to here.
1297
1298 2011-05-08  Bruno Haible  <bruno@clisp.org>
1299
1300         getaddrinfo: Move AC_LIBOBJ invocations to module description.
1301         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
1302         AC_LIBOBJ invocations from here...
1303         * modules/getaddrinfo (configure.ac): ... to here.
1304         (Depends-on): Add conditions.
1305
1306 2011-05-08  Bruno Haible  <bruno@clisp.org>
1307
1308         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
1309         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
1310         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
1311         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
1312         (gl_PREREQ_INET_PTON): ... from here.
1313         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
1314         gl_PREREQ_INET_PTON here.
1315         (Depends-on): Update condition.
1316
1317 2011-05-08  Bruno Haible  <bruno@clisp.org>
1318
1319         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
1320         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
1321         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
1322         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
1323         (gl_PREREQ_INET_NTOP): ... from here.
1324         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
1325         gl_PREREQ_INET_NTOP here.
1326         (Depends-on): Update condition.
1327
1328 2011-05-08  Bruno Haible  <bruno@clisp.org>
1329
1330         iconv_open: Move AC_LIBOBJ invocations to module description.
1331         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
1332         AC_LIBOBJ invocations from here...
1333         * modules/iconv_open (configure.ac): ... to here.
1334
1335 2011-05-08  Bruno Haible  <bruno@clisp.org>
1336
1337         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
1338         If module 'iconv_open' is among the main modules and module
1339         'iconv_open-utf' is among the tests dependencies, then
1340         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
1341         return the special iconv_t values. Therefore iconv() and iconv_close()
1342         must support these special iconv_t values, already in lib, not only in
1343         tests.
1344         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
1345         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
1346         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
1347         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
1348         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
1349         (Depends-on): Add the dependencies of iconv_open-utf.
1350         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
1351         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
1352         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
1353
1354 2011-05-08  Bruno Haible  <bruno@clisp.org>
1355
1356         group-member: Move AC_LIBOBJ invocations to module description.
1357         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
1358         gl_PREREQ_GROUP_MEMBER invocations from here...
1359         * modules/group-member (configure.ac): ... to here.
1360
1361 2011-05-08  Bruno Haible  <bruno@clisp.org>
1362
1363         grantpt: Move AC_LIBOBJ invocations to module description.
1364         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
1365         invocations from here...
1366         * modules/grantpt (configure.ac): ... to here.
1367
1368 2011-05-08  Bruno Haible  <bruno@clisp.org>
1369
1370         glob: Move AC_LIBOBJ invocations to module description.
1371         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
1372         from here...
1373         * modules/glob (configure.ac): ... to here.
1374
1375 2011-05-08  Bruno Haible  <bruno@clisp.org>
1376
1377         getusershell: Move AC_LIBOBJ invocations to module description.
1378         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
1379         Move AC_LIBOBJ invocation from here...
1380         * modules/getusershell (configure.ac): ... to here.
1381         (Depends-on): Update condition.
1382
1383 2011-05-08  Bruno Haible  <bruno@clisp.org>
1384
1385         gettimeofday: Move AC_LIBOBJ invocations to module description.
1386         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
1387         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
1388         gl_PREREQ_GETTIMEOFDAY invocations from here...
1389         * modules/gettimeofday (configure.ac): ... to here.
1390
1391 2011-05-08  Bruno Haible  <bruno@clisp.org>
1392
1393         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
1394         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
1395         just gl_FUNC_TZSET.
1396         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
1397         (gl_FUNC_TZSET_CLOBBER): Remove actions.
1398         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
1399         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
1400
1401 2011-05-08  Bruno Haible  <bruno@clisp.org>
1402
1403         getsubopt: Move AC_LIBOBJ invocations to module description.
1404         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
1405         gl_PREREQ_GETSUBOPT invocations from here...
1406         * modules/getsubopt (configure.ac): ... to here.
1407
1408 2011-05-08  Bruno Haible  <bruno@clisp.org>
1409
1410         getpass-gnu: Move AC_LIBOBJ invocations to module description.
1411         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
1412         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
1413         * modules/getpass-gnu (configure.ac): ... to here.
1414
1415 2011-05-08  Bruno Haible  <bruno@clisp.org>
1416
1417         getpass: Move AC_LIBOBJ invocations to module description.
1418         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
1419         gl_PREREQ_GETPASS invocations from here...
1420         * modules/getpass (configure.ac): ... to here.
1421
1422 2011-05-08  Bruno Haible  <bruno@clisp.org>
1423
1424         getpagesize: Move AC_LIBOBJ invocations to module description.
1425         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
1426         from here...
1427         * modules/getpagesize (configure.ac): ... to here.
1428
1429 2011-05-08  Bruno Haible  <bruno@clisp.org>
1430
1431         getopt: Move AC_LIBOBJ invocations to module description.
1432         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
1433         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
1434         invocations from here...
1435         * modules/getopt-gnu (configure.ac): ... to here.
1436         * modules/getopt-posix (configure.ac): ... and here.
1437         (Depends-on): Update condition.
1438
1439 2011-05-08  Bruno Haible  <bruno@clisp.org>
1440
1441         getopt, argp: Respect rules for use of AC_LIBOBJ.
1442         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
1443         (gl_REPLACE_GETOPT_ALWAYS): New macro.
1444         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
1445         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
1446
1447 2011-05-08  Bruno Haible  <bruno@clisp.org>
1448
1449         getlogin_r: Move AC_LIBOBJ invocations to module description.
1450         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
1451         gl_PREREQ_GETLOGIN_R invocations from here...
1452         * modules/getlogin_r (configure.ac): ... to here.
1453
1454 2011-05-08  Bruno Haible  <bruno@clisp.org>
1455
1456         getlogin: Move AC_LIBOBJ invocations to module description.
1457         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
1458         here...
1459         * modules/getlogin (configure.ac): ... to here.
1460
1461 2011-05-08  Bruno Haible  <bruno@clisp.org>
1462
1463         getloadavg: Move AC_LIBOBJ invocations to module description.
1464         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
1465         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
1466         * modules/getloadavg (configure.ac): ... to here.
1467
1468 2011-05-08  Bruno Haible  <bruno@clisp.org>
1469
1470         gethrxtime: Move AC_LIBOBJ invocations to module description.
1471         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
1472         LIB_GETHRXTIME from here...
1473         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
1474         invocations from here...
1475         * modules/gethrxtime (configure.ac): ... to here.
1476
1477 2011-05-08  Bruno Haible  <bruno@clisp.org>
1478
1479         gethostname: Move AC_LIBOBJ invocations to module description.
1480         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
1481         gl_PREREQ_GETHOSTNAME invocations from here...
1482         * modules/gethostname (configure.ac): ... to here.
1483
1484 2011-05-08  Bruno Haible  <bruno@clisp.org>
1485
1486         getgroups: Move AC_LIBOBJ invocations to module description.
1487         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
1488         here...
1489         * modules/getgroups (configure.ac): ... to here.
1490
1491 2011-05-08  Bruno Haible  <bruno@clisp.org>
1492
1493         getdtablesize: Move AC_LIBOBJ invocations to module description.
1494         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
1495         invocation from here...
1496         * modules/getdtablesize (configure.ac): ... to here.
1497
1498 2011-05-08  Bruno Haible  <bruno@clisp.org>
1499
1500         getdomainname: Move AC_LIBOBJ invocations to module description.
1501         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
1502         gl_PREREQ_GETDOMAINNAME invocations from here...
1503         * modules/getdomainname (configure.ac): ... to here.
1504
1505 2011-05-08  Bruno Haible  <bruno@clisp.org>
1506
1507         getline: Move AC_LIBOBJ invocations to module description.
1508         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
1509         invocations from here...
1510         * modules/getline (configure.ac): ... to here.
1511
1512 2011-05-08  Bruno Haible  <bruno@clisp.org>
1513
1514         getline: Simplify.
1515         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
1516         It's already handled through the module dependency.
1517
1518 2011-05-08  Bruno Haible  <bruno@clisp.org>
1519
1520         getdelim: Move AC_LIBOBJ invocations to module description.
1521         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
1522         and gl_PREREQ_GETDELIM invocations from here...
1523         * modules/getdelim (configure.ac): ... to here.
1524         (Depends-on): Fix condition.
1525
1526 2011-05-08  Bruno Haible  <bruno@clisp.org>
1527
1528         getcwd: Move AC_LIBOBJ invocations to module description.
1529         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
1530         invocations from here...
1531         * modules/getcwd (configure.ac): ... to here.
1532
1533 2011-05-08  Bruno Haible  <bruno@clisp.org>
1534
1535         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
1536         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
1537         here...
1538         * modules/getcwd-lgpl (configure.ac): ... to here.
1539
1540 2011-05-07  Bruno Haible  <bruno@clisp.org>
1541
1542         crypto/gc: Move AC_LIBOBJ invocations to module description.
1543         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
1544         * modules/crypto/gc (configure.ac): ... to here.
1545
1546 2011-05-07  Bruno Haible  <bruno@clisp.org>
1547
1548         fwriting: Move AC_LIBOBJ invocations to module description.
1549         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
1550         here...
1551         * modules/fwriting (configure.ac): ... to here.
1552
1553 2011-05-07  Bruno Haible  <bruno@clisp.org>
1554
1555         fwritable: Move AC_LIBOBJ invocations to module description.
1556         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
1557         here...
1558         * modules/fwritable (configure.ac): ... to here.
1559
1560 2011-05-07  Bruno Haible  <bruno@clisp.org>
1561
1562         futimens: Move AC_LIBOBJ invocations to module description.
1563         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
1564         here...
1565         * modules/futimens (configure.ac): ... to here.
1566
1567 2011-05-07  Bruno Haible  <bruno@clisp.org>
1568
1569         ftruncate: Move AC_LIBOBJ invocations to module description.
1570         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
1571         gl_PREREQ_FTRUNCATE invocations from here...
1572         * modules/ftruncate (configure.ac): ... to here.
1573
1574 2011-05-07  Bruno Haible  <bruno@clisp.org>
1575
1576         fsync: Move AC_LIBOBJ invocations to module description.
1577         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
1578         invocations from here...
1579         * modules/fsync (configure.ac): ... to here.
1580
1581 2011-05-07  Bruno Haible  <bruno@clisp.org>
1582
1583         fsusage: Move AC_LIBOBJ invocations to module description.
1584         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
1585         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
1586         * modules/fsusage (configure.ac): ... to here.
1587
1588 2011-05-07  Bruno Haible  <bruno@clisp.org>
1589
1590         freopen: Move AC_LIBOBJ invocations to module description.
1591         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
1592         invocations from here...
1593         * modules/freopen (configure.ac): ... to here.
1594
1595 2011-05-07  Bruno Haible  <bruno@clisp.org>
1596
1597         free: Move AC_LIBOBJ invocations to module description.
1598         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
1599         invocations from here...
1600         * modules/free (configure.ac): ... to here.
1601
1602 2011-05-07  Bruno Haible  <bruno@clisp.org>
1603
1604         freadable: Move AC_LIBOBJ invocations to module description.
1605         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
1606         here...
1607         * modules/freadable (configure.ac): ... to here.
1608
1609 2011-05-07  Bruno Haible  <bruno@clisp.org>
1610
1611         fpurge: Move AC_LIBOBJ invocations to module description.
1612         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
1613         invocations from here...
1614         * modules/fpurge (configure.ac): ... to here.
1615
1616 2011-05-07  Bruno Haible  <bruno@clisp.org>
1617
1618         fpending: Move AC_LIBOBJ invocations to module description.
1619         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
1620         gl_FUNC_FPENDING.
1621         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
1622         invocations from here...
1623         * modules/fpending (configure.ac): ... to here.
1624
1625 2011-05-07  Bruno Haible  <bruno@clisp.org>
1626
1627         fopen: Move AC_LIBOBJ invocations to module description.
1628         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
1629         invocations from here...
1630         * modules/fopen (configure.ac): ... to here.
1631
1632 2011-05-07  Bruno Haible  <bruno@clisp.org>
1633
1634         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
1635         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
1636         gl_FUNC_FNMATCH_POSIX.
1637         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
1638         invocations from here...
1639         * modules/fnmatch (configure.ac): ... to here.
1640         * modules/fnmatch-gnu (configure.ac): ... and here.
1641
1642 2011-05-07  Bruno Haible  <bruno@clisp.org>
1643
1644         flock: Move AC_LIBOBJ invocations to module description.
1645         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
1646         invocations from here...
1647         * modules/flock (configure.ac): ... to here.
1648
1649 2011-05-07  Bruno Haible  <bruno@clisp.org>
1650
1651         fileblocks: Move AC_LIBOBJ invocations to module description.
1652         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
1653         gl_PREREQ_FILEBLOCKS invocations from here...
1654         * modules/fileblocks (configure.ac): ... to here.
1655
1656 2011-05-06  Bruno Haible  <bruno@clisp.org>
1657
1658         fflush: Move AC_LIBOBJ invocations to module description.
1659         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
1660         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
1661         invocations from here...
1662         * modules/fflush (configure.ac): ... to here.
1663
1664 2011-05-06  Bruno Haible  <bruno@clisp.org>
1665
1666         fdopendir: Move AC_LIBOBJ invocations to module description.
1667         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
1668         here...
1669         * modules/fdopendir (configure.ac): ... to here.
1670         (Depends-on): Improve conditions.
1671
1672 2011-05-06  Bruno Haible  <bruno@clisp.org>
1673
1674         _Exit: Move AC_LIBOBJ invocations to module description.
1675         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
1676         invocations from here...
1677         * modules/_Exit (configure.ac): ... to here.
1678
1679 2011-05-21  Bruno Haible  <bruno@clisp.org>
1680
1681         euidaccess: Respect rules for use of AC_LIBOBJ.
1682         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
1683         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
1684         from here...
1685         * modules/euidaccess (configure.ac): ... to here.
1686
1687 2011-05-06  Bruno Haible  <bruno@clisp.org>
1688
1689         error: Move AC_LIBOBJ invocations to module description.
1690         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
1691         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
1692         invocations from here...
1693         * modules/error (configure.ac): ... to here.
1694
1695 2011-05-06  Bruno Haible  <bruno@clisp.org>
1696
1697         duplocale: Move AC_LIBOBJ invocations to module description.
1698         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
1699         gl_PREREQ_DUPLOCALE invocations from here...
1700         * modules/duplocale (configure.ac): ... to here.
1701
1702 2011-05-05  Bruno Haible  <bruno@clisp.org>
1703
1704         dirfd: Move AC_LIBOBJ invocations to module description.
1705         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
1706         gl_FUNC_DIRFD.
1707         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
1708         here...
1709         * modules/dirfd (configure.ac): ... to here.
1710         (Depends-on): Fix condition.
1711
1712 2011-05-05  Bruno Haible  <bruno@clisp.org>
1713
1714         chown: Respect rules for use of AC_LIBOBJ.
1715         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
1716         * modules/chown (configure.ac): ... to here.
1717
1718 2011-05-05  Bruno Haible  <bruno@clisp.org>
1719
1720         chdir-long: Move AC_LIBOBJ invocations to module description.
1721         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
1722         gl_PREREQ_CHDIR_LONG invocations from here...
1723         * modules/chdir-long (configure.ac): ... to here.
1724
1725 2011-05-05  Bruno Haible  <bruno@clisp.org>
1726
1727         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
1728         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
1729         from here...
1730         * modules/canonicalize-lgpl (configure.ac): ... to here.
1731
1732 2011-05-05  Bruno Haible  <bruno@clisp.org>
1733
1734         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
1735         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
1736         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
1737         REPLACE_CALLOC.
1738         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
1739         * modules/calloc-gnu (configure.ac): Likewise.
1740
1741 2011-05-05  Bruno Haible  <bruno@clisp.org>
1742
1743         btowc: Move AC_LIBOBJ invocations to module description.
1744         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
1745         invocations from here...
1746         * modules/btowc (configure.ac): ... to here.
1747
1748 2011-05-21  Bruno Haible  <bruno@clisp.org>
1749
1750         atexit: Move AC_LIBOBJ invocations to module description.
1751         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
1752         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
1753         here...
1754         * modules/atexit (configure.ac): ... to here.
1755
1756 2011-05-05  Bruno Haible  <bruno@clisp.org>
1757
1758         atoll: Move AC_LIBOBJ invocations to module description.
1759         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
1760         invocations from here...
1761         * modules/atoll (configure.ac): ... to here.
1762
1763 2011-05-05  Bruno Haible  <bruno@clisp.org>
1764
1765         argz: Move AC_LIBOBJ invocations to module description.
1766         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
1767         * modules/argz (configure.ac): ... to here.
1768
1769 2011-05-05  Bruno Haible  <bruno@clisp.org>
1770
1771         alphasort: Move AC_LIBOBJ invocations to module description.
1772         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
1773         gl_PREREQ_ALPHASORT invocations from here...
1774         * modules/alphasort (configure.ac): ... to here.
1775
1776 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
1777
1778         verify: new macro verify_expr; verify_true deprecated
1779         * NEWS: Mention this.
1780         * doc/verify.texi (Compile-time Assertions): Document this.
1781         * lib/verify.h (verify_true): Deprecate.
1782         (verify_expr): New macro.
1783         * tests/test-verify.c (function): Test verify_expr.
1784
1785 2011-06-14  Jim Meyering  <meyering@redhat.com>
1786
1787         init.sh: give more portable redirection-related advice in a comment
1788         * tests/init.sh (stderr_fileno_): Update the advice in comments.
1789         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
1790         for lots of discussion.  Stefano Lattarini suggested the solution
1791         of putting "9>&2" after the command.  Reported by Bruno Haible.
1792
1793 2011-06-13  Bruno Haible  <bruno@clisp.org>
1794
1795         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
1796         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
1797         'none'.
1798
1799 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
1800
1801         ftoastr: use strtof only if HAVE_STRTOF
1802         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
1803         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
1804         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
1805         * modules/ftoastr (configure.ac): Check for strtof.
1806
1807 2011-06-13  Bruno Haible  <bruno@clisp.org>
1808
1809         gnulib-tool: Addendum to 2011-06-08 commit.
1810         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
1811         and --witness-c-macro have been given, augment AM_CPPFLAGS.
1812
1813 2011-06-13  Bruno Haible  <bruno@clisp.org>
1814
1815         fseeko: Provide a non-inline replacement of fseek().
1816         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
1817         * modules/fseeko (Depends-on): Add fseek.
1818         * modules/fseek (License): Change to LGPLv2+.
1819
1820 2011-06-13  Bruno Haible  <bruno@clisp.org>
1821
1822         ftello: Provide a non-inline replacement of ftell().
1823         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
1824         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
1825         not have ftello() (such as on mingw).
1826         * modules/ftello (Depends-on): Add ftell.
1827         * modules/ftell (License): Change to LGPLv2+.
1828
1829 2011-05-07  Bruno Haible  <bruno@clisp.org>
1830
1831         ftell: Move AC_LIBOBJ invocations to module description.
1832         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
1833         * modules/ftell (configure.ac): ... to here.
1834
1835 2011-05-07  Bruno Haible  <bruno@clisp.org>
1836
1837         ftello: Respect rules for use of AC_LIBOBJ.
1838         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
1839         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
1840         here...
1841         * modules/ftello (configure.ac): ... to here.
1842
1843 2011-05-07  Bruno Haible  <bruno@clisp.org>
1844
1845         fseeko: Simplify.
1846         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
1847         (gl_FUNC_FSEEKO): Inline it here.
1848
1849 2011-05-07  Bruno Haible  <bruno@clisp.org>
1850
1851         fseek: Move AC_LIBOBJ invocations to module description.
1852         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
1853         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
1854         * modules/fseek (configure.ac): ... to here.
1855
1856 2011-05-07  Bruno Haible  <bruno@clisp.org>
1857
1858         fseek: Respect rules for use of AC_LIBOBJ.
1859         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
1860         here...
1861         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
1862
1863 2011-05-07  Bruno Haible  <bruno@clisp.org>
1864
1865         fseeko: Respect rules for use of AC_LIBOBJ.
1866         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
1867         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
1868         here...
1869         * modules/fseeko (configure.ac): ... to here.
1870
1871 2011-06-13  Bruno Haible  <bruno@clisp.org>
1872
1873         gnulib-tool: Allow comments in the 'Depends-on' section.
1874         * doc/gnulib.texi (Module description): Mention comment syntax in the
1875         Depends-on section.
1876         * gnulib-tool (func_get_dependencies): Filter out comment lines.
1877
1878 2011-06-13  Bruno Haible  <bruno@clisp.org>
1879
1880         file-set.h: guard __attibute__ use, now that it's not always defined
1881         * lib/file-set.h (record_file): Use __attribute__ only with compiler
1882         versions that support it.  This fixes a coreutils build failure with
1883         the vendor cc on HP-UX 11.31.
1884
1885 2011-06-12  Bruno Haible  <bruno@clisp.org>
1886
1887         acl: Add support for HP-UX >= 11.11 JFS ACLs.
1888         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
1889         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
1890         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
1891         (acl, aclsort): New declarations.
1892         (aclv_nontrivial): New declaration.
1893         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
1894         (file_has_acl): Read also the second kind of HP-UX ACLs.
1895         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
1896         kind of HP-UX ACLs if the first kind fails.
1897         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
1898         second kind of HP-UX ACLs.
1899         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
1900         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
1901         agree.
1902         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
1903         hpuxjfs.
1904         Handle hpuxjfs.
1905         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
1906         hpuxjfs.
1907         Handle hpuxjfs.
1908         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
1909         (func_test_same_acls): Use both lsacl and getacl.
1910         Handle hpuxjfs.
1911         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
1912         (func_test_same_acls): Use both lsacl and getacl.
1913         Handle hpuxjfs.
1914
1915 2011-06-12  Bruno Haible  <bruno@clisp.org>
1916
1917         acl: Complete the 2010-08-10 fix.
1918         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
1919         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
1920         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
1921         explicitly.
1922         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
1923         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
1924
1925 2011-06-12  Bruno Haible  <bruno@clisp.org>
1926
1927         spawn-pipe tests: Comments.
1928         * tests/test-spawn-pipe-child.c (main): Update comment.
1929         Reported by James Youngman <jay@gnu.org>.
1930
1931 2011-06-11  James Youngman  <jay@gnu.org>
1932
1933         New module 'stat-size'.
1934         * modules/stat-size: New module.  Provides macros for accessing
1935         file size information in instances of struct stat.  Depends on the
1936         fileblocks module because it calls st_blocks.
1937         * lib/stat-size.h: New file, adapted from coreutils' system.h.
1938         * doc/gnulib.texi: Include stat-size.texi.
1939         * doc/stat-size.texi: Documentation for this module.
1940         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
1941         * m4/fileblocks.m4: Mention that stat-size depends on the call to
1942         AC_STRUCT_ST_BLOCKS.
1943
1944 2011-06-09  Bruno Haible  <bruno@clisp.org>
1945
1946         thread: Support pthreads-win32.
1947         * lib/glthread/thread.h (gl_thread_self): Define differently on
1948         pthreads-win32.
1949         (gl_null_thread): New declaration.
1950         (gl_thread_self_pointer): New macro.
1951         * lib/glthread/thread.c (gl_null_thread): New constant.
1952         * tests/test-lock.c: Use gl_thread_self_pointer instead of
1953         gl_thread_self.
1954         * tests/test-tls.c: Likewise.
1955         Suggested by Paul Eggert. Reported by Eric Blake.
1956
1957 2011-06-09  Bruno Haible  <bruno@clisp.org>
1958
1959         thread: Fix confusion between NULL and 0.
1960         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
1961         Reported by Paul Eggert.
1962
1963 2011-06-09  Bruno Haible  <bruno@clisp.org>
1964
1965         spawn-pipe tests: Avoid test failure on HP-UX 11.
1966         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
1967         is closed.
1968
1969 2011-06-09  Bruno Haible  <bruno@clisp.org>
1970
1971         acl tests: Fix compilation error on HP-UX 11.
1972         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
1973
1974 2011-06-09  Bruno Haible  <bruno@clisp.org>
1975
1976         rmdir: Avoid test failure on HP-UX 10.20.
1977         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
1978         EEXIST.
1979
1980 2011-06-08  Eric Blake  <eblake@redhat.com>
1981
1982         perror: fix test on mingw
1983         * modules/perror-tests (Depends-on): Add dup2.
1984
1985         strerror_r-posix: fix on MacOS
1986         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
1987         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
1988         logic bug.
1989         * lib/strerror_r.c (strerror_r): Fix the bug.
1990         * lib/strerror.c (strerror): Likewise.
1991         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
1992         problem.
1993         * doc/posix-functions/strerror.texi (strerror): Likewise.
1994         * doc/posix-functions/perror.texi (perror): Likewise.
1995         * tests/test-strerror.c (main): Enhance test.
1996         * tests/test-strerror_r.c (main): Likewise.
1997
1998 2011-06-08  Bruno Haible  <bruno@clisp.org>
1999
2000         gnulib-tool: Better isolation between different gnulib-tool invocations.
2001         * gnulib-tool: New option --witness-c-macro.
2002         (witness_c_macro): New variable.
2003         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
2004         AM_CPPFLAGS define it as a C macro.
2005         (func_emit_tests_Makefile_am): Likewise.
2006         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
2007         read it from there.
2008         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
2009         m4_define, not AC_DEFUN.
2010         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
2011         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
2012         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
2013         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
2014         s|...|...|, to substitute the values of the GNULIB_* module indicator
2015         variables.
2016         * modules/dirent (Makefile.am): Likewise.
2017         * modules/fcntl-h (Makefile.am): Likewise.
2018         * modules/iconv-h (Makefile.am): Likewise.
2019         * modules/langinfo (Makefile.am): Likewise.
2020         * modules/locale (Makefile.am): Likewise.
2021         * modules/math (Makefile.am): Likewise.
2022         * modules/netdb (Makefile.am): Likewise.
2023         * modules/poll-h (Makefile.am): Likewise.
2024         * modules/pty (Makefile.am): Likewise.
2025         * modules/search (Makefile.am): Likewise.
2026         * modules/signal (Makefile.am): Likewise.
2027         * modules/spawn (Makefile.am): Likewise.
2028         * modules/stdio (Makefile.am): Likewise.
2029         * modules/stdlib (Makefile.am): Likewise.
2030         * modules/string (Makefile.am): Likewise.
2031         * modules/sys_ioctl (Makefile.am): Likewise.
2032         * modules/sys_select (Makefile.am): Likewise.
2033         * modules/sys_socket (Makefile.am): Likewise.
2034         * modules/sys_stat (Makefile.am): Likewise.
2035         * modules/sys_times (Makefile.am): Likewise.
2036         * modules/sys_utsname (Makefile.am): Likewise.
2037         * modules/sys_wait (Makefile.am): Likewise.
2038         * modules/termios (Makefile.am): Likewise.
2039         * modules/time (Makefile.am): Likewise.
2040         * modules/unistd (Makefile.am): Likewise.
2041         * modules/wchar (Makefile.am): Likewise.
2042
2043 2011-06-08  Eric Blake  <eblake@redhat.com>
2044
2045         strerror: simplify replacement
2046         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
2047         * modules/strerror (configure.ac): No prereqs needed here...
2048         * modules/strerror-override (configure.ac): ...but this needs it.
2049         (Files): Add file for needed prereq macro.
2050
2051 2011-06-08  Bruno Haible  <bruno@clisp.org>
2052
2053         strerror_r-posix: Tweaks.
2054         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
2055         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
2056         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
2057         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
2058         (gl_FUNC_STRERROR_R): ... to here.
2059         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
2060
2061 2011-06-07  Eric Blake  <eblake@redhat.com>
2062
2063         perror: document fixed bugs
2064         * doc/posix-functions/perror.texi (perror): Document recent
2065         patches.
2066
2067 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
2068
2069         stat-time: get_stat_birthtime failure is better-defined
2070         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
2071         return a timestamp whose tv_sec and tv_nsec values are both -1.
2072         Previously, the spec said only that the tv_nsec value was negative.
2073         This upward-compatible change simplifies GNU tar a bit.
2074
2075 2011-06-07  Eric Blake  <eblake@redhat.com>
2076
2077         strerror_r-posix: work around cygwin 1.7.9
2078         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
2079         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
2080         bug without replacing strerror_r.
2081         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
2082         strerror_r is buggy, but without requiring strerror_r compilation.
2083         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
2084
2085         test-perror: relax test to ignore cygwin bug
2086         * tests/test-perror2.c (main): Relax test on requiring detection
2087         of stream errors, and use unbuffered stream.
2088         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
2089         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
2090         * doc/posix-functions/fputc.texi (fputc): Likewise.
2091         * doc/posix-functions/fputs.texi (fputs): Likewise.
2092         * doc/posix-functions/fputws.texi (fputws): Likewise.
2093         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
2094         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
2095         * doc/posix-functions/getopt.texi (getopt): Likewise.
2096         * doc/posix-functions/perror.texi (perror): Likewise.
2097         * doc/posix-functions/printf.texi (printf): Likewise.
2098         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
2099         * doc/posix-functions/psignal.texi (psignal): Likewise.
2100         * doc/posix-functions/putc.texi (putc): Likewise.
2101         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
2102         Likewise.
2103         * doc/posix-functions/putchar.texi (putchar): Likewise.
2104         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
2105         Likewise.
2106         * doc/posix-functions/puts.texi (puts): Likewise.
2107         * doc/posix-functions/putwc.texi (putwc): Likewise.
2108         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
2109         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
2110         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
2111         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
2112         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
2113         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
2114         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
2115         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
2116
2117 2011-05-22  Bruno Haible  <bruno@clisp.org>
2118
2119         strerror: Move AC_LIBOBJ invocations to module description.
2120         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
2121         gl_PREREQ_STRERROR invocations from here...
2122         * modules/strerror (configure.ac): ... to here.
2123
2124 2011-05-21  Bruno Haible  <bruno@clisp.org>
2125
2126         perror: Use common idiom.
2127         * modules/perror (configure.ac): Reorder statements.
2128
2129 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
2130
2131         tests: fix usage message in 'mktempd_'
2132         * tests/init.sh (mktempd_): In the usage message, use literal
2133         'mktempd_', not '$ME' (which is even undefined), as the name of
2134         the subroutine.
2135
2136 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
2137
2138         tests init: new function 'fatal_', for hard errors
2139         Before this patch, the only way offered by tests/init.sh to
2140         properly signal a hard error was the `framework_failure_'
2141         function.  But the error message issued by that function,
2142         as its name would suggest, refers to a set-up failure in the
2143         testsuite, while hard errors can obviously also be due to
2144         other reasons.  The best way to fix this inconsistency is to
2145         introduce a new function with a more general error message.
2146         * tests/init.sh (fatal_): New function.
2147
2148 2011-06-06  Eric Blake  <eblake@redhat.com>
2149
2150         canonicalize-lgpl: use common idiom
2151         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
2152         over newer POSIX -Rf.
2153         Reported by Bruno Haible.
2154
2155         canonicalize-lgpl: work around AIX realpath bug
2156         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
2157         * doc/posix-functions/realpath.texi (realpath): Document it.
2158         Reported by Bruno Haible.
2159
2160         strerror: work around FreeBSD bug
2161         * lib/strerror.c (strerror): Special case 0.
2162         Reported by Bruno Haible.
2163
2164         strerror-override: avoid bloating errno module
2165         * modules/errno (Files, configure.ac): Move replacement strings...
2166         * modules/strerror-override: ...to new module.
2167         * modules/strerror (Depends-on): Add strerror-override.
2168         * modules/strerror_r-posix (Depends-on): Likewise.
2169         * MODULES.html.sh: Document new module.
2170         Reported by Bruno Haible.
2171
2172 2011-06-06  Bruno Haible  <bruno@clisp.org>
2173
2174         spawn-pipe tests: Rename program.
2175         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
2176         * tests/test-spawn-pipe-child.c: Update comment.
2177         * tests/test-spawn-pipe.sh: Update.
2178         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
2179
2180         spawn-pipe tests: Link the child program only against libc.
2181         * tests/test-spawn-pipe-child.c: New file, extracted from
2182         tests/test-spawn-pipe.c.
2183         (main): Expect only one argument.
2184         (is_open): New function, copied from tests/test-pipe.c.
2185         * tests/test-spawn-pipe.c: Don't include <errno.h>.
2186         (child_main): Remove function.
2187         (test_pipe): Pass only one argument to the child program.
2188         (main): Remove child process code. Expect the child program's name as
2189         first argument.
2190         * tests/test-spawn-pipe.sh: Pass the child program's name as first
2191         argument.
2192         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
2193         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
2194         test-spawn-pipe-child against no libraries.
2195
2196 2011-06-06  Bruno Haible  <bruno@clisp.org>
2197
2198         careadlinkat: Avoid mismatch between ssize_t and int.
2199         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
2200         * lib/careadlinkat.c (careadlinkatcwd): Define always.
2201
2202 2011-06-06  Jim Meyering  <meyering@redhat.com>
2203
2204         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
2205         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
2206         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
2207
2208 2011-06-05  Bruno Haible  <bruno@clisp.org>
2209
2210         ansi-c++-opt: Interoperability with libtool.
2211         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
2212         set the variable to "no", not to ":".
2213         * NEWS: Mention the change.
2214
2215 2011-06-05  Bruno Haible  <bruno@clisp.org>
2216
2217         acl: Fix test failure on AIX 7.
2218         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
2219         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
2220
2221 2011-06-05  Bruno Haible  <bruno@clisp.org>
2222
2223         pipe-filter-ii: Fix test failure on AIX and IRIX.
2224         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
2225         with EAGAIN, retry with a smaller buffer size.
2226
2227 2011-06-05  Bruno Haible  <bruno@clisp.org>
2228
2229         localename: Fix link dependencies.
2230         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
2231         * modules/localename-tests (Makefile.am): Link test-localename with
2232         $(LIBTHREAD).
2233
2234 2011-06-05  Bruno Haible  <bruno@clisp.org>
2235
2236         error: Avoid gcc warning.
2237         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
2238
2239 2011-06-05  Bruno Haible  <bruno@clisp.org>
2240
2241         unsetenv: Avoid gcc warning.
2242         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
2243
2244 2011-06-05  Bruno Haible  <bruno@clisp.org>
2245
2246         setenv: Avoid gcc warning.
2247         * lib/setenv.c (setenv): Provide declaration if system lacks it.
2248
2249 2011-06-05  Bruno Haible  <bruno@clisp.org>
2250
2251         sys_select: Ensure memset is declared also on AIX 7.
2252         * lib/sys_select.in.h: Include <string.h> also on AIX.
2253         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
2254         self-contained also on AIX 7.1.
2255
2256 2011-06-04  Jim Meyering  <meyering@redhat.com>
2257
2258         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
2259         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
2260         function name, "error".
2261         (_gl_translatable_diag_func_re): New configurable variable.
2262
2263 2011-06-04  Bruno Haible  <bruno@clisp.org>
2264
2265         getopt: Avoid gcc warning.
2266         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
2267
2268 2011-06-04  Bruno Haible  <bruno@clisp.org>
2269
2270         strerror_r: Fix comments.
2271         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
2272         commit.
2273
2274 2011-06-04  Bruno Haible  <bruno@clisp.org>
2275
2276         perror: Fix compilation error.
2277         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
2278         Undefine fprintf, not sprintf.
2279         * modules/perror (Depends-on): Remove intprops, verify.
2280
2281 2011-06-04  Bruno Haible  <bruno@clisp.org>
2282
2283         setlocale: Enable replacement on Cygwin 1.5.
2284         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
2285         Cygwin 1.5.x.
2286         * doc/posix-functions/setlocale.texi: Mention that the problem with the
2287         LC_CTYPE category also exists on Cygwin 1.5.x.
2288
2289 2011-06-04  Bruno Haible  <bruno@clisp.org>
2290
2291         strerror-override: Don't disable symbol renamings.
2292         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
2293         * lib/strerror-override.c: Include config.h.
2294         (strerror_override): Don't undefine.
2295
2296 2011-06-03  Bruno Haible  <bruno@clisp.org>
2297
2298         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
2299         * lib/localename.h: Update copyright header.
2300         * lib/localename.c: Likewise.
2301         * lib/relocatable.h: Likewise.
2302         * lib/relocatable.c: Likewise.
2303
2304 2011-06-02  Bruno Haible  <bruno@clisp.org>
2305
2306         doc: Fix a module name.
2307         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
2308
2309 2011-06-02  Bruno Haible  <bruno@clisp.org>
2310
2311         pipe2: Remove dependency on 'nonblocking' module.
2312         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
2313         O_NONBLOCK is defined by gnulib.
2314         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
2315         is zero.
2316         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
2317         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
2318         defined by gnulib.
2319         (get_nonblocking_flag): New function.
2320         (main): Test O_NONBLOCK flag only if it is nonzero.
2321         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
2322
2323 2011-06-03  Jim Meyering  <meyering@redhat.com>
2324
2325         maint: three new prohibit-header-without-use rules
2326         Prohibit use of cloexec.h, posixver.h, same.h without use.
2327         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
2328         (sc_prohibit_posixver_without_use): Likewise.
2329         (sc_prohibit_same_without_use): Likewise.
2330
2331 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
2332
2333         allocator: 'die' routine is now given requested size
2334         * lib/allocator.h (struct allocator.die): New size arg.
2335         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
2336         If the actual problem is an ssize_t limitation, not a size_t or
2337         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
2338
2339 2011-06-01  Eric Blake  <eblake@redhat.com>
2340
2341         strerror: drop strerror_r dependency
2342         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
2343         * lib/strerror-override.c (strerror_override): ...to new file.
2344         * lib/strerror-override.h: Add prototype.
2345         * lib/strerror-impl.h: Delete.
2346         * lib/strerror.c (strerror): New implementation.
2347         * modules/errno (Files): Add new files.
2348         (configure.ac): Compile new file as appropriate.
2349         * modules/strerror (Files): Drop unused file.
2350         (Depends-on): Drop strerror_r-posix.
2351         * MODULES.html.sh: Document strerror_r-posix.
2352         Requested by Sam Steingold.
2353
2354         perror: call strerror_r directly
2355         * modules/perror (Files): Drop strerror-impl.h.
2356         * lib/perror.c (perror): Use our own stack buffer, rather than
2357         calling a wrapper that uses static storage.
2358         * doc/posix-functions/perror.texi (perror): Document a limitation
2359         of our replacement.
2360
2361         strerror_r: fix includes for FreeBSD
2362         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
2363         since we use abort on some platforms.
2364         Reported by Matthias Bolte.
2365
2366 2011-05-31  Bruno Haible  <bruno@clisp.org>
2367
2368         Fix link errors in tests: openat-die uses gettext-h.
2369         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
2370         against $(LIBINTL).
2371         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
2372         against $(LIBINTL).
2373         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
2374         $(LIBINTL).
2375         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
2376         against $(LIBINTL).
2377         * modules/linkat-tests (Makefile.am): Link test-linkat against
2378         $(LIBINTL).
2379         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
2380         $(LIBINTL).
2381         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
2382         against $(LIBINTL).
2383         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
2384         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
2385         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
2386         $(LIBINTL).
2387         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
2388         $(LIBINTL).
2389         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
2390         $(LIBINTL).
2391         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2392
2393 2011-05-31  Bruno Haible  <bruno@clisp.org>
2394
2395         Fix link errors in tests: wait-process uses gettext-h.
2396         * modules/nonblocking-pipe-tests (Makefile.am): Set
2397         test_nonblocking_pipe_main_LDADD.
2398         * modules/nonblocking-socket-tests (Makefile.am): Link
2399         test-nonblocking-socket-main against $(LIBINTL).
2400         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2401
2402 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
2403
2404         assert-h: work around 'verify' incompatibility
2405         * lib/verify.h: Use @...@ directives, not ifdef.
2406         * modules/assert-h (assert.h): Implement the directives.
2407         (assert.h): Substitute the symbol-prefix more consistently.
2408
2409 2011-05-29  Jim Meyering  <meyering@redhat.com>
2410
2411         trim: remove three superfluous assignments
2412         * lib/trim.c (trim2): Remove three superfluous assignments
2413         and correct brace positioning.
2414
2415 2011-05-29  Bruno Haible  <bruno@clisp.org>
2416
2417         wctype-h: Avoid namespace pollution on Solaris 2.6.
2418         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
2419         identifiers.
2420         * doc/posix-headers/wctype.texi: Mention the problem.
2421         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2422
2423 2011-05-28  Jim Meyering  <meyering@redhat.com>
2424
2425         parse-datetime.y: accommodate -Wstrict-overflow
2426         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
2427         placate -Wstrict-overflow.
2428
2429         trim: avoid a warning from -O2 -Wstrict-overflow
2430         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
2431
2432 2011-05-29  Bruno Haible  <bruno@clisp.org>
2433
2434         gnulib-tool: Fix bug in yesterday's commit.
2435         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
2436         twice.
2437
2438 2011-05-29  Bruno Haible  <bruno@clisp.org>
2439
2440         Allow multiple gnulib generated include files to be combined.
2441         * gnulib-tool (func_compute_include_guard_prefix): New function.
2442         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
2443         ${gl_include_guard_prefix} references.
2444         (func_import, func_create_testdir): Invoke
2445         func_compute_include_guard_prefix.
2446         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
2447         * lib/ctype.in.h: Likewise.
2448         * lib/dirent.in.h: Likewise.
2449         * lib/errno.in.h: Likewise.
2450         * lib/fcntl.in.h: Likewise.
2451         * lib/float.in.h: Likewise.
2452         * lib/getopt.in.h: Likewise.
2453         * lib/iconv.in.h: Likewise.
2454         * lib/langinfo.in.h: Likewise.
2455         * lib/locale.in.h: Likewise.
2456         * lib/math.in.h: Likewise.
2457         * lib/netdb.in.h: Likewise.
2458         * lib/netinet_in.in.h: Likewise.
2459         * lib/poll.in.h: Likewise.
2460         * lib/pthread.in.h: Likewise.
2461         * lib/pty.in.h: Likewise.
2462         * lib/sched.in.h: Likewise.
2463         * lib/se-selinux.in.h: Likewise.
2464         * lib/search.in.h: Likewise.
2465         * lib/signal.in.h: Likewise.
2466         * lib/spawn.in.h: Likewise.
2467         * lib/stdarg.in.h: Likewise.
2468         * lib/stddef.in.h: Likewise.
2469         * lib/stdint.in.h: Likewise.
2470         * lib/stdio.in.h: Likewise.
2471         * lib/stdlib.in.h: Likewise.
2472         * lib/string.in.h: Likewise.
2473         * lib/strings.in.h: Likewise.
2474         * lib/sys_file.in.h: Likewise.
2475         * lib/sys_ioctl.in.h: Likewise.
2476         * lib/sys_select.in.h: Likewise.
2477         * lib/sys_socket.in.h: Likewise.
2478         * lib/sys_stat.in.h: Likewise.
2479         * lib/sys_time.in.h: Likewise.
2480         * lib/sys_times.in.h: Likewise.
2481         * lib/sys_uio.in.h: Likewise.
2482         * lib/sys_utsname.in.h: Likewise.
2483         * lib/sys_wait.in.h: Likewise.
2484         * lib/sysexits.in.h: Likewise.
2485         * lib/termios.in.h: Likewise.
2486         * lib/time.in.h: Likewise.
2487         * lib/unistd.in.h: Likewise.
2488         * lib/wchar.in.h: Likewise.
2489         * lib/wctype.in.h: Likewise.
2490         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
2491         * modules/ctype (Makefile.am): Likewise.
2492         * modules/dirent (Makefile.am): Likewise.
2493         * modules/errno (Makefile.am): Likewise.
2494         * modules/fcntl-h (Makefile.am): Likewise.
2495         * modules/float (Makefile.am): Likewise.
2496         * modules/getopt-posix (Makefile.am): Likewise.
2497         * modules/iconv-h (Makefile.am): Likewise.
2498         * modules/langinfo (Makefile.am): Likewise.
2499         * modules/locale (Makefile.am): Likewise.
2500         * modules/math (Makefile.am): Likewise.
2501         * modules/netdb (Makefile.am): Likewise.
2502         * modules/netinet_in (Makefile.am): Likewise.
2503         * modules/poll-h (Makefile.am): Likewise.
2504         * modules/pthread (Makefile.am): Likewise.
2505         * modules/pty (Makefile.am): Likewise.
2506         * modules/sched (Makefile.am): Likewise.
2507         * modules/search (Makefile.am): Likewise.
2508         * modules/selinux-h (Makefile.am): Likewise.
2509         * modules/signal (Makefile.am): Likewise.
2510         * modules/spawn (Makefile.am): Likewise.
2511         * modules/stdarg (Makefile.am): Likewise.
2512         * modules/stddef (Makefile.am): Likewise.
2513         * modules/stdint (Makefile.am): Likewise.
2514         * modules/stdio (Makefile.am): Likewise.
2515         * modules/stdlib (Makefile.am): Likewise.
2516         * modules/string (Makefile.am): Likewise.
2517         * modules/strings (Makefile.am): Likewise.
2518         * modules/sys_file (Makefile.am): Likewise.
2519         * modules/sys_ioctl (Makefile.am): Likewise.
2520         * modules/sys_select (Makefile.am): Likewise.
2521         * modules/sys_socket (Makefile.am): Likewise.
2522         * modules/sys_stat (Makefile.am): Likewise.
2523         * modules/sys_time (Makefile.am): Likewise.
2524         * modules/sys_times (Makefile.am): Likewise.
2525         * modules/sys_uio (Makefile.am): Likewise.
2526         * modules/sys_utsname (Makefile.am): Likewise.
2527         * modules/sys_wait (Makefile.am): Likewise.
2528         * modules/sysexits (Makefile.am): Likewise.
2529         * modules/termios (Makefile.am): Likewise.
2530         * modules/time (Makefile.am): Likewise.
2531         * modules/unistd (Makefile.am): Likewise.
2532         * modules/wchar (Makefile.am): Likewise.
2533         * modules/wctype-h (Makefile.am): Likewise.
2534         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
2535
2536 2011-05-29  Bruno Haible  <bruno@clisp.org>
2537
2538         assert-h: Allow multiple gnulib generated replacements to coexist.
2539         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
2540
2541 2011-05-29  Bruno Haible  <bruno@clisp.org>
2542
2543         argp: Allow coexistence with strerror_r-posix module.
2544         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
2545         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
2546         by gnulib's <string.h> replacement), assume it has the POSIX signature,
2547         not the glibc signature.
2548
2549 2011-05-28  Bruno Haible  <bruno@clisp.org>
2550
2551         gnulib-tool: Alternative structure of testdirs, similar to --import.
2552         * gnulib-tool: New option --single-configure.
2553         (func_usage): Document it.
2554         (single_configure): New variable.
2555         (func_modules_transitive_closure_separately,
2556         func_modules_transitive_closure_separately,
2557         func_determine_use_libtests, func_modules_add_dummy_separately,
2558         func_modules_to_filelist_separately): New functions, extracted from
2559         func_import.
2560         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
2561         (func_import): Use the new functions.
2562         (func_create_testdir): Set final_modules. Handle $single_configure =
2563         true case.
2564
2565 2011-05-28  Bruno Haible  <bruno@clisp.org>
2566
2567         getloadavg: Remove an unreliable safety check.
2568         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
2569         getloadavg.c is in place.
2570         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
2571         Reported by Sam Steingold <sds@gnu.org>.
2572
2573 2011-05-28  Bruno Haible  <bruno@clisp.org>
2574
2575         doc: Cleanup yet another file produced by texinfo.tex.
2576         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
2577
2578 2011-05-28  Bruno Haible  <bruno@clisp.org>
2579
2580         Finish the conditional dependencies mechanism.
2581         * gnulib-tool: New option --no-conditional-dependencies.
2582         (func_usage): Document it. Don't mark --conditional-dependencies as
2583         experimental.
2584         (cond_dependencies): The possible values can now be true, false, empty.
2585         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
2586         (func_import): Store setting in gnulib-cache.m4 and read it from there.
2587         * doc/gnulib-tool.texi (Conditional dependencies): New section.
2588
2589 2011-05-28  Bruno Haible  <bruno@clisp.org>
2590
2591         doc: Use a recent texinfo.tex.
2592         * doc/Makefile (tex_opts): New variable.
2593         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
2594
2595 2011-05-28  Jim Meyering  <meyering@redhat.com>
2596
2597         intprops.h: adjust comment to match code change
2598         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
2599         only once, it *may* have side effects.  Also fix an unrelated typo.
2600         (_GL_INT_SIGNED): Likewise.
2601
2602 2011-05-26  Simon Josefsson  <simon@josefsson.org>
2603
2604         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
2605
2606 2011-05-26  Bruno Haible  <bruno@clisp.org>
2607
2608         mbsrchr: Avoid collision with system function on Interix.
2609         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
2610         Reported by Markus Duft <mduft@gentoo.org>.
2611
2612 2011-05-15  James Youngman  <jay@gnu.org>
2613
2614         getopt: for ambiguous options, enumerate the possibilities.
2615         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
2616         the ambiguous options when an ambiguous prefix is given. This was
2617         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
2618         glibc change was
2619         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
2620
2621 2011-05-25  Eric Blake  <eblake@redhat.com>
2622
2623         getcwd: work around mingw bug
2624         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
2625         * doc/posix-functions/getcwd.texi (getcwd): Document it.
2626         Reported by Matthias Bolte.
2627
2628 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
2629
2630         test-intprops: disable -Wtype-limits diagnostics
2631         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
2632         diagnostics.  Otherwise, the integer overflow macros generate many
2633         diagnostics.  Reported by Jim Meyering in
2634         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
2635
2636         intprops: shorten, to pacify gcc -Woverlength-strings
2637         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
2638         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
2639         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
2640         likely to run afoul of C compiler limits for string constant lengths.
2641         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
2642
2643 2011-05-24  Eric Blake  <eblake@redhat.com>
2644
2645         docs: document recently fixed glibc printf bug
2646         * doc/posix-functions/fprintf.texi (fprintf): Document it.
2647         * doc/posix-functions/printf.texi (printf): Likewise.
2648         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
2649         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
2650
2651         closein-tests: convert to init.sh
2652         * modules/closein-tests (Files): Add init.sh
2653         * tests/test-closein.sh Use it.
2654
2655         yesno-tests: convert to init.sh
2656         * modules/yesno-tests (Files): Add init.sh.
2657         * tests/test-yesno.sh: Use it.
2658
2659         atexit-tests: ensure reliable exit status
2660         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
2661         Reported by Bruno Haible.
2662
2663 2011-05-24  Bruno Haible  <bruno@clisp.org>
2664
2665         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
2666         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
2667         gl_PREREQ_STRERROR_R invocations from here...
2668         * modules/strerror_r-posix (configure.ac): ... to here.
2669
2670 2011-05-24  Eric Blake  <eblake@redhat.com>
2671
2672         strerror_r: fix missing header
2673         * lib/strerror_r.c: Avoid compiler warning about snprintf.
2674
2675         strerror_r: fix AIX test failures
2676         * lib/strerror_r.c (strerror_r): Convert silent truncation to
2677         ERANGE failure.
2678
2679         strerror_r: fix Solaris test failures
2680         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
2681         failures.
2682         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
2683
2684         strerror_r: enforce POSIX recommendations
2685         * lib/strerror_r.c (safe_copy): New helper method.
2686         (strerror_r): Guarantee a non-empty string.
2687         * tests/test-strerror_r.c (main): Enhance tests to incorporate
2688         recent POSIX rulings and to match our strerror guarantees.
2689         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
2690
2691 2011-05-24  Jim Meyering  <meyering@redhat.com>
2692
2693         test-perror2.c: avoid warning about unused variable
2694         * tests/test-perror2.c (main): Remove declaration of unused "fp".
2695
2696 2011-05-24  Eric Blake  <eblake@redhat.com>
2697
2698         perror: avoid spurious test failure on HP-UX
2699         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
2700
2701         tests: fix logic bug in init.sh
2702         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
2703         shell.
2704
2705 2011-05-24  Jim Meyering  <meyering@redhat.com>
2706
2707         utimensat: do not reference an out-of-scope buffer
2708         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
2709         declared in an inner scope, yet "times" would be dereferenced outside
2710         the scope in which "ts" was valid.
2711         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
2712         of ts[2] "out/up", so that the use of aliased "times" (via
2713         "times = ts;") does not end up referencing an out-of-scope "ts"
2714
2715         opendir-safer.c: don't clobber errno; don't close negative FD
2716         * lib/opendir-safer.c (opendir_safer):
2717         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
2718         file descriptor, and more importantly, don't clobber the
2719         offending errno value with EINVAL.  Before, upon failure
2720         of dup_safer, we would pass the negative file descriptor to
2721         fdopendir, which would clobber errno.
2722
2723 2011-05-23  Bruno Haible  <bruno@clisp.org>
2724
2725         idcache: Fix module description.
2726         * modules/idcache (Include): Set to "idcache.h".
2727
2728 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
2729
2730         gnulib-tool: fix portability problem with MacOS sed
2731         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
2732         before the "}".  Problem reported by Leo in
2733         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
2734         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
2735         sed_extract_condition1, sed_extract_condition2.
2736
2737 2011-05-23  Bruno Haible  <bruno@clisp.org>
2738
2739         hash: Simplify autoconf macro.
2740         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
2741
2742 2011-05-23  Bruno Haible  <bruno@clisp.org>
2743
2744         getugroups: Fix module description.
2745         * modules/getugroups (Include): Set to "getugroups.h".
2746
2747 2011-05-23  Bruno Haible  <bruno@clisp.org>
2748
2749         linkat: Simplify autoconf macro.
2750         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
2751
2752 2011-05-23  Bruno Haible  <bruno@clisp.org>
2753             Eric Blake  <eblake@redhat.com>
2754
2755         linkat, renameat: Update dependencies.
2756         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
2757         * modules/linkat (Depends-on): Likewise. Remove also readlink,
2758         symlinkat.
2759
2760 2011-05-23  Jim Meyering  <meyering@redhat.com>
2761
2762         maint.mk: more tight_scope improvements
2763         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
2764         (_gl_TS_headers): Define only in if-0'd block.
2765         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
2766         sometimes we must *not* use it.  Adjust uses accordingly.
2767         (sc_tight_scope): Use much simpler grep-based test to determine
2768         whether we skip this rule.
2769
2770         maint.mk: generalize/improve the tight-scope rule
2771         * top/maint.mk: Emit a warning when the test is skipped.
2772         (_gl_TS_dir): Add $(srcdir)/ prefix.
2773         (_gl_TS_function_match): Simplify, rather than trying
2774         to enumerate common types.  Otherwise, it would fail to match an
2775         "extern unsigned char const *" declaration in idutils.
2776         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
2777         a way to support use of that type of macro.
2778         (_gl_TS_var_match): Simplify regexp.
2779         (_gl_TS_obj_files): New configurable variable.
2780         (_gl_TS_headers): Likewise.
2781
2782 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
2783
2784         verify: fix bug when gnulib <assert.h> is also included
2785         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
2786         is defined, not if _GL_STATIC_ASSERT_H is not defined.
2787         Perhaps there's a better way, but this fixes the immediate problem.
2788         Problem reported by Bruno Haible in
2789         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
2790
2791 2011-05-22  Bruno Haible  <bruno@clisp.org>
2792
2793         xgetcwd: Simplify autoconf macro.
2794         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
2795
2796 2011-05-22  Bruno Haible  <bruno@clisp.org>
2797
2798         New module 'mktime-internal'.
2799         * modules/mktime-internal: New file.
2800         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
2801         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
2802         mktime_internal as a C macro if libc has __mktime_internal.
2803         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
2804         conditions.
2805         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
2806
2807 2011-05-22  Bruno Haible  <bruno@clisp.org>
2808
2809         timegm: Correct mktime replacement statements.
2810         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
2811         defining mktime as a C macro. This completes a 2009-07-28 commit.
2812
2813 2011-05-22  Bruno Haible  <bruno@clisp.org>
2814
2815         timegm: Simplify autoconf macro.
2816         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
2817
2818 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
2819
2820         clock-time: change to LGPLv2+.
2821         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
2822         BSD-like but we have no mark for that; this is good enough for now.
2823
2824 2011-05-21  Bruno Haible  <bruno@clisp.org>
2825
2826         strerror_r: Fix comments.
2827         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
2828
2829 2011-05-21  Bruno Haible  <bruno@clisp.org>
2830
2831         relocatable-prog-wrapper: Fix possible link error.
2832         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
2833         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
2834         (gl_FUNC_SETENV): ... to here.
2835         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
2836         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
2837
2838 2011-05-21  Bruno Haible  <bruno@clisp.org>
2839
2840         relocatable-prog-wrapper: Assume strerror() exists.
2841         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
2842         m4/strerror.m4.
2843         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
2844         * lib/relocwrapper.c: Remove mention of strerror module.
2845         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
2846         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
2847         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
2848         C macro.
2849
2850 2011-05-21  Bruno Haible  <bruno@clisp.org>
2851
2852         select: Simplify replacement idiom.
2853         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
2854         Win32 platforms.
2855         * lib/sys_select.in.h (select): Simplify accordingly.
2856         * modules/select (Depends-on): Likewise.
2857
2858 2011-05-21  Bruno Haible  <bruno@clisp.org>
2859
2860         mkdir-p: Simplify autoconf macro.
2861         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
2862         gl_FUNC_LCHOWN.
2863
2864 2011-05-21  Eric Blake  <eblake@redhat.com>
2865
2866         strerror_r: avoid clobbering strerror on cygwin
2867         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
2868         fall back instead to sys_errlist.
2869         * modules/strerror (configure.ac): Add witness.
2870         * tests/test-strerror_r.c (main): Enhance test.
2871         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
2872         * tests/test-perror2.c (main): Free memory before exit.
2873
2874 2011-05-21  Bruno Haible  <bruno@clisp.org>
2875
2876         mkdtemp: Use gnulib naming conventions.
2877         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
2878         * modules/mkdtemp (configure.ac): Update.
2879
2880 2011-05-20  Eric Blake  <eblake@redhat.com>
2881
2882         strerror_r: avoid corrupting errno on Solaris
2883         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
2884         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
2885
2886         strerror_r: avoid compiler warning
2887         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
2888
2889         strerror_r: simplify AIX code
2890         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
2891
2892         test-perror: avoid spurious failure on FreeBSD
2893         * modules/perror-tests (Depends-on): Add strerror, now that
2894         strerror_r no longer pulls it in.
2895
2896 2011-05-20  Bruno Haible  <bruno@clisp.org>
2897
2898         strerror_r-posix: Remove unused dependencies.
2899         * modules/strerror_r-posix (Depends-on): Remove strerror.
2900         Reported by Eric Blake.
2901
2902 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
2903
2904         intprops: remove assumption about A|B representation
2905         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
2906         is a valid integer if both A and B are.  Although this is true for
2907         all known practical hosts, the C standard doesn't guarantee it,
2908         and the code need not assume it.  Also, this change may work around
2909         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
2910         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
2911
2912 2011-05-20  Eric Blake  <eblake@redhat.com>
2913
2914         perror: work around FreeBSD bug
2915         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
2916         is broken.  Move AC_LIBOBJ...
2917         * modules/perror (configure.ac): Here.
2918         * doc/posix-functions/perror.texi (perror): Document this.
2919         * tests/test-perror2.c (main): Enhance test.
2920
2921         test-perror: check for strerror interactions
2922         * tests/macros.h (STREQ): Add macro.
2923         * modules/perror-tests (Files): Add second test.
2924         * tests/test-perror2.c (main): New file.
2925         * doc/posix-functions/perror.texi (perror): Document glibc bug.
2926
2927         test-perror: rewrite to use init script
2928         * modules/perror-tests (Files): Add init.sh.
2929         * tests/test-perror.sh: Use temporary directory.
2930
2931 2011-05-20  Jim Meyering  <meyering@redhat.com>
2932
2933         maint: replace misused "a" with "an"
2934         * doc/intprops.texi: "a integer"
2935         * doc/regex.texi: "a explanation"
2936         * lib/alignof.h: "a object"
2937         * lib/argmatch.h: "a explanation"
2938         * lib/argp-help.c: "a option" and "a OPTION_DOC"
2939         * lib/stdint.in.h: "a integer"
2940         * lib/userspec.c: "a owner"
2941         * doc/gnulib.texi: Fix "a idea", and reword.
2942
2943 2011-05-19  Jim Meyering  <meyering@redhat.com>
2944
2945         maint: correct misuse of "a" and "an"
2946         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
2947         * lib/argp-help.c: "an docum...": s/an/a/
2948         * lib/argp-parse.c: "An vector": s/An/A/
2949         * lib/execute.c: "an native": s/an/a/
2950         * lib/spawn-pipe.c: Likewise.
2951         * lib/gc.h: "an Gc_rc": s/an/a/
2952         * lib/unigbrk.in.h: "an grapheme": s/an/a/
2953         * lib/fts.c: "an stat.st_dev": s/an/a/
2954
2955 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
2956
2957         intprops-tests: work around HP-UX 11.23 cc bug with constants
2958         * tests/test-intprops.c (VERIFY): New macro.
2959         (main): Use it, instead of verify, to work around the compiler bug; see
2960         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
2961
2962         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
2963         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
2964         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
2965         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
2966         (_GL_REMAINDER_OVERFLOW): Use it.
2967
2968         intprops-tests: revert unsigned part of previous change
2969         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
2970         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
2971         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
2972         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
2973
2974 2011-05-19  Bruno Haible  <bruno@clisp.org>
2975
2976         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
2977         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
2978         strerror_r() returned without filling the buffer.
2979         Reported by Eric Blake.
2980
2981 2011-05-19  Eric Blake  <eblake@redhat.com>
2982
2983         strerror_r: guarantee unchanged errno
2984         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
2985         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
2986         failure.
2987         * tests/test-strerror_r.c (main): Enhance test.
2988
2989 2011-05-19  Bruno Haible  <bruno@clisp.org>
2990
2991         strerror_r: Reorder #if blocks.
2992         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
2993         for consistency with the previous commit.
2994
2995 2011-05-19  Bruno Haible  <bruno@clisp.org>
2996
2997         perror: Avoid clobbering the strerror buffer when possible.
2998         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
2999         * lib/strerror.c: Include it.
3000         * modules/strerror (Files): Add lib/strerror-impl.h.
3001         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
3002         (my_strerror): New function, defined through lib/strerror-impl.h.
3003         (perror): Use it instead of strerror.
3004         * modules/perror (Files): Add lib/strerror-impl.h.
3005         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
3006
3007 2011-05-19  Eric Blake  <eblake@redhat.com>
3008
3009         strerror_r: fix on newer cygwin
3010         * lib/strerror_r.c (strerror_r): Cygwin now has
3011         __xpg_strerror_r, use it.
3012
3013 2011-05-19  Bruno Haible  <bruno@clisp.org>
3014
3015         strerror_r: Avoid clobbering the strerror buffer when possible.
3016         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
3017         (sys_nerr, sys_errlist): New declarations.
3018         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
3019         HP-UX, native Win32, IRIX, and 32-bit Solaris.
3020         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
3021
3022 2011-05-19  Bruno Haible  <bruno@clisp.org>
3023
3024         strerror_r: Fix test failure on mingw.
3025         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
3026         EXTEND_STRERROR_R.
3027         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
3028         macros from errno.in.h instead.
3029
3030 2011-05-19  Eric Blake  <eblake@redhat.com>
3031
3032         strerror: relax test for Solaris
3033         * tests/test-strerror.c (main): Permit Solaris behavior.
3034         * tests/test-strerror_r.c (main): Likewise.
3035
3036         strerror: enforce POSIX ruling on strerror(0)
3037         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
3038         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
3039         * lib/strerror_r.c (rpl_strerror_r): Work around it.
3040         * doc/posix-functions/strerror.texi (strerror): Document it.
3041         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
3042         * tests/test-strerror.c (main): Strengthen test.
3043         * tests/test-strerror_r.c (main): Likewise.
3044
3045 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
3046
3047         intprop-tests: port to older and more-pedantic compilers
3048         * modules/intprops-tests (Files): Add tests/macros.h.
3049         * tests/test-intprops.c: Include macros.h.
3050         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
3051         it's no longer documented to expand to an integer constant expression.
3052         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
3053         argument is floating point, as it's no longer documented to expand
3054         to an integer constant expression in that case.
3055         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
3056         compiler bugs reported by Bruno Haible.  See
3057         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
3058         (U0, U1): New constants, to work around the same bugs.  Also,
3059         in tests, use e.g., "(unsigned int) 39" rather than "39u".
3060
3061         intprops: work around C compiler bugs
3062         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
3063         bug in Sun C 5.11 2010/08/13 and other compilers; see
3064         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
3065
3066         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
3067         * doc/intprops.texi (Integer Type Determination): Fix
3068         documentation for TYPE_IS_INTEGER: it returns an constant
3069         expression, not an integer constant expression.  Fix doc for
3070         TYPE_SIGNED: it returns an integer constant expression only if its
3071         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
3072         hardly worth documented that way....)
3073
3074 2011-05-18  Bruno Haible  <bruno@clisp.org>
3075
3076         strerror_r: Avoid clobbering the strerror buffer when possible.
3077         * lib/strerror_r.c (strerror_r): Merge the three implementations.
3078         Handle gnulib defined errno values here. When strerror() returns NULL
3079         or an empty string, return EINVAL.
3080         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
3081         gnulib defined errno values here.
3082         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
3083
3084 2011-05-18  Eric Blake  <eblake@redhat.com>
3085
3086         fnmatch: avoid compiler warning
3087         * lib/fnmatch_loop.c (FCT): Use correct type.
3088         Reported by Matthias Bolte.
3089
3090 2011-05-13  Jim Meyering  <meyering@redhat.com>
3091
3092         maint.mk: three new prohibit_<HDR>_without_use rules
3093         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
3094         (sc_prohibit_stdio-safer_without_use): Likewise.
3095         (sc_prohibit_xfreopen_without_use): Likewise.
3096
3097 2011-05-17  Jim Meyering  <meyering@redhat.com>
3098
3099         announce-gen: fail if the NEWS delta is empty
3100         If there's nothing noteworthy in NEWS, then either you forgot
3101         or you shouldn't be releasing.
3102         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
3103
3104 2011-05-17  Pádraig Brady <P@draigBrady.com>
3105
3106         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
3107         reserved symbols starting with double underscore from the check.
3108
3109 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
3110
3111         intprops: add doc
3112         * doc/intprops.texi: New file, documenting intprops.
3113         * doc/gnulib.texi (Particular Modules): Include it.
3114
3115         verify: add doc to gnulib manual and fix example
3116         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
3117         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
3118         (Compile-time Assertions): Fix example so it can't overflow.
3119
3120 2011-05-17  Jim Meyering  <meyering@redhat.com>
3121
3122         warnings.m4: don't usurp save_CPPFLAGS variable name
3123         * m4/warnings.m4: Prefix local temporary variable name with gl_.
3124
3125         doc: fix typo
3126         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
3127
3128 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
3129             Bruno Haible  <bruno@clisp.org>
3130
3131         doc: Tweak recent change.
3132         * README (Portability guidelines): Tweak new text.
3133         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
3134         Interix 6.1.
3135
3136 2011-05-16  Eric Blake  <eblake@redhat.com>
3137
3138         inttypes: avoid autoconf warning
3139         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
3140         * m4/stdint.m4 (gl_STDINT_H): Likewise.
3141
3142 2011-05-16  Sam Steingold <sds@gnu.org>
3143         and Eric Blake  <eblake@redhat.com>
3144
3145         vc-list-files: accept multiple directory operands
3146         * build-aux/vc-list-files: Iterate over all remaining operands.
3147
3148 2011-05-16  Bruno Haible  <bruno@clisp.org>
3149
3150         Fix confusion regarding deprecated modules.
3151         * modules/calloc (Status, Notice): Mark module as deprecated, not
3152         obsolete.
3153         * modules/fnmatch-posix (Status, Notice): Likewise.
3154         * modules/getdate (Status, Notice): Likewise.
3155         * modules/getopt (Status, Notice): Likewise.
3156         * modules/malloc (Status, Notice): Likewise.
3157         * modules/pipe (Status, Notice): Likewise.
3158         * modules/realloc (Status, Notice): Likewise.
3159         * modules/rename-dest-slash (Status, Notice): Likewise.
3160         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
3161         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
3162         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
3163         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
3164         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
3165
3166 2011-05-16  Bruno Haible  <bruno@clisp.org>
3167
3168         doc: List the target platforms.
3169         * doc/gnulib-intro.texi (Target Platforms): New section.
3170         * doc/gnulib.texi (Introduction): Update menu.
3171         * README (Portability guidelines): Refer to the new section. Update
3172         statement about oldest supported environment. Remove rationale why
3173         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
3174         unportable C89 function.
3175         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
3176         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
3177
3178 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
3179
3180         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
3181
3182 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
3183
3184         intprops-tests: new module
3185         * modules/intprops-tests, tests/test-intprops.c: New files.
3186
3187         intprops: add safe, portable integer overflow checking
3188         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
3189         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
3190         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
3191         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
3192         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
3193         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
3194         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
3195         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
3196         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
3197         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
3198         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
3199
3200 2011-05-12  James Youngman  <jay@gnu.org>
3201
3202         Add a test for glibc's Bugzilla bug #12378.
3203         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
3204         doesn't allow the literal matching of a lone "[" (which is
3205         required by POSIX).
3206         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
3207
3208 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
3209
3210         Sync glibc change fixing Bugzilla bug #12378.
3211         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
3212         beginning and fall back to matching as normal character if the
3213         string ends before the matching ']' is found.  This is what POSIX
3214         requires.
3215
3216 2011-05-13  Eric Blake  <eblake@redhat.com>
3217
3218         getcwd-lgpl: relax test for FreeBSD
3219         * doc/posix-functions/getcwd.texi (getcwd): Document portability
3220         issue.
3221         * tests/test-getcwd-lgpl.c (main): Relax test.
3222         Reported by Matthias Bolte.
3223
3224 2011-05-11  Eric Blake  <eblake@redhat.com>
3225
3226         test-fflush: silence compiler warning
3227         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
3228
3229 2011-05-11  Bruno Haible  <bruno@clisp.org>
3230
3231         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
3232         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
3233         * modules/canonicalize (Depends-on): Add 'nocrash'.
3234         * modules/canonicalize-lgpl (Depends-on): Likewise.
3235         * doc/posix-functions/realpath.texi: Update platforms list.
3236         Reported by Ryan Schmidt <ryandesign@macports.org>.
3237
3238 2011-05-11  Bruno Haible  <bruno@clisp.org>
3239
3240         group-member: Declare function in <unistd.h>.
3241         * lib/unistd.in.h (group_member): New declaration.
3242         * lib/group-member.h: Remove file.
3243         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
3244         * tests/test-unistd-c++.cc: Check signature of group_member.
3245         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
3246         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
3247         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
3248         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
3249         HAVE_GROUP_MEMBER.
3250         * modules/group-member (Files): Remove lib/group-member.h.
3251         (Depends-on): Add unistd. Specify conditions.
3252         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
3253         (Include): Change to <unistd.h>.
3254         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
3255         HAVE_GROUP_MEMBER.
3256         * NEWS: Mention the change.
3257         * lib/euidaccess.c: Don't include group-member.h.
3258
3259 2011-05-11  Bruno Haible  <bruno@clisp.org>
3260
3261         group-member: Document module.
3262         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
3263         module.
3264
3265 2011-05-11  Bruno Haible  <bruno@clisp.org>
3266
3267         fclose: Fix mistake earlier today.
3268         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
3269
3270 2011-05-11  Eric Blake  <eblake@redhat.com>
3271
3272         fclose: preserve fflush errors
3273         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
3274         Reported by Jim Meyering.
3275
3276         bootstrap: support a prereq of 'rpcgen -' on RHEL5
3277         * build-aux/bootstrap (check_versions): When no specific version
3278         is required, merely check that the app produces an exit status
3279         that indicates its existence.
3280
3281         maint.mk: drop redundant check
3282         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
3283         the same but better.
3284
3285 2011-05-11  Bruno Haible  <bruno@clisp.org>
3286
3287         fclose: Fix possible link error.
3288         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
3289         unregister_shadow_fd. Improve comments.
3290         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
3291         Eric Blake.
3292
3293 2011-05-11  Jim Meyering  <meyering@redhat.com>
3294
3295         maint.mk: improve "can not" detection and generalize rule name
3296         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
3297         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
3298         Use the same technique as in sc_prohibit_doubled_word, so that
3299         we recognize "can not" also when the words are separated by a newline.
3300         Suggested by Eric Blake.
3301         (perl_filename_lineno_text_): Define.  Factored out of...
3302         (prohibit_doubled_word_): ...here.  Use the new definition.
3303         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
3304         (prohibit_undesirable_word_seq_RE_): New overridable variable.
3305         (ignore_undesirable_word_sequence_RE_): New overridable variable.
3306
3307 2011-05-10  Eric Blake  <eblake@redhat.com>
3308
3309         fclose: avoid double close race when possible
3310         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
3311         all but WINDOWS_SOCKETS.
3312
3313 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
3314
3315         openat: correct new comment
3316         * lib/openat-proc.c (openat_proc_name): Correct the comment.
3317
3318 2011-05-10  Jim Meyering  <meyering@redhat.com>
3319
3320         openat: add comments
3321         * lib/openat-proc.c (openat_proc_name): Add comments,
3322         mostly from Eric Blake.
3323
3324 2011-05-09  Eric Blake  <eblake@redhat.com>
3325
3326         openat: reduce syscalls in first probe of /proc
3327         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
3328         be a directory.  Simplify the probe for .. bugs.
3329         * modules/openat (Depends-on): Drop same-inode.
3330         Reported by Bastien ROUCARIES.
3331
3332 2011-05-09  Jim Meyering  <meyering@redhat.com>
3333
3334         maint.mk: change semantics/name of tight_scope variables
3335         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
3336         Rename variables to align with semantics that make them more useful.
3337
3338         maint.mk: tweak new rule's name not to impinge
3339         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
3340         (sc_tight_scope): Use new rule name rather than $@-0.
3341
3342         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
3343         * top/maint.mk (sc_tight_scope): New rule.
3344         (sc_tight_scope-0): New rule, ifdef'd out.
3345         (_gl_TS_dir): Default.
3346         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
3347         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
3348
3349 2011-05-09  Simon Josefsson  <simon@josefsson.org>
3350
3351         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
3352         Haible <bruno@clisp.org>.
3353
3354 2011-05-08  Bruno Haible  <bruno@clisp.org>
3355
3356         Comments.
3357         * m4/isnanf.m4: Add comment.
3358         * m4/isnanl.m4: Likewise.
3359
3360 2011-05-08  Bruno Haible  <bruno@clisp.org>
3361
3362         glob: Remove obsolete macro.
3363         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
3364
3365 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
3366
3367         intprops: Sun C 5.11 supports __typeof__
3368         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
3369         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
3370         which is new.
3371         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
3372
3373         intprops: switch to usual gnulib indenting and naming
3374         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
3375         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
3376
3377         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
3378
3379 2011-05-08  Jim Meyering  <meyering@redhat.com>
3380
3381         maint.mk: suppress "Entering/Leaving directory" diag in announcement
3382         * top/maint.mk (release-prep): Use make's --no-print-directory
3383         option when generating the announcement.  This eliminates the
3384         pesky "make[2]: Entering/Leaving directory" diagnostics in the
3385         generated announcement template.
3386
3387 2011-05-08  Bruno Haible  <bruno@clisp.org>
3388
3389         tzset: Fix gettimeofday wrapper on Solaris 2.6.
3390         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
3391         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
3392
3393 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
3394
3395         ignore-value, verify: Omit include files from lib_SOURCES.
3396         * modules/ignore-value, modules/verify (Makefile.am):
3397         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
3398         that leads Automake to duplicate use of am__objects_... variables
3399         in Makefile.in.  See
3400         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
3401
3402 2011-05-07  Bruno Haible  <bruno@clisp.org>
3403
3404         fclose: Simplify autoconf macro.
3405         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
3406         defined.
3407
3408 2011-05-07  Bruno Haible  <bruno@clisp.org>
3409
3410         canonicalize-lgpl: Fix autoconf macro ordering bug.
3411         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
3412         gl_STDLIB_H_DEFAULTS.
3413
3414 2011-05-06  Eric Blake  <eblake@redhat.com>
3415
3416         maintainer-makefile: make sc_po_check easier to tune
3417         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
3418         to probe for strings, such as an alternate location for gnulib.
3419
3420         fclose: guarantee behavior on seekable stdin
3421         * modules/fclose (Depends-on): Add fflush.
3422         * doc/posix-functions/fclose.texi (fclose): Document this.
3423         * tests/test-fclose.c (main): Make test for this unconditional.
3424
3425 2011-05-06  Bruno Haible  <bruno@clisp.org>
3426
3427         fflush, fpurge: Relicense under LGPLv2+.
3428         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
3429         * modules/fpurge (License): Likewise.
3430         With permission from Eric Blake and Jim Meyering.
3431         Suggested by Eric Blake.
3432
3433 2011-05-06  Karl Berry  <karl@gnu.org>
3434
3435         * MODULES.html.sh (func_all_modules): remove exit.
3436
3437 2011-05-06  Jim Meyering  <meyering@redhat.com>
3438
3439         maint.mk: use info-gnu@ as the default only for a stable release
3440         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
3441         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
3442         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
3443         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
3444
3445 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3446
3447         assert-h: new module, which supports C1X-style static_assert
3448         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
3449         * lib/verify.h: Revamp so that this can be copied into assert.h,
3450         while retaining the ability to use it standalone as before.
3451         Rename private identifiers so as not to encroach on the
3452         standard C namespace, since this is now used by assert.h.
3453         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
3454         the old verify_true.
3455         (_GL_VERIFY_TRUE): New macro, with much of the contents of
3456         the old verify_true.  Use _GL_VERIFY_TYPE.
3457         (_GL_VERIFY): New macro, with much of the contents of the old verify.
3458         (static_assert): New macro, if _GL_STATIC_ASSERT_H
3459         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
3460         defined when this file is copied into the replacement assert.h.
3461         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
3462         and _Static_assert is not built in.
3463         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
3464         defined, and use the new macros mentioned above.
3465         * doc/posix-headers/assert.texi: Document this.
3466
3467 2011-05-05  Bruno Haible  <bruno@clisp.org>
3468
3469         fclose, fflush: Respect rules for use of AC_LIBOBJ.
3470         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
3471         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
3472         gl_REPLACE_FCLOSE here.
3473         * modules/fflush (Depends-on): Remove fclose.
3474         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
3475         combination with module 'fclose'.
3476
3477 2011-05-05  Bruno Haible  <bruno@clisp.org>
3478
3479         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
3480         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
3481         gl_FUNC_FFLUSH.
3482         (gl_FUNC_FFLUSH): Use it.
3483         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
3484         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
3485         gl_REPLACE_FSEEKO here.
3486
3487 2011-05-05  Bruno Haible  <bruno@clisp.org>
3488
3489         tzset: Relicense under LGPL.
3490         * modules/tzset (License): Change to LGPL.
3491         No agreement needed; it's a no-op.
3492
3493         strtoimax, strtoumax: Relicense under LGPL.
3494         * modules/strtoimax (License): Change to LGPL.
3495         * modules/strtoumax (License): Likewise.
3496         With permission from Jim Meyering, Paul Eggert:
3497         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
3498         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
3499
3500         getgroups: Relicense under LGPL.
3501         * modules/getgroups (License): Change to LGPL.
3502         With permission from Jim Meyering, Paul Eggert, Eric Blake:
3503         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
3504         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
3505         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
3506
3507         nanosleep: Relicense under LGPL.
3508         * modules/nanosleep (License): Change to LGPL.
3509         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
3510         Haible:
3511         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
3512         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
3513         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
3514         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
3515
3516         futimens: Relicense under LGPL.
3517         * modules/futimens (License): Change to LGPL.
3518         With permission from Eric Blake:
3519         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
3520
3521         fflush: Relicense under LGPL.
3522         * modules/fflush (License): Change to LGPL.
3523         With permission from Eric Blake, Bruno Haible, Jim Meyering:
3524         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
3525         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
3526         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
3527
3528         tmpfile: Relicense under LGPL.
3529         * modules/tmpfile (License): Change to LGPL.
3530         With permission from Ben Pfaff:
3531         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
3532
3533         isfinite: Relicense under LGPL.
3534         * modules/isfinite (License): Change to LGPL.
3535         With permission from Ben Pfaff, Bruno Haible:
3536         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
3537         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
3538
3539         acosl..tanl: Relicense under LGPL.
3540         * modules/acosl (License): Change to LGPL.
3541         * modules/asinl (License): Likewise.
3542         * modules/atanl (License): Likewise.
3543         * modules/cosl (License): Likewise.
3544         * modules/expl (License): Likewise.
3545         * modules/logl (License): Likewise.
3546         * modules/sinl (License): Likewise.
3547         * modules/sqrtl (License): Likewise.
3548         * modules/tanl (License): Likewise.
3549         Source code originally from glibc and Paolo Bonzini. Agreements:
3550         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
3551         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
3552
3553 2011-05-05  Bruno Haible  <bruno@clisp.org>
3554
3555         signal: Define sighandler_t.
3556         * lib/signal.in.h (sighandler_t): New type.
3557         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
3558         whether sighandler_t is defined.
3559         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
3560         * modules/signal (Depends-on): Add extensions.
3561         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
3562         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
3563         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
3564
3565 2011-05-05  Eric Blake  <eblake@redhat.com>
3566
3567         maint: remove useless REPLACE_*_H macros
3568         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
3569         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
3570         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
3571         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
3572         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
3573         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
3574         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
3575         * m4/btowc.m4: Update callers.
3576         * m4/dirfd.m4: Likewise.
3577         * m4/duplocale.m4: Likewise.
3578         * m4/fchdir.m4: Likewise.
3579         * m4/fdopendir.m4: Likewise.
3580         * m4/inet_ntop.m4: Likewise.
3581         * m4/inet_pton.m4: Likewise.
3582         * m4/ioctl.m4: Likewise.
3583         * m4/mbrlen.m4: Likewise.
3584         * m4/mbrtowc.m4: Likewise.
3585         * m4/mbsinit.m4: Likewise.
3586         * m4/mbsnrtowcs.m4: Likewise.
3587         * m4/mbsrtowcs.m4: Likewise.
3588         * m4/poll.m4: Likewise.
3589         * m4/setlocale.m4: Likewise.
3590         * m4/wcrtomb.m4: Likewise.
3591         * m4/wcsnrtombs.m4: Likewise.
3592         * m4/wcsrtombs.m4: Likewise.
3593         * m4/wctob.m4: Likewise.
3594         * m4/wcwidth.m4: Likewise.
3595         * modules/posix_spawn: Likewise.
3596         * modules/posix_spawn_file_actions_addclose: Likewise.
3597         * modules/posix_spawn_file_actions_adddup2: Likewise.
3598         * modules/posix_spawn_file_actions_addopen: Likewise.
3599         * modules/posix_spawn_file_actions_destroy: Likewise.
3600         * modules/posix_spawn_file_actions_init: Likewise.
3601         * modules/posix_spawnattr_destroy: Likewise.
3602         * modules/posix_spawnattr_getflags: Likewise.
3603         * modules/posix_spawnattr_getpgroup: Likewise.
3604         * modules/posix_spawnattr_getschedparam: Likewise.
3605         * modules/posix_spawnattr_getschedpolicy: Likewise.
3606         * modules/posix_spawnattr_getsigdefault: Likewise.
3607         * modules/posix_spawnattr_getsigmask: Likewise.
3608         * modules/posix_spawnattr_init: Likewise.
3609         * modules/posix_spawnattr_setflags: Likewise.
3610         * modules/posix_spawnattr_setpgroup: Likewise.
3611         * modules/posix_spawnattr_setschedparam: Likewise.
3612         * modules/posix_spawnattr_setschedpolicy: Likewise.
3613         * modules/posix_spawnattr_setsigdefault: Likewise.
3614         * modules/posix_spawnattr_setsigmask: Likewise.
3615         * modules/posix_spawnp: Likewise.
3616
3617 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
3618
3619         Add option to do-release-commit-and-tag to specify branch.
3620         * build-aux/do-release-commit-and-tag: Add --branch.
3621
3622 2011-05-03  Bruno Haible  <bruno@clisp.org>
3623
3624         Avoid unnecessary compilation units, through conditional dependencies.
3625         * modules/accept (Depends-on): Add conditions to the dependencies.
3626         * modules/acosl (Depends-on): Likewise.
3627         * modules/argz (Depends-on): Likewise.
3628         * modules/asinl (Depends-on): Likewise.
3629         * modules/atanl (Depends-on): Likewise.
3630         * modules/atoll (Depends-on): Likewise.
3631         * modules/bind (Depends-on): Likewise.
3632         * modules/btowc (Depends-on): Likewise.
3633         * modules/canonicalize-lgpl (Depends-on): Likewise.
3634         * modules/ceil (Depends-on): Likewise.
3635         * modules/ceilf (Depends-on): Likewise.
3636         * modules/ceill (Depends-on): Likewise.
3637         * modules/chdir-long (Depends-on): Likewise.
3638         * modules/chown (Depends-on): Likewise.
3639         * modules/close (Depends-on): Likewise.
3640         * modules/connect (Depends-on): Likewise.
3641         * modules/cosl (Depends-on): Likewise.
3642         * modules/dirfd (Depends-on): Likewise.
3643         * modules/dprintf (Depends-on): Likewise.
3644         * modules/dprintf-posix (Depends-on): Likewise.
3645         * modules/error (Depends-on): Likewise.
3646         * modules/euidaccess (Depends-on): Likewise.
3647         * modules/expl (Depends-on): Likewise.
3648         * modules/faccessat (Depends-on): Likewise.
3649         * modules/fchdir (Depends-on): Likewise.
3650         * modules/fclose (Depends-on): Likewise.
3651         * modules/fcntl (Depends-on): Likewise.
3652         * modules/fdopendir (Depends-on): Likewise.
3653         * modules/fflush (Depends-on): Likewise.
3654         * modules/floor (Depends-on): Likewise.
3655         * modules/floorf (Depends-on): Likewise.
3656         * modules/floorl (Depends-on): Likewise.
3657         * modules/fnmatch (Depends-on): Likewise.
3658         * modules/fopen (Depends-on): Likewise.
3659         * modules/fprintf-posix (Depends-on): Likewise.
3660         * modules/frexp (Depends-on): Likewise.
3661         * modules/frexp-nolibm (Depends-on): Likewise.
3662         * modules/frexpl (Depends-on): Likewise.
3663         * modules/frexpl-nolibm (Depends-on): Likewise.
3664         * modules/fseek (Depends-on): Likewise.
3665         * modules/fsusage (Depends-on): Likewise.
3666         * modules/ftell (Depends-on): Likewise.
3667         * modules/ftello (Depends-on): Likewise.
3668         * modules/futimens (Depends-on): Likewise.
3669         * modules/getcwd (Depends-on): Likewise.
3670         * modules/getcwd-lgpl (Depends-on): Likewise.
3671         * modules/getdelim (Depends-on): Likewise.
3672         * modules/getdomainname (Depends-on): Likewise.
3673         * modules/getgroups (Depends-on): Likewise.
3674         * modules/gethostname (Depends-on): Likewise.
3675         * modules/getline (Depends-on): Likewise.
3676         * modules/getlogin_r (Depends-on): Likewise.
3677         * modules/getopt-posix (Depends-on): Likewise.
3678         * modules/getpeername (Depends-on): Likewise.
3679         * modules/getsockname (Depends-on): Likewise.
3680         * modules/getsockopt (Depends-on): Likewise.
3681         * modules/getsubopt (Depends-on): Likewise.
3682         * modules/getusershell (Depends-on): Likewise.
3683         * modules/glob (Depends-on): Likewise.
3684         * modules/grantpt (Depends-on): Likewise.
3685         * modules/iconv_open (Depends-on): Likewise.
3686         * modules/iconv_open-utf (Depends-on): Likewise.
3687         * modules/inet_ntop (Depends-on): Likewise.
3688         * modules/inet_pton (Depends-on): Likewise.
3689         * modules/ioctl (Depends-on): Likewise.
3690         * modules/isapipe (Depends-on): Likewise.
3691         * modules/isfinite (Depends-on): Likewise.
3692         * modules/isinf (Depends-on): Likewise.
3693         * modules/lchown (Depends-on): Likewise.
3694         * modules/ldexpl (Depends-on): Likewise.
3695         * modules/link (Depends-on): Likewise.
3696         * modules/linkat (Depends-on): Likewise.
3697         * modules/listen (Depends-on): Likewise.
3698         * modules/logl (Depends-on): Likewise.
3699         * modules/lstat (Depends-on): Likewise.
3700         * modules/mbrlen (Depends-on): Likewise.
3701         * modules/mbrtowc (Depends-on): Likewise.
3702         * modules/mbsinit (Depends-on): Likewise.
3703         * modules/mbsnrtowcs (Depends-on): Likewise.
3704         * modules/mbsrtowcs (Depends-on): Likewise.
3705         * modules/mbtowc (Depends-on): Likewise.
3706         * modules/memcmp (Depends-on): Likewise.
3707         * modules/mkdir (Depends-on): Likewise.
3708         * modules/mkdtemp (Depends-on): Likewise.
3709         * modules/mkfifo (Depends-on): Likewise.
3710         * modules/mkfifoat (Depends-on): Likewise.
3711         * modules/mknod (Depends-on): Likewise.
3712         * modules/mkostemp (Depends-on): Likewise.
3713         * modules/mkostemps (Depends-on): Likewise.
3714         * modules/mkstemp (Depends-on): Likewise.
3715         * modules/mkstemps (Depends-on): Likewise.
3716         * modules/mktime (Depends-on): Likewise.
3717         * modules/nanosleep (Depends-on): Likewise.
3718         * modules/open (Depends-on): Likewise.
3719         * modules/openat (Depends-on): Likewise.
3720         * modules/perror (Depends-on): Likewise.
3721         * modules/poll (Depends-on): Likewise.
3722         * modules/popen (Depends-on): Likewise.
3723         * modules/posix_spawn (Depends-on): Likewise.
3724         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
3725         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
3726         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
3727         * modules/posix_spawnp (Depends-on): Likewise.
3728         * modules/pread (Depends-on): Likewise.
3729         * modules/printf-posix (Depends-on): Likewise.
3730         * modules/ptsname (Depends-on): Likewise.
3731         * modules/putenv (Depends-on): Likewise.
3732         * modules/pwrite (Depends-on): Likewise.
3733         * modules/readline (Depends-on): Likewise.
3734         * modules/readlink (Depends-on): Likewise.
3735         * modules/readlinkat (Depends-on): Likewise.
3736         * modules/recv (Depends-on): Likewise.
3737         * modules/recvfrom (Depends-on): Likewise.
3738         * modules/regex (Depends-on): Likewise.
3739         * modules/remove (Depends-on): Likewise.
3740         * modules/rename (Depends-on): Likewise.
3741         * modules/renameat (Depends-on): Likewise.
3742         * modules/rmdir (Depends-on): Likewise.
3743         * modules/round (Depends-on): Likewise.
3744         * modules/roundf (Depends-on): Likewise.
3745         * modules/roundl (Depends-on): Likewise.
3746         * modules/rpmatch (Depends-on): Likewise.
3747         * modules/select (Depends-on): Likewise.
3748         * modules/send (Depends-on): Likewise.
3749         * modules/sendto (Depends-on): Likewise.
3750         * modules/setenv (Depends-on): Likewise.
3751         * modules/setlocale (Depends-on): Likewise.
3752         * modules/setsockopt (Depends-on): Likewise.
3753         * modules/shutdown (Depends-on): Likewise.
3754         * modules/sigaction (Depends-on): Likewise.
3755         * modules/signbit (Depends-on): Likewise.
3756         * modules/sigprocmask (Depends-on): Likewise.
3757         * modules/sinl (Depends-on): Likewise.
3758         * modules/sleep (Depends-on): Likewise.
3759         * modules/snprintf (Depends-on): Likewise.
3760         * modules/snprintf-posix (Depends-on): Likewise.
3761         * modules/socket (Depends-on): Likewise.
3762         * modules/sprintf-posix (Depends-on): Likewise.
3763         * modules/sqrtl (Depends-on): Likewise.
3764         * modules/stat (Depends-on): Likewise.
3765         * modules/strchrnul (Depends-on): Likewise.
3766         * modules/strdup-posix (Depends-on): Likewise.
3767         * modules/strerror (Depends-on): Likewise.
3768         * modules/strerror_r-posix (Depends-on): Likewise.
3769         * modules/strndup (Depends-on): Likewise.
3770         * modules/strnlen (Depends-on): Likewise.
3771         * modules/strptime (Depends-on): Likewise.
3772         * modules/strsep (Depends-on): Likewise.
3773         * modules/strsignal (Depends-on): Likewise.
3774         * modules/strstr-simple (Depends-on): Likewise.
3775         * modules/strtod (Depends-on): Likewise.
3776         * modules/strtoimax (Depends-on): Likewise.
3777         * modules/strtok_r (Depends-on): Likewise.
3778         * modules/strtoumax (Depends-on): Likewise.
3779         * modules/symlink (Depends-on): Likewise.
3780         * modules/symlinkat (Depends-on): Likewise.
3781         * modules/tanl (Depends-on): Likewise.
3782         * modules/tcgetsid (Depends-on): Likewise.
3783         * modules/tmpfile (Depends-on): Likewise.
3784         * modules/trunc (Depends-on): Likewise.
3785         * modules/truncf (Depends-on): Likewise.
3786         * modules/truncl (Depends-on): Likewise.
3787         * modules/uname (Depends-on): Likewise.
3788         * modules/unlink (Depends-on): Likewise.
3789         * modules/unlockpt (Depends-on): Likewise.
3790         * modules/unsetenv (Depends-on): Likewise.
3791         * modules/usleep (Depends-on): Likewise.
3792         * modules/utimensat (Depends-on): Likewise.
3793         * modules/vasprintf (Depends-on): Likewise.
3794         * modules/vdprintf (Depends-on): Likewise.
3795         * modules/vdprintf-posix (Depends-on): Likewise.
3796         * modules/vfprintf-posix (Depends-on): Likewise.
3797         * modules/vprintf-posix (Depends-on): Likewise.
3798         * modules/vsnprintf (Depends-on): Likewise.
3799         * modules/vsnprintf-posix (Depends-on): Likewise.
3800         * modules/vsprintf-posix (Depends-on): Likewise.
3801         * modules/wcrtomb (Depends-on): Likewise.
3802         * modules/wcscasecmp (Depends-on): Likewise.
3803         * modules/wcscspn (Depends-on): Likewise.
3804         * modules/wcsdup (Depends-on): Likewise.
3805         * modules/wcsncasecmp (Depends-on): Likewise.
3806         * modules/wcsnrtombs (Depends-on): Likewise.
3807         * modules/wcspbrk (Depends-on): Likewise.
3808         * modules/wcsrtombs (Depends-on): Likewise.
3809         * modules/wcsspn (Depends-on): Likewise.
3810         * modules/wcsstr (Depends-on): Likewise.
3811         * modules/wcstok (Depends-on): Likewise.
3812         * modules/wcswidth (Depends-on): Likewise.
3813         * modules/wctob (Depends-on): Likewise.
3814         * modules/wctomb (Depends-on): Likewise.
3815         * modules/wctype (Depends-on): Likewise.
3816         * modules/wcwidth (Depends-on): Likewise.
3817         * modules/write (Depends-on): Likewise.
3818
3819 2011-05-03  Bruno Haible  <bruno@clisp.org>
3820
3821         Support for conditional dependencies.
3822         * doc/gnulib.texi (Module description): Document the syntax of
3823         conditional dependencies.
3824         * gnulib-tool: New option --conditional-dependencies.
3825         (func_usage): Document it.
3826         (cond_dependencies): New variable.
3827         (func_get_automake_snippet_conditional,
3828         func_get_automake_snippet_unconditional): New functions, extracted from
3829         func_get_automake_snippet.
3830         (func_get_automake_snippet): Use them.
3831         (sed_first_32_chars): New variable.
3832         (func_module_shellfunc_name): New function.
3833         (func_module_shellvar_name): New function.
3834         (func_module_conditional_name): New function.
3835         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
3836         func_cond_module_condition): New functions.
3837         (func_modules_transitive_closure): Add support for conditional
3838         dependencies.
3839         (func_emit_lib_Makefile_am): For a conditional module, enclose the
3840         conditional automake snippet in an automake conditional.
3841         (func_emit_autoconf_snippets): Emit shell functions that contain the
3842         code for conditional modules.
3843         (func_import, func_create_testdir): Update specification.
3844
3845 2011-05-03  Eric Blake  <eblake@redhat.com>
3846
3847         test-getaddrinfo: report error information
3848         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
3849
3850 2011-05-03  Jim Meyering  <meyering@redhat.com>
3851
3852         bootstrap: avoid build failure when $GZIP is set
3853         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
3854         program name.  If defined at all, it is supposed to list gzip options.
3855         Reported by Alan Curry in http://debbugs.gnu.org/8609
3856
3857 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
3858
3859         readme-release: new module with release instructions
3860         * modules/readme-release: New module.
3861         * top/README-release: New file, from coreutils, grep, diffutils.
3862         * MODULES.html.sh (Support for maintaining and releasing): Add it.
3863
3864 2011-05-02  Eric Blake  <eblake@redhat.com>
3865
3866         fflush: also replace fclose when fixing fflush
3867         * modules/fflush (Depends-on): Add fclose.
3868         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
3869         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
3870         memstreams with no backing fd.
3871         * doc/posix-functions/fclose.texi (fclose): Document the use of
3872         fflush module to fix the bug.
3873         * tests/test-fclose.c (main): Relax test when fclose is used in
3874         isolation.
3875
3876         fclose: add some tests
3877         * modules/fclose-tests: New test module.
3878         * tests/test-fclose.c: New file.
3879         * doc/posix-functions/fclose.texi (fclose): Document the bug.
3880
3881         fclose: reduced dependencies
3882         * modules/fclose (Depends-on): Switch from fflush/fseeko to
3883         simpler lseek.
3884         * lib/fclose.c (rpl_fclose): Likewise.
3885         Reported by Simon Josefsson.
3886
3887         exit: drop remaining clients
3888         * modules/argmatch (Depends-on): Replace exit with stdlib.
3889         * modules/copy-file (Depends-on): Likewise.
3890         * modules/execute (Depends-on): Likewise.
3891         * modules/exitfail (Depends-on): Likewise.
3892         * modules/obstack (Depends-on): Likewise.
3893         * modules/pagealign_alloc (Depends-on): Likewise.
3894         * modules/pipe-filter-gi (Depends-on): Likewise.
3895         * modules/pipe-filter-ii (Depends-on): Likewise.
3896         * modules/savewd (Depends-on): Likewise.
3897         * modules/spawn-pipe (Depends-on): Likewise.
3898         * modules/wait-process (Depends-on): Likewise.
3899         * modules/xsetenv (Depends-on): Likewise.
3900         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
3901         * modules/git-merge-changelog (Depends-on): Likewise.
3902         * modules/long-options (Depends-on): Likewise.
3903         * modules/pt_chown (Depends-on): Likewise.
3904         * modules/sysexits (Depends-on): Likewise.
3905
3906         freading: relax license from LGPLv3+ to LGPLv2+
3907         * modules/freading (License): Relax LGPL version.
3908
3909 2011-05-02  Bruno Haible  <bruno@clisp.org>
3910
3911         fchdir: Remove unused dependencies.
3912         * modules/fchdir (Depends-on): Remove include_next.
3913
3914 2011-05-02  Bruno Haible  <bruno@clisp.org>
3915
3916         gnulib-tool: Refactor.
3917         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
3918         from func_emit_autoconf_snippets.
3919         (func_emit_autoconf_snippets): Use it.
3920
3921 2011-05-02  Simon Josefsson  <simon@josefsson.org>
3922
3923         * NEWS: Document removal of 'exit'.
3924         * modules/exit: Remove file.
3925
3926 2011-05-01  Bruno Haible  <bruno@clisp.org>
3927
3928         Update DEPENDENCIES.
3929         * DEPENDENCIES (gettext): Recommend the newest release.
3930         Reported by Simon Josefsson.
3931
3932 2011-05-01  Bruno Haible  <bruno@clisp.org>
3933
3934         gnulib-tool: Reduce code duplication.
3935         * gnulib-tool (func_emit_autoconf_snippets): New function.
3936         (func_import, func_create_testdir): Use it.
3937
3938 2011-04-30  Eric Blake  <eblake@redhat.com>
3939
3940         fclose: don't fail on non-seekable input stream
3941         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
3942         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
3943         since fflush is allowed to fail in that case.
3944
3945 2011-04-30  Bruno Haible  <bruno@clisp.org>
3946
3947         dup3: cleanup
3948         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
3949
3950 2011-04-30  Bruno Haible  <bruno@clisp.org>
3951
3952         netdb: Make it work in C++ mode.
3953         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
3954         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
3955         module.
3956         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
3957         gl_MODULE_INDICATOR_FOR_TESTS.
3958         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
3959         * modules/netdb-c++-tests: New file.
3960         * tests/test-netdb-c++.cc: New file.
3961
3962 2011-04-30  Bruno Haible  <bruno@clisp.org>
3963
3964         New modules 'vfscanf', 'vscanf'.
3965         * modules/vfscanf: New file.
3966         * modules/vscanf: New file.
3967         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
3968         here.
3969         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
3970         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
3971
3972 2011-04-30  Bruno Haible  <bruno@clisp.org>
3973
3974         passfd: Add comments.
3975         * lib/passfd.c: Add comments about platforms.
3976
3977 2011-04-30  Bruno Haible  <bruno@clisp.org>
3978
3979         sys_uio: Make <sys/uio.h> self-contained.
3980         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
3981         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
3982
3983 2011-04-30  Bruno Haible  <bruno@clisp.org>
3984
3985         sys_socket: Ensure 'struct iovec' definition.
3986         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
3987         <sys/socket.h>.
3988         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
3989
3990 2011-04-30  Bruno Haible  <bruno@clisp.org>
3991
3992         sys_uio: Protect definition of 'struct iovec'.
3993         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
3994         it as a C struct.
3995
3996 2011-04-30  Bruno Haible  <bruno@clisp.org>
3997
3998         manywarnings: fix indentation
3999         * m4/manywarnings.m4: Indent by 2 spaces consistently.
4000
4001 2011-04-30  Pádraig Brady <P@draigBrady.com>
4002
4003         manywarnings: add -Wno-missing-field-initializers if needed.
4004         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
4005         option if it's needed to allow initialization with { 0, }
4006
4007 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
4008
4009         announce-gen: cosmetic improvement
4010         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
4011
4012 2011-04-29  Jim Meyering  <meyering@redhat.com>
4013
4014         vc-list-files: indent with spaces, not TABs
4015         * build-aux/vc-list-files: Convert leading TABs to spaces,
4016         to match the style of most other files in gnulib.
4017
4018         announce-gen: indent with spaces, not TABs
4019         * build-aux/announce-gen: Convert all TABs to spaces, to match
4020         the style of most other files in gnulib.
4021
4022 2011-04-29  Eric Blake  <eblake@redhat.com>
4023
4024         quotearg: avoid uninitialized variable use
4025         * lib/quotearg.c (quoting_options_from_style): Initialize
4026         remaining fields, and ensure that custom styles are only used via
4027         quoting_options rather than quoting_style.
4028
4029 2011-04-29  Jim Meyering  <meyering@redhat.com>
4030
4031         maint.mk: remove unused VC-tag variable
4032         * top/maint.mk (VC-tag): Remove unused variable.
4033
4034 2011-04-29  Bruno Haible  <bruno@clisp.org>
4035
4036         netdb: fix gai_strerror replacements
4037         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
4038         * modules/netdb: Substitute it.
4039
4040 2011-04-29  Jim Meyering  <meyering@redhat.com>
4041
4042         test-getcwd.c: avoid new set-but-not-used warning
4043         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
4044         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
4045         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
4046         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
4047
4048         test-hash.c: avoid a new shadowing warning
4049         * tests/test-hash.c (main): Don't shadow "dup".
4050
4051 2011-04-28  Eric Blake  <eblake@redhat.com>
4052
4053         getaddrinfo: fix gai_strerror signature
4054         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
4055         and work around mingw with UNICODE defined.
4056         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
4057         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
4058         * modules/netdb (Makefile.am): Substitute it.
4059         * lib/netdb.in.h (gai_strerror): Declare replacement.
4060         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
4061         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
4062         the fix.
4063
4064         getsockopt: avoid compiler warning
4065         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
4066         Reported by Matthias Bolte.
4067
4068         tests: drop unused link dependency
4069         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
4070         * modules/dirent-safer-tests (Makefile.am): Likewise.
4071         * modules/fdopendir-tests (Makefile.am): Likewise.
4072         * modules/mkfifoat-tests (Makefile.am): Likewise.
4073         * modules/openat-safer-tests (Makefile.am): Likewise.
4074         * modules/openat-tests (Makefile.am): Likewise.
4075         * modules/readlinkat-tests (Makefile.am): Likewise.
4076         * modules/symlinkat-tests (Makefile.am): Likewise.
4077         * modules/linkat-tests (Makefile.am): Likewise.
4078         (Depends-on): Switch to filenamecat-lgpl.
4079         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
4080         LIBINTL.
4081         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
4082         * tests/test-linkat.c (main): Don't require xalloc.
4083
4084         hash, mgetgroups: drop xalloc dependency
4085         * lib/hash.c (includes): Adjust includes.
4086         * lib/mgetgroups.c (includes): Likewise.
4087         (xgetgroups): Move...
4088         * lib/xgetgroups.c: ...to new file.
4089         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
4090         * modules/xgetgroups: New file, split from...
4091         * modules/mgetgroups: ...here.
4092         (Depends-on): Add xalloc-oversized.
4093         * modules/hash (Depends-on): Likewise.
4094         * modules/hash-tests (Depends-on): Drop xalloc.
4095         (test_hash_LDADD): Drop unused library.
4096         * tests/test-hash.c (main): Break xalloc dependency.
4097         (includes): Drop unused include.
4098
4099         xalloc-oversized: new module
4100         * modules/xalloc-oversized: New module.
4101         * modules/xalloc (Depends-on): Add it.
4102         * lib/xalloc.h (xalloc_oversized): Move...
4103         * lib/xalloc-oversized.h: ...into new file.
4104
4105         utimecmp: drop dependency on xmalloc
4106         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
4107         due to memory pressure.
4108         * modules/utimecmp (Depends-on): Drop xalloc.
4109
4110 2011-04-27  Eric Blake  <eblake@redhat.com>
4111
4112         getcwd: fix mingw bugs
4113         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
4114         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
4115         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
4116
4117 2011-04-27  Bruno Haible  <bruno@clisp.org>
4118
4119         mkstemps: Ensure declaration on MacOS X 10.5.
4120         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
4121         * doc/glibc-functions/mkstemps.texi: Document header file problem on
4122         MacOS X.
4123
4124 2011-04-27  Bruno Haible  <bruno@clisp.org>
4125
4126         mkstemp: More documentation.
4127         * doc/posix-functions/mkstemp.texi: Document header file problem on
4128         MacOS X.
4129
4130 2011-04-27  Bruno Haible  <bruno@clisp.org>
4131
4132         mkstemp: Tweak configure message when cross-compiling.
4133         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
4134         result as a guess.
4135
4136 2011-04-27  Bruno Haible  <bruno@clisp.org>
4137
4138         clean-temp: Clarify what it does.
4139         * lib/clean-temp.h: Add more comments.
4140         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
4141         module.
4142         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
4143         * doc/glibc-functions/mkstemps.texi: Likewise.
4144         * doc/glibc-functions/mkostemps.texi: Likewise.
4145
4146 2011-04-27  Eric Blake  <eblake@redhat.com>
4147
4148         fchdir: avoid extra chdir and fix test
4149         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
4150         getcwd-lgpl.
4151         * lib/fchdir.c (get_name): Any absolute name will do; it does not
4152         have to be canonical.
4153         (canonicalize_file_name): Drop unused macro.
4154         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
4155
4156         filenamecat-lgpl: fix licence
4157         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
4158         when it was first created.
4159
4160         linkat, renameat: add missing dependency
4161         * modules/linkat (Depends-on): Require getcwd-lgpl.
4162         * modules/renameat (Depends-on): Likewise.
4163
4164         tests: reduce dependencies
4165         * tests/test-linkat.c (main): Use lighter-weight getcwd.
4166         * tests/test-renameat.c (main): Likewise.
4167         * modules/linkat-tests (Depends-on): Relax dependency.
4168         * modules/renameat-tests (Depends-on): Likewise.
4169         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
4170         dependency explicit.
4171
4172         save-cwd: reduce default dependency
4173         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
4174         * lib/save-cwd.c: Update comments.
4175         * NEWS: Document the semantic change.
4176
4177         getcwd: enhance tests
4178         * tests/test-getcwd-lgpl.c: New file, taken from...
4179         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
4180         repeat long path stress tests from m4 probe.
4181         * modules/getcwd-lgpl-tests: New module.
4182         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
4183         * m4/getcwd-abort-bug.m4: Update comment.
4184         * m4/getcwd-path-max.m4: Likewise.
4185
4186         getcwd-lgpl: new module
4187         * modules/getcwd-lgpl: New module.
4188         * lib/getcwd-lgpl.c: New file.
4189         * doc/posix-functions/getcwd.texi (getcwd): Document it.
4190         * MODULES.html.sh (lacking POSIX:2008): Likewise.
4191         * modules/getcwd (configure.ac): Set C witness.
4192         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
4193
4194         getcwd: tweak comments
4195         * m4/getcwd-abort-bug.m4: Fix comments.
4196         * m4/getcwd-path-max.m4: Likewise.
4197         * m4/getcwd.m4: Likewise.
4198
4199 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
4200         and Eric Blake  <eblake@redhat.com>
4201
4202         mkstemp: replace if system version uses wrong permissions
4203         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
4204         read/write mode bits set in file created by mkstemp.
4205         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
4206
4207 2011-04-27  Eric Blake  <eblake@redhat.com>
4208
4209         passfd: avoid compiler warning
4210         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
4211         Reported by Laine Stump.
4212
4213 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
4214
4215         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
4216         required by the NetBSD (and perhaps other 4.4BSD derived) join.
4217
4218 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
4219         and Eric Blake  <eblake@redhat.com>
4220
4221         mkstemp: mention clean-temp module
4222         * lib/mkstemp.c: Add comment.
4223         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
4224
4225 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
4226
4227         inttypes: also provide default values for 32-bit tests
4228         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
4229         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
4230
4231 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
4232
4233         strtoumax: remove dependency on strtoimax
4234         This is like the strtoull change of yesterday.
4235         * modules/strtoumax (Files): Add lib/strtoimax.c.
4236         (Depends-on): Remove strtoimax and add verify.
4237
4238         inttypes-incomplete: new module
4239         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
4240         all but the PRI* and SCN* parts of gl_INTTYPES_H.
4241         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
4242         of gl_INTTYPES_H.
4243         (gl_INTTYPES_H): Rewrite in terms of these new macros.
4244         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
4245         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
4246         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
4247         * modules/strtoumax, modules/xstrtol (Depends-on):
4248         Depend on inttypes-incomplete, not inttypes.
4249         * modules/inttypes-incomplete: New module, containing the contents
4250         of the old modules/inttypes module, except that the Files: section
4251         omits m4/inttypes-pri.m4, and the configure.ac section invokes
4252         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
4253         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
4254         (Depends-on): Depend only on inttypes-incomplete.
4255         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
4256
4257         inttypes: omit now-redundant strtoimax and strtoumax work
4258         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
4259         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
4260
4261         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
4262         This supports apps that need pointers to strtoimax and strtoumax,
4263         and ports to HP-UX 11.00 64.bit, which has macros that expand to
4264         nonexistent functions.  See
4265         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
4266         et seq.
4267         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
4268         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
4269         a macro.
4270         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
4271
4272 2011-04-25  Simon Josefsson  <simon@josefsson.org>
4273
4274         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
4275
4276 2011-04-25  Bruno Haible  <bruno@clisp.org>
4277
4278         strtol, strtoul: Mark modules as obsolete.
4279         * modules/strtol (Status, Notice): New sections.
4280         * modules/strtoul (Status, Notice): New sections.
4281
4282 2011-04-25  Bruno Haible  <bruno@clisp.org>
4283
4284         strtod: Remove check for strtod, unless supporting old platforms.
4285         * modules/strtod-obsolete: New file.
4286         * m4/strtod-obsolete.m4: New file.
4287         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
4288         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
4289         * modules/strtod (Depends-on): Add strtod-obsolete.
4290         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
4291
4292 2011-04-25  Bruno Haible  <bruno@clisp.org>
4293
4294         strcase: Make module obsolete.
4295         * modules/strcase (Status, Notice): New sections.
4296
4297 2011-04-25  Bruno Haible  <bruno@clisp.org>
4298
4299         dup2: Remove check for dup2, unless supporting old obsolete platforms.
4300         * modules/dup2-obsolete: New file.
4301         * m4/dup2-obsolete.m4: New file.
4302         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
4303         gl_FUNC_DUP2_OBSOLETE is not also defined.
4304         * modules/dup2 (Depends-on): Add dup2-obsolete.
4305         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
4306
4307 2011-04-25  Bruno Haible  <bruno@clisp.org>
4308
4309         strnlen: Avoid memchr related link error on old obsolete platforms.
4310         * modules/memchr-obsolete: New file.
4311         * m4/memchr-obsolete.m4: New file.
4312         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
4313         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
4314         * modules/memchr (Depends-on): Add memchr-obsolete.
4315         * modules/strnlen (Depends-on): Likewise.
4316         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
4317
4318 2011-04-25  Jim Meyering  <meyering@redhat.com>
4319
4320         maint.mk: makefile_at_at_check extend and clean up
4321         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
4322         in addition to */Makefile.am.
4323         Exempt legitimate uses of @VAR@ notation, e.g.,
4324         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
4325         Remove obsolete coreutils-specific comment.
4326         Prompted by discussion here:
4327         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
4328
4329 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
4330
4331         strtoul: remove dependency on strtol
4332         This is so that 'configure' need not check for strtol merely because
4333         the application needs strtoul.
4334         * modules/strtoul (Files): Add lib/strtol.c.
4335         (Depends-on): Remove strtol.
4336
4337         strtoull: remove dependency on strtoul
4338         This is like the strtoll change.
4339         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
4340         (Depends-on): Remove strtoul.
4341
4342         strtoll: remove dependency on strtol
4343         This is so that 'configure' need not check for strtol merely because
4344         the application needs strtoll.
4345         * modules/strtoll (Files): Add lib/strtol.c.
4346         (Depends-on): Remove strtol.
4347
4348 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4349
4350         inttypes: Move some configure check to module 'imaxdiv'.
4351         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
4352         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
4353         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
4354
4355 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4356
4357         inttypes: Move some configure check to module 'imaxabs'.
4358         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
4359         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
4360         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
4361
4362 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4363
4364         inttypes: Remove configure tests that are not needed since 2009-12-31.
4365         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
4366         gl_cv_header_working_inttypes_h.
4367
4368 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4369
4370         * modules/strnlen (Depends-on): Remove memchr.
4371         The strnlen implementation doesn't need the memchr module's fixes; see
4372         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
4373
4374         strtol: remove dependency on wchar
4375         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
4376         * modules/strtol (Depends-on): Remove wchar.
4377
4378 2011-04-21  Eric Blake  <eblake@redhat.com>
4379
4380         passfd: fix test regression on Linux
4381         * modules/passfd-tests (configure.ac): Correct socketpair check.
4382
4383         passfd: speed up configure and drop unused code
4384         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
4385         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
4386         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
4387         Instead of probing at configure for unix_scm_rights_bsd44_way,
4388         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
4389         check to a struct member probe.
4390         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
4391         (sendfd, recvfd): Update preprocessor checks.
4392         * modules/passfd (Files): Reflect rename, and drop unused file.
4393         (Depends-on): Drop unused dependency.
4394
4395         passfd: allow compilation on mingw
4396         * modules/sys_socket (Depends-on): Add sys_uio.
4397         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
4398         iovec and a minimal struct msghdr.
4399         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
4400         * tests/test-sys_socket.c (main): Enhance test.
4401         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
4402         guaranteed to provide what we need.
4403         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
4404         * modules/passfd-tests (Depends-on): Add sys_wait.
4405         * tests/test-passfd.c (main): Skip test on mingw, for now.
4406         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
4407         partial 'struct msghdr' implementation.
4408
4409         sys_uio: new module
4410         * modules/sys_uio: New module.
4411         * modules/sys_uio-tests: Likewise.
4412         * lib/sys_uio.in.h: New file.
4413         * m4/sys_uio_h.m4: Likewise.
4414         * tests/test-sys_uio.c: Likewise.
4415         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
4416         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
4417
4418 2011-04-20  Jim Meyering  <meyering@redhat.com>
4419
4420         useless-if-before-free: avoid false-positive
4421         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
4422         disjunct so that it too requires a terminating ";".  Without that,
4423         this script would identify as useless one statement from gcc that
4424         was not:
4425           if (aligned_ptr)
4426             free (((void **) aligned_ptr) [-1]);
4427
4428 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
4429
4430         doc: update users.txt.
4431         * users.txt: Add barcode.
4432
4433 2011-04-19  Bruno Haible  <bruno@clisp.org>
4434
4435         ioctl: Remove link dependency on native Windows.
4436         * lib/fd-hook.h: Renamed from lib/close-hook.h.
4437         (gl_close_fn, gl_ioctl_fn): New types.
4438         (struct fd_hook): Renamed from struct close_hook. Change type of
4439         private_close_fn field. Add private_ioctl_fn field.
4440         (close_hook_fn): Add parameter for primary close method.
4441         (execute_close_hooks, execute_all_close_hooks): Likewise.
4442         (ioctl_hook_fn): New type.
4443         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
4444         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
4445         argument.
4446         (unregister_fd_hook): Renamed from unregister_close_hook.
4447         * lib/fd-hook.c: Renamed from lib/close-hook.c.
4448         Don't include <unistd.h>.
4449         (close): Remove undef.
4450         (anchor): Update.
4451         (execute_close_hooks): Add argument for primary close method.
4452         (execute_all_close_hooks): Likewise.
4453         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
4454         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
4455         argument. Allow each argument to be NULL.
4456         (unregister_fd_hook): Renamed from unregister_close_hook.
4457         * lib/close.c (rpl_close): Pass 'close' function pointer to
4458         execute_all_close_hooks.
4459         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
4460         (primary_ioctl): New function.
4461         (ioctl): Don't call ioctlsocket here. Instead, call
4462         execute_all_ioctl_hooks.
4463         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
4464         close method.
4465         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
4466         (fd_sockets_hook): Renamed from close_sockets_hook.
4467         (gl_sockets_startup, gl_sockets_cleanup): Update.
4468         * modules/fd-hook: Renamed from modules/close-hook. Update.
4469         * modules/close (Depends-on): Add fd-hook, remove close-hook.
4470         * modules/sockets (Depends-on): Likewise.
4471         * modules/ioctl (Depends-on): Add fd-hook.
4472         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
4473         GNULIB_SOCKET.
4474
4475 2011-04-19  Bruno Haible  <bruno@clisp.org>
4476
4477         Move the support of O_NONBLOCK in open() to the 'open' module.
4478         * modules/nonblocking (Depends-on): Remove 'open'.
4479         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
4480         gl_cv_have_open_O_NONBLOCK.
4481         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
4482         O_NONBLOCK support.
4483         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
4484
4485 2011-04-17  Bruno Haible  <bruno@clisp.org>
4486
4487         pipe2: Simplify code.
4488         * lib/pipe2.c (pipe2): Reduce code duplication.
4489
4490 2011-04-17  Bruno Haible  <bruno@clisp.org>
4491
4492         nonblocking: Add comment.
4493         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
4494
4495 2011-04-17  Bruno Haible  <bruno@clisp.org>
4496
4497         nonblocking: Add tests for sockets.
4498         * tests/test-nonblocking-socket.sh: New file.
4499         * tests/test-nonblocking-socket-main.c: New file.
4500         * tests/test-nonblocking-socket-child.c: New file.
4501         * tests/test-nonblocking-socket.h: New file.
4502         * tests/socket-server.h: New file.
4503         * tests/socket-client.h: New file.
4504         * modules/nonblocking-socket-tests: New file.
4505         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
4506
4507 2011-04-17  Bruno Haible  <bruno@clisp.org>
4508
4509         nonblocking: Add tests for pipes.
4510         * tests/test-nonblocking-pipe.sh: New file.
4511         * tests/test-nonblocking-pipe-main.c: New file.
4512         * tests/test-nonblocking-pipe-child.c: New file.
4513         * tests/test-nonblocking-pipe.h: New file.
4514         * tests/test-nonblocking-writer.h: New file.
4515         * tests/test-nonblocking-reader.h: New file.
4516         * tests/test-nonblocking-misc.h: New file.
4517         * modules/nonblocking-pipe-tests: New file.
4518         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
4519
4520 2011-04-16  Bruno Haible  <bruno@clisp.org>
4521
4522         gettext: Clarify the needed programmer actions.
4523         * modules/gettext (Notice): New field.
4524         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
4525
4526 2011-04-16  Bruno Haible  <bruno@clisp.org>
4527
4528         strchrnul: Tweak last commit.
4529         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
4530         bug.
4531         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
4532         as in _GL_FUNCDECL_SYS.
4533         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
4534         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
4535
4536 2011-04-15  Eric Blake  <eblake@redhat.com>
4537
4538         strchrnul: work around cygwin bug
4539         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
4540         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
4541         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
4542         * modules/string (Makefile.am): Substitute it.
4543         * lib/string.in.h (strchrnul): Use it.
4544
4545 2011-04-15  Bruno Haible  <bruno@clisp.org>
4546
4547         Don't require lib/stdio-write.c when only module 'stdio' is used.
4548         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
4549         invocation.
4550         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
4551
4552 2011-04-14  Bruno Haible  <bruno@clisp.org>
4553
4554         Support non-blocking pipe I/O in read() on native Windows.
4555         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
4556         (read): New declaration.
4557         * lib/read.c: New file.
4558         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
4559         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
4560         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
4561         vscanf): New declarations.
4562         * lib/stdio-read.c: New file.
4563         * m4/read.m4: New file.
4564         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
4565         REPLACE_READ.
4566         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
4567         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
4568         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
4569         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
4570         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
4571         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
4572         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
4573         * modules/read: New file.
4574         * modules/nonblocking (Files): Add lib/stdio-read.c.
4575         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
4576         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
4577         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
4578         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
4579         * modules/pread (Depends-on): Add read.
4580         * modules/safe-read (Depends-on): Likewise.
4581         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
4582         gets, scanf, vfscanf, vscanf): Verify signatures.
4583         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
4584         problem with non-blocking pipes.
4585         * doc/posix-functions/fgetc.texi: Likewise.
4586         * doc/posix-functions/fgets.texi: Likewise.
4587         * doc/posix-functions/fread.texi: Likewise.
4588         * doc/posix-functions/fscanf.texi: Likewise.
4589         * doc/posix-functions/getc.texi: Likewise.
4590         * doc/posix-functions/getchar.texi: Likewise.
4591         * doc/posix-functions/gets.texi: Likewise.
4592         * doc/posix-functions/scanf.texi: Likewise.
4593         * doc/posix-functions/vfscanf.texi: Likewise.
4594         * doc/posix-functions/vscanf.texi: Likewise.
4595
4596 2011-04-14  Bruno Haible  <bruno@clisp.org>
4597
4598         Support non-blocking pipe I/O in write() on native Windows.
4599         * lib/write.c (rpl_write): Split a write request that failed merely
4600         because the byte count was larger than the pipe buffer's size.
4601         * doc/posix-functions/write.texi: Mention the problem with large byte
4602         counts.
4603
4604 2011-04-14  Bruno Haible  <bruno@clisp.org>
4605
4606         wchar: Ensure that wchar_t gets defined on uClibc.
4607         * lib/wchar.in.h: On uClibc, include <stddef.h>.
4608         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
4609
4610 2011-04-13  Bruno Haible  <bruno@clisp.org>
4611
4612         safe-write, full-read: Avoid unnecessary compilation units.
4613         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
4614         (Depends-on): Remove safe-read. Add ssize_t.
4615         * modules/full-read (Files): Add lib/full-write.c.
4616         (Depends-on): Add full-write.
4617
4618 2011-04-13  Bruno Haible  <bruno@clisp.org>
4619
4620         Support non-blocking pipe I/O and SIGPIPE in pwrite().
4621         * modules/pwrite (Depends-on): Add 'write'.
4622
4623 2011-04-13  Bruno Haible  <bruno@clisp.org>
4624
4625         Support non-blocking pipe I/O in write() on native Windows.
4626         * lib/unistd.in.h (write): Enable replacement also if
4627         GNULIB_UNISTD_H_NONBLOCKING is 1.
4628         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
4629         (rpl_write): When failing to write on a non-blocking pipe, change
4630         errno from ENOSPC to EAGAIN.
4631         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
4632         putchar, puts, vfprintf, vprintf): Enable replacement also if
4633         GNULIB_STDIO_H_NONBLOCKING is 1.
4634         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
4635         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
4636         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
4637         CALL_WITH_SIGPIPE_EMULATION.
4638         (CALL_WITH_SIGPIPE_EMULATION): Use them.
4639         * m4/nonblocking.m4: New file.
4640         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
4641         for non-blocking I/O support.
4642         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
4643         GNULIB_UNISTD_H_NONBLOCKING.
4644         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
4645         required for non-blocking I/O support.
4646         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
4647         * modules/nonblocking (Files): Add m4/nonblocking.m4,
4648         lib/stdio-write.c, m4/asm-underscore.m4.
4649         (Depends-on): Add stdio, unistd.
4650         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
4651         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
4652         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
4653         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
4654         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
4655         problem with non-blocking pipes.
4656         * doc/posix-functions/fputc.texi: Likewise.
4657         * doc/posix-functions/fputs.texi: Likewise.
4658         * doc/posix-functions/fwrite.texi: Likewise.
4659         * doc/posix-functions/printf.texi: Likewise.
4660         * doc/posix-functions/putc.texi: Likewise.
4661         * doc/posix-functions/putchar.texi: Likewise.
4662         * doc/posix-functions/puts.texi: Likewise.
4663         * doc/posix-functions/vfprintf.texi: Likewise.
4664         * doc/posix-functions/vprintf.texi: Likewise.
4665         * doc/posix-functions/write.texi: Likewise.
4666
4667 2011-04-10  Jim Meyering  <meyering@redhat.com>
4668
4669         maint.mk: prohibit doubled words
4670         Detect them also when they're separated by a newline.
4671         There are 3 ways to customize it:
4672           - disable the test on a per file basis, as usual with rules using
4673             $(VC_LIST_EXCEPT)
4674           - replace the default doubled-word-selecting regexp (affects all files)
4675           - ignore a particular file-vs-doubled-word match
4676         I nearly used that last one to ignore the "is is" match in
4677         coreutils' NEWS file, since the text was "ls -is is ..."
4678         To do that, I would have added this line to cfg.mk:
4679           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
4680         but it would have ignored any "is is" match in NEWS.
4681         Low probability, but still...
4682         Instead, I changed the text, slightly:
4683           -  ls -is is now consistent with ls -lis in ignoring values returned
4684           +  "ls -is" is now consistent with ls -lis in ignoring values returned
4685         * top/maint.mk (prohibit_double_word_RE_): Provide default.
4686         (prohibit_doubled_word_): Define.
4687         (sc_prohibit_doubled_word): New rule.
4688         (sc_prohibit_the_the): Remove.  Subsumed by the above.
4689
4690 2011-04-10  Jim Meyering  <meyering@redhat.com>
4691
4692         maint: fix doubled-word typo in comment
4693         * m4/gethostname.m4: s/is is/it is/
4694         * m4/getdomainname.m4: Likewise.
4695
4696 2011-04-10  Jim Meyering  <meyering@redhat.com>
4697
4698         maint: remove doubled word: s/it it/it/
4699         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
4700
4701 2011-04-10  Jim Meyering  <meyering@redhat.com>
4702
4703         maint.mk: remove useless semicolon and backslash
4704         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
4705         semicolon and backslash.
4706
4707 2011-04-10  Bruno Haible  <bruno@clisp.org>
4708
4709         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
4710         * modules/stdint-tests (Depends-on): Add wchar.
4711
4712 2011-04-10  Jim Meyering  <meyering@redhat.com>
4713
4714         maint: remove doubled words in comments, e.g., s/a a/a/
4715         * lib/strptime.c (day_of_the_week): s/the the/the/
4716         * tests/test-chown.h (test_chown): s/a a/a/
4717
4718         test-chown.h: correct a cast
4719         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
4720         when the destination is a stat.st_gid.
4721
4722 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
4723
4724         getaddrinfo: Fix test for sa_len member.
4725         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
4726         include <sys/types.h> before <sys/socket.h>.
4727
4728 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
4729
4730         maint: change "can not" to "cannot"
4731         * doc/posix-functions/iconv.texi (iconv): This one crossed line
4732         boundaries.
4733
4734 2011-04-09  Jim Meyering  <meyering@redhat.com>
4735
4736         maint: change "a a" to "a"
4737         * tests/test-lchown.h (test_lchown): s/a a/a/
4738
4739         maint.mk: prohibit \<the the\>
4740         * top/maint.mk (sc_prohibit_the_the): New rule.
4741
4742         maint: fix "the the" in comment
4743         * lib/count-one-bits.h: s/the the/the/
4744
4745         maint: change "can not" to "cannot"
4746         But do not change the occurrences in maintain.texi or in
4747         build-aux/po/Makefile.in.in, which I presume comes from gettext.
4748         * doc/gnulib-tool.texi: s/can not/cannot/
4749         * doc/posix-functions/accept.texi (accept): Likewise.
4750         * doc/posix-functions/socket.texi (socket): Likewise.
4751         * lib/mbrtowc.c: Likewise.
4752
4753         maint.mk: prohibit use of "can not"
4754         * top/maint.mk (sc_prohibit_can_not): New rule.
4755         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
4756
4757 2011-04-09  Bruno Haible  <bruno@clisp.org>
4758
4759         careadlinkat: Guard against misuse of careadlinkatcwd.
4760         * lib/careadlinkat.c: Include <stdlib.h>.
4761         (careadlinkatcwd): Check that the fd argument is as expected.
4762
4763 2011-04-09  Bruno Haible  <bruno@clisp.org>
4764
4765         careadlinkat: Use common coding style.
4766         * lib/careadlinkat.c: Move gnulib includes after system includes.
4767
4768 2011-04-09  Bruno Haible  <bruno@clisp.org>
4769
4770         careadlinkat: Clarify specification.
4771         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
4772         (careadlinkatcwd): Add comment.
4773         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
4774
4775 2011-04-09  Bruno Haible  <bruno@clisp.org>
4776
4777         areadlinkat: Avoid link error on many platforms.
4778         * modules/areadlinkat (Depends-on): Add areadlink.
4779
4780 2011-04-09  Bruno Haible  <bruno@clisp.org>
4781
4782         allocator, careadlinkat: Fix double-inclusion guard.
4783         * lib/allocator.h: Fix double-inclusion guard.
4784         * lib/careadlinkat.h: Likewise.
4785
4786 2011-04-09  Bruno Haible  <bruno@clisp.org>
4787
4788         relocatable-prog-wrapper: Update after module 'areadlink' changed.
4789         * lib/relocwrapper.c: Update dependencies hierarchy.
4790         * build-aux/install-reloc: Update list of files to be compiled.
4791         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
4792         lib/allocator.[hc].
4793
4794 2011-04-08  Eric Blake  <eblake@redhat.com>
4795
4796         strftime: silence gnulib-tool warning
4797         * modules/strftime-tests (Depends-on): Drop automatic dependency.
4798
4799 2011-04-08  Bruno Haible  <bruno@clisp.org>
4800
4801         verify: Fix syntax error with GCC 4.6 in C++ mode.
4802         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
4803         (HAVE_STATIC_ASSERT): New macro.
4804         (verify_true, verify): Use 'static_assert' if it is supported and
4805         '_Static_assert' is not supported.
4806
4807 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
4808
4809         allocator: New module.
4810         * modules/allocator, lib/allocator.c: New files.
4811         * lib/allocator.h (stdlib_allocator): New decl.
4812         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
4813         Remove.  Do not include <stdlib.h>.
4814         (careadlinkat): Use stdlib_allocator instead of rolling our own.
4815         * modules/careadlinkat (Files): Remove lib/allocator.h.
4816         (Depends-on): Add allocator.
4817
4818         stdlib: let modules use system malloc, realloc
4819         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
4820         if !_GL_USE_STDLIB_ALLOC.
4821         (malloc, realloc): Limit this change to a smaller scope.
4822
4823         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
4824         (malloc, realloc): Don't #undef; no longer needed.
4825         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4826         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4827         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
4828         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4829         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4830         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4831         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4832         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
4833
4834         careadlinkat: rename members to avoid problem
4835         * lib/allocator.h (struct allocator): Rename members from
4836         malloc/realloc to allocate/reallocate, to avoid problems if malloc
4837         and realloc are #define'd.  Reported by Eric Blake in
4838         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
4839         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
4840
4841 2011-04-08  Eric Blake  <eblake@redhat.com>
4842
4843         nonblocking: reduce dependency
4844         * tests/test-nonblocking.c: Only test sockets when in use.
4845         * modules/nonblocking-tests (Depends-on): Drop socket.
4846         (Makefile.am): Link even if sockets are not present.
4847         * modules/pipe2-tests (Makefile.am): Likewise.
4848         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
4849
4850         pipe2: fix O_NONBLOCK support on mingw
4851         * modules/pipe2 (Depends-on): Add nonblocking.
4852         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
4853         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
4854         * tests/test-nonblocking.c (main): Likewise.
4855         * modules/pipe2-tests (Makefile.am): Avoid link failure.
4856
4857         fcntl-h: fix O_ACCMODE on cygwin
4858         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
4859         * lib/fcntl.in.h (O_ACCMODE): Fix it.
4860
4861         pipe-filter: drop O_NONBLOCK workarounds
4862         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
4863         * modules/pipe-filter-ii (Depends-on): Likewise.
4864         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
4865
4866         nonblocking: provide O_NONBLOCK for mingw
4867         * modules/nonblocking (Depends-on): Add open.
4868         (configure.ac): Set new witness macro.
4869         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
4870         * modules/fcntl-h (Makefile.am): Substitute it.
4871         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
4872         nonblocking module is in use.
4873         * lib/nonblocking.c: Adjust portability test.
4874         * lib/open.c (open): Don't let native open see gnulib flag.
4875         * tests/test-fcntl-h.c (main): Enhance test.
4876         * tests/test-open.h (test_open): Likewise.
4877         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
4878
4879         careadlinkat: fix compilation error on mingw
4880         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
4881         within struct allocator.
4882
4883 2011-04-06  Eric Blake  <eblake@redhat.com>
4884
4885         binary-io: relicense under LGPLv2+
4886         * modules/binary-io (License): Relax to LGPLv2+.
4887         Requested for libvirt, and required by pipe2.
4888
4889 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
4890
4891         verify: use _Static_assert if available
4892         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
4893         (verify_true, verify): Use it if available.  This generates better
4894         diagnostics with GCC 4.6.0 and later.
4895
4896 2011-04-05  Bruno Haible  <bruno@clisp.org>
4897
4898         Remove leftover generated .h files after config.status changed.
4899
4900         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
4901         GL_GENERATE_ALLOCA_H.
4902         * modules/alloca-opt (Makefile.am): Remove alloca.h if
4903         GL_GENERATE_ALLOCA_H evaluates to false.
4904
4905         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
4906         GL_GENERATE_ARGZ_H.
4907         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
4908         evaluates to false.
4909
4910         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
4911         GL_GENERATE_BYTESWAP_H.
4912         * modules/byteswap (Makefile.am): Remove byteswap.h if
4913         GL_GENERATE_BYTESWAP_H evaluates to false.
4914
4915         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
4916         GL_GENERATE_ERRNO_H.
4917         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
4918         evaluates to false.
4919
4920         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
4921         GL_GENERATE_FLOAT_H.
4922         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
4923         evaluates to false.
4924
4925         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
4926         GL_GENERATE_FNMATCH_H.
4927         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
4928         GL_GENERATE_FNMATCH_H evaluates to false.
4929
4930         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
4931         GL_GENERATE_GLOB_H.
4932         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
4933         evaluates to false.
4934
4935         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
4936         automake conditional GL_GENERATE_ICONV_H.
4937         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
4938         evaluates to false.
4939
4940         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
4941         GL_GENERATE_NETINET_IN_H.
4942         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
4943         GL_GENERATE_NETINET_IN_H evaluates to false.
4944
4945         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
4946         conditional GL_GENERATE_PTHREAD_H.
4947         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
4948         * modules/pthread (Makefile.am): Remove pthread.h if
4949         GL_GENERATE_PTHREAD_H evaluates to false.
4950
4951         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
4952         GL_GENERATE_SCHED_H.
4953         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
4954         evaluates to false.
4955
4956         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
4957         conditional GL_GENERATE_SELINUX_CONTEXT_H.
4958         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
4959         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
4960
4961         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
4962         GL_GENERATE_STDARG_H.
4963         * modules/stdarg (Makefile.am): Remove stdarg.h if
4964         GL_GENERATE_STDARG_H evaluates to false.
4965
4966         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
4967         GL_GENERATE_STDBOOL_H.
4968         * modules/stdbool (Makefile.am): Remove stdbool.h if
4969         GL_GENERATE_STDBOOL_H evaluates to false.
4970
4971         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
4972         conditional GL_GENERATE_STDDEF_H.
4973         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
4974         * modules/stddef (Makefile.am): Remove stddef.h if
4975         GL_GENERATE_STDDEF_H evaluates to false.
4976
4977         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
4978         GL_GENERATE_STDINT_H.
4979         * modules/stdint (Makefile.am): Remove stdint.h if
4980         GL_GENERATE_STDINT_H evaluates to false.
4981
4982         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
4983         GL_GENERATE_SYSEXITS_H.
4984         * modules/sysexits (Makefile.am): Remove sysexits.h if
4985         GL_GENERATE_SYSEXITS_H evaluates to false.
4986
4987         Reported by Karl Berry and Ralf Wildenhues.
4988
4989 2011-04-05  Bruno Haible  <bruno@clisp.org>
4990
4991         Ensure to rebuild generated .h files when config.status has changed.
4992         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
4993         config.status.
4994         * modules/ctype (Makefile.am): Likewise.
4995         * modules/dirent (Makefile.am): Likewise.
4996         * modules/errno (Makefile.am): Likewise.
4997         * modules/fcntl-h (Makefile.am): Likewise.
4998         * modules/float (Makefile.am): Likewise.
4999         * modules/getopt-posix (Makefile.am): Likewise.
5000         * modules/glob (Makefile.am): Likewise.
5001         * modules/iconv-h (Makefile.am): Likewise.
5002         * modules/inttypes (Makefile.am): Likewise.
5003         * modules/langinfo (Makefile.am): Likewise.
5004         * modules/locale (Makefile.am): Likewise.
5005         * modules/math (Makefile.am): Likewise.
5006         * modules/netdb (Makefile.am): Likewise.
5007         * modules/netinet_in (Makefile.am): Likewise.
5008         * modules/poll-h (Makefile.am): Likewise.
5009         * modules/pthread (Makefile.am): Likewise.
5010         * modules/pty (Makefile.am): Likewise.
5011         * modules/sched (Makefile.am): Likewise.
5012         * modules/search (Makefile.am): Likewise.
5013         * modules/selinux-h (Makefile.am): Likewise.
5014         * modules/signal (Makefile.am): Likewise.
5015         * modules/spawn (Makefile.am): Likewise.
5016         * modules/stdarg (Makefile.am): Likewise.
5017         * modules/stdbool (Makefile.am): Likewise.
5018         * modules/stddef (Makefile.am): Likewise.
5019         * modules/stdint (Makefile.am): Likewise.
5020         * modules/stdio (Makefile.am): Likewise.
5021         * modules/stdlib (Makefile.am): Likewise.
5022         * modules/string (Makefile.am): Likewise.
5023         * modules/strings (Makefile.am): Likewise.
5024         * modules/sys_file (Makefile.am): Likewise.
5025         * modules/sys_ioctl (Makefile.am): Likewise.
5026         * modules/sys_select (Makefile.am): Likewise.
5027         * modules/sys_socket (Makefile.am): Likewise.
5028         * modules/sys_stat (Makefile.am): Likewise.
5029         * modules/sys_time (Makefile.am): Likewise.
5030         * modules/sys_times (Makefile.am): Likewise.
5031         * modules/sys_utsname (Makefile.am): Likewise.
5032         * modules/sys_wait (Makefile.am): Likewise.
5033         * modules/sysexits (Makefile.am): Likewise.
5034         * modules/termios (Makefile.am): Likewise.
5035         * modules/time (Makefile.am): Likewise.
5036         * modules/unistd (Makefile.am): Likewise.
5037         * modules/wchar (Makefile.am): Likewise.
5038         * modules/wctype-h (Makefile.am): Likewise.
5039         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
5040
5041 2011-04-05  Bruno Haible  <bruno@clisp.org>
5042
5043         pipe2: Relicense under LGPLv2+.
5044         * modules/pipe2 (License): Change to LGPLv2+.
5045         Requested by Eric Blake, for libvirt.
5046
5047 2011-04-05  Bruce Korb  <bkorb@gnu.org>
5048
5049         bootstrap: compute gnulib_extra_files after updating build_aux
5050         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
5051         change build_aux or also supply gnulib_extra_files.  Handle correctly.
5052
5053 2011-04-05  Eric Blake  <eblake@redhat.com>
5054
5055         bootstrap: preserve git whitelist item sorting
5056         * build-aux/bootstrap (sort_patterns): New function.
5057         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
5058
5059 2011-04-05  Simon Josefsson  <simon@josefsson.org>
5060
5061         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
5062         sc_space_tab check.
5063
5064 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
5065
5066         areadlink, areadlinkat: rewrite in terms of careadlinkat
5067         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
5068         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
5069         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
5070         (malloc, realloc): Remove #undefs.
5071         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
5072         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
5073         readlink, ssize_t, stdint, unistd.
5074         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
5075         areadlink, stdint.
5076
5077         careadlinkat: new module
5078         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
5079         * modules/careadlinkat: New files, written by me with
5080         a review and feedback from Ben Pfaff in
5081         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
5082
5083 2011-04-01  Bruno Haible  <bruno@clisp.org>
5084
5085         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
5086         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
5087         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
5088         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
5089         Reported by Bruce Korb <bruce.korb@gmail.com>.
5090
5091 2011-04-01  Bruno Haible  <bruno@clisp.org>
5092
5093         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
5094         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
5095         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
5096         * modules/wcpcpy (Depends-on): Add extensions.
5097         * modules/wcpncpy (Depends-on): Likewise.
5098         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
5099         systems.
5100         * doc/posix-functions/wcpncpy.texi: Likewise.
5101         * doc/posix-functions/wcwidth.texi: Likewise.
5102
5103 2011-03-31  Eric Blake  <eblake@redhat.com>
5104
5105         nonblocking: fix mingw test failures
5106         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
5107         non-blocking flag on regular file.
5108         (get_nonblocking_flag): Set errno on invalid fd.
5109         * tests/test-nonblocking.c (main): Avoid test failure on
5110         directories if fchdir is not active.
5111         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
5112
5113 2011-03-31  Bruno Haible  <bruno@clisp.org>
5114
5115         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
5116         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
5117         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
5118         Reported by Simon Josefsson <simon@josefsson.org>.
5119
5120 2011-03-31  Bruno Haible  <bruno@clisp.org>
5121         and Eric Blake  <eblake@redhat.com>
5122
5123         nonblocking: new module
5124         * modules/nonblocking: New module.
5125         * modules/nonblocking-tests: Likewise.
5126         * lib/nonblocking.h: New file.
5127         * lib/nonblocking.c: Likewise.
5128         * tests/test-nonblocking.c: New test.
5129         * lib/ioctl.c (ioctl) [mingw]: Update comment.
5130
5131 2011-03-30  Bruno Haible  <bruno@clisp.org>
5132
5133         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
5134         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
5135         instead of 'printf' format for GCC >= 4.4.
5136         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
5137         (fprintf, printf, vfprintf, vprintf): Declare with
5138         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
5139         the system's vfprintf() function.
5140         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
5141
5142 2011-03-30  Eric Blake  <eblake@redhat.com>
5143
5144         passfd: fix scoping bug
5145         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
5146         before sendmsg/recvmsg.
5147
5148         passfd: standardize coding conventions
5149         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
5150         can be learned at compile time.
5151         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
5152         ifdefs.
5153         (sendfd, recvfd): Follow gnulib code conventions.
5154
5155         passfd: fix incorrect sendmsg arguments
5156         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
5157         incorrect msg_controllen value.
5158         * modules/passfd-tests (Depends-on): Check for alarm.
5159         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
5160         Reported by Bastien ROUCARIES.
5161
5162 2011-03-30  Bruno Haible  <bruno@clisp.org>
5163
5164         c-strcasestr: Relicense under LGPLv2+.
5165         * modules/c-strcasestr (License): Change to LGPLv2+.
5166         Requested by Eric Blake, for libvirt.
5167
5168 2011-03-30  Simon Josefsson  <simon@josefsson.org>
5169
5170         * users.txt: Add libidn2.  Fix libtasn1 link.
5171
5172 2011-03-30  Jim Meyering  <meyering@redhat.com>
5173
5174         tests: readlink* ("",... fails with EINVAL on newer kernels
5175         readlink and readlinkat have typically failed with ENOENT for
5176         the invalid, empty file name,  "".  However, with the advent
5177         of linux-2.6.39, they fail with EINVAL.
5178         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
5179         when operating on the empty file name.
5180         * tests/test-readlink.h (test_readlink): Likewise.
5181
5182 2011-03-29  Bruno Haible  <bruno@clisp.org>
5183
5184         Relicense some modules under LGPLv2+, for libidn2.
5185         * modules/array-mergesort (License): Change to LGPLv2+.
5186         * modules/c-strcaseeq (License): Likewise.
5187         * modules/striconveh (License): Likewise.
5188         * modules/striconveha (License): Likewise.
5189         * modules/uniconv/base (License): Likewise.
5190         * modules/uniconv/u8-conv-from-enc (License): Likewise.
5191         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
5192         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
5193         * modules/unictype/base (License): Likewise.
5194         * modules/unictype/bidiclass-of (License): Likewise.
5195         * modules/unictype/category-M (License): Likewise.
5196         * modules/unictype/category-none (License): Likewise.
5197         * modules/unictype/category-of (License): Likewise.
5198         * modules/unictype/category-test (License): Likewise.
5199         * modules/unictype/category-test-withtable (License): Likewise.
5200         * modules/unictype/combining-class (License): Likewise.
5201         * modules/unictype/joiningtype-of (License): Likewise.
5202         * modules/unictype/scripts (License): Likewise.
5203         * modules/uninorm/base (License): Likewise.
5204         * modules/uninorm/canonical-decomposition (License): Likewise.
5205         * modules/uninorm/composition (License): Likewise.
5206         * modules/uninorm/decompose-internal (License): Likewise.
5207         * modules/uninorm/decomposition-table (License): Likewise.
5208         * modules/uninorm/nfc (License): Likewise.
5209         * modules/uninorm/nfd (License): Likewise.
5210         * modules/uninorm/u32-normalize (License): Likewise.
5211         * modules/unistr/base (License): Likewise.
5212         * modules/unistr/u32-cpy (License): Likewise.
5213         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
5214         * modules/unistr/u32-to-u8 (License): Likewise.
5215         * modules/unistr/u32-uctomb (License): Likewise.
5216         * modules/unistr/u8-check (License): Likewise.
5217         * modules/unistr/u8-mblen (License): Likewise.
5218         * modules/unistr/u8-mbtouc (License): Likewise.
5219         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
5220         * modules/unistr/u8-mbtoucr (License): Likewise.
5221         * modules/unistr/u8-prev (License): Likewise.
5222         * modules/unistr/u8-strlen (License): Likewise.
5223         * modules/unistr/u8-to-u32 (License): Likewise.
5224         * modules/unistr/u8-uctomb (License): Likewise.
5225         * modules/unitypes (License): Likewise.
5226         Requested by Simon Josefsson.
5227
5228 2011-03-29  Simon Josefsson  <simon@josefsson.org>
5229
5230         lib-symbol-visibility: Add a notice.
5231         * modules/lib-symbol-visibility (Notice): New field.
5232
5233 2011-03-29  Bruno Haible  <bruno@clisp.org>
5234
5235         getaddrinfo: Doc fix.
5236         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
5237         section "fixed in Gnulib".
5238
5239 2011-03-28  Simon Josefsson  <simon@josefsson.org>
5240
5241         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
5242         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
5243
5244 2011-03-26  Bruno Haible  <bruno@clisp.org>
5245
5246         unictype/property-byname: Reduce the number of load-time relocations.
5247         * lib/unictype/pr_byname.c: Include <stdlib.h>.
5248         (UC_PROPERTY_INDEX_*): New enumeration values.
5249         (uc_property_byname): Convert an index from the lookup table to an
5250         uc_property_t.
5251         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
5252         values.
5253
5254 2011-03-26  Bruno Haible  <bruno@clisp.org>
5255
5256         unictype/property-byname: Allow omitted word separators and aliases.
5257         * lib/unictype/pr_byname.gperf: Add property names without word
5258         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
5259         for 'space'.
5260
5261 2011-03-26  Bruno Haible  <bruno@clisp.org>
5262
5263         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
5264         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
5265         also hyphens to space.
5266         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
5267         without spaces.
5268         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
5269
5270 2011-03-26  Bruno Haible  <bruno@clisp.org>
5271
5272         unictype/joiningtype-byname: Recognize long names as well.
5273         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
5274         a long name.
5275         * lib/unictype/joiningtype_byname.c: Include <string.h>,
5276         unictype/joiningtype_byname.h.
5277         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
5278         * lib/unictype/joiningtype_byname.gperf: New file.
5279         * modules/unictype/joiningtype-byname (Files): Add
5280         lib/unictype/joiningtype_byname.gperf.
5281         (Depends-on): Add gperf.
5282         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
5283         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
5284         long names.
5285
5286         Tests for module 'unictype/joiningtype-longname'.
5287         * modules/unictype/joiningtype-longname-tests: New file.
5288         * tests/unictype/test-joiningtype_longname.c: New file.
5289
5290         New module 'unictype/joiningtype-longname'.
5291         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
5292         * lib/unictype/joiningtype_longname.c: New file.
5293         * modules/unictype/joiningtype-longname: New file.
5294         * modules/unictype/joiningtype-all (Depends-on): Add
5295         unictype/joiningtype-longname.
5296
5297 2011-03-26  Bruno Haible  <bruno@clisp.org>
5298
5299         unictype/bidiclass-byname: Recognize long names as well.
5300         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
5301         name.
5302         * lib/unictype/bidi_byname.c: Include <string.h>,
5303         unictype/bidi_byname.h.
5304         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
5305         * lib/unictype/bidi_byname.gperf: New file.
5306         * modules/unictype/bidiclass-byname (Files): Add
5307         lib/unictype/bidi_byname.gperf.
5308         (Depends-on): Add gperf.
5309         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
5310         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
5311         long names.
5312
5313         Tests for module 'unictype/bidiclass-longname'.
5314         * modules/unictype/bidiclass-longname-tests: New file.
5315         * tests/unictype/test-bidi_longname.c: New file.
5316
5317         New module 'unictype/bidiclass-longname'.
5318         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
5319         * lib/unictype/bidi_longname.c: New file.
5320         * modules/unictype/bidiclass-longname: New file.
5321         * modules/unictype/bidiclass-all (Depends-on): Add
5322         unictype/bidiclass-longname.
5323
5324 2011-03-26  Bruno Haible  <bruno@clisp.org>
5325
5326         unictype/bidi*: Rename modules.
5327         * modules/unictype/bidiclass-all: Renamed from
5328         modules/unictype/bidicategory-all.
5329         * modules/unictype/bidiclass-name: Renamed from
5330         modules/unictype/bidiclass-name.
5331         (Description): Update.
5332         * modules/unictype/bidiclass-name-tests: Renamed from
5333         modules/unictype/bidicategory-name-tests.
5334         * modules/unictype/bidiclass-byname: Renamed from
5335         modules/unictype/bidicategory-byname.
5336         (Description): Update.
5337         * modules/unictype/bidiclass-byname-tests: Renamed from
5338         modules/unictype/bidicategory-byname-tests.
5339         * modules/unictype/bidiclass-of: Renamed from
5340         modules/unictype/bidicategory-of.
5341         (Description): Update.
5342         * modules/unictype/bidiclass-of-tests: Renamed from
5343         modules/unictype/bidicategory-of-tests.
5344         * modules/unictype/bidiclass-test: Renamed from
5345         modules/unictype/bidicategory-test.
5346         (Description): Update.
5347         * modules/unictype/bidiclass-test-tests: Renamed from
5348         modules/unictype/bidicategory-test-tests.
5349         * modules/unictype/bidicategory-all: New file, a simple redirection.
5350         * modules/unictype/bidicategory-name: Likewise.
5351         * modules/unictype/bidicategory-byname: Likewise.
5352         * modules/unictype/bidicategory-of: Likewise.
5353         * modules/unictype/bidicategory-test: Likewise.
5354         * modules/unictype/property-bidi-* (Dependencies): Update.
5355         * lib/unictype/bidi_*.c: Update comment.
5356
5357 2011-03-26  Bruno Haible  <bruno@clisp.org>
5358
5359         unictype/bidi*: Rename functions, part 2.
5360         * modules/unictype/bidicategory-name (configure.ac): Update required
5361         libunistring version.
5362         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
5363
5364 2011-03-25  Bruno Haible  <bruno@clisp.org>
5365
5366         New module 'unictype/combining-class-all'.
5367         * modules/unictype/combining-class-all: New file.
5368
5369         Tests for module 'unictype/combining-class-byname'.
5370         * modules/unictype/combining-class-byname-tests: New file.
5371         * tests/unictype/test-combiningclass_byname.c: New file.
5372
5373         New module 'unictype/combining-class-byname'.
5374         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
5375         * lib/unictype/combiningclass_byname.c: New file.
5376         * lib/unictype/combiningclass_byname.gperf: New file.
5377         * modules/unictype/combining-class-byname: New file.
5378
5379         Tests for module 'unictype/combining-class-longname'.
5380         * modules/unictype/combining-class-longname-tests: New file.
5381         * tests/unictype/test-combiningclass_longname.c: New file.
5382
5383         New module 'unictype/combining-class-longname'.
5384         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
5385         * lib/unictype/combiningclass_longname.c: New file.
5386         * modules/unictype/combining-class-longname: New file.
5387
5388         Tests for module 'unictype/combining-class-name'.
5389         * modules/unictype/combining-class-name-tests: New file.
5390         * tests/unictype/test-combiningclass_name.c: New file.
5391
5392         New module 'unictype/combining-class-name'.
5393         * lib/unictype.in.h (uc_combining_class_name): New declaration.
5394         * lib/unictype/combiningclass_name.c: New file.
5395         * modules/unictype/combining-class-name: New file.
5396
5397 2011-03-25  Bruno Haible  <bruno@clisp.org>
5398
5399         unictype/combining-class: Rename source files.
5400         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
5401         of unictype/combining.h.
5402         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
5403         Update.
5404         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
5405         * modules/unictype/combining-class (Description): Fix.
5406         (Files, Makefile.am): Update.
5407         * tests/unictype/test-combiningclass.c: Renamed from
5408         tests/unictype/test-combining.c.
5409         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
5410
5411 2011-03-25  Bruno Haible  <bruno@clisp.org>
5412
5413         unictype: Update list of canonical combining classes.
5414         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
5415
5416 2011-03-25  Bruno Haible  <bruno@clisp.org>
5417
5418         unictype/category-byname: Recognize long names as well.
5419         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
5420         a long name.
5421         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
5422         unictype/categ_byname.h.
5423         (UC_CATEGORY_INDEX_*): New enumeration values.
5424         (uc_general_category_byname): Use uc_general_category_lookup and
5425         convert from index to value.
5426         * lib/unictype/categ_byname.gperf: New file.
5427         * modules/unictype/category-byname (Files): Add
5428         lib/unictype/categ_byname.gperf.
5429         (Depends-on): Add gperf.
5430         (Makefile.am): Add rule for generating unictype/categ_byname.h.
5431         * tests/unictype/test-categ_byname.c (main): Test the recognition of
5432         long names.
5433
5434         Tests for module 'unictype/category-longname'.
5435         * modules/unictype/category-longname-tests: New file.
5436         * tests/unictype/test-categ_longname.c: New file.
5437
5438         New module 'unictype/category-longname'.
5439         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
5440         * lib/unictype/categ_longname.c: New file.
5441         * modules/unictype/category-longname: New file.
5442         * modules/unictype/category-all (Depends-on): Add it.
5443
5444 2011-03-25  Bruno Haible  <bruno@clisp.org>
5445
5446         Tests for module 'unictype/category-LC'.
5447         * modules/unictype/category-LC-tests: New file.
5448         * tests/unictype/test-categ_LC.c: New file, automatically generated.
5449
5450         New module 'unictype/category-LC'.
5451         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
5452         (UC_CATEGORY_LC): New declaration.
5453         (UC_CASED_LETTER): New macro.
5454         * lib/gen-uni-tables.c (is_category_LC): New function.
5455         (output_categories): Also handle category LC.
5456         (UC_CATEGORY_MASK_LC): New enumeration value.
5457         (general_category_byname): Also handle category LC.
5458         * lib/unictype/categ_LC.c: New file.
5459         * lib/unictype/categ_LC.h: New file, automatically generated.
5460         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
5461         category LC.
5462         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
5463         * modules/unictype/category-LC: New file.
5464         * modules/unictype/category-byname (Depends-on): Add
5465         unictype/category-LC.
5466         * modules/unictype/category-all (Depends-on): Likewise.
5467
5468 2011-03-25  Eric Blake  <eblake@redhat.com>
5469
5470         xmalloc: revert yesterday's regression
5471         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
5472         realloc's underlying behavior (allowing allocation of zero-size
5473         objects, especially if malloc-gnu is also in use).
5474
5475 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
5476
5477         maint.mk: add missing version to VC-tag
5478         * top/maint.mk: git tag was missing actual tag name; add it.
5479
5480         valgrind: do leak checking, and exit with code 1 on error (not 0)
5481         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
5482         to VALGRIND.
5483
5484 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
5485
5486         posix-modules: say what it does.
5487         * posix-modules: Add a line to the --help output saying what it does.
5488
5489 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
5490
5491         xmalloc: Do not leak if underlying realloc is C99 compatible.
5492         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
5493         This avoids a leak on C99-based systems.  See
5494         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
5495
5496 2011-03-24  Eric Blake  <eblake@redhat.com>
5497
5498         realloc: document portability problem
5499         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
5500         passing 0 size to realloc.
5501
5502 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
5503
5504         doc: update users.txt
5505         * users.txt: Add cvsps, tmpwatch
5506
5507 2011-03-23  Matt Rice  <ratmice@gmail.com>
5508
5509         doc: update users.txt
5510         * users.txt: Add gdb.
5511
5512 2011-03-23  Jim Meyering  <meyering@redhat.com>
5513
5514         doc: update users.txt
5515         Looking through matches up to the following URL (there are still
5516         several more pages), I found several projects that use gnulib:
5517         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
5518         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
5519         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
5520
5521 2011-03-22  Bruno Haible  <bruno@clisp.org>
5522
5523         unictype/bidi*: Rename functions.
5524         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
5525         uc_bidi_class, uc_is_bidi_class): New declarations.
5526         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
5527         uc_bidi_category_byname.
5528         (uc_bidi_category_byname): New function.
5529         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
5530         u_bidi_category_name.
5531         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
5532         (uc_bidi_category_name): New function.
5533         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
5534         uc_bidi_category.
5535         (uc_bidi_category): New function.
5536         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
5537         uc_is_bidi_category. Invoke uc_bidi_class.
5538         (uc_is_bidi_category): New function.
5539         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
5540         instead of uc_bidi_category_byname.
5541         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
5542         instead of uc_bidi_category_name.
5543         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
5544         uc_bidi_category.
5545         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
5546         instead of uc_is_bidi_category.
5547
5548 2011-03-21  Bruno Haible  <bruno@clisp.org>
5549
5550         New module 'unictype/joininggroup-all'.
5551         * modules/unictype/joininggroup-all: New file.
5552
5553         Tests for module 'unictype/joininggroup-of'.
5554         * modules/unictype/joininggroup-of-tests: New file.
5555         * tests/unictype/test-joininggroup_of.c: New file.
5556         * tests/unictype/test-joininggroup_of.h: New file, automatically
5557         generated by gen-uni-tables.
5558
5559         New module 'unictype/joininggroup-of'.
5560         * modules/unictype/joininggroup-of: New file.
5561         * lib/unictype/joininggroup_of.c: New file.
5562         * lib/unictype/joininggroup_of.h: New file, automatically generated by
5563         gen-uni-tables.
5564
5565         Tests for module 'unictype/joininggroup-byname'.
5566         * modules/unictype/joininggroup-byname-tests: New file.
5567         * tests/unictype/test-joininggroup_byname.c: New file.
5568
5569         New module 'unictype/joininggroup-byname'.
5570         * modules/unictype/joininggroup-byname: New file.
5571         * lib/unictype/joininggroup_byname.c: New file.
5572         * lib/unictype/joininggroup_byname.gperf: New file.
5573
5574         Tests for module 'unictype/joininggroup-name'.
5575         * modules/unictype/joininggroup-name-tests: New file.
5576         * tests/unictype/test-joininggroup_name.c: New file.
5577
5578         New module 'unictype/joininggroup-name'.
5579         * modules/unictype/joininggroup-name: New file.
5580         * lib/unictype/joininggroup_name.c: New file.
5581         * lib/unictype/joininggroup_name.h: New file.
5582
5583         New module 'unictype/joiningtype-all'.
5584         * modules/unictype/joiningtype-all: New file.
5585
5586         Tests for module 'unictype/joiningtype-of'.
5587         * modules/unictype/joiningtype-of-tests: New file.
5588         * tests/unictype/test-joiningtype_of.c: New file.
5589         * tests/unictype/test-joiningtype_of.h: New file, automatically
5590         generated by gen-uni-tables.
5591
5592         New module 'unictype/joiningtype-of'.
5593         * modules/unictype/joiningtype-of: New file.
5594         * lib/unictype/joiningtype_of.c: New file.
5595         * lib/unictype/joiningtype_of.h: New file, automatically generated by
5596         gen-uni-tables.
5597
5598         Tests for module 'unictype/joiningtype-byname'.
5599         * modules/unictype/joiningtype-byname-tests: New file.
5600         * tests/unictype/test-joiningtype_byname.c: New file.
5601
5602         New module 'unictype/joiningtype-byname'.
5603         * modules/unictype/joiningtype-byname: New file.
5604         * lib/unictype/joiningtype_byname.c: New file.
5605
5606         Tests for module 'unictype/joiningtype-name'.
5607         * modules/unictype/joiningtype-name-tests: New file.
5608         * tests/unictype/test-joiningtype_name.c: New file.
5609
5610         New module 'unictype/joiningtype-name'.
5611         * modules/unictype/joiningtype-name: New file.
5612         * lib/unictype/joiningtype_name.c: New file.
5613
5614         unictype: Add support for Arabic shaping properties.
5615         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
5616         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
5617         declarations.
5618         (UC_JOINING_GROUP_*): New enumeration values.
5619         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
5620         declarations.
5621         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
5622         (unicode_joining_type): New variable.
5623         (UC_JOINING_GROUP_*): New enumeration values.
5624         (unicode_joining_group): New variable.
5625         (fill_arabicshaping, joining_type_as_c_identifier,
5626         output_joining_type_test, output_joining_type,
5627         joining_group_as_c_identifier, output_joining_group_test,
5628         output_joining_group): New functions.
5629         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
5630         fill_arabicshaping and output_joining_type_test, output_joining_type,
5631         output_joining_group_test, output_joining_group.
5632         Reported by Simon Josefsson.
5633
5634 2011-03-21  Jim Meyering  <meyering@redhat.com>
5635
5636         strftime: fix a bug in yesterday's change
5637         * lib/strftime.c (add): Accommodate width's initial value of -1.
5638         Otherwise, nstrftime would copy uninitialized data into
5639         the result buffer.
5640
5641 2011-03-21  Jim Meyering  <meyering@redhat.com>
5642
5643         tests: add strftime-tests module
5644         * tests/test-strftime.c: New file.
5645         * modules/strftime-tests: New module.
5646
5647 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
5648
5649         strftime: don't assume a byte count fits in 'int'
5650         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
5651         found this problem by static analysis, using gcc -Wstrict-overflow
5652         (GCC 4.5.2, x86-64).  This reported an optimization that depended
5653         on an integer overflow having undefined behavior, but it turns out
5654         that the argument is a size, which might not fit in 'int' anyway,
5655
5656 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
5657
5658         stdio: don't require ignore_value around fwrite
5659
5660         This patch works around libc bug 11959
5661         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
5662         Without this patch, applications must often write
5663         ignore_value (fwrite (...)) even though the ignore_value is
5664         not helpful here.  It's common to write many objects, using
5665         fwrite/printf/etc., and then use ferror to detect output error.
5666
5667         I considered making this patch optional, but decided against it,
5668         because libc is obviously being inconsistent here: there is no
5669         reason libc should insist that user code must inspect fwrite
5670         return's value without also insisting that it inspect printf's,
5671         putchar's, etc.  If user code wants to have a strict style where
5672         all these functions' values are checked (so that ferror need not
5673         be checked), we could add support for that style in a new gnulib
5674         module, but in the meantime it's better to be consistent and to
5675         support common usage.
5676
5677         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
5678         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
5679         that we are compiling in checking mode, and if not C++, and
5680         if not already wrapping fwrite for some other reason.
5681         (fwrite): #define to rpl_fwrite if the latter is defined.
5682
5683 2011-03-20  Bruno Haible  <bruno@clisp.org>
5684
5685         verror: Fix compilation error introduced on 2011-02-13.
5686         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
5687         instead of __attribute__.
5688         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5689
5690 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
5691             Bruno Haible  <bruno@clisp.org>
5692
5693         socklen: do not depend on sys_socket
5694         While trying to modify Emacs to use gnulib's socklen module,
5695         I discovered a circular dependency: socklen depends on sys_socket
5696         and vice versa.  Emacs can use socklen, but it does not need
5697         sys_socket because it has its own substitute for sys/socket.h.
5698         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
5699         gl_TYPE_SOCKLEN_T.
5700         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
5701         gl_PREREQ_SYS_H_SOCKET.
5702         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
5703         gl_PREREQ_SYS_H_SOCKET.
5704         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
5705         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
5706         * modules/socklen (Depends-on): Do not depend on sys_socket.
5707         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
5708
5709 2011-03-20  Jim Meyering  <meyering@redhat.com>
5710
5711         maint.mk: sort file names *after* new transformation
5712         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
5713         prefix would have led to an unwarranted failure in GNU parted.
5714         Sort after that transformation.
5715
5716 2011-03-19  Jim Meyering  <meyering@redhat.com>
5717
5718         maint.mk: fix po-file syntax-check rule
5719         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
5720         Patch by Bruno Haible.
5721
5722 2011-03-19  Bruno Haible  <bruno@clisp.org>
5723
5724         socklen: Update comment.
5725         * m4/socklen.m4: Update comment about platforms.
5726
5727 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
5728             Bruno Haible  <bruno@clisp.org>
5729
5730         inet_ntop, inet_pton: Simplify.
5731         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
5732         documented to provide socklen_t and we already depend on sys_socket.
5733         * modules/inet_pton (Depends-on): Likewise.
5734         * lib/arpa_inet.in.h: Adjust comment.
5735
5736 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
5737             Bruno Haible  <bruno@clisp.org>
5738
5739         netdb: Simplify.
5740         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
5741         documented to provide socklen_t and we already depend on sys_socket.
5742         * lib/netdb.in.h: Adjust comment.
5743
5744 2011-03-19  Bruno Haible  <bruno@clisp.org>
5745
5746         sys_socket, netdb: Document problem with socklen_t.
5747         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
5748         platforms.
5749         * doc/posix-headers/netdb.texi: Likewise.
5750
5751 2011-03-18  Eric Blake  <eblake@redhat.com>
5752
5753         maint.mk: let po check work in VPATH build
5754         * top/maint.mk (po_file): Allow cfg.mk override.
5755         (sc_po_check): Allow VPATH use.
5756         Reported by Jiri Denemark.
5757
5758 2011-03-16  Jim Meyering  <meyering@redhat.com>
5759
5760         maint.mk: allow fine-grained syntax-check exclusion via Make variables
5761         Before, you would have had to create one .x-sc_ file per rule in order
5762         to exempt offending files.  Now, you may instead use a Make variable --
5763         usually defined in cfg.mk -- whose name identifies the affected rule.
5764         * top/maint.mk (_sc_excl): Define.
5765         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
5766         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
5767
5768 2011-03-13  Bruno Haible  <bruno@clisp.org>
5769
5770         ignore-value tests: Avoid warnings.
5771         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
5772         empty for gcc < 3.4.
5773
5774 2011-03-13  Bruno Haible  <bruno@clisp.org>
5775
5776         passfd: Fix link error on Solaris.
5777         * modules/passfd (Description): Correct.
5778         (Depends-on): Add socketlib.
5779         (Link): New section.
5780         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
5781
5782 2011-03-13  Bruno Haible  <bruno@clisp.org>
5783
5784         passfd: Fix link error on AIX 5.2.
5785         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
5786
5787 2011-03-13  Bruno Haible  <bruno@clisp.org>
5788
5789         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
5790         * lib/sys_socket.in.h: Include <stddef.h>.
5791         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
5792         CMSG_FIRSTHDR. Remove unused variable.
5793
5794 2011-03-13  Bruno Haible  <bruno@clisp.org>
5795
5796         passfd: Fix compilation error on OpenBSD.
5797         * lib/passfd.c: Include <sys/uio.h>.
5798
5799 2011-03-13  Bruno Haible  <bruno@clisp.org>
5800
5801         passfd test: Fix warnings.
5802         * tests/test-passfd.c: Include <sys/wait.h>.
5803         (main): Fix typo.
5804
5805 2011-03-13  Bruno Haible  <bruno@clisp.org>
5806
5807         passfd module, part 4, tweaks.
5808         * tests/test-passfd.c: Reorder includes.
5809         (main): Fix perror and printf calls.
5810
5811 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
5812
5813         passfd module, part 4.
5814         * modules/passfd-tests: New file.
5815         * tests/test-passfd.c: New file.
5816
5817 2011-03-13  Jim Meyering  <meyering@redhat.com>
5818
5819         Makefile: rely on GNU make; derive syntax-check rule names
5820         Rather than requiring that each sc_ rule be listed as a dependent
5821         of "check", use features of GNU make to derive the list.
5822         * Makefile (syntax-check-rules): Define.
5823         (check): Depend on the new variable, not the hard-coded list.
5824
5825 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
5826             Bruno Haible  <bruno@clisp.org>
5827
5828         passfd module, part 3.
5829         * lib/passfd.h (recvfd): Add a flags argument.
5830         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
5831         (recvfd): Add a flags argument.
5832         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
5833         exists.
5834         * modules/passfd (Depends-on): Add cloexec.
5835         Suggested by Eric Blake.
5836
5837 2011-03-13  Bruno Haible  <bruno@clisp.org>
5838
5839         passfd module, part 2, tweaks.
5840         * modules/passfd (Files): Reorder.
5841         (Depends-on): Remove errno.
5842         (Include): Remove <sys/socket.h>, <sys/un.h>.
5843         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
5844         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
5845         specification header. Include <sys/socket.h> always. Don't include
5846         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
5847         (sendfd): Clarify that it sets errno when it fails.
5848         (recvfd): Fix specification.
5849
5850 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
5851
5852         passfd module, part 2.
5853         * modules/passfd: New file.
5854         * lib/passfd.h: New file.
5855         * lib/passfd.c: New file.
5856
5857 2011-03-12  Bruno Haible  <bruno@clisp.org>
5858
5859         wcswidth, mbswidth: Avoid integer overflow.
5860         * lib/wcswidth.c: Include <limits.h>.
5861         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
5862         * lib/mbswidth.c: Include <limits.h>.
5863         (mbsnwidth): Avoid 'int' overflow.
5864         Reported by Jim Meyering.
5865
5866 2011-03-12  Bruno Haible  <bruno@clisp.org>
5867
5868         futimens, utimensat: Avoid endless recursion on Solaris 10.
5869         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
5870         Solaris.
5871         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
5872         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
5873
5874 2011-03-11  Jim Meyering  <meyering@redhat.com>
5875
5876         maint.mk: relax a regexp to accommodate other formatting styles
5877         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
5878         between "ngettext" and the following "(".
5879
5880 2011-03-11  Pádraig Brady <P@draigBrady.com>
5881
5882         maint.mk: suppress a false positive warning
5883         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
5884         diagnostics are marked with ngettext.
5885
5886 2011-03-10  Eric Blake  <eblake@redhat.com>
5887
5888         wchar: add explicit dependencies, for Tru64
5889         * modules/mbmemcasecoll (Depends-on): Add wchar.
5890         * modules/mbtowc (Depends-on): Likewise.
5891         * modules/vasnprintf (Depends-on): Likewise.
5892         * modules/unistdio/u-printf-args (Depends-on): Likewise.
5893         * modules/wctomb (Depends-on): Likewise.
5894         Reported by Peter O'Gorman.
5895
5896 2011-03-08  Bruno Haible  <bruno@clisp.org>
5897
5898         passfd module, part 1, tweaks.
5899         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
5900         Improve indentation. Improve AC_MSG_CHECKING messages.
5901         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
5902         gl_SOCKET_FAMILIES.
5903
5904 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
5905
5906         passfd module, part 1.
5907         * m4/afunix.m4: New file.
5908         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
5909         sockets.
5910
5911 2011-03-08  Bruno Haible  <bruno@clisp.org>
5912
5913         regex-quote: New API.
5914         * lib/regex-quote.h: Include <stdbool.h>.
5915         (struct regex_quote_spec): New type.
5916         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
5917         New declarations.
5918         (regex_quote_length, regex_quote_copy, regex_quote): Take a
5919         'const struct regex_quote_spec *' argument.
5920         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
5921         (pcre_special): New constant.
5922         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
5923         New functions.
5924         (regex_quote_length, regex_quote_copy, regex_quote): Take a
5925         'const struct regex_quote_spec *' argument.
5926         * modules/regex-quote (Depends-on): Add stdbool.
5927         * tests/test-regex-quote.c (check): Update for new API. Add test for
5928         anchored results.
5929         * NEWS: Mention the API change.
5930         Reported by Reuben Thomas and Eric Blake.
5931
5932 2011-03-06  Bruno Haible  <bruno@clisp.org>
5933
5934         regex-quote: Fix creation of POSIX extended regular expressions.
5935         * lib/regex-quote.c (ere_special): Add grouping and alternation
5936         operators.
5937
5938 2011-03-05  Bruno Haible  <bruno@clisp.org>
5939
5940         doc: Improve doc regarding autopoint vs. gnulib.
5941         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
5942         disable autopoint while running autoreconf.
5943         Suggested by Ralf Wildenhues.
5944
5945 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5946
5947         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
5948         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
5949
5950 2011-03-03  Bruce Korb  <bkorb@gnu.org>
5951
5952         parse-duration: remove xalloc.h dependency
5953         * lib/parse-duration.c (parse_period): handle NULL return from
5954         strdup instead of calling xstrdup().
5955         * modules/parse-duration: remove "xalloc" dependency
5956
5957 2011-03-03  Matthew Booth  <mbooth@redhat.com>
5958
5959         bootstrap: honor m4_base when running aclocal
5960         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
5961
5962 2011-03-02  Jim Meyering  <meyering@redhat.com>
5963
5964         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
5965         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
5966         on request from Matt Booth.
5967
5968 2011-03-01  Eric Blake  <eblake@redhat.com>
5969
5970         test-link: work on Hurd
5971         * tests/test-link.h (test_link): Hurd rejects linking directories
5972         with EISDIR instead of the POSIX-mandated EPERM.
5973
5974 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
5975
5976         stdio: simplify by moving files to printf-posix, sigpipe
5977         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
5978         since this symbol is needed only if printf is replaced.
5979         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
5980         Require gl_ASM_SYMBOL_PREFIX.
5981         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
5982         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
5983         (Depends-on): Add 'raise'.
5984         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
5985         * modules/stdio (Files): Remove lib/stdio-write.c,
5986         m4/asm-underscore.m4.
5987         (Depends-on): Remove 'raise'.
5988
5989         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
5990         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
5991         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
5992         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
5993
5994 2011-02-28  Bruno Haible  <bruno@clisp.org>
5995
5996         localcharset: Assume ANSI C behaviour of free().
5997         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
5998         calling free().
5999         Suggested by Simon Josefsson <simon@josefsson.org>.
6000
6001 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
6002             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
6003             Bruno Haible  <bruno@clisp.org>  (tiny change)
6004
6005         On Cygwin, use /proc file system instead of win32 API.
6006         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
6007         Win32 file names.
6008         (DllMain): Simplify by removing Cygwin specific code.
6009         (find_shared_library_fullname): Use Linux specific implementation also
6010         for Cygwin.
6011         (get_shared_library_fullname): Update accordingly.
6012         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
6013         Win32 file names.
6014         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
6015         Cygwin specific code.
6016
6017 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
6018             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
6019
6020         Fix OpenMP flag detection for various Fortran compilers.
6021         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
6022         OpenMP-conditional compilation construct, to force compile
6023         failure with missing OpenMP flag.
6024         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
6025
6026 2011-02-25  Eric Blake  <eblake@redhat.com>
6027
6028         strstr: expand test coverage
6029         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
6030         compilation.
6031         * tests/test-memmem.c (main): Duplicate tests.
6032         * tests/test-strcasestr.c (main): Likewise.
6033         * tests/test-c-strcasestr.c (main): Likewise.
6034
6035 2011-02-25  Jim Meyering  <meyering@redhat.com>
6036
6037         maint.mk: detect missing-NL-at-EOF, too
6038         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
6039         it also detects when a file lacks a newline at EOF.
6040         (require_exactly_one_NL_at_EOF_): Renamed from
6041         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
6042         since people may well have .x-sc_... file names tied to the
6043         existing name.  Suggested by Eric Blake.
6044
6045 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
6046
6047         dirname: move m4/dos.m4 functionality into lib/dosname.h
6048
6049         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
6050         extracts symbols from it, puts them into config.h; but it's much
6051         easier to use the symbols directly.  filename.h already does this,
6052         but it disagrees with dos.m4 in some respects.  This patch
6053         introduces a different include file dosname.h that packages up
6054         dos.m4, and then later we can work on merging filename.h and
6055         dosname.h.  Applications that need only the easy-to-configure
6056         symbols should consider including dosname.h rather than dirname.h.
6057         * NEWS: Mention incompatible changes.
6058         * m4/dos.m4: Remove.
6059         * lib/dosname.h, modules/dosname: New files.
6060         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
6061         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
6062         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
6063         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
6064         Include dosname.h, not dirname.h.
6065         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
6066         Include dosname.h, for definitions of symbols like ISSLASH
6067         that used to be in config.h.
6068         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
6069         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
6070         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
6071         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
6072         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
6073         * modules/rmdir (Files): Likewise.
6074         * modules/stat (Files): Likewise.
6075         * modules/unlink (Files): Likewise.
6076         * modules/dirname-lgpl (Depends-on): Add dosname.
6077         * modules/lstat (Depends-on): Likewise.
6078         * modules/openat (Depends-on): Likewise.
6079         * modules/rmdir (Depends-on): Likewise.
6080         * modules/savewd (Depends-on): Likewise.
6081         * modules/stat (Depends-on): Likewise.
6082         * modules/unlink (Depends-on): Likewise.
6083         * modules/openat (Depends-on): Remove dirname-lgpl.
6084         * modules/savewd (Depends-on): Likewise.
6085         * tests/test-dirname.c: Do not use removed symbols like
6086         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
6087         the remaining symbols, e.g., ISSLASH ('\\').
6088
6089 2011-02-25  Eric Blake  <eblake@redhat.com>
6090
6091         strstr: revert patches that introduced bug and pessimization
6092         * lib/str-two-way.h: Add another reference.
6093         (two_way_short_needle, two_way_long_needle): Revert changes from
6094         2011-02-24; they pessimize search speed.
6095         (critical_factorization): Partially revert changes from
6096         2010-06-22; they violate the requirement that the left half of the
6097         needle be smaller than the period of the needle.
6098
6099 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
6100
6101         filenamecat: remove unnecessary dependency on dirname-lgpl
6102         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
6103         is no direct dependency, just an indirect one via filenamecat-lgpl.
6104
6105         remove: remove unnecessary use of m4/dos.m4
6106         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
6107         * modules/remove (FILES): Remove m4/dos.m4.
6108
6109         * lib/openat-proc.c: Don't include dirname.h; not needed.
6110
6111         backupfile: remove unnecessary use of m4/dos.m4
6112         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
6113         of its symbols are used by the backupfile code.  backupfile.c does
6114         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
6115         for the rare case of programs that want all their backup file
6116         names to live within 8+3 limits, and dos.m4 doesn't address that.
6117         * modules/backupfile (Files): Remove m4/dos.m4.
6118
6119 2011-02-24  Jim Meyering  <meyering@redhat.com>
6120
6121         strstr: fix a bug whereby strstr would mistakenly return NULL
6122         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
6123         in period calculation.
6124         (two_way_long_needle): Likewise.
6125         The original problem was reported by Mike Stump in
6126         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
6127         Ralf Wildenhues provided the short needle and haystack.
6128         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
6129         Add a more involved test to trigger the bug in two_way_long_needle.
6130
6131 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
6132
6133         gnulib-tool: remove use of bold display in help screen
6134         * gnulib-tool (func_usage): Do not use bold display anymore in the
6135         help screen.  That was just meant to be a temporary emphasis for a
6136         backward-incompatible change.
6137
6138 2011-02-23  Bruno Haible  <bruno@clisp.org>
6139
6140         Fix misindentation of preprocessor directives.
6141         * lib/argp-namefrob.h: Reindent preprocessor directives.
6142         * lib/getopt_int.h (struct _getopt_data): Likewise.
6143         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
6144         * lib/vasnprintf.c (decode_long_double): Likewise.
6145         * tests/test-argmatch.c: Insert blank lines, for clarity.
6146         * tests/test-exclude.c: Likewise.
6147
6148 2011-02-22  Bruno Haible  <bruno@clisp.org>
6149
6150         ioctl: Fix for MacOS X in 64-bit mode.
6151         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
6152         value.
6153         Suggested by Eric Blake.
6154         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
6155
6156 2011-02-22  Jim Meyering  <meyering@redhat.com>
6157
6158         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
6159         * Makefile (sc_cpp_indent_check): Don't limit the check to files
6160         in lib/.
6161
6162 2011-02-22  Eric Blake  <eblake@redhat.com>
6163
6164         maint: avoid any CDPATH issue
6165         * Makefile (sc_cpp_indent_check): Anchor cd argument.
6166
6167         maint: adjust cpp indentation for my modules, as well
6168         * Makefile (sc_cpp_indent_check): Add my name.
6169         * lib/fbufmode.c: Filter through cppi.
6170         * lib/fpurge.c: Likewise.
6171         * lib/freadable.c: Likewise.
6172         * lib/freading.c: Likewise.
6173         * lib/fwritable.c: Likewise.
6174         * lib/fwriting.c: Likewise.
6175         * lib/sigaction.c: Likewise.
6176
6177 2011-02-22  Jim Meyering  <meyering@redhat.com>
6178
6179         maint: adjust cpp indentation to reflect nesting depth
6180         I.e., in a block of code that begins with an unnested "#if",
6181         put one space between the "#" in column 1 and following token.
6182         For example,
6183         -#include <sys/vfs.h>
6184         +# include <sys/vfs.h>
6185         Do this only in .c files that are part of a module I maintain.
6186         * lib/linkat.c: Filter through cppi.
6187         * lib/nanosleep.c: Likewise.
6188         * lib/openat.c: Likewise.
6189         * lib/openat-die.c: Likewise.
6190         * lib/dup3.c: Likewise.
6191         * lib/fchownat.c: Likewise.
6192         * lib/flock.c: Likewise.
6193         * lib/fsync.c: Likewise.
6194         * lib/fts.c: Likewise.
6195         * lib/getpass.c: Likewise.
6196         * lib/gettimeofday.c: Likewise.
6197         * lib/userspec.c: Likewise.
6198         * Makefile (sc_cpp_indent_check): New rule, to check this.
6199
6200 2011-02-22  Bruno Haible  <bruno@clisp.org>
6201
6202         New module 'wctomb'.
6203         * lib/stdlib.in.h (wctomb): New declaration.
6204         * lib/wctomb.c: New file.
6205         * lib/wctomb-impl.h: New file.
6206         * m4/wctomb.m4: New file.
6207         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
6208         REPLACE_WCTOMB.
6209         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
6210         REPLACE_WCTOMB.
6211         * modules/wctomb: New file.
6212         * tests/test-stdlib-c++.cc: Test signature of wctomb.
6213         * doc/posix-functions/wctomb.texi: Mention the new module.
6214         * modules/wctob (Depends-on): Add wctomb.
6215
6216 2011-02-22  Bruno Haible  <bruno@clisp.org>
6217
6218         New module 'mbtowc'.
6219         * lib/stdlib.in.h (mbtowc): New declaration.
6220         * lib/mbtowc.c: New file.
6221         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
6222         * m4/mbtowc.m4: New file.
6223         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
6224         REPLACE_MBTOWC.
6225         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
6226         REPLACE_MBTOWC.
6227         * modules/mbtowc: New file.
6228         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
6229         * doc/posix-functions/mbtowc.texi: Mention the new module.
6230         * modules/btowc (Depends-on): Add mbtowc.
6231
6232 2011-02-22  Bruno Haible  <bruno@clisp.org>
6233
6234         wcrtomb: Add more tests for native Windows platforms.
6235         * tests/test-wcrtomb-w32-1.sh: New file.
6236         * tests/test-wcrtomb-w32-2.sh: New file.
6237         * tests/test-wcrtomb-w32-3.sh: New file.
6238         * tests/test-wcrtomb-w32-4.sh: New file.
6239         * tests/test-wcrtomb-w32-5.sh: New file.
6240         * tests/test-wcrtomb-w32.c: New file.
6241         * modules/wcrtomb-tests (Files): Add them.
6242         (Makefile.am): Arrange to run these tests.
6243         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
6244         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
6245
6246 2011-02-20  Bruno Haible  <bruno@clisp.org>
6247
6248         wcrtomb: Enhance test.
6249         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
6250
6251 2011-02-20  Bruno Haible  <bruno@clisp.org>
6252
6253         mbrtowc: Tiny optimization.
6254         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
6255
6256 2011-02-20  Jim Meyering  <meyering@redhat.com>
6257
6258         test-exclude.c: remove unmatched #endif
6259         * tests/test-exclude.c: Remove stray #endif, left over from
6260         the change of a week ago.
6261
6262 2011-02-19  Jim Meyering  <meyering@redhat.com>
6263
6264         git-version-gen: skip "-dirty" check when appropriate
6265         * build-aux/git-version-gen: Don't run any git commands when the
6266         version string comes from .tarball-version.  Prior to this, we
6267         would run git update-index --refresh even from a just-unpacked
6268         tarball directory, and that could affect a .git/ directory in a
6269         parent of the build directory.  Reported by Mike Frysinger.
6270
6271 2011-02-19  Bruno Haible  <bruno@clisp.org>
6272
6273         unictype/property-byname: Reduce the size of the 'data' segment.
6274         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
6275
6276 2011-02-19  Bruno Haible  <bruno@clisp.org>
6277
6278         unictype/scripts: Reduce the size of the 'data' segment.
6279         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
6280         '%pic'.
6281         * lib/unictype/scripts_byname.gperf: Regenerated.
6282
6283 2011-02-19  Bruno Haible  <bruno@clisp.org>
6284
6285         stdint: Update documentation.
6286         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
6287
6288 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
6289
6290         stdint: omit redundant check for wchar.h
6291         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
6292         always tests whether wchar.h exists, so remove the now-redundant test.
6293
6294 2011-02-18  Bruno Haible  <bruno@clisp.org>
6295
6296         stdint: Cut dependency to module 'wchar'.
6297         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
6298         include the necessary prerequisites.
6299         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
6300         * modules/stdint (Depends-on): Remove wchar.
6301         (Makefile.am): Substitute HAVE_WCHAR_H.
6302         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
6303
6304 2011-02-18  Eric Blake  <eblake@redhat.com>
6305
6306         longlong: skip, rather than fail, on cross-compilation
6307         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
6308         when cross-compiling; regression from 2011-02-16.
6309
6310 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
6311
6312         * NEWS: Mention 2011-02-08 change to stdlib.
6313
6314 2011-02-17  Bruno Haible  <bruno@clisp.org>
6315
6316         getloadavg: Add comments about platforms.
6317         * m4/getloadavg.m4: Add comment.
6318         * lib/getloadavg.c: Likewise.
6319
6320 2011-02-17  Bruno Haible  <bruno@clisp.org>
6321
6322         getloadavg: Fix link error on Solaris 2.6.
6323         * modules/getloadavg (Link): New section.
6324         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
6325         linking test-getloadavg.
6326         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
6327         getloadavg.
6328
6329 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
6330
6331         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
6332         It was 'int', but this doesn't match the IRIX 6.5 manual.
6333         Suggested by Bruno Haible in
6334         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
6335
6336 2011-02-17  Bruno Haible  <bruno@clisp.org>
6337
6338         havelib: Fix comments.
6339         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
6340         change.
6341
6342 2011-02-17  Bruno Haible  <bruno@clisp.org>
6343
6344         havelib: Update config.rpath.
6345         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
6346
6347 2011-02-17  Bruno Haible  <bruno@clisp.org>
6348
6349         getloadavg test: Add some plausibility checks.
6350         * tests/test-getloadavg.c (check_avg): Print a warning when the value
6351         is improbable.
6352
6353 2011-02-16  Eric Blake  <eblake@redhat.com>
6354
6355         maintainer-makefile: make syntax-check a no-op from tarballs
6356         * top/maint.mk (no-vc-detected): New rule.
6357         (local-checks-available): Use it to avoid hanging if someone tries
6358         'make syntax-check' from a tarball.  Also append to any non-syntax
6359         checks already defined in cfg.mk.
6360
6361 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
6362
6363         longlong: tune, particularly for common case of c99
6364
6365         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
6366         or running anything if c99, or if unsigned long long int does not
6367         work.  In either case, we know the answer without further tests.
6368         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
6369         it at most once, and use its results for both long long int and
6370         unsigned long long int.  This is more likely to be efficient in
6371         the common case where the program wants to check for both long
6372         long int and unsigned long long int.
6373         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
6374         since the answer is already known.
6375
6376 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
6377
6378         getloadavg: set errno
6379         * lib/getloadavg.c: Set errno when returning -1.  If no other
6380         error number looks appropriate, set it to ENOSYS if the getloadavg
6381         looks like it can't possibly ever work, ENOTSUP otherwise.
6382         Suggested by Bruno Haible in
6383         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
6384
6385         getloadavg: trim unused parts and speed up 'configure'
6386         * NEWS: Document this.
6387         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
6388         always compiled if getloadavg is absent.
6389         Move test code to ...
6390         * tests/test-getloadavg.c: New file, containing previous
6391         contents of test from lib/getloadavg.c.  It also contains
6392         suggestions by Bruno Haible in
6393         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
6394         * modules/getloadavg-tests: New file.
6395         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
6396         Do tests in the same order as they're needed for getloadavg.c.
6397         Omit setgid-related tests that generate symbols KMEM_GROUP,
6398         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
6399         Do only the tests that are needed to see whether the system has
6400         getloadavg, moving the other tests into ...
6401         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
6402         NLIST_NAME_UNION; nobody should be using it.  Do not define
6403         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
6404         relevant, as the user of this module shouldn't care how getloadavg
6405         is implemented.
6406
6407         getloadavg: omit unused var
6408         * lib/getloadavg.c (getloadavg): Omit unused local variable.
6409
6410 2011-02-15  Jim Meyering  <meyering@redhat.com>
6411
6412         doc: update users.txt
6413         * users.txt: Update iwhd's URL.
6414
6415 2011-02-13  Bruno Haible  <bruno@clisp.org>
6416
6417         Consistent macro naming for macros that use GCC __attribute__.
6418         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
6419         _ATTRIBUTE_NONNULL_.
6420         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
6421         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
6422         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
6423         ATTRIBUTE_DEPRECATED.
6424         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
6425         ATTRIBUTE_NORETURN.
6426         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
6427         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
6428         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
6429         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
6430         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
6431         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
6432         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
6433         ATTRIBUTE_SENTINEL.
6434         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
6435         ATTRIBUTE_RETURN_CHECK.
6436         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
6437         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
6438         ATTRIBUTE_NORETURN.
6439         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
6440         Reported by Paul Eggert.
6441
6442 2011-02-13  Bruno Haible  <bruno@clisp.org>
6443
6444         Don't interfere with a program's definition of __attribute__.
6445         * lib/argp.h (__attribute__): Remove definition.
6446         (_GL_ATTRIBUTE_FORMAT): New macro.
6447         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
6448         * lib/argp-fmtstream.h (__attribute__): Remove definition.
6449         (_GL_ATTRIBUTE_FORMAT): New macro.
6450         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
6451         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
6452         GCC 3 or newer.
6453         * lib/error.h (__attribute__): Remove definition.
6454         (_GL_ATTRIBUTE_FORMAT): New macro.
6455         (error, error_at_line): Use it.
6456         * lib/hash.h (__attribute__): Remove definition.
6457         (ATTRIBUTE_WUR): Update definition. Define always.
6458         * lib/openat.h (__attribute__): Remove definition.
6459         (ATTRIBUTE_NORETURN): Update definition. Define always.
6460         * lib/sigpipe-die.h (__attribute__): Remove definition.
6461         (ATTRIBUTE_NORETURN): Update definition. Define always.
6462         * lib/vasnprintf.h (__attribute__): Remove definition.
6463         (_GL_ATTRIBUTE_FORMAT): New macro.
6464         (asnprintf, vasnprintf): Use it.
6465         * lib/xalloc.h (__attribute__): Remove definition.
6466         (ATTRIBUTE_NORETURN): Update definition. Define always.
6467         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
6468         * lib/xmemdup0.h (__attribute__): Remove definition.
6469         (ATTRIBUTE_NORETURN): Update definition. Define always.
6470         * lib/xprintf.h (__attribute__): Remove definition.
6471         (_GL_ATTRIBUTE_FORMAT): New macro.
6472         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
6473         * lib/xstrtol.h (__attribute__): Remove definition.
6474         (ATTRIBUTE_NORETURN): Update definition. Define always.
6475         * lib/xvasprintf.h (__attribute__): Remove definition.
6476         (_GL_ATTRIBUTE_FORMAT): New macro.
6477         (xasprintf, xvasprintf): Use it.
6478         * tests/test-argmatch.c (__attribute__): Remove definition.
6479         (ATTRIBUTE_NORETURN): Update definition. Define always.
6480         * tests/test-exclude.c (__attribute__): Remove definition.
6481         (ATTRIBUTE_NORETURN): Update definition. Define always.
6482         Reported by Paul Eggert.
6483
6484 2011-02-13  Bruno Haible  <bruno@clisp.org>
6485
6486         mbrtowc: Add more tests for native Windows platforms.
6487         * tests/test-mbrtowc-w32-1.sh: New file.
6488         * tests/test-mbrtowc-w32-2.sh: New file.
6489         * tests/test-mbrtowc-w32-3.sh: New file.
6490         * tests/test-mbrtowc-w32-4.sh: New file.
6491         * tests/test-mbrtowc-w32-5.sh: New file.
6492         * tests/test-mbrtowc-w32.c: New file.
6493         * modules/mbrtowc-tests (Files): Add them.
6494         (Makefile.am): Arrange to run these tests.
6495         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
6496         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
6497
6498 2011-02-13  Bruno Haible  <bruno@clisp.org>
6499
6500         mbrtowc: Work around native Windows bug.
6501         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
6502         guess when no suitable locale for testing was found.
6503         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
6504
6505 2011-02-13  Bruno Haible  <bruno@clisp.org>
6506
6507         mbsinit: Work around mingw bug.
6508         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
6509         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
6510         Windows.
6511         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
6512
6513 2011-02-13  Bruno Haible  <bruno@clisp.org>
6514
6515         mbsinit: Don't crash for a NULL argument.
6516         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
6517         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
6518
6519 2011-02-13  Bruno Haible  <bruno@clisp.org>
6520
6521         Don't interfere with a program's definition of __attribute__.
6522         * lib/stdio.in.h (__attribute__): Remove definition.
6523         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
6524         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
6525         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
6526         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
6527         * lib/string.in.h (__attribute__): Remove definition.
6528         Reported by Paul Eggert.
6529
6530 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
6531
6532         stdlib: don't get in the way of non-GCC __attribute__
6533         See thread starting at
6534         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
6535         Revert previous stdlib change, installing the following instead:
6536         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
6537         to get in the way of a non-GCC compiler that supports __attribute__.
6538         (_GL_ATTRIBUTE_RETURN): New macro.
6539         (_Exit): Use it instead of __attribute__.
6540
6541 2011-02-12  Bruno Haible  <bruno@clisp.org>
6542
6543         quotearg test: Avoid test failure on mingw.
6544         * tests/test-quotearg.sh: Convert the locale identifier from native
6545         Windows syntax to Unix syntax.
6546
6547 2011-02-12  Bruno Haible  <bruno@clisp.org>
6548
6549         setlocale: Prefer gnulib's override over libintl's override.
6550         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
6551         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
6552         GNULIB_defined_setlocale is set.
6553
6554 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
6555
6556         stdlib: support non-GCC __attribute__
6557
6558         Fix a serious and tricky problem encountered when attempting to
6559         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
6560         5.5, but it crashed due to memory corruption on Solaris 10 with
6561         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
6562         bits that are otherwise zero.  This tagging is optional inside
6563         Emacs but is preferred and is used when __attribute__ ((__aligned
6564         (8))) works, as it does with both recent-enough GCC and with Sun C
6565         5.11.  However, Sun C 5.11 is not GCC and does not #define
6566         __GNUC__ and __GNUC_MINOR__.
6567
6568         When I added the getloadavg module to Emacs, it brought in
6569         stdlib.in.h, which contained this fragment:
6570
6571            #ifndef __attribute__
6572            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
6573            #  define __attribute__(Spec)   /* empty */
6574            # endif
6575            #endif
6576
6577         When files that include <stdlib.h> were compiled with Sun C 5.11,
6578         the above code disabled __attribute__ ((__aligned (8))), which
6579         caused variables to not be properly aligned, which eventually led
6580         to the pointer corruption mentioned above.  (This was a bit hard
6581         to diagnose, unfortunately.)
6582
6583         Several "#define __attribute__(X) /* empty */" code snippets need
6584         to be eradicated from Gnulib to work with non-GCC compilers that
6585         support __attribute__.  The Autoconf way to do this is to test for
6586         each kind of attribute that we want support for, and selectively
6587         enable that in source code.
6588
6589         Fix this problem just for stdlib.h, by adding a test for the
6590         __noreturn__ attribute, and change stdlib.in.h to use that test
6591         when needed.  This technique can be easily generalized to the
6592         other *.in.h files and attributes, and a similar technique can be
6593         used for *.h and *.c files.  This patch is enough to solve the
6594         problem for Emacs + getloadavg, and I thought I'd publish it for
6595         feedback before undertaking further, similar fixes in other
6596         modules.
6597
6598         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
6599         because it's not needed for stdlib.h.  It merely substitutes the
6600         value directly into stdlib.h.  We may well need to #define it, or
6601         similar symbols, for other modules, but it's nice to also have an
6602         option to not #define it for applications like Emacs that do not
6603         need it.
6604
6605         * lib/stdlib.in.h (__attribute__): Do not #define.
6606         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
6607         be defined only if the _Exit module is also used.
6608         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
6609         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
6610         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
6611         platforms.
6612         * modules/_Exit (Files): Add m4/attribute.m4.
6613         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
6614         * m4/attribute.m4: New file.
6615
6616 2011-02-12  Bruno Haible  <bruno@clisp.org>
6617
6618         wcsrtombs: Work around bug on native Windows.
6619         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
6620         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
6621         instead of len.
6622         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
6623
6624 2011-02-12  Bruno Haible  <bruno@clisp.org>
6625
6626         mbsrtowcs: Work around bug on native Windows.
6627         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
6628         against mingw bug.
6629         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
6630
6631 2011-02-12  Bruno Haible  <bruno@clisp.org>
6632
6633         Avoid setlocale bugs in tests.
6634         * modules/btowc (Dependencies): Add setlocale.
6635         * modules/c-strcase (Dependencies): Likewise.
6636         * modules/mbmemcasecmp (Dependencies): Likewise.
6637         * modules/mbmemcasecoll (Dependencies): Likewise.
6638         * modules/mbrtowc (Dependencies): Likewise.
6639         * modules/mbscasecmp (Dependencies): Likewise.
6640         * modules/mbscasestr (Dependencies): Likewise.
6641         * modules/mbschr (Dependencies): Likewise.
6642         * modules/mbscspn (Dependencies): Likewise.
6643         * modules/mbsinit (Dependencies): Likewise.
6644         * modules/mbsncasecmp (Dependencies): Likewise.
6645         * modules/mbsnrtowcs (Dependencies): Likewise.
6646         * modules/mbspbrk (Dependencies): Likewise.
6647         * modules/mbspcasecmp (Dependencies): Likewise.
6648         * modules/mbsrchr (Dependencies): Likewise.
6649         * modules/mbsrtowcs (Dependencies): Likewise.
6650         * modules/mbsspn (Dependencies): Likewise.
6651         * modules/mbsstr (Dependencies): Likewise.
6652         * modules/nl_langinfo (Dependencies): Likewise.
6653         * modules/quotearg (Dependencies): Likewise.
6654         * modules/unicase/locale-language (Dependencies): Likewise.
6655         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
6656         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
6657         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
6658         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
6659         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
6660         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
6661         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
6662         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
6663         * modules/vasnprintf-posix (Dependencies): Likewise.
6664         * modules/wcrtomb (Dependencies): Likewise.
6665         * modules/wcsnrtombs (Dependencies): Likewise.
6666         * modules/wcsrtombs (Dependencies): Likewise.
6667
6668 2011-02-12  Bruno Haible  <bruno@clisp.org>
6669
6670         setlocale: Workaround native Windows bug.
6671         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
6672         succeeds but sets LC_CTYPE to "C", report a failure.
6673         * tests/test-setlocale2.sh: New file.
6674         * tests/test-setlocale2.c: New file.
6675         * modules/setlocale-tests (Files): Add the new files.
6676         (Makefile.am): Enable test-setlocale2.sh test.
6677         * doc/posix-functions/setlocale.texi: Mention workaround.
6678
6679 2011-02-11  Bruno Haible  <bruno@clisp.org>
6680
6681         Tests for module 'setlocale'.
6682         * modules/setlocale-tests: New file.
6683         * tests/test-setlocale1.sh: New file.
6684         * tests/test-setlocale1.c: New file.
6685
6686         New module 'setlocale'.
6687         * lib/locale.in.h (setlocale): New declaration.
6688         * lib/setlocale.c: New file, based on
6689         gettext/gettext-runtime/intl/setlocale.c.
6690         * m4/setlocale.m4: New file.
6691         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
6692         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
6693         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
6694         REPLACE_SETLOCALE.
6695         * modules/setlocale: New file.
6696         * tests/test-locale-c++.cc: Test the declaration of setlocale.
6697         * doc/posix-functions/setlocale.texi: Mention the new module.
6698
6699 2011-02-11  Bruno Haible  <bruno@clisp.org>
6700
6701         Prepare for locale dependent tests on mingw.
6702         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
6703         because it has the wrong locale encoding.
6704         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
6705         French_France.1252 instead of "fr".
6706         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
6707         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
6708         because it has the wrong locale encoding.
6709         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
6710         native Windows, try Turkish_Turkey.65001.
6711         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
6712         Chinese_China.54936.
6713
6714         Prepare for locale dependent tests on mingw.
6715         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
6716         differently.
6717         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
6718         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
6719         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
6720         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
6721
6722 2011-02-11  Eric Blake  <eblake@redhat.com>
6723
6724         strptime: avoid compiler warnings
6725         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
6726         compiler warnings about dead code.
6727         Reported by Daniel P. Berrange.
6728
6729 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
6730
6731         doc: update users.txt
6732         * users.txt: Add rcs.
6733
6734 2011-02-10  John W. Eaton  <jwe@gnu.org>
6735
6736         doc: update users.txt
6737         * users.txt: Add octave.
6738
6739 2011-02-10  Jim Meyering  <meyering@redhat.com>
6740
6741         doc: update users.txt
6742         * users.txt: Add iwhd.
6743
6744 2011-02-09  Bruno Haible  <bruno@clisp.org>
6745
6746         gnulib-tool: Make copyright notice adjustment more robust.
6747         * gnulib-tool (func_import): In sed_transform_main_lib_file,
6748         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
6749         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
6750         License".
6751         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
6752
6753 2011-02-06  Bruno Haible  <bruno@clisp.org>
6754
6755         New module 'towctrans'.
6756         * modules/towctrans: New file.
6757         * lib/wctype.in.h (towctrans): New declaration.
6758         * lib/towctrans.c: New file.
6759         * lib/towctrans-impl.h: New file.
6760         * m4/towctrans.m4: New file.
6761         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
6762         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
6763         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
6764         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
6765         * doc/posix-functions/towctrans.texi: Mention the new module.
6766
6767 2011-02-06  Bruno Haible  <bruno@clisp.org>
6768
6769         New module 'wctrans'.
6770         * modules/wctrans: New file.
6771         * lib/wctype.in.h (wctrans): New declaration.
6772         * lib/wctrans.c: New file.
6773         * lib/wctrans-impl.h: New file.
6774         * m4/wctrans.m4: New file.
6775         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
6776         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
6777         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
6778         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
6779         * doc/posix-functions/wctrans.texi: Mention the new module.
6780
6781 2011-02-06  Bruno Haible  <bruno@clisp.org>
6782
6783         New module 'iswctype'.
6784         * modules/iswctype: New file.
6785         * lib/wctype.in.h (iswctype): New declaration.
6786         * lib/iswctype.c: New file.
6787         * lib/iswctype-impl.h: New file.
6788         * m4/iswctype.m4: New file.
6789         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
6790         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
6791         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
6792         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
6793         * doc/posix-functions/iswctype.texi: Mention the new module and the
6794         HP-UX 11.00 problem.
6795
6796 2011-02-06  Bruno Haible  <bruno@clisp.org>
6797
6798         New module 'wctype'.
6799         * modules/wctype: Change to represent the wctype() substitute.
6800         * lib/wctype.in.h (wctype): New declaration.
6801         * lib/wctype.c: New file.
6802         * lib/wctype-impl.h: New file.
6803         * m4/wctype.m4: New file.
6804         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
6805         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
6806         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
6807         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
6808         * doc/posix-functions/wctype.texi: Mention the new module and the
6809         HP-UX 11.00 problem.
6810
6811 2011-02-06  Bruno Haible  <bruno@clisp.org>
6812
6813         wctype-h: Ensure wctype_t and wctrans_t are defined.
6814         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
6815         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
6816         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
6817         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
6818         HAVE_WCTRANS_T.
6819         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
6820
6821 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
6822
6823         flock: fix license typo
6824
6825         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
6826         omitted.
6827
6828 2011-02-08  Bruno Haible  <bruno@clisp.org>
6829
6830         Split large sed scripts, for HP-UX sed.
6831         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
6832         to avoid HP-UX limit of 99 commands, in the near future.
6833         * modules/stdlib (Makefile.am): Likewise.
6834         * modules/unistd (Makefile.am): Likewise.
6835         * modules/wchar (Makefile.am): Likewise.
6836         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
6837         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
6838         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
6839
6840 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
6841             Bruno Haible  <bruno@clisp.org>
6842
6843         stdlib: improve random_r modularization
6844         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
6845         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
6846         you also need the random_r module to get this material right.
6847         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
6848         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
6849         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
6850
6851 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
6852
6853         stdlib: don't depend on stdint
6854         * lib/stdlib.in.h: Don't include <stdint.h> merely because
6855         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
6856         be independent of whether stdint.h is needed.
6857         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
6858         here, instead of ...
6859         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
6860         struct random_data should be using the random_r module, not just
6861         the stdlib module (which wouldn't make sense: what package needs
6862         just struct random_data without also needing random_r?).
6863         * modules/stdlib (Depends-on): Remove stdint.
6864
6865         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
6866         See the thread rooted at
6867         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
6868         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
6869         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
6870         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
6871         __VMS)); previously it was always included (via fcntl--.h).
6872         (getloadavg): Do not use c_strtod.  Instead, approximate it by
6873         hand; this is good enough for load averages.  Also, do not use
6874         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
6875         flags directly if available and don't bother otherwise.  (Packages
6876         that need the extra reliability should use the modules that define
6877         these flags on older platforms that lack them.)
6878         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
6879         fcntl-safer.
6880
6881 2011-02-08  Jim Meyering  <meyering@redhat.com>
6882
6883         di-set.h, ino-map.h: add multiple-inclusion guard
6884         Technically, the guard is required only for ino-map.h, due to its
6885         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
6886         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
6887         * lib/ino-map.h: Likewise.
6888
6889 2011-02-06  Bruno Haible  <bruno@clisp.org>
6890
6891         iswblank: Ensure declaration on glibc systems.
6892         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
6893         * modules/iswblank (Dependencies): Add 'extensions'.
6894         * doc/posix-functions/iswblank.texi: Document the glibc problem.
6895
6896 2011-02-06  Bruno Haible  <bruno@clisp.org>
6897
6898         New module 'iswblank'.
6899         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
6900         * modules/iswblank: New file.
6901         * modules/wctype-h (Files): Remove lib/iswblank.c.
6902         (Makefile.am): Substitute GNULIB_ISWBLANK.
6903         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
6904         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
6905         (gl_WCTYPE_H_DEFAULTS): New macro.
6906         (gl_WCTYPE_H): Require it. Remove iswblank related code.
6907         * modules/iswblank-tests: New file.
6908         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
6909         * tests/test-wctype-h.c (main): Remove iswblank tests.
6910         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
6911         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
6912         of 'wctype-h'.
6913         * NEWS: Mention the change.
6914         * modules/mbchar (Depends-on): Add iswblank.
6915
6916 2011-02-08  Bruno Haible  <bruno@clisp.org>
6917
6918         di-set tests: Refactor.
6919         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
6920         unnecessary includes.
6921         (ASSERT): Remove macro.
6922         (main): Make C90 compliant by avoiding variable declaration after
6923         statement.
6924         * modules/di-set-tests (Files): Add tests/macros.h.
6925
6926 2011-02-08  Bruno Haible  <bruno@clisp.org>
6927
6928         ino-map tests: Refactor.
6929         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
6930         unnecessary includes.
6931         (ASSERT): Remove macro.
6932         (main): Make C90 compliant by avoiding variable declaration after
6933         statement.
6934         * modules/ino-map-tests (Files): Add tests/macros.h.
6935
6936 2011-02-08  Jim Meyering  <meyering@redhat.com>
6937
6938         di-set: add "const" to a cast
6939         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
6940         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
6941
6942 2011-02-06  Bruno Haible  <bruno@clisp.org>
6943
6944         Rename module 'wctype' to 'wctype-h'.
6945         * modules/wctype-h: Renamed from modules/wctype.
6946         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
6947         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
6948         (Files, Depends-on, Makefile.am): Update.
6949         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
6950         (Files, Makefile.am): Update.
6951         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
6952         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
6953         * doc/posix-headers/wctype.texi: Update.
6954         * doc/posix-functions/iswalnum.texi: Update.
6955         * doc/posix-functions/iswalpha.texi: Update.
6956         * doc/posix-functions/iswblank.texi: Update.
6957         * doc/posix-functions/iswcntrl.texi: Update.
6958         * doc/posix-functions/iswdigit.texi: Update.
6959         * doc/posix-functions/iswgraph.texi: Update.
6960         * doc/posix-functions/iswlower.texi: Update.
6961         * doc/posix-functions/iswprint.texi: Update.
6962         * doc/posix-functions/iswpunct.texi: Update.
6963         * doc/posix-functions/iswspace.texi: Update.
6964         * doc/posix-functions/iswupper.texi: Update.
6965         * doc/posix-functions/iswxdigit.texi: Update.
6966         * doc/posix-functions/towlower.texi: Update.
6967         * doc/posix-functions/towupper.texi: Update.
6968         * NEWS: Mention the change.
6969         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
6970         * modules/mbchar (Dependencies): Likewise.
6971         * modules/mbswidth (Dependencies): Likewise.
6972         * modules/quotearg (Dependencies): Likewise.
6973         * modules/regex (Dependencies): Likewise.
6974         * modules/wcscasecmp (Dependencies): Likewise.
6975         * modules/wcsncasecmp (Dependencies): Likewise.
6976         * modules/wcwidth (Dependencies): Likewise.
6977
6978 2011-02-06  Bruno Haible  <bruno@clisp.org>
6979
6980         New module 'wcswidth'.
6981         * modules/wcswidth: New file.
6982         * lib/wchar.in.h (wcswidth): New declaration.
6983         * lib/wcswidth.c: New file.
6984         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
6985         * m4/wcswidth.m4: New file.
6986         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
6987         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
6988         REPLACE_WCSWIDTH.
6989         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
6990         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
6991         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
6992         * doc/posix-functions/wcswidth.texi: Mention the new module.
6993
6994 2011-02-06  Bruno Haible  <bruno@clisp.org>
6995
6996         New module 'wcstok'.
6997         * modules/wcstok: New file.
6998         * lib/wchar.in.h (wcstok): New declaration.
6999         * lib/wcstok.c: New file.
7000         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
7001         * m4/wcstok.m4: New file.
7002         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
7003         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
7004         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
7005         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
7006         * doc/posix-functions/wcstok.texi: Mention the new module.
7007
7008 2011-02-06  Bruno Haible  <bruno@clisp.org>
7009
7010         New module 'wcsstr'.
7011         * modules/wcsstr: New file.
7012         * lib/wchar.in.h (wcsstr): New declaration.
7013         * lib/wcsstr.c: New file.
7014         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
7015         * m4/wcsstr.m4: New file.
7016         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
7017         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
7018         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
7019         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
7020         * doc/posix-functions/wcsstr.texi: Mention the new module.
7021
7022 2011-02-06  Bruno Haible  <bruno@clisp.org>
7023
7024         New module 'wcspbrk'.
7025         * modules/wcspbrk: New file.
7026         * lib/wchar.in.h (wcspbrk): New declaration.
7027         * lib/wcspbrk.c: New file.
7028         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
7029         * m4/wcspbrk.m4: New file.
7030         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
7031         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
7032         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
7033         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
7034         * doc/posix-functions/wcspbrk.texi: Mention the new module.
7035
7036 2011-02-06  Bruno Haible  <bruno@clisp.org>
7037
7038         New module 'wcsspn'.
7039         * modules/wcsspn: New file.
7040         * lib/wchar.in.h (wcsspn): New declaration.
7041         * lib/wcsspn.c: New file.
7042         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
7043         * m4/wcsspn.m4: New file.
7044         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
7045         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
7046         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
7047         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
7048         * doc/posix-functions/wcsspn.texi: Mention the new module.
7049
7050 2011-02-06  Bruno Haible  <bruno@clisp.org>
7051
7052         New module 'wcscspn'.
7053         * modules/wcscspn: New file.
7054         * lib/wchar.in.h (wcscspn): New declaration.
7055         * lib/wcscspn.c: New file.
7056         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
7057         * m4/wcscspn.m4: New file.
7058         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
7059         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
7060         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
7061         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
7062         * doc/posix-functions/wcscspn.texi: Mention the new module.
7063
7064 2011-02-06  Bruno Haible  <bruno@clisp.org>
7065
7066         New module 'wcsrchr'.
7067         * modules/wcsrchr: New file.
7068         * lib/wchar.in.h (wcsrchr): New declaration.
7069         * lib/wcsrchr.c: New file.
7070         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
7071         * m4/wcsrchr.m4: New file.
7072         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
7073         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
7074         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
7075         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
7076         * doc/posix-functions/wcsrchr.texi: Mention the new module.
7077
7078 2011-02-06  Bruno Haible  <bruno@clisp.org>
7079
7080         New module 'wcschr'.
7081         * modules/wcschr: New file.
7082         * lib/wchar.in.h (wcschr): New declaration.
7083         * lib/wcschr.c: New file.
7084         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
7085         * m4/wcschr.m4: New file.
7086         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
7087         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
7088         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
7089         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
7090         * doc/posix-functions/wcschr.texi: Mention the new module.
7091
7092 2011-02-06  Bruno Haible  <bruno@clisp.org>
7093
7094         New module 'wcsdup'.
7095         * modules/wcsdup: New file.
7096         * lib/wchar.in.h (wcsdup): New declaration.
7097         * lib/wcsdup.c: New file.
7098         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
7099         * m4/wcsdup.m4: New file.
7100         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
7101         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
7102         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
7103         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
7104         * doc/posix-functions/wcsdup.texi: Mention the new module.
7105
7106 2011-02-06  Bruno Haible  <bruno@clisp.org>
7107
7108         New module 'wcsxfrm'.
7109         * modules/wcsxfrm: New file.
7110         * lib/wchar.in.h (wcsxfrm): New declaration.
7111         * lib/wcsxfrm.c: New file.
7112         * lib/wcsxfrm-impl.h: New file.
7113         * m4/wcsxfrm.m4: New file.
7114         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
7115         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
7116         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
7117         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
7118         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
7119
7120 2011-02-06  Bruno Haible  <bruno@clisp.org>
7121
7122         New module 'wcscoll'.
7123         * modules/wcscoll: New file.
7124         * lib/wchar.in.h (wcscoll): New declaration.
7125         * lib/wcscoll.c: New file.
7126         * lib/wcscoll-impl.h: New file.
7127         * m4/wcscoll.m4: New file.
7128         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
7129         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
7130         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
7131         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
7132         * doc/posix-functions/wcscoll.texi: Mention the new module.
7133
7134 2011-02-06  Bruno Haible  <bruno@clisp.org>
7135
7136         New module 'wcsncasecmp'.
7137         * modules/wcsncasecmp: New file.
7138         * lib/wchar.in.h (wcsncasecmp): New declaration.
7139         * lib/wcsncasecmp.c: New file.
7140         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
7141         * m4/wcsncasecmp.m4: New file.
7142         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
7143         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
7144         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
7145         HAVE_WCSNCASECMP.
7146         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
7147         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
7148
7149 2011-02-06  Bruno Haible  <bruno@clisp.org>
7150
7151         New module 'wcscasecmp'.
7152         * modules/wcscasecmp: New file.
7153         * lib/wchar.in.h (wcscasecmp): New declaration.
7154         * lib/wcscasecmp.c: New file.
7155         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
7156         * m4/wcscasecmp.m4: New file.
7157         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
7158         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
7159         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
7160         HAVE_WCSCASECMP.
7161         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
7162         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
7163
7164 2011-02-05  Bruno Haible  <bruno@clisp.org>
7165
7166         New module 'wcsncmp'.
7167         * modules/wcsncmp: New file.
7168         * lib/wchar.in.h (wcsncmp): New declaration.
7169         * lib/wcsncmp.c: New file.
7170         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
7171         * m4/wcsncmp.m4: New file.
7172         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
7173         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
7174         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
7175         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
7176         * doc/posix-functions/wcsncmp.texi: Mention the new module.
7177
7178 2011-02-05  Bruno Haible  <bruno@clisp.org>
7179
7180         New module 'wcscmp'.
7181         * modules/wcscmp: New file.
7182         * lib/wchar.in.h (wcscmp): New declaration.
7183         * lib/wcscmp.c: New file.
7184         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
7185         * m4/wcscmp.m4: New file.
7186         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
7187         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
7188         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
7189         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
7190         * doc/posix-functions/wcscmp.texi: Mention the new module.
7191
7192 2011-02-05  Bruno Haible  <bruno@clisp.org>
7193
7194         New module 'wcsncat'.
7195         * modules/wcsncat: New file.
7196         * lib/wchar.in.h (wcsncat): New declaration.
7197         * lib/wcsncat.c: New file.
7198         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
7199         * m4/wcsncat.m4: New file.
7200         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
7201         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
7202         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
7203         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
7204         * doc/posix-functions/wcsncat.texi: Mention the new module.
7205
7206 2011-02-05  Bruno Haible  <bruno@clisp.org>
7207
7208         New module 'wcscat'.
7209         * modules/wcscat: New file.
7210         * lib/wchar.in.h (wcscat): New declaration.
7211         * lib/wcscat.c: New file.
7212         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
7213         * m4/wcscat.m4: New file.
7214         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
7215         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
7216         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
7217         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
7218         * doc/posix-functions/wcscat.texi: Mention the new module.
7219
7220 2011-02-05  Bruno Haible  <bruno@clisp.org>
7221
7222         New module 'wcpncpy'.
7223         * modules/wcpncpy: New file.
7224         * lib/wchar.in.h (wcpncpy): New declaration.
7225         * lib/wcpncpy.c: New file.
7226         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
7227         * m4/wcpncpy.m4: New file.
7228         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
7229         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
7230         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
7231         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
7232         * doc/posix-functions/wcpncpy.texi: Mention the new module.
7233
7234 2011-02-05  Bruno Haible  <bruno@clisp.org>
7235
7236         New module 'wcsncpy'.
7237         * modules/wcsncpy: New file.
7238         * lib/wchar.in.h (wcsncpy): New declaration.
7239         * lib/wcsncpy.c: New file.
7240         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
7241         * m4/wcsncpy.m4: New file.
7242         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
7243         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
7244         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
7245         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
7246         * doc/posix-functions/wcsncpy.texi: Mention the new module.
7247
7248 2011-02-05  Bruno Haible  <bruno@clisp.org>
7249
7250         New module 'wcpcpy'.
7251         * modules/wcpcpy: New file.
7252         * lib/wchar.in.h (wcpcpy): New declaration.
7253         * lib/wcpcpy.c: New file.
7254         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
7255         * m4/wcpcpy.m4: New file.
7256         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
7257         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
7258         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
7259         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
7260         * doc/posix-functions/wcpcpy.texi: Mention the new module.
7261
7262 2011-02-05  Bruno Haible  <bruno@clisp.org>
7263
7264         New module 'wcscpy'.
7265         * modules/wcscpy: New file.
7266         * lib/wchar.in.h (wcscpy): New declaration.
7267         * lib/wcscpy.c: New file.
7268         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
7269         * m4/wcscpy.m4: New file.
7270         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
7271         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
7272         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
7273         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
7274         * doc/posix-functions/wcscpy.texi: Mention the new module.
7275
7276 2011-02-05  Bruno Haible  <bruno@clisp.org>
7277
7278         New module 'wcsnlen'.
7279         * modules/wcsnlen: New file.
7280         * lib/wchar.in.h (wcsnlen): New declaration.
7281         * lib/wcsnlen.c: New file.
7282         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
7283         * m4/wcsnlen.m4: New file.
7284         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
7285         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
7286         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
7287         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
7288         * doc/posix-functions/wcsnlen.texi: Mention the new module.
7289
7290 2011-02-05  Bruno Haible  <bruno@clisp.org>
7291
7292         New module 'wcslen'.
7293         * modules/wcslen: New file.
7294         * lib/wchar.in.h (wcslen): New declaration.
7295         * lib/wcslen.c: New file.
7296         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
7297         * m4/wcslen.m4: New file.
7298         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
7299         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
7300         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
7301         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
7302         * doc/posix-functions/wcslen.texi: Mention the new module.
7303
7304 2011-02-05  Bruno Haible  <bruno@clisp.org>
7305
7306         New module 'wmemset'.
7307         * modules/wmemset: New file.
7308         * lib/wchar.in.h (wmemset): New declaration.
7309         * lib/wmemset.c: New file.
7310         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
7311         * m4/wmemset.m4: New file.
7312         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
7313         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
7314         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
7315         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
7316         * doc/posix-functions/wmemset.texi: Mention the new module.
7317
7318 2011-02-05  Bruno Haible  <bruno@clisp.org>
7319
7320         New module 'wmemmove'.
7321         * modules/wmemmove: New file.
7322         * lib/wchar.in.h (wmemmove): New declaration.
7323         * lib/wmemmove.c: New file.
7324         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
7325         * m4/wmemmove.m4: New file.
7326         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
7327         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
7328         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
7329         HAVE_WMEMMOVE.
7330         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
7331         * doc/posix-functions/wmemmove.texi: Mention the new module.
7332
7333 2011-02-05  Bruno Haible  <bruno@clisp.org>
7334
7335         New module 'wmemcpy'.
7336         * modules/wmemcpy: New file.
7337         * lib/wchar.in.h (wmemcpy): New declaration.
7338         * lib/wmemcpy.c: New file.
7339         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
7340         * m4/wmemcpy.m4: New file.
7341         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
7342         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
7343         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
7344         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
7345         * doc/posix-functions/wmemcpy.texi: Mention the new module.
7346
7347 2011-02-05  Bruno Haible  <bruno@clisp.org>
7348
7349         New module 'wmemcmp'.
7350         * modules/wmemcmp: New file.
7351         * lib/wchar.in.h (wmemcmp): New declaration.
7352         * lib/wmemcmp.c: New file.
7353         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
7354         * m4/wmemcmp.m4: New file.
7355         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
7356         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
7357         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
7358         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
7359         * doc/posix-functions/wmemcmp.texi: Mention the new module.
7360
7361 2011-02-07  Jim Meyering  <meyering@redhat.com>
7362
7363         di-set, ino-map: new modules, from coreutils
7364         * lib/di-set.c: New file.
7365         * lib/di-set.h: Likewise.
7366         * lib/ino-map.c: Likewise.
7367         * lib/ino-map.h: Likewise.
7368         * modules/di-set: Likewise.
7369         * modules/di-set-tests: Likewise.
7370         * modules/ino-map: Likewise.
7371         * modules/ino-map-tests: Likewise.
7372         * tests/test-di-set.c: Likewise.
7373         * tests/test-ino-map.c: Likewise.
7374
7375 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
7376
7377         getloadavg: merge minor changes from Emacs
7378
7379         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
7380         (getloadavg): Use memset, not bzero.
7381
7382         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
7383         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
7384         clash (bug#86).
7385
7386 2010-11-14  Bruno Haible  <bruno@clisp.org>
7387
7388         Allow multiple gnulib generated replacements to coexist.
7389         * lib/getopt.in.h (struct option): Avoid identical redefinition.
7390         * lib/inttypes.in.h (imaxdiv_t): Likewise.
7391         * lib/langinfo.in.h (nl_item): Likewise.
7392         * lib/math.in.h (_NaN, NAN): Likewise.
7393         * lib/netdb.in.h (struct addrinfo): Likewise.
7394         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
7395         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
7396         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
7397         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
7398         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
7399         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
7400         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
7401         pthread_mutexattr_init, pthread_mutexattr_settype,
7402         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
7403         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
7404         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
7405         pthread_spin_trylock, pthread_spin_unlock): Likewise.
7406         * lib/sched.in.h (struct sched_param): Likewise.
7407         * lib/se-selinux.in.h (security_class_t, security_context_t,
7408         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
7409         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
7410         lsetfilecon, fsetfilecon, security_check_context,
7411         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
7412         Likewise.
7413         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
7414         Likewise.
7415         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
7416         _gl_function_taking_int_returning_void_t, union sigval,
7417         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
7418         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
7419         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
7420         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
7421         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
7422         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
7423         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
7424         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
7425         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
7426         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
7427         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
7428         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
7429         socklen_t, rpl_fd_isset): Likewise.
7430         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
7431         * lib/sys_time.in.h (struct timeval): Likewise.
7432         * lib/sys_times.in.h (struct tms): Likewise.
7433         * lib/sys_utsname.in.h (struct utsname):
7434         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
7435         * lib/unistd.in.h (getpagesize): Likewise.
7436         * lib/wchar.in.h (mbstate_t): Likewise.
7437         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
7438         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
7439         towlower, towupper): Likewise.
7440         Reported by Sam Steingold <sds@gnu.org>.
7441
7442 2011-02-05  Eric Blake  <eblake@redhat.com>
7443
7444         unsetenv: work around Haiku issues
7445         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
7446         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
7447
7448 2010-12-30  Bruce Korb  <bkorb@gnu.org>
7449
7450         libposix: avoid calling error() within libposix
7451         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
7452         is defined.
7453
7454 2011-02-05  Eric Blake  <eblake@redhat.com>
7455
7456         strerror_r-posix: port to cygwin
7457         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
7458         implementation.
7459         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
7460         * tests/test-strerror_r.c (main): Fix test.
7461         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
7462         issue.
7463
7464 2011-02-05  Bruno Haible  <bruno@clisp.org>
7465
7466         New module 'wmemchr'.
7467         * modules/wmemchr: New file.
7468         * lib/wchar.in.h (wmemchr): New declaration.
7469         * lib/wmemchr.c: New file.
7470         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
7471         * m4/wmemchr.m4: New file.
7472         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
7473         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
7474         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
7475         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
7476         * doc/posix-functions/wmemchr.texi: Mention the new module.
7477
7478 2011-02-04  Eric Blake  <eblake@redhat.com>
7479
7480         fdopendir: detect FreeBSD bug
7481         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
7482         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
7483
7484 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
7485
7486         stdbool: do not define HAVE_STDBOOL_H
7487         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
7488         AC_HEADER_STDBOOL.  All uses changed.  Do not define
7489         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
7490         imported from the latest Autoconf git.  It was motivated by Emacs,
7491         which uses gnulib but does not need HAVE_STDBOOL_H.
7492
7493 2011-02-04  Bruno Haible  <bruno@clisp.org>
7494
7495         wcsnrtombs: Prepare for new module wwcsnrtombs.
7496         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
7497         * lib/wcsnrtombs.c: Include it.
7498         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
7499
7500         wcsrtombs: Prepare for new module wwcsrtombs.
7501         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
7502         * lib/wcsrtombs.c: Include it.
7503         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
7504
7505         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
7506         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
7507         * lib/mbsnrtowcs.c: Include it.
7508         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
7509
7510         mbsrtowcs: Prepare for new module mbsrtowwcs.
7511         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
7512         * lib/mbsrtowcs.c: Include it.
7513         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
7514
7515 2011-02-04  Bruno Haible  <bruno@clisp.org>
7516
7517         vasnprintf: Reduce use of malloc for small format strings.
7518         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
7519         (arguments): Add room for the first 7 arguments.
7520         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
7521         (char_directives, u8_directives, u16_directives, u32_directives): Add
7522         room for the first 7 directives.
7523         * lib/printf-parse.c: Include <string.h>.
7524         (PRINTF_PARSE): Change memory handling code so that it uses the first
7525         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
7526         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
7527         Reported by Pádraig Brady <P@draigbrady.com>.
7528
7529 2011-01-31  Eric Blake  <eblake@redhat.com>
7530
7531         dup2: work around Haiku bug
7532         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
7533         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
7534         * doc/posix-functions/dup2.texi (dup2): Document the bug.
7535         * tests/test-dup2.c (main): Enhance test.
7536
7537 2011-01-31  Simon Josefsson  <simon@josefsson.org>
7538
7539         doc: off_t is not available in eglibc 2.11.2 stdio.h.
7540         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
7541         declared by eglibc 2.11.2.
7542         * lib/stdio.in.h: Likewise.
7543
7544 2011-01-31  Eric Blake  <eblake@redhat.com>
7545
7546         ignore-value: add missing test dependency
7547         * tests/test-ignore-value.c: Revert previous change; stdio.h
7548         provides off_t.
7549         * modules/ignore-value-tests (Depends-on): Add missing dependency.
7550
7551 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
7552
7553         mktime: clarify long_int width checking
7554         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
7555         the top level, to make it clearer that the assumption about
7556         long_int width is being checked.  See
7557         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
7558
7559 2011-01-30  Simon Josefsson  <simon@josefsson.org>
7560
7561         ignore-value: Fix self-test.
7562         * tests/test-ignore-value.c: Include sys/types.h for off_t.
7563
7564 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
7565
7566         TYPE_MAXIMUM: avoid theoretically undefined behavior
7567         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
7568         negative number, which the C Standard says has undefined behavior.
7569         In practice this is not a problem, but might as well do it by the book.
7570         Reported by Rich Felker and Eric Blake; see
7571         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
7572         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
7573         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
7574         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7575         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
7576         * m4/stdint.m4 (gl_STDINT_H): Likewise.
7577         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
7578
7579         mktime: #undef mktime before #defining it
7580         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
7581
7582         mktime: systematically normalize tm_isdst comparisons
7583         * lib/mktime.c (isdst_differ): New function.
7584         (__mktime_internal): Use it systematically for all isdst comparisons.
7585         This completes the fix for libc BZ #6723, and removes the need for
7586         normalizing tm_isdst.  See
7587         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
7588         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
7589
7590         mktime: fix some integer overflow issues and sidestep the rest
7591
7592         This was prompted by a bug report by Benjamin Lindner for MinGW
7593         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
7594         His bug is due to signed integer overflow (0 - INT_MIN), and I
7595         I scanned through mktime.c looking for other integer overflow
7596         problems, fixing all the bugs I found.
7597
7598         Although the C Standard says the resulting code is still not safe
7599         in the presence of integer overflow, in practice it should be good
7600         enough for all real-world two's-complement implementations, except
7601         for debugging environments that deliberately trap on integer
7602         overflow (e.g., gcc -ftrapv).
7603
7604         * lib/mktime.c (WRAPV): New macro.
7605         (SHR): Also check that long_int and time_t shift right in the
7606         usual way, before using the fast-but-unportable method.
7607         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
7608         used.  The code already assumed two's complement, so there's
7609         no need to test for alternatives.  All uses removed.
7610         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
7611         the C standard.  Problem reported by Rich Felker in
7612         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
7613         (twos_complement_arithmetic): Also check long_int and time_t.
7614         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
7615         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
7616         (__mktime_internal): Avoid integer overflow with unary subtraction
7617         in two instances where -1 - X is an adequate replacement for -X,
7618         since the calculations are approximate.
7619
7620 2011-01-29  Eric Blake  <eblake@redhat.com>
7621
7622         mktime: avoid infinite loop
7623         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
7624         type; behavior is still undefined but portable to all known targets.
7625         Reported by Rich Felker.
7626
7627 2011-01-29  Simon Josefsson  <simon@josefsson.org>
7628
7629         rename, unlink, same-inode: Relicense.
7630         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
7631         * modules/unlink (License): Likewise.
7632         * modules/same-inode (License): Likewise.
7633
7634 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
7635
7636         mktime: avoid problems on NetBSD 5 / i386
7637         * lib/mktime.c (long_int): New type.  This works around a problem
7638         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
7639         but time_t is 64 bits, and where I expect the existing code is
7640         wrong in some cases.
7641         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
7642         (ydhms_diff): Bring back the compile-time check for wide-enough
7643         year and yday.
7644
7645         mktime: fix misspelling in comment
7646         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
7647         This merges all recent glibc changes of importance.
7648
7649 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7650
7651         move-if-change: cope with concurrent mv of identical file.
7652         * build-aux/move-if-change (CMPPROG): Accept environment
7653         variable as an override for `cmp'.
7654         (usage): Document CMPPROG.
7655         Adjust comparison to drop stdout.  Cope with failure of mv if
7656         the target file exists and is identical to the source, for
7657         parallel builds.
7658         Report from H.J. Lu against binutils in PR binutils/12283.
7659
7660 2011-01-28  Bruce Korb  <bkorb@gnu.org>
7661
7662         * users.txt: Mention sharutils.
7663
7664 2011-01-28  Simon Josefsson  <simon@josefsson.org>
7665
7666         * users.txt: Mention OATH Toolkit.
7667
7668 2011-01-27  Bruno Haible  <bruno@clisp.org>
7669
7670         Prepare for supporting FreeBSD 10.
7671         * build-aux/config.libpath: Remove handling of freebsd1*.
7672
7673 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
7674
7675         Prepare for supporting FreeBSD 10.
7676         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
7677         match FreeBSD 10.0.
7678
7679 2011-01-27  Bruno Haible  <bruno@clisp.org>
7680
7681         vma-iter, get-rusage-as: Add OpenBSD support.
7682         * modules/vma-iter (configure.ac): Test for mquery.
7683         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
7684         * lib/vma-iter.c: Include <sys/mman.h>.
7685         (vma_iterate): Add an implementation based on mquery().
7686         * lib/resource-ext.h (get_rusage_as): Update comments.
7687         * lib/get-rusage-as.c: Likewise.
7688         * lib/get-rusage-data.c: Likewise.
7689
7690 2011-01-26  Karl Berry  <karl@gnu.org>
7691
7692         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
7693         variables to make it easier to override the makeinfo program used.
7694
7695 2011-01-26  Eric Blake  <eblake@redhat.com>
7696
7697         fcntl: work around Haiku F_DUPFD bugs
7698         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
7699         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
7700         cloexec bit on duplication.
7701         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
7702
7703 2011-01-26  Bruno Haible  <bruno@clisp.org>
7704
7705         Enable memory leak tests on AIX.
7706         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
7707         * tests/test-fprintf-posix3.c (main): Likewise.
7708
7709 2011-01-26  Bruno Haible  <bruno@clisp.org>
7710
7711         Tests for module 'get-rusage-data'.
7712         * modules/get-rusage-data-tests: New file.
7713         * tests/test-get-rusage-data.c: New file.
7714
7715         New module 'get-rusage-data'.
7716         * lib/resource-ext.h (get_rusage_data): New declaration.
7717         * lib/get-rusage-data.c: New file.
7718         * modules/get-rusage-data: New file.
7719
7720 2011-01-25  Bruno Haible  <bruno@clisp.org>
7721
7722         get-rusage-as: Allow for easier testing.
7723         * lib/resource-ext.h (get_rusage_as): Add comment.
7724         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
7725         (main): New function for interactive testing.
7726
7727 2011-01-25  Bruno Haible  <bruno@clisp.org>
7728
7729         vma-iter: Treat Haiku like BeOS.
7730         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
7731         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
7732
7733 2011-01-25  Eric Blake  <eblake@redhat.com>
7734
7735         c-stack: fix regression on cygwin when libsigsegv is present
7736         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
7737
7738 2011-01-24  Bruno Haible  <bruno@clisp.org>
7739
7740         vma-iter: Avoid empty intervals.
7741         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
7742         on an empty interval.
7743
7744 2011-01-24  Jim Meyering  <meyering@redhat.com>
7745
7746         u64: remove unnecessary #include
7747         * lib/u64.h: Don't include <stddef.h>.  It was not used.
7748
7749 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
7750
7751         Allow the user to avoid the HAVE_RAW_DECL_* macros.
7752         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
7753
7754 2011-01-23  Bruno Haible  <bruno@clisp.org>
7755
7756         New module 'vma-iter'.
7757         * lib/vma-iter.h: New file.
7758         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
7759         * modules/vma-iter: New file.
7760         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
7761         for get_rusage_as_via_iterator.
7762         (vma_iterate_callback): New function.
7763         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
7764         * modules/get-rusage-as (Depends-on): Add vma-iter.
7765
7766 2011-01-23  Bruno Haible  <bruno@clisp.org>
7767
7768         uninorm: Tweak includes.
7769         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
7770         Reported by Jim Meyering.
7771
7772 2011-01-23  Bruno Haible  <bruno@clisp.org>
7773
7774         get-rusage-as: Improve on NetBSD.
7775         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
7776         /proc, like on FreeBSD.
7777
7778 2011-01-23  Jim Meyering  <meyering@redhat.com>
7779
7780         xreadlink.h: remove unnecessary #include
7781         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
7782
7783         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
7784         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
7785
7786 2011-01-23  Bruno Haible  <bruno@clisp.org>
7787
7788         get-rusage-as: Fix bug.
7789         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
7790         original limit when aborting the first loop.
7791
7792 2011-01-23  Bruno Haible  <bruno@clisp.org>
7793
7794         wctype: Ensure valid C syntax.
7795         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
7796         unconditionally, instead of gl_NEXT_HEADERS conditionally.
7797
7798 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
7799
7800         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
7801         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
7802         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
7803         as they are needed only for configure's test case.
7804         This removes two unnecessary symbols from config.h.
7805
7806         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
7807         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
7808         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
7809         AC_CHECK_HEADERS_ONCE on a header that we also invoke
7810         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
7811         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
7812         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
7813         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
7814         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
7815         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
7816         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
7817         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
7818         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
7819         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
7820         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
7821         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
7822         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
7823         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
7824
7825 2011-01-21  Eric Blake  <eblake@redhat.com>
7826
7827         maintainer-makefile: work with older git for submodule check
7828         * top/maint.mk (public-submodule-commit): Rewrite to avoid
7829         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
7830         Reported by Matthias Bolte.
7831
7832         bootstrap: minor portability fixes
7833         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
7834         (usage): Omit leading capital and trailing . on help phrases, per
7835         GNU Coding Standards.
7836         (check_versions, top level): Prefix messages with script name.
7837
7838 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
7839
7840         bootstrap: support --no-git option
7841         * build-aux/bootstrap: Add --no-git option, to be used when
7842         --gnulib-srcdir points to the exact desired checkout.
7843
7844 2011-01-21  Eric Blake  <eblake@redhat.com>
7845
7846         strerror_r-posix: work with glibc 2.13
7847         * lib/strerror_r.c (strerror_r): Fix return type.
7848
7849 2011-01-21  Pádraig Brady  <P@draigBrady.com>
7850             Bruno Haible  <bruno@clisp.org>
7851
7852         uN_strstr: New unit tests.
7853         * modules/unistr/u8-strstr-tests: New file.
7854         * modules/unistr/u16-strstr-tests: New file.
7855         * modules/unistr/u32-strstr-tests: New file.
7856         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
7857         * tests/unistr/test-u8-strstr.c: New file.
7858         * tests/unistr/test-u16-strstr.c: New file.
7859         * tests/unistr/test-u32-strstr.c: New file.
7860
7861 2011-01-21  Pádraig Brady  <P@draigBrady.com>
7862             Bruno Haible  <bruno@clisp.org>
7863
7864         Make uN_strstr functions O(n) worst-case.
7865         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
7866         16-bit and 32-bit unit cases, use the unibyte algorithm from
7867         lib/mbsstr.c.
7868         * lib/unistr/u8-strstr.c: Include <string.h>.
7869         (UNIT_IS_UINT8_T): New macro.
7870         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
7871         (U_STRLEN, U_STRNLEN): New macros.
7872         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
7873         (U_STRLEN, U_STRNLEN): New macros.
7874         * modules/unistr/u8-strstr (Depends-on): Add strstr.
7875         (configure.ac): Update required libunistring version.
7876         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
7877         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
7878         malloca.
7879         (configure.ac): Update required libunistring version.
7880         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
7881         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
7882         malloca.
7883         (configure.ac): Update required libunistring version.
7884
7885 2011-01-21  Pádraig Brady  <P@draigBrady.com>
7886             Bruno Haible  <bruno@clisp.org>
7887
7888         Prepare for faster uN_strstr functions.
7889         * lib/str-kmp.h: Support definable UNITs.
7890         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
7891         needle_len argument.
7892         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
7893         * lib/mbscasestr.c (mbscasestr): Likewise.
7894
7895 2011-01-21  Pádraig Brady <P@draigBrady.com>
7896
7897         malloca-tests: make faster by unsetting MALLOC_PERTURB_
7898         * tests/test-malloca.c (main): Unset the environment variable
7899         to greatly speed up the test.
7900         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
7901         * modules/malloca-tests: Depend on unsetenv.
7902
7903 2011-01-21  Pádraig Brady <P@draigBrady.com>
7904
7905         ignore-value: remove stdint dependency
7906         * lib/ignore-value.h: Remove <stdint.h>
7907         * modules/ignore-value: Remove stdint dependency.
7908
7909 2011-01-21  Jim Meyering  <meyering@redhat.com>
7910
7911         maint.mk: adjust variable name to be consistent with other gl_ vars
7912         * top/maint.mk (gl_public_submodule_commit): Rename the variable
7913         to be lower case.
7914
7915 2011-01-20  Jim Meyering  <meyering@redhat.com>
7916
7917         maint.mk: make "check" depend on public-submodule-commit by default
7918         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
7919
7920 2011-01-20  Bruno Haible  <bruno@clisp.org>
7921
7922         mbfile, mbiter: Complete change from 2008-12-21.
7923         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
7924         * m4/mbiter.m4 (gl_MBITER): Likewise.
7925
7926 2011-01-20  Jim Meyering  <meyering@redhat.com>
7927
7928         init.sh: insert space between each function name and "()"
7929         * tests/init.sh: Make it a little easier to see that a function's
7930         name is "warn_", and not "warn" when looking at the first part of
7931         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
7932
7933 2011-01-20  Jim Meyering  <meyering@redhat.com>
7934
7935         mountlist: clean up code formatting
7936         * lib/mountlist.c (read_file_system_list): Split a long line,
7937         correct bracing style, use NULL in place of "(struct statfs *)0",
7938         don't parenthesize return value, add spaces around "=" and after
7939         ";-in-for-stmt".
7940
7941 2011-01-14  Markus Duft <mduft@gentoo.org>
7942
7943         mountlist: add support for Interix
7944         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
7945         Apply statvfs to all entries of /dev/fs.
7946         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
7947         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
7948
7949 2011-01-20  Jim Meyering  <meyering@redhat.com>
7950
7951         maint.mk: improve the public-submodule-commit rule
7952         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
7953         to suppress printing of its commands... unless V=1.
7954         Add git submodule's --quiet option to suppress printing of e.g.,
7955         "Entering gnulib" output.
7956         "cd" into $(srcdir) before running git submodule.
7957
7958 2011-01-20  Bruno Haible  <bruno@clisp.org>
7959
7960         include_next: Fix bug introduced on 2011-01-18.
7961         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
7962         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
7963         ac_cv_header_... variable if the second argument is not 'check'.
7964         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
7965         gl_NEXT_HEADERS_INTERNAL.
7966
7967 2011-01-20  Bruno Haible  <bruno@clisp.org>
7968
7969         Allow the user to avoid the GNULIB_TEST_* macros.
7970         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
7971         Suggested by Paul Eggert.
7972
7973 2011-01-14  Jim Meyering  <meyering@redhat.com>
7974
7975         bootstrap: avoid failure when there is no .gitmodules file
7976         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
7977         has been assigned to, even when its value is the empty string.
7978         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
7979         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
7980         Reported by John W. Eaton <jwe@gnu.org>.
7981
7982 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
7983
7984         assume <ctype.h>, ..., <time.h> exist
7985         For years gnulib has been assuming the existence of the headers
7986         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
7987         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
7988         them, since they don't appear to be needed.
7989         * README (Portability guidelines): Document this.
7990         * lib/flock.c: Assume <fcntl.h> exists.
7991         * lib/regex_internal.h: Assume <locale.h> exists.
7992         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
7993         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
7994         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
7995         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
7996         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
7997         * m4/regex.m4 (gl_REGEX): Likewise.
7998         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
7999         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
8000         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
8001         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
8002         * tests/test-argp.c: Likewise.
8003         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
8004
8005         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
8006         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
8007         AA_APPLE_UNIVERSAL_BUILD.  See
8008         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
8009         * NEWS: Document this.
8010
8011 2011-01-19  Eric Blake  <eblake@redhat.com>
8012
8013         c-stack: assume stack overflow if SA_SIGINFO unsupported
8014         * lib/c-stack.c (SIGACTION_WORKS): Rename...
8015         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
8016         sigaction will work.
8017         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
8018         behavior match Linux.
8019         * tests/test-c-stack.c (main): Prefer NULL for pointers.
8020
8021         stdbool-tests: accomodate Haiku
8022         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
8023
8024         binary-io: fix O_TEXT on Haiku
8025         * modules/binary-io (Depends-on): Add fcntl-h.
8026         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
8027         than blindly undefining O_TEXT.
8028         Reported by Scott McCreary.
8029
8030 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
8031
8032         include_next: do not check for standard headers like stddef.h
8033
8034         I found this problem when modifying Emacs to use gnulib.
8035         I noticed that it added HAVE_STDDEF_H to config.h, even though
8036         gnulib always assumes <stddef.h> exists as per README and this
8037         symbol is unnecessary.
8038         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
8039         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
8040         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
8041         faster for headers like stddef.h that are known to exist.
8042         (gl_CHECK_NEXT_HEADERS): Use it.
8043         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
8044         rather than gl_CHECK_NEXT_HEADERS.
8045         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
8046         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
8047
8048 2011-01-18  Eric Blake  <eblake@redhat.com>
8049
8050         ansi-c++-opt: skip C++ dependency style if C++ is unused
8051         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
8052         tests when we know C++ compilation is not desired.
8053         Reported by Scott McCreary.
8054
8055 2011-01-18  Bruno Haible  <bruno@clisp.org>
8056
8057         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
8058         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
8059         (main): Perform test also when getrlimit and setrlimit don't exist or
8060         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
8061         limiting the address space size using setrlimit, compare the address
8062         space size before and after the the test.
8063         * tests/test-dprintf-posix2.c: Likewise.
8064         * tests/test-fprintf-posix3.sh: Update skip messages.
8065         * tests/test-dprintf-posix2.sh: Likewise.
8066         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
8067         * modules/dprintf-posix-tests (Depends-on): Likewise.
8068         Reported by Bruce Korb <bkorb@gnu.org> and
8069         Gary V. Vaughan <gary@gnu.org>.
8070
8071 2011-01-18  Bruno Haible  <bruno@clisp.org>
8072
8073         get-rusage-as: Improvement for Cygwin.
8074         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
8075         areas that are merely reserved.
8076
8077 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
8078
8079         strftime: remove dependencies on multibyte modules
8080
8081         strftime depended on mbrlen, mbsinit, and wchar, but these modules
8082         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
8083         only if __osf__ is defined, and I suspect OSF doesn't need these
8084         other modules.  If my guess is wrong, we'll need to come up with a
8085         variant of strftime that doesn't need the multibyte modules.
8086
8087         I discovered this problem when attempting modify Emacs to use the
8088         strftime module.  With the previous gnulib, this caused Emacs to
8089         need 31 new files, ranging from lib/config.charset to
8090         m4/wint_t.m4.  This was overkill and I expect would be offputting
8091         to the Emacs maintainers.  After this change, only 6 new files are
8092         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
8093         stdbool.m4, and tm_gmtoff.m4.
8094
8095         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
8096         Suggested by Bruno Haible in
8097         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
8098         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
8099         and do not check for wchar.h.
8100         * modules/strftime (Files): Remove m4/mbstate_t.m4.
8101         (Depends-on): Remove mbrlen, mbsinit, wchar.
8102
8103 2011-01-18  Bruno Haible  <bruno@clisp.org>
8104
8105         Tests for module 'get-rusage-as'.
8106         * modules/get-rusage-as-tests: New file.
8107         * tests/test-get-rusage-as.c: New file.
8108
8109         New module 'get-rusage-as'.
8110         * modules/get-rusage-as: New file.
8111         * lib/resource-ext.h: New file.
8112         * lib/get-rusage-as.c: New file.
8113
8114 2011-01-17  Eric Blake  <eblake@redhat.com>
8115
8116         sigaction: relax license from LGPLv3+ to LGPLv2+
8117         * modules/sigaction (License): Relax to LGPLv2+.
8118
8119 2011-01-14  Bruno Haible  <bruno@clisp.org>
8120
8121         filemode: Make function declarations usable in C++ mode.
8122         * lib/filemode.h: Enclose function declarations in extern "C" block.
8123         Reported by John W. Eaton <jwe@gnu.org>.
8124
8125 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
8126
8127         save-cwd: no longer include "xgetcwd.h"
8128         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
8129         This avoids a compilation failure in projects that use save-cwd
8130         without also using the xgetcwd module.
8131
8132 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
8133
8134         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
8135         This is so that a program like Emacs, which needs only dtoastr,
8136         does not have to bother with distributing and compiling ftoastr
8137         and ldtoastr.
8138         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
8139         * modules/dtoastr, modules/ldtoastr: New files.
8140         * modules/ftoastr: Now works just for 'float'.
8141         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
8142         (Makefile.am): Remove ftoastr.h (not needed and no effect),
8143         dtoastr.c, ldtoastr.c.
8144
8145 2011-01-11  Jim Meyering  <meyering@redhat.com>
8146
8147         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
8148         There is no need to work around the lack of the fchdir function,
8149         since gnulib can now provide a replacement when required.
8150         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
8151         * modules/save-cwd (Depends-on): Add fchdir.
8152
8153 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
8154
8155         openat, save-cwd: avoid xmalloc
8156
8157         This removes a direct (but undocumented) dependency of openat on
8158         xalloc, along with an indirect dependency via save-cwd.  It also
8159         removes a dependency of save-cwd on xgetcwd, and thereby
8160         indirectly on xalloc.  This change causes the openat substitute
8161         to fall back on save_cwd when memory is tight, and for save_cwd to
8162         fail instead of dying when memory is tight, but that's good enough.
8163         Problem and initial idea for fix reported by Bastien Roucaries in
8164         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
8165
8166         * lib/openat-proc.c: Include stdlib.h (for malloc), not
8167         xalloc.h (for xmalloc).
8168         (openat_proc_name): Use malloc, not xmalloc.
8169         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
8170         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
8171
8172         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
8173         This avoids heap allocation for file names whose lengths are in
8174         the range 512..1023, with the upper bound increasing to at most
8175         4031 depending on the platform's PATH_MAX.  (We do not want
8176         pathmax.h here as it might supply a non-constant PATH_MAX.)
8177         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
8178         Perhaps they should be moved to malloca.h?
8179         (OPENAT_BUFFER_SIZE): Use them.
8180
8181 2011-01-10  Bruno Haible  <bruno@clisp.org>
8182
8183         doc: Update users.txt.
8184         * users.txt: Add recutils.
8185
8186 2011-01-09  Karl Berry  <karl@gnu.org>
8187
8188         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
8189
8190         * doc/configmake.texi: New file.
8191         * doc/gnulib.texi: Include it.
8192         * modules/configmake: Move documentation from here.
8193
8194 2011-01-09  Bruno Haible  <bruno@clisp.org>
8195
8196         Update to Unicode 6.0.0.
8197         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
8198         (get_lbp): Update for Unicode 6.0.0.
8199         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
8200         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
8201         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
8202         U+11001, U+11038..U+11046. Remove U+06DE.
8203         (uc_width): Fix bounds of planes.
8204         * tests/uniwidth/test-uc_width2.sh: Same updates as in
8205         lib/uniwidth/width.c.
8206         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
8207         trailing whitespace removed.
8208         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
8209         without comments, but with the original copyright notice.
8210         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
8211         * lib/unicase/ignorable.h: Likewise.
8212         * lib/unicase/tocasefold.h: Likewise.
8213         * lib/unicase/tolower.h: Likewise.
8214         * lib/unicase/totitle.h: Likewise.
8215         * lib/unicase/toupper.h: Likewise.
8216         * lib/unictype/bidi_of.h: Likewise.
8217         * lib/unictype/blocks.h: Likewise.
8218         * lib/unictype/categ_C.h: Likewise.
8219         * lib/unictype/categ_Cn.h: Likewise.
8220         * lib/unictype/categ_L.h: Likewise.
8221         * lib/unictype/categ_Ll.h: Likewise.
8222         * lib/unictype/categ_Lm.h: Likewise.
8223         * lib/unictype/categ_Lo.h: Likewise.
8224         * lib/unictype/categ_Lu.h: Likewise.
8225         * lib/unictype/categ_M.h: Likewise.
8226         * lib/unictype/categ_Mc.h: Likewise.
8227         * lib/unictype/categ_Me.h: Likewise.
8228         * lib/unictype/categ_Mn.h: Likewise.
8229         * lib/unictype/categ_N.h: Likewise.
8230         * lib/unictype/categ_Nd.h: Likewise.
8231         * lib/unictype/categ_No.h: Likewise.
8232         * lib/unictype/categ_P.h: Likewise.
8233         * lib/unictype/categ_Po.h: Likewise.
8234         * lib/unictype/categ_S.h: Likewise.
8235         * lib/unictype/categ_Sc.h: Likewise.
8236         * lib/unictype/categ_Sk.h: Likewise.
8237         * lib/unictype/categ_Sm.h: Likewise.
8238         * lib/unictype/categ_So.h: Likewise.
8239         * lib/unictype/categ_of.h: Likewise.
8240         * lib/unictype/combining.h: Likewise.
8241         * lib/unictype/ctype_alnum.h: Likewise.
8242         * lib/unictype/ctype_alpha.h: Likewise.
8243         * lib/unictype/ctype_graph.h: Likewise.
8244         * lib/unictype/ctype_lower.h: Likewise.
8245         * lib/unictype/ctype_print.h: Likewise.
8246         * lib/unictype/ctype_punct.h: Likewise.
8247         * lib/unictype/ctype_upper.h: Likewise.
8248         * lib/unictype/decdigit.h: Likewise.
8249         * lib/unictype/digit.h: Likewise.
8250         * lib/unictype/numeric.h: Likewise.
8251         * lib/unictype/pr_alphabetic.h: Likewise.
8252         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
8253         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
8254         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
8255         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
8256         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
8257         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
8258         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
8259         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
8260         * lib/unictype/pr_case_ignorable.h: Likewise.
8261         * lib/unictype/pr_cased.h: Likewise.
8262         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
8263         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
8264         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
8265         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
8266         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
8267         * lib/unictype/pr_combining.h: Likewise.
8268         * lib/unictype/pr_composite.h: Likewise.
8269         * lib/unictype/pr_currency_symbol.h: Likewise.
8270         * lib/unictype/pr_decimal_digit.h: Likewise.
8271         * lib/unictype/pr_deprecated.h: Likewise.
8272         * lib/unictype/pr_format_control.h: Likewise.
8273         * lib/unictype/pr_grapheme_base.h: Likewise.
8274         * lib/unictype/pr_grapheme_extend.h: Likewise.
8275         * lib/unictype/pr_grapheme_link.h: Likewise.
8276         * lib/unictype/pr_id_continue.h: Likewise.
8277         * lib/unictype/pr_id_start.h: Likewise.
8278         * lib/unictype/pr_ideographic.h: Likewise.
8279         * lib/unictype/pr_lowercase.h: Likewise.
8280         * lib/unictype/pr_math.h: Likewise.
8281         * lib/unictype/pr_numeric.h: Likewise.
8282         * lib/unictype/pr_other_alphabetic.h: Likewise.
8283         * lib/unictype/pr_other_id_continue.h: Likewise.
8284         * lib/unictype/pr_other_math.h: Likewise.
8285         * lib/unictype/pr_punctuation.h: Likewise.
8286         * lib/unictype/pr_sentence_terminal.h: Likewise.
8287         * lib/unictype/pr_terminal_punctuation.h: Likewise.
8288         * lib/unictype/pr_unassigned_code_value.h: Likewise.
8289         * lib/unictype/pr_unified_ideograph.h: Likewise.
8290         * lib/unictype/pr_uppercase.h: Likewise.
8291         * lib/unictype/pr_xid_continue.h: Likewise.
8292         * lib/unictype/pr_xid_start.h: Likewise.
8293         * lib/unictype/scripts.h: Likewise.
8294         * lib/unictype/scripts_byname.gperf: Likewise.
8295         * lib/unictype/sy_java_ident.h: Likewise.
8296         * lib/unigbrk/gbrkprop.h: Likewise.
8297         * lib/unilbrk/lbrkprop1.h: Likewise.
8298         * lib/unilbrk/lbrkprop2.h: Likewise.
8299         * lib/uninorm/decomposition-table2.h: Likewise.
8300         * lib/uniwbrk/wbrkprop.h: Likewise.
8301         * tests/unicase/test-cased.c: Likewise.
8302         * tests/unicase/test-ignorable.c: Likewise.
8303         * tests/unicase/test-uc_tolower.c: Likewise.
8304         * tests/unicase/test-uc_totitle.c: Likewise.
8305         * tests/unicase/test-uc_toupper.c: Likewise.
8306         * tests/unictype/test-categ_C.c: Likewise.
8307         * tests/unictype/test-categ_Cn.c: Likewise.
8308         * tests/unictype/test-categ_L.c: Likewise.
8309         * tests/unictype/test-categ_Ll.c: Likewise.
8310         * tests/unictype/test-categ_Lm.c: Likewise.
8311         * tests/unictype/test-categ_Lo.c: Likewise.
8312         * tests/unictype/test-categ_Lu.c: Likewise.
8313         * tests/unictype/test-categ_M.c: Likewise.
8314         * tests/unictype/test-categ_Mc.c: Likewise.
8315         * tests/unictype/test-categ_Me.c: Likewise.
8316         * tests/unictype/test-categ_Mn.c: Likewise.
8317         * tests/unictype/test-categ_N.c: Likewise.
8318         * tests/unictype/test-categ_Nd.c: Likewise.
8319         * tests/unictype/test-categ_No.c: Likewise.
8320         * tests/unictype/test-categ_P.c: Likewise.
8321         * tests/unictype/test-categ_Po.c: Likewise.
8322         * tests/unictype/test-categ_S.c: Likewise.
8323         * tests/unictype/test-categ_Sc.c: Likewise.
8324         * tests/unictype/test-categ_Sk.c: Likewise.
8325         * tests/unictype/test-categ_Sm.c: Likewise.
8326         * tests/unictype/test-categ_So.c: Likewise.
8327         * tests/unictype/test-ctype_alnum.c: Likewise.
8328         * tests/unictype/test-ctype_alpha.c: Likewise.
8329         * tests/unictype/test-ctype_graph.c: Likewise.
8330         * tests/unictype/test-ctype_lower.c: Likewise.
8331         * tests/unictype/test-ctype_print.c: Likewise.
8332         * tests/unictype/test-ctype_punct.c: Likewise.
8333         * tests/unictype/test-ctype_upper.c: Likewise.
8334         * tests/unictype/test-decdigit.h: Likewise.
8335         * tests/unictype/test-digit.h: Likewise.
8336         * tests/unictype/test-numeric.h: Likewise.
8337         * tests/unictype/test-pr_alphabetic.c: Likewise.
8338         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
8339         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
8340         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
8341         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
8342         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
8343         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
8344         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
8345         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
8346         * tests/unictype/test-pr_case_ignorable.c: Likewise.
8347         * tests/unictype/test-pr_cased.c: Likewise.
8348         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
8349         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
8350         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
8351         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
8352         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
8353         * tests/unictype/test-pr_combining.c: Likewise.
8354         * tests/unictype/test-pr_composite.c: Likewise.
8355         * tests/unictype/test-pr_currency_symbol.c: Likewise.
8356         * tests/unictype/test-pr_decimal_digit.c: Likewise.
8357         * tests/unictype/test-pr_deprecated.c: Likewise.
8358         * tests/unictype/test-pr_format_control.c: Likewise.
8359         * tests/unictype/test-pr_grapheme_base.c: Likewise.
8360         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
8361         * tests/unictype/test-pr_grapheme_link.c: Likewise.
8362         * tests/unictype/test-pr_id_continue.c: Likewise.
8363         * tests/unictype/test-pr_id_start.c: Likewise.
8364         * tests/unictype/test-pr_ideographic.c: Likewise.
8365         * tests/unictype/test-pr_lowercase.c: Likewise.
8366         * tests/unictype/test-pr_math.c: Likewise.
8367         * tests/unictype/test-pr_numeric.c: Likewise.
8368         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
8369         * tests/unictype/test-pr_other_id_continue.c: Likewise.
8370         * tests/unictype/test-pr_other_math.c: Likewise.
8371         * tests/unictype/test-pr_punctuation.c: Likewise.
8372         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
8373         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
8374         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
8375         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
8376         * tests/unictype/test-pr_uppercase.c: Likewise.
8377         * tests/unictype/test-pr_xid_continue.c: Likewise.
8378         * tests/unictype/test-pr_xid_start.c: Likewise.
8379         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
8380         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
8381         changes.
8382         * lib/unictype/categ_Cc.h: Likewise.
8383         * lib/unictype/categ_Cf.h: Likewise.
8384         * lib/unictype/categ_Co.h: Likewise.
8385         * lib/unictype/categ_Cs.h: Likewise.
8386         * lib/unictype/categ_Lt.h: Likewise.
8387         * lib/unictype/categ_Nl.h: Likewise.
8388         * lib/unictype/categ_Pc.h: Likewise.
8389         * lib/unictype/categ_Pd.h: Likewise.
8390         * lib/unictype/categ_Pe.h: Likewise.
8391         * lib/unictype/categ_Pf.h: Likewise.
8392         * lib/unictype/categ_Pi.h: Likewise.
8393         * lib/unictype/categ_Ps.h: Likewise.
8394         * lib/unictype/categ_Z.h: Likewise.
8395         * lib/unictype/categ_Zl.h: Likewise.
8396         * lib/unictype/categ_Zp.h: Likewise.
8397         * lib/unictype/categ_Zs.h: Likewise.
8398         * lib/unictype/ctype_blank.h: Likewise.
8399         * lib/unictype/ctype_cntrl.h: Likewise.
8400         * lib/unictype/ctype_digit.h: Likewise.
8401         * lib/unictype/ctype_space.h: Likewise.
8402         * lib/unictype/ctype_xdigit.h: Likewise.
8403         * lib/unictype/mirror.h: Likewise.
8404         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
8405         * lib/unictype/pr_bidi_block_separator.h: Likewise.
8406         * lib/unictype/pr_bidi_common_separator.h: Likewise.
8407         * lib/unictype/pr_bidi_control.h: Likewise.
8408         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
8409         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
8410         * lib/unictype/pr_bidi_european_digit.h: Likewise.
8411         * lib/unictype/pr_bidi_pdf.h: Likewise.
8412         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
8413         * lib/unictype/pr_bidi_whitespace.h: Likewise.
8414         * lib/unictype/pr_dash.h: Likewise.
8415         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
8416         * lib/unictype/pr_diacritic.h: Likewise.
8417         * lib/unictype/pr_extender.h: Likewise.
8418         * lib/unictype/pr_hex_digit.h: Likewise.
8419         * lib/unictype/pr_hyphen.h: Likewise.
8420         * lib/unictype/pr_ids_binary_operator.h: Likewise.
8421         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
8422         * lib/unictype/pr_ignorable_control.h: Likewise.
8423         * lib/unictype/pr_iso_control.h: Likewise.
8424         * lib/unictype/pr_join_control.h: Likewise.
8425         * lib/unictype/pr_left_of_pair.h: Likewise.
8426         * lib/unictype/pr_line_separator.h: Likewise.
8427         * lib/unictype/pr_logical_order_exception.h: Likewise.
8428         * lib/unictype/pr_non_break.h: Likewise.
8429         * lib/unictype/pr_not_a_character.h: Likewise.
8430         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
8431         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
8432         * lib/unictype/pr_other_id_start.h: Likewise.
8433         * lib/unictype/pr_other_lowercase.h: Likewise.
8434         * lib/unictype/pr_other_uppercase.h: Likewise.
8435         * lib/unictype/pr_paired_punctuation.h: Likewise.
8436         * lib/unictype/pr_paragraph_separator.h: Likewise.
8437         * lib/unictype/pr_pattern_syntax.h: Likewise.
8438         * lib/unictype/pr_pattern_white_space.h: Likewise.
8439         * lib/unictype/pr_private_use.h: Likewise.
8440         * lib/unictype/pr_quotation_mark.h: Likewise.
8441         * lib/unictype/pr_radical.h: Likewise.
8442         * lib/unictype/pr_soft_dotted.h: Likewise.
8443         * lib/unictype/pr_space.h: Likewise.
8444         * lib/unictype/pr_titlecase.h: Likewise.
8445         * lib/unictype/pr_variation_selector.h: Likewise.
8446         * lib/unictype/pr_white_space.h: Likewise.
8447         * lib/unictype/pr_zero_width.h: Likewise.
8448         * lib/unictype/sy_c_ident.h: Likewise.
8449         * lib/unictype/sy_c_whitespace.h: Likewise.
8450         * lib/unictype/sy_java_whitespace.h: Likewise.
8451         * lib/uninorm/composition-table.gperf: Likewise.
8452         * lib/uninorm/decomposition-table1.h: Likewise.
8453         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
8454         LB8.
8455         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
8456         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
8457         * modules/unictype/*: Bump version number of expected libunistring
8458         version.
8459
8460 2011-01-09  Bruno Haible  <bruno@clisp.org>
8461
8462         Update to Unicode 5.2.0.
8463         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
8464         trailing whitespace removed.
8465
8466 2011-01-09  Bruno Haible  <bruno@clisp.org>
8467
8468         New Unicode character properties, from Unicode 5.2.0.
8469         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
8470         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
8471         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
8472         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
8473         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
8474         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
8475         uc_is_property_cased, uc_is_property_case_ignorable,
8476         uc_is_property_changes_when_lowercased,
8477         uc_is_property_changes_when_uppercased,
8478         uc_is_property_changes_when_titlecased,
8479         uc_is_property_changes_when_casefolded,
8480         uc_is_property_changes_when_casemapped): New declarations.
8481         * lib/unictype/pr_byname.gperf: Add the new properties.
8482         * modules/unictype/property-byname (Depends-on): Depend on the new
8483         properties modules.
8484         * modules/unictype/property-all (Depends-on): Likewise.
8485         * MODULES.html.sh (Unicode string functions): Add
8486         unictype/property-case-ignorable, unictype/property-cased,
8487         unictype/property-changes-when-casefolded,
8488         unictype/property-changes-when-casemapped,
8489         unictype/property-changes-when-lowercased,
8490         unictype/property-changes-when-titlecased,
8491         unictype/property-changes-when-uppercased.
8492
8493         New module 'unictype/property-changes-when-casemapped'.
8494         * modules/unictype/property-changes-when-casemapped: New file.
8495         * lib/unictype/pr_changes_when_casemapped.c: New file.
8496         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
8497         generated by gen-uni-tables.
8498         * modules/unictype/property-changes-when-casemapped-tests: New file.
8499         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
8500         automatically generated by gen-uni-tables.
8501
8502         New module 'unictype/property-changes-when-casefolded'.
8503         * modules/unictype/property-changes-when-casefolded: New file.
8504         * lib/unictype/pr_changes_when_casefolded.c: New file.
8505         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
8506         generated by gen-uni-tables.
8507         * modules/unictype/property-changes-when-casefolded-tests: New file.
8508         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
8509         automatically generated by gen-uni-tables.
8510
8511         New module 'unictype/property-changes-when-titlecased'.
8512         * modules/unictype/property-changes-when-titlecased: New file.
8513         * lib/unictype/pr_changes_when_titlecased.c: New file.
8514         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
8515         generated by gen-uni-tables.
8516         * modules/unictype/property-changes-when-titlecased-tests: New file.
8517         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
8518         automatically generated by gen-uni-tables.
8519
8520         New module 'unictype/property-changes-when-uppercased'.
8521         * modules/unictype/property-changes-when-uppercased: New file.
8522         * lib/unictype/pr_changes_when_uppercased.c: New file.
8523         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
8524         generated by gen-uni-tables.
8525         * modules/unictype/property-changes-when-uppercased-tests: New file.
8526         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
8527         automatically generated by gen-uni-tables.
8528
8529         New module 'unictype/property-changes-when-lowercased'.
8530         * modules/unictype/property-changes-when-lowercased: New file.
8531         * lib/unictype/pr_changes_when_lowercased.c: New file.
8532         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
8533         generated by gen-uni-tables.
8534         * modules/unictype/property-changes-when-lowercased-tests: New file.
8535         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
8536         automatically generated by gen-uni-tables.
8537
8538         New module 'unictype/property-case-ignorable'.
8539         * modules/unictype/property-case-ignorable: New file.
8540         * lib/unictype/pr_case_ignorable.c: New file.
8541         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
8542         by gen-uni-tables.
8543         * modules/unictype/property-case-ignorable-tests: New file.
8544         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
8545         generated by gen-uni-tables.
8546
8547         New module 'unictype/property-cased'.
8548         * modules/unictype/property-cased: New file.
8549         * lib/unictype/pr_cased.c: New file.
8550         * lib/unictype/pr_cased.h: New file, automatically generated by
8551         gen-uni-tables.
8552         * modules/unictype/property-cased-tests: New file.
8553         * tests/unictype/test-pr_cased.c: New file, automatically generated by
8554         gen-uni-tables.
8555
8556 2011-01-09  Bruno Haible  <bruno@clisp.org>
8557
8558         Update to Unicode 5.2.0.
8559         * lib/gen-uni-tables.c (output_predicate, output_category,
8560         output_combclass, output_bidi_category, output_decimal_digit_test,
8561         output_decimal_digit, output_digit_test, output_digit,
8562         output_numeric_test, output_numeric, output_mirror, output_scripts,
8563         output_scripts_byname, output_blocks, output_ident_category): Fix
8564         comment header.
8565         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
8566         get_wbp.
8567         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
8568         items.
8569         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
8570         Changes_When_Lowercased, Changes_When_Uppercased,
8571         Changes_When_Titlecased, Changes_When_Casefolded,
8572         Changes_When_Casemapped.
8573         (is_property_alphabetic, is_property_default_ignorable_code_point):
8574         Update for Unicode 5.2.0.
8575         (is_property_cased, is_property_case_ignorable,
8576         is_property_changes_when_lowercased,
8577         is_property_changes_when_uppercased,
8578         is_property_changes_when_titlecased,
8579         is_property_changes_when_casefolded,
8580         is_property_changes_when_casemapped): New functions.
8581         (output_properties): Output also the properties cased, case_ignorable,
8582         changes_when_lowercased, changes_when_uppercased,
8583         changes_when_titlecased, changes_when_casefolded,
8584         changes_when_casemapped.
8585         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
8586         Unicode TR#11 revision 17 -> 19.
8587         (LBP_CP): New enumeration value.
8588         (LBP_*): Adjust values accordingly.
8589         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
8590         TR#14 revision 22 -> 24.
8591         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
8592         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
8593         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
8594         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
8595         is_WBP_MIDLETTER.
8596         (output_composition_tables): Allow for 24 bits instead of 16 bits in
8597         the code1 and code2 of each composition rule.
8598         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
8599         * lib/unicase/ignorable.h: Likewise.
8600         * lib/unicase/tocasefold.h: Likewise.
8601         * lib/unicase/tolower.h: Likewise.
8602         * lib/unicase/totitle.h: Likewise.
8603         * lib/unicase/toupper.h: Likewise.
8604         * lib/unictype/bidi_of.h: Likewise.
8605         * lib/unictype/blocks.h: Likewise.
8606         * lib/unictype/categ_C.h: Likewise.
8607         * lib/unictype/categ_Cf.h: Likewise.
8608         * lib/unictype/categ_Cn.h: Likewise.
8609         * lib/unictype/categ_L.h: Likewise.
8610         * lib/unictype/categ_Ll.h: Likewise.
8611         * lib/unictype/categ_Lm.h: Likewise.
8612         * lib/unictype/categ_Lo.h: Likewise.
8613         * lib/unictype/categ_Lu.h: Likewise.
8614         * lib/unictype/categ_M.h: Likewise.
8615         * lib/unictype/categ_Mc.h: Likewise.
8616         * lib/unictype/categ_Mn.h: Likewise.
8617         * lib/unictype/categ_N.h: Likewise.
8618         * lib/unictype/categ_Nd.h: Likewise.
8619         * lib/unictype/categ_Nl.h: Likewise.
8620         * lib/unictype/categ_No.h: Likewise.
8621         * lib/unictype/categ_P.h: Likewise.
8622         * lib/unictype/categ_Pd.h: Likewise.
8623         * lib/unictype/categ_Po.h: Likewise.
8624         * lib/unictype/categ_S.h: Likewise.
8625         * lib/unictype/categ_Sc.h: Likewise.
8626         * lib/unictype/categ_So.h: Likewise.
8627         * lib/unictype/categ_of.h: Likewise.
8628         * lib/unictype/combining.h: Likewise.
8629         * lib/unictype/ctype_alnum.h: Likewise.
8630         * lib/unictype/ctype_alpha.h: Likewise.
8631         * lib/unictype/ctype_graph.h: Likewise.
8632         * lib/unictype/ctype_lower.h: Likewise.
8633         * lib/unictype/ctype_print.h: Likewise.
8634         * lib/unictype/ctype_punct.h: Likewise.
8635         * lib/unictype/ctype_upper.h: Likewise.
8636         * lib/unictype/decdigit.h: Likewise.
8637         * lib/unictype/digit.h: Likewise.
8638         * lib/unictype/numeric.h: Likewise.
8639         * lib/unictype/pr_alphabetic.h: Likewise.
8640         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
8641         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
8642         * lib/unictype/pr_bidi_european_digit.h: Likewise.
8643         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
8644         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
8645         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
8646         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
8647         * lib/unictype/pr_combining.h: Likewise.
8648         * lib/unictype/pr_composite.h: Likewise.
8649         * lib/unictype/pr_currency_symbol.h: Likewise.
8650         * lib/unictype/pr_dash.h: Likewise.
8651         * lib/unictype/pr_decimal_digit.h: Likewise.
8652         * lib/unictype/pr_deprecated.h: Likewise.
8653         * lib/unictype/pr_diacritic.h: Likewise.
8654         * lib/unictype/pr_extender.h: Likewise.
8655         * lib/unictype/pr_grapheme_base.h: Likewise.
8656         * lib/unictype/pr_grapheme_extend.h: Likewise.
8657         * lib/unictype/pr_grapheme_link.h: Likewise.
8658         * lib/unictype/pr_id_continue.h: Likewise.
8659         * lib/unictype/pr_id_start.h: Likewise.
8660         * lib/unictype/pr_ideographic.h: Likewise.
8661         * lib/unictype/pr_ignorable_control.h: Likewise.
8662         * lib/unictype/pr_logical_order_exception.h: Likewise.
8663         * lib/unictype/pr_lowercase.h: Likewise.
8664         * lib/unictype/pr_numeric.h: Likewise.
8665         * lib/unictype/pr_other_alphabetic.h: Likewise.
8666         * lib/unictype/pr_punctuation.h: Likewise.
8667         * lib/unictype/pr_sentence_terminal.h: Likewise.
8668         * lib/unictype/pr_terminal_punctuation.h: Likewise.
8669         * lib/unictype/pr_unassigned_code_value.h: Likewise.
8670         * lib/unictype/pr_unified_ideograph.h: Likewise.
8671         * lib/unictype/pr_uppercase.h: Likewise.
8672         * lib/unictype/pr_xid_continue.h: Likewise.
8673         * lib/unictype/pr_xid_start.h: Likewise.
8674         * lib/unictype/pr_zero_width.h: Likewise.
8675         * lib/unictype/scripts.h: Likewise.
8676         * lib/unictype/scripts_byname.gperf: Likewise.
8677         * lib/unictype/sy_java_ident.h: Likewise.
8678         * lib/unigbrk/gbrkprop.h: Likewise.
8679         * lib/unilbrk/lbrkprop1.h: Likewise.
8680         * lib/unilbrk/lbrkprop2.h: Likewise.
8681         * lib/unilbrk/lbrktables.h: Likewise.
8682         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
8683         LBP_CP. Implement rule LB30.
8684         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
8685         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
8686         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
8687         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
8688         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
8689         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
8690         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
8691         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
8692         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
8693         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
8694         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
8695         bits instead of 16 bits in the code1 and code2 of each composition
8696         rule.
8697         (uc_composition): Update for Unicode 5.2.0.
8698         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
8699         * lib/uninorm/decomposition-table2.h: Likewise.
8700         * lib/uniwbrk/wbrkprop.h: Likewise.
8701         * tests/unicase/test-cased.c: Likewise.
8702         * tests/unicase/test-ignorable.c: Likewise.
8703         * tests/unicase/test-uc_tolower.c: Likewise.
8704         * tests/unicase/test-uc_totitle.c: Likewise.
8705         * tests/unicase/test-uc_toupper.c: Likewise.
8706         * tests/unictype/test-categ_C.c: Likewise.
8707         * tests/unictype/test-categ_Cf.c: Likewise.
8708         * tests/unictype/test-categ_Cn.c: Likewise.
8709         * tests/unictype/test-categ_L.c: Likewise.
8710         * tests/unictype/test-categ_Ll.c: Likewise.
8711         * tests/unictype/test-categ_Lm.c: Likewise.
8712         * tests/unictype/test-categ_Lo.c: Likewise.
8713         * tests/unictype/test-categ_Lu.c: Likewise.
8714         * tests/unictype/test-categ_M.c: Likewise.
8715         * tests/unictype/test-categ_Mc.c: Likewise.
8716         * tests/unictype/test-categ_Mn.c: Likewise.
8717         * tests/unictype/test-categ_N.c: Likewise.
8718         * tests/unictype/test-categ_Nd.c: Likewise.
8719         * tests/unictype/test-categ_Nl.c: Likewise.
8720         * tests/unictype/test-categ_No.c: Likewise.
8721         * tests/unictype/test-categ_P.c: Likewise.
8722         * tests/unictype/test-categ_Pd.c: Likewise.
8723         * tests/unictype/test-categ_Po.c: Likewise.
8724         * tests/unictype/test-categ_S.c: Likewise.
8725         * tests/unictype/test-categ_Sc.c: Likewise.
8726         * tests/unictype/test-categ_So.c: Likewise.
8727         * tests/unictype/test-ctype_alnum.c: Likewise.
8728         * tests/unictype/test-ctype_alpha.c: Likewise.
8729         * tests/unictype/test-ctype_graph.c: Likewise.
8730         * tests/unictype/test-ctype_lower.c: Likewise.
8731         * tests/unictype/test-ctype_print.c: Likewise.
8732         * tests/unictype/test-ctype_punct.c: Likewise.
8733         * tests/unictype/test-ctype_upper.c: Likewise.
8734         * tests/unictype/test-decdigit.h: Likewise.
8735         * tests/unictype/test-digit.h: Likewise.
8736         * tests/unictype/test-numeric.h: Likewise.
8737         * tests/unictype/test-pr_alphabetic.c: Likewise.
8738         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
8739         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
8740         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
8741         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
8742         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
8743         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
8744         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
8745         * tests/unictype/test-pr_combining.c: Likewise.
8746         * tests/unictype/test-pr_composite.c: Likewise.
8747         * tests/unictype/test-pr_currency_symbol.c: Likewise.
8748         * tests/unictype/test-pr_dash.c: Likewise.
8749         * tests/unictype/test-pr_decimal_digit.c: Likewise.
8750         * tests/unictype/test-pr_deprecated.c: Likewise.
8751         * tests/unictype/test-pr_diacritic.c: Likewise.
8752         * tests/unictype/test-pr_extender.c: Likewise.
8753         * tests/unictype/test-pr_grapheme_base.c: Likewise.
8754         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
8755         * tests/unictype/test-pr_grapheme_link.c: Likewise.
8756         * tests/unictype/test-pr_id_continue.c: Likewise.
8757         * tests/unictype/test-pr_id_start.c: Likewise.
8758         * tests/unictype/test-pr_ideographic.c: Likewise.
8759         * tests/unictype/test-pr_ignorable_control.c: Likewise.
8760         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
8761         * tests/unictype/test-pr_lowercase.c: Likewise.
8762         * tests/unictype/test-pr_numeric.c: Likewise.
8763         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
8764         * tests/unictype/test-pr_punctuation.c: Likewise.
8765         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
8766         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
8767         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
8768         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
8769         * tests/unictype/test-pr_uppercase.c: Likewise.
8770         * tests/unictype/test-pr_xid_continue.c: Likewise.
8771         * tests/unictype/test-pr_xid_start.c: Likewise.
8772         * tests/unictype/test-pr_zero_width.c: Likewise.
8773         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
8774         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
8775         changed behaviour: line breaking is now disallowed between a letter
8776         or '=' and '('.
8777         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
8778         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
8779         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
8780         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
8781         * tests/uniwidth/test-uc_width2.sh: Same updates as in
8782         lib/uniwidth/width.c.
8783         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
8784         without comments, but with the original copyright notice.
8785         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
8786         changes.
8787         * lib/unictype/categ_Cc.h: Likewise.
8788         * lib/unictype/categ_Co.h: Likewise.
8789         * lib/unictype/categ_Cs.h: Likewise.
8790         * lib/unictype/categ_Lt.h: Likewise.
8791         * lib/unictype/categ_Me.h: Likewise.
8792         * lib/unictype/categ_Pc.h: Likewise.
8793         * lib/unictype/categ_Pe.h: Likewise.
8794         * lib/unictype/categ_Pf.h: Likewise.
8795         * lib/unictype/categ_Pi.h: Likewise.
8796         * lib/unictype/categ_Ps.h: Likewise.
8797         * lib/unictype/categ_Sk.h: Likewise.
8798         * lib/unictype/categ_Sm.h: Likewise.
8799         * lib/unictype/categ_Z.h: Likewise.
8800         * lib/unictype/categ_Zl.h: Likewise.
8801         * lib/unictype/categ_Zp.h: Likewise.
8802         * lib/unictype/categ_Zs.h: Likewise.
8803         * lib/unictype/ctype_blank.h: Likewise.
8804         * lib/unictype/ctype_cntrl.h: Likewise.
8805         * lib/unictype/ctype_digit.h: Likewise.
8806         * lib/unictype/ctype_space.h: Likewise.
8807         * lib/unictype/ctype_xdigit.h: Likewise.
8808         * lib/unictype/mirror.h: Likewise.
8809         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
8810         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
8811         * lib/unictype/pr_bidi_block_separator.h: Likewise.
8812         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
8813         * lib/unictype/pr_bidi_common_separator.h: Likewise.
8814         * lib/unictype/pr_bidi_control.h: Likewise.
8815         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
8816         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
8817         * lib/unictype/pr_bidi_pdf.h: Likewise.
8818         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
8819         * lib/unictype/pr_bidi_whitespace.h: Likewise.
8820         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
8821         * lib/unictype/pr_format_control.h: Likewise.
8822         * lib/unictype/pr_hex_digit.h: Likewise.
8823         * lib/unictype/pr_hyphen.h: Likewise.
8824         * lib/unictype/pr_ids_binary_operator.h: Likewise.
8825         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
8826         * lib/unictype/pr_iso_control.h: Likewise.
8827         * lib/unictype/pr_join_control.h: Likewise.
8828         * lib/unictype/pr_left_of_pair.h: Likewise.
8829         * lib/unictype/pr_line_separator.h: Likewise.
8830         * lib/unictype/pr_math.h: Likewise.
8831         * lib/unictype/pr_non_break.h: Likewise.
8832         * lib/unictype/pr_not_a_character.h: Likewise.
8833         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
8834         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
8835         * lib/unictype/pr_other_id_continue.h: Likewise.
8836         * lib/unictype/pr_other_id_start.h: Likewise.
8837         * lib/unictype/pr_other_lowercase.h: Likewise.
8838         * lib/unictype/pr_other_math.h: Likewise.
8839         * lib/unictype/pr_other_uppercase.h: Likewise.
8840         * lib/unictype/pr_paired_punctuation.h: Likewise.
8841         * lib/unictype/pr_paragraph_separator.h: Likewise.
8842         * lib/unictype/pr_pattern_syntax.h: Likewise.
8843         * lib/unictype/pr_pattern_white_space.h: Likewise.
8844         * lib/unictype/pr_private_use.h: Likewise.
8845         * lib/unictype/pr_quotation_mark.h: Likewise.
8846         * lib/unictype/pr_radical.h: Likewise.
8847         * lib/unictype/pr_soft_dotted.h: Likewise.
8848         * lib/unictype/pr_space.h: Likewise.
8849         * lib/unictype/pr_titlecase.h: Likewise.
8850         * lib/unictype/pr_variation_selector.h: Likewise.
8851         * lib/unictype/pr_white_space.h: Likewise.
8852         * lib/unictype/sy_c_ident.h: Likewise.
8853         * lib/unictype/sy_c_whitespace.h: Likewise.
8854         * lib/unictype/sy_java_whitespace.h: Likewise.
8855         * modules/uni*/*: Bump version number of expected libunistring version.
8856         Reported by Simon Josefsson.
8857
8858 2011-01-09  Karl Heuer  <kwzh@gnu.org>
8859
8860         useless-if-before-free: fix typo in --help and make the internal,
8861         automatic version date update process work once again.
8862         --help output contained a NUL character instead of the
8863         backslash-zero that was intended.  Also, the "must lie within
8864         the first 8 lines" line is on line 9, and hence not getting
8865         automatically updated.
8866         * build-aux/useless-if-before-free: Fix the former by adding a
8867         backslash, and the latter by condensing the three lines of what-it-does
8868         to a single line, leaving one line of slack for the future.
8869
8870 2011-01-09  Bruno Haible  <bruno@clisp.org>
8871
8872         uniwidth/width: Fix width of U+1D173..U+1D17A.
8873         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
8874         symbolic_width, output_width_property_test): New functions.
8875         (main): Invoke output_nonspacing_property, output_width_property_test.
8876         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
8877         U+1D173..U+1D17A.
8878         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
8879         1.
8880         * modules/uniwidth/*: Bump version number of expected libunistring
8881         version.
8882         * modules/unilbrk/*: Likewise.
8883
8884 2011-01-08  Bruno Haible  <bruno@clisp.org>
8885
8886         uninorm tests: Preserve copyright of Unicode data file.
8887         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
8888         Mention modifications.
8889
8890 2011-01-08  Bruno Haible  <bruno@clisp.org>
8891
8892         gen-uni-tables: Prepare for Unicode 5.2.0.
8893         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
8894         (debug_output_lbp, output_lbp): Update.
8895
8896 2011-01-08  Bruno Haible  <bruno@clisp.org>
8897
8898         unilbrk: Clarify gen-uni-tables.c code.
8899         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
8900         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
8901         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
8902
8903 2011-01-07  Bruno Haible  <bruno@clisp.org>
8904
8905         strtod: Restore errno when successfully parsing Infinity or NaN.
8906         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
8907         restore the original errno.
8908
8909 2011-01-07  Bruno Haible  <bruno@clisp.org>
8910
8911         remove test: Avoid failure on HP-UX 11.
8912         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
8913
8914 2011-01-07  Bruno Haible  <bruno@clisp.org>
8915
8916         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
8917         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
8918         error code.
8919
8920 2011-01-07  Pádraig Brady <P@draigBrady.com>
8921
8922         ignore-value: fixup comments, and add Eric Blake
8923         as an author since he rewrote the macros.
8924         * lib/ignore-value.h (ignore_value):  State that
8925         we now support aggregates.  Also specify exactly
8926         when the GCC warn_unused_result feature was added.
8927
8928 2011-01-06  Eric Blake  <eblake@redhat.com>
8929
8930         ignore-value: support aggregate types
8931         * lib/ignore-value.h (ignore_value): Provide separate gcc
8932         definition.
8933         * modules/ignore-value-tests: New test module.
8934         * tests/test-ignore-value.c: New test.
8935
8936         maint.mk: improve sc_prohibit_strcmp regex
8937         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
8938         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
8939         definition of STRNEQ.
8940
8941         signal: work around Haiku issue with SIGBUS
8942         * lib/siglist.h: Add comment.
8943         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
8944         strsignal's favoring of SIGSEGV.
8945         * tests/test-signal.c (main): Avoid test failure.
8946         * doc/posix-headers/signal.texi (signal.h): Document the issue.
8947         Reported by Scott McCreary.
8948
8949         maint.mk: add pre-release check to ensure submodule commits are public
8950         * top/maint.mk (public-submodule-commit): New rule.
8951         (submodule-checks): New variable.
8952         (alpha beta stable): Depend on the variable.
8953
8954 2011-01-05  Pádraig Brady <P@draigBrady.com>
8955         and Jim Meyering  <meyering@redhat.com>
8956
8957         ignore-value: make ignore_value more generic; deprecate ignore_ptr
8958         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
8959         (ATTRIBUTE_DEPRECATED): Define.
8960         (_ignore_case): New function.
8961         (ignore_value): New macro, to replace the old function.
8962         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
8963         * modules/ignore-value (Depends-on): Add stdint.
8964
8965 2011-01-04  Eric Blake  <eblake@redhat.com>
8966
8967         doc: regenerate INSTALL
8968         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
8969         @firstparagraphindent support, now that autoconf dropped it.
8970         (INSTALL_PRELUDE): Reinstate old macro.
8971         * doc/install.texi: Resync from autoconf.
8972         * doc/INSTALL: Reflect recent autoconf update.
8973         * doc/INSTALL.ISO: Likewise.
8974         * doc/INSTALL.UTF-8: Likewise.
8975         Reported by Karl Berry.
8976
8977 2011-01-04  Bruce Korb  <address@hidden>
8978
8979         git-version-gen: avoid a sub-shell
8980         * build-aux/git-version-gen: Redirect stderr in `...` via
8981         "exec 2>...", rather than via an added sub-shell.
8982
8983 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
8984
8985         git-version-gen: use (...) rather than sh -c '...'
8986         * build-aux/git-version-gen: Rather than hard-coding a shell's name
8987         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
8988
8989 2011-01-03  Jim Meyering  <meyering@redhat.com>
8990
8991         git-version-gen: convert leading TABs to spaces
8992         * build-aux/git-version-gen: Expand leading TABs.
8993
8994         git-version-gen: handle failed "git rev-list"
8995         * build-aux/git-version-gen: Rather than leaking a "fatal" error
8996         from git and proceeding as if it had succeeded but printed no SHA1
8997         checksums, suppress the diagnostic and handle the failure.
8998         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
8999
9000         git-version-gen: include command name in one more diagnostic
9001         * build-aux/git-version-gen: When the required .tarball-version file
9002         was missing or unreadable, you might see the diagnostic from "cat",
9003         but no trace of the name of the invoking script.  Now, you still see
9004         the diagnostic from cat, but also get one from "git-version-gen: ".
9005         Inspired by a patch from Bruce Korb.
9006
9007         update-copyright: adjust test to match changed code
9008         * tests/test-update-copyright.sh: Change test's expected output
9009         to match new actual output.
9010
9011 2011-01-02  Bruno Haible  <bruno@clisp.org>
9012
9013         getlogin_r: Avoid test failure on HP-UX 11.
9014         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
9015         ERANGE when the second argument is zero.
9016         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
9017         portability problem.
9018
9019 2011-01-02  Bruce Korb  <bkorb@gnu.org>
9020
9021         * build-aux/update-copyright: doc Simon's changes
9022
9023 2011-01-02  Simon Josefsson  <simon@josefsson.org>
9024
9025         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
9026         environment variable.
9027
9028 2011-01-02  Bruno Haible  <bruno@clisp.org>
9029
9030         unigbrk: Avoid gcc warnings.
9031         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
9032         unused variable.
9033         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
9034         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
9035         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
9036         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
9037         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
9038         Change type of first argument to 'const char *'.
9039         (main): Remove unused variable.
9040         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
9041         type of first argument to 'const char *'.
9042         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
9043         Likewise.
9044         (main): Change type of variable 's'.
9045         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
9046         to 'int'.
9047
9048 2011-01-02  Bruno Haible  <bruno@clisp.org>
9049
9050         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
9051         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
9052         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
9053         bug.
9054         * lib/pwrite.c: Undo 2010-12-31 patch.
9055         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
9056
9057 2011-01-02  Bruno Haible  <bruno@clisp.org>
9058
9059         pread: Fix test whether it works.
9060         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
9061
9062 2011-01-02  Bruno Haible  <bruno@clisp.org>
9063
9064         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
9065         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
9066         ends in "6". Don't require a specific month name. Try also the locale
9067         names found on HP-UX 11 and Solaris 7.
9068
9069 2011-01-02  Bruno Haible  <bruno@clisp.org>
9070
9071         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
9072         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
9073         C linkage.
9074         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
9075
9076 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
9077
9078         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
9079         for consistency, since the "cluster" term is not used elsewhere.
9080         * lib/unigbrk.in.h: Update name.
9081         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
9082         * lib/unigbrk/u16-grapheme-next.c: Update name.
9083         * lib/unigbrk/u16-grapheme-prev.c: Update name.
9084         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
9085         * lib/unigbrk/u32-grapheme-next.c: Update name.
9086         * lib/unigbrk/u32-grapheme-prev.c: Update name.
9087         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
9088         * lib/unigbrk/u8-grapheme-next.c: Update name.
9089         * lib/unigbrk/u8-grapheme-prev.c: Update name.
9090         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
9091         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
9092         Suggested by Bruno Haible.
9093
9094 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
9095
9096         Remove module 'u8-grapheme-len' as too redundant with
9097         'u8-grapheme-next'.
9098         * modules/unigbrk/u8-grapheme-len: Delete file.
9099         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
9100         * lib/unigbrk.in.h: Remove prototype for deleted function.
9101         * lib/unigbrk/u8-grapheme-len.c: Delete file.
9102         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
9103
9104         Remove module 'u16-grapheme-len' as too redundant with
9105         'u16-grapheme-next'.
9106         * modules/unigbrk/u16-grapheme-len: Delete file.
9107         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
9108         * lib/unigbrk.in.h: Remove prototype for deleted function.
9109         * lib/unigbrk/u16-grapheme-len.c: Delete file.
9110         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
9111
9112         Remove module 'u32-grapheme-len' as too redundant with
9113         'u32-grapheme-next'.
9114         * modules/unigbrk/u32-grapheme-len: Delete file.
9115         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
9116         * lib/unigbrk.in.h: Remove prototype for deleted function.
9117         * lib/unigbrk/u32-grapheme-len.c: Delete file.
9118         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
9119
9120         Suggested by Bruno Haible.
9121
9122 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
9123
9124         * unigbrk.in.h: Fix typo: "ben" => "been".
9125         Reported by Bruno Haible.
9126
9127 2011-01-01  Jim Meyering  <meyering@redhat.com>
9128
9129         maint: update almost all copyright ranges to include 2011
9130         Run the new "make update-copyright" rule.
9131
9132 2011-01-01  Jim Meyering  <meyering@redhat.com>
9133
9134         maint: update-copyright: exempt doc/INSTALL*
9135         * Makefile (update-copyright): Also exclude doc/INSTALL*,
9136         since they are generated.  Suggested by Bruno Haible.
9137
9138 2011-01-01  Jim Meyering  <meyering@redhat.com>
9139
9140         maint: refine the update-copyright rule
9141         * Makefile (update-copyright): Also exclude any file that includes
9142         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
9143         code that merely generates the comment.
9144
9145 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
9146
9147         New module 'u8-grapheme-len'.
9148         * modules/unigbrk/u8-grapheme-len: New file.
9149         * modules/unigbrk/u8-grapheme-len-tests: New file.
9150         * lib/unigbrk.in.h: Add prototype for new function.
9151         * lib/unigbrk/u8-grapheme-len.c: New file.
9152         * tests/unigbrk/test-u8-grapheme-len.c: New file.
9153
9154         New module 'u16-grapheme-len'.
9155         * modules/unigbrk/u16-grapheme-len: New file.
9156         * modules/unigbrk/u16-grapheme-len-tests: New file.
9157         * lib/unigbrk.in.h: Add prototype for new function.
9158         * lib/unigbrk/u16-grapheme-len.c: New file.
9159         * tests/unigbrk/test-u16-grapheme-len.c: New file.
9160
9161         New module 'u32-grapheme-len'.
9162         * modules/unigbrk/u32-grapheme-len: New file.
9163         * modules/unigbrk/u32-grapheme-len-tests: New file.
9164         * lib/unigbrk.in.h: Add prototype for new function.
9165         * lib/unigbrk/u32-grapheme-len.c: New file.
9166         * tests/unigbrk/test-u32-grapheme-len.c: New file.
9167
9168         New module 'u8-grapheme-next'.
9169         * modules/unigbrk/u8-grapheme-next: New file.
9170         * modules/unigbrk/u8-grapheme-next-tests: New file.
9171         * lib/unigbrk.in.h: Add prototype for new function.
9172         * lib/unigbrk/u8-grapheme-next.c: New file.
9173         * tests/unigbrk/test-u8-grapheme-next.c: New file.
9174
9175         New module 'u16-grapheme-next'.
9176         * modules/unigbrk/u16-grapheme-next: New file.
9177         * modules/unigbrk/u16-grapheme-next-tests: New file.
9178         * lib/unigbrk.in.h: Add prototype for new function.
9179         * lib/unigbrk/u16-grapheme-next.c: New file.
9180         * tests/unigbrk/test-u16-grapheme-next.c: New file.
9181
9182         New module 'u32-grapheme-next'.
9183         * modules/unigbrk/u32-grapheme-next: New file.
9184         * modules/unigbrk/u32-grapheme-next-tests: New file.
9185         * lib/unigbrk.in.h: Add prototype for new function.
9186         * lib/unigbrk/u32-grapheme-next.c: New file.
9187         * tests/unigbrk/test-u32-grapheme-next.c: New file.
9188
9189         New module 'u8-grapheme-prev'.
9190         * modules/unigbrk/u8-grapheme-prev: New file.
9191         * modules/unigbrk/u8-grapheme-prev-tests: New file.
9192         * lib/unigbrk.in.h: Add prototype for new function.
9193         * lib/unigbrk/u8-grapheme-prev.c: New file.
9194         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
9195
9196         New module 'u16-grapheme-prev'.
9197         * modules/unigbrk/u16-grapheme-prev: New file.
9198         * modules/unigbrk/u16-grapheme-prev-tests: New file.
9199         * lib/unigbrk.in.h: Add prototype for new function.
9200         * lib/unigbrk/u16-grapheme-prev.c: New file.
9201         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
9202
9203         New module 'u32-grapheme-prev'.
9204         * modules/unigbrk/u32-grapheme-prev: New file.
9205         * modules/unigbrk/u32-grapheme-prev-tests: New file.
9206         * lib/unigbrk.in.h: Add prototype for new function.
9207         * lib/unigbrk/u32-grapheme-prev.c: New file.
9208         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
9209
9210         New module 'u8-grapheme-breaks'.
9211         * modules/unigbrk/u8-grapheme-breaks: New file.
9212         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
9213         * lib/unigbrk.in.h: Add prototype for new function.
9214         * lib/unigbrk/u8-grapheme-breaks.c: New file.
9215         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
9216
9217         New module 'u16-grapheme-breaks'.
9218         * modules/unigbrk/u16-grapheme-breaks: New file.
9219         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
9220         * lib/unigbrk.in.h: Add prototype for new function.
9221         * lib/unigbrk/u16-grapheme-breaks.c: New file.
9222         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
9223
9224         New module 'u32-grapheme-breaks'.
9225         * modules/unigbrk/u32-grapheme-breaks: New file.
9226         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
9227         * lib/unigbrk.in.h: Add prototype for new function.
9228         * lib/unigbrk/u32-grapheme-breaks.c: New file.
9229         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
9230
9231         New module 'ulc-grapheme-breaks'.
9232         * modules/unigbrk/ulc-grapheme-breaks: New file.
9233         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
9234         * m4/locale-ar.m4: New file.
9235         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
9236         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
9237         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
9238
9239 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
9240
9241         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
9242         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
9243         modified how this file was generated before I initially submitted
9244         the module, but failed to regenerate it.  This meant that several
9245         of the level2 entries were wrong.
9246         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
9247         Remove the division-by-2 that is folded into the table now that
9248         gbrkprop.h has been regenerated properly.  Now -1 entries are
9249         handled correctly.
9250
9251         New module 'unigbrk/uc-gbrk-prop-tests'.
9252         * modules/unigbrk/uc-gbrk-prop-tests: New file.
9253         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
9254         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
9255         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
9256
9257 2011-01-01  Bruno Haible  <bruno@clisp.org>
9258
9259         Avoid use of hexadecimal escapes.
9260         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
9261         instead of hexadecimal escapes.
9262
9263 2011-01-01  Jim Meyering  <meyering@redhat.com>
9264
9265         maint: new rule to update copyright year ranges
9266         * Makefile (update-copyright): New rule.
9267
9268         maint: indent with TABs in Makefile
9269         * Makefile: Expand leading sequences of spaces to TABs
9270
9271         version-etc: update the copyright year it reports
9272         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
9273
9274 2010-12-31  Bruno Haible  <bruno@clisp.org>
9275
9276         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
9277         * lib/isfinite.c (zerof, zerod, zerol): New variables.
9278         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
9279         zero.
9280
9281 2010-12-31  Bruno Haible  <bruno@clisp.org>
9282
9283         pwrite: Work around HP-UX 11.11 bug.
9284         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
9285         works and set REPLACE_PWRITE if not.
9286         * lib/pwrite.c (pwrite): Add an implementation that uses the system
9287         function.
9288         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
9289
9290 2010-12-31  Bruno Haible  <bruno@clisp.org>
9291
9292         pread: Work around HP-UX 11 bugs.
9293         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
9294         and set REPLACE_PREAD if not.
9295         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
9296
9297 2010-12-31  Eric Blake  <eblake@redhat.com>
9298
9299         nl_langinfo: fix YESEXPR on Irix 6.5
9300         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
9301         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
9302         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
9303         it.
9304
9305 2010-12-31  Bruno Haible  <bruno@clisp.org>
9306
9307         iconv: Document HP-UX 11 bug.
9308         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
9309
9310 2010-12-31  Bruno Haible  <bruno@clisp.org>
9311
9312         ldexpl: Fix link error on HP-UX 11.
9313         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
9314         LDEXPL_LIBM, using $ISNANL_LIBM.
9315
9316 2010-12-31  Eric Blake  <eblake@redhat.com>
9317
9318         ftello: avoid compilation failure with SunStudio c89
9319         * lib/ftello.c (ftello): Use lseek, not llseek.
9320
9321         tests: avoid failing coreutils tests on cygwin
9322         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
9323         (create_exe_shims_): Return 0 when skipping.
9324
9325 2010-12-31  Bruno Haible  <bruno@clisp.org>
9326
9327         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
9328         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
9329
9330 2010-12-31  Bruno Haible  <bruno@clisp.org>
9331
9332         waitpid: Fix link error in C++ mode.
9333         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
9334
9335 2010-12-31  Bruno Haible  <bruno@clisp.org>
9336
9337         isnan: Use GCC built-ins when possible.
9338         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
9339         __builtin_isnan.
9340         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
9341         (isnan): Define using GCC built-ins for GCC >= 4.0.
9342
9343 2010-12-31  Bruno Haible  <bruno@clisp.org>
9344
9345         isnand: Fix mistake.
9346         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
9347         __builtin_isnand.
9348
9349 2010-12-31  Bruno Haible  <bruno@clisp.org>
9350
9351         open: Avoid C++ error on HP-UX 11.
9352         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
9353
9354 2010-12-31  Bruno Haible  <bruno@clisp.org>
9355
9356         time_r: Add missing declarations on HP-UX 11.
9357         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
9358         instead of HAVE_LOCALTIME_R.
9359         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
9360         HAVE_LOCALTIME_R always.
9361         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
9362         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
9363         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
9364         HAVE_LOCALTIME_R.
9365         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
9366         * doc/posix-functions/localtime_r.texi: Likewise.
9367
9368 2010-12-29  Eric Blake  <eblake@redhat.com>
9369
9370         mountlist: tweak previous commit
9371         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
9372         Reported by Paul Eggert.
9373
9374         mountlist: fix local drive detection on cygwin
9375         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
9376         that works for cygwin.
9377
9378 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
9379
9380         ftoastr, snprintf: ftoastr + snprintf module
9381         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
9382         since the snprintf module now should be good enough here.
9383         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
9384         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
9385         and gl_MODULE_INDICATOR([snprintf]), but the former enables
9386         GNULIB_SNPRINTF only for the test directory, and the latter
9387         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
9388         seems to suffice by itself.
9389
9390 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
9391
9392         alloca: one step towards thread-safety
9393         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
9394         need for a static variable.  All callers changed.  This does not
9395         make the alloca replacement thread-safe, but it's one step.
9396
9397         tests: minor indenting change
9398         * tests/init.sh: Sync from coreutils housekeeping patch
9399         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
9400         to keep lines within 80 columns.
9401
9402 2010-12-28  Jim Meyering  <meyering@redhat.com>
9403
9404         regex: don't infloop on persistent failing calloc
9405         * lib/regexec.c (build_trtable): Return failure indication upon
9406         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
9407         In glibc, this was fixed for version 2.13:
9408         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
9409
9410 2010-12-28  Bruno Haible  <bruno@clisp.org>
9411             Paul Eggert <eggert@cs.ucla.edu>
9412
9413         linkat: Make implementation robust against system behaviour variations.
9414         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
9415         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
9416         way, and to -2 if it needs a generic runtime test.
9417         * lib/linkat.c (solaris_optimized_link_immediate,
9418         solaris_optimized_link_follow): New functions.
9419         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
9420         (check_same_link): Use it.
9421
9422 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
9423
9424         New module 'unigbrk/base'.
9425         * modules/unigbrk/base: New file.
9426         * lib/unigbrk.in.h: New file.
9427
9428         New module 'unigbrk/uc-gbrk-prop'.
9429         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
9430         * modules/unigbrk/uc-gbrk-prop: New file.
9431         * lib/unigbrk/gbrkprop.h: New file.
9432         * lib/unigbrk/uc-gbrk-prop.c: New file.
9433
9434         New module 'unigbrk/uc-is-grapheme-break'.
9435         * modules/unigbrk/uc-is-grapheme-break: New file.
9436         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
9437         * lib/unigbrk/uc-is-grapheme-break.c: New file.
9438         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
9439         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
9440         * tests/unigbrk/GraphemeBreakTest.txt: New file.
9441
9442         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
9443
9444 2010-12-27  Bruno Haible  <bruno@clisp.org>
9445
9446         linkat test: Avoid failure on Solaris 11 2010-11.
9447         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
9448
9449 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
9450
9451         utimens: work around glibc rounding bug on more platforms
9452         * lib/utimens.c (fdutimens): Work around rounding bug even if
9453         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
9454         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
9455
9456 2010-12-27  Bruno Haible  <bruno@clisp.org>
9457
9458         select tests: Improve comments.
9459         * tests/test-select.c (do_select): Add comments.
9460
9461 2010-12-27  Bruno Haible  <bruno@clisp.org>
9462
9463         select tests: Safer way of handling timeout.
9464         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
9465         at every invocation.
9466
9467 2010-12-27  Bruno Haible  <bruno@clisp.org>
9468
9469         select tests: Use 'bool' where appropriate.
9470         * tests/test-select.c (connect_to_socket): Change argument type to
9471         'bool'.
9472
9473 2010-12-27  Bruno Haible  <bruno@clisp.org>
9474
9475         select tests: Use existing modules.
9476         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
9477         (configure.ac): Don't test for unistd.h.
9478         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
9479         declared in <unistd.h>.
9480
9481 2010-12-27  Bruno Haible  <bruno@clisp.org>
9482
9483         mbrtowc: Work around a Solaris 7 bug.
9484         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
9485         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
9486         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
9487         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
9488         MBRTOWC_NULL_ARG1_BUG.
9489         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
9490         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
9491         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
9492         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
9493
9494 2010-12-27  Jim Meyering  <meyering@redhat.com>
9495
9496         read-file.c: tweak syntax
9497         * lib/read-file.c (fread_file): Remove space after "*" in function
9498         definitions.
9499
9500 2010-12-27  Bruno Haible  <bruno@clisp.org>
9501
9502         times test: Avoid gcc warnings on OSF/1.
9503         * tests/test-times.c (main): Cast printf arguments from clock_t to
9504         'long int'.
9505
9506 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
9507
9508         utimens: work around glibc rounding bug on older Linux kernels
9509         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
9510         on Linux with a glibc whose utimes might not work, then work
9511         around a longstanding glibc bug involving rounding rather than
9512         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
9513         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
9514
9515 2010-12-26  Bruno Haible  <bruno@clisp.org>
9516
9517         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
9518         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
9519         _GL_CXXALIAS_SYS.
9520         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9521
9522 2010-12-26  Bruno Haible  <bruno@clisp.org>
9523
9524         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
9525         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
9526         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
9527         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
9528         looking for the declaration.
9529         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
9530         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
9531         problem.
9532         * doc/posix-functions/inet_pton.texi: Likewise.
9533
9534 2010-12-26  Bruno Haible  <bruno@clisp.org>
9535
9536         arpa_inet: Use the common idioms with C++ support.
9537         * lib/arpa_inet.in.h: Include c++defs.h.
9538         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
9539         support.
9540         * modules/arpa_inet (Depends-on): Add c++defs.
9541         (Makefile.am): Substitute the contents of c++defs.h.
9542         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
9543         * modules/arpa_inet-c++-tests: New file.
9544         * tests/test-arpa_inet-c++.cc: New file.
9545
9546 2010-12-25  Bruno Haible  <bruno@clisp.org>
9547
9548         Fix more C++ link errors on Solaris 8.
9549         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
9550         $(LIB_EACCESS).
9551         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
9552         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
9553         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
9554         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
9555         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
9556
9557 2010-12-25  Bruno Haible  <bruno@clisp.org>
9558
9559         printf-posix: Fix link error when a non-GCC compiler is used.
9560         * lib/stdio.in.h (printf): When not using GCC, override printf
9561         correctly.
9562         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9563
9564 2010-12-25  Bruno Haible  <bruno@clisp.org>
9565
9566         strerror_r-posix: Update doc.
9567         * doc/posix-functions/strerror_r.texi: Update doc about the return
9568         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
9569
9570 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
9571
9572         utimens: simplify the logic of the previous change
9573         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
9574         This should not affect whether the test succeeds or fails.
9575
9576         utimens: configure better on hosts with NFS clock skew
9577         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
9578         uses the clock of the local host.  It might use the clock of the
9579         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
9580         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
9581
9582 2010-12-25  Bruno Haible  <bruno@clisp.org>
9583
9584         ptsname test: Avoid failure on Solaris.
9585         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
9586         open a pseudo-terminal; don't use BSD-style ptys.
9587         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
9588
9589 2010-12-25  Bruno Haible  <bruno@clisp.org>
9590
9591         ptsname: Avoid ERANGE failure on some systems.
9592         * lib/ptsname.c (buffer): Increase size.
9593
9594 2010-12-25  Bruno Haible  <bruno@clisp.org>
9595
9596         rename, renameat: Avoid test failures at NFS mounted locations.
9597         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
9598         so that subsequent mkdir calls succeed.
9599
9600 2010-12-25  Bruno Haible  <bruno@clisp.org>
9601
9602         iswblank: Fix C++ link error on Solaris 8.
9603         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
9604         _GL_FUNCDECL_SYS.
9605
9606 2010-12-25  Bruno Haible  <bruno@clisp.org>
9607
9608         unistd: Fix C++ link error on Solaris 8.
9609         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
9610
9611 2010-12-25  Bruno Haible  <bruno@clisp.org>
9612
9613         readlink doc: Mention an old glibc bug.
9614         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
9615
9616 2010-12-25  Bruno Haible  <bruno@clisp.org>
9617
9618         fcntl-h: Fix for use of C++ on glibc systems.
9619         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
9620         also on glibc systems in C++ mode.
9621         Reported by Gary V. Vaughan <gary@gnu.org>.
9622
9623 2010-12-25  Bruno Haible  <bruno@clisp.org>
9624
9625         roundl-ieee: Make it work on OSF/1 5.1 with cc.
9626         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
9627
9628 2010-12-25  Bruno Haible  <bruno@clisp.org>
9629
9630         truncl-ieee: Make it work on OSF/1 5.1 with cc.
9631         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
9632         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
9633         test whether truncl works according to ISO C 99 with IEC 60559.
9634         * m4/truncl-ieee.m4: New file.
9635         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
9636         m4/signbit.m4.
9637         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
9638
9639 2010-12-25  Bruno Haible  <bruno@clisp.org>
9640
9641         ceill-ieee: Make it work on OSF/1 5.1 with cc.
9642         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
9643         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
9644         test whether ceill works according to ISO C 99 with IEC 60559.
9645         * m4/ceill-ieee.m4: New file.
9646         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
9647         m4/signbit.m4.
9648         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
9649
9650 2010-12-25  Bruno Haible  <bruno@clisp.org>
9651
9652         Ensure all prerequisites of <wchar.h> are included.
9653         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
9654         before <wchar.h>.
9655         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
9656         gl_MBRLEN_NUL_RETVAL): Likewise.
9657         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
9658         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
9659         AC_FUNC_MBRTOWC): Likewise.
9660         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
9661         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
9662         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
9663         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
9664         Likewise.
9665         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
9666         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
9667         (gl_WCHAR_H): Improve comments.
9668         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
9669
9670 2010-12-25  Bruno Haible  <bruno@clisp.org>
9671
9672         strtok_r: Fix C syntax error in autoconf macro.
9673         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
9674         characters in test program.
9675
9676 2010-12-24  Bruno Haible  <bruno@clisp.org>
9677
9678         ceil, trunc, round: Fix gcc warnings.
9679         * lib/ceil.c (MIN): Undefine before redefining.
9680         * lib/trunc.c (MIN): Likewise.
9681         * lib/round.c (MIN): Likewise.
9682         Include <math.h> first.
9683
9684 2010-12-24  Bruno Haible  <bruno@clisp.org>
9685
9686         select tests: Avoid failures on OSF/1 5.1.
9687         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
9688         failure of closing the last socket; it may fail with ECONNRESET.
9689
9690 2010-12-24  Eric Blake  <eblake@redhat.com>
9691
9692         stdint: avoid HP-UX 10.20 preprocessor bug
9693         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
9694         than #if.
9695         * tests/test-floor2.c (main): Likewise.
9696         Reported by Peter O'Gorman.
9697
9698         pipe: make obsoletion transition easier
9699         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
9700         * modules/pipe (Files): Include revived file.
9701         (Include): Drop reference, to mirror getdate's behavior.
9702
9703 2010-12-24  Bruno Haible  <bruno@clisp.org>
9704
9705         sys_socket: Hide mismatch of declarations on NonStop Kernel.
9706         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
9707         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
9708         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9709
9710 2010-12-24  Bruno Haible  <bruno@clisp.org>
9711
9712         gethostname: Ensure declaration on NonStop Kernel.
9713         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
9714         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9715
9716 2010-12-24  Bruno Haible  <bruno@clisp.org>
9717
9718         sys_select: Ensure all necessary types on NonStop Kernel.
9719         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
9720         include <sys/time.h>.
9721         * doc/posix-headers/sys_select.texi: Mention that it's missing on
9722         NonStop Kernel.
9723         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9724
9725 2010-12-24  Bruno Haible  <bruno@clisp.org>
9726
9727         sys_select: Remove unneeded include.
9728         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
9729         have <sys/select.h>.
9730
9731 2010-12-24  Bruno Haible  <bruno@clisp.org>
9732
9733         gethostname: Provide a fallback for HOST_NAME_MAX.
9734         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
9735         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
9736         instead.
9737         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9738
9739 2010-12-24  Bruno Haible  <bruno@clisp.org>
9740
9741         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
9742         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
9743         (SA_RESTART): Likewise.
9744         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9745
9746 2010-12-24  Bruno Haible  <bruno@clisp.org>
9747
9748         signal: Define NSIG.
9749         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
9750         * tests/test-signal.c (nsig): New variable.
9751         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9752
9753 2010-12-24  Bruno Haible  <bruno@clisp.org>
9754
9755         rename, renameat: Avoid test failures on OSF/1 5.1.
9756         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
9757         alternative error codes.
9758         * tests/test-renameat.c (main): Likewise.
9759
9760 2010-12-24  Bruno Haible  <bruno@clisp.org>
9761
9762         *printf: Detect large precisions bug on Solaris 10/SPARC.
9763         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
9764         by Paul Eggert.
9765         * tests/test-snprintf-posix.h (test_function): Add this test code here
9766         too.
9767         * tests/test-sprintf-posix.h (test_function): Likewise.
9768         * tests/test-vasnprintf-posix.c (test_function): Likewise.
9769         * tests/test-vasprintf-posix.c (test_function): Likewise.
9770         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
9771         around by gnulib.
9772         * doc/posix-functions/printf.texi: Likewise.
9773         * doc/posix-functions/snprintf.texi: Likewise.
9774         * doc/posix-functions/sprintf.texi: Likewise.
9775         * doc/posix-functions/vfprintf.texi: Likewise.
9776         * doc/posix-functions/vprintf.texi: Likewise.
9777         * doc/posix-functions/vsnprintf.texi: Likewise.
9778         * doc/posix-functions/vsprintf.texi: Likewise.
9779         * doc/posix-functions/dprintf.texi: Undo last commit.
9780         * doc/posix-functions/vdprintf.texi: Likewise.
9781
9782 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
9783
9784         tests: port test-fdutimensat.c to Solaris 8
9785         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
9786         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
9787         On Solaris 8, it fails with errno == ENOSYS, because there is no
9788         futimens (so it can't use the fd), and there is no lutimens (so it
9789         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
9790
9791         vsnprintf: make more consistent with snprintf; doc fixes
9792
9793         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
9794         the byte count return problem was promoted from the snprintf-posix
9795         to the snprintf module.
9796         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
9797         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
9798         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
9799         * tests/test-snprintf.c (main): Check the byte count returned.
9800         * tests/test-vsnprintf.c (main): Likewise.
9801
9802 2010-12-23  Eric Blake  <eblake@redhat.com>
9803
9804         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
9805         * modules/sigpipe (License): Relax license.
9806
9807 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
9808
9809         doc: document Solaris printf bug with large float precisions
9810         * doc/posix-functions/dprintf.texi (dprintf):
9811         * doc/posix-functions/fprintf.texi (fprintf):
9812         * doc/posix-functions/printf.texi (printf):
9813         * doc/posix-functions/snprintf.texi (snprintf):
9814         * doc/posix-functions/sprintf.texi (sprintf):
9815         * doc/posix-functions/vdprintf.texi (vdprintf):
9816         * doc/posix-functions/vfprintf.texi (vfprintf):
9817         * doc/posix-functions/vprintf.texi (vprintf):
9818         * doc/posix-functions/vsnprintf.texi (vsnprintf):
9819         * doc/posix-functions/vsprintf.texi (vsprintf):
9820         Mention that these functions mishandle large floating point
9821         precisions on Solaris 10.  The same bug is also present in Solaris
9822         8, and I assume earlier.  This causes "cd gnulib-tests; make
9823         check" to fail on Solaris 8 (and I assume, later) when building
9824         the latest coreutils, in test-vasprintf-posix's call to
9825         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
9826         the wide flavors (e.g., wprintf) so this patch just updates the
9827         documentation for the narrow ones.
9828
9829         test-posixtm.c: add two tests
9830         * tests/test-posixtm.c: Add two tests, to highlight the
9831         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
9832         around this bug; this is merely to document it.
9833
9834 2010-12-22  Bruno Haible  <bruno@clisp.org>
9835
9836         getlogin_r: Work around portability problem on OSF/1.
9837         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
9838         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
9839         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
9840         test for a truncated result.
9841         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
9842         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
9843         * modules/getlogin_r (Depends-on): Add memchr.
9844         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
9845
9846 2010-12-22  Bruno Haible  <bruno@clisp.org>
9847
9848         ptsname: Avoid test failure on OSF/1 5.1.
9849         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
9850         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
9851         (same_slave): New function.
9852         (main): Use it to compare ptsname's result with the expected file name.
9853
9854 2010-12-22  Bruno Haible  <bruno@clisp.org>
9855
9856         Port extended stdio modules to HP NonStop Kernel.
9857         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
9858         macros.
9859         * lib/fbufmode.c: Update comments.
9860         * lib/fflush.c: Likewise.
9861         * lib/fpurge.c: Likewise.
9862         * lib/freadable.c: Likewise.
9863         * lib/freadahead.c: Likewise.
9864         * lib/freading.c: Likewise.
9865         * lib/freadptr.c: Likewise.
9866         * lib/freadseek.c: Likewise.
9867         * lib/fseeko.c: Likewise.
9868         * lib/fseterr.c: Likewise.
9869         * lib/fwritable.c: Likewise.
9870         * lib/fwriting.c: Likewise.
9871         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9872
9873 2010-12-22  Bruno Haible  <bruno@clisp.org>
9874
9875         ttyname_r: Work around bug on OSF/1 5.1.
9876         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
9877         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
9878         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
9879         present.
9880         * lib/ttyname_r.c (ttyname_r): Update comments.
9881
9882 2010-12-22  Bruno Haible  <bruno@clisp.org>
9883
9884         round: Implement result sign according to IEEE 754.
9885         * lib/round.c (MIN, MINUS_ZERO): New macros.
9886         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
9887         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
9888         * tests/test-round-ieee.c (main): Likewise.
9889         * tests/test-roundl-ieee.c (main): Likewise.
9890
9891         trunc: Implement result sign according to IEEE 754.
9892         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
9893         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
9894         * tests/test-trunc2.c: Include minus-zero.h.
9895         (MINUS_ZERO): New macro.
9896         (trunc_reference): Keep in sync with lib/trunc.c.
9897         * tests/test-truncf2.c: Include minus-zero.h.
9898         (MINUS_ZERO): New macro.
9899         (truncf_reference): Keep in sync with lib/trunc.c.
9900         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
9901         * tests/test-trunc-ieee.c (main): Likewise.
9902         * tests/test-truncl-ieee.c (main): Likewise.
9903
9904         ceil: Implement result sign according to IEEE 754.
9905         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
9906         (FUNC): Return -0.0 for -1 < x < 0.
9907         * tests/test-ceil2.c: Include minus-zero.h.
9908         (MINUS_ZERO): New macro.
9909         (ceil_reference): Keep in sync with lib/ceil.c.
9910         * tests/test-ceilf2.c: Include minus-zero.h.
9911         (MINUS_ZERO): New macro.
9912         (ceilf_reference): Keep in sync with lib/ceil.c.
9913         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
9914         * tests/test-ceil-ieee.c (main): Likewise.
9915         * tests/test-ceill-ieee.c (main): Likewise.
9916
9917         floor: Implement result sign according to IEEE 754.
9918         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
9919         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
9920         * tests/test-floorf2.c (floorf_reference): Likewise.
9921         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
9922         * tests/test-floor-ieee.c (main): Likewise.
9923         * tests/test-floorl-ieee.c (main): Likewise.
9924
9925 2010-12-22  Bruno Haible  <bruno@clisp.org>
9926
9927         getaddrinfo: Update doc.
9928         * doc/posix-functions/gai_strerror.texi: Return type is also different
9929         on AIX and HP-UX.
9930
9931 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
9932
9933         getaddrinfo, inet_ntop: Update doc for Solaris.
9934         * doc/posix-functions/gai_strerror.texi: Return type is also an
9935         issue on Solaris 9 and earlier.
9936         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
9937         on Solaris 10 and earlier.
9938
9939 2010-12-21  Bruno Haible  <bruno@clisp.org>
9940
9941         New module 'roundl-ieee'.
9942         * modules/roundl-ieee: New file.
9943         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
9944         test whether roundl works according to ISO C 99 with IEC 60559.
9945         * m4/roundl-ieee.m4: New file.
9946         * modules/roundl-ieee-tests: New file.
9947         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
9948         * tests/test-roundl.c (main): Remove signbit tests.
9949         * modules/roundl-tests (Depends-on): Remove signbit.
9950         * doc/posix-functions/roundl.texi: Mention the new module.
9951
9952 2010-12-21  Bruno Haible  <bruno@clisp.org>
9953
9954         New module 'truncl-ieee'.
9955         * modules/truncl-ieee: New file.
9956         * modules/truncl-ieee-tests: New file.
9957         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
9958         * tests/test-truncl.c (main): Remove signbit tests.
9959         * modules/truncl-tests (Depends-on): Remove signbit.
9960         * doc/posix-functions/truncl.texi: Mention the new module.
9961
9962 2010-12-21  Bruno Haible  <bruno@clisp.org>
9963
9964         New module 'ceill-ieee'.
9965         * modules/ceill-ieee: New file.
9966         * modules/ceill-ieee-tests: New file.
9967         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
9968         * tests/test-ceill.c (main): Remove signbit tests.
9969         * modules/ceill-tests (Depends-on): Remove signbit.
9970         * doc/posix-functions/ceill.texi: Mention the new module.
9971
9972 2010-12-21  Bruno Haible  <bruno@clisp.org>
9973
9974         New module 'floorl-ieee'.
9975         * modules/floorl-ieee: New file.
9976         * modules/floorl-ieee-tests: New file.
9977         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
9978         * tests/test-floorl.c (main): Remove signbit tests.
9979         * modules/floorl-tests (Depends-on): Remove signbit.
9980         * doc/posix-functions/floorl.texi: Mention the new module.
9981
9982 2010-12-21  Bruno Haible  <bruno@clisp.org>
9983
9984         New module 'round-ieee'.
9985         * modules/round-ieee: New file.
9986         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
9987         whether round works according to ISO C 99 with IEC 60559.
9988         * m4/round-ieee.m4: New file.
9989         * modules/round-ieee-tests: New file.
9990         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
9991         * tests/test-round1.c (main): Remove signbit tests.
9992         * modules/round-tests (Depends-on): Remove 'signbit'.
9993         * doc/posix-functions/round.texi: Mention the new module.
9994
9995 2010-12-21  Bruno Haible  <bruno@clisp.org>
9996
9997         New module 'trunc-ieee'.
9998         * modules/trunc-ieee: New file.
9999         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
10000         whether trunc works according to ISO C 99 with IEC 60559.
10001         * m4/trunc-ieee.m4: New file.
10002         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
10003         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
10004         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
10005         * modules/trunc-ieee-tests: New file.
10006         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
10007         * tests/test-trunc1.c (main): Remove signbit tests.
10008         * modules/trunc-tests (Depends-on): Remove 'signbit'.
10009         * doc/posix-functions/trunc.texi: Mention the new module.
10010
10011 2010-12-21  Bruno Haible  <bruno@clisp.org>
10012
10013         New module 'ceil-ieee'.
10014         * modules/ceil-ieee: New file.
10015         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
10016         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
10017         ISO C 99 with IEC 60559.
10018         * m4/ceil-ieee.m4: New file.
10019         * modules/ceil (Files): Add lib/ceil.c.
10020         (Depends-on): Add 'float'.
10021         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
10022         * lib/math.in.h (ceil): New declaration.
10023         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
10024         REPLACE_CEIL.
10025         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
10026         * modules/ceil-ieee-tests: New file.
10027         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
10028         * tests/test-math-c++.cc: Check the signature of 'ceil'.
10029         * doc/posix-functions/ceil.texi: Mention the new module.
10030
10031 2010-12-21  Bruno Haible  <bruno@clisp.org>
10032
10033         New module 'floor-ieee'.
10034         * modules/floor-ieee: New file.
10035         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
10036         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
10037         ISO C 99 with IEC 60559.
10038         * m4/floor-ieee.m4: New file.
10039         * modules/floor (Files): Add lib/floor.c.
10040         (Depends-on): Add 'float'.
10041         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
10042         * lib/math.in.h (floor): New declaration.
10043         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
10044         REPLACE_FLOOR.
10045         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
10046         * modules/floor-ieee-tests: New file.
10047         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
10048         * tests/test-math-c++.cc: Check the signature of 'floor'.
10049         * doc/posix-functions/floor.texi: Mention the new module.
10050
10051 2010-12-21  Bruno Haible  <bruno@clisp.org>
10052
10053         New module 'roundf-ieee'.
10054         * modules/roundf-ieee: New file.
10055         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
10056         test whether roundf works according to ISO C 99 with IEC 60559.
10057         * m4/roundf-ieee.m4: New file.
10058         * modules/roundf-ieee-tests: New file.
10059         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
10060         * tests/test-roundf1.c (main): Remove signbit tests.
10061         * modules/roundf-tests (Depends-on): Remove 'signbit'.
10062         * doc/posix-functions/roundf.texi: Mention the new module.
10063
10064 2010-12-21  Bruno Haible  <bruno@clisp.org>
10065
10066         New module 'truncf-ieee'.
10067         * modules/truncf-ieee: New file.
10068         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
10069         test whether truncf works according to ISO C 99 with IEC 60559.
10070         * m4/truncf-ieee.m4: New file.
10071         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
10072         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
10073         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
10074         * modules/truncf-ieee-tests: New file.
10075         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
10076         * tests/test-truncf1.c (main): Remove signbit tests.
10077         * modules/truncf-tests (Depends-on): Remove 'signbit'.
10078         * doc/posix-functions/truncf.texi: Mention the new module.
10079
10080 2010-12-21  Bruno Haible  <bruno@clisp.org>
10081
10082         New module 'ceilf-ieee'.
10083         * modules/ceilf-ieee: New file.
10084         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
10085         test whether ceilf works according to ISO C 99 with IEC 60559.
10086         * m4/ceilf-ieee.m4: New file.
10087         * modules/ceilf-ieee-tests: New file.
10088         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
10089         * tests/test-ceilf1.c (main): Remove signbit tests.
10090         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
10091         * doc/posix-functions/ceilf.texi: Mention the new module.
10092
10093 2010-12-21  Bruno Haible  <bruno@clisp.org>
10094
10095         New module 'floorf-ieee'.
10096         * modules/floorf-ieee: New file.
10097         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
10098         test whether floorf works according to ISO C 99 with IEC 60559.
10099         * m4/floorf-ieee.m4: New file.
10100         * modules/floorf-ieee-tests: New file.
10101         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
10102         * tests/test-floorf1.c (main): Remove signbit tests.
10103         * modules/floorf-tests (Depends-on): Remove 'signbit'.
10104         * doc/posix-functions/floorf.texi: Mention the new module.
10105
10106 2010-12-21  Bruno Haible  <bruno@clisp.org>
10107
10108         Support for minus zero in autoconf macros.
10109         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
10110         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
10111         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
10112         * tests/minus-zero.h: Update comments.
10113
10114 2010-12-21  Bruno Haible  <bruno@clisp.org>
10115
10116         Tests for module 'ceil'.
10117         * modules/ceil-tests: New file.
10118         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
10119         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
10120
10121 2010-12-21  Bruno Haible  <bruno@clisp.org>
10122
10123         Tests for module 'floor'.
10124         * modules/floor-tests: New file.
10125         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
10126         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
10127
10128 2010-12-21  Bruno Haible  <bruno@clisp.org>
10129
10130         math: Fix indentation.
10131         * lib/math.in.h (floorf): Fix indentation.
10132
10133 2010-12-21  Bruno Haible  <bruno@clisp.org>
10134
10135         Fix cross-compilation guesses on Solaris.
10136         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
10137         not match "solaris2.10".
10138         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
10139         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
10140         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
10141
10142 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
10143
10144         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
10145         This fixes a problem observed with the latest coreutils snapshot
10146         that caused a test to fail on Solaris 8.  src/csplit.c's call
10147         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
10148         earlier, instead of returning the number of bytes that would have
10149         been generated; this causes csplit to incorrectly report memory
10150         exhaustion.
10151         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
10152         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
10153         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
10154         comments to match.
10155         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
10156         Fix typo in matching older versions of Solaris: "solaris2.10"
10157         is matched by the shell pattern "solaris2.[0-9]*".  This matters
10158         only for guessing while cross-compiling.
10159         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
10160
10161 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
10162
10163         ftoastr: fix comment again
10164         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
10165         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
10166         Also, simplify example a bit by using flags = 0.
10167
10168 2010-12-20  Bruno Haible  <bruno@clisp.org>
10169
10170         round*, trunc*: Update documentation regarding glibc.
10171         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
10172         * doc/posix-functions/round.texi: Likewise.
10173         * doc/posix-functions/roundl.texi: Likewise.
10174         * doc/posix-functions/truncf.texi: Likewise.
10175         * doc/posix-functions/trunc.texi: Likewise.
10176         * doc/posix-functions/truncl.texi: Likewise.
10177
10178 2010-12-20  Bruno Haible  <bruno@clisp.org>
10179
10180         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
10181         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
10182         * doc/posix-functions/round.texi: Likewise.
10183         * doc/posix-functions/roundl.texi: Likewise.
10184
10185 2010-12-20  Bruno Haible  <bruno@clisp.org>
10186
10187         ttyname_r: Add missing declaration on HP-UX 11.
10188         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
10189         HAVE_TTYNAME_R.
10190         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
10191         declared. Set HAVE_TTYNAME_R always.
10192         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10193         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
10194         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
10195         HAVE_TTYNAME_R.
10196         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
10197
10198 2010-12-20  Bruno Haible  <bruno@clisp.org>
10199
10200         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
10201         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
10202         * doc/posix-functions/getlogin_r.texi: Likewise.
10203         * tests/test-getlogin.c: Include <errno.h>.
10204         (main): Avoid test failure on HP-UX 11.11.
10205         * tests/test-getlogin_r.c (main): Likewise.
10206
10207 2010-12-20  Bruno Haible  <bruno@clisp.org>
10208
10209         getlogin_r: Add missing declaration on HP-UX 11.
10210         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
10211         declared also when it exists as a function.
10212         * doc/posix-functions/getlogin_r.texi: Document this workaround.
10213
10214 2010-12-20  Bruno Haible  <bruno@clisp.org>
10215
10216         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
10217         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
10218         through wcrtomb.
10219
10220 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
10221
10222         ftoastr: fix comment
10223         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
10224         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
10225
10226 2010-12-19  Bruno Haible  <bruno@clisp.org>
10227
10228         isnan: Ensure it is a macro.
10229         * lib/math.in.h (isnan): Define as a macro if not already a macro.
10230         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
10231         Solaris.
10232
10233 2010-12-19  Bruno Haible  <bruno@clisp.org>
10234
10235         ldexpl test: Fix link error on OSF/1 5.1.
10236         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
10237
10238 2010-12-19  Bruno Haible  <bruno@clisp.org>
10239
10240         wctype: Make it work in C++ mode on OSF/1 5.1.
10241         * lib/wctype.in.h (iswblank): Declare but not define here.
10242         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
10243         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
10244         * modules/wctype (Files): Add lib/iswblank.c.
10245
10246 2010-12-19  Bruno Haible  <bruno@clisp.org>
10247
10248         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
10249         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
10250         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
10251
10252 2010-12-19  Bruno Haible  <bruno@clisp.org>
10253
10254         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
10255         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
10256         _POSIX_PII_SOCKET.
10257         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
10258         * doc/posix-functions/recvfrom.texi: Likewise.
10259         * doc/posix-functions/send.texi: Likewise.
10260         * doc/posix-functions/sendto.texi: Likewise.
10261
10262 2010-12-19  Bruno Haible  <bruno@clisp.org>
10263
10264         tcgetsid: Add missing declaration on OSF/1 5.1.
10265         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
10266         HAVE_TCGETSID.
10267         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
10268         Don't set HAVE_TCGETSID.
10269         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
10270         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
10271         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
10272         HAVE_TCGETSID.
10273         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
10274
10275 2010-12-19  Bruno Haible  <bruno@clisp.org>
10276
10277         stdio: Fix problem with popen() declaration on OSF/1 5.1.
10278         * lib/stdio.in.h: During the include_next statement, let recursive
10279         includes of this file include only the system header file.
10280
10281 2010-12-19  Bruno Haible  <bruno@clisp.org>
10282
10283         iconv_open: Fix regression from 2010-12-04.
10284         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
10285         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
10286
10287 2010-12-19  Bruno Haible  <bruno@clisp.org>
10288
10289         stdbool test: Avoid a gcc warning.
10290         * tests/test-stdbool.c (main): Fail if e1 is false.
10291         Reported by Jim Meyering.
10292
10293 2010-12-19  Jim Meyering  <meyering@redhat.com>
10294
10295         setenv: restore to working order
10296         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
10297         mistakenly removed.
10298         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
10299         HAVE_SETENV.
10300         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
10301         HAVE_SETENV.
10302
10303 2010-12-19  Bruno Haible  <bruno@clisp.org>
10304
10305         Document some different function declarations on OSF/1 5.1.
10306         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
10307         * doc/posix-functions/inet_ntop.texi: Likewise.
10308         * doc/posix-functions/gethostname.texi: Likewise.
10309         * lib/unistd.in.h (gethostname): Update comment.
10310
10311 2010-12-19  Bruno Haible  <bruno@clisp.org>
10312
10313         doc: Mention vasprintf-posix module.
10314         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
10315         the 'vasprintf-posix' module.
10316         * doc/glibc-functions/vasprintf.texi: Likewise.
10317
10318 2010-12-19  Bruno Haible  <bruno@clisp.org>
10319
10320         unsetenv: Add missing declaration on OSF/1 5.1.
10321         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
10322         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
10323         Don't set HAVE_UNSETENV. In the test program, set _BSD.
10324         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
10325         not HAVE_UNSETENV.
10326         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
10327         HAVE_UNSETENV.
10328         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
10329
10330 2010-12-19  Bruno Haible  <bruno@clisp.org>
10331
10332         setenv: Add missing declaration on OSF/1 5.1.
10333         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
10334         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
10335         declared. Don't set HAVE_SETENV.
10336         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
10337         not HAVE_SETENV.
10338         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
10339         HAVE_SETENV.
10340         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
10341
10342 2010-12-19  Bruno Haible  <bruno@clisp.org>
10343
10344         nl_langinfo tests: Avoid gcc warning.
10345         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
10346
10347 2010-12-19  Bruno Haible  <bruno@clisp.org>
10348
10349         mknod: Avoid error in C++ mode on OSF/1 with GCC.
10350         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
10351         _GL_CXXALIAS_SYS.
10352
10353 2010-12-19  Bruno Haible  <bruno@clisp.org>
10354
10355         stdbool: Relax test.
10356         * tests/test-stdbool.c (e): Don't require that casts from a variable's
10357         address to 'bool' work in static initializer, for compilers other than
10358         GCC.
10359
10360 2010-12-19  Bruno Haible  <bruno@clisp.org>
10361
10362         ftello: Add missing declaration on OSF/1 5.1.
10363         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
10364         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
10365         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
10366         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
10367         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
10368
10369 2010-12-19  Bruno Haible  <bruno@clisp.org>
10370
10371         fseeko: Add missing declaration on OSF/1 5.1.
10372         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
10373         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
10374         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
10375         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
10376         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
10377
10378 2010-12-19  Bruno Haible  <bruno@clisp.org>
10379
10380         fchdir: Add missing declaration on OSF/1 5.1.
10381         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
10382         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
10383         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
10384         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
10385         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
10386
10387 2010-12-19  Bruno Haible  <bruno@clisp.org>
10388
10389         relocatable-prog-wrapper: Separate from relocatable-prog.
10390         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
10391         uninstall-relocwrapper rule here.
10392         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
10393         Reported by Ian Beckwith <ianb@erislabs.net>.
10394
10395 2010-12-19  Bruno Haible  <bruno@clisp.org>
10396
10397         unistr/u8-mbsnlen: Add missing dependency.
10398         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
10399         Reported by Ian Beckwith <ianb@erislabs.net>.
10400
10401 2010-12-19  Bruno Haible  <bruno@clisp.org>
10402
10403         iconv: Make it possible again to use this module without 'iconv-h'.
10404         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
10405         if it is not defined.
10406         Reported by Ian Beckwith <ianb@erislabs.net>.
10407
10408 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
10409
10410         acl: port to Solaris 8 when copying from tmpfs to ufs
10411         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
10412         error number.  Problem observed on Solaris 8 with latest
10413         coreutils, with "mv A B", where A is on a tmpfs file system and B
10414         is on a ufs file system.  This caused coreutils' mv/part-symlink
10415         test to fail.
10416
10417         tests: set fail=0 at start
10418         * tests/init.sh (setup_): Move fail=0 initialization here ...
10419         (mktempd_): ... from here, so that tests can rely on fail being
10420         set to 0 initially.  This fixes a problem in coreutils; see:
10421         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
10422
10423 2010-12-18  Bruno Haible  <bruno@clisp.org>
10424
10425         memmem-simple: Stylistic changes.
10426         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
10427         Fix preprocessor directive indentation.
10428
10429 2010-12-15  Pádraig Brady <P@draigBrady.com>
10430
10431         memmem, memmem-simple: reorganize and expand empty needle check
10432         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
10433         functional checks to memmem-simple so that one has a fully functional
10434         memmem by using just this module.
10435         Restrict the performance only check to the memmem module.
10436         Also expand the empty needle check to ensure the correct
10437         pointer is returned, not just a non NULL pointer.
10438         * doc/glibc-functions/memmem.texi: Rearrange the portability
10439         documentation to correlate with the rearranged checks.
10440         Clarify exactly how the memmem and memmem-simple modules
10441         relate to each other.
10442
10443 2010-12-15  Pádraig Brady <P@draigBrady.com>
10444             Bruno Haible  <bruno@clisp.org>
10445
10446         Improve cross-compilation guesses for uClibc.
10447         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
10448         that uClibc does not have the glibc bug.
10449         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
10450         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
10451
10452 2010-12-14  Eric Blake  <eblake@redhat.com>
10453
10454         configmake: provide fallbacks for oldest supported autotools
10455         * m4/configmake.m4: New file.
10456         * modules/configmake (Files): Ship it.
10457         (configure.ac): Use it to guarantee fallbacks.
10458
10459 2010-12-13  Pádraig Brady <P@draigBrady.com>
10460
10461         read-file: Improve handling of large files
10462         * lib/read-file.c (fread_file): Minimize realloc()s
10463         for regular files, and better manage sizes around SIZE_MAX.
10464
10465 2010-12-13  Eric Blake  <eblake@redhat.com>
10466
10467         cloexec, fcntl: relax license
10468         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
10469         consent from all contributors.
10470         * modules/fcntl (License): Likewise.
10471
10472 2010-12-10  Bruno Haible  <bruno@clisp.org>
10473
10474         Tests for module 'pipe-posix'.
10475         * modules/pipe-posix-tests: New file.
10476         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
10477
10478 2010-12-10  Bruno Haible  <bruno@clisp.org>
10479
10480         pipe-posix: Make it work in C++ mode.
10481         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
10482         (pipe): Use common idiom, not a macro definition.
10483         * lib/pipe.c: New file.
10484         * m4/pipe.m4: New file.
10485         * modules/pipe-posix (Description): Enhance.
10486         (Files): Add lib/pipe.c, m4/pipe.m4.
10487         (configure.ac): Invoke gl_FUNC_PIPE.
10488         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
10489         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
10490         * tests/test-unistd-c++.cc: Check the signature of pipe.
10491
10492 2010-12-10  Bruno Haible  <bruno@clisp.org>
10493
10494         Rename module 'pipe' to 'spawn-pipe'.
10495         * modules/spawn-pipe: New file, renamed from modules/pipe.
10496         (Files, configure.ac, Makefile.am): Update.
10497         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
10498         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
10499         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
10500         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
10501         "spawn-pipe.h" instead of "pipe.h".
10502         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
10503         to gl_SPAWN_PIPE.
10504         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
10505         (Files, Makefile.am): Update.
10506         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
10507         Update.
10508         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
10509         Include "spawn-pipe.h" instead of "pipe.h".
10510         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
10511         * lib/javacomp.c: Likewise.
10512         * lib/javaversion.c: Likewise.
10513         * lib/pipe-filter-gi.c: Likewise.
10514         * lib/pipe-filter-ii.c: Likewise.
10515         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
10516         * modules/javacomp (Depends-on): Likewise.
10517         * modules/javaversion (Depends-on): Likewise.
10518         * modules/pipe-filter-gi (Depends-on): Likewise.
10519         * modules/pipe-filter-ii (Depends-on): Likewise.
10520         * MODULES.html.sh (Executing programs): Update.
10521         * NEWS: Mention the change.
10522
10523 2010-12-10  Eric Blake  <eblake@redhat.com>
10524
10525         pipe-posix: new module
10526         * modules/pipe-posix: New file.
10527         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
10528         (gl_UNISTD_H): Check for declaration.
10529         * modules/unistd (Makefile.am): Substitute it.
10530         * lib/unistd.in.h (pipe): Provide it for mingw.
10531         * doc/posix-functions/pipe.texi (pipe): Update documentation.
10532         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
10533
10534 2010-12-07  Bruno Haible  <bruno@clisp.org>
10535
10536         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
10537         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
10538         u8_strcmp_gnu.
10539         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
10540
10541 2010-12-06  Bruno Haible  <bruno@clisp.org>
10542
10543         Update internal documentation.
10544         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
10545
10546 2010-12-04  Bruno Haible  <bruno@clisp.org>
10547
10548         Put more information about failed tests into the test return codes.
10549         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
10550         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
10551         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
10552         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
10553         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
10554         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
10555         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10556         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
10557         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
10558         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
10559         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
10560         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
10561         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
10562         * m4/stdint.m4 (gl_STDINT_H): Likewise.
10563         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
10564         returns a bit mask.
10565         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
10566         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
10567         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
10568         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
10569         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
10570         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
10571         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
10572         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
10573         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
10574         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
10575         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
10576         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
10577         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
10578         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
10579         * m4/link.m4 (gl_FUNC_LINK): Likewise.
10580         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
10581         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
10582         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
10583         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
10584         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
10585         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
10586         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
10587         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
10588         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
10589         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
10590         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
10591         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
10592         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
10593         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
10594         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
10595         gl_PRINTF_PRECISION): Likewise.
10596         * m4/regex.m4 (gl_REGEX): Likewise.
10597         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
10598         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
10599         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
10600         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
10601         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
10602         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
10603         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
10604         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
10605         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
10606         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
10607         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
10608         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
10609         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
10610         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
10611         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
10612         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
10613         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
10614         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
10615         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10616         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
10617         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
10618         enumerated value.
10619         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
10620
10621 2010-12-04  Bruno Haible  <bruno@clisp.org>
10622
10623         Update for Solaris 11 2010-11.
10624         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
10625         Express, released in November 2010.
10626
10627 2010-12-04  Bruno Haible  <bruno@clisp.org>
10628
10629         nproc: Relax license.
10630         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
10631         and Paul Eggert.
10632         Requested by Ludovic Courtès <ludo@gnu.org>.
10633
10634 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
10635
10636         utimecmp: fine-grained src to nearby coarse-grained dest
10637
10638         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
10639         and the source is on a file system with higher-resolution time
10640         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
10641         not work, and the time stamps are close together, the algorithm to
10642         determine the exact resolution from the read-back mtime was buggy:
10643         it had a "!=" where it should have had an "==".  This bug has been
10644         in the code ever since it was introduced to gnulib.
10645         Problem reported by Dan Jacobson in
10646         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
10647
10648 2010-11-30  Bruno Haible  <bruno@clisp.org>
10649
10650         strerror_r-posix: Fix autoconf test.
10651         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
10652
10653 2010-11-28  Bruno Haible  <bruno@clisp.org>
10654             Paul Eggert  <eggert@cs.ucla.edu>
10655
10656         Tests for module 'getdomainname'.
10657         * modules/getdomainname-tests: New file.
10658         * tests/test-getdomainname.c: New file, based on
10659         tests/test-gethostname.c.
10660
10661 2010-11-28  Bruno Haible  <bruno@clisp.org>
10662             Paul Eggert  <eggert@cs.ucla.edu>
10663
10664         getdomainname: Use the system function when possible.
10665         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
10666         (getdomainname): Replace if needed. Provide the declaration if it is
10667         missing. Don't use _GL_CXXALIAS_SYS_CAST.
10668         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
10669         (getdomainname): When the system has getdomainname, call the system
10670         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
10671         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
10672         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
10673         found in libnsl. Look for the declaration also in <netdb.h>. Replace
10674         the function if its second argument is of type 'int' or if it is found
10675         in libnsl.
10676         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
10677         <sys/systeminfo.h> and sysinfo().
10678         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
10679         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10680         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
10681         HAVE_GETDOMAINNAME.
10682         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
10683         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
10684         * doc/glibc-functions/getdomainname.texi: Document the problems with
10685         the getdomainname declaration.
10686
10687 2010-11-28  Bruno Haible  <bruno@clisp.org>
10688
10689         sys_socket: Ensure ss_family field on AIX.
10690         * lib/sys_socket.in.h (ss_family): New macro definition.
10691         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
10692         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
10693         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
10694         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
10695         * modules/sys_socket (Makefile.am): Substitute
10696         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
10697         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
10698
10699 2010-11-27  Bruno Haible  <bruno@clisp.org>
10700
10701         readline: Improve configure output.
10702         * m4/readline.m4 (gl_FUNC_READLINE): Make the
10703         "checking for readline..." result understandable.
10704
10705 2010-11-27  Bruno Haible  <bruno@clisp.org>
10706
10707         *printf-posix: Detect a bug on Solaris 10/x86.
10708         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
10709         for floating-point output.
10710         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
10711         directive.
10712         * tests/test-snprintf-posix.h (test_function): Likewise.
10713         * tests/test-sprintf-posix.h (test_function): Likewise.
10714         * tests/test-vasprintf-posix.c (test_function): Likewise.
10715         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
10716         * doc/posix-functions/printf.texi: Likewise.
10717         * doc/posix-functions/snprintf.texi: Likewise.
10718         * doc/posix-functions/sprintf.texi: Likewise.
10719         * doc/posix-functions/vfprintf.texi: Likewise.
10720         * doc/posix-functions/vprintf.texi: Likewise.
10721         * doc/posix-functions/vsnprintf.texi: Likewise.
10722         * doc/posix-functions/vsprintf.texi: Likewise.
10723         * doc/glibc-functions/obstack_printf.texi: Likewise.
10724         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
10725
10726 2010-11-27  Bruno Haible  <bruno@clisp.org>
10727
10728         Fix link error when module libunistring-optional is in use.
10729         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
10730         * modules/striconveha-tests (Makefile.am): Likewise.
10731
10732 2010-11-27  Bruno Haible  <bruno@clisp.org>
10733
10734         regex: Mention link dependencies.
10735         * modules/regex (Link): New section.
10736         * modules/rpmatch (Link): Likewise.
10737         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
10738
10739 2010-11-27  Bruno Haible  <bruno@clisp.org>
10740
10741         ftoastr: Fix compilation error on Solaris.
10742         * lib/ftoastr.c: Include <config.h>.
10743
10744 2010-11-27  Bruno Haible  <bruno@clisp.org>
10745
10746         getloadavg: Update documentation.
10747         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
10748
10749 2010-11-27  Bruno Haible  <bruno@clisp.org>
10750
10751         sys_socket: Fix test whether the functions are declared.
10752         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
10753         not <sys/select.h>.
10754
10755 2010-11-27  Bruno Haible  <bruno@clisp.org>
10756
10757         getpass: Make sure to get system declaration on some platforms.
10758         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
10759         gl_USE_SYSTEM_EXTENSIONS.
10760         * modules/getpass (Depends-on): Add extensions.
10761
10762 2010-11-26  Bruno Haible  <bruno@clisp.org>
10763
10764         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
10765         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
10766         'iconv' module is present.
10767         (ICONV_CONST): New macro.
10768         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
10769         ICONV_CONST.
10770         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
10771         set ICONV_CONST.
10772         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
10773         here.
10774         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
10775         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
10776         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
10777         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
10778         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
10779         present.
10780
10781 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
10782
10783         ftoastr: comment fix
10784         * lib/ftoastr.c: "little" -> "little or no" in comment
10785
10786 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
10787
10788         stdint: port to GCC 4.3 + OSX + Octave
10789         On this platform, stdint.h is buggy and defines int64_t to long
10790         long int.  The replacement defined it to long int, causing
10791         problems with C++ style name mangling.  Instead, trust the system
10792         definition if INT64_MAX is defined, and likewise for the unsigned
10793         variant.   Problem reported by Jarno Rajahalme in
10794         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
10795         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
10796         and don't mess with int64_t and INT64_MAX in this case.
10797         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
10798
10799 2010-11-24  Bruno Haible  <bruno@clisp.org>
10800
10801         doc: Corrections regarding MacOS X 10.4 and 10.5.
10802         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
10803         MacOS X.
10804         Reported by Simon Josefsson.
10805
10806 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
10807
10808         Uninstall ".bin" files installed by relocwrapper.
10809         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
10810         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
10811         unless it is already there.
10812
10813 2010-11-21  Bruno Haible  <bruno@clisp.org>
10814
10815         Update for NetBSD 5.0.
10816         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
10817         NetBSD; the test fails on NetBSD 5.0.
10818         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
10819         about NetBSD.
10820
10821 2010-11-21  Bruno Haible  <bruno@clisp.org>
10822
10823         Update for HP-UX 11.23 and HP-UX 11.31.
10824         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
10825         HP-UX.
10826
10827 2010-11-21  Bruno Haible  <bruno@clisp.org>
10828
10829         Update for MacOS X 10.5.
10830         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
10831         MacOS X; the test fails on MacOS X 10.5.8.
10832         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
10833         about MacOS X.
10834
10835 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
10836
10837         bootstrap: add bootstrap_sync option.
10838         See discussion at
10839         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
10840         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
10841         * build-aux/bootstrap: Accept --bootstrap-sync to update
10842         bootstrap if it is not identical to the local gnulib's
10843         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
10844         enable this by default.  Accept --no-bootstrap-sync to disable
10845         it.
10846
10847 2010-11-20  Bruno Haible  <bruno@clisp.org>
10848
10849         Ensure that <features.h> is included before __GLIBC__ is tested.
10850         * lib/printf-parse.h: Include <features.h>.
10851         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
10852         Reported by Mike Frysinger <vapier@gentoo.org>.
10853
10854         Ensure that <features.h> is included before __GLIBC__ is tested.
10855         * lib/wchar.in.h: Include <features.h>.
10856         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
10857         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
10858         Reported by Mike Frysinger <vapier@gentoo.org>.
10859
10860         Ensure that <features.h> is included before __GLIBC__ is tested.
10861         * lib/arpa_inet.in.h: Include <features.h>.
10862         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
10863         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
10864         Reported by Mike Frysinger <vapier@gentoo.org>.
10865
10866         Ensure that <features.h> is included before __GLIBC__ is tested.
10867         * build-aux/link-warning.h: Include <features.h>.
10868         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
10869         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
10870         Reported by Mike Frysinger <vapier@gentoo.org>.
10871
10872         Ensure that <features.h> is included before __GLIBC__ is tested.
10873         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
10874         Reported by Mike Frysinger <vapier@gentoo.org>.
10875
10876 2010-11-20  Bruno Haible  <bruno@clisp.org>
10877
10878         memmem: Fix autoconf test.
10879         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
10880
10881 2010-11-20  Bruno Haible  <bruno@clisp.org>
10882
10883         Port to uClibc.
10884         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
10885         * lib/fcntl.in.h: Likewise.
10886         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
10887         * lib/mbrtowc.c (mbrtowc): Likewise.
10888         * lib/relocatable.c (find_shared_library_fullname): Likewise.
10889         * lib/strerror_r.c: Likewise.
10890         * lib/unistr/u8-strnlen.c: Likewise.
10891         * lib/vasnprintf.c (decimal_point_char): Likewise.
10892         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
10893         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
10894         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
10895         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
10896         * tests/test-sigaction.c (handler, main): Likewise.
10897         * lib/freading.h: Treat uClibc like a non-glibc platform.
10898         * lib/freading.c: Likewise.
10899         * lib/gettext.h: Likewise.
10900         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
10901         Likewise.
10902         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
10903         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
10904         * lib/propername.c (proper_name_utf8): Likewise.
10905         * lib/spawn.in.h: Likewise.
10906         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
10907         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
10908         mem_cd_iconveh_internal): Likewise.
10909         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
10910         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
10911         strstr, strcasestr): Likewise.
10912         * lib/unicodeio.c (unicode_to_mb): Likewise.
10913         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
10914         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
10915         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
10916         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
10917         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
10918         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
10919         * lib/unistr/u8-stpncpy.c: Likewise.
10920         * lib/vasnprintf.c (VASNPRINTF): Likewise.
10921         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
10922         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
10923         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10924         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
10925         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
10926         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
10927         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
10928         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
10929         Likewise.
10930         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
10931         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
10932         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
10933         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
10934         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
10935         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
10936         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
10937         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
10938         * tests/test-getopt.h (OPTIND_MIN): Likewise.
10939         * tests/test-striconveha.c (main): Likewise.
10940         * tests/test-vasnprintf-posix.c (test_function): Likewise.
10941         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
10942         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
10943         * doc/posix-functions/getline.texi: Likewise.
10944         Reported by Mike Frysinger <vapier@gentoo.org>.
10945
10946 2010-11-20  Bruno Haible  <bruno@clisp.org>
10947
10948         nproc: Fix condition.
10949         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
10950         HAVE_PTHREAD_AFFINITY_NP.
10951
10952 2010-11-20  Bruno Haible  <bruno@clisp.org>
10953
10954         Fix a comment.
10955         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
10956
10957 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
10958
10959         ftoastr: don't assume snprintf
10960         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
10961         Implement a subset of snprintf here, by using sprintf safely.
10962         * modules/ftoastr (Depends-on): Remove snprintf.
10963
10964 2010-11-19  Jim Meyering  <meyering@redhat.com>
10965
10966         test-rename.h: fix compilation failure
10967         * tests/test-rename.h (test_rename): Add omitted "}".
10968
10969 2010-11-17  Jim Meyering  <meyering@redhat.com>
10970
10971         maint.mk: add a URL discussing the no-@acronym policy
10972         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
10973
10974 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
10975
10976         ftoastr: depend on snprintf, improve comments
10977         * lib/ftoastr.c: Also mention Loitsch's draft.
10978         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
10979         needed in the current implementation, but it might simplify
10980         speeding up the code later.
10981         * modules/ftoastr: Depend on snprintf; this improves portability.
10982         Suggested by Bruno Haible in the same email.
10983
10984         ftoastr: port to hosts lacking strtof and strtold
10985         Problem reported by Bruno Haible in
10986         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
10987         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
10988         environment and strtold (and presumably strtof) are not available.
10989         * modules/ftoastr (Files): Add m4/c-strtod.m4.
10990         (configure.ac): Require gl_C99_STRTOLD.
10991
10992 2010-11-18  Bruno Haible  <bruno@clisp.org>
10993
10994         c-strtold: Avoid link error on AIX 7.
10995         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
10996         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
10997         (gl_C_STRTOLD): Test whether strtold_l exists.
10998         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
10999
11000 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
11001
11002         intprops: new macro INT_BITS_STRLEN_BOUND
11003         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
11004         ftoastr.h.  This exposes an internal of intprops.h that was formerly
11005         not exposed.  Also, it uses a slightly tighter bound than before;
11006         though this makes no practical difference, we might as well be as
11007         tight as we easily can.
11008
11009         ftoastr: new module, for lossless conversion of floats to short strings
11010         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
11011         * modules/ftoastr: New files.
11012
11013 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
11014
11015         bootstrap: port to Solaris sed
11016         * build-aux/bootstrap (get_version): Port to Solaris sed.
11017         See Ralf Wildenhues's note in
11018         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
11019
11020 2010-11-14  Jim Meyering  <meyering@redhat.com>
11021
11022         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
11023         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
11024         and move definition closer to sole use.
11025
11026 2010-11-13  Jim Meyering  <meyering@redhat.com>
11027
11028         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
11029         Now we require at least autoconf-2.59, which means the work-around
11030         is no longer needed.
11031         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
11032         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
11033         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
11034         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
11035         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
11036
11037 2010-11-13  Bruno Haible  <bruno@clisp.org>
11038
11039         rename, renameat: Avoid test failures at NFS mounted locations.
11040         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
11041         functions.
11042         (test_rename): Use assert_nonexistent.
11043         * tests/test-rename.c: Include <dirent.h>.
11044         * tests/test-renameat.c: Likewise.
11045         Reported by Gary V. Vaughan <gary@gnu.org>.
11046
11047         rename, renameat: Document Linux bug with NFS
11048         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
11049         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
11050         * doc/posix-functions/renameat.texi: Likewise.
11051         Suggested by Eric Blake.
11052
11053 2010-11-13  Bruno Haible  <bruno@clisp.org>
11054
11055         rename test: Add comments.
11056         * tests/test-rename.h (test_rename): Add structure and comments.
11057
11058 2010-11-13  Eric Blake  <eblake@redhat.com>
11059
11060         maintainer-makefile: cover a few more files
11061         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
11062         scripts generated within C files, for libvirt.
11063
11064 2010-11-13  Bruno Haible  <bruno@clisp.org>
11065
11066         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
11067         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
11068         character, return the number of bytes that belong together, not always
11069         1.
11070         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
11071         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
11072         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
11073         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
11074         number of bytes of an invalid character.
11075         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
11076         (main): Invoke it.
11077         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
11078         results.
11079         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
11080         malformed byte sequences.
11081         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
11082         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
11083         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
11084         Reported by Ben Pfaff and Paolo Bonzini.
11085
11086 2010-11-13  Bruno Haible  <bruno@clisp.org>
11087
11088         openat: Work around glibc bug with fchownat() and empty file names.
11089         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
11090         (gl_FUNC_FCHOWNAT): Invoke it.
11091         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
11092         * doc/posix-functions/fchownat.texi: Document the glibc bug.
11093         Reported by Gary V. Vaughan <gary@gnu.org>.
11094
11095 2010-11-13  Bruno Haible  <bruno@clisp.org>
11096
11097         openat: Ensure autoconf macro ordering.
11098         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
11099         gl_USE_SYSTEM_EXTENSIONS.
11100         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
11101
11102 2010-11-13  Bruno Haible  <bruno@clisp.org>
11103
11104         Update comments.
11105         * lib/unistr/u8-check.c: Update file name in comments.
11106         * lib/unistr/u8-mblen.c: Likewise.
11107         * lib/unistr/u8-prev.c: Likewise.
11108         * lib/unistr/u8-strmblen.c: Likewise.
11109         * lib/unistr/u8-strmbtouc.c: Likewise.
11110
11111 2010-11-13  Jim Meyering  <meyering@redhat.com>
11112
11113         tests: avoid test failure on Solaris 10 due to lack of PATH export
11114         * tests/test-update-copyright.sh: Don't forget to export PATH.
11115
11116         init.sh: ensure that IFS is defined, just in case...
11117         * tests/init.sh (setup_): Ensure that IFS is defined,
11118         so that saving and restoring it works as expected.  This
11119         appears to be useful at least for an old version of dash
11120         from a long time ago (RH 6).  See here for details:
11121         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
11122
11123         maint.mk: tighten "test a == b" check
11124         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
11125         test to files that contain something like #!/bin/sh.
11126         Without this, coreutils would get two false positives in
11127         the comments of C source files.
11128
11129 2010-11-12  Eric Blake  <eblake@redhat.com>
11130
11131         bootstrap: fix typo in previous attempt
11132         * build-aux/bootstrap (buildreq): Correct the grouping.
11133         Reported by Paul Eggert.
11134
11135         maintainer-makefile: prohibit test x == x
11136         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
11137         Based on a report by Matthias Bolte.
11138
11139         bootstrap: allow FreeBSD gzip
11140         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
11141         which has no '.' and goes to stderr.
11142         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
11143         Reported by Matthias Bolte.
11144
11145         maintainer-makefile: check for i18n setup
11146         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
11147         will likely work.
11148
11149 2010-11-12  Bruno Haible  <bruno@clisp.org>
11150
11151         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
11152         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
11153         * lib/nanosleep.c (nanosleep): Likewise.
11154
11155 2010-11-11  Bruno Haible  <bruno@clisp.org>
11156
11157         fcntl-h: Fix for use of C++ on glibc systems.
11158         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
11159         also on glibc systems in C++ mode.
11160         Reported by Gary V. Vaughan <gary@gnu.org>.
11161
11162 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
11163
11164         mknod: avoid false failure with dash
11165         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
11166
11167 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
11168
11169         unlink: Fix "is it should" typo in diagnostic.
11170         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
11171         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
11172
11173 2010-11-11  Bruno Haible  <bruno@clisp.org>
11174
11175         Tests for module 'strerror_r-posix'.
11176         * modules/strerror_r-posix-tests: New file.
11177         * tests/test-strerror_r.c: New file.
11178         * tests/test-string-c++.cc: Check the signature of strerror_r.
11179
11180         New module 'strerror_r-posix'.
11181         * lib/string.in.h (strerror_r): New declaration.
11182         * lib/strerror_r.c: New file.
11183         * m4/strerror_r.m4: New file.
11184         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
11185         of strerror_r.
11186         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
11187         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
11188         * modules/strerror_r-posix: New file.
11189         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
11190         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
11191         * doc/posix-functions/strerror_r.texi: Mention the new module and the
11192         portability problems.
11193
11194 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
11195
11196         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
11197         line is also considered for output. Quoted function name in shell
11198         command, so temporary files for functions like MyClass::operator()
11199         are removed correctly without errors.
11200
11201 2010-11-09  Bruno Haible  <bruno@clisp.org>
11202
11203         * doc/posix-functions/strerror.texi: List more failing platforms.
11204
11205         * doc/posix-functions/strerror.texi: Add a comment.
11206
11207 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
11208
11209         fdopendir: fix bug on MacOS X when low on file descriptors
11210
11211         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
11212         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
11213         All callers changed.
11214         (fdopendir): Invoke save_cwd at the top level, not after using
11215         multiple dup() calls to use up file descriptors.  Then retry
11216         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
11217         less than the maximum number of open file descriptors, because
11218         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
11219         on Mac OS X 10.6.4 for tar 1.24
11220         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
11221         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
11222         and for tar 1.25
11223         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
11224
11225 2010-11-07  Bruno Haible  <bruno@clisp.org>
11226
11227         vasnprintf: Support I flag on glibc systems.
11228         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
11229         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
11230         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
11231         snprintf function.
11232         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
11233         glibc systems.
11234         * tests/test-vasnprintf-posix3.c: New file.
11235         * modules/vasnprintf-posix-tests (Files): Add it.
11236         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
11237
11238 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
11239
11240         [html] Fix copy/paste bug: Use unique name for compiler warnings.
11241         * MODULES.html.sh: For compiler warnings, use name
11242         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
11243
11244 2010-11-05  Eric Blake  <eblake@redhat.com>
11245
11246         ceil, floor: avoid spurious failure with icc
11247         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
11248         [denormals-as-zero] when optimizing without -mieee-fp option.
11249         * tests/test-floorf2.c (floorf_reference): Likewise.
11250         * tests/test-ceilf1.c (dummy): New function.
11251         (main): Use it to outsmart icc's optimization.
11252         * tests/test-floorf1.c (dummy, main): Likewise.
11253
11254         tests: require working signbit
11255         * modules/ceilf-tests (Depends-on): Add signbit.
11256         * modules/ceill-tests (Depends-on): Likewise.
11257         * modules/floorf-tests (Depends-on): Likewise.
11258         * modules/floorl-tests (Depends-on): Likewise.
11259         * modules/round-tests (Depends-on): Likewise.
11260         * modules/roundf-tests (Depends-on): Likewise.
11261         * modules/roundl-tests (Depends-on): Likewise.
11262         * modules/trunc-tests (Depends-on): Likewise.
11263         * modules/truncf-tests (Depends-on): Likewise.
11264         * modules/truncl-tests (Depends-on): Likewise.
11265
11266         strtod: work around icc bug
11267         * lib/strtod.c (minus_zero): Define to working value.
11268         (strtod): Use it to avoid icc bug.
11269
11270         copysign: enhance tests
11271         * modules/copysign-tests (Files): Add minus-zero.h.
11272         * tests/test-copysign.c (main): Also test zeros.
11273
11274 2010-11-04  Eric Blake  <eblake@redhat.com>
11275
11276         ceil, floor, round, trunc: enhance tests of -0
11277         * tests/test-ceilf1.c (main): Ensure correct sign of result.
11278         * tests/test-ceill.c (main): Likewise.
11279         * tests/test-floorf1.c (main): Likewise.
11280         * tests/test-floorl.c (main): Likewise.
11281         * tests/test-round1.c (main): Likewise.
11282         * tests/test-roundf1.c (main): Likewise.
11283         * tests/test-roundl.c (main): Likewise.
11284         * tests/test-trunc1.c (main): Likewise.
11285         * tests/test-truncf1.c (main): Likewise.
11286         * tests/test-truncl.c (main): Likewise.
11287
11288 2010-11-04  Eric Blake  <eblake@redhat.com>
11289
11290         frexp, tests: work around ICC bug with -zero
11291         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
11292         works with more compilers.
11293         * tests/minus-zero.h: New file.
11294         * modules/ceilf-tests (Files): Include it.
11295         * modules/ceill-tests (Files): Likewise.
11296         * modules/floorf-tests (Files): Likewise.
11297         * modules/floorl-tests (Files): Likewise.
11298         * modules/frexp-nolibm-tests (Files): Likewise.
11299         * modules/frexp-tests (Files): Likewise.
11300         * modules/frexpl-nolibm-tests (Files): Likewise.
11301         * modules/frexpl-tests (Files): Likewise.
11302         * modules/isnan-tests (Files): Likewise.
11303         * modules/isnand-nolibm-tests (Files): Likewise.
11304         * modules/isnand-tests (Files): Likewise.
11305         * modules/isnanf-nolibm-tests (Files): Likewise.
11306         * modules/isnanf-tests (Files): Likewise.
11307         * modules/isnanl-nolibm-tests (Files): Likewise.
11308         * modules/isnanl-tests (Files): Likewise.
11309         * modules/round-tests (Files): Likewise.
11310         * modules/roundf-tests (Files): Likewise.
11311         * modules/roundl-tests (Files): Likewise.
11312         * modules/ldexpl-tests (Files): Likewise.
11313         * modules/signbit-tests (Files): Likewise.
11314         * modules/snprintf-posix-tests (Files): Likewise.
11315         * modules/sprintf-posix-tests (Files): Likewise.
11316         * modules/strtod-tests (Files): Likewise.
11317         * modules/trunc-tests (Files): Likewise.
11318         * modules/truncf-tests (Files): Likewise.
11319         * modules/truncl-tests (Files): Likewise.
11320         * modules/vsnprintf-posix-tests (Files): Likewise.
11321         * modules/vsprintf-posix-tests (Files): Likewise.
11322         * modules/vasnprintf-posix-tests (Files): Likewise.
11323         * modules/vasprintf-posix-tests (Files): Likewise.
11324         * tests/test-ceilf1.c (main): Use it.
11325         * tests/test-ceill.c (main): Likewise.
11326         * tests/test-floorf1.c (main): Likewise.
11327         * tests/test-floorl.c (main): Likewise.
11328         * tests/test-frexp.c (main): Likewise.
11329         * tests/test-frexpl.c (main): Likewise.
11330         * tests/test-isnan.c (main): Likewise.
11331         * tests/test-isnand.h (main): Likewise.
11332         * tests/test-isnanf.h (main): Likewise.
11333         * tests/test-isnanl.h (main): Likewise.
11334         * tests/test-ldexpl.c (main): Likewise.
11335         * tests/test-round.c (main): Likewise.
11336         * tests/test-roundf.c (main): Likewise.
11337         * tests/test-roundl.c (main): Likewise.
11338         * tests/test-signbit.c (test_signbitf, test_signbitd)
11339         (test_signbitl): Likewise.
11340         * tests/test-snprintf-posix.h (test_function): Likewise.
11341         * tests/test-sprintf-posix.h (test_function): Likewise.
11342         * tests/test-strtod.c (main): Likewise.
11343         * tests/test-trunc1.c (main): Likewise.
11344         * tests/test-truncf1.c (main): Likewise.
11345         * tests/test-truncl.c (main): Likewise.
11346
11347         isnanl: work around icc bug
11348         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
11349
11350 2010-11-03  Eric Blake  <eblake@redhat.com>
11351
11352         tests: fix compiler warnings
11353         * tests/test-getopt.h (test_getopt): Fix condition.
11354         * tests/test-getopt_long.h (test_getopt_long): Likewise.
11355         * tests/test-pipe2.c (main): Likewise.
11356         * tests/test-quotearg-simple.c (main): Avoid icc warning.
11357
11358         utimens: fix broken m4 test
11359         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
11360
11361 2010-10-28  Bruno Haible  <bruno@clisp.org>
11362
11363         posix_spawn*, getdtablesize: Relax license.
11364         * modules/posix_spawn (License): Change to LGPLv2+.
11365         * modules/posix_spawnp (License): Likewise.
11366         * modules/posix_spawn-internal (License): Likewise.
11367         * modules/posix_spawnattr_init (License): Likewise.
11368         * modules/posix_spawnattr_getflags (License): Likewise.
11369         * modules/posix_spawnattr_setflags (License): Likewise.
11370         * modules/posix_spawnattr_getpgroup (License): Likewise.
11371         * modules/posix_spawnattr_setpgroup (License): Likewise.
11372         * modules/posix_spawnattr_getschedparam (License): Likewise.
11373         * modules/posix_spawnattr_setschedparam (License): Likewise.
11374         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
11375         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
11376         * modules/posix_spawnattr_getsigdefault (License): Likewise.
11377         * modules/posix_spawnattr_setsigdefault (License): Likewise.
11378         * modules/posix_spawnattr_getsigmask (License): Likewise.
11379         * modules/posix_spawnattr_setsigmask (License): Likewise.
11380         * modules/posix_spawnattr_destroy (License): Likewise.
11381         * modules/posix_spawn_file_actions_init (License): Likewise.
11382         * modules/posix_spawn_file_actions_addclose (License): Likewise.
11383         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
11384         * modules/posix_spawn_file_actions_addopen (License): Likewise.
11385         * modules/posix_spawn_file_actions_destroy (License): Likewise.
11386         * modules/getdtablesize (License): Likewise.
11387         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
11388
11389 2010-10-26  Bruno Haible  <bruno@clisp.org>
11390
11391         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
11392         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
11393         Cygwin and mingw.
11394         Suggested by Eric Blake.
11395
11396 2010-10-26  Bruno Haible  <bruno@clisp.org>
11397
11398         stdio: Work around compilation error due to renameat() on Solaris 10.
11399         * lib/stdio.in.h: Include <unistd.h> on Solaris.
11400         * lib/renameat.c: Don't include <unistd.h> here.
11401         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
11402         Reported by Paul Eggert and Eric Blake.
11403
11404 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
11405
11406         renameat: port to Solaris 10, which declares renameat in unistd.h
11407
11408         * lib/renameat.c: Include unistd.h before stdio.h, because
11409         Solaris 10 declares renameat in unistd.h.  Problem encountered
11410         when building GNU tar 1.24 on Solaris 10.
11411
11412 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
11413
11414         fdopendir: fix C89 compilation
11415         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
11416         compilers.
11417
11418 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
11419
11420         inttostr: simplify by removing unnecessary redundancy
11421         * lib/anytostr.c: Don't include verify.h.
11422         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
11423         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
11424         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
11425         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
11426         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
11427         Likewise.
11428         * modules/inttostr (Depends-on): Remove 'verify'.
11429
11430 2010-10-23  Bruno Haible  <bruno@clisp.org>
11431
11432         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
11433         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
11434         Reported by Eric Blake.
11435
11436 2010-10-23  Bruno Haible  <bruno@clisp.org>
11437
11438         Tests: Fix LOCALE_JA on MirBSD 10.
11439         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
11440         to an UTF-8 locale.
11441         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
11442         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
11443         Reported by Eric Blake.
11444
11445 2010-10-21  Bruno Haible  <bruno@clisp.org>
11446
11447         nl_langinfo test: Avoid test failure on NetBSD 5.
11448         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
11449         Reported by Eric Blake.
11450
11451 2010-10-21  Eric Blake  <eblake@redhat.com>
11452
11453         c-stack: work around libsigsegv 2.8 bug
11454         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
11455         overflow on at least PowerPC64.
11456
11457 2010-10-17  Bruno Haible  <bruno@clisp.org>
11458
11459         userspec: Drop redundant file.
11460         * modules/userspec (Files): Remove lib/inttostr.h.
11461
11462 2010-10-17  Bruno Haible  <bruno@clisp.org>
11463
11464         nl_langinfo tests: Silence some warnings.
11465         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
11466         Reported by Jim Meyering.
11467
11468 2010-10-17  Bruno Haible  <bruno@clisp.org>
11469
11470         Make use of GCC's attribute __alloc_size__.
11471         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
11472         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
11473         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
11474         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
11475         __alloc_size__.
11476         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
11477         Suggested by Jim Meyering.
11478
11479 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
11480
11481         bootstrap: anchor .gitignore entries.
11482         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
11483         with...
11484         (insert_vc_ignore): ... this new function, which prepends `/' to
11485         all .gitignore entries before passing them to
11486         insert_sorted_if_absent.
11487
11488 2010-10-16  Bruno Haible  <bruno@clisp.org>
11489
11490         nextafter: Fix configure check.
11491         * modules/nextafter (configure.ac): Correct expected prototype.
11492
11493 2010-10-16  Bruno Haible  <bruno@clisp.org>
11494
11495         termios: Update documentation.
11496         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
11497
11498 2010-10-16  Bruno Haible  <bruno@clisp.org>
11499
11500         tests: Make them compile with TinyCC.
11501         * tests/test-strstr.c (main): Remove parentheses around array
11502         initializer.
11503
11504 2010-10-15  Eric Blake  <eblake@redhat.com>
11505
11506         ignore-value: make header idempotent
11507         * lib/ignore-value.h: Add double-inclusion guards.
11508         Reported by Stefan Berger.
11509
11510 2010-10-15  Jim Meyering  <meyering@redhat.com>
11511
11512         GNUmakefile: handle "stable" target, not "major"
11513         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
11514         lists in maint.mk and announce-gen.  Without this, "make stable"
11515         would fail to ensure that $(VERSION) is up to date.
11516
11517 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
11518
11519         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
11520         & co.
11521
11522 2010-10-14  Bruno Haible  <bruno@clisp.org>
11523
11524         vasnprintf: Don't set errno to 0.
11525         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
11526         block that sets it to 0.
11527         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
11528
11529 2010-10-14  Bruno Haible  <bruno@clisp.org>
11530
11531         socketlib: Fix.
11532         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
11533         gl_PREREQ_SYS_H_WINSOCK2.
11534         Reported by Ian Beckwith <ianb@erislabs.net>.
11535
11536 2010-10-13  Jim Meyering  <meyering@redhat.com>
11537
11538         test-select-stdin.c: avoid warn_unused_result warnings
11539         * tests/test-select-stdin.c: Include "macros.h".
11540         ASSERT that read and fflush succeed.
11541
11542 2010-10-13  Jim Meyering  <meyering@redhat.com>
11543
11544         git-version-gen: do require git-VC'd files in cwd
11545         * build-aux/git-version-gen: Reject a git version string
11546         if there are no commits associated with the current directory.
11547         This avoids an unlikely false-positive (unrelated dir whose parent
11548         repository also contains a tag matching v*), as pointed out
11549         by Giuseppe Scrivano in
11550         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
11551
11552 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
11553
11554         argv-iter: omit nonconforming declaration
11555         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
11556         enum arg_iter_err declaration, which doesn't conform to C99.
11557         Solaris 10 cc warns about this.
11558
11559 2010-10-13  Eric Blake  <eblake@redhat.com>
11560
11561         termios: fix compilation on mingw
11562         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
11563         (gl_TERMIOS_H): Adjust it on mingw.
11564         * modules/termios (Makefile.am): Substitute new key.
11565         * lib/termios.in.h (includes): Make include_next conditional.
11566         * doc/posix-headers/termios.texi (termios.h): Update
11567         documentation.
11568         Reported by Daniel P. Berrange.
11569
11570 2010-10-13  Jim Meyering  <meyering@redhat.com>
11571
11572         git-version-gen: don't require that .git/ be in the current dir
11573         * build-aux/git-version-gen: Adjust this script so that it works
11574         when run from any working directory beneath the top-level .git/-
11575         containing directory.  Inspired by a patch from Giuseppe Scrivano,
11576         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
11577
11578         test-select: avoid warn_unused_result warnings
11579         * tests/test-select.c: Include "macros.h".
11580         ASSERT that each call to read, write, and pipe succeeds.
11581         While not technically required, also check each "close".
11582         * modules/select-tests (Files): Add tests/macros.h.
11583
11584         test-symlinkat: remove declaration of unused local
11585         * tests/test-symlinkat.c (main): Remove unused local, "buf".
11586
11587         test-inttostr: avoid shadowing warnings
11588         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
11589         and use malloc rather than the stack for the same reason as
11590         mentioned in the comment justifying the other allocation.
11591
11592 2010-10-11  Bruno Haible  <bruno@clisp.org>
11593
11594         stdlib: Allow multiple gnulib generated replacements to coexist.
11595         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
11596         Reported by Sam Steingold <sds@gnu.org>.
11597
11598 2010-10-11  Jim Meyering  <meyering@redhat.com>
11599
11600         fix a documentation typo
11601         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
11602
11603 2010-10-11  Eric Blake  <eblake@redhat.com>
11604
11605         futimens: work around Solaris 11 bug
11606         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
11607         * tests/test-futimens.h (test_futimens): Enhance, rather than
11608         weaken test.
11609         * doc/posix-functions/futimens.texi (futimens): Document the bug.
11610
11611 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
11612
11613         Indentation.
11614         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
11615         higher-level operators more to the left.
11616
11617 2010-10-11  Jim Meyering  <meyering@redhat.com>
11618
11619         test-futimens: avoid unwarranted test failure on Solaris 5.11
11620         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
11621         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
11622         because it tries to dereference the NULL name argument.
11623
11624 2010-10-11  Bruno Haible  <bruno@clisp.org>
11625
11626         Indentation.
11627         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
11628         indentation.
11629
11630 2010-10-11  Jim Meyering  <meyering@redhat.com>
11631
11632         spawn.in.h: make indentation consistent with parentheses
11633         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
11634         Make indentation consistent with parentheses.
11635
11636 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
11637
11638         Fix mismatched parens in previous commit
11639         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
11640         parens.
11641
11642 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
11643
11644         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
11645
11646         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
11647         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
11648         * lib/malloca.c: Include "verify.h".
11649         (verify1): Remove, replacing with a verify call.
11650         * lib/relocwrapper.c (verify1): Likewise.
11651         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
11652         Likewise.
11653         * modules/malloca (Depends-on): Add 'verify'.
11654         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
11655         * modules/vasnprintf (Depends-on): Add 'verify'.
11656         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
11657         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
11658         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
11659         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
11660         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
11661         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
11662         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
11663
11664         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
11665
11666         Formerly the style was sometimes 2*X - 1, because the C standard
11667         was wrongly thought to disallow ?: in integral constant expressions.
11668         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
11669         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
11670         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
11671         * lib/stdint.in.h (_verify_intmax_size): Likewise.
11672         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
11673         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
11674         verify that time_t cannot be floating.
11675
11676 2010-10-08  Eric Blake  <eblake@redhat.com>
11677
11678         time: enforce recent POSIX ruling that time_t is integral
11679         * lib/time.in.h (__time_t_must_be_integral): Detect any
11680         problematic systems, allowing the rest of gnulib to assume POSIX.
11681
11682 2010-10-08  Jim Meyering  <meyering@redhat.com>
11683
11684         fdopendir: fix a bug on systems lacking openat and /proc support
11685         OpenBSD 4.7 is one such system.  The most noticeable effect was
11686         failure of any application making nontrivial use of fts: rm, du,
11687         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
11688           ./rm: traversal failed: `a': Bad file descriptor
11689         Debugging that, you see that even though FD 6 was closed just
11690         prior to the opendir call in fd_clone_opendir, its resulting
11691         dir->dd_fd was 8, rather than the expected value of 6:
11692
11693         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
11694         93                close (fd);
11695         (gdb) n
11696         94                dir = fd_clone_opendir (dupfd);
11697         (gdb) n
11698         95                saved_errno = errno;
11699         (gdb) p dir->dd_fd
11700         $11 = 8
11701
11702         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
11703         The problem is that on OpenBSD, fd_clone_opendir has to resort
11704         to using the old-style save/restore CWD mechanism, due to its
11705         lack of openat/proc support, and *that* would steal the FD (6)
11706         that opendir was supposed to use.
11707
11708         The fix is to squirrel away the desired FD so that save_cwd uses a
11709         different one, and then free the dest FD right before calling opendir.
11710         That guarantees opendir will use the required file descriptor.
11711
11712         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
11713
11714 2010-10-08  Bruno Haible  <bruno@clisp.org>
11715
11716         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
11717         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
11718
11719 2010-10-08  Bruno Haible  <bruno@clisp.org>
11720
11721         nanosleep: Make replacement POSIX compliant.
11722         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
11723         is out of range.
11724         Reported by Jim Meyering.
11725
11726 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
11727
11728         bootstrap: add hook for altering gnulib.mk, for Bison
11729         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
11730         the Bison bootstrapping process can rewrite file names and variables
11731         in this file before later parts of 'bootstrap' use the file.
11732         Bison wants to include lib/gnulib.mk from the top-level makefile,
11733         so it needs the file names in this file to be relative to the top
11734         level, not relative to lib; plus it needs variable names to be
11735         rewritten.
11736         (slurp): Use the new function.
11737
11738         bootstrap: reformat for readability
11739         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
11740
11741 2010-10-08  Eric Blake  <eblake@redhat.com>
11742
11743         docs: update cygwin progress
11744         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
11745         1.7.7.
11746         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
11747         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
11748         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
11749         * doc/posix-functions/carg.texi (carg): Likewise.
11750         * doc/posix-functions/cargf.texi (cargf): Likewise.
11751         * doc/posix-functions/casin.texi (casin): Likewise.
11752         * doc/posix-functions/casinf.texi (casinf): Likewise.
11753         * doc/posix-functions/casinh.texi (casinh): Likewise.
11754         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
11755         * doc/posix-functions/catan.texi (catan): Likewise.
11756         * doc/posix-functions/catanf.texi (catanf): Likewise.
11757         * doc/posix-functions/catanh.texi (catanh): Likewise.
11758         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
11759         * doc/posix-functions/ccos.texi (ccos): Likewise.
11760         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
11761         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
11762         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
11763         * doc/posix-functions/cexp.texi (cexp): Likewise.
11764         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
11765         * doc/posix-functions/cimag.texi (cimag): Likewise.
11766         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
11767         * doc/posix-functions/clog.texi (clog): Likewise.
11768         * doc/posix-functions/clogf.texi (clogf): Likewise.
11769         * doc/posix-functions/conj.texi (conj): Likewise.
11770         * doc/posix-functions/conjf.texi (conjf): Likewise.
11771         * doc/posix-functions/cpow.texi (cpow): Likewise.
11772         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
11773         * doc/posix-functions/cproj.texi (cproj): Likewise.
11774         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
11775         * doc/posix-functions/creal.texi (creal): Likewise.
11776         * doc/posix-functions/crealf.texi (crealf): Likewise.
11777         * doc/posix-functions/csin.texi (csin): Likewise.
11778         * doc/posix-functions/csinf.texi (csinf): Likewise.
11779         * doc/posix-functions/csinh.texi (csinh): Likewise.
11780         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
11781         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
11782         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
11783         * doc/posix-functions/ctan.texi (ctan): Likewise.
11784         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
11785         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
11786         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
11787         * doc/posix-headers/complex.texi (complex.h): Likewise.
11788
11789 2010-10-07  Jim Meyering  <meyering@redhat.com>
11790
11791         parse-datetime: avoid compilation failure on OpenBSD 4.7
11792         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
11793         This works around a compilation failure on OpenBSD 4.7:
11794         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
11795
11796 2010-10-07  Eric Blake  <eblake@redhat.com>
11797
11798         docs: update cygwin progress
11799         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
11800         1.7.6.
11801         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
11802         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
11803         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
11804         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
11805         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
11806         Likewise.
11807         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
11808         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
11809         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
11810         Likewise.
11811         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
11812         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
11813         Likewise.
11814         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
11815         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
11816         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
11817         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
11818         Likewise.
11819         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
11820         Likewise.
11821         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
11822
11823         docs: update parse-datetime history
11824         * doc/parse-datetime.texi (Authors of parse_datetime): Better
11825         documentation of this function's history and alternatives.
11826
11827         cygwin: use more robust version check
11828         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
11829         exclude an eventual cygwin 1.9.1.
11830         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
11831         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
11832         (gl_FUNC_STRCASESTR): Likewise.
11833         Reported by Bruno Haible.
11834
11835 2010-10-06  Bruno Haible  <bruno@clisp.org>
11836
11837         string, sys_select: Avoid #including large headers unless necessary.
11838         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
11839         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
11840         OSF/1, BeOS, Haiku.
11841         Reported by Jim Meyering.
11842
11843 2010-10-05  Eric Blake  <eblake@redhat.com>
11844
11845         memmem, strstr, strcasestr: fix bug with long periodic needle
11846         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
11847         periodic needle having false positive.
11848         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
11849         and cygwin 1.7.7.
11850         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
11851         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
11852         (gl_FUNC_STRCASESTR): Likewise.
11853         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
11854         * tests/test-memmem.c (main): Expose the bug.
11855         * tests/test-strcasestr.c (main): Likewise.
11856         * tests/test-strstr.c (main): Likewise.
11857         * tests/test-c-strcasestr.c (main): Likewise.
11858         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
11859         * doc/posix-functions/strstr.texi (strstr): Likewise.
11860         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
11861         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
11862
11863 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
11864
11865         parse-datetime: do some more renaming
11866         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
11867         parse_datetime, not get_date.  Mention the renaming.
11868         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
11869         in comments.
11870         * m4/bison.m4: Likewise.
11871
11872 2010-10-05  Eric Blake  <eblake@redhat.com>
11873
11874         parse-datetime: better name than get_date
11875         * NEWS: Reword the deprecation notice.
11876         * modules/get_date: Rename to modules/parse-datetime.
11877         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
11878         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
11879         * lib/get_date.y: Rename to lib/parse-datetime.y.
11880         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
11881         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
11882         * doc/getdate.texi: Provide fallback wrapper.
11883         * lib/getdate.h: Move guts, and wrap...
11884         * lib/parse-datetime.h: ...new file.
11885         * lib/parse-datetime.y (get_date): Rename...
11886         (parse_datetime): ...to this.
11887         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
11888         (gl_PARSE_DATETIME): ...to this.
11889         * doc/posix-functions/getdate.texi (get_date): Provide fallback
11890         documentation.
11891         * modules/getdate (Files): Provide fallback docs and header.
11892         (Notice, Depends-on): Update references.
11893         * tests/test-parse-datetime.c: Likewise.
11894         * DEPENDENCIES: Likewise.
11895         * MODULES.html.sh (Date and time <time.h>): Likewise.
11896         * doc/parse-datetime.texi (Date input formats)
11897         (Authors of parse_datetime): Likewise.
11898         * modules/parse-datetime (Files, configure.ac, Makefile.am)
11899         (Include): Likewise.
11900         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
11901         * gnulib-tool: Likewise.
11902         * m4/bison.m4 (gl_BISON): Likewise.
11903         Suggested by Bruno Haible.
11904
11905 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
11906
11907         more ports to Solaris tr, which needs [] around ranges
11908         * gnulib-tool: Solaris tr needs [] around ranges.
11909         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
11910         * tests/test-pipe-filter-gi1.c (main): Likewise.
11911         * tests/test-pipe-filter-ii1.c (main): Likewise.
11912
11913 2010-10-05  Eric Blake  <eblake@redhat.com>
11914
11915         bootstrap: fix Solaris regression
11916         * build-aux/bootstrap (check_versions): Solaris tr still needs []
11917         around ranges.
11918         Reported by Pádraig Brady.
11919
11920         bootstrap: work with pkg-config
11921         * build-aux/bootstrap (check_versions): Also transliterate - in
11922         prerequisite name.
11923         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
11924         prerequisites that were already found, to avoid confusion.
11925         Reported by Justin Clift.
11926
11927         faccessat: remove unused wrappers
11928         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
11929         presence of these wrappers dragged in -lgen on Solaris.
11930         Reported by Clemens Brogi; fix suggested by Paul Eggert.
11931
11932 2010-10-05  Jim Meyering  <meyering@redhat.com>
11933
11934         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
11935         * Makefile (sc_pragma_columns): New syntax-check rule.
11936
11937 2010-10-04  Bruno Haible  <bruno@clisp.org>
11938
11939         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
11940         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
11941         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
11942         Reported by Bruce Korb and Eric Blake.
11943
11944 2010-10-04  Bruno Haible  <bruno@clisp.org>
11945
11946         threadlib: Make option --with-libpth-prefix work.
11947         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
11948         use $LIBPTH, not just -lpth.
11949
11950 2010-10-04  Bruno Haible  <bruno@clisp.org>
11951
11952         Avoid line length limitation from HP NonStop system header files.
11953         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
11954         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
11955         * lib/ctype.in.h: Likewise.
11956         * lib/dirent.in.h: Likewise.
11957         * lib/errno.in.h: Likewise.
11958         * lib/fcntl.in.h: Likewise.
11959         * lib/float.in.h: Likewise.
11960         * lib/getopt.in.h: Likewise.
11961         * lib/iconv.in.h: Likewise.
11962         * lib/inttypes.in.h: Likewise.
11963         * lib/langinfo.in.h: Likewise.
11964         * lib/locale.in.h: Likewise.
11965         * lib/math.in.h: Likewise.
11966         * lib/netdb.in.h: Likewise.
11967         * lib/netinet_in.in.h: Likewise.
11968         * lib/poll.in.h: Likewise.
11969         * lib/pthread.in.h: Likewise.
11970         * lib/pty.in.h: Likewise.
11971         * lib/sched.in.h: Likewise.
11972         * lib/se-selinux.in.h: Likewise.
11973         * lib/search.in.h: Likewise.
11974         * lib/signal.in.h: Likewise.
11975         * lib/spawn.in.h: Likewise.
11976         * lib/stdarg.in.h: Likewise.
11977         * lib/stddef.in.h: Likewise.
11978         * lib/stdint.in.h: Likewise.
11979         * lib/stdio.in.h: Likewise.
11980         * lib/stdlib.in.h: Likewise.
11981         * lib/string.in.h: Likewise.
11982         * lib/strings.in.h: Likewise.
11983         * lib/sys_file.in.h: Likewise.
11984         * lib/sys_ioctl.in.h: Likewise.
11985         * lib/sys_select.in.h: Likewise.
11986         * lib/sys_socket.in.h: Likewise.
11987         * lib/sys_stat.in.h: Likewise.
11988         * lib/sys_time.in.h: Likewise.
11989         * lib/sys_times.in.h: Likewise.
11990         * lib/sys_utsname.in.h: Likewise.
11991         * lib/sys_wait.in.h: Likewise.
11992         * lib/sysexits.in.h: Likewise.
11993         * lib/termios.in.h: Likewise.
11994         * lib/time.in.h: Likewise.
11995         * lib/unistd.in.h: Likewise.
11996         * lib/wchar.in.h: Likewise.
11997         * lib/wctype.in.h: Likewise.
11998         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
11999         * modules/ctype (Makefile.am): Likewise.
12000         * modules/dirent (Makefile.am): Likewise.
12001         * modules/errno (Makefile.am): Likewise.
12002         * modules/fcntl-h (Makefile.am): Likewise.
12003         * modules/float (Makefile.am): Likewise.
12004         * modules/getopt-posix (Makefile.am): Likewise.
12005         * modules/iconv-h (Makefile.am): Likewise.
12006         * modules/inttypes (Makefile.am): Likewise.
12007         * modules/langinfo (Makefile.am): Likewise.
12008         * modules/locale (Makefile.am): Likewise.
12009         * modules/math (Makefile.am): Likewise.
12010         * modules/netdb (Makefile.am): Likewise.
12011         * modules/netinet_in (Makefile.am): Likewise.
12012         * modules/poll-h (Makefile.am): Likewise.
12013         * modules/pthread (Makefile.am): Likewise.
12014         * modules/pty (Makefile.am): Likewise.
12015         * modules/sched (Makefile.am): Likewise.
12016         * modules/search (Makefile.am): Likewise.
12017         * modules/selinux-h (Makefile.am): Likewise.
12018         * modules/signal (Makefile.am): Likewise.
12019         * modules/spawn (Makefile.am): Likewise.
12020         * modules/stdarg (Makefile.am): Likewise.
12021         * modules/stddef (Makefile.am): Likewise.
12022         * modules/stdint (Makefile.am): Likewise.
12023         * modules/stdio (Makefile.am): Likewise.
12024         * modules/stdlib (Makefile.am): Likewise.
12025         * modules/string (Makefile.am): Likewise.
12026         * modules/strings (Makefile.am): Likewise.
12027         * modules/sys_file (Makefile.am): Likewise.
12028         * modules/sys_ioctl (Makefile.am): Likewise.
12029         * modules/sys_select (Makefile.am): Likewise.
12030         * modules/sys_socket (Makefile.am): Likewise.
12031         * modules/sys_stat (Makefile.am): Likewise.
12032         * modules/sys_time (Makefile.am): Likewise.
12033         * modules/sys_times (Makefile.am): Likewise.
12034         * modules/sys_utsname (Makefile.am): Likewise.
12035         * modules/sys_wait (Makefile.am): Likewise.
12036         * modules/sysexits (Makefile.am): Likewise.
12037         * modules/termios (Makefile.am): Likewise.
12038         * modules/time (Makefile.am): Likewise.
12039         * modules/unistd (Makefile.am): Likewise.
12040         * modules/wchar (Makefile.am): Likewise.
12041         * modules/wctype (Makefile.am): Likewise.
12042
12043 2010-10-04  Bruno Haible  <bruno@clisp.org>
12044
12045         read-file tests: Avoid a test failure on NonStop Kernel.
12046         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
12047         a regular file.
12048         Reported by Joachim Schmitz <schmitz@hp.com>.
12049
12050 2010-10-03  Bruno Haible  <bruno@clisp.org>
12051
12052         gnulib-tool: Fixes for --create-testdir with --libtool.
12053         * gnulib-tool (func_get_automake_snippet): Don't augment
12054         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
12055         an executable.
12056         (func_create_testdir): Handle module 'alloca' like func_import.
12057         Reported by Bruce Korb <bruce.korb@gmail.com>.
12058
12059 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
12060
12061         Avoid some lines longer than 80 characters.
12062         * lib/stdint.in.h: Break long comment lines.
12063         * lib/math.in.h: Likewise.
12064         (_GL_NUM_UINT_WORDS): New macro, for readability.
12065         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
12066         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
12067         * lib/stdlib.in.h: Likewise.
12068         * lib/spawn.in.h: Likewise.
12069         * lib/sys_socket.in.h: Update an URL.
12070         * lib/sys_stat.in.h: Break long line.
12071
12072 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
12073
12074         Improve pmccabe2html.
12075         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
12076         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
12077         when the sources change. Remove the line in the HTML about "Used
12078         ranges" (which implied that there might be other unused ranges),
12079         rename "Resume" to "Summary" (easier to understand for more users).
12080         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
12081         styles, and some unnecessary blank lines.
12082
12083 2010-10-03  Bruno Haible  <bruno@clisp.org>
12084             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
12085
12086         acl: Add support for ACLs on NonStop Kernel.
12087         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
12088         Check whether the function aclsort() exists.
12089         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
12090         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
12091         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
12092         (acl_nontrivial [HAVE_ACLSORT]: New function.
12093         (file_has_acl): Implement for NonStop Kernel.
12094         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
12095         (qset_acl): Implement for NonStop Kernel.
12096         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
12097         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
12098         (main): Implement for NonStop Kernel.
12099         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
12100         Kernel. Handle this flavor.
12101         * tests/test-set-mode-acl.sh: Likewise.
12102         * tests/test-copy-acl.sh: Likewise.
12103         * tests/test-copy-file.sh: Likewise.
12104
12105 2010-10-03  Bruno Haible  <bruno@clisp.org>
12106
12107         Info about ACLs on NonStop Kernel.
12108         * doc/acl-resources.txt: Add info about NonStop Kernel.
12109         References by Joachim Schmitz <schmitz@hp.com>.
12110
12111 2010-10-02  Bruno Haible  <bruno@clisp.org>
12112
12113         Define missing EDQUOT on NonStop Kernel.
12114         * lib/errno.in.h (EDQUOT): Assign a value if missing.
12115         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
12116         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
12117         missing.
12118         * doc/posix-headers/errno.texi: Mention the NSK bug.
12119         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
12120         Reported by Joachim Schmitz <schmitz@hp.com>.
12121
12122 2010-10-02  Bruno Haible  <bruno@clisp.org>
12123
12124         Update doc for POSIX:2008.
12125         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
12126         Update URL of POSIX specification.
12127
12128 2010-10-02  Bruno Haible  <bruno@clisp.org>
12129
12130         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
12131         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
12132         from gnulib, not from Automake.
12133
12134 2010-10-02  Bruno Haible  <bruno@clisp.org>
12135
12136         New module 'system-posix'.
12137         * modules/system-posix: New file.
12138         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
12139         module is present.
12140         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
12141         GNULIB_SYSTEM_POSIX.
12142         * modules/stdlib (Depends-on): Remove sys_wait.
12143         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
12144         * doc/posix-functions/system.texi: Mention the new module.
12145         * doc/posix-headers/stdlib.texi: Likewise.
12146         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
12147         define test_sys_wait_macros to a no-op.
12148         Reported by Sam Steingold <sds@gnu.org>.
12149
12150 2010-09-30  Bruno Haible  <bruno@clisp.org>
12151
12152         More renaming from 'getdate' to 'get_date'.
12153         * doc/get_date.texi: Renamed from doc/getdate.texi.
12154         * modules/get_date (Files): Update.
12155         * MODULES.html.sh (Date and time <time.h>): Update.
12156         * DEPENDENCIES: Update.
12157         * gnulib-tool: Update comment.
12158         * m4/bison.m4 (gl_BISON): Likewise.
12159         * m4/get_date.m4 (gl_GET_DATE): Likewise.
12160
12161 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
12162
12163         bootstrap: support ACLOCAL_FLAGS during aclocal
12164         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
12165         can add additional -I dir for third-party .m4 files.
12166
12167 2010-09-30  Eric Blake  <eblake@redhat.com>
12168
12169         bootstrap: use glibtoolize on MacOS
12170         * build-aux/bootstrap (check_versions): Convert libtool into
12171         libtoolize.
12172         (tool search): Move libtool check earlier, and look for
12173         glibtoolize for MacOS.
12174         (gnulib_tool_options): Auto-add --libtool when appropriate.
12175         Reported by Justin Clift.
12176
12177         poll: fix typo that broke test on MacOS
12178         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
12179         Reported by Justin Clift.
12180
12181         getdate: rename to get_date
12182         Note: getdate.h is not renamed, to minimize client impact.
12183         * modules/getdate: Mark obsolete.  Move old contents...
12184         * modules/get_date: ...to new module name.
12185         * modules/getdate-tests: Move...
12186         * modules/get_date-tests: ...here.
12187         * m4/getdate.m4: Move...
12188         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
12189         * lib/getdate.y: Move...
12190         * lib/get_date.y: ...here.
12191         * tests/test-getdate.c: Move...
12192         * tests/test-get_date.c: ...here.
12193         * doc/posix-functions/getdate.texi (getdate): Update name.
12194         * NEWS: Mention the change.
12195
12196 2010-09-29  Bruno Haible  <bruno@clisp.org>
12197
12198         Separate the module 'waitpid' from the module 'sys_wait'.
12199         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
12200         present.
12201         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
12202         gl_MODULE_INDICATOR_FOR_TESTS.
12203         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
12204         * modules/sys_wait (Depends-on): Remove waitpid.
12205         (Makefile.am): Substitute GNULIB_WAITPID.
12206         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
12207         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
12208         signature only if the 'waitpid' module is present.
12209         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
12210         * NEWS: Mention the change.
12211         * modules/grantpt (Depends-on): Add waitpid.
12212         * modules/wait-process (Depends-on): Likewise.
12213
12214 2010-09-29  Bruno Haible  <bruno@clisp.org>
12215
12216         More tests for module 'sys_wait'.
12217         * modules/sys_wait-c++-tests: New file.
12218         * tests/test-sys_wait-c++.cc: New file.
12219         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
12220         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
12221
12222 2010-09-29  Bruno Haible  <bruno@clisp.org>
12223
12224         New module 'waitpid'.
12225         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
12226         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
12227         Don't include <process.h>.
12228         (waitpid): Declare only, using modern idiom.
12229         * m4/waitpid.m4: New file.
12230         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
12231         * modules/waitpid: New file.
12232         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
12233         (Makefile.am): Update.
12234         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
12235
12236 2010-09-28  Bruno Haible  <bruno@clisp.org>
12237
12238         poll: Assume ANSI C.
12239         * lib/poll.c (poll): Use an ANSI C declaration.
12240
12241 2010-09-28  Bruno Haible  <bruno@clisp.org>
12242
12243         poll-h: Create poll.h on all platforms.
12244         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
12245         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
12246         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
12247         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
12248         (gl_REPLACE_POLL_H): Don't set POLL_H.
12249         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
12250         * modules/poll-h (Depends-on): Add include_next.
12251         (Makefile.am): Create poll.h unconditionally. Substitute also
12252         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
12253
12254 2010-09-28  Bruno Haible  <bruno@clisp.org>
12255
12256         Tests for module 'poll-h'.
12257         * modules/poll-h-c++-tests: New file.
12258         * tests/test-poll-h-c++.cc: New file.
12259
12260         Tests for module 'poll-h'.
12261         * modules/poll-h-tests: New file.
12262         * tests/test-poll-h.c: New file.
12263
12264 2010-09-28  Bruno Haible  <bruno@clisp.org>
12265
12266         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
12267         * modules/poll-h (Depends-on): Add 'extensions'.
12268
12269 2010-09-28  Bruno Haible  <bruno@clisp.org>
12270
12271         New module 'poll-h'.
12272         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
12273         (poll): Use modern idiom.
12274         * modules/poll-h: New file.
12275         * modules/poll (Files): Remove lib/poll.in.h.
12276         (Depends-on): Add poll-h.
12277         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
12278         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
12279         * m4/poll_h.m4: New file.
12280         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
12281         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
12282         and invoke gl_REPLACE_POLL_H.
12283         * lib/poll.c: Use common idiom.
12284         * tests/test-poll.c: Likewise.
12285         * doc/posix-headers/poll.texi: Mention the poll-h module.
12286         Suggested by Eric Blake.
12287
12288 2010-09-26  Bruno Haible  <bruno@clisp.org>
12289
12290         sys_wait: Implement WSTOPSIG.
12291         * lib/sys_wait.in.h (WSTOPSIG): New macro.
12292         Reported by Simon Josefsson.
12293
12294 2010-09-26  Simon Josefsson  <simon@josefsson.org>
12295
12296         stdlib, sys_wait: Avoid compilation error on mingw.
12297         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
12298
12299 2010-09-26  Bruno Haible  <bruno@clisp.org>
12300
12301         stdlib tests: Avoid code duplication.
12302         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
12303         * modules/sys_wait-tests (Files): Likewise.
12304         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
12305         * tests/test-stdlib.c: Include test-sys_wait.h.
12306         (main): Invoke test_sys_wait_macros.
12307         * tests/test-sys_wait.c: Include test-sys_wait.h.
12308         (main): Invoke test_sys_wait_macros.
12309
12310 2010-09-25  Simon Josefsson  <simon@josefsson.org>
12311
12312         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
12313         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
12314         sure Windows sockets are working before calling getaddrinfo.
12315         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
12316         * doc/gnulib.texi (Windows sockets): Fix typo.
12317
12318 2010-09-25  Bruno Haible  <bruno@clisp.org>
12319
12320         Tests for module 'regex-quote'.
12321         * modules/regex-quote-tests: New file.
12322         * tests/test-regex-quote.c: New file.
12323
12324         New module 'regex-quote'.
12325         * lib/regex-quote.h: New file.
12326         * lib/regex-quote.c: New file.
12327         * modules/regex-quote: New file.
12328         Suggested by Reuben Thomas <rrt@sc3d.org>.
12329
12330 2010-09-24  Bruno Haible  <bruno@clisp.org>
12331
12332         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
12333         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
12334
12335 2010-09-23  Bruno Haible  <bruno@clisp.org>
12336
12337         setenv: Relax license.
12338         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
12339         Blake.
12340         Requested by Eric Blake.
12341
12342 2010-09-22  Bruno Haible  <bruno@clisp.org>
12343
12344         termios: Relax license.
12345         * modules/termios (License): Change to LGPLv2+.
12346         Requested by Eric Blake.
12347
12348 2010-09-22  Bruno Haible  <bruno@clisp.org>
12349
12350         threadlib: Allow the package to change the default to 'no'.
12351         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
12352         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
12353         Reported by Paul Eggert.
12354
12355 2010-09-22  Pádraig Brady  <P@draigbrady.com>
12356             Bruno Haible  <bruno@clisp.org>
12357
12358         Fix endless loop in mbmemcasecoll.
12359         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
12360         byte.
12361         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
12362
12363 2010-09-22  Bruno Haible  <bruno@clisp.org>
12364
12365         Tests for module 'memcoll'.
12366         * modules/memcoll-tests: New file.
12367         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
12368
12369         memcoll, xmemcoll: Clarify size vs. length.
12370         * modules/memcoll.c (memcoll0): Clarify specification.
12371         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
12372         passed to collate_error.
12373
12374 2010-09-22  Bruno Haible  <bruno@clisp.org>
12375
12376         Tests for module 'memcasecmp'.
12377         * modules/memcasecmp-tests: New file.
12378         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
12379
12380 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
12381
12382         * lib/pthread.in.h: Add split double-inclusion guard, and include
12383         system <pthread.h> if there is one.  Use @@-style as in other
12384         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
12385         pthread.h doesn't.
12386         (pthread_mutexattr_destroy, pthread_mutexattr_init):
12387         (pthread_mutexattr_settype, pthread_mutex_trylock):
12388         New static inline functions, if there's no system <pthread.h>.
12389         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
12390         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
12391         Approximate with mutexes if the system lacks spinlocks, as in
12392         MacOS.
12393         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
12394         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
12395         @@-style.  Check for spinlocks separately.
12396         (gl_PTHREAD_DEFAULTS): New macro.
12397         * modules/pthread: Redo to use a more typical style for in.h files.
12398
12399 2010-09-21  Eric Blake  <eblake@redhat.com>
12400
12401         net_if: enhance tests
12402         * tests/test-net_if.c (main): Move signature checks earlier.
12403         Print failures to stderr.
12404         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
12405         Document the bug that we do not yet fix.
12406
12407 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
12408
12409         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
12410         about gnulib, not GSS.
12411
12412 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
12413
12414         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
12415         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
12416         for Emacs.
12417         * build-aux/pmccabe2html: Make Makefile.am example code more
12418         cut-and-paste friendly.
12419
12420 2010-09-21  Simon Josefsson  <simon@josefsson.org>
12421
12422         * tests/test-net_if.c: New file.
12423         * modules/net_if-tests: New file.
12424
12425 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
12426
12427         pthread: add pthread_spin_destroy
12428         * lib/pthread.in.h (pthread_spin_destroy): New function.
12429
12430 2010-09-19  Bruno Haible  <bruno@clisp.org>
12431
12432         gnulib-tool: Fix --help output.
12433         * gnulib-tool (func_usage): Fix help message.
12434         Reported by Reuben Thomas <rrt@sc3d.org>.
12435
12436 2010-09-18  Jim Meyering  <meyering@redhat.com>
12437
12438         maint.mk: avoid unexpanded \n in two diagnostics
12439         * top/maint.mk (sc_prohibit_always_true_header_tests):
12440         Don't use a literal \n in a halt=... assignment.  It would not be
12441         expanded, and the two \n bytes would appear in the diagnostic output
12442         rather than the desired newline.  Use halt=$$(printf ... instead.
12443         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
12444
12445 2010-09-18  Bruno Haible  <bruno@clisp.org>
12446
12447         netinet_in: Doc tweak.
12448         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
12449         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12450
12451 2010-09-18  Jim Meyering  <meyering@redhat.com>
12452
12453         init.sh: correct an outdated comment
12454         * tests/init.sh (create_exe_shims_):  s/function/alias/
12455
12456         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
12457         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
12458         a file named "*.exe" is removed between the glob expansion and the
12459         processing of that oddly named file.
12460
12461 2010-09-17  Eric Blake  <eblake@redhat.com>
12462
12463         mirbsd: add some more support
12464         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
12465         in BSD family.
12466         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
12467         devices as OpenBSD.
12468         * m4/host-os.m4 (mirbsd): Add MirBSD.
12469
12470         tests: fix unportable assumption on sys/wait.h
12471         * tests/test-sys_wait.c (main): Relax test.
12472         * tests/test-stdlib.c (main): Likewise.
12473
12474         init.sh: accomodate directory with no .exes
12475         * tests/init.sh: Accomodate directory containing only scripts.
12476
12477         tests: avoid compiler warning
12478         * tests/test-stdlib.c (main): Use the variable.
12479
12480         fdutimens, fdutimensat: update signature, again
12481         * lib/utimens.h (gl_futimens): Delete, and move signature...
12482         (fdutimens): ...here.
12483         (fdutimensat): Rearrange signature.
12484         (lutimensat): Rename variable for clarity.
12485         * lib/fdutimensat.c (fdutimensat): Update signature.
12486         * lib/utimens.c (fdutimens): Likewise.
12487         (gl_futimens): Delete.
12488         (utimens, lutimens): Update callers.
12489         * lib/futimens.c (futimens): Likewise.
12490         * tests/test-fdutimensat.c: Likewise.
12491         * tests/test-utimens.c: Likewise.
12492         * tests/test-futimens.h: Update comment.
12493         * NEWS: Mention this.
12494         Suggested by Paul Eggert.
12495
12496 2010-09-17  Bruno Haible  <bruno@clisp.org>
12497
12498         Take over the maintenance of some older macros from Autoconf.
12499         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
12500         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
12501         GNU Autoconf.
12502         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
12503         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
12504
12505 2010-09-17  Eric Blake  <eblake@redhat.com>
12506
12507         fdutimensat: drop atflag validation
12508         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
12509         with valid fd, to close a race scenario where futimens is
12510         unsupported and FILE was replaced by a symlink.
12511         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
12512         accordingly.
12513         Suggested by Paul Eggert.
12514
12515 2010-09-16  Bruno Haible  <bruno@clisp.org>
12516
12517         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
12518         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
12519
12520 2010-09-16  Bruno Haible  <bruno@clisp.org>
12521
12522         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
12523         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
12524         login_tty exists.
12525         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12526
12527 2010-09-16  Bruno Haible  <bruno@clisp.org>
12528
12529         login_tty: Make the replacement code work on BSD systems.
12530         * lib/login_tty.c: Include <sys/ioctl.h>.
12531         (login_tty): Use ioctl TIOCSCTTY when available.
12532         * modules/login_tty (Depends-on): Add sys_ioctl.
12533         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12534
12535 2010-09-16  Bruno Haible  <bruno@clisp.org>
12536
12537         login_tty: Stricter unit test.
12538         * modules/login_tty-tests (Depends-on): Add tcgetsid.
12539         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
12540         and tcgetsid() after login_tty.
12541         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12542
12543 2010-09-16  Bruno Haible  <bruno@clisp.org>
12544
12545         New module 'tcgetsid'.
12546         * lib/tcgetsid.c: New file.
12547         * m4/tcgetsid.m4: New file.
12548         * modules/tcgetsid: New file.
12549         * modules/termios (Depends-on): Add c++defs, warn-on-use.
12550         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
12551         GNULIB_TCGETSID, HAVE_TCGETSID.
12552         * lib/termios.in.h: Include <sys/types.h>.
12553         (tcgetsid): New declaration.
12554         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
12555         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
12556         * doc/posix-functions/tcgetsid.texi: Mention the new module.
12557         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
12558
12559 2010-09-16  Bruno Haible  <bruno@clisp.org>
12560
12561         Tests for module 'termios'.
12562         * modules/termios-c++-tests: New file.
12563         * modules/termios-tests: New file.
12564         * tests/test-termios-c++.cc: New file.
12565         * tests/test-termios.c: New file.
12566
12567         New module 'termios'.
12568         * modules/termios: New file.
12569         * lib/termios.in.h: New file.
12570         * m4/termios_h.m4: New file.
12571         * doc/posix-headers/termios.texi: Mention the new module.
12572
12573 2010-09-16  Eric Blake  <eblake@redhat.com>
12574
12575         fdutimensat: add an atflag parameter
12576         * lib/fdutimensat.c (fdutimensat): Add new parameter.
12577         * lib/utimens.h (fdutimensat): Update prototype.
12578         * tests/test-fdutimensat.c: Adjust test to match.
12579         * NEWS: Document the change.
12580         Suggested by Paul Eggert.
12581
12582 2010-09-16  Bruno Haible  <bruno@clisp.org>
12583
12584         Fix typos in comments.
12585         * lib/striconveh.h: Fix typo in comment.
12586         * lib/login_tty.c (login_tty): Likewise.
12587
12588 2010-09-15  Bruno Haible  <bruno@clisp.org>
12589
12590         stdlib: clarify MirBSD WEXITSTATUS bug
12591         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
12592         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
12593
12594 2010-09-15  Eric Blake  <eblake@redhat.com>
12595
12596         stdlib: work around MirBSD WEXITSTATUS bug
12597         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
12598         * modules/stdlib (Depends-on): Add sys_wait.
12599         * tests/test-sys_wait.c (main): Enhance test.
12600         * tests/test-stdlib.c (main): Likewise.
12601         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
12602
12603         docs: mention MacOS issue with WEXITSTATUS(constant)
12604         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
12605         issue.
12606         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
12607
12608         strnlen: add tests
12609         * modules/strnlen-tests: New file.
12610         * tests/test-strnlen.c: Likewise.
12611
12612 2010-09-14  Bruno Haible  <bruno@clisp.org>
12613
12614         unistr/base: Avoid link errors when module 'libunistring' is also used.
12615         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
12616         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
12617         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
12618         Declare also when HAVE_LIBUNISTRING is set.
12619         Reported by Pádraig Brady <P@draigbrady.com>.
12620
12621 2010-09-14  Eric Blake  <eblake@redhat.com>
12622
12623         test-rawmemchr: make more robust
12624         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
12625         (Depends-on, configure.ac): Add needed prerequisites to use it.
12626         * modules/memchr-tests (Files, Depends-on, configure.ac):
12627         Likewise, to avoid implicit reliance on memchr module prereqs.
12628         * tests/test-memchr.c (main): Ensure proper masking.
12629         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
12630         reads.
12631
12632         memchr: detect glibc Alpha bug
12633         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
12634         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
12635         Alpha.
12636         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
12637         * tests/test-memchr.c (main): Enhance test.
12638         Reported by Nelson H. F. Beebe.
12639
12640 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
12641
12642         fts, getcwd, glob: audit for dirfd returning -1
12643         * lib/fts.c (opendir): Remove #define; no longer used.
12644         (opendirat): New arg PDIR_FD.  All callers changed.
12645         (fts_build, _opendir2): Use new opendirat to avoid the need for
12646         dirfd, or for checking whether dirfd returns a negative value.
12647         Don't use opendir; always use openat followed by fdopendir.
12648         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
12649         it.
12650         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
12651         returns -1 here.
12652         * modules/fts (Depends-on): Remove dirfd.
12653         * modules/getcwd (Depends-on): Likewise.
12654
12655 2010-09-13  Eric Blake  <eblake@redhat.com>
12656
12657         float: fix broken MirBSD header
12658         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
12659         * doc/posix-headers/float.texi (float.h): Document it.
12660
12661 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
12662
12663         fts: use O_NOFOLLOW to avoid race condition when opening a directory
12664         * lib/fts.c (opendirat): New arg extra_flags.
12665         (__opendir2): Use it to avoid following symlinks when opening
12666         a directory, if symlinks are not supposed to be followed.  See
12667         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
12668
12669         fdopendir: preserve argument fd before returning
12670         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
12671         (fdopendir_with_dup, fd_clone_opendir): New static functions.
12672         (fdopendir): Use them, arranging for FD to be open to the same
12673         directory that it was when it started.  (It might be temporarily
12674         closed while fdopendir is running, so this not thread- or
12675         signal-safe.)  Be careful to do the right thing even when file
12676         descriptors are scarce and dup fails with errno == EMFILE.  See
12677         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
12678
12679 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
12680
12681         regex: Pass the system regex if its only problem is 32-bit regoff_t.
12682         * NEWS: Document change.
12683         * m4/regex.m4: Disable test for regoff_t size.
12684
12685 2010-09-13  Jim Meyering  <meyering@redhat.com>
12686
12687         fts: don't operate on an invalid file descriptor after failed dup
12688         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
12689         negative file descriptor.
12690
12691 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
12692
12693         savedir: add streamsavedir, deprecate fdsavedir
12694         * NEWS: Mention deprecation of fdsavedir.
12695         * lib/savedir.c (streamsavedir): New extern function, whose name
12696         ends in "savedir" to be consistent with the others.  This differs
12697         from savedirstream in that it doesn't close its argument.  The
12698         next version of GNU tar will use this instead of fdsavedir, to
12699         avoid some race conditions and conserve file descriptors.
12700         (savedirstream): Reimplement as a wrapper around streamsavedir.
12701         (fdsavedir): Add a comment deprecating this function.  As far as
12702         I know, only GNU tar used it, and GNU tar doesn't need it any more.
12703         * lib/savedir.h (streamsavedir): New decl.
12704         (fdsavedir): Add a comment deprecating this.
12705
12706 2010-09-10  Bruno Haible  <bruno@clisp.org>
12707
12708         langinfo: Fix last commit.
12709         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
12710         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
12711         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12712
12713 2010-09-10  Bruno Haible  <bruno@clisp.org>
12714
12715         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
12716         * lib/progreloc.c (O_EXEC): Define fallback.
12717
12718 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
12719
12720         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
12721         * NEWS: Document recent changes to fcntl-h.
12722         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
12723         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
12724         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
12725         Similarly for O_SEARCH; this last was already true, but not documented.
12726         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
12727         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
12728         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
12729         Likewise.
12730         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
12731         is zero, not whether it is defined.
12732         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
12733         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
12734         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
12735
12736 2010-09-10  Bruno Haible  <bruno@clisp.org>
12737
12738         langinfo, nl_langinfo: Fix for IRIX 5.3.
12739         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
12740         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
12741         HAVE_LANGINFO_YESEXPR.
12742         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
12743         HAVE_LANGINFO_YESEXPR.
12744         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
12745         HAVE_LANGINFO_T_FMT_AMPM is 0.
12746         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
12747         HAVE_LANGINFO_YESEXPR is 0.
12748         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
12749         NOEXPR.
12750         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
12751         * doc/posix-functions/nl_langinfo.texi: Likewise.
12752         Reported by Eric Blake.
12753
12754 2010-09-10  Bruno Haible  <bruno@clisp.org>
12755
12756         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
12757         * doc/glibc-functions/login_tty.texi: Mention the include file problem
12758         on FreeBSD 8.0 and OpenBSD 4.6.
12759         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
12760         * m4/pty_h.m4 (gl_PTY_H): Likewise.
12761         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
12762         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
12763         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
12764         ac_includes_default.
12765         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12766
12767 2010-09-09  Eric Blake  <eblake@redhat.com>
12768
12769         strsignal: work around NetBSD bug
12770         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
12771         * lib/string.in.h (includes): Likewise.
12772         * doc/posix-functions/strsignal.texi (strsignal): Document the
12773         bug.
12774         Reported by Nelson H. F. Beebe.
12775
12776         gnulib-tool: work with NetBSD /bin/sh
12777         * gnulib-tool (func_cache_var, func_cache_lookup_module)
12778         (func_get_description, func_get_comment, func_get_status)
12779         (func_get_notice, func_get_applicability, func_get_filelist)
12780         (func_get_dependencies, func_get_autoconf_early_snippet)
12781         (func_get_autoconf_snippet, func_get_automake_snippet)
12782         (func_get_include_directive, func_get_link_directive)
12783         (func_get_license, func_get_maintainer, func_import): Avoid
12784         shell syntax errors from parsing syntax extensions.
12785
12786 2010-09-09  Bruno Haible  <bruno@clisp.org>
12787
12788         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
12789         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
12790         a reliable way to determine whether the 'alias' command works.
12791
12792 2010-09-08  Jim Meyering  <meyering@redhat.com>
12793
12794         init.sh: penalize a set-x-impaired shell; don't disqualify it
12795         * tests/init.sh: Too many shells corrupt application stderr when
12796         you set -x, so we can't afford to disqualify them, since at least
12797         on Irix-6.5, that would disqualify all bourne shells.
12798         Instead, use a two-pass approach.
12799         On the first pass, try to find a shell that meets the stricter
12800         condition that set -x does not corrupt stderr.
12801         If no shell meets the stricter condition, retest each candidate
12802         shell, but without that extra condition.  Finally, when
12803         VERBOSE=yes is requested and set -x might cause trouble, simply
12804         issue a warning and refrain from enabling debug output.
12805
12806 2010-09-08  Eric Blake  <eblake@redhat.com>
12807
12808         unsetenv: fix OpenBSD bug
12809         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
12810         * doc/posix-functions/unsetenv.texi (unsetenv): Update
12811         documentation.
12812         Reported by Jim Meyering.
12813
12814         strtod: work around IRIX 6.5 bug
12815         * lib/strtod.c (strtod): Reparse number on shorter string if
12816         exponent parse was invalid.
12817         * tests/test-strtod.c (main): Add check for "0x1p 2".
12818         Reported by Tom G. Christensen.
12819
12820         getopt: optimize previous patch
12821         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
12822         empty variable.  Speed up awk script.
12823         Reported by Paolo Bonzini.
12824
12825 2010-09-08  Jim Meyering  <meyering@redhat.com>
12826
12827         test.sh: disqualify shells for which set -x corrupts stderr
12828         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
12829         and OpenBSD 4.7.  They make it so with "set -x", environment settings
12830         appear in stderr output.  For example, this command:
12831             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
12832         prints "P=1" on those two systems:
12833
12834 2010-09-08  Bruno Haible  <bruno@clisp.org>
12835
12836         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
12837         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
12838         commands, because some shells ignore redirections when there is an
12839         error in the command lookup.
12840         Reported by Eric Blake.
12841
12842 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
12843
12844         * lib/regex.h: Fix a mention of `regex_compile' (should be
12845         `re_compile_pattern').
12846         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
12847         (re_set_registers): Correct name of parameter in comment.
12848
12849         * doc/regex.texi: Add documentation for missing syntax flags.
12850         Remove commented-out documentation of defunct syntax option
12851         RE_NO_EMPTY_ALTS.
12852         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
12853         Add documentation of re_set_registers.
12854         Document trick to re-use a pattern buffer by setting fastmap manually.
12855         Update documentation of struct re_pattern_buffer per public members.
12856         Uncomment documentation of equivalence class operators and
12857         collating symbol operators, since they are now implemented,
12858         Explain leftmost-longest matching in relation to alternatives.
12859         Tidy documentation of substring matching.
12860         Remove POSIX documentation, which is done better in
12861         glibc, and refer the reader there. Keep BSD API documentation, as
12862         that is not readily available elsewhere.
12863
12864 2010-09-07  Eric Blake  <eblake@redhat.com>
12865
12866         getopt: handle POSIXLY_CORRECT set but not exported
12867         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
12868         export state of POSIXLY_CORRECT, due to bash set -o posix.
12869         Reported by Dustin J. Mitchell.
12870
12871 2010-09-05  Bruno Haible  <bruno@clisp.org>
12872
12873         gnulib-tool: Highlight the changed options.
12874         * gnulib-tool (func_usage): Display the --import, --add-import,
12875         --remove-import explanations in bold font.
12876
12877 2010-09-06  Karl Berry  <karl@gnu.org>
12878
12879         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
12880
12881 2010-09-05  Bruno Haible  <bruno@clisp.org>
12882
12883         uniwidth/width: Update comment.
12884         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
12885         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
12886
12887 2010-09-05  Bruno Haible  <bruno@clisp.org>
12888
12889         isinf, isnan: Relax license.
12890         * modules/isinf (License): Change from GPL to LGPL, with consent from
12891         Ben Pfaff.
12892         * modules/isnan (License): Likewise.
12893         Requested by Ludovic Courtès.
12894
12895 2010-09-04  Bruno Haible  <bruno@clisp.org>
12896
12897         gnulib-tool: Help migration from --import to --add-import or --update.
12898         * gnulib-tool: Emit a verbose error message when --import is used
12899         without any module name.
12900
12901 2010-09-04  Bruno Haible  <bruno@clisp.org>
12902
12903         Update doc about gnulib-tool.
12904         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
12905         'gnulib-tool --update' in more detail.
12906         Reported by Eric Blake.
12907
12908 2010-09-04  Bruno Haible  <bruno@clisp.org>
12909
12910         gnulib-tool: Change --import. New options --add/remove-import.
12911         * gnulib-tool: New options --add-import, --remove-import.
12912         (func_usage): Document them.
12913         (have_associative): Define always.
12914         (func_import): In import mode, don't merge the specified settings with
12915         the cached settings. Implement remove-import mode.
12916         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
12917         Explain when to use them versus --import.
12918         (Simple update): Use --add-import instead of --import.
12919         * NEWS: Mention the change.
12920
12921 2010-09-04  Bruno Haible  <bruno@clisp.org>
12922
12923         * doc/gnulib-tool.texi (Initial import): Update paragraph about
12924         separate gnulib.mk.
12925
12926 2010-09-04  Bruno Haible  <bruno@clisp.org>
12927
12928         gnulib-tool: Don't talk about CVS any more.
12929         * gnulib-tool (func_usage, func_import): Write "version control"
12930         instead of CVS.
12931
12932 2010-09-04  Jim Meyering  <meyering@redhat.com>
12933
12934         maint.mk: avoid obscure sc_copyright_check failure in coreutils
12935         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
12936         false positives (whose names may be ill-chosen) when searching
12937         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
12938         would cause a false-positive.
12939
12940         avoid coreutils "make distcheck" failure
12941         Coreutils tests with an absolute build directory name that contains
12942         a space.  Not quoting this directory name caused a failure.
12943         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
12944         * tests/test-vc-list-files-cvs.sh: Likewise.
12945
12946 2010-09-04  Bruno Haible  <bruno@clisp.org>
12947
12948         gnulib-tool: Avoid error when run in a package without Makefile.am.
12949         * gnulib-tool: When collecting the m4dirs in a package that does not
12950         have a Makefile.am, eliminate those directories that contain no
12951         gnulib-cache.m4. Fix expression that counts these directories.
12952
12953 2010-09-04  Bruno Haible  <bruno@clisp.org>
12954
12955         update-copyright test: Improve output when perl is missing or too old.
12956         * tests/test-update-copyright.sh: Move test of Perl version down after
12957         the test whether Perl exists. Provide an explanation relating Perl's
12958         error message to Automake's SKIP: message.
12959
12960 2010-09-04  Bruno Haible  <bruno@clisp.org>
12961
12962         Don't augment PATH in TESTS_ENVIRONMENT.
12963         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
12964         set abs_aux_dir instead of augmenting PATH.
12965         * modules/vc-list-files-tests (Makefile.am): Likewise.
12966         * tests/test-update-copyright.sh: Augment PATH here.
12967         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
12968         path_prepend_.
12969         * tests/test-vc-list-files-git.sh: Likewise.
12970
12971 2010-09-04  Jim Meyering  <meyering@redhat.com>
12972
12973         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
12974         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
12975
12976 2010-09-04  Bruno Haible  <bruno@clisp.org>
12977
12978         strdup: Fix compilation error in C++ mode.
12979         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
12980         the macro.
12981
12982 2010-09-04  Bruno Haible  <bruno@clisp.org>
12983
12984         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
12985         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
12986         macro into a function.
12987         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
12988
12989 2010-09-04  Bruno Haible  <bruno@clisp.org>
12990
12991         Set PATH_SEPARATOR the same way autoconf does.
12992         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
12993         the value of PATH_SEPARATOR the same way autoconf-generated configure
12994         scripts do.
12995         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
12996         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
12997
12998 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
12999
13000         Set PATH_SEPARATOR the same way autoconf does.
13001         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
13002         the same way autoconf-generated configure scripts do.
13003         * posix-modules: Likewise.
13004
13005 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
13006
13007         hash: fix safe_hasher const typo
13008         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
13009         const; otherwise, there is a type error later.
13010
13011 2010-09-02  Jim Meyering  <meyering@redhat.com>
13012
13013         test-update-copyright.sh: require perl 5.8.0
13014         * tests/test-update-copyright.sh: Require 5.8.0,
13015         which Tom G. Christensen has confirmed is adequate,
13016         while 5.6.1 is not.
13017
13018 2010-09-02  Eric Blake  <eblake@redhat.com>
13019
13020         tests: init.sh improvements for re-exec'ing with zsh
13021         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
13022         -vx through shell re-exec.
13023         Reported by Tom G. Christensen.
13024
13025         wctype: fix typo in previous commit
13026         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
13027         Reported by Ludovic Courtès.
13028
13029 2010-09-02  Jim Meyering  <meyering@redhat.com>
13030
13031         test-update-copyright.sh: skip test if Perl is too old
13032         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
13033         Reported by Tom G. Christensen.
13034
13035 2010-09-02  Bruno Haible  <bruno@clisp.org>
13036
13037         wctype: Avoid compilation error on IRIX 6.5.30.
13038         * lib/wctype.in.h (iswblank): Declare with a replacement if
13039         REPLACE_ISWBLANK is set.
13040         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
13041         declared. Set REPLACE_ISWBLANK.
13042         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
13043         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
13044         * doc/posix-headers/wctype.texi: Likewise.
13045         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13046
13047 2010-09-01  Bruno Haible  <bruno@clisp.org>
13048
13049         New module 'socketlib'.
13050         * modules/socketlib: New file.
13051         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
13052         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
13053         * modules/sockets (Depends-on): Add socketlib.
13054         Suggested by Sam Steingold <sds@gnu.org>.
13055
13056 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
13057
13058         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
13059
13060         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
13061         when one needs search access to a directory but not read access.
13062         On systems where it is available, it works in some cases where
13063         O_RDONLY does not, namely on directories that are searchable but
13064         not readable, and which need only to be searchable.  If O_SEARCH
13065         is not available, fall back to the traditional method of using
13066         O_RDONLY.
13067
13068         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
13069         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
13070         when opening a directory that needs only to be searchable.
13071         * lib/chdir-safer.c (chdir_no_follow): Likewise.
13072         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
13073         * lib/openat-proc.c (openat_proc_name): Likewise.
13074         * lib/openat.c (openat_needs_fchdir): Likewise.
13075         * lib/save-cwd.c (save_cwd): Likewise.
13076         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
13077
13078 2010-08-28  Bruno Haible  <bruno@clisp.org>
13079
13080         New module 'host-cpu-c-abi'.
13081         * modules/host-cpu-c-abi: New file.
13082         * m4/host-cpu-c-abi.m4: New file, based on part of
13083         clisp/src/m4/general.m4.
13084         Requested by Sam Steingold <sds@gnu.org>.
13085
13086 2010-08-31  Eric Blake  <eblake@redhat.com>
13087         and Jim Meyering  <meyering@redhat.com>
13088
13089         hash: factor, and guard against misbehaving hasher function
13090         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
13091         of table->hasher's return value.  Also protect against a hash value
13092         so large that adding it to table->bucket results in a NULL pointer.
13093         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
13094         Use it in place of open-coded check-and-abort.
13095
13096 2010-08-30  Bruno Haible  <bruno@clisp.org>
13097
13098         hash: silence spurious clang warning
13099         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
13100         Reported by Eric Blake.
13101
13102 2010-08-30  Eric Blake  <eblake@redhat.com>
13103
13104         strstr, memmem, strcasestr: avoid leaked shell message
13105         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
13106         FreeBSD.
13107         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
13108         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
13109
13110         tests: silence clang warning
13111         * tests/test-malloca.c (do_allocation): Avoid dead store.
13112
13113 2010-08-29  Bruno Haible  <bruno@clisp.org>
13114
13115         gettext: Fix recent mistake.
13116         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
13117
13118 2010-08-29  Bruno Haible  <bruno@clisp.org>
13119
13120         selinux-h: Offer a --without-selinux option.
13121         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
13122         --without-selinux was specified, skip all tests and define
13123         HAVE_SELINUX_SELINUX_H to 0.
13124         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
13125         set LIB_SELINUX to empty.
13126         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
13127         gl_LIBSELINUX. If --without-selinux was specified, replace
13128         selinux/context.h.
13129         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
13130
13131 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13132             Bruno Haible  <bruno@clisp.org>
13133
13134         Make the module 'realloc-gnu' work again on AIX and OSF/1.
13135         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
13136         of HAVE_REALLOC.
13137         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
13138         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
13139         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
13140         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
13141
13142 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13143             Bruno Haible  <bruno@clisp.org>
13144
13145         Make the module 'calloc-gnu' work again on AIX and OSF/1.
13146         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
13147         HAVE_CALLOC.
13148         * lib/xmalloc.c: Update accordingly.
13149         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
13150         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
13151         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
13152
13153 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13154             Bruno Haible  <bruno@clisp.org>
13155
13156         Make the module 'malloc-gnu' work again on AIX and OSF/1.
13157         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
13158         HAVE_MALLOC.
13159         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
13160         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
13161         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
13162
13163 2010-08-29  Bruno Haible  <bruno@clisp.org>
13164
13165         Update modules list.
13166         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
13167         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
13168         (String handling <string.h>): Add astrxfrm.
13169         (File system functions): Add readlinkat.
13170
13171 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13172
13173         Tests for module 'realloc-gnu'.
13174         * modules/realloc-gnu-tests: New file.
13175         * tests/test-realloc-gnu.c: New file.
13176
13177         Tests for module 'calloc-gnu'.
13178         * modules/calloc-gnu-tests: New file.
13179         * tests/test-calloc-gnu.c: New file.
13180
13181         Tests for module 'malloc-gnu'.
13182         * modules/malloc-gnu-tests: New file.
13183         * tests/test-malloc-gnu.c: New file.
13184
13185 2010-08-28  Bruno Haible  <bruno@clisp.org>
13186
13187         Rename module 'realloc' -> 'realloc-gnu'.
13188         * modules/realloc-gnu: New file, copied from modules/realloc.
13189         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
13190         obsolete.
13191         * modules/mgetgroups (Depends-on): Update.
13192         * doc/posix-functions/realloc.texi: Update.
13193         * NEWS: Mention the change.
13194
13195         Rename module 'calloc' -> 'calloc-gnu'.
13196         * modules/calloc-gnu: New file, copied from modules/calloc.
13197         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
13198         obsolete.
13199         * doc/posix-functions/calloc.texi: Update.
13200         * NEWS: Mention the change.
13201
13202         Rename module 'malloc' -> 'malloc-gnu'.
13203         * modules/malloc-gnu: New file, copied from modules/malloc.
13204         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
13205         obsolete.
13206         * modules/argp (Depends-on): Update.
13207         * modules/regex (Depends-on): Update.
13208         * doc/posix-functions/malloc.texi: Update.
13209         * NEWS: Mention the change.
13210
13211 2010-08-28  Eric Blake  <eblake@redhat.com>
13212
13213         pread, pwrite: add missing dependency
13214         * modules/pread (Depends-on): Add extensions.
13215         * modules/pwrite (Depends-on): Likewise.
13216
13217 2010-08-28  Bruno Haible  <bruno@clisp.org>
13218
13219         unistr/u*-strchr: Fix tests dependencies.
13220         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
13221         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
13222         Reported by Ian Beckwith <ianb@erislabs.net>.
13223
13224 2010-08-28  Bruno Haible  <bruno@clisp.org>
13225
13226         read-file: Don't occupy too much unused memory.
13227         * lib/read-file.c (fread_file): Shrink the buffer at the end.
13228
13229 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
13230             Eric Blake  <eblake@redhat.com>
13231             Bruno Haible  <bruno@clisp.org>
13232
13233         read-file: Avoid memory reallocations with regular files.
13234         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
13235         (fread_file): With regular files, use the remaining length as the
13236         initial buffer size.  Check against overflow.
13237         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
13238         sys_stat.
13239
13240 2010-08-28  Bruno Haible  <bruno@clisp.org>
13241
13242         ftello: Relax license.
13243         * modules/ftello (License): Relax to LGPLv2+.
13244         Reported by Eric Blake.
13245
13246 2010-08-28  Bruno Haible  <bruno@clisp.org>
13247
13248         Avoid relocwrapper link errors due to gnulib replacement functions.
13249         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
13250         function.
13251         Reported by Ben Pfaff <blp@cs.stanford.edu>.
13252
13253 2010-08-28  Bruno Haible  <bruno@clisp.org>
13254
13255         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
13256         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
13257         defined.
13258         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
13259         Suggested by Eric Blake.
13260
13261 2010-08-28  Bruno Haible  <bruno@clisp.org>
13262
13263         sys_socket, netdb: Ensure socklen_t gets defined.
13264         * modules/sys_socket (Depends-on): Add socklen.
13265         * modules/netdb (Depends-on): Likewise.
13266         * modules/getaddrinfo (Depends-on): Remove socklen.
13267         * modules/getsockopt (Depends-on): Likewise.
13268         * modules/setsockopt (Depends-on): Likewise.
13269         * tests/test-sys_socket.c: Check that socklen_t is defined.
13270         * tests/test-netdb.c: Likewise.
13271         * m4/socklen.m4: Update comments.
13272         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13273
13274 2010-08-27  Eric Blake  <eblake@redhat.com>
13275
13276         login_tty: add missing dependency
13277         * modules/login_tty (Depends-on): Add pty.
13278
13279 2010-08-26  Eric Blake  <eblake@redhat.com>
13280
13281         lib-symbol-versions: fix m4 quoting
13282         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
13283         format for AC_LINK_IFELSE.
13284
13285         glob: fix compile test
13286         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
13287
13288         btowc: fix missing file
13289         * modules/btowc (Files): Also ship locale-fr.m4.
13290
13291         lseek: fix link test
13292         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
13293         AC_LINK_IFELSE.
13294
13295         include_next: silence autoconf 2.68 warning
13296         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
13297         AC_COMPILE_IFELSE as special.
13298         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
13299         autoconf < 2.68.
13300
13301         acl: fix compilation test
13302         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
13303         AC_COMPILE_IFELSE.
13304
13305 2010-08-26  Bruno Haible  <bruno@clisp.org>
13306
13307         Modernize AC_TRY_RUN invocations.
13308         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
13309         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
13310         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
13311         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
13312         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
13313         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
13314         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
13315         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
13316         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
13317         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
13318         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
13319         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
13320         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
13321         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
13322         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
13323         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
13324         gl_MBRLEN_NUL_RETVAL): Likewise.
13325         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
13326         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
13327         Likewise.
13328         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13329         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
13330         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
13331         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
13332         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
13333         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
13334         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
13335         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
13336         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
13337         Likewise.
13338         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
13339         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
13340         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
13341         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
13342         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13343         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
13344         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
13345         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
13346         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13347         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
13348
13349 2010-08-26  Bruno Haible  <bruno@clisp.org>
13350
13351         Modernize AC_TRY_LINK invocations.
13352         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
13353         AC_TRY_LINK.
13354         * m4/argp.m4 (gl_ARGP): Likewise.
13355         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
13356         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
13357         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
13358         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
13359         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
13360         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
13361         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
13362         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
13363         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
13364         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
13365         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
13366         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
13367         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
13368         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
13369         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
13370         * m4/hostent.m4 (gl_HOSTENT): Likewise.
13371         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
13372         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
13373         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
13374         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
13375         Likewise.
13376         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
13377         Likewise.
13378         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
13379         Likewise.
13380         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
13381         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
13382         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
13383         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
13384         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
13385         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
13386         * m4/servent.m4 (gl_SERVENT): Likewise.
13387         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
13388         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
13389         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
13390         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
13391         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
13392         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
13393         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13394         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13395         * modules/tsearch-tests (configure.ac): Likewise.
13396
13397 2010-08-26  Bruno Haible  <bruno@clisp.org>
13398
13399         Modernize AC_TRY_COMPILE invocations.
13400         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
13401         AC_TRY_COMPILE.
13402         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
13403         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
13404         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
13405         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
13406         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
13407         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
13408         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
13409         * m4/lock.m4 (gl_LOCK): Likewise.
13410         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
13411         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
13412         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
13413         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
13414         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
13415         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
13416         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
13417         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
13418         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
13419         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
13420         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
13421         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
13422         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
13423         extraneous semicolon.
13424
13425 2010-08-26  Jim Meyering  <meyering@redhat.com>
13426
13427         stat-time: relax license LGPL
13428         * modules/stat-time (License): Change from GPL to LGPL,
13429         with consent from all contributors, for use in libguile.
13430         Requested by Ludovic Courtès.
13431
13432 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
13433
13434         poll: return immediately on POLLHUP.
13435         * lib/poll.c (poll): Always set timeout before wait_timeout is
13436         computed.
13437
13438 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13439
13440         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
13441         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
13442         rmdir ("dir/.//"), unlinkat.
13443
13444 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
13445
13446         stdbool: avoid spurious failure with modern xlc
13447         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
13448
13449 2010-08-24  Bruno Haible  <bruno@clisp.org>
13450
13451         getloadavg: simplify code
13452         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
13453         gl_have_func. Update comments.
13454
13455 2010-08-24  Eric Blake  <eblake@redhat.com>
13456
13457         getloadavg: don't define SVR4 on cygwin
13458         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
13459         only define SVR4 when -lkvm is required.
13460         Reported by Yaakov Selkowitz.
13461
13462 2010-08-24  Bruno Haible  <bruno@clisp.org>
13463
13464         priv-set: fix comment
13465         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
13466
13467 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
13468
13469         priv-set: fix comments
13470         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
13471         to match code, as suggested by David Bartley in:
13472         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
13473
13474 2010-08-23  Eric Blake  <eblake@redhat.com>
13475
13476         stdbool: avoid rejecting clang
13477         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
13478         * tests/test-stdbool.c: Enable more tests if using the system
13479         <stdbool.h> instead of the gnulib replacement.
13480         (main): Move xlc bug test to a runtime test for all compilers.
13481         Reported by Anders Kaseorg.
13482
13483         argz: fix shell quoting issue
13484         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
13485         Reported by Charles Wilson.
13486
13487 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
13488             Erik Faye-Lund <kusmabite@gmail.com>
13489
13490         poll, select: handle ERROR_BROKEN_PIPE.
13491         * lib/poll.c (win32_compute_revents): Return POLLHUP when
13492         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
13493         * lib/select.c (win32_compute_revents): Do not mark a pipe
13494         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
13495
13496 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
13497
13498         fts: allow compilation with C++
13499         * lib/fts_.h: Specify extern "C" linkage with C++.
13500
13501 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13502
13503         Fix gnulib-tool sed script de-commentation for AIX sed.
13504         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
13505         sed.
13506
13507 2010-08-17  Eric Blake  <eblake@redhat.com>
13508
13509         test-stddef: test for (some) offsetof bugs
13510         * tests/test-stddef.c: Enhance test to ensure correct type of
13511         offsetof.
13512         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
13513         that we are not fixing at this time.
13514
13515 2010-08-15  Bruno Haible  <bruno@clisp.org>
13516
13517         stpncpy: Allow stpncpy to be defined as a macro.
13518         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
13519         if it's already correctly declared.
13520         * lib/string.in.h (stpncpy): Undefine before redefining.
13521         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
13522
13523 2010-08-14  Bruno Haible  <bruno@clisp.org>
13524
13525         Rename module 'memxfrm' to 'amemxfrm'.
13526         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
13527         (amemxfrm): Renamed from memxfrm.
13528         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
13529         (amemxfrm): Renamed from memxfrm.
13530         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
13531         * NEWS: Mention the change.
13532         * MODULES.html.sh (String handling <string.h>): Update.
13533         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
13534         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
13535         * lib/unicase/u16-casexfrm.c: Likewise.
13536         * lib/unicase/u32-casexfrm.c: Likewise.
13537         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
13538         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
13539         * lib/uninorm/u16-normxfrm.c: Likewise.
13540         * lib/uninorm/u32-normxfrm.c: Likewise.
13541         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
13542         memxfrm.
13543         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
13544         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
13545         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
13546         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
13547         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
13548         Suggested by Paul Eggert.
13549
13550 2010-08-14  Bruno Haible  <bruno@clisp.org>
13551
13552         Tests for module 'astrxfrm'.
13553         * modules/astrxfrm-tests: New file.
13554         * tests/test-astrxfrm.c: New file.
13555
13556         New module 'astrxfrm'.
13557         * lib/astrxfrm.h: New file.
13558         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
13559         * modules/astrxfrm: New file.
13560
13561 2010-08-14  Reuben Thomas <rrt@sc3d.org>
13562
13563         regex: Tweak doc.
13564         * doc/regex.texi (Overview): Don't mention regex.c.
13565         (GNU Regular Expression Compiling): Likewise.
13566         (Match-end-of-line Operator): Mention 'not_eol'.
13567
13568 2010-08-14  Brian Gough  <bjg@gnu.org>
13569             Bruno Haible  <bruno@clisp.org>
13570
13571         git-merge-changelog: add doc relating to use with bzr and hg.
13572         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
13573
13574 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
13575
13576         pthread: fix pthread.h creation for srcdir != builddir
13577         * modules/pthread (Makefile.am): Fix the rule to work also in a
13578         non-srcdir build.
13579
13580 2010-08-13  Karl Berry  <karl@gnu.org>
13581
13582         * doc/regex.texi (Predefined Syntaxes): @smallexample.
13583         * doc/posix-*/*: force line break before @url of POSIX
13584         specifications.
13585         Suggested by Werner Lemberg.
13586
13587 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
13588
13589         strtod: fix const diagnostic
13590         * lib/strtod.c (strtod): Don't assign const char * to char *,
13591         as this elicits a warning from GCC when warnings are enabled.
13592
13593 2010-08-10  Pádraig Brady <P@draigbrady.com>
13594         and Eric Blake  <eblake@redhat.com>
13595
13596         copy-acl: ignore ENOTSUP on HP-UX
13597         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
13598         so that it is available for HP-UX.
13599         * lib/copy-acl.c (qcopy_acl): Use it.
13600         Reported by Patrick M. Callahan.
13601
13602 2010-08-10  Eric Blake  <eblake@redhat.com>
13603
13604         open, chown: relax license
13605         * modules/open (License): Change to LGPLv2+, with consent by all
13606         authors, for use in augeas.
13607         * modules/chown (License): Likewise.
13608         * modules/lchown (Likewise): Likewise.
13609         Requested by Adam Stokes.
13610
13611 2010-08-09  Karl Berry  <karl@gnu.org>
13612
13613         * build-aux/ar-lib: new file, import from Automake.
13614         * config/srclist.txt: autocheck for updates.
13615
13616 2010-08-09  Eric Blake  <eblake@redhat.com>
13617
13618         readlinkat: adjust client modules
13619         * modules/areadlinkat (Depends-on): Use readlinkat, not
13620         symlinkat.
13621         * modules/areadlinkat-with-size (Depends-on): Likewise.
13622
13623         mknod: be more vocal about danger of running tests as root
13624         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
13625         root, since that is just asking for problems.
13626         Suggested by Bruno Haible, based on a report by Rainer Tammer.
13627
13628         readlinkat: split into its own module
13629         * modules/symlinkat: Split readlinkat...
13630         * modules/readlinkat: ...into separate module.
13631         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
13632         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
13633         * lib/symlinkat.c (readlinkat): Move...
13634         * lib/readlinkat.c: ...into new file.
13635         * modules/symlinkat-tests: Split readlinkat test...
13636         * modules/readlinkat-tests: ...into separate module.
13637         * tests/test-symlinkat.c: Split...
13638         * tests/test-readlinkat.c: ...into new file.
13639         * NEWS: Document the split.
13640         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
13641         * lib/unistd.in.h (readlinkat): Likewise.
13642         Suggested by Bruno Haible.
13643
13644 2010-08-08  Bruno Haible  <bruno@clisp.org>
13645
13646         memxfrm: Speed up.
13647         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
13648         that usually only one call to strxfrm is necessary for each string
13649         part.
13650         Reported by Paul Eggert <eggert@cs.ucla.edu>.
13651
13652 2010-08-07  Karl Berry  <karl@gnu.org>
13653
13654         * doc/posix-headers/limits.texi,
13655         * doc/posix-functions/malloc.texi,
13656         * doc/posix-functions/strsignal.texi: missing @item.
13657         * doc/ld-version-script.texi: spurious leading i.
13658         * doc/regex.texi (Interval Operators): no commas inside @var.
13659
13660 2010-08-01  Bruno Haible  <bruno@clisp.org>
13661
13662         Integrate the regex documentation.
13663         * doc/gnulib.texi: Define 'cn' index.
13664         (Regular expressions): New a chapter that includes regex.texi and
13665         regexprops-generic.texi.
13666         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
13667         syntax.
13668
13669         Whitespace cleanup.
13670         * doc/regex.texi: Remove trailing spaces.
13671
13672         Add regex documentation.
13673         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
13674         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
13675         Written by Kathy A. Hargreaves and Karl Berry.
13676
13677 2010-08-01  Bruno Haible  <bruno@clisp.org>
13678
13679         link: Update documentation.
13680         * doc/posix-functions/link.texi: Update regarding Solaris.
13681
13682 2010-07-31  Bruno Haible  <bruno@clisp.org>
13683
13684         Update modules list.
13685         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
13686         (String handling <string.h>): Add memcmp2, memxfrm.
13687         (Container data structures): Add xlist, xsublist, xoset.
13688         (Core language properties): Add alignof, unused-parameter.
13689         (Process control, Numeric conversion functions <stdlib.h>): Renamed
13690         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
13691         (Unibyte characters <ctype.h>): New section.
13692         (String handling <string.h>): New section.
13693         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
13694         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
13695         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
13696         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
13697         tan, tanh, tanl, y0, y1, yn.
13698         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
13699         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
13700         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
13701         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
13702         unlockpt, vdprintf, vdprintf-posix.
13703         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
13704         (File system functions): Add concat-filename, sys_file, sys_ioctl,
13705         xconcat-filename.
13706         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
13707         getdtablesize, pipe2, pipe2-safer.
13708         (Security): New section.
13709         (Networking functions): Add accept4.
13710         (Signal handling): Add sigpipe.
13711         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
13712         mbmemcasecoll.
13713         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
13714         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
13715         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
13716         pipe-filter-ii.
13717         (Misc): Add argp-version-etc, login_tty, parse-duration.
13718
13719 2010-07-31  Bruno Haible  <bruno@clisp.org>
13720
13721         Improve doc in MODULES.html.
13722         * modules/linkat (Description): Add the word "function".
13723         * modules/mkfifo (Description): Likewise.
13724         * modules/mknod (Description): Likewise.
13725         * modules/remove (Description): Likewise.
13726         * modules/renameat (Description): Likewise.
13727         * modules/stat (Description): Likewise.
13728         * modules/symlink (Description): Likewise.
13729         * modules/unlink (Description): Likewise.
13730
13731 2010-07-31  Bruno Haible  <bruno@clisp.org>
13732
13733         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
13734         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
13735         option --enable/disable-c++ instead of --enable/disable-cxx.
13736         * NEWS: Mention the change.
13737
13738 2010-07-31  Bruno Haible  <bruno@clisp.org>
13739
13740         readlink, areadlink: Relax test a bit.
13741         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
13742         alternative to ENOTDIR.
13743         * tests/test-areadlink.h (test_areadlink): Likewise.
13744         Reported by Rainer Tammer.
13745
13746 2010-07-31  Bruno Haible  <bruno@clisp.org>
13747
13748         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
13749         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
13750         character, perform the search using U_STRCHR.
13751         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
13752         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
13753         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
13754         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
13755         Suggested by Paolo Bonzini.
13756
13757 2010-07-31  Bruno Haible  <bruno@clisp.org>
13758
13759         unistr/u*-strstr: Fix dependencies.
13760         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
13761         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
13762         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
13763
13764 2010-07-31  Bruno Haible  <bruno@clisp.org>
13765
13766         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
13767         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
13768         the beginning of the loop.
13769         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
13770         cases in 'switch' statement.
13771
13772         unistr/u8-strchr: Fix several bugs.
13773         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
13774         the string. When not found, return NULL, not a pointer near the end.
13775
13776         More tests for unistr/u8-strchr.
13777         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
13778         that the function does not read past the first occurrence of the byte
13779         being searched.
13780         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
13781         * tests/unistr/test-u16-strchr.c (main): New function.
13782         * tests/unistr/test-u32-strchr.c (main): New function.
13783
13784 2010-07-31  Bruno Haible  <bruno@clisp.org>
13785
13786         posix-modules: Ignore backup files of documentation files.
13787         * posix-modules: grep only through files named *.texi.
13788
13789 2010-07-31  Bruno Haible  <bruno@clisp.org>
13790
13791         symlinkat: Fix documentation.
13792         * doc/posix-functions/readlinkat.texi: Fix module name.
13793
13794 2010-07-31  Bruno Haible  <bruno@clisp.org>
13795
13796         fchownat: Replace also when chown has the trailing slash bug.
13797         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
13798         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
13799         introduced on 2010-04-10.
13800         Reported by Rainer Tammer.
13801
13802 2010-07-31  Bruno Haible  <bruno@clisp.org>
13803
13804         linkat: Work around AIX 7.1 bug.
13805         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
13806         whether linkat handles trailing slash correctly. If not, replace linkat
13807         and define LINKAT_TRAILING_SLASH_BUG.
13808         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
13809         check whether (fd1,file1) points to a directory if file1 or file2 ends
13810         in a slash. Code taken from lib/link.c.
13811         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
13812         Reported by Rainer Tammer.
13813
13814 2010-07-31  Bruno Haible  <bruno@clisp.org>
13815
13816         Correctly determine whether pow is available in libc on AIX 7 with xlc.
13817         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
13818         This disables an xlc optimization that was causing wrong test results.
13819         Reported by Rainer Tammer.
13820
13821 2010-07-31  Bruno Haible  <bruno@clisp.org>
13822
13823         iconv: Work around AIX 6.1..7.1 bug.
13824         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
13825         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
13826         cross-compiling, guess no on all versions of AIX.
13827         Reported by Rainer Tammer.
13828
13829 2010-07-31  Bruno Haible  <bruno@clisp.org>
13830
13831         readlink: Relax test a bit.
13832         * tests/test-readlink.h (test_readlink): Allow different errno value
13833         when readlink is called with a file name that ends in / and refers to
13834         a file.
13835         Suggested by Eric Blake.
13836         Reported by Rainer Tammer.
13837
13838 2010-07-31  Bruno Haible  <bruno@clisp.org>
13839
13840         copysign: Does not require -lm on glibc systems.
13841         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
13842         gl_COMMON_DOUBLE_MATHFUNC.
13843         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
13844
13845 2010-07-31  Bruno Haible  <bruno@clisp.org>
13846
13847         duplocale: Work around AIX 7.1 bug.
13848         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
13849         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
13850         * lib/duplocale.c (rpl_duplocale): Update comment.
13851         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
13852         Reported by Rainer Tammer.
13853
13854 2010-07-30  Bruno Haible  <bruno@clisp.org>
13855
13856         dirfd: Avoid link error on AIX 7.1.
13857         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
13858         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
13859         exist, set REPLACE_DIRFD.
13860         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
13861         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
13862         * doc/posix-functions/dirfd.texi: Update.
13863         Reported by Rainer Tammer.
13864
13865 2010-07-30  Eric Blake  <eblake@redhat.com>
13866
13867         strtod: next round of AIX fixes
13868         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
13869         exponent.
13870         * tests/test-strtod.c (main): Enhance tests.
13871         * doc/posix-functions/strtod.texi (strtod): Document next bug.
13872         Reported by Rainer Tammer.
13873
13874         futimens: fix configure check
13875         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
13876         Reported by Bruno Haible.
13877
13878 2010-07-30  Bruno Haible  <bruno@clisp.org>
13879
13880         getline: Update regarding AIX.
13881         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
13882         Reported by Rainer Tammer.
13883
13884 2010-07-30  Bruno Haible  <bruno@clisp.org>
13885
13886         wcwidth: Drop replacement on AIX 7.
13887         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
13888         AIX 7.
13889         Reported by Rainer Tammer.
13890
13891 2010-07-30  Bruno Haible  <bruno@clisp.org>
13892
13893         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
13894         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
13895         a 'char *'.
13896         Reported by Rainer Tammer.
13897
13898 2010-07-30  Bruno Haible  <bruno@clisp.org>
13899
13900         unlink: Update regarding AIX.
13901         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
13902         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
13903         Reported by Rainer Tammer.
13904
13905 2010-07-30  Bruno Haible  <bruno@clisp.org>
13906
13907         symlink: Update regarding AIX.
13908         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
13909         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
13910         Reported by Rainer Tammer.
13911
13912 2010-07-30  Bruno Haible  <bruno@clisp.org>
13913
13914         strndup: Update regarding AIX.
13915         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
13916         AIX 7.
13917         Reported by Rainer Tammer.
13918
13919 2010-07-30  Bruno Haible  <bruno@clisp.org>
13920
13921         stat: Update regarding AIX.
13922         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
13923         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
13924         Reported by Rainer Tammer.
13925
13926 2010-07-30  Bruno Haible  <bruno@clisp.org>
13927
13928         truncl: Fix autoconf test.
13929         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
13930         whether truncl works.
13931         Reported by Rainer Tammer.
13932
13933 2010-07-30  Bruno Haible  <bruno@clisp.org>
13934
13935         round: Update regarding AIX.
13936         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
13937         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
13938         Reported by Rainer Tammer.
13939
13940 2010-07-30  Bruno Haible  <bruno@clisp.org>
13941
13942         rename: Update regarding AIX.
13943         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
13944         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
13945         Reported by Rainer Tammer.
13946
13947 2010-07-30  Bruno Haible  <bruno@clisp.org>
13948
13949         printf.m4: Update regarding AIX.
13950         * m4/printf.m4: Update comments regarding AIX.
13951         Reported by Rainer Tammer.
13952
13953 2010-07-30  Bruno Haible  <bruno@clisp.org>
13954
13955         iconv: Update regarding AIX.
13956         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
13957         AIX 7.
13958         Reported by Rainer Tammer.
13959
13960 2010-07-30  Bruno Haible  <bruno@clisp.org>
13961
13962         getopt: Update regarding AIX.
13963         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
13964         no on AIX.
13965         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
13966         Reported by Rainer Tammer.
13967
13968 2010-07-30  Bruno Haible  <bruno@clisp.org>
13969
13970         ldexpl; Update regarding AIX.
13971         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
13972         on AIX 7.
13973         Reported by Rainer Tammer.
13974
13975 2010-07-30  Bruno Haible  <bruno@clisp.org>
13976
13977         frexpl: Update regarding AIX.
13978         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
13979         on AIX 7.
13980         Reported by Rainer Tammer.
13981
13982 2010-07-30  Bruno Haible  <bruno@clisp.org>
13983
13984         open, fopen: Update regarding AIX.
13985         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
13986         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
13987         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
13988         * doc/posix-functions/fopen.texi: Likewise.
13989         Reported by Rainer Tammer.
13990
13991 2010-07-30  Bruno Haible  <bruno@clisp.org>
13992
13993         chown: Update doc regarding AIX.
13994         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
13995         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
13996         Reported by Rainer Tammer.
13997
13998 2010-07-30  Eric Blake  <eblake@redhat.com>
13999
14000         strtod: fix bug in replacement function on AIX
14001         * lib/strtod.c (strtod): Special case broken "0x" parse in
14002         underlying strtod.
14003         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
14004         * doc/posix-functions/strtod.texi (strtod): Likewise.
14005         Reported by Rainer Tammer.
14006
14007 2010-07-30  Bruno Haible  <bruno@clisp.org>
14008
14009         mbrlen: Fix cross-compilation guess for AIX.
14010         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
14011         guess. Leftover from 2008-12-22.
14012
14013 2010-07-30  Bruno Haible  <bruno@clisp.org>
14014
14015         mbrtowc: Fix cross-compilation guess for AIX.
14016         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
14017         guess. Leftover from 2008-12-21.
14018
14019 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
14020
14021         init.sh: work around trap limitation of some shells
14022         * tests/init.sh (setup_): Move exit trap outside of shell function.
14023
14024 2010-07-29  Eric Blake  <eblake@redhat.com>
14025
14026         strtod: aid debugging
14027         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
14028         understanding why strtod is rejected.
14029
14030 2010-07-28  Bruno Haible  <bruno@clisp.org>
14031
14032         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
14033         * lib/unistr/u8-chr.c: Include <string.h>.
14034         * tests/unistr/test-u8-chr.c: Likewise.
14035         * tests/unistr/test-u16-chr.c: Likewise.
14036         * tests/unistr/test-u32-chr.c: Likewise.
14037         * tests/unistr/test-u8-strchr.c: Likewise.
14038         * tests/unistr/test-u16-strchr.c: Likewise.
14039         * tests/unistr/test-u32-strchr.c: Likewise.
14040         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
14041         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
14042         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
14043         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
14044
14045 2010-07-28  Bruno Haible  <bruno@clisp.org>
14046
14047         Use spaces for indentation, not tabs.
14048         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
14049
14050 2010-07-27  Bruno Haible  <bruno@clisp.org>
14051
14052         mbspcasecmp: Fix function specification.
14053         * lib/string.in.h (mbspcasecmp): Fix specification comment.
14054         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
14055         Reported by Eric Blake <eblake@redhat.com>.
14056
14057 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
14058
14059         timespec: use cast and not conditional, as truncation isn't possible
14060         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
14061         instead of a conditional.  Comment about the situation in more detail.
14062         This undoes most of the 2009-10-29 patch.
14063
14064 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
14065
14066         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
14067         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
14068         * lib/unistr/u8-strchr.c: Likewise.
14069         * modules/unistr/u8-chr: Depend on memchr.
14070
14071         unistr/u*-strchr: add tests
14072         * modules/unistr/u8-strchr-tests: New file.
14073         * modules/unistr/u16-strchr-tests: New file.
14074         * modules/unistr/u32-strchr-tests: New file.
14075         * tests/unistr/test-strchr.h: New file.
14076         * tests/unistr/test-u8-strchr.c: New file.
14077         * tests/unistr/test-u16-strchr.c: New file.
14078         * tests/unistr/test-u32-strchr.c: New file.
14079
14080         unistr/u*-chr: test multibyte sequences more
14081         * tests/unistr/test-chr.h: Do complete testing of the characters in the
14082         test vector.
14083         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
14084         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
14085         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
14086
14087         unistr/u*-chr: test multibyte sequences
14088         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
14089
14090         unistr/u*-chr: prepare for multibyte tests
14091         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
14092         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
14093         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
14094         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
14095         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
14096         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
14097
14098 2010-07-18  Bruno Haible  <bruno@clisp.org>
14099
14100         unistr/u8-strchr: Optimize non-ASCII argument case.
14101         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
14102         because the first byte often matches anyway.
14103         Reported by Pádraig Brady <P@draigbrady.com>.
14104
14105 2010-07-15  Karl Berry  <karl@gnu.org>
14106
14107         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
14108
14109 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
14110
14111         getcwd: on Solaris, work better if ancestors are inaccessible
14112         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
14113         buffer and size, try again with a large buffer.  This works better
14114         on Solaris, since its getcwd succeeds even if the path to the root
14115         is inaccessible, and this is helpful in common cases such as .zfs
14116         hidden directories.  Problem reported by J Chapman Flack in
14117         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
14118         Use system getcwd if it's declared, not merely if it's partly
14119         working; use the partly-working test only to avoid needless effort
14120         if the system getcwd fails.
14121         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
14122         comment that was already obsolete and is now even more obsolete.
14123         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
14124         now might call strdup.
14125
14126 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
14127
14128         pthread: Add enough so that coreutils/src/sort.c compiles.
14129         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
14130         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
14131         gnulib. Include <sched.h> and <time.h>, as per POSIX.
14132         Include <sys/types.h>, in case it defines pthread_t.
14133         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
14134         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
14135         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
14136         (pthread_rwlockattr_t, pthread_spinlock_t):
14137         New typedefs, if HAVE_PTHREAD_T is not defined.
14138         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
14139         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
14140         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
14141         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
14142         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
14143         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
14144         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
14145         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
14146         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
14147         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
14148         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
14149         New macros.
14150         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
14151         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
14152         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
14153         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
14154         (pthread_spin_unlock): New dummy functions.
14155         (pthread_create): Return EAGAIN; don't set errno.
14156         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
14157         require AC_C_INLINE.
14158         * modules/pthread (Depends-on): Add sched, time.
14159         (pthread.h): Use AM_V_GEN.
14160
14161 2010-07-13  Bruno Haible  <bruno@clisp.org>
14162
14163         striconveh: Don't malloc memory if the result buffer is sufficient.
14164         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
14165         buffer if its size is sufficient.
14166         Reported by Ludovic Courtès <ludo@gnu.org>.
14167
14168 2010-07-13  Bruno Haible  <bruno@clisp.org>
14169
14170         strtod: Add safety check.
14171         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
14172
14173 2010-07-12  Bruno Haible  <bruno@clisp.org>
14174
14175         Unify tests that set gl_cv_func_ldexpl_no_libm.
14176         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
14177         gl_FUNC_LDEXPL.
14178         (gl_FUNC_LDEXPL): Invoke it.
14179         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
14180
14181 2010-07-12  Bruno Haible  <bruno@clisp.org>
14182
14183         Unify tests that set gl_cv_func_ldexp_no_libm.
14184         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
14185         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
14186         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
14187         (configure.ac): Simply invoke gl_FUNC_LDEXP.
14188         * modules/strtod (Files): Add m4/ldexp.m4.
14189
14190 2010-07-12  Bruno Haible  <bruno@clisp.org>
14191
14192         Unify tests that set gl_cv_func_frexpl_no_libm.
14193         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
14194         gl_FUNC_FREXPL_NO_LIBM.
14195         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
14196         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
14197
14198 2010-07-12  Bruno Haible  <bruno@clisp.org>
14199
14200         Unify tests that set gl_cv_func_frexp_no_libm.
14201         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
14202         gl_FUNC_FREXP_NO_LIBM.
14203         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
14204         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
14205
14206 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
14207
14208         memcoll: clarify sizes versus lengths, document better, and tweak perf
14209         * lib/memcoll.c (strcoll_loop, memcoll0):
14210         Improve quality of descriptive comments.  Name variables
14211         consistently as to whether they are lengths (which do not include
14212         terminating null) versus sizes (which do).
14213         * lib/xmemcoll.c (xmemcoll0): Likewise.
14214         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
14215         returned when s1size == 0; this is easier to compile and saves
14216         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
14217
14218 2010-07-12  Bruno Haible  <bruno@clisp.org>
14219
14220         Tests for module '_Exit'.
14221         * modules/_Exit-tests: New file.
14222         * tests/test-_Exit.sh: New file.
14223         * tests/test-_Exit.c: New file.
14224
14225         New module '_Exit'.
14226         * lib/stdlib.in.h (__attribute__): New macro.
14227         (_Exit): New declaration.
14228         * lib/_Exit.c: New file.
14229         * m4/_Exit.m4: New file.
14230         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
14231         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
14232         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
14233         * modules/_Exit: New file.
14234         * tests/test-stdlib-c++.cc (_Exit): Check signature.
14235         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
14236
14237 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
14238
14239         strtod: make it more-accurate typically, and don't require libm
14240         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
14241         Include limits.h.  Don't include string.h.
14242         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
14243         (locale_isspace): New function, so that no casts are needed to
14244         check whether *s is a space.
14245         (ldexp): Provide an unused dummy if not available.
14246         (scale_radix_exp, parse_number, underlying_strtod): New functions.
14247         (strtod): Use them.  This implementation prefers to use the
14248         underlying strtod if available, falling back on our own code
14249         only to fix known bugs.  This is more likely to produce an
14250         accurate result.  Also, it avoids the use of libm functions.
14251         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
14252         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
14253         was absent, but it caused a test failure with coreutils.
14254         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
14255         with libm.
14256         * modules/strtod (Makefile.am, Link): libm is no longer needed.
14257         * modules/strtod-tests (Makefile.am): Likewise.
14258
14259 2010-07-11  Pádraig Brady  <P@draigBrady.com>
14260             Bruno Haible  <bruno@clisp.org>
14261
14262         unistr/u8-strchr: Optimize ASCII argument case.
14263         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
14264
14265 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
14266
14267         (x)memcoll: minor tweaks
14268         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
14269         is after the type that it qualifies.
14270         (memcoll0): Likewise.
14271         * lib/memcoll.h (memcoll0): Likewise.
14272         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
14273         * lib/xmemcoll.h (xmemcoll0): Likewise.
14274         * lib/memcoll.c (memcoll0): Correct the comment.  This function
14275         differs from memcoll in that the NUL byte is part of the argument.
14276         Omit the abort-checks, as performance is a real issue here.  Plus,
14277         the checks were wrong anyway (an off-by-one error).  Omit local
14278         variable 'diff', as it's a bit clearer that way.
14279         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
14280         no longer needed.
14281
14282 2010-07-08  Chen Guo <chenguo4@yahoo.com>
14283
14284         (x)memcoll: speedup when input is known to be NUL delimited
14285         * lib/memcoll.c: Include stdlib.
14286         (memcoll0): New function.
14287         (strcoll_loop): New function, refactored for use in both memcoll
14288         and memcoll0.
14289         * lib/memcoll.h (memcoll0): Add prototype.
14290         * lib/xmemcoll.c (xmemcoll0): New function.
14291         (collate_error): New function, refactored for use in both xmemcoll
14292         and xmemcoll0.
14293         * lib/xmemcoll.h (xmemcoll0): Add prototype.
14294         * m4/memcoll.m4: add inline invocation.
14295
14296 2010-07-06  Pádraig Brady  <P@draigBrady.com>
14297
14298         * build-aux/bootstrap: Remove any local translations
14299         from the translation project synchronization directory,
14300         so that local only translations are not distributed.
14301
14302 2010-07-04  Bruno Haible  <bruno@clisp.org>
14303
14304         fsusage: Clarify which code applies to which platforms.
14305         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
14306         platform.
14307         * lib/fsusage.c (get_fs_usage): Likewise.
14308
14309 2010-07-04  Bruno Haible  <bruno@clisp.org>
14310
14311         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
14312         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
14313         Reported by Martin Lambers <marlam@marlam.de>.
14314
14315 2010-07-04  Jim Meyering  <meyering@redhat.com>
14316
14317         hash: once again explicitly disallow insertion of NULL
14318         * lib/hash.c (hash_insert0): Reinstate just-removed test:
14319         inserting a NULL pointer cannot work with these functions.
14320         Add a comment with details.
14321         This reverts part of the 2010-07-01 commit, 5bef1a35
14322         "hash: extend module to deal with non-pointer keys".
14323
14324 2010-07-01  Bruno Haible  <bruno@clisp.org>
14325
14326         stdbool: Update doc.
14327         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
14328         Info from Christian Weisgerber <naddy@mips.inka.de>.
14329
14330 2010-07-01  Jim Meyering  <meyering@redhat.com>
14331
14332         hash: extend module to deal with non-pointer keys
14333         * lib/hash.c (hash_insert0): New interface, much like hash_insert
14334         but that allows insertion of non-pointer entries.
14335         Do not disallow an ENTRY value of NULL.
14336         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
14337         * lib/hash.h (hash_insert0): Declare.
14338
14339 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
14340
14341         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
14342         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
14343         not present (i.e. with autoconf 2.59 and when using gettextize, not
14344         gnulib), require AC_GNU_SOURCE instead.
14345
14346 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
14347
14348         idpriv-drop: Fix tests.
14349         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
14350         not to the test-idpriv-droptemp program.
14351
14352 2010-06-29  Bruno Haible  <bruno@clisp.org>
14353
14354         string: Fix syntax error with g++ 2.96.
14355         * lib/string.in.h (__pure__): Remove definition.
14356         (_GL_ATTRIBUTE_PURE): New macro.
14357         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
14358         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
14359         Reported by Christian Weisgerber <naddy@mips.inka.de>.
14360
14361 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
14362
14363         unitypes: Fix bug introduced on 2010-05-18.
14364         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
14365
14366 2010-06-22  Eric Blake  <eblake@redhat.com>
14367
14368         memmem: slight optimization
14369         * lib/str-two-way.h (critical_factorization): Update comments.
14370         Reduce work during factorization phase.
14371         Reported by Carlos Bueno <carlos@bueno.org>.
14372
14373 2010-06-21  Bruno Haible  <bruno@clisp.org>
14374
14375         Fix HAVE_CALLOC_POSIX misnomer.
14376         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
14377         !HAVE_CALLOC_POSIX.
14378         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
14379         HAVE_CALLOC_POSIX.
14380         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
14381         instead of HAVE_CALLOC_POSIX.
14382         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
14383         HAVE_CALLOC_POSIX.
14384
14385         Use modern idiom for calloc() replacement.
14386         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
14387         AC_FUNC_CALLOC.
14388         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
14389         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
14390         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
14391         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
14392         (gl_REPLACE_CALLOC): New macro.
14393
14394 2010-06-21  Bruno Haible  <bruno@clisp.org>
14395
14396         Fix HAVE_REALLOC_POSIX misnomer.
14397         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
14398         !HAVE_REALLOC_POSIX.
14399         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
14400         HAVE_REALLOC_POSIX.
14401         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
14402         instead of HAVE_REALLOC_POSIX.
14403         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
14404         HAVE_REALLOC_POSIX.
14405
14406         Use modern idiom for realloc() replacement.
14407         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
14408         AC_FUNC_REALLOC.
14409         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
14410         Autoconf's AC_FUNC_REALLOC.
14411         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
14412         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
14413         (gl_REPLACE_REALLOC): New macro.
14414         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
14415
14416 2010-06-21  Bruno Haible  <bruno@clisp.org>
14417
14418         Fix HAVE_MALLOC_POSIX misnomer.
14419         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
14420         !HAVE_MALLOC_POSIX.
14421         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
14422         HAVE_MALLOC_POSIX.
14423         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
14424         instead of HAVE_MALLOC_POSIX.
14425         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
14426         HAVE_MALLOC_POSIX.
14427
14428         Use modern idiom for malloc() replacement.
14429         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
14430         AC_FUNC_MALLOC.
14431         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
14432         Autoconf's AC_FUNC_MALLOC.
14433         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
14434         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
14435         (gl_REPLACE_MALLOC): New macro.
14436         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
14437
14438 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
14439
14440         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
14441         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
14442         This macro takes 3 arguments, not 4.
14443
14444 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
14445
14446         ipv6: fix detection under mingw
14447         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
14448         in6_addr.
14449
14450 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
14451
14452         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
14453         that strtod() works when cross-compiling to a glibc version known
14454         to work.
14455
14456 2010-06-15  Bruno Haible  <bruno@clisp.org>
14457
14458         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
14459
14460 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
14461
14462         select: Correct timeout.
14463         * lib/select.c (rpl_select): Compute wait_timeout correctly.
14464
14465 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
14466
14467         git-version-gen: init shell var to avoid env var influence
14468         * build-aux/git-version-gen (v): Init shell var to empty.
14469
14470 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
14471
14472         priv-set: Don't assume that priv.h exists merely because getppriv does.
14473         See Jan Andersen's bug report about AIX 5L in
14474         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
14475         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
14476         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
14477         * lib/priv-set.h: Likewise.
14478         * tests/test-priv-set.c: Likewise.
14479
14480 2010-06-13  Bruno Haible  <bruno@clisp.org>
14481
14482         relocatable: Make it easier to test whether to install wrappers.
14483         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
14484         RELOCATABLE_VIA_WRAPPER.
14485
14486 2010-06-13  Bruno Haible  <bruno@clisp.org>
14487
14488         gnulib-tool: Display specified modules and dependencies differently.
14489         * gnulib-tool (func_show_module_list): New function.
14490         (func_import, func_create_testdir): Invoke it.
14491         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
14492
14493 2010-06-13  Bruno Haible  <bruno@clisp.org>
14494
14495         gnulib-tool: Align code of func_import and func_create_testdir.
14496         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
14497         specified_modules.
14498
14499 2010-06-12  Jim Meyering  <meyering@redhat.com>
14500
14501         test-inttostr: avoid spurious failure on Solaris 9
14502         * tests/test-inttostr.c (main): Skip the test when snprintf fails
14503         to accept "%ju".  Reported by Bruno Haible.
14504
14505 2010-06-11  Jim Meyering  <meyering@redhat.com>
14506
14507         test-sys_socket: mark variables as used more readably
14508         * tests/test-sys_socket.c (main): Mark otherwise unused variables
14509         as "used" explicitly via (void) statement casts.  This is more
14510         readable than using them in an artificial return expression.
14511         Suggestion from Bruno Haible.
14512
14513 2010-06-11  Bruno Haible  <bruno@clisp.org>
14514
14515         Avoid some more warnings from "gcc -Wwrite-strings".
14516         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
14517         to 'const char *'.
14518         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
14519         * tests/test-c-strcasestr.c (main): Likewise.
14520         * tests/test-mbscasestr1.c (main): Likewise.
14521         * tests/test-mbscasestr2.c (main): Likewise.
14522         * tests/test-memmem.c (main): Likewise.
14523         * tests/test-strstr.c (main): Likewise.
14524         * tests/test-strcasestr.c (main): Likewise.
14525
14526 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14527
14528         init.sh: change framework_failure_ to fail with status 99, not 1
14529         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
14530         automake's parallel-tests rule that this is an unexpected failure,
14531         even if the test is listed in XFAIL_TESTS.
14532
14533 2010-06-11  Jim Meyering  <meyering@redhat.com>
14534
14535         test-inttostr: avoid warnings about 4-6KB literal strings
14536         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
14537         Include "macros.h", for its definition of ASSERT.
14538         (CK): s/assert/ASSERT/
14539         * modules/inttostr-tests (Files): Add macros.h.
14540
14541         init.sh: don't use $ME_ or skip_ before they are defined
14542         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
14543         their first uses.  Also hoist their companions: warn_, fail_,
14544         framework_failure_, $stderr_fileno.  Prompted by a patch from
14545         Stefano Lattarini.
14546
14547         test-sys_socket: avoid set-but-not-used warnings from gcc
14548         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
14549         avoid warning about set-but-not-used variables.
14550
14551         test-xvasprintf: avoid 'const' discard warnings
14552         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
14553         "const" when assigning from literal strings.
14554         (test_xasprintf): Add "void" in function argument list to placate
14555         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
14556
14557         tests: avoid compilation warnings in argmatch and exclude tests...
14558         in packages that define ARGMATCH_DIE_DECL, like coreutils.
14559         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
14560         Since it always exits, declare with the "noreturn" attribute.
14561         * tests/test-argmatch.c: Likewise.
14562
14563         tests: avoid 'const' discard warnings in mbsstr tests
14564         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
14565         * tests/test-mbsstr2.c (main): Likewise.
14566
14567         test-verify: avoid warning from gcc's -Wmissing-declarations
14568         * tests/test-verify.c (function): Declare to be static.
14569
14570         test-inttostr.c: include <string.h> for use of strcmp
14571         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
14572
14573         test-linkat: avoid failed assertion on "other" architectures
14574         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
14575         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
14576         sparc: https://bugs.launchpad.net/bugs/591968
14577
14578 2010-06-11  Jim Meyering  <meyering@redhat.com>
14579
14580         printf.m4: avoid autoconf's "Expanded Before Required" warning
14581         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
14582         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
14583         autoconf warning.
14584
14585 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
14586
14587         Replacement header templates are now named with ".in", not "_".
14588         * doc/gnulib-intro.texi: Correct.
14589
14590 2010-06-10  Jim Meyering  <meyering@redhat.com>
14591
14592         inttostr-tests: depend on snprintf, not snprintf-posix
14593         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
14594         snprintf-posix, to avoid this aclocal failure:
14595           missing file gnulib-tests/vasnprintf.c
14596           configure.ac:45: error: expected source file, required through \
14597           AC_LIBSOURCES, not found
14598
14599 2010-06-10  Jim Meyering  <meyering@redhat.com>
14600
14601         inttostr: add a new function, inttostr, and tests
14602         The namesake function was not available.  The existence of the
14603         template file, inttostr.c makes its addition nontrivial.
14604         * lib/anytostr.c: Rename from inttostr.c.
14605         (anytostr): Rename from inttostr.
14606         * lib/inttostr.c: New file.
14607         * modules/inttostr (Files): Add anytostr.c.
14608         (Makefile.am): Set lib_SOURCES instead of ...
14609         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
14610         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
14611         * lib/offtostr.c: Likewise.
14612         * lib/uinttostr.c: Likewise.
14613         * lib/umaxtostr.c: Likewise.
14614         * modules/inttostr-tests: New file.
14615         * tests/test-inttostr.c: New file.  Test these functions.
14616
14617 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
14618             Bruno Haible  <bruno@clisp.org>
14619
14620         Add "Extending Gnulib" chapter to manual.
14621         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
14622         chapter.
14623         (Extending Gnulib): New chapter.
14624         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
14625         chapter.
14626
14627 2010-06-09  Bruno Haible  <bruno@clisp.org>
14628
14629         Avoid relocwrapper link errors due to gnulib replacement functions.
14630         * lib/areadlink.c: Use the system's malloc, realloc functions.
14631         (areadlink): Set errno to ENOMEM explicitly.
14632         * modules/areadlink (Depends-on): Remove malloc-posix.
14633         Reported by Ben Pfaff <blp@cs.stanford.edu>.
14634
14635 2010-06-09  Bruno Haible  <bruno@clisp.org>
14636
14637         Avoid relocwrapper link errors due to gnulib replacement functions.
14638         * lib/canonicalize-lgpl.c: Use the system's malloc function.
14639         * lib/malloca.c: Likewise.
14640         * lib/relocatable.c: Likewise.
14641         * lib/progreloc.c: Use the system's malloc, sprintf functions.
14642         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
14643         * lib/setenv.c: Use the system's malloc, realloc functions.
14644         * lib/strerror.c: Use the system's sprintf function.
14645         Reported by Ben Pfaff <blp@cs.stanford.edu>.
14646
14647 2010-06-04  Bruno Haible  <bruno@clisp.org>
14648
14649         Prefer documented low-level autoconf macro names.
14650         * m4/lib-link.m4: Use m4_translit instead of translit.
14651         * m4/environ.m4: Likewise.
14652         * m4/mathfunc.m4: Likewise.
14653         * m4/onceonly.m4: Likewise.
14654         * m4/stdint.m4: Likewise.
14655         Suggested by Eric Blake.
14656
14657 2010-06-04  Martin Lambers  <marlam@marlam.de>
14658             Bruno Haible  <bruno@clisp.org>
14659
14660         havelib: Allow library names with '+' characters.
14661         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
14662         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
14663
14664 2010-06-09  Bruno Haible  <bruno@clisp.org>
14665
14666         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
14667         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
14668         realloc failed.
14669
14670 2010-06-08  Peter Simons  <simons@cryp.to>
14671
14672         maint.mk: make the news-check rule more configurable
14673         * top/maint.mk (news-check-lines-spec): New variable.
14674         (news-check): Use "sed -n 1,10p" in place of "head".
14675
14676 2010-06-07  Jim Meyering  <meyering@redhat.com>
14677
14678         do-release-commit-and-tag: fix typo in --help
14679         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
14680
14681         regex: avoid new dead-code warning with gcc-4.6.0
14682         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
14683         if-block containing a while-loop.  It's been unused for at least
14684         5 years.
14685
14686 2010-06-05  Bruno Haible  <bruno@clisp.org>
14687
14688         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
14689         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
14690
14691 2010-06-04  Bruno Haible  <bruno@clisp.org>
14692
14693         Update to GNU gettext 0.18.1.
14694         * modules/gettext (configure.ac): Require gettext infrastructure from
14695         version 0.18.1.
14696
14697 2010-06-03  Bruno Haible  <bruno@clisp.org>
14698
14699         Don't use AC_LIBOBJ with file names in subdirectories.
14700         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
14701         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
14702         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
14703         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
14704         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
14705         gl_LIBUNISTRING_LIBSOURCE.
14706         (Makefile.am): Augment lib_SOURCES here, conditionally.
14707         * NEWS: Drop requirement for Automake option 'subdir-objects'.
14708
14709 2010-06-03  Bruno Haible  <bruno@clisp.org>
14710
14711         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
14712         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
14713         expansion does not end with a newline.
14714         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
14715         unnecessary newline.
14716
14717 2010-06-03  Bruno Haible  <bruno@clisp.org>
14718
14719         Reduce dependencies.
14720         * tests/test-quotearg.h: New file, extracted from
14721         tests/test-quotearg.c.
14722         * tests/test-quotearg-simple.c: New file, extracted from
14723         tests/test-quotearg.c.
14724         * tests/test-quotearg.c: Don't include <ctype.h>.
14725         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
14726         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
14727         use_quote_double_quotes, use_quotearg_colon): Moved to
14728         tests/test-quotearg.h.
14729         (results_g, flag_results, custom_quotes, custom_results): Moved
14730         to tests/test-quotearg-simple.c.
14731         (main): Moved the part that does not depend on gettext to
14732         tests/test-quotearg-simple.c. Return 77 if the test cannot be
14733         performed.
14734         * modules/quotearg-simple: New file.
14735         * modules/quotearg-simple-tests: New file.
14736         * modules/quotearg (Depends-on): Add quotearg-simple.
14737         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
14738         (Files): Add tests/test-quotearg.h.
14739         Reported by Paolo Bonzini.
14740
14741 2010-06-03  Bruno Haible  <bruno@clisp.org>
14742
14743         Reduce dependencies.
14744         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
14745
14746 2010-06-03  Bruno Haible  <bruno@clisp.org>
14747
14748         time: Undefine more broken macros.
14749         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
14750         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
14751         Reported by Eric Blake.
14752
14753 2010-06-03  Bruno Haible  <bruno@clisp.org>
14754
14755         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
14756         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
14757         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
14758         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
14759         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
14760         Reported by Ludovic Courtès <ludo@gnu.org>.
14761
14762 2010-06-02  Eric Blake  <eblake@redhat.com>
14763
14764         time: work with mingw + pthreads-win32 library
14765         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
14766         if timespec is defined only in pthread.h.
14767         * modules/time (Makefile.am): Substitute it.
14768         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
14769         <pthread.h>, when needed.
14770         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
14771         from the library.
14772
14773 2010-05-31  Bruno Haible  <bruno@clisp.org>
14774
14775         Avoid expanding two macros in the wrong order.
14776         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
14777         gl_LIBUNISTRING if it is defined.
14778         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
14779         autoconf >= 2.64.
14780         Reported by Ludovic Courtès <ludo@gnu.org>.
14781
14782 2010-05-27  Jim Meyering  <meyering@redhat.com>
14783
14784         maint.mk: also prohibit "#undef" of always-defined symbols
14785         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
14786         Allow more than one space before the symbol name.
14787         (sc_prohibit_always-defined_macros): Use grep's -E, now that
14788         the regexp uses alternation.
14789
14790 2010-05-26  Eric Blake  <eblake@redhat.com>
14791
14792         maint.mk: avoid echo -e
14793         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
14794         Convert all uses of echo -* to printf.
14795         Reported by Matthias Bolte.
14796
14797 2010-05-25  Bruno Haible  <bruno@clisp.org>
14798
14799         Update to GNU gettext 0.18, part 2.
14800         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
14801         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
14802
14803 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14804
14805         Add missing include in test-pwrite.c.
14806         * tests/test-pwrite.c: Include string.h, for strcmp.
14807
14808 2010-05-24  Bruno Haible  <bruno@clisp.org>
14809
14810         * NEWS: Mention requirement for Automake option 'subdir-objects'.
14811
14812 2010-05-24  Bruno Haible  <bruno@clisp.org>
14813
14814         Don't use conversion with transliteration in u{8,16,32}_strcoll.
14815         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
14816         iconveh_error argument.
14817         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
14818         U_STRCONV_TO_LOCALE.
14819         * lib/unistr/u16-strcoll.c: Likewise.
14820         * lib/unistr/u32-strcoll.c: Likewise.
14821         * modules/unistr/u8-strcoll (Depends-on): Add
14822         uniconv/u8-strconv-to-enc, localcharset. Remove
14823         uniconv/u8-strconv-to-locale.
14824         (configure.ac): Bump version number.
14825         * modules/unistr/u16-strcoll (Depends-on): Add
14826         uniconv/u16-strconv-to-enc, localcharset. Remove
14827         uniconv/u16-strconv-to-locale.
14828         (configure.ac): Bump version number.
14829         * modules/unistr/u32-strcoll (Depends-on): Add
14830         uniconv/u32-strconv-to-enc, localcharset. Remove
14831         uniconv/u32-strconv-to-locale.
14832         (configure.ac): Bump version number.
14833
14834 2010-05-24  Bruno Haible  <bruno@clisp.org>
14835
14836         Avoid a test failure on NetBSD 5.0.
14837         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
14838         an iconv() bug.
14839
14840 2010-05-24  Bruno Haible  <bruno@clisp.org>
14841
14842         Adjust #include directive style.
14843         * modules/regex (Includes): Recommend to write <regex.h>.
14844
14845 2010-05-24  Bruno Haible  <bruno@clisp.org>
14846
14847         regex: Don't require alloca.
14848         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
14849         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
14850         only inside if (0).
14851
14852 2010-05-23  Jim Meyering  <meyering@redhat.com>
14853
14854         test-renameat.c: include <sys/stat.h>
14855         * tests/test-renameat.c: Include <sys/stat.h>; required for
14856         definition of S_IS* macros.
14857
14858 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
14859
14860         Update maintainer documentation for 'relocatable-prog' module.
14861         * doc/relocatable-maint.texi: Update.
14862         Comments by Bruno Haible.
14863
14864 2010-05-23  Bruno Haible  <bruno@clisp.org>
14865
14866         git-merge-changelog: Enable --split-merged-entry by default.
14867         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
14868         (usage): Don't mention this option any more.
14869         Reported by Ralf Wildenhues.
14870
14871 2010-05-23  Jim Meyering  <meyering@redhat.com>
14872
14873         test-pwrite: do not leave behind a test file named "out"
14874         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
14875         The trivial-looking use of init.sh is really necessary.
14876         It ensures that the temporary file, "out", is created in
14877         a temporary directory, and removed upon termination.
14878         * tests/test-pwrite.sh: Re-add file.
14879         * modules/pwrite-tests: Reference it.
14880
14881 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14882
14883         Fix output redirection buglet in init.sh.
14884         * tests/init.sh: Fix redirection of stderr.
14885
14886 2010-05-20  Simon Josefsson  <simon@josefsson.org>
14887
14888         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
14889
14890 2010-05-17  Simon Josefsson  <simon@josefsson.org>
14891
14892         * modules/valgrind-tests: New file.
14893         * m4/valgrind-tests.m4: New file.
14894         * doc/valgrind-tests.texi: New file.
14895         * doc/gnulib.texi (Running self-tests under valgrind): New
14896         section.
14897
14898 2010-05-19  Bruno Haible  <bruno@clisp.org>
14899
14900         Clean up dead code in recent commit.
14901         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
14902         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
14903         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
14904         Suggested by Paolo Bonzini.
14905
14906 2010-05-19  Bruno Haible  <bruno@clisp.org>
14907
14908         Avoid valgrind error reports from libunistring.
14909         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
14910         * modules/libunistring (Files): Add it.
14911         * modules/libunistring-optional (Files): Likewise.
14912
14913 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
14914             Bruno Haible  <bruno@clisp.org>
14915
14916         New module 'libunistring-optional'.
14917         * modules/libunistring-optional: New file.
14918         * m4/libunistring-base.m4: New file.
14919         * m4/libunistring-optional.m4: New file.
14920         * lib/unicase.in.h: Renamed from lib/unicase.h.
14921         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
14922         * lib/unictype.in.h: Renamed from lib/unictype.h.
14923         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
14924         * lib/uniname.in.h: Renamed from lib/uniname.h.
14925         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
14926         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
14927         * lib/unistr.in.h: Renamed from lib/unistr.h.
14928         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
14929         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
14930         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
14931         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
14932         gl_LIBUNISTRING. If the library was found, determine the installed
14933         version and set LIBUNISTRING_VERSION.
14934         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
14935         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
14936         handle a configuration option --with-included-libunistring.
14937         * modules/libunistring (Files): Add m4/absolute-header.m4.
14938         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
14939         Add m4/libunistring-base.m4.
14940         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14941         (Makefile.am): Build unicase.h from unicase.in.h.
14942         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
14943         Add m4/libunistring-base.m4.
14944         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14945         (Makefile.am): Build uniconv.h from uniconv.in.h.
14946         * modules/unictype/base (Files): Use unictype.in.h instead of
14947         unictype.h. Add m4/libunistring-base.m4.
14948         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14949         (Makefile.am): Build unictype.h from unictype.in.h.
14950         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
14951         Add m4/libunistring-base.m4.
14952         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14953         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
14954         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
14955         Add m4/libunistring-base.m4.
14956         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14957         (Makefile.am): Build uniname.h from uniname.in.h.
14958         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
14959         Add m4/libunistring-base.m4.
14960         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14961         (Makefile.am): Build uninorm.h from uninorm.in.h.
14962         * modules/unistdio/base (Files): Use unistdio.in.h instead of
14963         unistdio.h. Add m4/libunistring-base.m4.
14964         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14965         (Makefile.am): Build unistdio.h from unistdio.in.h.
14966         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
14967         Add m4/libunistring-base.m4.
14968         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14969         (Makefile.am): Build unistr.h from unistr.in.h.
14970         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
14971         Add m4/libunistring-base.m4.
14972         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14973         (Makefile.am): Build unitypes.h from unitypes.in.h.
14974         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
14975         Add m4/libunistring-base.m4.
14976         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14977         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
14978         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
14979         uniwidth.h. Add m4/libunistring-base.m4.
14980         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14981         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
14982         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
14983         instead of augmenting lib_SOURCES.
14984         * modules/unicase/empty-suffix-context: Likewise.
14985         * modules/unicase/locale-language: Likewise.
14986         * modules/unicase/tolower: Likewise.
14987         * modules/unicase/totitle: Likewise.
14988         * modules/unicase/toupper: Likewise.
14989         * modules/unicase/u8-casecmp: Likewise.
14990         * modules/unicase/u8-casecoll: Likewise.
14991         * modules/unicase/u8-casefold: Likewise.
14992         * modules/unicase/u8-casexfrm: Likewise.
14993         * modules/unicase/u8-ct-casefold: Likewise.
14994         * modules/unicase/u8-ct-tolower: Likewise.
14995         * modules/unicase/u8-ct-totitle: Likewise.
14996         * modules/unicase/u8-ct-toupper: Likewise.
14997         * modules/unicase/u8-is-cased: Likewise.
14998         * modules/unicase/u8-is-casefolded: Likewise.
14999         * modules/unicase/u8-is-lowercase: Likewise.
15000         * modules/unicase/u8-is-titlecase: Likewise.
15001         * modules/unicase/u8-is-uppercase: Likewise.
15002         * modules/unicase/u8-prefix-context: Likewise.
15003         * modules/unicase/u8-suffix-context: Likewise.
15004         * modules/unicase/u8-tolower: Likewise.
15005         * modules/unicase/u8-totitle: Likewise.
15006         * modules/unicase/u8-toupper: Likewise.
15007         * modules/unicase/u16-casecmp: Likewise.
15008         * modules/unicase/u16-casecoll: Likewise.
15009         * modules/unicase/u16-casefold: Likewise.
15010         * modules/unicase/u16-casexfrm: Likewise.
15011         * modules/unicase/u16-ct-casefold: Likewise.
15012         * modules/unicase/u16-ct-tolower: Likewise.
15013         * modules/unicase/u16-ct-totitle: Likewise.
15014         * modules/unicase/u16-ct-toupper: Likewise.
15015         * modules/unicase/u16-is-cased: Likewise.
15016         * modules/unicase/u16-is-casefolded: Likewise.
15017         * modules/unicase/u16-is-lowercase: Likewise.
15018         * modules/unicase/u16-is-titlecase: Likewise.
15019         * modules/unicase/u16-is-uppercase: Likewise.
15020         * modules/unicase/u16-prefix-context: Likewise.
15021         * modules/unicase/u16-suffix-context: Likewise.
15022         * modules/unicase/u16-tolower: Likewise.
15023         * modules/unicase/u16-totitle: Likewise.
15024         * modules/unicase/u16-toupper: Likewise.
15025         * modules/unicase/u32-casecmp: Likewise.
15026         * modules/unicase/u32-casecoll: Likewise.
15027         * modules/unicase/u32-casefold: Likewise.
15028         * modules/unicase/u32-casexfrm: Likewise.
15029         * modules/unicase/u32-ct-casefold: Likewise.
15030         * modules/unicase/u32-ct-tolower: Likewise.
15031         * modules/unicase/u32-ct-totitle: Likewise.
15032         * modules/unicase/u32-ct-toupper: Likewise.
15033         * modules/unicase/u32-is-cased: Likewise.
15034         * modules/unicase/u32-is-casefolded: Likewise.
15035         * modules/unicase/u32-is-lowercase: Likewise.
15036         * modules/unicase/u32-is-titlecase: Likewise.
15037         * modules/unicase/u32-is-uppercase: Likewise.
15038         * modules/unicase/u32-prefix-context: Likewise.
15039         * modules/unicase/u32-suffix-context: Likewise.
15040         * modules/unicase/u32-tolower: Likewise.
15041         * modules/unicase/u32-totitle: Likewise.
15042         * modules/unicase/u32-toupper: Likewise.
15043         * modules/unicase/ulc-casecmp: Likewise.
15044         * modules/unicase/ulc-casecoll: Likewise.
15045         * modules/unicase/ulc-casexfrm: Likewise.
15046         * modules/uniconv/u8-conv-from-enc: Likewise.
15047         * modules/uniconv/u8-conv-to-enc: Likewise.
15048         * modules/uniconv/u8-strconv-from-enc: Likewise.
15049         * modules/uniconv/u8-strconv-from-locale: Likewise.
15050         * modules/uniconv/u8-strconv-to-enc: Likewise.
15051         * modules/uniconv/u8-strconv-to-locale: Likewise.
15052         * modules/uniconv/u16-conv-from-enc: Likewise.
15053         * modules/uniconv/u16-conv-to-enc: Likewise.
15054         * modules/uniconv/u16-strconv-from-enc: Likewise.
15055         * modules/uniconv/u16-strconv-from-locale: Likewise.
15056         * modules/uniconv/u16-strconv-to-enc: Likewise.
15057         * modules/uniconv/u16-strconv-to-locale: Likewise.
15058         * modules/uniconv/u32-conv-from-enc: Likewise.
15059         * modules/uniconv/u32-conv-to-enc: Likewise.
15060         * modules/uniconv/u32-strconv-from-enc: Likewise.
15061         * modules/uniconv/u32-strconv-from-locale: Likewise.
15062         * modules/uniconv/u32-strconv-to-enc: Likewise.
15063         * modules/uniconv/u32-strconv-to-locale: Likewise.
15064         * modules/unictype/bidicategory-byname: Likewise.
15065         * modules/unictype/bidicategory-name: Likewise.
15066         * modules/unictype/bidicategory-of: Likewise.
15067         * modules/unictype/bidicategory-test: Likewise.
15068         * modules/unictype/block-list: Likewise.
15069         * modules/unictype/block-test: Likewise.
15070         * modules/unictype/category-C: Likewise.
15071         * modules/unictype/category-Cc: Likewise.
15072         * modules/unictype/category-Cf: Likewise.
15073         * modules/unictype/category-Cn: Likewise.
15074         * modules/unictype/category-Co: Likewise.
15075         * modules/unictype/category-Cs: Likewise.
15076         * modules/unictype/category-L: Likewise.
15077         * modules/unictype/category-Ll: Likewise.
15078         * modules/unictype/category-Lm: Likewise.
15079         * modules/unictype/category-Lo: Likewise.
15080         * modules/unictype/category-Lt: Likewise.
15081         * modules/unictype/category-Lu: Likewise.
15082         * modules/unictype/category-M: Likewise.
15083         * modules/unictype/category-Mc: Likewise.
15084         * modules/unictype/category-Me: Likewise.
15085         * modules/unictype/category-Mn: Likewise.
15086         * modules/unictype/category-N: Likewise.
15087         * modules/unictype/category-Nd: Likewise.
15088         * modules/unictype/category-Nl: Likewise.
15089         * modules/unictype/category-No: Likewise.
15090         * modules/unictype/category-P: Likewise.
15091         * modules/unictype/category-Pc: Likewise.
15092         * modules/unictype/category-Pd: Likewise.
15093         * modules/unictype/category-Pe: Likewise.
15094         * modules/unictype/category-Pf: Likewise.
15095         * modules/unictype/category-Pi: Likewise.
15096         * modules/unictype/category-Po: Likewise.
15097         * modules/unictype/category-Ps: Likewise.
15098         * modules/unictype/category-S: Likewise.
15099         * modules/unictype/category-Sc: Likewise.
15100         * modules/unictype/category-Sk: Likewise.
15101         * modules/unictype/category-Sm: Likewise.
15102         * modules/unictype/category-So: Likewise.
15103         * modules/unictype/category-Z: Likewise.
15104         * modules/unictype/category-Zl: Likewise.
15105         * modules/unictype/category-Zp: Likewise.
15106         * modules/unictype/category-Zs: Likewise.
15107         * modules/unictype/category-and: Likewise.
15108         * modules/unictype/category-and-not: Likewise.
15109         * modules/unictype/category-byname: Likewise.
15110         * modules/unictype/category-name: Likewise.
15111         * modules/unictype/category-none: Likewise.
15112         * modules/unictype/category-of: Likewise.
15113         * modules/unictype/category-or: Likewise.
15114         * modules/unictype/category-test: Likewise.
15115         * modules/unictype/combining-class: Likewise.
15116         * modules/unictype/ctype-alnum: Likewise.
15117         * modules/unictype/ctype-alpha: Likewise.
15118         * modules/unictype/ctype-blank: Likewise.
15119         * modules/unictype/ctype-cntrl: Likewise.
15120         * modules/unictype/ctype-digit: Likewise.
15121         * modules/unictype/ctype-graph: Likewise.
15122         * modules/unictype/ctype-lower: Likewise.
15123         * modules/unictype/ctype-print: Likewise.
15124         * modules/unictype/ctype-punct: Likewise.
15125         * modules/unictype/ctype-space: Likewise.
15126         * modules/unictype/ctype-upper: Likewise.
15127         * modules/unictype/ctype-xdigit: Likewise.
15128         * modules/unictype/decimal-digit: Likewise.
15129         * modules/unictype/digit: Likewise.
15130         * modules/unictype/mirror: Likewise.
15131         * modules/unictype/numeric: Likewise.
15132         * modules/unictype/property-alphabetic: Likewise.
15133         * modules/unictype/property-ascii-hex-digit: Likewise.
15134         * modules/unictype/property-bidi-arabic-digit: Likewise.
15135         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
15136         * modules/unictype/property-bidi-block-separator: Likewise.
15137         * modules/unictype/property-bidi-boundary-neutral: Likewise.
15138         * modules/unictype/property-bidi-common-separator: Likewise.
15139         * modules/unictype/property-bidi-control: Likewise.
15140         * modules/unictype/property-bidi-embedding-or-override: Likewise.
15141         * modules/unictype/property-bidi-eur-num-separator: Likewise.
15142         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
15143         * modules/unictype/property-bidi-european-digit: Likewise.
15144         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
15145         * modules/unictype/property-bidi-left-to-right: Likewise.
15146         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
15147         * modules/unictype/property-bidi-other-neutral: Likewise.
15148         * modules/unictype/property-bidi-pdf: Likewise.
15149         * modules/unictype/property-bidi-segment-separator: Likewise.
15150         * modules/unictype/property-bidi-whitespace: Likewise.
15151         * modules/unictype/property-byname: Likewise.
15152         * modules/unictype/property-combining: Likewise.
15153         * modules/unictype/property-composite: Likewise.
15154         * modules/unictype/property-currency-symbol: Likewise.
15155         * modules/unictype/property-dash: Likewise.
15156         * modules/unictype/property-decimal-digit: Likewise.
15157         * modules/unictype/property-default-ignorable-code-point: Likewise.
15158         * modules/unictype/property-deprecated: Likewise.
15159         * modules/unictype/property-diacritic: Likewise.
15160         * modules/unictype/property-extender: Likewise.
15161         * modules/unictype/property-format-control: Likewise.
15162         * modules/unictype/property-grapheme-base: Likewise.
15163         * modules/unictype/property-grapheme-extend: Likewise.
15164         * modules/unictype/property-grapheme-link: Likewise.
15165         * modules/unictype/property-hex-digit: Likewise.
15166         * modules/unictype/property-hyphen: Likewise.
15167         * modules/unictype/property-id-continue: Likewise.
15168         * modules/unictype/property-id-start: Likewise.
15169         * modules/unictype/property-ideographic: Likewise.
15170         * modules/unictype/property-ids-binary-operator: Likewise.
15171         * modules/unictype/property-ids-trinary-operator: Likewise.
15172         * modules/unictype/property-ignorable-control: Likewise.
15173         * modules/unictype/property-iso-control: Likewise.
15174         * modules/unictype/property-join-control: Likewise.
15175         * modules/unictype/property-left-of-pair: Likewise.
15176         * modules/unictype/property-line-separator: Likewise.
15177         * modules/unictype/property-logical-order-exception: Likewise.
15178         * modules/unictype/property-lowercase: Likewise.
15179         * modules/unictype/property-math: Likewise.
15180         * modules/unictype/property-non-break: Likewise.
15181         * modules/unictype/property-not-a-character: Likewise.
15182         * modules/unictype/property-numeric: Likewise.
15183         * modules/unictype/property-other-alphabetic: Likewise.
15184         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
15185         * modules/unictype/property-other-grapheme-extend: Likewise.
15186         * modules/unictype/property-other-id-continue: Likewise.
15187         * modules/unictype/property-other-id-start: Likewise.
15188         * modules/unictype/property-other-lowercase: Likewise.
15189         * modules/unictype/property-other-math: Likewise.
15190         * modules/unictype/property-other-uppercase: Likewise.
15191         * modules/unictype/property-paired-punctuation: Likewise.
15192         * modules/unictype/property-paragraph-separator: Likewise.
15193         * modules/unictype/property-pattern-syntax: Likewise.
15194         * modules/unictype/property-pattern-white-space: Likewise.
15195         * modules/unictype/property-private-use: Likewise.
15196         * modules/unictype/property-punctuation: Likewise.
15197         * modules/unictype/property-quotation-mark: Likewise.
15198         * modules/unictype/property-radical: Likewise.
15199         * modules/unictype/property-sentence-terminal: Likewise.
15200         * modules/unictype/property-soft-dotted: Likewise.
15201         * modules/unictype/property-space: Likewise.
15202         * modules/unictype/property-terminal-punctuation: Likewise.
15203         * modules/unictype/property-test: Likewise.
15204         * modules/unictype/property-titlecase: Likewise.
15205         * modules/unictype/property-unassigned-code-value: Likewise.
15206         * modules/unictype/property-unified-ideograph: Likewise.
15207         * modules/unictype/property-uppercase: Likewise.
15208         * modules/unictype/property-variation-selector: Likewise.
15209         * modules/unictype/property-white-space: Likewise.
15210         * modules/unictype/property-xid-continue: Likewise.
15211         * modules/unictype/property-xid-start: Likewise.
15212         * modules/unictype/property-zero-width: Likewise.
15213         * modules/unictype/scripts: Likewise.
15214         * modules/unictype/syntax-c-ident: Likewise.
15215         * modules/unictype/syntax-c-whitespace: Likewise.
15216         * modules/unictype/syntax-java-ident: Likewise.
15217         * modules/unictype/syntax-java-whitespace: Likewise.
15218         * modules/unilbrk/u8-possible-linebreaks: Likewise.
15219         * modules/unilbrk/u8-width-linebreaks: Likewise.
15220         * modules/unilbrk/u16-possible-linebreaks: Likewise.
15221         * modules/unilbrk/u16-width-linebreaks: Likewise.
15222         * modules/unilbrk/u32-possible-linebreaks: Likewise.
15223         * modules/unilbrk/u32-width-linebreaks: Likewise.
15224         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
15225         * modules/unilbrk/ulc-width-linebreaks: Likewise.
15226         * modules/uniname/uniname: Likewise.
15227         * modules/uninorm/canonical-decomposition: Likewise.
15228         * modules/uninorm/composition: Likewise.
15229         * modules/uninorm/decomposing-form: Likewise.
15230         * modules/uninorm/decomposition: Likewise.
15231         * modules/uninorm/filter: Likewise.
15232         * modules/uninorm/nfc: Likewise.
15233         * modules/uninorm/nfd: Likewise.
15234         * modules/uninorm/nfkc: Likewise.
15235         * modules/uninorm/nfkd: Likewise.
15236         * modules/uninorm/u8-normalize: Likewise.
15237         * modules/uninorm/u8-normcmp: Likewise.
15238         * modules/uninorm/u8-normcoll: Likewise.
15239         * modules/uninorm/u8-normxfrm: Likewise.
15240         * modules/uninorm/u16-normalize: Likewise.
15241         * modules/uninorm/u16-normcmp: Likewise.
15242         * modules/uninorm/u16-normcoll: Likewise.
15243         * modules/uninorm/u16-normxfrm: Likewise.
15244         * modules/uninorm/u32-normalize: Likewise.
15245         * modules/uninorm/u32-normcmp: Likewise.
15246         * modules/uninorm/u32-normcoll: Likewise.
15247         * modules/uninorm/u32-normxfrm: Likewise.
15248         * modules/unistdio/u8-asnprintf: Likewise.
15249         * modules/unistdio/u8-asprintf: Likewise.
15250         * modules/unistdio/u8-snprintf: Likewise.
15251         * modules/unistdio/u8-sprintf: Likewise.
15252         * modules/unistdio/u8-u8-asnprintf: Likewise.
15253         * modules/unistdio/u8-u8-asprintf: Likewise.
15254         * modules/unistdio/u8-u8-snprintf: Likewise.
15255         * modules/unistdio/u8-u8-sprintf: Likewise.
15256         * modules/unistdio/u8-u8-vasnprintf: Likewise.
15257         * modules/unistdio/u8-u8-vasprintf: Likewise.
15258         * modules/unistdio/u8-u8-vsnprintf: Likewise.
15259         * modules/unistdio/u8-u8-vsprintf: Likewise.
15260         * modules/unistdio/u8-vasnprintf: Likewise.
15261         * modules/unistdio/u8-vasprintf: Likewise.
15262         * modules/unistdio/u8-vsnprintf: Likewise.
15263         * modules/unistdio/u8-vsprintf: Likewise.
15264         * modules/unistdio/u16-asnprintf: Likewise.
15265         * modules/unistdio/u16-asprintf: Likewise.
15266         * modules/unistdio/u16-snprintf: Likewise.
15267         * modules/unistdio/u16-sprintf: Likewise.
15268         * modules/unistdio/u16-u16-asnprintf: Likewise.
15269         * modules/unistdio/u16-u16-asprintf: Likewise.
15270         * modules/unistdio/u16-u16-snprintf: Likewise.
15271         * modules/unistdio/u16-u16-sprintf: Likewise.
15272         * modules/unistdio/u16-u16-vasnprintf: Likewise.
15273         * modules/unistdio/u16-u16-vasprintf: Likewise.
15274         * modules/unistdio/u16-u16-vsnprintf: Likewise.
15275         * modules/unistdio/u16-u16-vsprintf: Likewise.
15276         * modules/unistdio/u16-vasnprintf: Likewise.
15277         * modules/unistdio/u16-vasprintf: Likewise.
15278         * modules/unistdio/u16-vsnprintf: Likewise.
15279         * modules/unistdio/u16-vsprintf: Likewise.
15280         * modules/unistdio/u32-asnprintf: Likewise.
15281         * modules/unistdio/u32-asprintf: Likewise.
15282         * modules/unistdio/u32-snprintf: Likewise.
15283         * modules/unistdio/u32-sprintf: Likewise.
15284         * modules/unistdio/u32-u32-asnprintf: Likewise.
15285         * modules/unistdio/u32-u32-asprintf: Likewise.
15286         * modules/unistdio/u32-u32-snprintf: Likewise.
15287         * modules/unistdio/u32-u32-sprintf: Likewise.
15288         * modules/unistdio/u32-u32-vasnprintf: Likewise.
15289         * modules/unistdio/u32-u32-vasprintf: Likewise.
15290         * modules/unistdio/u32-u32-vsnprintf: Likewise.
15291         * modules/unistdio/u32-u32-vsprintf: Likewise.
15292         * modules/unistdio/u32-vasnprintf: Likewise.
15293         * modules/unistdio/u32-vasprintf: Likewise.
15294         * modules/unistdio/u32-vsnprintf: Likewise.
15295         * modules/unistdio/u32-vsprintf: Likewise.
15296         * modules/unistdio/ulc-asnprintf: Likewise.
15297         * modules/unistdio/ulc-asprintf: Likewise.
15298         * modules/unistdio/ulc-fprintf: Likewise.
15299         * modules/unistdio/ulc-snprintf: Likewise.
15300         * modules/unistdio/ulc-sprintf: Likewise.
15301         * modules/unistdio/ulc-vasnprintf: Likewise.
15302         * modules/unistdio/ulc-vasprintf: Likewise.
15303         * modules/unistdio/ulc-vfprintf: Likewise.
15304         * modules/unistdio/ulc-vsnprintf: Likewise.
15305         * modules/unistdio/ulc-vsprintf: Likewise.
15306         * modules/unistr/u8-check: Likewise.
15307         * modules/unistr/u8-chr: Likewise.
15308         * modules/unistr/u8-cmp: Likewise.
15309         * modules/unistr/u8-cmp2: Likewise.
15310         * modules/unistr/u8-cpy: Likewise.
15311         * modules/unistr/u8-cpy-alloc: Likewise.
15312         * modules/unistr/u8-endswith: Likewise.
15313         * modules/unistr/u8-mblen: Likewise.
15314         * modules/unistr/u8-mbsnlen: Likewise.
15315         * modules/unistr/u8-mbtouc: Likewise.
15316         * modules/unistr/u8-mbtouc-unsafe: Likewise.
15317         * modules/unistr/u8-mbtoucr: Likewise.
15318         * modules/unistr/u8-move: Likewise.
15319         * modules/unistr/u8-next: Likewise.
15320         * modules/unistr/u8-prev: Likewise.
15321         * modules/unistr/u8-set: Likewise.
15322         * modules/unistr/u8-startswith: Likewise.
15323         * modules/unistr/u8-stpcpy: Likewise.
15324         * modules/unistr/u8-stpncpy: Likewise.
15325         * modules/unistr/u8-strcat: Likewise.
15326         * modules/unistr/u8-strchr: Likewise.
15327         * modules/unistr/u8-strcmp: Likewise.
15328         * modules/unistr/u8-strcoll: Likewise.
15329         * modules/unistr/u8-strcpy: Likewise.
15330         * modules/unistr/u8-strcspn: Likewise.
15331         * modules/unistr/u8-strdup: Likewise.
15332         * modules/unistr/u8-strlen: Likewise.
15333         * modules/unistr/u8-strmblen: Likewise.
15334         * modules/unistr/u8-strmbtouc: Likewise.
15335         * modules/unistr/u8-strncat: Likewise.
15336         * modules/unistr/u8-strncmp: Likewise.
15337         * modules/unistr/u8-strncpy: Likewise.
15338         * modules/unistr/u8-strnlen: Likewise.
15339         * modules/unistr/u8-strpbrk: Likewise.
15340         * modules/unistr/u8-strrchr: Likewise.
15341         * modules/unistr/u8-strspn: Likewise.
15342         * modules/unistr/u8-strstr: Likewise.
15343         * modules/unistr/u8-strtok: Likewise.
15344         * modules/unistr/u8-to-u16: Likewise.
15345         * modules/unistr/u8-to-u32: Likewise.
15346         * modules/unistr/u8-uctomb: Likewise.
15347         * modules/unistr/u16-check: Likewise.
15348         * modules/unistr/u16-chr: Likewise.
15349         * modules/unistr/u16-cmp: Likewise.
15350         * modules/unistr/u16-cmp2: Likewise.
15351         * modules/unistr/u16-cpy: Likewise.
15352         * modules/unistr/u16-cpy-alloc: Likewise.
15353         * modules/unistr/u16-endswith: Likewise.
15354         * modules/unistr/u16-mblen: Likewise.
15355         * modules/unistr/u16-mbsnlen: Likewise.
15356         * modules/unistr/u16-mbtouc: Likewise.
15357         * modules/unistr/u16-mbtouc-unsafe: Likewise.
15358         * modules/unistr/u16-mbtoucr: Likewise.
15359         * modules/unistr/u16-move: Likewise.
15360         * modules/unistr/u16-next: Likewise.
15361         * modules/unistr/u16-prev: Likewise.
15362         * modules/unistr/u16-set: Likewise.
15363         * modules/unistr/u16-startswith: Likewise.
15364         * modules/unistr/u16-stpcpy: Likewise.
15365         * modules/unistr/u16-stpncpy: Likewise.
15366         * modules/unistr/u16-strcat: Likewise.
15367         * modules/unistr/u16-strchr: Likewise.
15368         * modules/unistr/u16-strcmp: Likewise.
15369         * modules/unistr/u16-strcoll: Likewise.
15370         * modules/unistr/u16-strcpy: Likewise.
15371         * modules/unistr/u16-strcspn: Likewise.
15372         * modules/unistr/u16-strdup: Likewise.
15373         * modules/unistr/u16-strlen: Likewise.
15374         * modules/unistr/u16-strmblen: Likewise.
15375         * modules/unistr/u16-strmbtouc: Likewise.
15376         * modules/unistr/u16-strncat: Likewise.
15377         * modules/unistr/u16-strncmp: Likewise.
15378         * modules/unistr/u16-strncpy: Likewise.
15379         * modules/unistr/u16-strnlen: Likewise.
15380         * modules/unistr/u16-strpbrk: Likewise.
15381         * modules/unistr/u16-strrchr: Likewise.
15382         * modules/unistr/u16-strspn: Likewise.
15383         * modules/unistr/u16-strstr: Likewise.
15384         * modules/unistr/u16-strtok: Likewise.
15385         * modules/unistr/u16-to-u32: Likewise.
15386         * modules/unistr/u16-to-u8: Likewise.
15387         * modules/unistr/u16-uctomb: Likewise.
15388         * modules/unistr/u32-check: Likewise.
15389         * modules/unistr/u32-chr: Likewise.
15390         * modules/unistr/u32-cmp: Likewise.
15391         * modules/unistr/u32-cmp2: Likewise.
15392         * modules/unistr/u32-cpy: Likewise.
15393         * modules/unistr/u32-cpy-alloc: Likewise.
15394         * modules/unistr/u32-endswith: Likewise.
15395         * modules/unistr/u32-mblen: Likewise.
15396         * modules/unistr/u32-mbsnlen: Likewise.
15397         * modules/unistr/u32-mbtouc: Likewise.
15398         * modules/unistr/u32-mbtouc-unsafe: Likewise.
15399         * modules/unistr/u32-mbtoucr: Likewise.
15400         * modules/unistr/u32-move: Likewise.
15401         * modules/unistr/u32-next: Likewise.
15402         * modules/unistr/u32-prev: Likewise.
15403         * modules/unistr/u32-set: Likewise.
15404         * modules/unistr/u32-startswith: Likewise.
15405         * modules/unistr/u32-stpcpy: Likewise.
15406         * modules/unistr/u32-stpncpy: Likewise.
15407         * modules/unistr/u32-strcat: Likewise.
15408         * modules/unistr/u32-strchr: Likewise.
15409         * modules/unistr/u32-strcmp: Likewise.
15410         * modules/unistr/u32-strcoll: Likewise.
15411         * modules/unistr/u32-strcpy: Likewise.
15412         * modules/unistr/u32-strcspn: Likewise.
15413         * modules/unistr/u32-strdup: Likewise.
15414         * modules/unistr/u32-strlen: Likewise.
15415         * modules/unistr/u32-strmblen: Likewise.
15416         * modules/unistr/u32-strmbtouc: Likewise.
15417         * modules/unistr/u32-strncat: Likewise.
15418         * modules/unistr/u32-strncmp: Likewise.
15419         * modules/unistr/u32-strncpy: Likewise.
15420         * modules/unistr/u32-strnlen: Likewise.
15421         * modules/unistr/u32-strpbrk: Likewise.
15422         * modules/unistr/u32-strrchr: Likewise.
15423         * modules/unistr/u32-strspn: Likewise.
15424         * modules/unistr/u32-strstr: Likewise.
15425         * modules/unistr/u32-strtok: Likewise.
15426         * modules/unistr/u32-to-u16: Likewise.
15427         * modules/unistr/u32-to-u8: Likewise.
15428         * modules/unistr/u32-uctomb: Likewise.
15429         * modules/uniwbrk/u8-wordbreaks: Likewise.
15430         * modules/uniwbrk/u16-wordbreaks: Likewise.
15431         * modules/uniwbrk/u32-wordbreaks: Likewise.
15432         * modules/uniwbrk/ulc-wordbreaks: Likewise.
15433         * modules/uniwbrk/wordbreak-property: Likewise.
15434         * modules/uniwidth/u8-strwidth: Likewise.
15435         * modules/uniwidth/u8-width: Likewise.
15436         * modules/uniwidth/u16-strwidth: Likewise.
15437         * modules/uniwidth/u16-width: Likewise.
15438         * modules/uniwidth/u32-strwidth: Likewise.
15439         * modules/uniwidth/u32-width: Likewise.
15440         * modules/uniwidth/width: Likewise.
15441         * modules/unicase/cased-tests (Makefile.am): Link all test programs
15442         with $(LIBUNISTRING).
15443         * modules/unicase/ignorable-tests: Likewise.
15444         * modules/unicase/locale-language-tests: Likewise.
15445         * modules/unicase/tolower-tests: Likewise.
15446         * modules/unicase/totitle-tests: Likewise.
15447         * modules/unicase/toupper-tests: Likewise.
15448         * modules/unicase/u8-casecmp-tests: Likewise.
15449         * modules/unicase/u8-casecoll-tests: Likewise.
15450         * modules/unicase/u8-casefold-tests: Likewise.
15451         * modules/unicase/u8-is-cased-tests: Likewise.
15452         * modules/unicase/u8-is-casefolded-tests: Likewise.
15453         * modules/unicase/u8-is-lowercase-tests: Likewise.
15454         * modules/unicase/u8-is-titlecase-tests: Likewise.
15455         * modules/unicase/u8-is-uppercase-tests: Likewise.
15456         * modules/unicase/u8-tolower-tests: Likewise.
15457         * modules/unicase/u8-totitle-tests: Likewise.
15458         * modules/unicase/u8-toupper-tests: Likewise.
15459         * modules/unicase/u16-casecmp-tests: Likewise.
15460         * modules/unicase/u16-casecoll-tests: Likewise.
15461         * modules/unicase/u16-casefold-tests: Likewise.
15462         * modules/unicase/u16-is-cased-tests: Likewise.
15463         * modules/unicase/u16-is-casefolded-tests: Likewise.
15464         * modules/unicase/u16-is-lowercase-tests: Likewise.
15465         * modules/unicase/u16-is-titlecase-tests: Likewise.
15466         * modules/unicase/u16-is-uppercase-tests: Likewise.
15467         * modules/unicase/u16-tolower-tests: Likewise.
15468         * modules/unicase/u16-totitle-tests: Likewise.
15469         * modules/unicase/u16-toupper-tests: Likewise.
15470         * modules/unicase/u32-casecmp-tests: Likewise.
15471         * modules/unicase/u32-casecoll-tests: Likewise.
15472         * modules/unicase/u32-casefold-tests: Likewise.
15473         * modules/unicase/u32-is-cased-tests: Likewise.
15474         * modules/unicase/u32-is-casefolded-tests: Likewise.
15475         * modules/unicase/u32-is-lowercase-tests: Likewise.
15476         * modules/unicase/u32-is-titlecase-tests: Likewise.
15477         * modules/unicase/u32-is-uppercase-tests: Likewise.
15478         * modules/unicase/u32-tolower-tests: Likewise.
15479         * modules/unicase/u32-totitle-tests: Likewise.
15480         * modules/unicase/u32-toupper-tests: Likewise.
15481         * modules/unicase/ulc-casecmp-tests: Likewise.
15482         * modules/unicase/ulc-casecoll-tests: Likewise.
15483         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
15484         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
15485         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
15486         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
15487         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
15488         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
15489         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
15490         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
15491         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
15492         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
15493         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
15494         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
15495         * modules/unictype/bidicategory-byname-tests: Likewise.
15496         * modules/unictype/bidicategory-name-tests: Likewise.
15497         * modules/unictype/bidicategory-of-tests: Likewise.
15498         * modules/unictype/bidicategory-test-tests: Likewise.
15499         * modules/unictype/block-list-tests: Likewise.
15500         * modules/unictype/block-of-tests: Likewise.
15501         * modules/unictype/block-test-tests: Likewise.
15502         * modules/unictype/category-C-tests: Likewise.
15503         * modules/unictype/category-Cc-tests: Likewise.
15504         * modules/unictype/category-Cf-tests: Likewise.
15505         * modules/unictype/category-Cn-tests: Likewise.
15506         * modules/unictype/category-Co-tests: Likewise.
15507         * modules/unictype/category-Cs-tests: Likewise.
15508         * modules/unictype/category-L-tests: Likewise.
15509         * modules/unictype/category-Ll-tests: Likewise.
15510         * modules/unictype/category-Lm-tests: Likewise.
15511         * modules/unictype/category-Lo-tests: Likewise.
15512         * modules/unictype/category-Lt-tests: Likewise.
15513         * modules/unictype/category-Lu-tests: Likewise.
15514         * modules/unictype/category-M-tests: Likewise.
15515         * modules/unictype/category-Mc-tests: Likewise.
15516         * modules/unictype/category-Me-tests: Likewise.
15517         * modules/unictype/category-Mn-tests: Likewise.
15518         * modules/unictype/category-N-tests: Likewise.
15519         * modules/unictype/category-Nd-tests: Likewise.
15520         * modules/unictype/category-Nl-tests: Likewise.
15521         * modules/unictype/category-No-tests: Likewise.
15522         * modules/unictype/category-P-tests: Likewise.
15523         * modules/unictype/category-Pc-tests: Likewise.
15524         * modules/unictype/category-Pd-tests: Likewise.
15525         * modules/unictype/category-Pe-tests: Likewise.
15526         * modules/unictype/category-Pf-tests: Likewise.
15527         * modules/unictype/category-Pi-tests: Likewise.
15528         * modules/unictype/category-Po-tests: Likewise.
15529         * modules/unictype/category-Ps-tests: Likewise.
15530         * modules/unictype/category-S-tests: Likewise.
15531         * modules/unictype/category-Sc-tests: Likewise.
15532         * modules/unictype/category-Sk-tests: Likewise.
15533         * modules/unictype/category-Sm-tests: Likewise.
15534         * modules/unictype/category-So-tests: Likewise.
15535         * modules/unictype/category-Z-tests: Likewise.
15536         * modules/unictype/category-Zl-tests: Likewise.
15537         * modules/unictype/category-Zp-tests: Likewise.
15538         * modules/unictype/category-Zs-tests: Likewise.
15539         * modules/unictype/category-and-not-tests: Likewise.
15540         * modules/unictype/category-and-tests: Likewise.
15541         * modules/unictype/category-byname-tests: Likewise.
15542         * modules/unictype/category-name-tests: Likewise.
15543         * modules/unictype/category-none-tests: Likewise.
15544         * modules/unictype/category-of-tests: Likewise.
15545         * modules/unictype/category-or-tests: Likewise.
15546         * modules/unictype/category-test-withtable-tests: Likewise.
15547         * modules/unictype/combining-class-tests: Likewise.
15548         * modules/unictype/ctype-alnum-tests: Likewise.
15549         * modules/unictype/ctype-alpha-tests: Likewise.
15550         * modules/unictype/ctype-blank-tests: Likewise.
15551         * modules/unictype/ctype-cntrl-tests: Likewise.
15552         * modules/unictype/ctype-digit-tests: Likewise.
15553         * modules/unictype/ctype-graph-tests: Likewise.
15554         * modules/unictype/ctype-lower-tests: Likewise.
15555         * modules/unictype/ctype-print-tests: Likewise.
15556         * modules/unictype/ctype-punct-tests: Likewise.
15557         * modules/unictype/ctype-space-tests: Likewise.
15558         * modules/unictype/ctype-upper-tests: Likewise.
15559         * modules/unictype/ctype-xdigit-tests: Likewise.
15560         * modules/unictype/decimal-digit-tests: Likewise.
15561         * modules/unictype/digit-tests: Likewise.
15562         * modules/unictype/mirror-tests: Likewise.
15563         * modules/unictype/numeric-tests: Likewise.
15564         * modules/unictype/property-alphabetic-tests: Likewise.
15565         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
15566         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
15567         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
15568         * modules/unictype/property-bidi-block-separator-tests: Likewise.
15569         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
15570         * modules/unictype/property-bidi-common-separator-tests: Likewise.
15571         * modules/unictype/property-bidi-control-tests: Likewise.
15572         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
15573         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
15574         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
15575         * modules/unictype/property-bidi-european-digit-tests: Likewise.
15576         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
15577         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
15578         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
15579         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
15580         * modules/unictype/property-bidi-pdf-tests: Likewise.
15581         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
15582         * modules/unictype/property-bidi-whitespace-tests: Likewise.
15583         * modules/unictype/property-byname-tests: Likewise.
15584         * modules/unictype/property-combining-tests: Likewise.
15585         * modules/unictype/property-composite-tests: Likewise.
15586         * modules/unictype/property-currency-symbol-tests: Likewise.
15587         * modules/unictype/property-dash-tests: Likewise.
15588         * modules/unictype/property-decimal-digit-tests: Likewise.
15589         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
15590         * modules/unictype/property-deprecated-tests: Likewise.
15591         * modules/unictype/property-diacritic-tests: Likewise.
15592         * modules/unictype/property-extender-tests: Likewise.
15593         * modules/unictype/property-format-control-tests: Likewise.
15594         * modules/unictype/property-grapheme-base-tests: Likewise.
15595         * modules/unictype/property-grapheme-extend-tests: Likewise.
15596         * modules/unictype/property-grapheme-link-tests: Likewise.
15597         * modules/unictype/property-hex-digit-tests: Likewise.
15598         * modules/unictype/property-hyphen-tests: Likewise.
15599         * modules/unictype/property-id-continue-tests: Likewise.
15600         * modules/unictype/property-id-start-tests: Likewise.
15601         * modules/unictype/property-ideographic-tests: Likewise.
15602         * modules/unictype/property-ids-binary-operator-tests: Likewise.
15603         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
15604         * modules/unictype/property-ignorable-control-tests: Likewise.
15605         * modules/unictype/property-iso-control-tests: Likewise.
15606         * modules/unictype/property-join-control-tests: Likewise.
15607         * modules/unictype/property-left-of-pair-tests: Likewise.
15608         * modules/unictype/property-line-separator-tests: Likewise.
15609         * modules/unictype/property-logical-order-exception-tests: Likewise.
15610         * modules/unictype/property-lowercase-tests: Likewise.
15611         * modules/unictype/property-math-tests: Likewise.
15612         * modules/unictype/property-non-break-tests: Likewise.
15613         * modules/unictype/property-not-a-character-tests: Likewise.
15614         * modules/unictype/property-numeric-tests: Likewise.
15615         * modules/unictype/property-other-alphabetic-tests: Likewise.
15616         * modules/unictype/property-other-default-ignorable-code-point-tests:
15617         Likewise.
15618         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
15619         * modules/unictype/property-other-id-continue-tests: Likewise.
15620         * modules/unictype/property-other-id-start-tests: Likewise.
15621         * modules/unictype/property-other-lowercase-tests: Likewise.
15622         * modules/unictype/property-other-math-tests: Likewise.
15623         * modules/unictype/property-other-uppercase-tests: Likewise.
15624         * modules/unictype/property-paired-punctuation-tests: Likewise.
15625         * modules/unictype/property-paragraph-separator-tests: Likewise.
15626         * modules/unictype/property-pattern-syntax-tests: Likewise.
15627         * modules/unictype/property-pattern-white-space-tests: Likewise.
15628         * modules/unictype/property-private-use-tests: Likewise.
15629         * modules/unictype/property-punctuation-tests: Likewise.
15630         * modules/unictype/property-quotation-mark-tests: Likewise.
15631         * modules/unictype/property-radical-tests: Likewise.
15632         * modules/unictype/property-sentence-terminal-tests: Likewise.
15633         * modules/unictype/property-soft-dotted-tests: Likewise.
15634         * modules/unictype/property-space-tests: Likewise.
15635         * modules/unictype/property-terminal-punctuation-tests: Likewise.
15636         * modules/unictype/property-test-tests: Likewise.
15637         * modules/unictype/property-titlecase-tests: Likewise.
15638         * modules/unictype/property-unassigned-code-value-tests: Likewise.
15639         * modules/unictype/property-unified-ideograph-tests: Likewise.
15640         * modules/unictype/property-uppercase-tests: Likewise.
15641         * modules/unictype/property-variation-selector-tests: Likewise.
15642         * modules/unictype/property-white-space-tests: Likewise.
15643         * modules/unictype/property-xid-continue-tests: Likewise.
15644         * modules/unictype/property-xid-start-tests: Likewise.
15645         * modules/unictype/property-zero-width-tests: Likewise.
15646         * modules/unictype/scripts-tests: Likewise.
15647         * modules/unictype/syntax-c-ident-tests: Likewise.
15648         * modules/unictype/syntax-c-whitespace-tests: Likewise.
15649         * modules/unictype/syntax-java-ident-tests: Likewise.
15650         * modules/unictype/syntax-java-whitespace-tests: Likewise.
15651         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
15652         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
15653         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
15654         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
15655         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
15656         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
15657         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
15658         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
15659         * modules/uniname/uniname-tests: Likewise.
15660         * modules/uninorm/canonical-decomposition-tests: Likewise.
15661         * modules/uninorm/compat-decomposition-tests: Likewise.
15662         * modules/uninorm/composition-tests: Likewise.
15663         * modules/uninorm/decomposing-form-tests: Likewise.
15664         * modules/uninorm/decomposition-tests: Likewise.
15665         * modules/uninorm/filter-tests: Likewise.
15666         * modules/uninorm/nfc-tests: Likewise.
15667         * modules/uninorm/nfd-tests: Likewise.
15668         * modules/uninorm/nfkc-tests: Likewise.
15669         * modules/uninorm/nfkd-tests: Likewise.
15670         * modules/uninorm/u8-normcmp-tests: Likewise.
15671         * modules/uninorm/u8-normcoll-tests: Likewise.
15672         * modules/uninorm/u16-normcmp-tests: Likewise.
15673         * modules/uninorm/u16-normcoll-tests: Likewise.
15674         * modules/uninorm/u32-normcmp-tests: Likewise.
15675         * modules/uninorm/u32-normcoll-tests: Likewise.
15676         * modules/unistdio/u8-asnprintf-tests: Likewise.
15677         * modules/unistdio/u8-vasnprintf-tests: Likewise.
15678         * modules/unistdio/u8-vasprintf-tests: Likewise.
15679         * modules/unistdio/u8-vsnprintf-tests: Likewise.
15680         * modules/unistdio/u8-vsprintf-tests: Likewise.
15681         * modules/unistdio/u16-asnprintf-tests: Likewise.
15682         * modules/unistdio/u16-vasnprintf-tests: Likewise.
15683         * modules/unistdio/u16-vasprintf-tests: Likewise.
15684         * modules/unistdio/u16-vsnprintf-tests: Likewise.
15685         * modules/unistdio/u16-vsprintf-tests: Likewise.
15686         * modules/unistdio/u32-asnprintf-tests: Likewise.
15687         * modules/unistdio/u32-vasnprintf-tests: Likewise.
15688         * modules/unistdio/u32-vasprintf-tests: Likewise.
15689         * modules/unistdio/u32-vsnprintf-tests: Likewise.
15690         * modules/unistdio/u32-vsprintf-tests: Likewise.
15691         * modules/unistdio/ulc-asnprintf-tests: Likewise.
15692         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
15693         * modules/unistdio/ulc-vasprintf-tests: Likewise.
15694         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
15695         * modules/unistdio/ulc-vsprintf-tests: Likewise.
15696         * modules/unistr/u8-check-tests: Likewise.
15697         * modules/unistr/u8-chr-tests: Likewise.
15698         * modules/unistr/u8-cmp-tests: Likewise.
15699         * modules/unistr/u8-cmp2-tests: Likewise.
15700         * modules/unistr/u8-cpy-alloc-tests: Likewise.
15701         * modules/unistr/u8-cpy-tests: Likewise.
15702         * modules/unistr/u8-mblen-tests: Likewise.
15703         * modules/unistr/u8-mbsnlen-tests: Likewise.
15704         * modules/unistr/u8-mbtouc-tests: Likewise.
15705         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
15706         * modules/unistr/u8-mbtoucr-tests: Likewise.
15707         * modules/unistr/u8-move-tests: Likewise.
15708         * modules/unistr/u8-next-tests: Likewise.
15709         * modules/unistr/u8-prev-tests: Likewise.
15710         * modules/unistr/u8-set-tests: Likewise.
15711         * modules/unistr/u8-stpcpy-tests: Likewise.
15712         * modules/unistr/u8-stpncpy-tests: Likewise.
15713         * modules/unistr/u8-strcat-tests: Likewise.
15714         * modules/unistr/u8-strcmp-tests: Likewise.
15715         * modules/unistr/u8-strcoll-tests: Likewise.
15716         * modules/unistr/u8-strcpy-tests: Likewise.
15717         * modules/unistr/u8-strdup-tests: Likewise.
15718         * modules/unistr/u8-strlen-tests: Likewise.
15719         * modules/unistr/u8-strmblen-tests: Likewise.
15720         * modules/unistr/u8-strmbtouc-tests: Likewise.
15721         * modules/unistr/u8-strncat-tests: Likewise.
15722         * modules/unistr/u8-strncmp-tests: Likewise.
15723         * modules/unistr/u8-strncpy-tests: Likewise.
15724         * modules/unistr/u8-strnlen-tests: Likewise.
15725         * modules/unistr/u8-to-u16-tests: Likewise.
15726         * modules/unistr/u8-to-u32-tests: Likewise.
15727         * modules/unistr/u8-uctomb-tests: Likewise.
15728         * modules/unistr/u16-check-tests: Likewise.
15729         * modules/unistr/u16-chr-tests: Likewise.
15730         * modules/unistr/u16-cmp-tests: Likewise.
15731         * modules/unistr/u16-cmp2-tests: Likewise.
15732         * modules/unistr/u16-cpy-alloc-tests: Likewise.
15733         * modules/unistr/u16-cpy-tests: Likewise.
15734         * modules/unistr/u16-mblen-tests: Likewise.
15735         * modules/unistr/u16-mbsnlen-tests: Likewise.
15736         * modules/unistr/u16-mbtouc-tests: Likewise.
15737         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
15738         * modules/unistr/u16-mbtoucr-tests: Likewise.
15739         * modules/unistr/u16-move-tests: Likewise.
15740         * modules/unistr/u16-next-tests: Likewise.
15741         * modules/unistr/u16-prev-tests: Likewise.
15742         * modules/unistr/u16-set-tests: Likewise.
15743         * modules/unistr/u16-stpcpy-tests: Likewise.
15744         * modules/unistr/u16-stpncpy-tests: Likewise.
15745         * modules/unistr/u16-strcat-tests: Likewise.
15746         * modules/unistr/u16-strcmp-tests: Likewise.
15747         * modules/unistr/u16-strcoll-tests: Likewise.
15748         * modules/unistr/u16-strcpy-tests: Likewise.
15749         * modules/unistr/u16-strdup-tests: Likewise.
15750         * modules/unistr/u16-strlen-tests: Likewise.
15751         * modules/unistr/u16-strmblen-tests: Likewise.
15752         * modules/unistr/u16-strmbtouc-tests: Likewise.
15753         * modules/unistr/u16-strncat-tests: Likewise.
15754         * modules/unistr/u16-strncmp-tests: Likewise.
15755         * modules/unistr/u16-strncpy-tests: Likewise.
15756         * modules/unistr/u16-strnlen-tests: Likewise.
15757         * modules/unistr/u16-to-u32-tests: Likewise.
15758         * modules/unistr/u16-to-u8-tests: Likewise.
15759         * modules/unistr/u16-uctomb-tests: Likewise.
15760         * modules/unistr/u32-check-tests: Likewise.
15761         * modules/unistr/u32-chr-tests: Likewise.
15762         * modules/unistr/u32-cmp-tests: Likewise.
15763         * modules/unistr/u32-cmp2-tests: Likewise.
15764         * modules/unistr/u32-cpy-alloc-tests: Likewise.
15765         * modules/unistr/u32-cpy-tests: Likewise.
15766         * modules/unistr/u32-mblen-tests: Likewise.
15767         * modules/unistr/u32-mbsnlen-tests: Likewise.
15768         * modules/unistr/u32-mbtouc-tests: Likewise.
15769         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
15770         * modules/unistr/u32-mbtoucr-tests: Likewise.
15771         * modules/unistr/u32-move-tests: Likewise.
15772         * modules/unistr/u32-next-tests: Likewise.
15773         * modules/unistr/u32-prev-tests: Likewise.
15774         * modules/unistr/u32-set-tests: Likewise.
15775         * modules/unistr/u32-stpcpy-tests: Likewise.
15776         * modules/unistr/u32-stpncpy-tests: Likewise.
15777         * modules/unistr/u32-strcat-tests: Likewise.
15778         * modules/unistr/u32-strcmp-tests: Likewise.
15779         * modules/unistr/u32-strcoll-tests: Likewise.
15780         * modules/unistr/u32-strcpy-tests: Likewise.
15781         * modules/unistr/u32-strdup-tests: Likewise.
15782         * modules/unistr/u32-strlen-tests: Likewise.
15783         * modules/unistr/u32-strmblen-tests: Likewise.
15784         * modules/unistr/u32-strmbtouc-tests: Likewise.
15785         * modules/unistr/u32-strncat-tests: Likewise.
15786         * modules/unistr/u32-strncmp-tests: Likewise.
15787         * modules/unistr/u32-strncpy-tests: Likewise.
15788         * modules/unistr/u32-strnlen-tests: Likewise.
15789         * modules/unistr/u32-to-u16-tests: Likewise.
15790         * modules/unistr/u32-to-u8-tests: Likewise.
15791         * modules/unistr/u32-uctomb-tests: Likewise.
15792         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
15793         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
15794         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
15795         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
15796         * modules/uniwidth/u8-strwidth-tests: Likewise.
15797         * modules/uniwidth/u8-width-tests: Likewise.
15798         * modules/uniwidth/u16-strwidth-tests: Likewise.
15799         * modules/uniwidth/u16-width-tests: Likewise.
15800         * modules/uniwidth/u32-strwidth-tests: Likewise.
15801         * modules/uniwidth/u32-width-tests: Likewise.
15802         * modules/uniwidth/width-tests: Likewise.
15803
15804 2010-05-18  Richard Jones  <rjones@redhat.com>
15805
15806         doc: users.txt: list hivex
15807         * users.txt: Add hivex.
15808
15809 2010-05-18  Richard Jones  <rjones@redhat.com>
15810
15811         doc: users.txt: list febootstrap
15812         * users.txt: Add febootstrap.
15813
15814 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
15815
15816         bootstrap: fix an error when gnulib is not used as a git submodule
15817         * build-aux/bootstrap (gnulib_path): If its length is zero then
15818         assign "gnulib" to it.
15819         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
15820
15821 2010-05-16  Bruno Haible  <bruno@clisp.org>
15822
15823         Avoid autoconf warnings about AM_ICONV.
15824         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
15825         2.64.
15826
15827 2010-05-16  Bruno Haible  <bruno@clisp.org>
15828
15829         absolute-header: Make the macro usable in more situations.
15830         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
15831         from gl_ABSOLUTE_HEADER.
15832         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
15833
15834 2010-05-16  James Youngman  <jay@gnu.org>
15835
15836         doc: update users.txt
15837         * users.txt: Add CSSC.
15838
15839 2010-05-16  Jim Meyering  <meyering@redhat.com>
15840
15841         init.sh: fix an error in the previous change; add more comments
15842         * tests/init.sh: Compare exit code in loop against 9, not 2.
15843         Patch by Bruno Haible.
15844         Make the two tests more similar by adding an empty "then" clause.
15845         Add comments.
15846
15847         init.sh: avoid unnecessary shell re-exec
15848         * tests/init.sh: Improve the re-exec-required check to first test the
15849         current shell.  If it passes the test, do not search for a shell that
15850         does pass, and do not re-exec.  This test is particularly contorted to
15851         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
15852         of $(...) evokes a syntax error and causes immediate shell exit with
15853         status 2.  Bruno Haible reported that the re-exec made it impossible
15854         to single-step through any init.sh-using script.
15855
15856 2010-05-16  Bruno Haible  <bruno@clisp.org>
15857
15858         Fix collision between gnulib's and libintl's printf replacements.
15859         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
15860         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
15861         (printf): When using GNU C, map the __printf__ function to rpl_printf
15862         via __asm__. When not using GNU C, define rpl_printf instead of
15863         __printf__.
15864         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
15865         commit.
15866         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
15867         commit.
15868         * m4/asm-underscore.m4: New file.
15869         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
15870         * modules/stdio (Files): Add m4/asm-underscore.m4.
15871         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
15872         Reported by Ben Pfaff.
15873
15874 2010-05-16  Bruno Haible  <bruno@clisp.org>
15875
15876         verify: Avoid skipping the test on openSUSE 11.0.
15877         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
15878
15879 2010-05-13  Bruno Haible  <bruno@clisp.org>
15880
15881         Avoid useless warnings from G++.
15882         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
15883         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
15884         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15885
15886 2010-05-11  Jim Meyering  <meyering@redhat.com>
15887
15888         maint.mk: tweak preceding change
15889         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
15890         regexps tighter by anchoring at EOL, and make the new group "shy"
15891         for slightly decreased overhead.
15892
15893 2010-05-11  Eric Blake  <eblake@redhat.com>
15894
15895         maint.mk: gnulib doesn't guarantee NSIG
15896         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
15897
15898 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
15899
15900         test-pwrite.c: Remove unused variable declaration.
15901         * tests/test-pwrite.c (main): Remove read_buf declaration.
15902
15903         Remove useless test-pwrite.sh file.
15904         * tests/test-pwrite.sh: Delete file.
15905         * modules/pwrite-tests: Remove references.
15906         Reported by Bruno Haible.
15907
15908 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
15909
15910         init.sh: fix a typo
15911         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
15912
15913 2010-05-10  Jim Meyering  <meyering@redhat.com>
15914
15915         maint.mk: avoid using a temporary file in the always-defined-macros check
15916         * top/maint.mk (.re-defmac): Remove rule.
15917         (gl_trap_): Remove definition.
15918         (sc_prohibit_always-defined_macros): Rewrite not to create and
15919         depend on a temporary file.  Instead, depend on GNU grep's ability
15920         to read a list of regular expressions from stdin when given "-f -".
15921
15922 2010-05-09  Bruno Haible  <bruno@clisp.org>
15923
15924         Update to GNU gettext 0.18, part 1.
15925         * m4/gettext.m4: Update to GNU gettext 0.18.
15926         * m4/intl.m4: Likewise.
15927         * m4/po.m4: Likewise.
15928         * modules/gettext (Files): Add m4/fcntl-o.m4.
15929         (configure.ac): Require gettext infrastructure from version 0.18.
15930
15931 2010-05-09  Jim Meyering  <meyering@redhat.com>
15932
15933         init.sh: enable MALLOC_PERTURB_
15934         * tests/init.sh: Enable glibc's malloc-perturbing option.
15935
15936         maint.mk: improve sc_cross_check_PATH_usage_in_tests
15937         With my recent change in init.sh from the two-line form:
15938             -#   : ${srcdir=.}
15939             -#   . "$srcdir/init.sh"; path_prepend_ .
15940             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
15941         I noticed that using the one-line form would cause this test
15942         to fail with a false-positive, or to stop working altogether,
15943         depending on whether help-version changed or all the tests did.
15944         * top/maint.mk (_hv_regex): Remove this definition.
15945         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
15946         (_hv_regex_strong): Use a stronger regex to check for conformance.
15947         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
15948         Give a separate diagnostic for lack of conforming use.
15949
15950         maint.mk: prohibit definition of symbols defined by gnulib
15951         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
15952         definition of symbols defined by gnulib.
15953
15954 2010-05-09  Bruno Haible  <bruno@clisp.org>
15955
15956         acl: Avoid test failure on Cygwin-hosted mingw.
15957         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
15958
15959 2010-05-09  Bruno Haible  <bruno@clisp.org>
15960
15961         error: Use system's fcntl function.
15962         * lib/error.c (fcntl): Undefine.
15963
15964 2010-05-09  Jim Meyering  <meyering@redhat.com>
15965
15966         verify: adjust formatting to be more consistent
15967         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
15968         argument-list '('s, and after one comma.
15969
15970 2010-05-09  Bruno Haible  <bruno@clisp.org>
15971
15972         error: More reliable output on mingw.
15973         * lib/error.c: Include <windows.h>.
15974         (is_open): New function.
15975         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
15976         defined.
15977
15978 2010-05-09  Bruno Haible  <bruno@clisp.org>
15979
15980         vasnprintf: Fix syntax errors in libintl build on mingw.
15981         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
15982         pad_ourselves and prec_ourselves after use.
15983
15984 2010-05-08  Bruno Haible  <bruno@clisp.org>
15985
15986         * lib/config.charset: Update comments for Cygwin 1.7.
15987         * lib/localcharset.c: Likewise.
15988
15989 2010-05-07  Jim Meyering  <meyering@redhat.com>
15990
15991         init.sh: improve comments
15992         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
15993         . "${srcdir=.}/init.sh"; path_prepend_ .
15994         Add a note about path_prepend_ and the alternative of using
15995         TESTS_ENVIRONMENT.
15996
15997 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
15998
15999         exclude: Unescape hashed patterns in wildcard mode.
16000         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
16001         to the hash list.
16002         * tests/test-exclude8.sh: New test case.
16003         * modules/exclude-tests: Add new test.
16004
16005 2010-05-05  Eric Blake  <eblake@redhat.com>
16006
16007         verify: automate tests
16008         * modules/verify-tests: New module.
16009         * tests/test-verify.sh: New file.
16010         * tests/test-verify.c: Guard each negative test with a unique id.
16011         Also avoid warning about unused left hand of comma expressions.
16012
16013 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
16014
16015         Further improvements to verify.h, suggested by Eric Blake.
16016         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
16017         the GL_* versions, to avoid collision with OpenGL.
16018         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
16019         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
16020         than testing merely whether it's defined.
16021
16022         Modify verify.h to pacify gcc -Wredundant_decls.
16023         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
16024         These use the prefix "GL_" since they're likely to be useful elsewhere.
16025         We may need to break them out into a different .h file.
16026         (__COUNTER__): Define to 0 if the compiler doesn't support it.
16027         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
16028         of verify_function__.
16029
16030 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
16031
16032         Tests for module pwrite.
16033         * modules/pwrite-tests: New file.
16034         * tests/test-pwrite.sh: New file.
16035         * tests/test-pwrite.c: New file.
16036
16037         New module pwrite.
16038         * lib/unistd.in.h (pwrite): New declaration.
16039         * lib/pwrite.c: New file, from glibc with modifications.
16040         * m4/pwrite.m4: New file.
16041         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
16042         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
16043         REPLACE_PWRITE.
16044         * modules/pwrite: New file.
16045         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
16046         REPLACE_PWRITE.
16047         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
16048         * doc/posix-functions/pwrite.texi: Mention the new module.
16049
16050 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
16051
16052         pread: Update documentation.
16053         * doc/posix-functions/pread.texi: Mention the 'pread' module.
16054
16055 2010-05-04  Eric Blake  <eblake@redhat.com>
16056
16057         docs: update cygwin progress
16058         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
16059         this bug.
16060         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
16061         Added in cygwin 1.7.2.
16062         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
16063         Likewise.
16064         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
16065         Likewise.
16066         * doc/glibc-functions/dup3.texi (dup3): Likewise.
16067         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
16068         * doc/glibc-functions/accept4.texi (accept4): Likewise.
16069         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
16070         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
16071         Mention nproc module.
16072         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
16073         bug in cygwin 1.7.5 addition.
16074         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
16075         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
16076         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
16077         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
16078         1.7.5.
16079         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
16080         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
16081         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
16082         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
16083         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
16084         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
16085         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
16086         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
16087         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
16088         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
16089         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
16090         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
16091         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
16092         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
16093         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
16094         Likewise.
16095         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
16096         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
16097         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
16098         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
16099         Likewise.
16100         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
16101         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
16102         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
16103         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
16104         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
16105         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
16106         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
16107         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
16108         Likewise.
16109         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
16110         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
16111         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
16112         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
16113         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
16114         Likewise.
16115         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
16116         Likewise.
16117         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
16118         Likewise.
16119         * doc/glibc-functions/xdrrec_endofrecord.texi
16120         (xdrrec_endofrecord): Likewise.
16121         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
16122         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
16123         Likewise.
16124         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
16125         Likewise.
16126
16127 2010-05-04  Jim Meyering  <meyering@redhat.com>
16128
16129         gendocs.sh: make its "-s FILE" option more useful
16130         * build-aux/gendocs.sh: When honoring the -s FILE option, update
16131         $PACKAGE to reflect the probably-different basename of "FILE".
16132
16133 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
16134
16135         bootstrap: don't ignore download_po_files failure
16136         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
16137         failure.
16138
16139 2010-05-03  Jim Meyering  <meyering@redhat.com>
16140
16141         maint.mk: allow to pass options to gendocs.sh
16142         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
16143         (gendocs_options_): New overridable variable.
16144
16145         gnu-web-doc-update: don't ignore configure or build failure
16146         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
16147
16148         announce-gen: backslash-escape '@'s in --help output
16149         * build-aux/announce-gen: Fix syntax errors.
16150
16151         maint.mk, announce-gen: allow project-specific announcement mail headers
16152         * top/maint.mk (translation_project_): Define default.
16153         (announcement_Cc_, announcement_mail_headers_): Likewise.
16154         (announcement): Invoke announce-gen with new --mail-headers option.
16155         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
16156
16157         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
16158         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
16159         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
16160         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
16161         line in the "err2" output file when running "make check" in verbose
16162         mode (i.e., with set -x enabled).
16163
16164 2010-05-03  Bruno Haible  <bruno@clisp.org>
16165
16166         wctob: Fix for weird platforms.
16167         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
16168         argument value.
16169
16170 2010-05-03  Jim Meyering  <meyering@redhat.com>
16171
16172         maint.mk: prohibit unwarranted use of <strings.h>
16173         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
16174         strings.h in a file that does not also use strcasecmp, strncasecmp,
16175         ffs or ffsll.
16176
16177         maint.mk: remove obsolete comments
16178         * top/maint.mk: Remove stale, commented-out rules.
16179
16180 2010-05-02  Bruno Haible  <bruno@clisp.org>
16181
16182         wcwidth: Declare also when it's aliased.
16183         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
16184         macro.
16185
16186 2010-05-02  Bruno Haible  <bruno@clisp.org>
16187
16188         Fix regression from 2010-04-25.
16189         * gnulib-tool (func_modules_transitive_closure): Check the status of
16190         all modules, not only of the tests that are of the form foo-tests where
16191         foo is a module.
16192
16193 2010-05-02  Bruno Haible  <bruno@clisp.org>
16194
16195         wctob: Work around nasty Cygwin 1.7.2 bug.
16196         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
16197         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
16198
16199 2010-05-01  Bruno Haible  <bruno@clisp.org>
16200
16201         fpurge: Sharper test.
16202         * tests/test-fpurge.c (main): Add one more ftell check.
16203         * modules/fpurge-tests (Depends-on): Add ftell.
16204         Suggested by Eric Blake.
16205
16206 2010-05-01  Bruno Haible  <bruno@clisp.org>
16207
16208         ftello: Another test.
16209         * tests/test-ftello3.c: New file.
16210         * modules/ftello-tests (Files): Add it.
16211         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
16212         MOSTLYCLEANFILES.
16213
16214         ftell: Another test.
16215         * tests/test-ftell3.c: New file.
16216         * modules/ftell-tests (Files): Add it.
16217         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
16218         MOSTLYCLEANFILES.
16219
16220 2010-05-01  Bruno Haible  <bruno@clisp.org>
16221
16222         ftell, ftello: Work around Solaris bug.
16223         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
16224         * lib/ftello.c: Include stdio-impl.h.
16225         (ftello): On Solaris, when _IOWRT is set, compute the result without
16226         looking at _IOREAD.
16227         * modules/ftello (Files): Add lib/stdio-impl.h.
16228         * doc/posix-functions/ftell.texi: Mention Solaris bug.
16229         * doc/posix-functions/ftello.texi: Likewise.
16230         Reported by Eric Blake.
16231
16232 2010-05-01  Bruno Haible  <bruno@clisp.org>
16233
16234         freading: Adapt to special meaning of _IOREAD flag on Solaris.
16235         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
16236         the _IOWRT flag is also set.
16237
16238 2010-05-01  Bruno Haible  <bruno@clisp.org>
16239
16240         Fix doc about a HP-UX stdio bug.
16241         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
16242         * doc/posix-functions/ftello.texi: Likewise.
16243
16244 2010-05-01  Bruno Haible  <bruno@clisp.org>
16245
16246         lseek test: Fix failure on Solaris.
16247         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
16248         output.
16249
16250 2010-04-30  Jim Meyering  <meyering@redhat.com>
16251
16252         bootstrap: don't ignore failure to generate po*/Makevars
16253         * build-aux/bootstrap (with_gettext): Don't ignore failure
16254         to create po/Makevars or runtime-po/Makevars.
16255
16256 2010-04-29  Eric Blake  <eblake@redhat.com>
16257
16258         headers: relax license to LGPLv2+
16259         * modules/fcntl-h (License): Relax license.
16260         * modules/getopt-posix (License): Likewise.
16261         * modules/locale (License): Likewise.
16262         * modules/math (License): Likewise.
16263         * modules/pty (License): Likewise.
16264         * modules/sched (License): Likewise.
16265         * modules/search (License): Likewise.
16266         * modules/spawn (License): Likewise.
16267         * modules/stdarg (License): Likewise.
16268         * modules/sysexits (License): Likewise.
16269
16270 2010-04-29  Jim Meyering  <meyering@redhat.com>
16271
16272         inttypes: relax license to LGPLv2+
16273         * modules/inttypes (License): Relax license.
16274
16275 2010-04-29  Simon Josefsson  <simon@josefsson.org>
16276
16277         * top/maint.mk (indent): Run twice to produce idempotent results.
16278
16279 2010-04-28  Bruno Haible  <bruno@clisp.org>
16280
16281         getdate: Generate getdate.c in the source directory.
16282         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
16283         MOSTLYCLEANFILES.
16284         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
16285
16286 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
16287
16288         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
16289         is not declared as a const *; avoid warnings in that case.
16290
16291 2010-04-28  Eric Blake  <eblake@redhat.com>
16292
16293         canonicalize-lgpl: avoid compiler warning
16294         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
16295         declaration' / 'extraneous semicolon' warning with some compilers.
16296         Reported by Andreas Gruenbacher.
16297
16298 2010-04-28  Jim Meyering  <meyering@redhat.com>
16299
16300         init.sh: ensure a more reliable exit status when exiting via trap
16301         * tests/init.sh (setup_): Don't rely on $? in signal handler.
16302         Inspired by patches from Dmitry V. Levin.
16303         Also trap on signal 3 (SIGQUIT).
16304
16305 2010-04-27  Bruno Haible  <bruno@clisp.org>
16306
16307         Update doc about utimes().
16308         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
16309         'utimens' module.
16310         Reported by Andreas Gruenbacher <agruen@suse.de>.
16311
16312 2010-04-27  Eric Blake  <eblake@redhat.com>
16313
16314         full-read, full-write: relax license
16315         * modules/full-read (License): Drop to LGPLv2+.
16316         * modules/full-write (License): Likewise.
16317         * modules/safe-read (License): Likewise.
16318         * modules/safe-write (License): Likewise.
16319
16320         pthread: mention library for linking
16321         * modules/pthread (Link): Mention $(LIB_PTHREAD).
16322
16323 2010-04-27  Jim Meyering  <meyering@redhat.com>
16324
16325         maint.mk: fix a bug introduced in last change
16326         * top/maint.mk (gl_assured_headers_): Now that all names are on
16327         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
16328         is not anchored to end of word, it should be adequate.
16329
16330         maint.mk: avoid side-effect in latest syntax-check
16331         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
16332         to run commands via $(shell...), and hence to incur cost only when
16333         the new rule is actually run.
16334
16335         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
16336         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
16337         and use that to create a regexp used to detect all #if HAVE_..._H uses.
16338         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
16339         (gl_assured_headers_, az_, AZ_): Define.
16340         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
16341
16342 2010-04-26  Jim Meyering  <jim@meyering.net>
16343             Bruno Haible  <bruno@clisp.org>
16344
16345         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
16346         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
16347         Prompted by an exchange with Gilles Espinasse.
16348
16349 2010-04-26  Jim Meyering  <meyering@redhat.com>
16350
16351         git-version-gen: aesthetic tweak
16352         * build-aux/git-version-gen: Use "$nl" rather than a literal,
16353         so that the command remains on a single line.
16354
16355 2010-04-26  Eric Blake  <eblake@redhat.com>
16356
16357         git-version-gen: allow use on EBCDIC hosts
16358         * build-aux/git-version-gen (dirty): Use literal rather than tying
16359         ourselves to ascii.
16360         Reported by Steve Goetze.
16361
16362 2010-04-25  Bruno Haible  <bruno@clisp.org>
16363
16364         netdb: Add support for GNULIB_POSIXCHECK.
16365         * lib/netdb.in.h: Include warn-on-use.h.
16366         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
16367         functions are used when GNULIB_POSIXCHECK is defined and the
16368         getaddrinfo module is not in use.
16369         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
16370         freeaddrinfo, gai_strerror, getnameinfo are declared.
16371         * modules/netdb (Depends-on): Add warn-on-use.
16372         (Makefile.am): Include warn-on-use.h in netdb.h.
16373
16374 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
16375
16376         build: avoid "make check" failure without .git/ directory
16377         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
16378         there is no .git/ directory.
16379
16380 2010-04-25  Bruno Haible  <bruno@clisp.org>
16381
16382         ptsname: Fix misuse of ttyname_r.
16383         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
16384         of errno.
16385
16386 2010-04-25  Bruno Haible  <bruno@clisp.org>
16387
16388         ttyname_r: Make it work on Solaris 10.
16389         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
16390         if the system function has the POSIX declaration. Test whether the
16391         function fails if the buffer is less than 128 bytes large.
16392         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
16393         system's ttyname_r function. Provide a reasonably large buffer.
16394         * modules/ttyname_r (Depends-on): Add extensions.
16395         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
16396
16397 2010-04-25  Bruno Haible  <bruno@clisp.org>
16398
16399         Use the 'extensions' module for some more functions on Solaris.
16400         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
16401         module.
16402         * doc/posix-functions/ctime_r.texi: Likewise.
16403         * doc/posix-functions/getgrgid_r.texi: Likewise.
16404         * doc/posix-functions/getgrnam_r.texi: Likewise.
16405         * doc/posix-functions/getpwnam_r.texi: Likewise.
16406         * doc/posix-functions/getpwuid_r.texi: Likewise.
16407         * doc/posix-functions/readdir_r.texi: Likewise.
16408         * doc/posix-functions/sigwait.texi: Likewise.
16409         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
16410         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
16411
16412 2010-04-25  Bruno Haible  <bruno@clisp.org>
16413
16414         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
16415         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
16416         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
16417         * lib/ttyname_r.c: Include <limits.h>.
16418         (ttyname_r): Define using the system's ttyname_r function, if it exists
16419         and not on Solaris.
16420         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
16421         set.
16422         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
16423         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
16424         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
16425         Reported by Simon Josefsson.
16426
16427 2010-04-25  Bruno Haible  <bruno@clisp.org>
16428
16429         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
16430         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
16431         * doc/posix-functions/ctime_r.texi: Likewise.
16432         * doc/posix-functions/getgrgid_r.texi: Likewise.
16433         * doc/posix-functions/getgrnam_r.texi: Likewise.
16434         * doc/posix-functions/getlogin_r.texi: Likewise.
16435         * doc/posix-functions/getpwnam_r.texi: Likewise.
16436         * doc/posix-functions/getpwuid_r.texi: Likewise.
16437         * doc/posix-functions/readdir_r.texi: Likewise.
16438         * doc/posix-functions/sigwait.texi: Likewise.
16439         * doc/posix-functions/ttyname_r.texi: Likewise.
16440         Reported by Simon Josefsson.
16441
16442 2010-04-25  Bruno Haible  <bruno@clisp.org>
16443
16444         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
16445         * gnulib-tool (func_usage): Document that --with-*-tests options apply
16446         also to --create-testdir.
16447         (func_acceptable): Don't consider the status of *-tests modules here.
16448         (func_modules_transitive_closure): Consider it here, before including a
16449         test module.
16450         (func_import, func_create_testdir): Set inc_all_direct_tests,
16451         inc_all_indirect_tests.
16452         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
16453         --create-testdir and --create-megatestdir.
16454
16455 2010-04-25  Bruno Haible  <bruno@clisp.org>
16456
16457         gnulib-tool: Add --without-*-tests options.
16458         * gnulib-tool (func_usage): Document the --without-*-tests options.
16459         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
16460         excl_unportable_tests): New variables.
16461         Fail if they are specified with --import or --update.
16462         (func_acceptable): Respect the excl_*_tests variables.
16463         (func_import): Set the excl_*_tests variables to empty.
16464
16465 2010-04-25  Simon Josefsson  <simon@josefsson.org>
16466             Bruno Haible  <bruno@clisp.org>
16467
16468         Work around a MacOS X 10.4 bug with openpty.
16469         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
16470         * tests/test-openpty.c (main): Close the master side explicitly.
16471
16472 2010-04-25  Bruno Haible  <bruno@clisp.org>
16473
16474         strnlen: Fix a C++ test error on MacOS X and Solaris.
16475         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
16476         the function is not declared.
16477         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
16478         Simon Josefsson.
16479
16480 2010-04-24  Bruno Haible  <bruno@clisp.org>
16481
16482         Avoid a gcc warning.
16483         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
16484         of correct type for %08lx directive.
16485         Reported by Eric Blake.
16486
16487 2010-04-24  Bruno Haible  <bruno@clisp.org>
16488
16489         vasnprintf: Correct errno value in case of out-of-memory.
16490         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
16491         or sprintf. Use the errno value from SNPRINTF or sprintf.
16492         Reported by Ian Beckwith <ianb@erislabs.net>.
16493
16494 2010-04-24  Bruno Haible  <bruno@clisp.org>
16495
16496         ansi-c++-opt: Find correct compiler when cross-compiling.
16497         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
16498         AC_CHECK_PROGS.
16499         Reported by Simon Josefsson.
16500
16501 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
16502
16503         vc-list-files: Add support for subversion
16504         * build-aux/vc-list-files: Use "svn list" to generate the list of
16505         files controlled by subversion.
16506
16507 2010-04-23  Jim Meyering  <meyering@redhat.com>
16508
16509         vc-list-files tests: convert to use init.sh
16510         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
16511         path_prepend_.
16512         Use Exit, not exit.
16513         Use skip_ rather than open coding it.
16514         Remove trap set-up and compare definitions.
16515         * tests/test-vc-list-files-git.sh: Likewise.
16516         * modules/vc-list-files-tests (Files): Add tests/init.sh.
16517
16518 2010-04-22  Simon Josefsson  <simon@josefsson.org>
16519
16520         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
16521         backup files.
16522
16523 2010-04-21  Simon Josefsson  <simon@josefsson.org>
16524
16525         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
16526
16527 2010-04-20  Eric Blake  <eblake@redhat.com>
16528
16529         tests: be robust to ignored SIGPIPE
16530         * tests/test-select-in.sh: Consume all output.
16531         * tests/test-lseek.sh: Check correct exit status, while avoiding
16532         EPIPE.
16533
16534 2010-04-20  Simon Josefsson  <simon@josefsson.org>
16535             Bruno Haible  <bruno@clisp.org>
16536
16537         visibility: Don't use -fvisibility if it leads to a warning.
16538         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
16539         yes, don't pretend that visibility works if it leads to a warning.
16540         Reported by Mike Gran <spk121@yahoo.com>.
16541
16542 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
16543
16544         * build-aux/bootstrap: Use "git -h" for testing for supported options
16545         instead of "git --help".  The short-form option only shows a summary,
16546         and doesn't layout the full man page.  Grep for the full option name
16547         in the summary, too.
16548
16549 2010-04-19  Bruno Haible  <bruno@clisp.org>
16550
16551         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
16552         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
16553         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
16554         mention of RELOCATABLE_STRIP.
16555         Reported by Sylvain Beucler <beuc@beuc.net>.
16556
16557 2010-04-19  Bruno Haible  <bruno@clisp.org>
16558
16559         * lib/diffseq.h: Fix typo in comment.
16560         Reported by Eric Blake.
16561
16562 2010-04-19  Bruno Haible  <bruno@clisp.org>
16563
16564         ioctl: Move autoconf macro to a .m4 file.
16565         * m4/ioctl.m4: New file, extracted from modules/ioctl.
16566         * modules/ioctl (Files): Add it.
16567         (configure.ac): Simply invoke gl_FUNC_IOCTL.
16568         Reported by Ian Beckwith <ianb@erislabs.net>.
16569
16570 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
16571             Bruno Haible  <bruno@clisp.org>
16572
16573         diffseq: Accommodate use-case with abstract arrays.
16574         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
16575         is not defined.
16576         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
16577         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
16578
16579 2010-04-18  Bruno Haible  <bruno@clisp.org>
16580
16581         * doc/posix-headers/stdbool.texi: More precise wording.
16582
16583 2010-04-17  Jim Meyering  <meyering@redhat.com>
16584
16585         maint.mk: use gnu-style indentation in an embedded perl script
16586         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
16587         Rename variable: s/two/last_two_bytes/
16588
16589 2010-04-16  Eric Blake  <eblake@redhat.com>
16590
16591         test-stdbool: skip test that fails with Solaris CC
16592         * tests/test-stdbool.c (f): Skip test that causes compilation
16593         error under buggy C++ compiler.
16594         * lib/stdbool.in.h: Document the limitation.
16595         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
16596
16597         setenv: allow compilation with C++
16598         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
16599         register keyword.
16600
16601         stdint: allow test to pass with C++
16602         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
16603
16604         getopt: allow compilation with C++
16605         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
16606         struct.
16607         * lib/getopt.c (_getopt_internal_r): Use correct type.
16608         Reported by Dagobert Michelson, via Joel E. Denny.
16609
16610 2010-04-16  Bruno Haible  <bruno@clisp.org>
16611
16612         Override netdb.h always.
16613         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
16614         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
16615         Reported by Ludovic Courtès <ludo@gnu.org>.
16616
16617 2010-04-15  Bruno Haible  <bruno@clisp.org>
16618
16619         openpty: Fix mistake from 2010-03-21.
16620         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
16621         Reported by Simon Josefsson.
16622
16623 2010-04-15  Eric Blake  <eblake@redhat.com>
16624
16625         test-forkpty: fix expected signature
16626         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
16627         Reported by Simon Josefsson.
16628
16629 2010-04-15  Jim Meyering  <meyering@redhat.com>
16630
16631         maint.mk: texinfo_suffix_re_: correct the default regexp
16632         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
16633
16634         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
16635         make it configurable via texinfo_suffix_re_.
16636
16637 2010-04-14  Eric Blake  <eblake@redhat.com>
16638
16639         strtok_r: relax license to LGPLv2+
16640         * modules/strtok_r (License): Relax license.
16641         Reported by Matthias Bolte.
16642
16643 2010-04-14  Simon Josefsson  <simon@josefsson.org>
16644
16645         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
16646         version 1.4.4 by default instead of requiring the libgcrypt
16647         version used during build.  This makes it possible to use the
16648         application with older but still binary compatible libgcrypt
16649         versions.
16650
16651 2010-04-13  Eric Blake  <eblake@redhat.com>
16652
16653         getopt-gnu: match recent glibc fixes and posix ruling
16654         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
16655         '+' handling, when requesting extensions.
16656         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
16657         'W;' handling.
16658         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
16659         * doc/posix-functions/getopt.texi (getopt): Document this.
16660         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
16661         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
16662         Likewise.
16663
16664         getopt: merge bug fixes from glibc
16665         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
16666         diagnostics.  Honor '+:' correctly.  Reject ';'.
16667
16668         getopt-posix: detect MacOS bug
16669         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
16670         optind when missing a required argument.
16671         * doc/posix-functions/getopt.texi (getopt): Document the bug.
16672         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
16673         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
16674         Likewise.
16675
16676         getopt-posix: avoid spurious failure on Solaris
16677         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
16678         an indicator that setting optind=1 is sufficient for reset.
16679
16680         getopt-posix: avoid spurious failure on FreeBSD
16681         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
16682         in POSIX mode, since the m4 test uses it.
16683
16684         gnulib-tool: silence warning on BSD sh
16685         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
16686
16687 2010-04-13  Jim Meyering  <meyering@redhat.com>
16688
16689         doc: users.txt: GNU patch now uses gnulib
16690         * users.txt: Add patch.
16691
16692 2010-04-12  Jim Meyering  <meyering@redhat.com>
16693
16694         maint.mk: generate more concise timing data for syntax-check rules
16695         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
16696         " done" from each line that reports a syntax-check test duration.
16697
16698 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
16699
16700         git-version-gen: use "git update-index..." rather than "git status"
16701         * build-aux/git-version-gen: Use git update-index --refresh, not
16702         "git status".  With some versions of git, "git status" would fail
16703         to update the index and result in an unwarranted "-dirty" suffix.
16704
16705 2010-04-11  Jim Meyering  <meyering@redhat.com>
16706
16707         openat: correct formatting (no semantic change)
16708         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
16709         Suggested by Bruno Haible.
16710
16711 2010-04-11  Bruno Haible  <bruno@clisp.org>
16712
16713         Stricter declaration checking in testdirs.
16714         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
16715         If for_tests is true, augment AM_CPPFLAGS to define
16716         GNULIB_STRICT_CHECKING.
16717         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
16718         GNULIB_STRICT_CHECKING is defined, verify that the function is
16719         declared.
16720
16721 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
16722             Bruno Haible  <bruno@clisp.org>
16723
16724         libunistring: Improve configure output.
16725         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
16726         Don't say "consider installing GNU libunistring" when checking again
16727         with libiconv.
16728
16729 2010-04-11  Bruno Haible  <bruno@clisp.org>
16730
16731         libunistring: Correct value of $LTLIBUNISTRING.
16732         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
16733         correct the value of $LTLIBUNISTRING.
16734
16735 2010-04-11  Bruno Haible  <bruno@clisp.org>
16736
16737         havelib: Add static libraries to LIBS in the right order.
16738         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
16739         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
16740
16741 2010-04-11  Bruno Haible  <bruno@clisp.org>
16742
16743         libunistring: Detect libunistring also when it depends on libiconv.
16744         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
16745         the second AC_LIB_HAVE_LINKFLAGS invocation.
16746
16747 2010-04-11  James Youngman  <jay@gnu.org>
16748
16749         close-stream: declare local scalars to be "const"
16750         * lib/close-stream.c (close_stream): Make boolean variables const
16751         to document the fact that we set but do not change them.
16752
16753 2010-04-11  Bruno Haible  <bruno@clisp.org>
16754
16755         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
16756
16757 2010-04-11  Jim Meyering  <meyering@redhat.com>
16758
16759         maint.mk: don't include dist-check.mk
16760         * top/maint.mk: Remove bogus include directive.
16761
16762         maint.mk: improve empty-line-at-EOF check
16763         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
16764         solution, rather than tail+Perl-based one.  The latter would read
16765         a few kilobytes from the end of each file, and did not handle empty
16766         files properly.
16767
16768         maint.mk: print the elapsed time for each syntax-check rule
16769         * top/maint.mk (sc_m_rules_): Save start time in a file.
16770         (sc_z_rules_): New rules: remove temp file and print elapsed time.
16771         (local-check): Interpose the .z rules
16772
16773 2010-04-11  Jim Meyering  <meyering@redhat.com>
16774
16775         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
16776         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
16777         empty file with one that ends in an empty line.
16778
16779 2010-04-10  Bruno Haible  <bruno@clisp.org>
16780
16781         mkdir: Make it work on mingw64.
16782         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
16783         * lib/mkdir.c: Update comment.
16784         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
16785
16786 2010-04-10  Bruno Haible  <bruno@clisp.org>
16787
16788         Don't override improved macro from newer autoconf.
16789         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
16790         autoconf >= 2.62.
16791         Reported by Joel E. Denny <jdenny@clemson.edu>.
16792
16793 2010-04-10  Jim Meyering  <meyering@redhat.com>
16794
16795         maint.mk: new syntax-check rule: prohibit empty lines at end of file
16796         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
16797
16798         maint.mk: correct a diagnostic
16799         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
16800         in diagnostic; now use $prohibit.
16801
16802 2010-04-10  Bruno Haible  <address@hidden>
16803
16804         fchownat: Fix a C++ test error on Solaris 8.
16805         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
16806         the function does not exist.
16807
16808 2010-04-10  Bruno Haible  <bruno@clisp.org>
16809
16810         vasnprintf: Add more tests.
16811         * tests/test-vasnprintf-posix.c: Include <errno.h>.
16812         (test_function): Test converting an invalid wide string.
16813
16814         vasnprintf: Correct handling of unconvertible wide string arguments.
16815         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
16816         VASNPRINTF.
16817         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
16818         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
16819         smaller than the expected maximum need for the directive. Set errno to
16820         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
16821         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
16822         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
16823         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
16824         * modules/vasnprintf (Files): Add m4/printf.m4.
16825         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16826
16827 2010-04-10  Bruno Haible  <bruno@clisp.org>
16828
16829         vasnprintf: Fix crash in %ls directive.
16830         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
16831         string is passed as argument to %ls, with no precision and no width.
16832         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16833
16834 2010-04-10  Bruno Haible  <bruno@clisp.org>
16835
16836         vasnprintf: Fix multiple test failures on mingw.
16837         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
16838         _snprintf, or snwprintf, not _snwprintf.
16839
16840 2010-04-10  Bruno Haible  <bruno@clisp.org>
16841
16842         write: Fix a C++ test error on mingw.
16843         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
16844
16845 2010-04-10  Bruno Haible  <bruno@clisp.org>
16846
16847         vasnprintf test: Reduce code duplication.
16848         * tests/test-vasnprintf.c (test_function): New function, extracted from
16849         test_vasnprintf.
16850         (test_vasnprintf, test_asnprintf): Invoke it.
16851
16852 2010-04-10  Bruno Haible  <bruno@clisp.org>
16853
16854         strnlen: Fix warning in C++ mode on MacOS X.
16855         * lib/string.in.h (strnlen): Use the modern idiom.
16856         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
16857         defining strnlen as a macro already in <config.h>.
16858         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
16859         REPLACE_STRNLEN.
16860         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
16861         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16862
16863 2010-04-08  James Youngman  <jay@gnu.org>
16864
16865         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
16866         the example.
16867
16868 2010-04-09  Jim Meyering  <meyering@redhat.com>
16869
16870         maint.mk: print better diagnostic when there is no $(_hv_file)
16871         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
16872         announce that when $(_hv_file) (aka help-version) does not exist.
16873
16874         init.sh: run tr in the "C" locale to avoid multibyte interpretation
16875         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
16876         not try to interpret its random input bytes.  Jarno Rajahalme reported
16877         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
16878         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
16879         (mktempd_): Likewise, just in case.
16880
16881         ftruncate: add two years to projected module removal date: 2012
16882         * m4/ftruncate.m4: Adjust comments.
16883
16884         ftruncate: mark module as obsolete; even MinGW provides it, now
16885         * modules/ftruncate (Status): Obsolete.
16886         (Notice): Say that.
16887         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
16888         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
16889
16890 2010-04-08  Bruno Haible  <bruno@clisp.org>
16891
16892         Fix side effects from tests-related modules.
16893         * modules/dprintf-posix (Comment): New section.
16894         * modules/fprintf-posix (Comment): Likewise.
16895         * modules/obstack-printf-posix (Comment): Likewise.
16896         * modules/printf-posix (Comment): Likewise.
16897         * modules/snprintf-posix (Comment): Likewise.
16898         * modules/sprintf-posix (Comment): Likewise.
16899         * modules/vasnprintf-posix (Comment): Likewise.
16900         * modules/vasprintf-posix (Comment): Likewise.
16901         * modules/vdprintf-posix (Comment): Likewise.
16902         * modules/vfprintf-posix (Comment): Likewise.
16903         * modules/vprintf-posix (Comment): Likewise.
16904         * modules/vsnprintf-posix (Comment): Likewise.
16905         * modules/vsprintf-posix (Comment): Likewise.
16906         * modules/xprintf-posix (Comment): Likewise.
16907         * modules/xvasprintf-posix (Comment): Likewise.
16908         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
16909         * modules/floorf-tests (Depends-on): Likewise.
16910         * modules/round-tests (Depends-on): Likewise.
16911         * modules/roundf-tests (Depends-on): Likewise.
16912         * modules/trunc-tests (Depends-on): Likewise.
16913         * modules/truncf-tests (Depends-on): Likewise.
16914         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
16915         'fprintf-posix' module is not present.
16916         * tests/test-floorf2.c (check): Likewise.
16917         * tests/test-trunc2.c (check): Likewise.
16918         * tests/test-truncf2.c (check): Likewise.
16919         * tests/test-round2.c (equal): Likewise.
16920         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16921
16922 2010-04-07  Karl Berry  <karl@gnu.org>
16923
16924         * config/srclist.txt,
16925         * config/srclistvars.sh,
16926         * config/srclist-update: doc fixes.
16927
16928 2010-04-07  Jim Meyering  <meyering@redhat.com>
16929
16930         maint.mk: add a PATH crosschecking syntax-check rule
16931         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
16932         Useful if you use a test like the one in help-version (coreutils,
16933         diffutils, grep, gzip) that ensures $(VERSION) matches what is
16934         printed by prog --version.
16935
16936 2010-04-06  Bruno Haible  <bruno@clisp.org>
16937
16938         Fix link error on mingw.
16939         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
16940         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
16941
16942 2010-04-06  Bruno Haible  <bruno@clisp.org>
16943
16944         Assume rmdir exists.
16945         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
16946
16947 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
16948
16949         doc: update users.txt
16950         * users.txt: Add gcal.
16951
16952 2010-04-06  Jim Meyering  <meyering@redhat.com>
16953
16954         init.sh: simply unset TMPDIR rather than risking env -i
16955         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
16956         although it probably works fine on all Unix-based systems, some
16957         systems (Cygwin?) cannot tolerate a totally cleared environment.
16958         Suggestion from Eric Blake.
16959
16960 2010-04-06  Jim Meyering  <meyering@redhat.com>
16961
16962         init.sh: portability fix: use env's POSIX-specified -i option not -u
16963         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
16964         than unportable env -u.  Solaris 5.11's env lacks support for -u.
16965
16966 2010-04-05  Bruno Haible  <bruno@clisp.org>
16967
16968         btowc: Work around Cygwin 1.7.2 bug.
16969         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
16970         does not map NUL to 0.
16971         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
16972
16973 2010-04-05  Bruno Haible  <bruno@clisp.org>
16974
16975         Make the multithread modules work on Cygwin 1.7.2.
16976         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
16977         imported symbols can be declared weak, so that it returns "no" on
16978         Cygwin 1.7.2.
16979
16980 2010-04-05  Bruno Haible  <bruno@clisp.org>
16981
16982         Use the module 'strncat'.
16983         * modules/unistr/u8-strncat (Depends-on): Add strncat.
16984
16985         Tests for module 'strncat'.
16986         * modules/strncat-tests: New file.
16987         * tests/test-strncat.c: New file.
16988
16989         New module 'strncat'.
16990         * lib/string.in.h (strncat): New declaration.
16991         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
16992         * m4/strncat.m4: New file, based on m4/memchr.m4.
16993         * modules/strncat: New file.
16994         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
16995         is declared.
16996         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
16997         REPLACE_STRNCAT.
16998         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
16999         REPLACE_STRNCAT.
17000         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
17001         module.
17002         * tests/test-string-c++.cc: Check signature of strncat.
17003
17004 2010-04-05  Jim Meyering  <meyering@redhat.com>
17005
17006         xstrtoumax-tests: convert to use init.sh
17007         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
17008         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
17009         Use Exit, not exit.
17010         Remove uses of $EXEEXT and "./" to run a program in the current dir.
17011
17012         xstrtoimax-tests: convert to use init.sh
17013         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
17014         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
17015         Use Exit, not exit.
17016         Remove uses of $EXEEXT and "./" to run a program in the current dir.
17017
17018 2010-04-05  Bruno Haible  <bruno@clisp.org>
17019
17020         sys_socket: Avoid #define replacements in C++ mode.
17021         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
17022         warning to the function if possible, rather than #defining the symbol
17023         to a dysfunctional alias.
17024
17025 2010-04-05  Bruno Haible  <bruno@clisp.org>
17026
17027         fseeko: Fix C++ test error on mingw.
17028         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
17029         gl_FUNC_FSEEKO.
17030         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
17031         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
17032         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
17033         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
17034
17035 2010-04-05  Bruno Haible  <bruno@clisp.org>
17036
17037         duplocale: Improve test output.
17038         * tests/test-duplocale.c (main): Print reason for skipped test.
17039
17040 2010-04-05  Bruno Haible  <bruno@clisp.org>
17041
17042         Assume rmdir exists.
17043         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
17044         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
17045
17046 2010-04-05  Bruno Haible  <bruno@clisp.org>
17047
17048         Fix link error on Solaris 8 with cc.
17049         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
17050
17051 2010-04-05  Bruno Haible  <bruno@clisp.org>
17052
17053         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
17054         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
17055
17056 2010-04-05  Bruno Haible  <bruno@clisp.org>
17057
17058         vasprintf: Update documentation.
17059         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
17060
17061 2010-04-05  Bruno Haible  <bruno@clisp.org>
17062
17063         ptsname: Improve test.
17064         * tests/test-ptsname.c (main): Also try the various master names of BSD
17065         systems.
17066
17067 2010-04-05  Bruno Haible  <bruno@clisp.org>
17068
17069         memchr: Avoid a possible C++ test error.
17070         * lib/string.in.h (memchr): Provide declaration if function is missing.
17071         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
17072         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
17073         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
17074         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
17075
17076 2010-04-05  Bruno Haible  <bruno@clisp.org>
17077
17078         strtok_r: Improve idiom.
17079         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
17080         AC_LIBOBJ is used.
17081
17082 2010-04-05  Bruno Haible  <bruno@clisp.org>
17083
17084         strdup: Improve idiom.
17085         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
17086         AC_LIBOBJ is used.
17087         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
17088         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
17089         when AC_LIBOBJ is used.
17090
17091 2010-04-05  Bruno Haible  <bruno@clisp.org>
17092
17093         mbsinit, mbrtowc, wcrtomb: Improve idioms.
17094         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
17095         don't set REPLACE_MBSINIT to 1.
17096         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
17097         don't set REPLACE_MBRTOWC to 1.
17098         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
17099         exist, don't set REPLACE_MBSRTOWCS to 1.
17100         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
17101         exist, don't set REPLACE_MBSNRTOWCS to 1.
17102         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
17103         don't set REPLACE_WCRTOMB to 1.
17104         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
17105         exist, don't set REPLACE_WCSRTOMBS to 1.
17106         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
17107         exist, don't set REPLACE_WCSNRTOMBS to 1.
17108
17109 2010-04-05  Bruno Haible  <bruno@clisp.org>
17110
17111         ldexpl: Improve idiom.
17112         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
17113         make sure to set HAVE_DECL_LDEXPL to 0.
17114
17115 2010-04-05  Jim Meyering  <meyering@redhat.com>
17116
17117         xstrtol-tests: convert to use init.sh
17118         * modules/xstrtol-tests (Files): Add tests/init.sh.
17119         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
17120         Use Exit, not exit.
17121         Remove uses of $EXEEXT and "./" to run a program in the current dir.
17122
17123         atexit-tests: convert to use init.sh
17124         * modules/atexit-tests (Files): Add tests/init.sh.
17125         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
17126         Use Exit, not exit.
17127         Remove uses of $EXEEXT and "./" to run a program in the current dir.
17128
17129         init.sh: fix typo
17130         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
17131
17132         init.sh: make it easier for a test script to write to the tty, ...
17133         when using automake's parallel-tests mode.
17134         * tests/init.sh (stderr_fileno_): Define overridable variable.
17135         (warn_): New function, to use it.
17136         (fail_, skip_, framework_failure_): Use warn_.
17137
17138 2010-04-04  Bruno Haible  <bruno@clisp.org>
17139
17140         btowc: Avoid warning.
17141         * lib/btowc.c: Include <stdlib.h>.
17142         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
17143
17144 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
17145             Bruno Haible  <bruno@clisp.org>
17146
17147         wchar: Port to NetBSD 1.5.
17148         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
17149         * lib/wctype.in.h (WEOF): Likewise.
17150
17151 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
17152             Bruno Haible  <bruno@clisp.org>
17153
17154         Port extended stdio to NetBSD 1.5.
17155         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
17156         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
17157         older.
17158
17159 2010-04-04  Bruno Haible  <bruno@clisp.org>
17160
17161         string: Remove unused substitution.
17162         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
17163         HAVE_DECL_STRERROR.
17164         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
17165
17166 2010-04-04  Bruno Haible  <bruno@clisp.org>
17167
17168         strtod: Avoid a possible C++ test error.
17169         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
17170         set REPLACE_STRTOD.
17171
17172 2010-04-04  Bruno Haible  <bruno@clisp.org>
17173
17174         strerror: Update documentation.
17175         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
17176
17177 2010-04-04  Bruno Haible  <bruno@clisp.org>
17178
17179         stdio: Fix some C++ test errors on Solaris 8 with GCC.
17180         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
17181         _GL_CXXALIAS_SYS_CAST.
17182
17183 2010-04-04  Bruno Haible  <bruno@clisp.org>
17184
17185         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
17186         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
17187         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
17188         REPLACE_FREXPL to 1.
17189         * doc/posix-functions/frexpl.texi: Update documentation.
17190
17191 2010-04-04  Bruno Haible  <bruno@clisp.org>
17192
17193         math: Fix some C++ test errors on Solaris 8 and Cygwin.
17194         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
17195
17196 2010-04-04  Bruno Haible  <bruno@clisp.org>
17197
17198         Implement nanosleep for native Windows.
17199         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
17200
17201 2010-04-04  Bruno Haible  <bruno@clisp.org>
17202
17203         math: Fix some C++ test errors on Solaris 8.
17204         * lib/math.in.h (truncf, trunc): Use simpler idiom.
17205
17206 2010-04-04  Bruno Haible  <bruno@clisp.org>
17207
17208         math: Fix some C++ test errors on Cygwin.
17209         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
17210         truncl): Provide declaration if the system does not have it.
17211         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
17212         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
17213         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
17214         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
17215         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
17216         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
17217         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
17218         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
17219         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
17220         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
17221         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
17222         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
17223         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
17224         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
17225         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
17226         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
17227         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
17228         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
17229         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
17230         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
17231         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
17232         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
17233
17234 2010-04-04  Bruno Haible  <bruno@clisp.org>
17235
17236         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
17237         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
17238         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
17239         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
17240         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
17241         * m4/isinf.m4 (gl_ISINF): Likewise.
17242         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17243
17244 2010-04-04  Bruno Haible  <bruno@clisp.org>
17245
17246         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
17247         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
17248
17249 2010-04-04  Bruno Haible  <bruno@clisp.org>
17250
17251         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
17252         * modules/tmpfile (configure.ac): Update.
17253
17254         tmpfile: Fix C++ test error on mingw.
17255         * lib/stdio.in.h (tmpfile): New declaration.
17256         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
17257         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
17258         * modules/tmpfile (Depends-on): Add stdio.
17259         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
17260         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
17261         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
17262         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
17263         REPLACE_TMPFILE.
17264         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
17265
17266 2010-04-04  Bruno Haible  <bruno@clisp.org>
17267
17268         ioctl: Fix C++ test error on mingw.
17269         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
17270         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
17271         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
17272
17273 2010-04-03  Bruno Haible  <bruno@clisp.org>
17274
17275         wcwidth: Fix C++ test error on mingw.
17276         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
17277         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
17278         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
17279
17280 2010-04-03  Bruno Haible  <bruno@clisp.org>
17281
17282         nanosleep: Fix C++ test error on mingw.
17283         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
17284         * lib/time.in.h (nanosleep): Use modern idiom.
17285         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
17286         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
17287         REPLACE_NANOSLEEP to 1.
17288         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
17289         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
17290
17291 2010-04-03  Bruno Haible  <bruno@clisp.org>
17292
17293         strptime: Fix C++ test error on mingw.
17294         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
17295         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
17296         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
17297         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
17298         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
17299         not REPLACE_STRPTIME.
17300         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
17301         REPLACE_STRPTIME.
17302
17303 2010-04-03  Bruno Haible  <bruno@clisp.org>
17304
17305         timegm: Fix C++ test error on mingw.
17306         * lib/time.in.h (timegm): Use modern idiom.
17307         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
17308         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
17309         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
17310         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
17311
17312 2010-04-03  Bruno Haible  <bruno@clisp.org>
17313
17314         timegm: Assume declaration if function exists.
17315         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
17316         if it exists. Don't clobber ac_cv_func_timegm.
17317
17318 2010-04-03  Bruno Haible  <bruno@clisp.org>
17319
17320         time_r: Fix C++ test error on mingw.
17321         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
17322         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
17323         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
17324         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
17325         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
17326
17327 2010-04-03  Bruno Haible  <bruno@clisp.org>
17328
17329         time_r: Minor updates.
17330         * modules/time_r (Description): Mention the provided functions.
17331         * lib/time_r.c: Don't include <string.h>.
17332         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
17333         * doc/posix-functions/localtime_r.texi: Likewise.
17334
17335 2010-04-03  Bruno Haible  <bruno@clisp.org>
17336
17337         time: Fix regression introduced on 2010-03-08.
17338         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
17339         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
17340
17341 2010-04-03  Jim Meyering  <meyering@redhat.com>
17342
17343         maint.mk: don't silently disable project-specific syntax-check rules
17344         * top/maint.mk (_prohibit_regexp): Define, to help people realize
17345         that they need to convert their project-specific syntax-check rules
17346         to use the new _sc_search_regexp.
17347
17348 2010-04-03  Bruno Haible  <bruno@clisp.org>
17349
17350         fchdir: Fix regression introduced on 2010-03-08.
17351         * lib/unistd.in.h (fchdir): Fix declaration.
17352         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
17353         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
17354         REPLACE_FCHDIR.
17355         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
17356         REPLACE_FCHDIR.
17357
17358 2010-04-03  Bruno Haible  <bruno@clisp.org>
17359
17360         getpagesize: Fix C++ test error on mingw.
17361         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
17362         system does not declare the function.
17363         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
17364         declared.
17365         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17366         HAVE_DECL_GETPAGESIZE.
17367         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
17368
17369 2010-04-03  Bruno Haible  <bruno@clisp.org>
17370
17371         stdio: Make C++ tests work on mingw.
17372         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
17373         does not declare the function.
17374
17375 2010-04-03  Bruno Haible  <bruno@clisp.org>
17376
17377         ftello: Fix C++ test error on mingw.
17378         * lib/stdio.in.h (ftello): Use modern idiom.
17379         * lib/ftello.c (ftello): Renamed from rpl_ftello.
17380         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
17381         is missing and that it needs to be replaced.
17382         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
17383         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
17384         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
17385
17386 2010-04-03  Bruno Haible  <bruno@clisp.org>
17387
17388         fseeko: Fix C++ test error on mingw.
17389         * lib/stdio.in.h (fseeko): Use modern idiom.
17390         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
17391         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
17392         is missing and that it needs to be replaced.
17393         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
17394         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
17395         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
17396
17397 2010-04-03  Bruno Haible  <bruno@clisp.org>
17398
17399         mkstemp: Fix C++ test error on mingw.
17400         * lib/stdlib.in.h (mkstemp): Use modern idiom.
17401         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
17402         function is missing and that it needs to be replaced.
17403         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
17404         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
17405
17406 2010-04-03  Bruno Haible  <bruno@clisp.org>
17407
17408         stpncpy: Fix C++ test error on mingw.
17409         * lib/string.in.h (stpncpy): Use modern idiom.
17410         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
17411         function is missing and that it needs to be replaced.
17412         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
17413         REPLACE_STPNCPY.
17414         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
17415
17416 2010-04-03  Bruno Haible  <bruno@clisp.org>
17417
17418         sys_stat: Fix C++ test error on mingw.
17419         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
17420         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
17421
17422 2010-04-03  Bruno Haible  <bruno@clisp.org>
17423
17424         pty: Update doc.
17425         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
17426
17427 2010-04-03  Bruno Haible  <bruno@clisp.org>
17428
17429         unistd: Fix C++ test error on mingw.
17430         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
17431
17432 2010-04-03  Bruno Haible  <bruno@clisp.org>
17433
17434         Update doc regarding mingw.
17435         * doc/glibc-functions/openpty.texi: Update regarding mingw.
17436         * doc/glibc-functions/login_tty.texi: Likewise.
17437         * doc/glibc-functions/forkpty.texi: Likewise.
17438
17439 2010-04-03  Bruno Haible  <bruno@clisp.org>
17440
17441         stdlib: Avoid compilation failure of c-strtold on mingw.
17442         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
17443
17444 2010-04-03  Bruno Haible  <bruno@clisp.org>
17445
17446         locale: Make C++ tests work on Cygwin and mingw.
17447         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
17448         cannot provide the function.
17449         Reported by Simon Josefsson.
17450
17451 2010-04-03  Bruno Haible  <bruno@clisp.org>
17452
17453         localename: Port to MacOS X 10.6.
17454         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
17455         memory layout of the locales in MacOS X 10.6 as well.
17456         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
17457
17458 2010-04-02  Bruno Haible  <bruno@clisp.org>
17459
17460         gnulib-tool: Ensure that long-running tests are executed last.
17461         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
17462         running tests after the one for the other tests.
17463
17464 2010-04-02  Bruno Haible  <bruno@clisp.org>
17465
17466         gnulib-tool: Ensure the tests in the main directory are executed first.
17467         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
17468         start with the current directory.
17469
17470 2010-04-02  Bruno Haible  <bruno@clisp.org>
17471
17472         Tests for module 'havelib', moved here from GNU gettext.
17473         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
17474         modifications.
17475         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
17476         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
17477         with modifications.
17478         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
17479         modifications.
17480         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
17481         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
17482         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
17483         with modifications.
17484         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
17485         with modifications.
17486         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
17487         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
17488         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
17489         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
17490         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
17491         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
17492         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
17493         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
17494         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
17495         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
17496         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
17497         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
17498         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
17499         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
17500         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
17501         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
17502         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
17503         with modifications.
17504         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
17505         with modifications.
17506         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
17507         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
17508         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
17509         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
17510         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
17511         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
17512         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
17513         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
17514         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
17515         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
17516         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
17517         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
17518         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
17519         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
17520         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
17521         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
17522         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
17523         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
17524         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
17525         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
17526         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
17527         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
17528         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
17529         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
17530         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
17531         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
17532         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
17533         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
17534         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
17535         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
17536         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
17537         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
17538         * tests/havelib/rpathx/rpathx.c: New file, from
17539         gettext/autoconf-lib-link.
17540         * tests/havelib/rpathx/Makefile.am: New file, from
17541         gettext/autoconf-lib-link.
17542         * tests/havelib/rpathx/configure.ac: New file, from
17543         gettext/autoconf-lib-link with modifications.
17544         * tests/havelib/rpathy/rpathy.c: New file, from
17545         gettext/autoconf-lib-link.
17546         * tests/havelib/rpathy/Makefile.am: New file, from
17547         gettext/autoconf-lib-link.
17548         * tests/havelib/rpathy/configure.ac: New file, from
17549         gettext/autoconf-lib-link with modifications.
17550         * tests/havelib/rpathz/rpathz.c: New file, from
17551         gettext/autoconf-lib-link.
17552         * tests/havelib/rpathz/Makefile.am: New file, from
17553         gettext/autoconf-lib-link.
17554         * tests/havelib/rpathz/configure.ac: New file, from
17555         gettext/autoconf-lib-link with modifications.
17556         * tests/havelib/rpathlx/usex.c: New file, from
17557         gettext/autoconf-lib-link.
17558         * tests/havelib/rpathlx/Makefile.am: New file, from
17559         gettext/autoconf-lib-link.
17560         * tests/havelib/rpathlx/configure.ac: New file, from
17561         gettext/autoconf-lib-link with modifications.
17562         * tests/havelib/rpathly/usey.c: New file, from
17563         gettext/autoconf-lib-link.
17564         * tests/havelib/rpathly/Makefile.am: New file, from
17565         gettext/autoconf-lib-link.
17566         * tests/havelib/rpathly/configure.ac: New file, from
17567         gettext/autoconf-lib-link with modifications.
17568         * tests/havelib/rpathlz/usez.c: New file, from
17569         gettext/autoconf-lib-link.
17570         * tests/havelib/rpathlz/Makefile.am: New file, from
17571         gettext/autoconf-lib-link.
17572         * tests/havelib/rpathlz/configure.ac: New file, from
17573         gettext/autoconf-lib-link with modifications.
17574         * tests/havelib/rpathlyx/usey.c: New file, from
17575         gettext/autoconf-lib-link.
17576         * tests/havelib/rpathlyx/Makefile.am: New file, from
17577         gettext/autoconf-lib-link.
17578         * tests/havelib/rpathlyx/configure.ac: New file, from
17579         gettext/autoconf-lib-link with modifications.
17580         * tests/havelib/rpathlzyx/usez.c: New file, from
17581         gettext/autoconf-lib-link.
17582         * tests/havelib/rpathlzyx/Makefile.am: New file, from
17583         gettext/autoconf-lib-link.
17584         * tests/havelib/rpathlzyx/configure.ac: New file, from
17585         gettext/autoconf-lib-link with modifications.
17586         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
17587         with modifications.
17588
17589 2010-04-02  Bruno Haible  <bruno@clisp.org>
17590
17591         gnulib-tool: Create distributed built sources also for the tests.
17592         * gnulib-tool (func_create_testdir): Also generate distributed built
17593         sources in the tests directory.
17594
17595 2010-04-02  Bruno Haible  <bruno@clisp.org>
17596
17597         gnulib-tool: Obey user's environment variables.
17598         * gnulib-tool (func_create_testdir): When creating built sources,
17599         respect the environment variables for autoconf, automake, etc. given by
17600         the user.
17601
17602 2010-04-02  Bruno Haible  <bruno@clisp.org>
17603
17604         gnulib-tool: Provide the value of --m4-base to modules.
17605         * gnulib-tool (func_import, func_create_testdir): Emit a definition
17606         of gl_m4_base.
17607
17608 2010-04-02  Eric Blake  <eblake@redhat.com>
17609
17610         maint.mk: fix some fallout
17611         * NEWS: Document the incompatible change, and its effect on cfg.mk.
17612         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
17613
17614 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
17615
17616         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
17617         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
17618         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
17619         (sc_cast_of_x_alloc_return_value): Likewise.
17620         (sc_cast_of_alloca_return_value): Likewise.
17621         (sc_space_tab): Likewise.
17622         (sc_prohibit_atoi_atof): Likewise.
17623         (sc_prohibit_magic_number_exit): Likewise.
17624         (sc_error_exit_success): Likewise.
17625         (sc_file_system): Likewise.
17626         (sc_prohibit_have_config_h): Likewise.
17627         (sc_require_config_h): Likewise.
17628         (sc_prohibit_HAVE_MBRTOWC): Likewise.
17629         (sc_obsolete_symbols): Likewise.
17630         (sc_changelog): Likewise.
17631         (sc_program_name): Likewise.
17632         (sc_the_the): Likewise.
17633         (sc_trailing_blank): Likewise.
17634         (sc_two_space_separator_in_usage): Likewise.
17635         (sc_useless_cpp_parens): Likewise.
17636         (sc_GPL_version): Likewise.
17637         (sc_GFDL_version): Likewise.
17638         (sc_texinfo_acronym): Likewise.
17639         (sc_prohibit_cvs_keyword): Likewise.
17640         (sc_prohibit_stat_st_blocks): Likewise.
17641         (sc_prohibit_S_IS_definition): Likewise.
17642         (sc_redundant_const): Likewise.
17643         (sc_makefile_TAB_only_indentation): Likewise.
17644         (sc_m4_quote_check): Likewise.
17645         (sc_makefile_path_separator_check): Likewise.
17646         (sc_copyright_check): Likewise.
17647         (sc_Wundef_boolean): Likewise.
17648         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
17649
17650         maint.mk: match 0 or more whitespace-before-function-call '('
17651         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
17652         that have zero or two-and-more spaces between the function name
17653         and the open parenthesis.
17654         (sc_error_message_warn_fatal): Likewise.
17655         (sc_error_message_uppercase): Likewise.
17656         (sc_error_message_period): Likewise.
17657
17658 2010-03-31  Eric Blake  <eblake@redhat.com>
17659
17660         maint.mk: check for [ as well as test
17661         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
17662         Based on a libvirt report by Matthias Bolte.
17663
17664         gnumakefile: don't squelch _version output
17665         * top/GNUmakefile (_version): Create one-shot dependency rather
17666         than using $(shell) when version must be regenerated.
17667         (_autoreconf): Run verbosely, by default.
17668
17669         sys_time: avoid compiler warnings
17670         * lib/sys_time.in.h (includes): Ensure gcc pragma is
17671         unconditional, fixing regression from 2010-03-29.
17672         Reported by Simon Josefsson.
17673
17674 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
17675
17676         maint.mk: s/_header_without_use/_sc_header_without_use/
17677         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
17678         (sc_prohibit_assert_without_use): Use the new name.
17679         (sc_prohibit_close_stream_without_use): Likewise.
17680         (sc_prohibit_getopt_without_use): Likewise.
17681         (sc_prohibit_quotearg_without_use): Likewise.
17682         (sc_prohibit_quote_without_use): Likewise.
17683         (sc_prohibit_long_options_without_use): Likewise.
17684         (sc_prohibit_inttostr_without_use): Likewise.
17685         (sc_prohibit_ignore_value_without_use): Likewise.
17686         (sc_prohibit_error_without_use): Likewise.
17687         (sc_prohibit_xalloc_without_use): Likewise.
17688         (sc_prohibit_hash_without_use): Likewise.
17689         (sc_prohibit_hash_pjw_without_use): Likewise.
17690         (sc_prohibit_safe_read_without_use): Likewise.
17691         (sc_prohibit_argmatch_without_use): Likewise.
17692         (sc_prohibit_canonicalize_without_use): Likewise.
17693         (sc_prohibit_root_dev_ino_without_use): Likewise.
17694         (sc_prohibit_openat_without_use): Likewise.
17695         (sc_prohibit_c_ctype_without_use): Likewise.
17696         (sc_prohibit_signal_without_use): Likewise.
17697         (sc_prohibit_intprops_without_use): Likewise.
17698
17699 2010-03-30  Eric Blake  <eblake@redhat.com>
17700
17701         maint: improve module indicators
17702         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
17703         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
17704         columns, and avoid extra macro expansion.
17705
17706         fdopendir: work around FreeBSD bug
17707         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
17708         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
17709         * modules/dirent (Makefile.am): Substitute it.
17710         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
17711         declaration.
17712         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
17713         fix.
17714         Reported by Christian Weisgerber <naddy@mips.inka.de>.
17715
17716 2010-03-29  Bruno Haible  <bruno@clisp.org>
17717
17718         Emit #pragma system_header after the inclusion guard, not before.
17719         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
17720         guard that spans the entire file, not before. This enables an
17721         optimization in GCC's preprocessor.
17722         * lib/ctype.in.h: Likewise.
17723         * lib/dirent.in.h: Likewise.
17724         * lib/errno.in.h: Likewise.
17725         * lib/float.in.h: Likewise.
17726         * lib/getopt.in.h: Likewise.
17727         * lib/iconv.in.h: Likewise.
17728         * lib/langinfo.in.h: Likewise.
17729         * lib/locale.in.h: Likewise.
17730         * lib/math.in.h: Likewise.
17731         * lib/netdb.in.h: Likewise.
17732         * lib/netinet_in.in.h: Likewise.
17733         * lib/pty.in.h: Likewise.
17734         * lib/sched.in.h: Likewise.
17735         * lib/se-selinux.in.h: Likewise.
17736         * lib/search.in.h: Likewise.
17737         * lib/spawn.in.h: Likewise.
17738         * lib/stdarg.in.h: Likewise.
17739         * lib/stdint.in.h: Likewise.
17740         * lib/string.in.h: Likewise.
17741         * lib/strings.in.h: Likewise.
17742         * lib/sys_file.in.h: Likewise.
17743         * lib/sys_ioctl.in.h: Likewise.
17744         * lib/sys_time.in.h: Likewise.
17745         * lib/sys_times.in.h: Likewise.
17746         * lib/sys_utsname.in.h: Likewise.
17747         * lib/sys_wait.in.h: Likewise.
17748         * lib/sysexits.in.h: Likewise.
17749         * lib/wctype.in.h: Likewise.
17750
17751 2010-03-28  James Youngman  <jay@gnu.org>
17752
17753         save-cwd: don't leak a file descriptor when the caller execs.
17754         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
17755         saved file descriptor.
17756         * modules/save-cwd (Depends-on): Depend on cloexec.
17757
17758 2010-03-29  Bruno Haible  <bruno@clisp.org>
17759
17760         Remove vestiges of fts-lgpl module.
17761         * lib/fts_.h: Assume GNULIB_FTS is 1.
17762         * lib/fts.c: Likewise.
17763         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
17764
17765 2010-03-28  Bruno Haible  <bruno@clisp.org>
17766
17767         Fix definition of tests witness macro.
17768         * gnulib-tool (func_import): Fix definition of witness macro.
17769
17770 2010-03-28  Bruno Haible  <bruno@clisp.org>
17771
17772         Fix ioctl's protoype on glibc systems.
17773         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
17774         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
17775         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
17776         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
17777         signature. If not, arrange to replace the ioctl function.
17778         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
17779         REPLACE_IOCTL.
17780         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
17781         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
17782         Reported by Ludovic Courtès <ludo@gnu.org>.
17783
17784 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
17785
17786         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
17787         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
17788         made it so grep -r --include=GLOB* ... did not work.
17789
17790 2010-03-26  Jim Meyering  <meyering@redhat.com>
17791             Eric Blake  <eblake@redhat.com>
17792
17793         maint.mk: prohibit use of test's -o and -a operators
17794         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
17795
17796 2010-03-28  Bruno Haible  <bruno@clisp.org>
17797
17798         Remove unused GNULIB_XYZ macro definitions.
17799         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
17800         invocation.
17801
17802 2010-03-28  Bruno Haible  <bruno@clisp.org>
17803
17804         Mark privileged tests modules.
17805         * modules/idpriv-drop-tests (Status): New section.
17806         * modules/idpriv-droptemp-tests (Status): New section.
17807
17808 2010-03-28  Bruno Haible  <bruno@clisp.org>
17809
17810         Split C++ tests into separate tests modules.
17811         * modules/dirent-c++-tests: New file, extracted from
17812         modules/dirent-tests.
17813         * modules/dirent-tests: Depend on it.
17814         * modules/fcntl-h-c++-tests: New file, extracted from
17815         modules/fcntl-h-tests.
17816         * modules/fcntl-h-tests: Depend on it.
17817         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
17818         * modules/glob-tests: Depend on it.
17819         * modules/iconv-h-c++-tests: New file, extracted from
17820         modules/iconv-h-tests.
17821         * modules/iconv-h-tests: Depend on it.
17822         * modules/langinfo-c++-tests: New file, extracted from
17823         modules/langinfo-tests.
17824         * modules/langinfo-tests: Depend on it.
17825         * modules/locale-c++-tests: New file, extracted from
17826         modules/locale-tests.
17827         * modules/locale-tests: Depend on it.
17828         * modules/math-c++-tests: New file, extracted from modules/math-tests.
17829         * modules/math-tests: Depend on it.
17830         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
17831         * modules/pty-tests: Depend on it.
17832         * modules/search-c++-tests: New file, extracted from
17833         modules/search-tests.
17834         * modules/search-tests: Depend on it.
17835         * modules/signal-c++-tests: New file, extracted from
17836         modules/signal-tests.
17837         * modules/signal-tests: Depend on it.
17838         * modules/spawn-c++-tests: New file, extracted from
17839         modules/spawn-tests.
17840         * modules/spawn-tests: Depend on it.
17841         * modules/stdio-c++-tests: New file, extracted from
17842         modules/stdio-tests.
17843         * modules/stdio-tests: Depend on it.
17844         * modules/stdlib-c++-tests: New file, extracted from
17845         modules/stdlib-tests.
17846         * modules/stdlib-tests: Depend on it.
17847         * modules/string-c++-tests: New file, extracted from
17848         modules/string-tests.
17849         * modules/string-tests: Depend on it.
17850         * modules/sys_ioctl-c++-tests: New file, extracted from
17851         modules/sys_ioctl-tests.
17852         * modules/sys_ioctl-tests: Depend on it.
17853         * modules/sys_select-c++-tests: New file, extracted from
17854         modules/sys_select-tests.
17855         * modules/sys_select-tests: Depend on it.
17856         * modules/sys_socket-c++-tests: New file, extracted from
17857         modules/sys_socket-tests.
17858         * modules/sys_socket-tests: Depend on it.
17859         * modules/sys_stat-c++-tests: New file, extracted from
17860         modules/sys_stat-tests.
17861         * modules/sys_stat-tests: Depend on it.
17862         * modules/sys_time-c++-tests: New file, extracted from
17863         modules/sys_time-tests.
17864         * modules/sys_time-tests: Depend on it.
17865         * modules/time-c++-tests: New file, extracted from modules/time-tests.
17866         * modules/time-tests: Depend on it.
17867         * modules/unistd-c++-tests: New file, extracted from
17868         modules/unistd-tests.
17869         * modules/unistd-tests: Depend on it.
17870         * modules/wchar-c++-tests: New file, extracted from
17871         modules/wchar-tests.
17872         * modules/wchar-tests: Depend on it.
17873         * modules/wctype-c++-tests: New file, extracted from
17874         modules/wctype-tests.
17875         * modules/wctype-tests: Depend on it.
17876         Reported by Simon Josefsson.
17877
17878 2010-03-28  Bruno Haible  <bruno@clisp.org>
17879
17880         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
17881         * gnulib-tool (func_exists_module): New function, extracted from
17882         func_verify_module.
17883         (func_verify_module): Use it.
17884         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
17885         'foo' only if 'foo' exists.
17886         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
17887         module.
17888
17889 2010-03-28  Bruno Haible  <bruno@clisp.org>
17890
17891         gnulib-tool: Add support for special categories of tests.
17892         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
17893         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
17894         (func_usage): Document them.
17895         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
17896         inc_unportable_tests, inc_all_tests): New variables.
17897         (func_acceptable): Consider these variables.
17898         (func_modules_transitive_closure): Make it work when the 'Status' field
17899         consists of multiple words.
17900         (func_import): Store and restore the values of inc_cxx_tests,
17901         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
17902         inc_all_tests in gnulib-comp.m4.
17903         (func_create_testdir): Set inc_all_tests to true.
17904         * doc/gnulib.texi (Extra tests modules): New section.
17905         Suggested by Jim Meyering.
17906
17907 2010-03-28  Bruno Haible  <bruno@clisp.org>
17908
17909         ansi-c++-opt: Allow turning off the C++ build by default.
17910         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
17911         gl_CXX_CHOICE_DEFAULT_NO is defined.
17912         Requested by Eric Blake.
17913
17914 2010-03-28  Bruno Haible  <bruno@clisp.org>
17915
17916         unistd: Avoid #define replacements in C++ mode.
17917         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
17918         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
17919         setsockopt, shutdown, select): In C++, attach a warning to the function
17920         if possible, rather than #defining the symbol to a dysfunctional alias.
17921         Reported by John W. Eaton <jwe@gnu.org>.
17922
17923 2010-03-28  Bruno Haible  <bruno@clisp.org>
17924
17925         Fix link errors on mingw.
17926         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
17927         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
17928         $(LIBSOCKET).
17929         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
17930         $(LIBSOCKET).
17931
17932 2010-03-28  Bruno Haible  <bruno@clisp.org>
17933             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17934
17935         lib-ignore: Determine different options for different compilers.
17936         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
17937         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
17938         Add comments.
17939         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
17940         * NEWS: Mention the change.
17941
17942 2010-03-27  Bruno Haible  <bruno@clisp.org>
17943
17944         Remove unused GNULIB_XYZ macro definitions.
17945         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
17946         * modules/fseek (configure.ac): Likewise.
17947         * modules/ioctl (configure.ac): Likewise.
17948         * modules/open (configure.ac): Likewise.
17949         * modules/stdlib-safer (configure.ac): Likewise.
17950
17951 2010-03-27  Bruno Haible  <bruno@clisp.org>
17952
17953         Add a remark about certain modules.
17954         * modules/malloc (Comment): New section.
17955         * modules/realloc (Comment): Likewise.
17956         * modules/sigpipe (Comment): Likewise.
17957
17958 2010-03-27  Bruno Haible  <bruno@clisp.org>
17959
17960         Resolve conflict between the two kinds of module indicators.
17961         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
17962         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
17963         * modules/canonicalize (configure.ac): Invoke
17964         gl_MODULE_INDICATOR_FOR_TESTS.
17965         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
17966         GNULIB_XYZ.
17967         * tests/test-dirent-c++.cc: Likewise.
17968         * tests/test-dirent-safer.c: Likewise.
17969         * tests/test-dup2.c: Likewise.
17970         * tests/test-fchdir.c: Likewise.
17971         * tests/test-fcntl-h-c++.cc: Likewise.
17972         * tests/test-getopt.c: Likewise.
17973         * tests/test-getopt.h: Likewise.
17974         * tests/test-langinfo-c++.cc: Likewise.
17975         * tests/test-locale-c++.cc: Likewise.
17976         * tests/test-math-c++.cc: Likewise.
17977         * tests/test-pty-c++.cc: Likewise.
17978         * tests/test-search-c++.cc: Likewise.
17979         * tests/test-signal-c++.cc: Likewise.
17980         * tests/test-spawn-c++.cc: Likewise.
17981         * tests/test-stdio-c++.cc: Likewise.
17982         * tests/test-stdlib-c++.cc: Likewise.
17983         * tests/test-string-c++.cc: Likewise.
17984         * tests/test-sys_ioctl-c++.cc: Likewise.
17985         * tests/test-sys_select-c++.cc: Likewise.
17986         * tests/test-sys_socket-c++.cc: Likewise.
17987         * tests/test-sys_stat-c++.cc: Likewise.
17988         * tests/test-sys_time-c++.cc: Likewise.
17989         * tests/test-time-c++.cc: Likewise.
17990         * tests/test-unistd-c++.cc: Likewise.
17991         * tests/test-wchar-c++.cc: Likewise.
17992         * tests/uninorm/test-u8-nfc.c: Likewise.
17993         * tests/uninorm/test-u8-nfd.c: Likewise.
17994         * tests/uninorm/test-u8-nfkc.c: Likewise.
17995         * tests/uninorm/test-u8-nfkd.c: Likewise.
17996         * tests/uninorm/test-u16-nfc.c: Likewise.
17997         * tests/uninorm/test-u16-nfd.c: Likewise.
17998         * tests/uninorm/test-u16-nfkc.c: Likewise.
17999         * tests/uninorm/test-u16-nfkd.c: Likewise.
18000         * tests/uninorm/test-u32-nfc.c: Likewise.
18001         * tests/uninorm/test-u32-nfc-big.c: Likewise.
18002         * tests/uninorm/test-u32-nfd.c: Likewise.
18003         * tests/uninorm/test-u32-nfd-big.c: Likewise.
18004         * tests/uninorm/test-u32-nfkc.c: Likewise.
18005         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
18006         * tests/uninorm/test-u32-nfkd.c: Likewise.
18007         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
18008         * tests/uninorm/test-u32-normalize-big.c: Likewise.
18009
18010 2010-03-27  Bruno Haible  <bruno@clisp.org>
18011
18012         Distinguish two kinds of module indicators.
18013         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
18014         gl_MODULE_INDICATOR.
18015         (gl_MODULE_INDICATOR): New macro.
18016         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
18017         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
18018         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
18019         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
18020         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
18021         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
18022         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
18023         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
18024         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
18025         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
18026         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
18027         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
18028         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
18029         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
18030         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
18031         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
18032         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
18033         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
18034         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
18035         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
18036         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
18037         * modules/cloexec (configure.ac): Likewise.
18038         * modules/getopt-gnu (configure.ac): Likewise.
18039         * modules/uninorm/u8-normalize (configure.ac): Likewise.
18040         * modules/uninorm/u16-normalize (configure.ac): Likewise.
18041         * modules/uninorm/u32-normalize (configure.ac): Likewise.
18042         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
18043
18044 2010-03-27  Bruno Haible  <bruno@clisp.org>
18045
18046         New module description field 'Comment'.
18047         * gnulib-tool: New option --extract-comment.
18048         (func_usage): Document it.
18049         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
18050         (func_get_comment): New function.
18051         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
18052
18053 2010-03-27  Bruno Haible  <bruno@clisp.org>
18054
18055         Addendum to 2010-02-07 commit.
18056         * gnulib-tool (func_usage): Document --extract-applicability option.
18057
18058 2010-03-27  Bruno Haible  <bruno@clisp.org>
18059
18060         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
18061         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
18062         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
18063         rather than link errors.
18064
18065 2010-03-27  Bruno Haible  <bruno@clisp.org>
18066
18067         Avoid side effects from tests-related modules on the compilation of lib.
18068         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
18069         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
18070         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
18071         parameter. Emit into AM_CPPFLAGS a definition of the designated C
18072         macro.
18073         (func_import): Define a witness macro. Assign it a value that depends
18074         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
18075         tests-related modules.
18076         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
18077         Reported by Jim Meyering.
18078
18079 2010-03-27  Bruno Haible  <bruno@clisp.org>
18080
18081         Factorize common .m4 code.
18082         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
18083         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
18084         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
18085         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
18086         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
18087         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
18088         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
18089         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
18090         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
18091         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
18092         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
18093         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
18094         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
18095         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
18096         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
18097         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
18098         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
18099         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
18100         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
18101         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
18102         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
18103         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
18104         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
18105         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
18106         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
18107         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
18108         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
18109         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
18110         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
18111         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
18112         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
18113         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
18114
18115 2010-03-27  Bruno Haible  <bruno@clisp.org>
18116
18117         Fix a compilation error on Cygwin with g++ >= 4.3.
18118         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
18119         if it is undefined or if we alias it to chmod.
18120         (lstat): Don't warn about the use of this function if it is undefined
18121         or if we alias it to stat.
18122         Reported by Simon Josefsson.
18123
18124 2010-03-27  Bruno Haible  <bruno@clisp.org>
18125
18126         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
18127         * modules/getlogin (configure.ac): Update.
18128
18129         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
18130         * modules/getlogin_r (configure.ac): Update.
18131
18132         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
18133         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
18134         * modules/inet_ntop (configure.ac): Update.
18135
18136         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
18137         * modules/inet_pton (configure.ac): Update.
18138
18139         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
18140         * modules/mbslen (configure.ac): Update.
18141
18142         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
18143         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
18144         * modules/forkpty (configure.ac): Update.
18145         * modules/openpty (configure.ac): Update.
18146
18147 2010-03-26  Simon Josefsson  <simon@josefsson.org>
18148
18149         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
18150         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
18151
18152 2010-03-25  Eric Blake  <eblake@redhat.com>
18153
18154         maint: use pragma consistently across replacement headers
18155         * lib/ctype.in.h (system_header): Hoist for consistent placement.
18156         * lib/dirent.in.h (system_header): Likewise.
18157         * lib/errno.in.h (system_header): Likewise.
18158         * lib/float.in.h (system_header): Likewise.
18159         * lib/getopt.in.h (system_header): Likewise.
18160         * lib/iconv.in.h (system_header): Likewise.
18161         * lib/inttypes.in.h (system_header): Likewise.
18162         * lib/langinfo.in.h (system_header): Likewise.
18163         * lib/locale.in.h (system_header): Likewise.
18164         * lib/math.in.h (system_header): Likewise.
18165         * lib/netdb.in.h (system_header): Likewise.
18166         * lib/netinet_in.in.h (system_header): Likewise.
18167         * lib/pty.in.h (system_header): Likewise.
18168         * lib/sched.in.h (system_header): Likewise.
18169         * lib/se-selinux.in.h (system_header): Likewise.
18170         * lib/search.in.h (system_header): Likewise.
18171         * lib/spawn.in.h (system_header): Likewise.
18172         * lib/stdarg.in.h (system_header): Likewise.
18173         * lib/stdint.in.h (system_header): Likewise.
18174         * lib/string.in.h (system_header): Likewise.
18175         * lib/strings.in.h (system_header): Likewise.
18176         * lib/sys_file.in.h (system_header): Likewise.
18177         * lib/sys_ioctl.in.h (system_header): Likewise.
18178         * lib/sys_socket.in.h (system_header): Likewise.
18179         * lib/sys_times.in.h (system_header): Likewise.
18180         * lib/sys_utsname.in.h (system_header): Likewise.
18181         * lib/sys_wait.in.h (system_header): Likewise.
18182         * lib/sysexits.in.h (system_header): Likewise.
18183         * lib/unistd.in.h (system_header): Likewise.
18184         * lib/wctype.in.h (system_header): Likewise.
18185
18186         arpa/inet: fix mingw compilation warning
18187         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
18188         Reported by Matthew Bolte.
18189
18190 2010-03-25  Bruno Haible  <bruno@clisp.org>
18191
18192         Avoid collision between gnulib wrapper and libintl wrapper.
18193         * lib/printf.c (printf): Don't define if a printf wrapper is already
18194         defined in intl/printf.c.
18195         Reported by Michel Boaventura <michel@michelboaventura.com>.
18196
18197 2010-03-25  Bruno Haible  <bruno@clisp.org>
18198
18199         Use ANSI C.
18200         * lib/readutmp.h (getutent): Provide ANSI C prototype.
18201
18202 2010-03-25  Bruno Haible  <bruno@clisp.org>
18203
18204         Minor formatting changes.
18205         * lib/acosl.c: Insert space before function argument list.
18206         * lib/argz.c: Likewise.
18207         * lib/asinl.c: Likewise.
18208         * lib/expl.c: Likewise.
18209         * lib/gen-uni-tables.c: Likewise.
18210         * lib/gettext.h: Likewise.
18211         * lib/glthread/lock.h: Likewise.
18212         * lib/tanl.c: Likewise.
18213         * lib/uniname/uniname.c: Likewise.
18214         * tests/test-idpriv-drop.c: Likewise.
18215         * tests/test-idpriv-droptemp.c: Likewise.
18216         * tests/test-lock.c: Likewise.
18217         * tests/test-tls.c: Likewise.
18218         * lib/argp-help.c: Insert space before function-like macro argument
18219         list.
18220         * lib/memcmp.c: Likewise.
18221         * tests/test-base64.c: Likewise.
18222         * lib/localename.c: Insert space before sizeof's argument list.
18223         * lib/safe-alloc.h: Likewise.
18224         * lib/file-set.h: Insert space before macro argument list.
18225         * tests/test-argp.c: Likewise.
18226         * lib/argp-namefrob.h: Insert space before function parameter list.
18227         * lib/getaddrinfo.c: Likewise.
18228         * lib/netdb.in.h: Likewise.
18229         * lib/parse-duration.h: Likewise.
18230         * lib/parse-duration.c: Likewise.
18231         * lib/poll.c: Likewise.
18232         * lib/select.c: Likewise.
18233         * lib/trim.h: Likewise.
18234         * tests/test-usleep.c: Likewise.
18235         * lib/ldexpl.c: Insert space before function parameter list and before
18236         function argument list.
18237         * lib/logl.c: Likewise.
18238         * lib/sqrtl.c: Likewise.
18239         * lib/trim.c: Likewise.
18240         * lib/cosl.c: Use GNU style indentation. Insert space before function
18241         argument list.
18242         * lib/sinl.c: Likewise.
18243         * lib/tsearch.c: Insert space after 'for'.
18244         Reported by Jim Meyering.
18245
18246 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
18247
18248         * maint.mk (sc_Wundef_boolean): Check for the presence of the
18249         config header before grepping, as it's not present before
18250         autoreconf/configure are run.  Reported by Simon Josefsson.
18251
18252 2010-03-23  Bruno Haible  <bruno@clisp.org>
18253
18254         pt_chown: Make it work with automake < 1.11.
18255         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
18256         Reported by Simon Josefsson.
18257
18258 2010-03-23  Bruno Haible  <bruno@clisp.org>
18259
18260         pt_chown: Don't depend on GPLed modules.
18261         * lib/pt_chown.c: Don't include idpriv.h.
18262         (main): Don't drop privileges.
18263         * modules/pt_chown (Depends-on): Remove idpriv-drop.
18264         Reported by Simon Josefsson.
18265
18266 2010-03-24  Simon Josefsson  <simon@josefsson.org>
18267
18268         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
18269         suggestions from karl@freefriends.org (Karl Berry).
18270
18271 2010-03-22  Eric Blake  <eblake@redhat.com>
18272
18273         gethostname: further tweaks
18274         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
18275         are overriding gethostname.
18276         Suggested by Bruno Haible.
18277
18278 2010-03-21  Bruno Haible  <bruno@clisp.org>
18279
18280         Fix comments.
18281         * lib/forkpty.c (rpl_forkpty): Fix comment.
18282         * lib/openpty.c (rpl_openpty): Likewise.
18283         Reported by Eric Blake.
18284
18285 2010-03-22  Eric Blake  <eblake@redhat.com>
18286
18287         gethostname: fix build on mingw
18288         * lib/unistd.in.h (includes): Work around fact that mingw
18289         <winsock2.h> re-includes <unistd.h>, by avoiding any
18290         redeclarations if we are being included by <winsock2.h>.
18291         Reported by Matthias Bolte.
18292
18293 2010-03-21  Bruno Haible  <bruno@clisp.org>
18294
18295         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
18296         * lib/forkpty.c (forkpty): New replacement function, from glibc with
18297         modifications.
18298         * lib/pty.in.h (forkpty): Update declaration. Add comments.
18299         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
18300         provide the replacement.
18301         * modules/forkpty (Depends-on): Add openpty, login_tty.
18302         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
18303         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
18304         * doc/glibc-functions/forkpty.texi: More supported platforms.
18305         * config/srclist.txt: Add forkpty.c (commented).
18306
18307 2010-03-21  Bruno Haible  <bruno@clisp.org>
18308
18309         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
18310         (Makefile.am): Verify that PTY_LIB is defined.
18311
18312         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
18313
18314 2010-03-21  Bruno Haible  <bruno@clisp.org>
18315
18316         Tests for module 'login_tty'.
18317         * modules/login_tty-tests: New file.
18318         * tests/test-login_tty.c: New file.
18319
18320         New module 'login_tty'.
18321         * lib/login_tty.c: New file.
18322         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
18323         * modules/login_tty: New file.
18324         * doc/glibc-functions/login_tty.texi: Mention the new module.
18325
18326 2010-03-21  Bruno Haible  <bruno@clisp.org>
18327
18328         login_tty: Documentation.
18329         * doc/glibc-functions/login_tty.texi: New file.
18330         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
18331
18332 2010-03-21  Bruno Haible  <bruno@clisp.org>
18333
18334         pty: Consistent macro naming.
18335         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
18336         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
18337         * modules/pty (configure.ac): Update.
18338
18339 2010-03-21  Bruno Haible  <bruno@clisp.org>
18340
18341         Tests for openpty: Make stricter.
18342         * tests/test-openpty.c (main): Add test of canonical processing and
18343         erase.
18344         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
18345
18346         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
18347         * lib/openpty.c (openpty): New replacement function.
18348         * lib/pty.in.h: Include <termios.h>.
18349         (openpty): Update declaration. Add comments.
18350         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
18351         is not declared, arrange to provide the replacement. Check for _getpty
18352         and posix_openpt.
18353         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
18354         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
18355         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
18356         * modules/pty-tests (test_pty_c___LDADD): New variable.
18357         * doc/glibc-functions/openpty.texi: More supported platforms.
18358
18359 2010-03-21  Bruno Haible  <bruno@clisp.org>
18360
18361         setenv: Tweaks.
18362         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
18363         the test program.
18364         * doc/posix-functions/setenv.texi: Update platforms list.
18365
18366 2010-03-21  Bruno Haible  <bruno@clisp.org>
18367
18368         New module 'unlockpt'.
18369         * lib/unlockpt.c: New file, from glibc with modifications.
18370         * m4/unlockpt.m4: New file.
18371         * modules/unlockpt: New file.
18372         * lib/stdlib.in.h (unlockpt): New declaration.
18373         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
18374         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
18375         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
18376         HAVE_UNLOCKPT.
18377         * doc/posix-functions/unlockpt.texi: Mention the new module.
18378         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
18379         * config/srclist.txt: Add unlockpt.c (commented).
18380
18381 2010-03-21  Jim Meyering  <meyering@redhat.com>
18382
18383         maint.mk: prohibit inclusion of "intprops.h" without use
18384         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
18385
18386 2010-03-21  Bruno Haible  <bruno@clisp.org>
18387
18388         New module 'grantpt'.
18389         * lib/grantpt.c: New file, from glibc with modifications.
18390         * m4/grantpt.m4: New file.
18391         * modules/grantpt: New file.
18392         * lib/stdlib.in.h (grantpt): New declaration.
18393         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
18394         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
18395         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
18396         HAVE_GRANTPT.
18397         * doc/posix-functions/grantpt.texi: Mention the new module.
18398         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
18399         * config/srclist.txt: Add grantpt.c (commented).
18400
18401 2010-03-21  Bruno Haible  <bruno@clisp.org>
18402
18403         New module 'pt_chown'.
18404         * lib/pt_chown.c: New file, from glibc with modifications.
18405         * lib/pty-private.h: New file, from glibc with modifications.
18406         * modules/pt_chown: New file.
18407         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
18408
18409 2010-03-21  Bruno Haible  <bruno@clisp.org>
18410
18411         Tests for module 'ptsname'.
18412         * modules/ptsname-tests: New file.
18413         * tests/test-ptsname.c: New file.
18414
18415         New module 'ptsname'.
18416         * lib/ptsname.c: New file, from glibc with modifications.
18417         * m4/ptsname.m4: New file.
18418         * modules/ptsname: New file.
18419         * lib/stdlib.in.h (ptsname): New declaration.
18420         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
18421         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
18422         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
18423         HAVE_PTSNAME.
18424         * doc/posix-functions/ptsname.texi: Mention the new module.
18425         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
18426         * config/srclist.txt: Add ptsname.c (commented).
18427
18428 2010-03-21  Bruno Haible  <bruno@clisp.org>
18429
18430         Tests for module 'ttyname_r'.
18431         * modules/ttyname_r-tests: New file.
18432         * tests/test-ttyname_r.c: New file.
18433
18434         New module 'ttyname_r'.
18435         * lib/ttyname_r.c: New file.
18436         * m4/ttyname_r.m4: New file.
18437         * modules/ttyname_r: New file.
18438         * lib/unistd.in.h (ttyname_r): New declaration.
18439         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
18440         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
18441         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
18442         HAVE_TTYNAME_R.
18443         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
18444         * doc/posix-functions/ttyname_r.texi: Mention the new module.
18445
18446 2010-03-20  Bruno Haible  <bruno@clisp.org>
18447
18448         signal: Undefine macro definitions in C++ mode.
18449         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
18450         sigfillset): Undefine macro definitions from the system header in C++
18451         mode.
18452         Reported by John W. Eaton <jwe@gnu.org>.
18453
18454 2010-03-20  Bruno Haible  <bruno@clisp.org>
18455
18456         Ensure no #include statements inside extern "C" { ... }.
18457         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
18458         contain #include statements.
18459         * lib/time.in.h: Likewise.
18460
18461 2010-03-20  Bruno Haible  <bruno@clisp.org>
18462
18463         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
18464         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
18465         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
18466         Reported by John W. Eaton <jwe@gnu.org>.
18467
18468 2010-03-20  Bruno Haible  <bruno@clisp.org>
18469
18470         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
18471         Reported by Jim Meyering.
18472
18473 2010-03-20  Bruno Haible  <bruno@clisp.org>
18474
18475         pipe: Set errno upon failure.
18476         * lib/pipe.h: Specify that when -1 is returned, errno is set.
18477         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
18478         errno value in error message.
18479
18480 2010-03-20  Bruno Haible  <bruno@clisp.org>
18481             Jim Meyering  <meyering@redhat.com>
18482
18483         lchown: Avoid "unused variable" warning.
18484         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
18485
18486 2010-03-20  Bruno Haible  <bruno@clisp.org>
18487
18488         Work around unlink() bug on MacOS X 10.5.6.
18489         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
18490         attempting to unlink a parent directory.
18491         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
18492         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
18493         activate for the replacement function.
18494         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
18495
18496 2010-03-20  Bruno Haible  <bruno@clisp.org>
18497
18498         Fix link errors on Solaris 8.
18499         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
18500         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
18501
18502 2010-03-19  Jim Meyering  <meyering@redhat.com>
18503
18504         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
18505         The _LIBC implementation of build_range_exp correctly honors the
18506         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
18507         However, the non-_LIBC implementation would ignore that syntax-bit
18508         flag and return REG_ERANGE unconditionally.
18509         This change makes it honor that flag.
18510         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
18511         Make two pointer parameters "const".
18512         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
18513         (parse_bracket_exp): Update caller.
18514
18515         regex.m4: correct the reversed range endpoint ([b-a]) test
18516         * m4/regex.m4: When requiring that [b-a] evoke failure,
18517         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
18518         test pass once again for x86-based systems.
18519
18520 2010-03-19  Bruno Haible  <bruno@clisp.org>
18521
18522         scandir: Fix link error on Solaris 8.
18523         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
18524         macros.
18525
18526 2010-03-19  Bruno Haible  <bruno@clisp.org>
18527
18528         getusershell: Fix documentation.
18529         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
18530         module.
18531         * doc/glibc-functions/setusershell.texi: Likewise.
18532
18533         getusershell: Provide declaration, missing on Solaris 9.
18534         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
18535         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
18536         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
18537         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
18538         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18539         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
18540         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
18541         HAVE_GETUSERSHELL.
18542         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
18543
18544 2010-03-19  Bruno Haible  <bruno@clisp.org>
18545
18546         wctype: Provide iswblank function.
18547         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
18548         exists and is fine.
18549         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
18550         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
18551         * tests/test-wctype.c (main): Re-enable the iswblank tests.
18552         * doc/posix-functions/iswblank.texi: Update.
18553
18554 2010-03-19  Bruno Haible  <bruno@clisp.org>
18555
18556         Tests of module 'pty' in C++ mode.
18557         * modules/pty-tests: New file.
18558         * tests/test-pty-c++.cc: New file.
18559         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
18560
18561 2010-03-19  Eric Blake  <eblake@redhat.com>
18562
18563         logb: fix documentation
18564         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
18565         1.5 declaration bug.
18566
18567         forkpty, openpty: prefer glibc's const-safe prototype
18568         * lib/forkpty.c (rpl_forkpty): New file.
18569         * lib/openpty.c (rpl_openpty): Likewise.
18570         * modules/forkpty (Files): Distribute it.
18571         * modules/openpty (Files): Likewise.
18572         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
18573         check...
18574         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
18575         replacement for for non-const BSD signature.
18576         * modules/pty (Makefile.am): Substitute witnesses.
18577         * lib/pty.in.h (forkpty, openpty): Declare replacements.
18578         * tests/test-forkpty.c: Update signature check.
18579         * tests/test-openpty.c: Likewise.
18580         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
18581         * doc/glibc-functions/openpty.texi (openpty): Likewise.
18582
18583         forkpty, openpty: split functions into new modules
18584         * modules/pty (Makefile.am): Substitute new witnesses.
18585         (Libraries): Move library detection...
18586         * modules/forkpty: ...into new module.
18587         * modules/openpty: Another new module.
18588         * modules/pty-tests: Rename and split...
18589         * modules/forkpty-tests: ...to this...
18590         * modules/openpty-tests: ...and this.
18591         * tests/test-pty.c: Rename and split...
18592         * tests/test-forkpty.c: ...to this...
18593         * tests/test-openpty.c: ...and this.
18594         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
18595         (gl_PTY): Split library searching...
18596         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
18597         (gl_FORKPTY, gl_OPENPTY): New macros.
18598         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
18599         * NEWS: Mention the split.
18600         * MODULES.html.sh (Misc): Document the modules.
18601         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
18602         * doc/glibc-functions/openpty.texi (openpty): Likewise.
18603
18604         pty: improve replacement header
18605         * lib/pty.in.h: New file.
18606         * modules/pty (Files): Ship it.
18607         (Makefile.am): Always build replacement.
18608         * m4/pty.m4: Rename...
18609         * m4/pty_h.m4: ...to this.
18610         (gl_PTY): Modernize setting of witness macros; update check of
18611         forkpty to take proper advantage of cache.
18612         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
18613
18614         getopt: avoid compiler warning
18615         * lib/getopt.c (attribute_hidden): Remove unused macro.
18616
18617 2010-03-18  Bruno Haible  <bruno@clisp.org>
18618
18619         Fix link errors on Solaris 8.
18620         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
18621         * modules/search-tests (test_search_c___LDADD): Likewise.
18622         * modules/signal-tests (test_signal_c___LDADD): Likewise.
18623         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
18624         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
18625         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
18626         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
18627         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
18628         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
18629
18630 2010-03-18  Bruno Haible  <bruno@clisp.org>
18631
18632         Fix bug introduced on 2010-03-14.
18633         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
18634         (gl_SPAWN_H): Require it.
18635         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
18636         Reported by Simon Josefsson.
18637
18638 2010-03-18  Bruno Haible  <bruno@clisp.org>
18639
18640         Fix typo introduced on 2009-12-31.
18641         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
18642         posix_spawn_file_actions_adddup2.
18643
18644 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
18645         and Eric Blake  <eblake@redhat.com>
18646
18647         test-vc-list-files-git: make more robust
18648         * tests/test-vc-list-files-git.sh: Unset problematic environment
18649         variables.  Chain commands together.
18650
18651 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
18652
18653         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
18654         `AC_CHECK_DECL' invocation.
18655
18656 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
18657
18658         * lib/inttostr.c (inttostr): Make sure the invocation of verify
18659         appears before executable statements. Suggested by Petr Sumbera
18660         <Petr.Sumbera@Sun.COM>.
18661
18662 2010-03-14  Bruno Haible  <bruno@clisp.org>
18663
18664         * tests/test-flock.c (test_exclusive): Comment out a test that causes
18665         portability problems. Instead use a simpler test.
18666         (main): Check that invalid arguments are rejected only on Linux.
18667
18668 2010-03-14  Bruno Haible  <bruno@clisp.org>
18669
18670         Fix bug introduced on 2009-12-31.
18671         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
18672         gl_PREREQ_SYS_H_WINSOCK2 always.
18673         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
18674         SYS_SOCKET_H variable.
18675         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
18676         Update comments.
18677         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
18678         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
18679         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18680         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
18681         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
18682
18683 2010-03-14  Bruno Haible  <bruno@clisp.org>
18684
18685         Fix values returned by sinl, cosl.
18686         * lib/trigl.h: Add specification comments.
18687         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
18688         that combines the values from the precomputed table with the values of
18689         the Chebyshev polynomials.
18690
18691 2010-03-14  Bruno Haible  <bruno@clisp.org>
18692
18693         Fix compilation error when modules 'posix_spawn[p]' are not used.
18694         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
18695         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
18696
18697 2010-03-14  Bruno Haible  <bruno@clisp.org>
18698
18699         Fix compilation error on mingw when module 'time_r' is not used.
18700         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
18701         is 1.
18702         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
18703         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
18704         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
18705         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
18706
18707 2010-03-14  Bruno Haible  <bruno@clisp.org>
18708
18709         Fix compilation error with Sun C.
18710         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
18711         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
18712         instead of GCC specific ULONG_LONG_MAX.
18713         * lib/xstrtoll.c: Likewise.
18714         * lib/xstrtoull.c: Likewise.
18715
18716 2010-03-13  Bruno Haible  <bruno@clisp.org>
18717
18718         Allow the user to disable C++ code and tests.
18719         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
18720         (gl_PROG_ANSI_CXX): Require it.
18721
18722 2010-03-13  Bruno Haible  <bruno@clisp.org>
18723
18724         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
18725         cases.
18726
18727 2010-03-13  Bruno Haible  <bruno@clisp.org>
18728
18729         Test that gnulib does not break the standard C++ headers.
18730         * tests/test-locale-c++2.cc: New file.
18731         * modules/locale-tests (Files): Add it.
18732         (Makefile.am): Compile it for test-locale-c++.
18733         * tests/test-math-c++2.cc: New file.
18734         * modules/math-tests (Files): Add it.
18735         (Makefile.am): Compile it for test-math-c++.
18736         * tests/test-signal-c++2.cc: New file.
18737         * modules/signal-tests (Files): Add it.
18738         (Makefile.am): Compile it for test-signal-c++.
18739         * tests/test-stdio-c++2.cc: New file.
18740         * modules/stdio-tests (Files): Add it.
18741         (Makefile.am): Compile it for test-stdio-c++.
18742         * tests/test-stdlib-c++2.cc: New file.
18743         * modules/stdlib-tests (Files): Add it.
18744         (Makefile.am): Compile it for test-stdlib-c++.
18745         * tests/test-string-c++2.cc: New file.
18746         * modules/string-tests (Files): Add it.
18747         (Makefile.am): Compile it for test-string-c++.
18748         * tests/test-time-c++2.cc: New file.
18749         * modules/time-tests (Files): Add it.
18750         (Makefile.am): Compile it for test-time-c++.
18751         Reported by John W. Eaton <jwe@gnu.org>.
18752
18753 2010-03-13  Bruno Haible  <bruno@clisp.org>
18754
18755         * gnulib-tool (func_usage): Clarify which options are available for
18756         --create-testdir and --create-megatestdir.
18757
18758 2010-03-13  Bruno Haible  <bruno@clisp.org>
18759
18760         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
18761         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
18762         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
18763         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
18764         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
18765         when appropriate.
18766         Reported by Jim Meyering.
18767
18768 2010-03-12  Simon Josefsson  <simon@josefsson.org>
18769
18770         * gnulib-tool (func_import): Explain origin of code.
18771
18772 2010-03-12  Bruno Haible  <bruno@clisp.org>
18773
18774         Fix problem with automake's definition of CXXLINK.
18775         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
18776         Reported by Simon Josefsson and Ludovic Courtès.
18777
18778 2010-03-12  Bruno Haible  <bruno@clisp.org>
18779
18780         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
18781         stable releases.
18782
18783 2010-03-11  Bruno Haible  <bruno@clisp.org>
18784
18785         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
18786         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
18787         whether the system provides one variant or multiple variants of the
18788         function.
18789         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
18790         C++ compilers.
18791         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
18792         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
18793         Reported by Jim Meyering.
18794
18795 2010-03-09  Simon Josefsson  <simon@josefsson.org>
18796
18797         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
18798
18799 2010-03-08  Bruno Haible  <bruno@clisp.org>
18800
18801         gnulib-tool: Add support for --libtool in --create-testdir.
18802         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
18803         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
18804
18805 2010-03-08  Eric Blake  <eblake@redhat.com>
18806
18807         gnulib-tool.texi: mention possibility of git submodule
18808         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
18809         submodules.
18810         * doc/.gitignore: Ignore another generated file.
18811
18812 2010-03-08  Karl Berry  <karl@gnu.org>
18813
18814         * doc/gnulib-tool.texi (VCS Issues): Mention third option
18815         of committing gnulib files while skipping others.
18816
18817 2010-03-07  Bruno Haible  <bruno@clisp.org>
18818
18819         Tests of module 'wctype' in C++ mode.
18820         * tests/test-wctype-c++.cc: New file.
18821         * modules/wctype-tests (Files): Add it and tests/signature.h.
18822         (Depends-on): Add ansi-c++-opt.
18823         (Makefile.am): Arrange to compile and run test-wctype-c++.
18824
18825         Tests of module 'wchar' in C++ mode.
18826         * tests/test-wchar-c++.cc: New file.
18827         * modules/wchar-tests (Files): Add it and tests/signature.h.
18828         (Depends-on): Add ansi-c++-opt.
18829         (Makefile.am): Arrange to compile and run test-wchar-c++.
18830         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
18831         gl_MODULE_INDICATOR.
18832
18833         Tests of module 'unistd' in C++ mode.
18834         * tests/test-unistd-c++.cc: New file.
18835         * modules/unistd-tests (Files): Add it and tests/signature.h.
18836         (Depends-on): Add ansi-c++-opt.
18837         (Makefile.am): Arrange to compile and run test-unistd-c++.
18838         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
18839         gl_MODULE_INDICATOR.
18840
18841         Tests of module 'time' in C++ mode.
18842         * tests/test-time-c++.cc: New file.
18843         * modules/time-tests (Files): Add it and tests/signature.h.
18844         (Depends-on): Add ansi-c++-opt.
18845         (Makefile.am): Arrange to compile and run test-time-c++.
18846         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
18847
18848         Tests of module 'sys_time' in C++ mode.
18849         * tests/test-sys_time-c++.cc: New file.
18850         * modules/sys_time-tests (Files): Add it and tests/signature.h.
18851         (Depends-on): Add ansi-c++-opt.
18852         (Makefile.am): Arrange to compile and run test-sys_time-c++.
18853         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
18854         gl_MODULE_INDICATOR.
18855
18856         Tests of module 'sys_stat' in C++ mode.
18857         * tests/test-sys_stat-c++.cc: New file.
18858         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
18859         (Depends-on): Add ansi-c++-opt.
18860         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
18861         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
18862         gl_MODULE_INDICATOR.
18863
18864         Tests of module 'sys_socket' in C++ mode.
18865         * tests/test-sys_socket-c++.cc: New file.
18866         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
18867         (Depends-on): Add ansi-c++-opt.
18868         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
18869         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
18870         gl_MODULE_INDICATOR.
18871
18872         Tests of module 'sys_select' in C++ mode.
18873         * tests/test-sys_select-c++.cc: New file.
18874         * modules/sys_select-tests (Files): Add it and tests/signature.h.
18875         (Depends-on): Add ansi-c++-opt.
18876         (Makefile.am): Arrange to compile and run test-sys_select-c++.
18877         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
18878         gl_MODULE_INDICATOR.
18879
18880         Tests of module 'sys_ioctl' in C++ mode.
18881         * tests/test-sys_ioctl-c++.cc: New file.
18882         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
18883         (Depends-on): Add ansi-c++-opt.
18884         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
18885         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
18886         gl_MODULE_INDICATOR.
18887
18888         Tests of module 'string' in C++ mode.
18889         * tests/test-string-c++.cc: New file.
18890         * modules/string-tests (Files): Add it and tests/signature.h.
18891         (Depends-on): Add ansi-c++-opt.
18892         (Makefile.am): Arrange to compile and run test-string-c++.
18893         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
18894         gl_MODULE_INDICATOR.
18895
18896         Tests of module 'stdlib' in C++ mode.
18897         * tests/test-stdlib-c++.cc: New file.
18898         * modules/stdlib-tests (Files): Add it and tests/signature.h.
18899         (Depends-on): Add ansi-c++-opt.
18900         (Makefile.am): Arrange to compile and run test-stdlib-c++.
18901         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
18902         gl_MODULE_INDICATOR.
18903
18904         Tests of module 'stdio' in C++ mode.
18905         * tests/test-stdio-c++.cc: New file.
18906         * modules/stdio-tests (Files): Add it and tests/signature.h.
18907         (Depends-on): Add ansi-c++-opt.
18908         (Makefile.am): Arrange to compile and run test-stdio-c++.
18909         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
18910         gl_MODULE_INDICATOR.
18911
18912         Tests of module 'spawn' in C++ mode.
18913         * tests/test-spawn-c++.cc: New file.
18914         * modules/spawn-tests (Files): Add it and tests/signature.h.
18915         (Depends-on): Add ansi-c++-opt.
18916         (Makefile.am): Arrange to compile and run test-spawn-c++.
18917         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
18918         gl_MODULE_INDICATOR.
18919
18920         Tests of module 'signal' in C++ mode.
18921         * tests/test-signal-c++.cc: New file.
18922         * modules/signal-tests (Files): Add it and tests/signature.h.
18923         (Depends-on): Add ansi-c++-opt.
18924         (Makefile.am): Arrange to compile and run test-signal-c++.
18925         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
18926         gl_MODULE_INDICATOR.
18927
18928         Tests of module 'search' in C++ mode.
18929         * tests/test-search-c++.cc: New file.
18930         * modules/search-tests (Files): Add it and tests/signature.h.
18931         (Depends-on): Add ansi-c++-opt.
18932         (Makefile.am): Arrange to compile and run test-search-c++.
18933         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
18934         gl_MODULE_INDICATOR.
18935
18936         Tests of module 'math' in C++ mode.
18937         * tests/test-math-c++.cc: New file.
18938         * modules/math-tests (Files): Add it and tests/signature.h.
18939         (Depends-on): Add ansi-c++-opt.
18940         (Makefile.am): Arrange to compile and run test-math-c++.
18941         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
18942
18943         Tests of module 'locale' in C++ mode.
18944         * tests/test-locale-c++.cc: New file.
18945         * modules/locale-tests (Files): Add it and tests/signature.h.
18946         (Depends-on): Add ansi-c++-opt.
18947         (Makefile.am): Arrange to compile and run test-locale-c++.
18948         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
18949         gl_MODULE_INDICATOR.
18950
18951         Tests of module 'langinfo' in C++ mode.
18952         * tests/test-langinfo-c++.cc: New file.
18953         * modules/langinfo-tests (Files): Add it and tests/signature.h.
18954         (Depends-on): Add ansi-c++-opt.
18955         (Makefile.am): Arrange to compile and run test-langinfo-c++.
18956         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
18957         gl_MODULE_INDICATOR.
18958
18959         Tests of module 'iconv-h' in C++ mode.
18960         * tests/test-iconv-h-c++.cc: New file.
18961         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
18962         (Depends-on): Add ansi-c++-opt.
18963         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
18964
18965         Tests of module 'glob' in C++ mode.
18966         * tests/test-glob-c++.cc: New file.
18967         * modules/glob-tests (Files): Add it.
18968         (Depends-on): Add ansi-c++-opt.
18969         (Makefile.am): Arrange to compile and run test-glob-c++.
18970
18971         Tests of module 'fcntl-h' in C++ mode.
18972         * tests/test-fcntl-h-c++.cc: New file.
18973         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
18974         (Depends-on): Add ansi-c++-opt.
18975         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
18976         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
18977         gl_MODULE_INDICATOR.
18978
18979         Tests of module 'dirent' in C++ mode.
18980         * tests/test-dirent-c++.cc: New file.
18981         * modules/dirent-tests (Files): Add it and tests/signature.h.
18982         (Depends-on): Add ansi-c++-opt.
18983         (Makefile.am): Arrange to compile and run test-dirent-c++.
18984         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
18985         gl_MODULE_INDICATOR.
18986
18987         New module 'ansi-c++-opt'.
18988         * modules/ansi-c++-opt: New file.
18989         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
18990
18991         Document C++ namespace mode.
18992         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
18993
18994         wctype: Avoid #define replacements in C++ mode.
18995         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
18996         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
18997         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
18998         In C++, define a namespaced alias symbol.
18999         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
19000         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
19001         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
19002         rule.
19003
19004         wchar: Avoid #define replacements in C++ mode.
19005         * lib/wchar.in.h: Include c++defs.h.
19006         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
19007         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
19008         symbol.
19009         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
19010         * modules/wchar (Depends-on): Add c++defs.
19011         (Makefile.am): Update wchar.h rule.
19012
19013         unistd: Avoid #define replacements in C++ mode.
19014         * lib/unistd.in.h: Include c++defs.h.
19015         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
19016         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
19017         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
19018         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
19019         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
19020         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
19021         symbol.
19022         (environ): Update.
19023         * modules/unistd (Depends-on): Add c++defs.
19024         (Makefile.am): Update unistd.h rule.
19025
19026         time: Avoid #define replacements in C++ mode.
19027         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
19028         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
19029         define a namespaced alias symbol.
19030         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
19031         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
19032         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
19033         * modules/time (Depends-on): Add c++defs, warn-on-use.
19034         (Makefile.am): Update time.h rule.
19035         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
19036         * modules/nanosleep (configure.ac): Likewise.
19037         * modules/strptime (configure.ac): Likewise.
19038         * modules/timegm (configure.ac): Likewise.
19039
19040         sys_time: Avoid #define replacements in C++ mode.
19041         * lib/sys_time.in.h: Include c++defs.h.
19042         (gettimeofday): In C++, define a namespaced alias symbol.
19043         * modules/sys_time (Depends-on): Add c++defs.
19044         (Makefile.am): Update sys/time.h rule.
19045
19046         sys_stat: Avoid #define replacements in C++ mode.
19047         * lib/sys_stat.in.h: Include c++defs.h.
19048         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
19049         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
19050         namespaced alias symbol.
19051         In C++, define a namespaced alias symbol.
19052         * modules/sys_stat (Depends-on): Add c++defs.
19053         (Makefile.am): Update sys/stat.h rule.
19054
19055         sys_socket: Avoid #define replacements in C++ mode.
19056         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
19057         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
19058         definitions also when the system has a <sys/socket.h>.
19059         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
19060         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
19061         In C++, define a namespaced alias symbol.
19062         * modules/sys_socket (Depends-on): Add c++defs.
19063         (Makefile.am): Update sys/socket.h rule.
19064
19065         sys_select: Avoid #define replacements in C++ mode.
19066         * lib/sys_select.in.h: Include c++defs.h. Enable the function
19067         definitions also when the system has a <sys/select.h>.
19068         (select): In C++, define a namespaced alias symbol.
19069         * modules/sys_select (Depends-on): Add c++defs.
19070         (Makefile.am): Update sys/select.h rule.
19071
19072         sys_ioctl: Avoid #define replacements in C++ mode.
19073         * lib/sys_ioctl.in.h: Include c++defs.h.
19074         (ioctl): In C++, define a namespaced alias symbol.
19075         * modules/sys_ioctl (Depends-on): Add c++defs.
19076         (Makefile.am): Update sys/ioctl.h rule.
19077
19078         string: Avoid #define replacements in C++ mode.
19079         * lib/string.in.h: Include c++defs.h.
19080         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
19081         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
19082         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
19083         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
19084         strsignal, strverscmp): In C++, define a namespaced alias symbol.
19085         * modules/string (Depends-on): Add c++defs.
19086         (Makefile.am): Update string.h rule.
19087
19088         stdlib: Avoid #define replacements in C++ mode.
19089         * lib/stdlib.in.h: Include c++defs.h.
19090         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
19091         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
19092         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
19093         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
19094         symbol.
19095         * modules/stdlib (Depends-on): Add c++defs.
19096         (Makefile.am): Update stdlib.h rule.
19097
19098         stdio: Avoid #define replacements in C++ mode.
19099         * lib/stdio.in.h: Include c++defs.h.
19100         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
19101         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
19102         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
19103         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
19104         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
19105         namespaced alias symbol.
19106         * modules/stdio (Depends-on): Add c++defs.
19107         (Makefile.am): Update stdio.h rule.
19108
19109         spawn: Avoid #define replacements in C++ mode.
19110         * lib/spawn.in.h: Include c++defs.h.
19111         (posix_spawn, posix_spawnp, posix_spawnattr_init,
19112         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
19113         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
19114         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
19115         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
19116         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
19117         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
19118         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
19119         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
19120         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
19121         In C++, define a namespaced alias symbol.
19122         * modules/spawn (Depends-on): Add c++defs.
19123         (Makefile.am): Update spawn.h rule.
19124
19125         signal: Avoid #define replacements in C++ mode.
19126         * lib/signal.in.h: Include c++defs.h.
19127         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
19128         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
19129         namespaced alias symbol.
19130         * modules/signal (Depends-on): Add c++defs.
19131         (Makefile.am): Update signal.h rule.
19132
19133         search: Avoid #define replacements in C++ mode.
19134         * lib/search.in.h: Include c++defs.h.
19135         (_gl_search_compar_fn, _gl_search_action_fn): New types.
19136         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
19137         symbol.
19138         * modules/search (Depends-on): Add c++defs.
19139         (Makefile.am): Update search.h rule.
19140
19141         math: Avoid #define replacements in C++ mode.
19142         * lib/math.in.h: Include c++defs.h.
19143         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
19144         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
19145         trunc, truncl): In C++, define a namespaced alias symbol.
19146         * modules/math (Depends-on): Add c++defs.
19147         (Makefile.am): Update math.h rule.
19148
19149         locale: Avoid #define replacements in C++ mode.
19150         * lib/locale.in.h: Include c++defs.h.
19151         (duplocale): In C++, define a namespaced alias symbol.
19152         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
19153         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
19154         * modules/locale (Depends-on): Add c++defs.
19155         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
19156
19157         langinfo: Avoid #define replacements in C++ mode.
19158         * lib/langinfo.in.h: Include c++defs.h.
19159         (nl_langinfo): In C++, define a namespaced alias symbol.
19160         * modules/langinfo (Depends-on): Add c++defs.
19161         (Makefile.am): Update langinfo.h rule.
19162
19163         iconv-h: Avoid #define replacements in C++ mode.
19164         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
19165         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
19166         symbol.
19167         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
19168         whenever iconv is present.
19169         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
19170         (Makefile.am): Update iconv.h rule.
19171
19172         glob: Avoid #define replacements in C++ mode.
19173         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
19174         (_gl_glob_errfunc_fn): New type.
19175         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
19176         symbol.
19177         * modules/glob (Depends-on): Add c++defs, warn-on-use.
19178         (Makefile.am): Update glob.h rule.
19179
19180         fcntl-h: Avoid #define replacements in C++ mode.
19181         * lib/fcntl.in.h: Include c++defs.h.
19182         (fcntl, open, openat): In C++, define a namespaced alias symbol.
19183         * modules/fcntl-h (Depends-on): Add c++defs.
19184         (Makefile.am): Update fcntl.h rule.
19185
19186         dirent: Avoid #define replacements in C++ mode.
19187         * lib/dirent.in.h: Include c++defs.h.
19188         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
19189         namespaced alias symbol.
19190         (dirfd): Update declaration.
19191         * modules/dirent (Depends-on): Add c++defs.
19192         (Makefile.am): Update dirent.h rule.
19193
19194         ctype: Make it usable in C++ code.
19195         * lib/ctype.in.h: Include c++defs.h.
19196         (isblank): Declare as extern "C".
19197         * modules/ctype (Depends-on): Add c++defs.
19198         (Makefile.am): Update ctype.h rule.
19199
19200         New module 'c++defs'.
19201         * modules/c++defs: New file.
19202         * build-aux/c++defs.h: New file.
19203         Reported by John W. Eaton <jwe@gnu.org>.
19204
19205 2010-03-07  Bruno Haible  <bruno@clisp.org>
19206
19207         logb: Provide missing declaration for Cygwin.
19208         * lib/math.in.h (logb): New declaration.
19209         * m4/logb.m4: New file.
19210         * modules/logb (Files): Add m4/logb.m4.
19211         (Depends-on): Add math.
19212         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
19213         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
19214         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
19215         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
19216         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
19217
19218 2010-03-07  Bruno Haible  <bruno@clisp.org>
19219
19220         Fix test-cond link error.
19221         * tests/test-cond.c: Include <stdio.h>.
19222
19223 2010-03-07  Bruno Haible  <bruno@clisp.org>
19224
19225         Fix test-dirent-safer link error.
19226         * modules/dirent-safer-tests (Makefile.am): Define
19227         test_dirent_safer_LDADD.
19228
19229 2010-03-07  Bruno Haible  <bruno@clisp.org>
19230
19231         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
19232         among default module list.
19233
19234 2010-03-07  Bruno Haible  <bruno@clisp.org>
19235
19236         Fix link error on platforms with GNU libiconv.
19237         * modules/unistr/u8-strcoll-tests (Makefile): Define
19238         test_u8_strcoll_LDADD.
19239         * modules/unistr/u16-strcoll-tests (Makefile): Define
19240         test_u16_strcoll_LDADD.
19241         * modules/unistr/u32-strcoll-tests (Makefile): Define
19242         test_u32_strcoll_LDADD.
19243
19244 2010-03-07  Bruno Haible  <bruno@clisp.org>
19245
19246         Use POSIX declarations for socket functions.
19247         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
19248         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
19249         rpl_sendto): Change declaration to match POSIX.
19250         * lib/connect.c (rpl_connect): Likewise.
19251         * lib/accept.c (rpl_accept): Likewise.
19252         * lib/bind.c (rpl_bind): Likewise.
19253         * lib/getpeername.c (rpl_getpeername): Likewise.
19254         * lib/getsockname.c (rpl_getsockname): Likewise.
19255         * lib/recv.c (rpl_recv): Likewise.
19256         * lib/send.c (rpl_send): Likewise.
19257         * lib/recvfrom.c (rpl_recvfrom): Likewise.
19258         * lib/sendto.c (rpl_sendto): Likewise.
19259
19260 2010-03-06  Bruno Haible  <bruno@clisp.org>
19261
19262         Clarify access, euidaccess, faccessat.
19263         * doc/posix-functions/faccessat.texi: Mention security problem under
19264         "Other problems", not "Portability problems".
19265         * doc/posix-functions/access.texi: Likewise. Mention a related security
19266         problem.
19267         * doc/glibc-functions/euidaccess.texi: Mention security problems.
19268         * lib/euidaccess.c: Add comments about platforms.
19269         * lib/unistd.in.h (access, euidaccess): Add warnings.
19270
19271 2010-03-07  Bruno Haible  <bruno@clisp.org>
19272
19273         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
19274         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
19275         (POSIX_SPAWN_SETSCHEDULER): Likewise.
19276         (POSIX_SPAWN_USEVFORK): Define in a way that works when
19277         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
19278         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
19279         declare when POSIX_SPAWN_SETSCHEDULER is zero.
19280         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
19281         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
19282         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
19283         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
19284         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
19285         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
19286         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
19287         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
19288         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
19289         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
19290         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
19291         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
19292         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
19293         Likewise.
19294         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
19295         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
19296         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
19297         Likewise.
19298         * tests/test-spawn.c (main): Make it work when
19299         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
19300
19301 2010-03-07  Bruno Haible  <bruno@clisp.org>
19302
19303         Fix incorrect Makefile.am generation in German locale.
19304         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
19305         Execute sed command with character range in C locale.
19306
19307 2010-03-06  Bruno Haible  <bruno@clisp.org>
19308
19309         Tests for module 'iconv-h'.
19310         * modules/iconv-h-tests: New file.
19311         * tests/test-iconv-h.c: New file.
19312
19313         New module 'iconv-h'.
19314         * modules/iconv-h: New file.
19315         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
19316         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
19317         (configure.ac): Remove gl_ICONV_H.
19318         (Makefile.am): Remove rule for iconv.h.
19319
19320 2010-03-06  Bruno Haible  <bruno@clisp.org>
19321
19322         More consistent naming of *.m4 files.
19323         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
19324         * modules/wctype (Files): Update.
19325
19326         More consistent naming of *.m4 files.
19327         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
19328         * modules/wchar (Files): Update.
19329
19330 2010-03-06  Jim Meyering  <meyering@redhat.com>
19331
19332         euidaccess: relax license to LGPLv2+
19333         * modules/euidaccess (License): Relax to LGPLv2+.
19334
19335 2010-03-06  Bruno Haible  <bruno@clisp.org>
19336
19337         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
19338         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
19339         (Makefile.am): Augment lib_SOURCES instead.
19340
19341 2010-03-04  Jim Meyering  <meyering@redhat.com>
19342
19343         utime: remove obsolete module
19344         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
19345         unnecessary for years, and has been marked as obsolete for 10 months.
19346         * modules/utime: Remove file.
19347         * lib/utime.c: Remove file.
19348         * m4/utime.m4: Remove file.
19349         * m4/utimes-null.m4: Remove file.
19350         * doc/posix-functions/utime.texi (utime): Remove reference to
19351         the module.  Move the sole "fixed by gnulib" item into the
19352         "problems not fixed by Gnulib" list.
19353         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
19354
19355 2010-03-05  Simon Josefsson  <simon@josefsson.org>
19356
19357         * modules/exit (License): Relax license to LGPLv2+.
19358         (Status): Mark as obsolete.
19359         * NEWS: Mention deprecated 'exit' module.
19360         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
19361         of now obsolete 'exit'.
19362
19363 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19364
19365         fts-lgpl: remove unused module
19366         * modules/fts-lgpl: Remove.
19367         * MODULES.html.sh (func_all_modules): Adjust.
19368         * check-module (find_included_lib_files): Adjust.
19369         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
19370
19371 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
19372
19373         copy-acl: enhance Solaris ACL error handling
19374         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
19375         * lib/set-mode-acl.c (qset_acl): Likewise.
19376
19377 2010-03-02  Bruno Haible  <bruno@clisp.org>
19378
19379         spawn: Don't override the system defined values on FreeBSD 8.
19380         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
19381         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
19382         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
19383         if HAVE_POSIX_SPAWN is 1.
19384         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
19385
19386 2010-03-01  Bruno Haible  <bruno@clisp.org>
19387
19388         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
19389         regarding Automake.
19390
19391 2010-02-25  Bruno Haible  <bruno@clisp.org>
19392
19393         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
19394         * gnulib-tool: Define 'echo' as a function only before the ksh alias
19395         setting, not afterwards.
19396         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
19397
19398 2010-02-24  Eric Blake  <eblake@redhat.com>
19399
19400         bootstrap, git-version-gen: use timestamp
19401         * build-aux/git-version-gen (scriptversion): Force UTC.
19402         * build-aux/bootstrap (scriptversion): New variable.
19403
19404         bootstrap: allow older git
19405         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
19406         older than 1.6.4.  Requested by the libvirt project.
19407
19408 2010-02-23  Eric Blake  <eblake@redhat.com>
19409
19410         warn-on-use: work with old autoconf
19411         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
19412         AS_VAR semantics of autoconf 2.60.
19413         Reported by Bruno Haible.
19414
19415         bootstrap: improve some comments
19416         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
19417         clarification comments.
19418
19419         gettimeofday: provide correct function
19420         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
19421         when replacement is declared, otherwise provide gettimeofday.
19422         Reported by Michael Goffioul.
19423
19424 2010-02-23  Jim Meyering  <meyering@redhat.com>
19425
19426         lib-ignore: relax license to "unlimited", not LGPLv2+
19427         * modules/lib-ignore (License): Relax to "unlimited".
19428
19429 2010-02-23  Jim Meyering  <meyering@redhat.com>
19430
19431         lib-ignore: relax license to LGPLv2+
19432         * modules/lib-ignore (License): Relax to LGPLv2+.
19433
19434 2010-02-22  Eric Blake  <eblake@redhat.com>
19435
19436         lseek: avoid bash 3.2 broken pipe bug
19437         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
19438         warning from bash 3.2.
19439         Reported by Ben Pfaff, with analysis from Bruno Haible.
19440
19441         bootstrap: support non-FSF copyright holder
19442         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
19443         bootstrap.conf override of COPYRIGHT_HOLDER.
19444         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
19445
19446         bootstrap: interoperate with gettext 0.14.1
19447         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
19448
19449         bootstrap: allow for alternate submodule location
19450         * build-aux/bootstrap (gnulib_path): New variable; use instead of
19451         hardcoding submodule location.
19452         (gnulib_mk): Allow direct use of Makefile.am.
19453
19454         bootstrap: use GNULIB_SRCDIR to reduce disk usage
19455         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
19456         rather than reconfiguring where the submodule points.
19457
19458         gettimeofday: restore support for platforms that lack function
19459         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
19460         replacement if function is missing.
19461         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
19462         * modules/sys_time (Makefile.am): Substitute it.
19463         * lib/sys_time.in.h (gettimeofday): Check it.
19464         Reported by Michael Goffioul.
19465
19466 2010-02-21  Bruno Haible  <bruno@clisp.org>
19467
19468         * lib/stdio.in.h (obstack_printf): Fix typo.
19469
19470 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
19471
19472         vc-list-files: use bzr ls's -R option
19473         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
19474         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
19475
19476 2010-02-21  Jim Meyering  <meyering@redhat.com>
19477
19478         init.sh: fix EXEEXT shims to work also for names like test-prog
19479         * tests/init.sh: Re-exec a better shell, when needed.
19480         If the current shell lacks support for posix $(...), an init.sh-using
19481         test will now try to find a shell that supports that.  If EXEEXT is
19482         nonempty, we also require support for hyphen-in-alias-name and shell
19483         substitutions like ${var#glob}.  Failure to find such a shell results
19484         in a skipped test.
19485
19486 2010-02-21  Bruno Haible  <bruno@clisp.org>
19487
19488         Really work around around "broken pipe" error message from bash 3.2.
19489         * gnulib-tool (func_reset_sigpipe): Remove function.
19490         (echo): In bash 3.2, define to a function that uses printf.
19491         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
19492
19493 2010-02-20  Bruno Haible  <bruno@clisp.org>
19494
19495         Restore support for automake 1.9.6 with autoconf 2.61.
19496         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
19497         Reported by James Youngman <jay@gnu.org>.
19498
19499 2010-02-20  Bruno Haible  <bruno@clisp.org>
19500
19501         Improve *printf warning condition.
19502         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
19503         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
19504         and the function is overridden due to SIGPIPE emulation.
19505
19506 2010-02-20  Bruno Haible  <bruno@clisp.org>
19507
19508         * lib/stdio.in.h: Tweak comments.
19509
19510 2010-02-19  Bruno Haible  <bruno@clisp.org>
19511
19512         Make it easier to find modules. New gnulib-tool option '--find'.
19513         * gnulib-tool: New option --find.
19514         (func_usage): Document it.
19515         (func_sanitize_modulelist): New function, extracted from
19516         func_all_modules.
19517         (func_all_modules): Invoke it.
19518         * doc/gnulib-tool.texi (Which modules?): New node.
19519
19520 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
19521
19522         * lib/sys_select.in.h: Provide select replacement even if
19523         sys/select.h exists on a system, for Interix.
19524
19525 2010-02-18  Jim Meyering  <meyering@redhat.com>
19526
19527         init.sh: don't use $(...) just yet
19528         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
19529         to accommodate e.g., Solaris' /bin/sh.
19530
19531 2010-02-17  Bruno Haible  <bruno@clisp.org>
19532
19533         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
19534         Reported by Ludovic Courtès <ludo@gnu.org>.
19535
19536 2010-02-16  Simon Josefsson  <simon@josefsson.org>
19537
19538         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
19539         linking with -lintl.
19540
19541 2010-02-17  Simon Josefsson  <simon@josefsson.org>
19542
19543         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
19544         if not provided by the system's netdb.h.  Reported by
19545         ludo@gnu.org (Ludovic Courtès).
19546
19547 2010-02-15  Jim Meyering  <meyering@redhat.com>
19548
19549         init.sh: improve portability and efficiency
19550         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
19551         "dummy" in a for loop.
19552         Use '!', not '^' to select the complement of a character set used
19553         in a "case" statement.
19554         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
19555         Suggestions from Eric Blake.
19556
19557         init.sh: automatically accommodate programs with the .exe suffix
19558         Automatically arrange for an invocation of "prog" to execute the
19559         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
19560         may use the simpler "prog", yet still work when built on a system
19561         that requires specifying the added suffix.
19562         Do this by constructing a function named "prog" that invokes
19563         "prog.exe" for each .exe file in selected directories.
19564         * tests/init.sh (find_exe_basenames_): New function.
19565         (create_exe_shim_functions_): New function.
19566         (path_prepend_): Use it.
19567
19568         maint.mk: mark syntax-check sc_*.m rules as .PHONY
19569         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
19570         "make -t syntax-check" doesn't create a ton of sc_*.m files.
19571
19572 2010-02-14  Jim Meyering  <meyering@redhat.com>
19573
19574         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
19575         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
19576         (sc_prohibit_hash_pjw_without_use): New rule.
19577
19578         maint.mk: allow the default upload destination dir to be overridden
19579         * top/maint.mk (upload_dest_dir_): Define with a default that
19580         preserves the status quo.
19581         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
19582         Reported by Peter Simons.
19583
19584         maint.mk: prohibit inclusion of "hash.h" without_use
19585         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
19586
19587 2010-02-10  Jim Meyering  <meyering@redhat.com>
19588
19589         maint.mk: prohibit inclusion of "ignore-value.h" without_use
19590         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
19591
19592 2010-02-09  Eric Blake  <ebb9@byu.net>
19593         and Bruno Haible  <bruno@clisp.org>
19594
19595         obstack-printf-posix: ensure declaration
19596         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
19597         extracted from gl_FUNC_OBSTACK_PRINTF.
19598         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
19599         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
19600         Likewise.
19601         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
19602         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
19603         0.
19604
19605 2010-02-08  Bruno Haible  <bruno@clisp.org>
19606
19607         gnulib-tool: Fix typo in 2010-02-07 commit.
19608         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
19609         Reported by Eric Blake.
19610
19611 2010-02-07  Bruno Haible  <bruno@clisp.org>
19612
19613         gnulib-tool: Fix up caching patches.
19614         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
19615         option --no-cache. Use associative arrays when supported by the shell.
19616         (sed_comments): New variable.
19617         (modcache): Renamed from do_cache.
19618         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
19619         abbreviate unnecessarily.
19620         (have_associative): New variable.
19621         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
19622         way also for ksh and zsh.
19623         (func_init_sed_convert_to_cache_statements): New function, extracted
19624         from func_cache_lookup_module. Add support for associative arrays.
19625         Don't set the c_MODULE_cached variable here. Ignore all lines before
19626         the first field header. Remove only the final newline, not all trailing
19627         newlines. Support empty fields correctly. Limit the use of 'eval' to
19628         assignments.
19629         (func_get_description, func_get_status, func_get_notice,
19630         func_get_applicability, func_get_filelist, func_get_dependencies,
19631         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
19632         func_get_automake_snippet, func_get_include_directive,
19633         func_get_link_directive, func_get_license, func_get_maintainer):
19634         Update documentation. List the unoptimized code first. Add support for
19635         associative arrays. Limit the use of 'eval' to assignments.
19636         (func_get_applicability): Undo stylistic pessimisations.
19637         (func_get_automake_snippet, func_get_include_directive): Reduce code
19638         duplication.
19639         (func_modules_transitive_closure, func_modules_add_dummy,
19640         func_modules_notice, func_modules_to_filelist, func_add_file,
19641         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
19642         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
19643         func_create_testdir, func_create_megatestdir): Update documentation.
19644
19645 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19646
19647         * gnulib-tool (func_cache_lookup_module): Store the module name
19648         belonging to the cache variable; error out if two different
19649         module names map to the same cache variable name.
19650
19651 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19652
19653         gnulib-tool: Make caching optional.
19654         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
19655         Update matching short versions of --no-changelog.
19656         (func_usage): Update.
19657         (sed_extract_cache_prog): Renamed from ...
19658         (sed_extract_prog): ... this; revert to old extraction script.
19659         (func_get_description, func_get_status)
19660         (func_get_notice, func_get_applicability, func_get_filelist)
19661         (func_get_dependencies, func_get_autoconf_early_snippet)
19662         (func_get_autoconf_snippet, func_get_automake_snippet)
19663         (func_get_include_directive, func_get_link_directive)
19664         (func_get_license, func_get_maintainer): If $do_cache is false,
19665         use old, non-caching extraction scripts.
19666         Suggestion by Bruno Haible.
19667
19668 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19669
19670         gnulib-tool: cache module metainformation.
19671         * gnulib-tool (sed_extract_prog): Match newline before each
19672         header, and rewrite header to a shell variable suffix.
19673         (func_cache_var, func_cache_lookup_module): New functions,
19674         to turn a module name into a cache variable prefix, and to
19675         look up and cache module metainformation.
19676         (func_get_description, func_get_status)
19677         (func_get_notice, func_get_applicability, func_get_filelist)
19678         (func_get_dependencies, func_get_autoconf_early_snippet)
19679         (func_get_autoconf_snippet, func_get_automake_snippet)
19680         (func_get_include_directive, func_get_link_directive)
19681         (func_get_license, func_get_maintainer): Use
19682         func_cache_lookup_module.
19683
19684 2010-02-07  Bruno Haible  <bruno@clisp.org>
19685
19686         fnctl: Fix missing dependency.
19687         * modules/fcntl (Depends-on): Add getdtablesize.
19688         Reported by John W. Eaton <jwe@gnu.org>.
19689
19690 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
19691
19692         Argp: fix recognition of short alias options.
19693
19694         * lib/argp-parse.c (convert_options): Fix improper use of
19695         `|' between character values.
19696         * tests/test-argp.c (group1_option): New alias option
19697         --read (-r).
19698         (group1_parser): Special handling for 'r'.
19699         (test15): New test case.
19700         (test_fun): Add test15.
19701         * tests/test-argp-2.sh: Update expected --help and --usage
19702         outputs.
19703
19704 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
19705
19706         * tests/test-argp.c: Fix indentation.
19707
19708 2010-02-04  Eric Blake  <ebb9@byu.net>
19709
19710         gettimeofday: expose type of second argument
19711         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
19712         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
19713         * tests/test-gettimeofday.c: Use it to silence warning.
19714         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
19715         the issue.
19716
19717 2010-02-03  Jim Meyering  <meyering@redhat.com>
19718
19719         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
19720         * lib/regcomp.c (TYPE_SIGNED): Define.
19721         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
19722
19723         regcomp.c: avoid a new -Wshadow warning
19724         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
19725
19726 2010-02-01  Jim Meyering  <meyering@redhat.com>
19727
19728         removing useless parentheses in cpp #define directives
19729         For motivation, see commit c0221df4, "define STREQ(a,b)
19730         consistently, removing useless parentheses"
19731         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
19732         * lib/mountlist.c (MNT_IGNORE): Likewise.
19733         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
19734
19735 2010-02-01  Eric Blake  <ebb9@byu.net>
19736
19737         sys_time: use link-warning
19738         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
19739         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
19740         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
19741         * modules/sys_time (Depends-on): Add warn-on-use.
19742         (Makefile.am): Always build replacement.
19743         (configure.ac): Update substitutions.
19744         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
19745         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
19746         bother with SYS_TIME_H.
19747         * modules/gettimeofday (configure.ac): Declare indicator.
19748         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
19749         in use.
19750
19751         closein-tests: silence compiler warning
19752         * tests/test-closein.c (main): Ignore fread result.
19753         * modules/closein-tests (Depends-on): Add ignore-value.
19754
19755         tests: silence warning about system return
19756         * tests/test-areadlink-with-size.c (main): Ignore system result.
19757         * tests/test-areadlink.c (main): Likewise.
19758         * tests/test-areadlinkat-with-size.c (main): Likewise.
19759         * tests/test-areadlinkat.c (main): Likewise.
19760         * tests/test-canonicalize-lgpl.c (main): Likewise.
19761         * tests/test-canonicalize.c (main): Likewise.
19762         * tests/test-chown.c (main): Likewise.
19763         * tests/test-fchownat.c (main): Likewise.
19764         * tests/test-fdutimensat.c (main): Likewise.
19765         * tests/test-fstatat.c (main): Likewise.
19766         * tests/test-futimens.c (main): Likewise.
19767         * tests/test-lchown.c (main): Likewise.
19768         * tests/test-link.c (main): Likewise.
19769         * tests/test-linkat.c (main): Likewise.
19770         * tests/test-lstat.c (main): Likewise.
19771         * tests/test-mkdir.c (main): Likewise.
19772         * tests/test-mkdirat.c (main): Likewise.
19773         * tests/test-mkfifo.c (main): Likewise.
19774         * tests/test-mkfifoat.c (main): Likewise.
19775         * tests/test-mknod.c (main): Likewise.
19776         * tests/test-readlink.c (main): Likewise.
19777         * tests/test-remove.c (main): Likewise.
19778         * tests/test-rename.c (main): Likewise.
19779         * tests/test-renameat.c (main): Likewise.
19780         * tests/test-rmdir.c (main): Likewise.
19781         * tests/test-symlink.c (main): Likewise.
19782         * tests/test-symlinkat.c (main): Likewise.
19783         * tests/test-unlink.c (main): Likewise.
19784         * tests/test-unlinkat.c (main): Likewise.
19785         * tests/test-utimens.c (main): Likewise.
19786         * tests/test-utimensat.c (main): Likewise.
19787         * modules/areadlink-tests (Depends-on): Add ignore-value.
19788         * modules/areadlink-with-size-tests (Depends-on): Likewise.
19789         * modules/areadlinkat-tests (Depends-on): Likewise.
19790         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
19791         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
19792         * modules/canonicalize-tests (Depends-on): Likewise.
19793         * modules/chown-tests (Depends-on): Likewise.
19794         * modules/fdutimensat-tests (Depends-on): Likewise.
19795         * modules/futimens-tests (Depends-on): Likewise.
19796         * modules/lchown-tests (Depends-on): Likewise.
19797         * modules/link-tests (Depends-on): Likewise.
19798         * modules/linkat-tests (Depends-on): Likewise.
19799         * modules/lstat-tests (Depends-on): Likewise.
19800         * modules/mkdir-tests (Depends-on): Likewise.
19801         * modules/mkfifo-tests (Depends-on): Likewise.
19802         * modules/mkfifoat-tests (Depends-on): Likewise.
19803         * modules/mknod-tests (Depends-on): Likewise.
19804         * modules/openat-tests (Depends-on): Likewise.
19805         * modules/readlink-tests (Depends-on): Likewise.
19806         * modules/remove-tests (Depends-on): Likewise.
19807         * modules/rename-tests (Depends-on): Likewise.
19808         * modules/renameat-tests (Depends-on): Likewise.
19809         * modules/rmdir-tests (Depends-on): Likewise.
19810         * modules/symlink-tests (Depends-on): Likewise.
19811         * modules/symlinkat-tests (Depends-on): Likewise.
19812         * modules/unlink-tests (Depends-on): Likewise.
19813         * modules/utimens-tests (Depends-on): Likewise.
19814         * modules/utimensat-tests (Depends-on): Likewise.
19815
19816 2010-01-31  Bruno Haible  <bruno@clisp.org>
19817
19818         Perform the same test for many <math.h> functions.
19819         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
19820         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
19821         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
19822         of gl_MATHFUNC.
19823         * modules/acos (configure.ac): Likewise.
19824         * modules/asin (configure.ac): Likewise.
19825         * modules/atan (configure.ac): Likewise.
19826         * modules/atan2 (configure.ac): Likewise.
19827         * modules/cbrt (configure.ac): Likewise.
19828         * modules/copysign (configure.ac): Likewise.
19829         * modules/cos (configure.ac): Likewise.
19830         * modules/cosh (configure.ac): Likewise.
19831         * modules/erf (configure.ac): Likewise.
19832         * modules/erfc (configure.ac): Likewise.
19833         * modules/exp (configure.ac): Likewise.
19834         * modules/fmod (configure.ac): Likewise.
19835         * modules/hypot (configure.ac): Likewise.
19836         * modules/j0 (configure.ac): Likewise.
19837         * modules/j1 (configure.ac): Likewise.
19838         * modules/jn (configure.ac): Likewise.
19839         * modules/lgamma (configure.ac): Likewise.
19840         * modules/log (configure.ac): Likewise.
19841         * modules/log10 (configure.ac): Likewise.
19842         * modules/log1p (configure.ac): Likewise.
19843         * modules/pow (configure.ac): Likewise.
19844         * modules/remainder (configure.ac): Likewise.
19845         * modules/sin (configure.ac): Likewise.
19846         * modules/sinh (configure.ac): Likewise.
19847         * modules/tan (configure.ac): Likewise.
19848         * modules/tanh (configure.ac): Likewise.
19849         * modules/y0 (configure.ac): Likewise.
19850         * modules/y1 (configure.ac): Likewise.
19851         * modules/yn (configure.ac): Likewise.
19852         Suggested by Paolo Bonzini.
19853
19854 2010-01-31  Bruno Haible  <bruno@clisp.org>
19855
19856         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
19857
19858 2010-01-31  Bruno Haible  <bruno@clisp.org>
19859
19860         Work around getdelim() bug on FreeBSD 8.0.
19861         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
19862         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
19863         not work.
19864         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
19865         is 1.
19866         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
19867         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
19868         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
19869         a non-zero size.
19870         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
19871
19872 2010-01-31  Bruno Haible  <bruno@clisp.org>
19873
19874         Work around getline() bug on FreeBSD 8.0.
19875         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
19876         and a non-zero size.
19877         * tests/test-getline.c (main): Likewise.
19878         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
19879         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
19880
19881 2010-01-28  Eric Blake  <ebb9@byu.net>
19882
19883         regex: fix build failure
19884         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
19885         platforms.
19886
19887 2010-01-28  Jim Meyering  <meyering@redhat.com>
19888
19889         regex: do not ignore memory allocation failure
19890         * lib/regex_internal.c (create_cd_newstate): Detect
19891         re_node_set_init_copy failure.   Extracted from glibc commit
19892         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
19893
19894         regex: sync more white-space changes from libc
19895         * lib/regex_internal.c: White-space only changes.
19896         * lib/regexec.c: Likewise.
19897
19898         regex: add many uses of __attribute_warn_unused_result__
19899         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
19900         * lib/regexec.c: Likewise.
19901         Extracted from a messy glibc commit.
19902
19903         regcomp.c: spelling and merge-artifact from glibc
19904         * lib/regcomp.c: Merge remainder of glibc's
19905         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
19906
19907         regcomp.c: sync white-space changes from glibc
19908         * lib/regcomp.c: Merge to accommodate white space
19909         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
19910
19911         regcomp.c: do not ignore internal return values
19912         * lib/regcomp.c: Do not ignore internal return values.
19913         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
19914         but without its white-space changes and spelling fixes.
19915
19916         regex_internal.h: define __attribute_warn_unused_result__
19917         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
19918
19919         maint: add a syntax-check rule to check for vulnerable Makefile.in
19920         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
19921
19922 2010-01-27  Jim Meyering  <meyering@redhat.com>
19923
19924         ncftpput-ftp: clean up spaces
19925         * build-aux/ncftpput-ftp: Make Copyright line consistent.
19926         Remove trailing blanks.
19927
19928 2010-01-27  Simon Josefsson  <simon@josefsson.org>
19929
19930         * build-aux/git-version-gen: Fix copyright statement.
19931         * build-aux/gnupload: Likewise.
19932         * tests/test-arcfour.c: Likewise.
19933         * tests/test-arctwo.c: Likewise.
19934         * tests/test-count-one-bits.c: Likewise.
19935         * tests/test-crc.c: Likewise.
19936         * tests/test-des.c: Likewise.
19937         * tests/test-gc-arcfour.c: Likewise.
19938         * tests/test-gc-arctwo.c: Likewise.
19939         * tests/test-gc-des.c: Likewise.
19940         * tests/test-gc-hmac-md5.c: Likewise.
19941         * tests/test-gc-hmac-sha1.c: Likewise.
19942         * tests/test-gc-md2.c: Likewise.
19943         * tests/test-gc-md4.c: Likewise.
19944         * tests/test-gc-md5.c: Likewise.
19945         * tests/test-gc-pbkdf2-sha1.c: Likewise.
19946         * tests/test-gc-rijndael.c: Likewise.
19947         * tests/test-gc-sha1.c: Likewise.
19948         * tests/test-gc.c: Likewise.
19949         * tests/test-gethostname.c: Likewise.
19950         * tests/test-gettimeofday.c: Likewise.
19951         * tests/test-hash.c: Likewise.
19952         * tests/test-hmac-md5.c: Likewise.
19953         * tests/test-hmac-sha1.c: Likewise.
19954         * tests/test-md2.c: Likewise.
19955         * tests/test-md4.c: Likewise.
19956         * tests/test-md5.c: Likewise.
19957         * tests/test-memchr.c: Likewise.
19958         * tests/test-memchr2.c: Likewise.
19959         * tests/test-memcmp.c: Likewise.
19960         * tests/test-memmem.c: Likewise.
19961         * tests/test-memrchr.c: Likewise.
19962         * tests/test-rawmemchr.c: Likewise.
19963         * tests/test-read-file.c: Likewise.
19964         * tests/test-rijndael.c: Likewise.
19965         * tests/test-sockets.c: Likewise.
19966         * tests/test-strchrnul.c: Likewise.
19967         * tests/test-strstr.c: Likewise.
19968         * tests/test-strtod.c: Likewise.
19969         * build-aux/ncftpput-ftp: Likewise.
19970
19971 2010-01-26  Eric Blake  <ebb9@byu.net>
19972
19973         ignore-value: update recommended header name
19974         * modules/ignore-value (Include): Only use <> for headers that
19975         exist in glibc.
19976
19977 2010-01-26  Jim Meyering  <meyering@redhat.com>
19978
19979         test-userspec.c: avoid compiler warnings
19980         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
19981         and "initialization discards qualifiers..." warnings.
19982         Put the first "uid" in its own scope, and make char* members "const".
19983
19984 2010-01-25  Bruno Haible  <bruno@clisp.org>
19985
19986         gnulib-tool: Make warning diagnostics consistent.
19987         * gnulib-tool (func_warning): New function.
19988         Use it everywhere where gnulib-tool produces output to stderr and it is
19989         not a fatal error.
19990
19991 2010-01-25  Bruno Haible  <bruno@clisp.org>
19992
19993         Fix test dependencies.
19994         * modules/xstrtol-tests (Depends-on): Add inttypes.
19995         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
19996
19997 2010-01-25 Pádraig Brady <P@draigBrady.com>
19998
19999         syntax-check: detect incorrect boolean macro values in config.h
20000         * modules/maintainer-makefile (configure.ac): Parameterize the location
20001         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
20002         The logic is from Eric Blake and the location indicated by Jim Meyering.
20003         Note the more natural CONFIG_HEADER name is prohibited by automake
20004         for backwards compatibility reasons.
20005         * top/maint.mk (sc_Wundef_boolean): New rule.
20006
20007 2010-01-25  Jim Meyering  <meyering@redhat.com>
20008
20009         bootstrap: detect MacOS 10.6's shasum, too
20010         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
20011         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
20012
20013 2010-01-23  Jim Meyering  <meyering@redhat.com>
20014
20015         xstrtoll: new module
20016         * modules/xstrtoll: New file.
20017         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
20018         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
20019         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
20020         ./configure fails if you use this module and lack "long long".
20021         * modules/xstrtoll-tests: New module.
20022         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
20023         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
20024         new init.sh-based test framework.
20025
20026 2010-01-24  Bruno Haible  <bruno@clisp.org>
20027
20028         Tests for module 'yn'.
20029         * modules/yn-tests: New file.
20030         * tests/test-yn.c: New file.
20031
20032         Tests for module 'y1'.
20033         * modules/y1-tests: New file.
20034         * tests/test-y1.c: New file.
20035
20036         Tests for module 'y0'.
20037         * modules/y0-tests: New file.
20038         * tests/test-y0.c: New file.
20039
20040         Tests for module 'tanh'.
20041         * modules/tanh-tests: New file.
20042         * tests/test-tanh.c: New file.
20043
20044         Tests for module 'tan'.
20045         * modules/tan-tests: New file.
20046         * tests/test-tan.c: New file.
20047
20048         Tests for module 'sqrt'.
20049         * modules/sqrt-tests: New file.
20050         * tests/test-sqrt.c: New file.
20051
20052         Tests for module 'sinh'.
20053         * modules/sinh-tests: New file.
20054         * tests/test-sinh.c: New file.
20055
20056         Tests for module 'sin'.
20057         * modules/sin-tests: New file.
20058         * tests/test-sin.c: New file.
20059
20060         Tests for module 'rint'.
20061         * modules/rint-tests: New file.
20062         * tests/test-rint.c: New file.
20063
20064         Tests for module 'remainder'.
20065         * modules/remainder-tests: New file.
20066         * tests/test-remainder.c: New file.
20067
20068         Tests for module 'pow'.
20069         * modules/pow-tests: New file.
20070         * tests/test-pow.c: New file.
20071
20072         Tests for module 'nextafter'.
20073         * modules/nextafter-tests: New file.
20074         * tests/test-nextafter.c: New file.
20075
20076         Tests for module 'modf'.
20077         * modules/modf-tests: New file.
20078         * tests/test-modf.c: New file.
20079
20080         Tests for module 'logb'.
20081         * modules/logb-tests: New file.
20082         * tests/test-logb.c: New file.
20083
20084         Tests for module 'log1p'.
20085         * modules/log1p-tests: New file.
20086         * tests/test-log1p.c: New file.
20087
20088         Tests for module 'log10'.
20089         * modules/log10-tests: New file.
20090         * tests/test-log10.c: New file.
20091
20092         Tests for module 'log'.
20093         * modules/log-tests: New file.
20094         * tests/test-log.c: New file.
20095
20096         Tests for module 'lgamma'.
20097         * modules/lgamma-tests: New file.
20098         * tests/test-lgamma.c: New file.
20099
20100         Tests for module 'ldexp'.
20101         * modules/ldexp-tests: New file.
20102         * tests/test-ldexp.c: New file.
20103
20104         Tests for module 'jn'.
20105         * modules/jn-tests: New file.
20106         * tests/test-jn.c: New file.
20107
20108         Tests for module 'j1'.
20109         * modules/j1-tests: New file.
20110         * tests/test-j1.c: New file.
20111
20112         Tests for module 'j0'.
20113         * modules/j0-tests: New file.
20114         * tests/test-j0.c: New file.
20115
20116         Tests for module 'hypot'.
20117         * modules/hypot-tests: New file.
20118         * tests/test-hypot.c: New file.
20119
20120         Tests for module 'fmod'.
20121         * modules/fmod-tests: New file.
20122         * tests/test-fmod.c: New file.
20123
20124         Tests for module 'fabs'.
20125         * modules/fabs-tests: New file.
20126         * tests/test-fabs.c: New file.
20127
20128         Tests for module 'exp'.
20129         * modules/exp-tests: New file.
20130         * tests/test-exp.c: New file.
20131
20132         Tests for module 'erfc'.
20133         * modules/erfc-tests: New file.
20134         * tests/test-erfc.c: New file.
20135
20136         Tests for module 'erf'.
20137         * modules/erf-tests: New file.
20138         * tests/test-erf.c: New file.
20139
20140         Tests for module 'cosh'.
20141         * modules/cosh-tests: New file.
20142         * tests/test-cosh.c: New file.
20143
20144         Tests for module 'cos'.
20145         * modules/cos-tests: New file.
20146         * tests/test-cos.c: New file.
20147
20148         Tests for module 'copysign'.
20149         * modules/copysign-tests: New file.
20150         * tests/test-copysign.c: New file.
20151
20152         Tests for module 'cbrt'.
20153         * modules/cbrt-tests: New file.
20154         * tests/test-cbrt.c: New file.
20155
20156         Tests for module 'atan2'.
20157         * modules/atan2-tests: New file.
20158         * tests/test-atan2.c: New file.
20159
20160         Tests for module 'atan'.
20161         * modules/atan-tests: New file.
20162         * tests/test-atan.c: New file.
20163
20164         Tests for module 'asin'.
20165         * modules/asin-tests: New file.
20166         * tests/test-asin.c: New file.
20167
20168         Tests for module 'acos'.
20169         * modules/acos-tests: New file.
20170         * tests/test-acos.c: New file.
20171
20172 2010-01-24  Bruno Haible  <bruno@clisp.org>
20173
20174         Fix tests for common <math.h> functions.
20175         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
20176         code snippet that references the function pointer, rather than merely
20177         calling the function. Substitute the FUNC_LIBM variable.
20178         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
20179         * modules/acos (configure.ac): Likewise.
20180         * modules/asin (configure.ac): Likewise.
20181         * modules/atan (configure.ac): Likewise.
20182         * modules/atan2 (configure.ac): Likewise.
20183         * modules/cbrt (configure.ac): Likewise.
20184         * modules/copysign (configure.ac): Likewise.
20185         * modules/cos (configure.ac): Likewise.
20186         * modules/cosh (configure.ac): Likewise.
20187         * modules/erf (configure.ac): Likewise.
20188         * modules/erfc (configure.ac): Likewise.
20189         * modules/exp (configure.ac): Likewise.
20190         * modules/fabs (configure.ac): Likewise.
20191         * modules/fmod (configure.ac): Likewise.
20192         * modules/hypot (configure.ac): Likewise.
20193         * modules/j0 (configure.ac): Likewise.
20194         * modules/j1 (configure.ac): Likewise.
20195         * modules/jn (configure.ac): Likewise.
20196         * modules/ldexp (configure.ac): Likewise.
20197         * modules/lgamma (configure.ac): Likewise.
20198         * modules/log (configure.ac): Likewise.
20199         * modules/log10 (configure.ac): Likewise.
20200         * modules/log1p (configure.ac): Likewise.
20201         * modules/logb (configure.ac): Likewise.
20202         * modules/modf (configure.ac): Likewise.
20203         * modules/nextafter (configure.ac): Likewise.
20204         * modules/pow (configure.ac): Likewise.
20205         * modules/remainder (configure.ac): Likewise.
20206         * modules/rint (configure.ac): Likewise.
20207         * modules/sin (configure.ac): Likewise.
20208         * modules/sinh (configure.ac): Likewise.
20209         * modules/tan (configure.ac): Likewise.
20210         * modules/tanh (configure.ac): Likewise.
20211         * modules/y0 (configure.ac): Likewise.
20212         * modules/y1 (configure.ac): Likewise.
20213         * modules/yn (configure.ac): Likewise.
20214
20215 2010-01-24  Bruno Haible  <bruno@clisp.org>
20216
20217         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
20218         * tests/test-acosl.c (x): New variable.
20219         (main): Store argument in x and fetch it from x.
20220         * tests/test-asinl.c (x): New variable.
20221         (main): Store argument in x and fetch it from x.
20222         * tests/test-atanl.c (x): New variable.
20223         (main): Store argument in x and fetch it from x.
20224         * tests/test-cosl.c (x): New variable.
20225         (main): Store argument in x and fetch it from x.
20226         * tests/test-expl.c (x): New variable.
20227         (main): Store argument in x and fetch it from x.
20228         * tests/test-logl.c (x): New variable.
20229         (main): Store argument in x and fetch it from x.
20230         * tests/test-sinl.c (x): New variable.
20231         (main): Store argument in x and fetch it from x.
20232         * tests/test-sqrtl.c (x): New variable.
20233         (main): Store argument in x and fetch it from x.
20234         * tests/test-tanl.c (x): New variable.
20235         (main): Store argument in x and fetch it from x.
20236
20237 2010-01-24  Bruno Haible  <bruno@clisp.org>
20238
20239         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
20240         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
20241         assignments to the initial TESTS_ENVIRONMENT.
20242         * doc/gnulib.texi (Unit test modules): Document it.
20243         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
20244         TESTS_ENVIRONMENT.
20245         * modules/btowc-tests (Makefile.am): Likewise.
20246         * modules/c-stack-tests (Makefile.am): Likewise.
20247         * modules/c-strcase-tests (Makefile.am): Likewise.
20248         * modules/copy-file-tests (Makefile.am): Likewise.
20249         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
20250         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
20251         * modules/mbrtowc-tests (Makefile.am): Likewise.
20252         * modules/mbscasecmp-tests (Makefile.am): Likewise.
20253         * modules/mbscasestr-tests (Makefile.am): Likewise.
20254         * modules/mbschr-tests (Makefile.am): Likewise.
20255         * modules/mbscspn-tests (Makefile.am): Likewise.
20256         * modules/mbsinit-tests (Makefile.am): Likewise.
20257         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
20258         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
20259         * modules/mbspbrk-tests (Makefile.am): Likewise.
20260         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
20261         * modules/mbsrchr-tests (Makefile.am): Likewise.
20262         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
20263         * modules/mbsspn-tests (Makefile.am): Likewise.
20264         * modules/mbsstr-tests (Makefile.am): Likewise.
20265         * modules/nl_langinfo-tests (Makefile.am): Likewise.
20266         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
20267         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
20268         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
20269         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
20270         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
20271         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
20272         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
20273         * modules/wcrtomb-tests (Makefile.am): Likewise.
20274         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
20275         * modules/wcsrtombs-tests (Makefile.am): Likewise.
20276         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
20277         assignments from TESTS_ENVIRONMENT.
20278         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
20279         augmentation.
20280         * modules/argp-version-etc-tests (Makefile.am): Likewise.
20281         * modules/atexit-tests (Makefile.am): Likewise.
20282         * modules/binary-io-tests (Makefile.am): Likewise.
20283         * modules/closein-tests (Makefile.am): Likewise.
20284         * modules/dprintf-posix-tests (Makefile.am): Likewise.
20285         * modules/exclude-tests (Makefile.am): Likewise.
20286         * modules/fflush-tests (Makefile.am): Likewise.
20287         * modules/fpending-tests (Makefile.am): Likewise.
20288         * modules/fprintf-posix-tests (Makefile.am): Likewise.
20289         * modules/freadahead-tests (Makefile.am): Likewise.
20290         * modules/freadptr-tests (Makefile.am): Likewise.
20291         * modules/freadseek-tests (Makefile.am): Likewise.
20292         * modules/fseek-tests (Makefile.am): Likewise.
20293         * modules/fseeko-tests (Makefile.am): Likewise.
20294         * modules/ftell-tests (Makefile.am): Likewise.
20295         * modules/ftello-tests (Makefile.am): Likewise.
20296         * modules/idpriv-drop-tests (Makefile.am): Likewise.
20297         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
20298         * modules/lseek-tests (Makefile.am): Likewise.
20299         * modules/parse-duration-tests (Makefile.am): Likewise.
20300         * modules/perror-tests (Makefile.am): Likewise.
20301         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
20302         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
20303         * modules/pipe-tests (Makefile.am): Likewise.
20304         * modules/pread-tests (Makefile.am): Likewise.
20305         * modules/printf-posix-tests (Makefile.am): Likewise.
20306         * modules/select-tests (Makefile.am): Likewise.
20307         * modules/sigpipe-tests (Makefile.am): Likewise.
20308         * modules/tsearch-tests (Makefile.am): Likewise.
20309         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
20310         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
20311         * modules/uniname/uniname-tests (Makefile.am): Likewise.
20312         * modules/uniwidth/width-tests (Makefile.am): Likewise.
20313         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
20314         * modules/version-etc-tests (Makefile.am): Likewise.
20315         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
20316         * modules/vprintf-posix-tests (Makefile.am): Likewise.
20317         * modules/xalloc-die-tests (Makefile.am): Likewise.
20318         * modules/xprintf-posix-tests (Makefile.am): Likewise.
20319         * modules/xstrtoimax-tests (Makefile.am): Likewise.
20320         * modules/xstrtol-tests (Makefile.am): Likewise.
20321         * modules/xstrtoumax-tests (Makefile.am): Likewise.
20322         * modules/yesno-tests (Makefile.am): Likewise.
20323         Suggested by Jim Meyering.
20324
20325 2010-01-24  Bruno Haible  <bruno@clisp.org>
20326
20327         More documentation.
20328         * doc/gnulib.texi (Writing modules): New chapter.
20329         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
20330         the new chapter.
20331
20332 2010-01-24  Jim Meyering  <meyering@redhat.com>
20333
20334         maint.mk: do not prepend "./" after filtering
20335         * top/maint.mk (_prepend_srcdir_prefix): New variable
20336         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
20337         "./" when $(srcdir) is ".".
20338
20339         define STREQ(a,b) consistently, removing useless parentheses
20340         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
20341         since the only risk is that "a" or "b" contains an unparenthesized
20342         comma, but if either did that, STREQ would have 3 or more arguments.
20343         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
20344         * lib/fts.c (STREQ): Remove unnecessary parentheses.
20345         * lib/hash-triple.c (STREQ): Likewise.
20346         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
20347         * lib/getugroups.c (STREQ): Likewise.
20348
20349 2010-01-23  Jim Meyering  <meyering@redhat.com>
20350
20351         maint.mk: fix syntax-check in a non-srcdir build directory
20352         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
20353         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
20354
20355 2010-01-22  Jim Meyering  <meyering@redhat.com>
20356
20357         userspec: add unit tests
20358         * tests/test-userspec.c: New file.
20359         * modules/userspec-tests: Likewise.
20360
20361 2010-01-21  Jim Meyering  <meyering@redhat.com>
20362
20363         maint.mk: handle source file names containing "." robustly
20364         * top/maint.mk (_dot_escaped_srcdir): Define.
20365         (VC_LIST): Use it in LHS of sed substitution.
20366
20367 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
20368
20369         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
20370         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
20371         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
20372         from a non-srcdir build.
20373
20374 2010-01-20  Eric Blake  <ebb9@byu.net>
20375
20376         warn-on-use: use instead of link-warning
20377         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
20378         * modules/unistd (Depends-on, Makefile.am): Likewise.
20379         * modules/arpa_inet (Depends-on): Replace link-warning with
20380         warn-on-use.
20381         (Makefile.am): Update rules accordingly.
20382         * modules/ctype (Depends-on, Makefile.am): Likewise.
20383         * modules/dirent (Depends-on, Makefile.am): Likewise.
20384         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
20385         * modules/inttypes (Depends-on, Makefile.am): Likewise.
20386         * modules/langinfo (Depends-on, Makefile.am): Likewise.
20387         * modules/locale (Depends-on, Makefile.am): Likewise.
20388         * modules/math (Depends-on, Makefile.am): Likewise.
20389         * modules/search (Depends-on, Makefile.am): Likewise.
20390         * modules/signal (Depends-on, Makefile.am): Likewise.
20391         * modules/spawn (Depends-on, Makefile.am): Likewise.
20392         * modules/stdlib (Depends-on, Makefile.am): Likewise.
20393         * modules/string (Depends-on, Makefile.am): Likewise.
20394         * modules/strings (Depends-on, Makefile.am): Likewise.
20395         * modules/sys_file (Depends-on, Makefile.am): Likewise.
20396         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
20397         * modules/sys_select (Depends-on, Makefile.am): Likewise.
20398         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
20399         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
20400         * modules/sys_times (Depends-on, Makefile.am): Likewise.
20401         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
20402         * modules/wchar (Depends-on, Makefile.am): Likewise.
20403         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
20404         should be poisoned.
20405         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
20406         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
20407         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
20408         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
20409         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
20410         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
20411         * m4/math_h.m4 (gl_MATH_H): Likewise.
20412         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
20413         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
20414         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
20415         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
20416         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
20417         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
20418         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
20419         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
20420         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
20421         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20422         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
20423         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
20424         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20425         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
20426         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
20427         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
20428         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
20429         GL_LINK_WARNING.
20430         * lib/ctype.in.h: Likewise.
20431         * lib/dirent.in.h: Likewise.
20432         * lib/fcntl.in.h: Likewise.
20433         * lib/inttypes.in.h: Likewise.
20434         * lib/langinfo.in.h: Likewise.
20435         * lib/locale.in.h: Likewise.
20436         * lib/math.in.h: Likewise.
20437         * lib/search.in.h: Likewise.
20438         * lib/signal.in.h: Likewise.
20439         * lib/spawn.in.h: Likewise.
20440         * lib/stdio.in.h: Likewise.
20441         * lib/stdlib.in.h: Likewise.
20442         * lib/string.in.h: Likewise.
20443         * lib/strings.in.h: Likewise.
20444         * lib/sys_file.in.h: Likewise.
20445         * lib/sys_ioctl.in.h: Likewise.
20446         * lib/sys_select.in.h: Likewise.
20447         * lib/sys_socket.in.h: Likewise.
20448         * lib/sys_stat.in.h: Likewise.
20449         * lib/sys_times.in.h: Likewise.
20450         * lib/sys_utsname.in.h: Likewise.
20451         * lib/unistd.in.h: Likewise.
20452         * lib/wchar.in.h: Likewise.
20453
20454 2010-01-20  Bruno Haible  <bruno@clisp.org>
20455
20456         Avoid duplicate -lm.
20457         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
20458         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
20459         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
20460         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
20461         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
20462         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
20463         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
20464         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
20465         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
20466         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
20467         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
20468         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
20469         Reported by Paolo Bonzini.
20470
20471 2010-01-19  Bruno Haible  <bruno@clisp.org>
20472
20473         langinfo, nl_langinfo: Relicense under LGPLv2+.
20474         * modules/langinfo (License): Change to LGPLv2+.
20475         * modules/nl_langinfo (License): Likewise.
20476         Patch by David Lutterkort <lutter@redhat.com>.
20477
20478 2010-01-19  Bruno Haible  <bruno@clisp.org>
20479
20480         Avoid compilation error with cc on OSF/1 5.1.
20481         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
20482         statement, not before.
20483         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20484
20485 2010-01-18  Bruno Haible  <bruno@clisp.org>
20486
20487         Avoid a link error due to the __printf__ symbol.
20488         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
20489         and 2.6.x.
20490         (__format__, __printf__): Remove definitions.
20491         * lib/argp-fmtstream.h: Likewise.
20492         * lib/argp.h: Likewise.
20493         * lib/error.h: Likewise.
20494         * lib/vasnprintf.h: Likewise.
20495         * lib/xprintf.h: Likewise.
20496         * lib/xvasprintf.h: Likewise.
20497         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20498
20499 2010-01-18  Bruno Haible  <bruno@clisp.org>
20500
20501         Tests for module 'tanl'.
20502         * modules/tanl-tests: New file.
20503         * tests/test-tanl.c: New file.
20504
20505         Tests for module 'sqrtl'.
20506         * modules/sqrtl-tests: New file.
20507         * tests/test-sqrtl.c: New file.
20508
20509         Tests for module 'sinl'.
20510         * modules/sinl-tests: New file.
20511         * tests/test-sinl.c: New file.
20512
20513         Tests for module 'logl'.
20514         * modules/logl-tests: New file.
20515         * tests/test-logl.c: New file.
20516
20517         Tests for module 'expl'.
20518         * modules/expl-tests: New file.
20519         * tests/test-expl.c: New file.
20520
20521         Tests for module 'cosl'.
20522         * modules/cosl-tests: New file.
20523         * tests/test-cosl.c: New file.
20524
20525         Tests for module 'atanl'.
20526         * modules/atanl-tests: New file.
20527         * tests/test-atanl.c: New file.
20528
20529         Tests for module 'asinl'.
20530         * modules/asinl-tests: New file.
20531         * tests/test-asinl.c: New file.
20532
20533         Tests for module 'acosl'.
20534         * modules/acosl-tests: New file.
20535         * tests/test-acosl.c: New file.
20536
20537         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
20538         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
20539         tanl): Use the standard gnulib idiom.
20540         * lib/cosl.c: Don't include trigl.c and sincosl.c.
20541         * lib/sinl.c: Likewise.
20542         * lib/tanl.c: Don't include trigl.c.
20543         (kernel_tanl): Make static.
20544         * lib/sincosl.c: Include trigl.h first.
20545         * lib/trigl.c: Likewise.
20546         * m4/acosl.m4: New file.
20547         * m4/asinl.m4: New file.
20548         * m4/atanl.m4: New file.
20549         * m4/cosl.m4: New file.
20550         * m4/expl.m4: New file.
20551         * m4/logl.m4: New file.
20552         * m4/sinl.m4: New file.
20553         * m4/sqrtl.m4: New file.
20554         * m4/tanl.m4: New file.
20555         * m4/mathl.m4: Remove file.
20556         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
20557         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
20558         Don't initialize GNULIB_MATHL.
20559         * modules/acosl: New file.
20560         * modules/asinl: New file.
20561         * modules/atanl: New file.
20562         * modules/cosl: New file.
20563         * modules/expl: New file.
20564         * modules/logl: New file.
20565         * modules/sinl: New file.
20566         * modules/sqrtl: New file.
20567         * modules/tanl: New file.
20568         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
20569         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
20570         substitute GNULIB_MATHL.
20571         * modules/mathl: Rewritten.
20572         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
20573         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
20574         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
20575         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
20576         * doc/posix-functions/expl.texi: Mention the 'expl' module.
20577         * doc/posix-functions/logl.texi: Mention the 'logl' module.
20578         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
20579         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
20580         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
20581
20582 2010-01-18  Bruno Haible  <bruno@clisp.org>
20583
20584         sqrt: Make gl_FUNC_SQRT requirable.
20585         * m4/sqrt.m4: New file.
20586         * modules/sqrt (Files): Add it.
20587         (configure.ac): Invoke gl_FUNC_SQRT.
20588
20589 2010-01-18  Bruno Haible  <bruno@clisp.org>
20590
20591         New modules for common <math.h> functions.
20592         * m4/mathfunc.m4: New file.
20593         * modules/acos: New file.
20594         * modules/asin: New file.
20595         * modules/atan: New file.
20596         * modules/atan2: New file.
20597         * modules/cbrt: New file.
20598         * modules/copysign: New file.
20599         * modules/cos: New file.
20600         * modules/cosh: New file.
20601         * modules/erf: New file.
20602         * modules/erfc: New file.
20603         * modules/exp: New file.
20604         * modules/fabs: New file.
20605         * modules/fmod: New file.
20606         * modules/hypot: New file.
20607         * modules/j0: New file.
20608         * modules/j1: New file.
20609         * modules/jn: New file.
20610         * modules/ldexp: New file.
20611         * modules/lgamma: New file.
20612         * modules/log: New file.
20613         * modules/log10: New file.
20614         * modules/log1p: New file.
20615         * modules/logb: New file.
20616         * modules/modf: New file.
20617         * modules/nextafter: New file.
20618         * modules/pow: New file.
20619         * modules/remainder: New file.
20620         * modules/rint: New file.
20621         * modules/sin: New file.
20622         * modules/sinh: New file.
20623         * modules/sqrt: New file.
20624         * modules/tan: New file.
20625         * modules/tanh: New file.
20626         * modules/y0: New file.
20627         * modules/y1: New file.
20628         * modules/yn: New file.
20629         * doc/posix-functions/acos.texi: Mention the 'acos' module.
20630         * doc/posix-functions/asin.texi: Mention the 'asin' module.
20631         * doc/posix-functions/atan.texi: Mention the 'atan' module.
20632         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
20633         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
20634         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
20635         * doc/posix-functions/cos.texi: Mention the 'cos' module.
20636         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
20637         * doc/posix-functions/erf.texi: Mention the 'erf' module.
20638         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
20639         * doc/posix-functions/exp.texi: Mention the 'exp' module.
20640         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
20641         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
20642         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
20643         * doc/posix-functions/j0.texi: Mention the 'j0' module.
20644         * doc/posix-functions/j1.texi: Mention the 'j1' module.
20645         * doc/posix-functions/jn.texi: Mention the 'jn' module.
20646         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
20647         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
20648         * doc/posix-functions/log.texi: Mention the 'log' module.
20649         * doc/posix-functions/log10.texi: Mention the 'log10' module.
20650         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
20651         * doc/posix-functions/logb.texi: Mention the 'logb' module.
20652         * doc/posix-functions/modf.texi: Mention the 'modf' module.
20653         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
20654         * doc/posix-functions/pow.texi: Mention the 'pow' module.
20655         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
20656         * doc/posix-functions/rint.texi: Mention the 'rint' module.
20657         * doc/posix-functions/sin.texi: Mention the 'sin' module.
20658         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
20659         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
20660         * doc/posix-functions/tan.texi: Mention the 'tan' module.
20661         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
20662         * doc/posix-functions/y0.texi: Mention the 'y0' module.
20663         * doc/posix-functions/y1.texi: Mention the 'y1' module.
20664         * doc/posix-functions/yn.texi: Mention the 'yn' module.
20665
20666 2010-01-18  Jim Meyering  <meyering@redhat.com>
20667
20668         ignore-value: relax license to LGPLv2+
20669         * modules/ignore-value (License): Relax to LGPLv2+.
20670
20671         getdate: don't leak when TZ contains two or more '"'s
20672         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
20673         double quote in TZ after the first one.
20674
20675         readtokens: do not leak internal token_lengths buffer
20676         * lib/readtokens.c (readtokens): Free the local, lengths,
20677         when the supplied "token_lengths" parameter is NULL.
20678
20679 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20680
20681         Fix a couple of missing LIBTHREAD link failures on AIX.
20682         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
20683         $(LIBTHREAD).
20684         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
20685
20686         Link test-poll against INET_PTON_LIB.
20687         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
20688         for inet_pton on Solaris 10.
20689
20690 2010-01-17  Bruno Haible  <bruno@clisp.org>
20691
20692         unistdio/*-sprintf: Fix typo in module description.
20693         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
20694         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
20695         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
20696         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
20697         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
20698         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
20699         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
20700         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20701
20702 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20703
20704         gnulib-tool: fix filelist for AIX, HP-UX ksh.
20705         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
20706         variables in shell case patterns, for AIX and HP-UX ksh.
20707
20708         Split large sed scripts, for HP-UX sed.
20709         * modules/stdio: Split sed scripts around 50 sed commands,
20710         to avoid HP-UX limit of 99 commands, in the near future.
20711         * modules/string: Likewise.
20712         * modules/unistd: Likewise.
20713
20714         gnulib-tool: avoid writing in the current directory.
20715         * gnulib-tool (func_emit_lib_Makefile_am)
20716         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
20717         not in the current directory, so concurrent gnulib-tool
20718         instances do not interfere.
20719
20720 2010-01-16  Jim Meyering  <meyering@redhat.com>
20721
20722         doc: update users.txt
20723         * users.txt: Add grep.
20724         (diffutils, gzip): Update URLs.
20725
20726 2010-01-12  Bruno Haible  <bruno@clisp.org>
20727
20728         posix_spawn: Avoid test failure on Cygwin.
20729         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
20730         characters.
20731         Reported by Simon Josefsson.
20732
20733 2010-01-12  Bruno Haible  <bruno@clisp.org>
20734
20735         * tests/test-cond.c (main): When skipping the test, show the reason.
20736
20737 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20738
20739         * lib/striconv.c (str_cd_iconv): Avoid if before free.
20740
20741 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20742
20743         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
20744         VC_LIST_ALWAYS_EXCLUDE_REGEX.
20745
20746 2010-01-12  Eric Blake  <ebb9@byu.net>
20747
20748         build: guarantee AS_VAR_IF
20749         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
20750         (gl_AS_VAR_IF): Move...
20751         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
20752         Reported by Simon Josefsson.
20753
20754 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20755
20756         * lib/stdio.in.h: Fix typo.
20757
20758 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20759
20760         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
20761         libgpg-error.
20762
20763 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20764
20765         * tests/test-xalloc-die.sh: Use $EXEEXT.
20766
20767 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20768             Bruno Haible  <bruno@clisp.org>
20769
20770         getlogin, getlogin_r: Avoid test failure.
20771         * tests/test-getlogin.c: Include <stdio.h>.
20772         (main): Skip the test when the function fails because stdin is not a
20773         tty.
20774         * tests/test-getlogin_r.c: Include <stdio.h>.
20775         (main): Skip the test when the function fails because stdin is not a
20776         tty.
20777
20778 2010-01-11  Eric Blake  <ebb9@byu.net>
20779
20780         tests: avoid more large file warnings
20781         * tests/test-fflush.c: Avoid warning about ftell use.
20782         * tests/test-fseek.c: Avoid warning about fseek use.
20783
20784 2010-01-10  Bruno Haible  <bruno@clisp.org>
20785
20786         nproc: Work better on Linux when /proc and /sys are not mounted.
20787         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
20788         as lower bound when, on glibc/Linux systems,
20789         sysconf (_SC_NPROCESSORS_CONF) returns 1.
20790         Suggested by Pádraig Brady <P@draigbrady.com>.
20791         Reported by Dmitry V. Levin <ldv@altlinux.org>.
20792
20793         nproc: Refactor.
20794         * lib/nproc.c (num_processors_via_affinity_mask): New function,
20795         extracted from num_processors.
20796         (num_processors): Call it.
20797
20798 2010-01-11  Jim Meyering  <meyering@redhat.com>
20799
20800         utimecmp: avoid new warning from upcoming gcc-4.5.0
20801         * lib/utimecmp.c (BILLION): Define using #define rather than an
20802         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
20803
20804 2010-01-11  Eric Blake  <ebb9@byu.net>
20805
20806         math: add portability warnings for classification macros
20807         * modules/math (Depends-on): Add warn-on-use.
20808         (Makefile.am): Provide new substitutions.
20809         * m4/math_h.m4 (gl_MATH_H): Require inline.
20810         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
20811         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
20812         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
20813         implement warnings.
20814
20815         unistd: warn on use of environ without module
20816         * modules/unistd (Depends-on): Add warn-on-use.
20817         (Makefile.am): Provide new substitutions.
20818         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
20819         * lib/unistd.in.h (environ): Wrap with a warning helper function.
20820
20821         stdio: warn on suspicious uses
20822         * modules/stdio (Depends-on): Add warn-on-use.
20823         (Makefile.am): Provide new substitutions.
20824         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
20825         fseeko.
20826         * lib/stdio.in.h (gets): Always warn on use.
20827         (fseek, ftell): Adjust when warnings are issued, and honor
20828         _GL_NO_LARGE_FILES as a way to silence the warning.
20829         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
20830         any warning about large file offsets.
20831         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
20832         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
20833         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
20834         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
20835         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
20836         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
20837         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
20838         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
20839
20840         warn-on-use: new module
20841         * modules/warn-on-use: New file.
20842         * build-aux/warn-on-use.h: Likewise.
20843         * m4/warn-on-use.m4: Likewise.
20844         * MODULES.html.sh (Support for building): Mention it.
20845
20846 2010-01-10  Bruno Haible  <bruno@clisp.org>
20847
20848         Tests for module 'unistr/u32-strdup'.
20849         * modules/unistr/u32-strdup-tests: New file.
20850         * tests/unistr/test-u32-strdup.c: New file.
20851
20852         Tests for module 'unistr/u16-strdup'.
20853         * modules/unistr/u16-strdup-tests: New file.
20854         * tests/unistr/test-u16-strdup.c: New file.
20855
20856         Tests for module 'unistr/u8-strdup'.
20857         * modules/unistr/u8-strdup-tests: New file.
20858         * tests/unistr/test-u8-strdup.c: New file.
20859         * tests/unistr/test-strdup.h: New file.
20860
20861         Tests for module 'unistr/u32-strncmp'.
20862         * modules/unistr/u32-strncmp-tests: New file.
20863         * tests/unistr/test-u32-strncmp.c: New file.
20864
20865         Tests for module 'unistr/u16-strncmp'.
20866         * modules/unistr/u16-strncmp-tests: New file.
20867         * tests/unistr/test-u16-strncmp.c: New file.
20868
20869         Tests for module 'unistr/u8-strncmp'.
20870         * modules/unistr/u8-strncmp-tests: New file.
20871         * tests/unistr/test-u8-strncmp.c: New file.
20872         * tests/unistr/test-strncmp.h: New file.
20873
20874         Tests for module 'unistr/u32-strcoll'.
20875         * modules/unistr/u32-strcoll-tests: New file.
20876         * tests/unistr/test-u32-strcoll.c: New file.
20877
20878         Tests for module 'unistr/u16-strcoll'.
20879         * modules/unistr/u16-strcoll-tests: New file.
20880         * tests/unistr/test-u16-strcoll.c: New file.
20881
20882         Tests for module 'unistr/u8-strcoll'.
20883         * modules/unistr/u8-strcoll-tests: New file.
20884         * tests/unistr/test-u8-strcoll.c: New file.
20885
20886         Tests for module 'unistr/u32-strcmp'.
20887         * modules/unistr/u32-strcmp-tests: New file.
20888         * tests/unistr/test-u32-strcmp.c: New file.
20889         * tests/unistr/test-u32-strcmp.h: New file.
20890
20891         Tests for module 'unistr/u16-strcmp'.
20892         * modules/unistr/u16-strcmp-tests: New file.
20893         * tests/unistr/test-u16-strcmp.c: New file.
20894         * tests/unistr/test-u16-strcmp.h: New file.
20895
20896         Tests for module 'unistr/u8-strcmp'.
20897         * modules/unistr/u8-strcmp-tests: New file.
20898         * tests/unistr/test-u8-strcmp.c: New file.
20899         * tests/unistr/test-u8-strcmp.h: New file.
20900         * tests/unistr/test-strcmp.h: New file.
20901
20902         Tests for module 'unistr/u32-strncat'.
20903         * modules/unistr/u32-strncat-tests: New file.
20904         * tests/unistr/test-u32-strncat.c: New file.
20905
20906         Tests for module 'unistr/u16-strncat'.
20907         * modules/unistr/u16-strncat-tests: New file.
20908         * tests/unistr/test-u16-strncat.c: New file.
20909
20910         Tests for module 'unistr/u8-strncat'.
20911         * modules/unistr/u8-strncat-tests: New file.
20912         * tests/unistr/test-u8-strncat.c: New file.
20913         * tests/unistr/test-strncat.h: New file.
20914
20915         Tests for module 'unistr/u32-strcat'.
20916         * modules/unistr/u32-strcat-tests: New file.
20917         * tests/unistr/test-u32-strcat.c: New file.
20918
20919         Tests for module 'unistr/u16-strcat'.
20920         * modules/unistr/u16-strcat-tests: New file.
20921         * tests/unistr/test-u16-strcat.c: New file.
20922
20923         Tests for module 'unistr/u8-strcat'.
20924         * modules/unistr/u8-strcat-tests: New file.
20925         * tests/unistr/test-u8-strcat.c: New file.
20926         * tests/unistr/test-strcat.h: New file.
20927
20928         Tests for module 'unistr/u32-stpncpy'.
20929         * modules/unistr/u32-stpncpy-tests: New file.
20930         * tests/unistr/test-u32-stpncpy.c: New file.
20931
20932         Tests for module 'unistr/u16-stpncpy'.
20933         * modules/unistr/u16-stpncpy-tests: New file.
20934         * tests/unistr/test-u16-stpncpy.c: New file.
20935
20936         Tests for module 'unistr/u8-stpncpy'.
20937         * modules/unistr/u8-stpncpy-tests: New file.
20938         * tests/unistr/test-u8-stpncpy.c: New file.
20939         * tests/unistr/test-stpncpy.h: New file.
20940
20941         Tests for module 'unistr/u32-strncpy'.
20942         * modules/unistr/u32-strncpy-tests: New file.
20943         * tests/unistr/test-u32-strncpy.c: New file.
20944
20945         Tests for module 'unistr/u16-strncpy'.
20946         * modules/unistr/u16-strncpy-tests: New file.
20947         * tests/unistr/test-u16-strncpy.c: New file.
20948
20949         Tests for module 'unistr/u8-strncpy'.
20950         * modules/unistr/u8-strncpy-tests: New file.
20951         * tests/unistr/test-u8-strncpy.c: New file.
20952         * tests/unistr/test-strncpy.h: New file.
20953
20954         Tests for module 'unistr/u32-stpcpy'.
20955         * modules/unistr/u32-stpcpy-tests: New file.
20956         * tests/unistr/test-u32-stpcpy.c: New file.
20957
20958         Tests for module 'unistr/u16-stpcpy'.
20959         * modules/unistr/u16-stpcpy-tests: New file.
20960         * tests/unistr/test-u16-stpcpy.c: New file.
20961
20962         Tests for module 'unistr/u8-stpcpy'.
20963         * modules/unistr/u8-stpcpy-tests: New file.
20964         * tests/unistr/test-u8-stpcpy.c: New file.
20965         * tests/unistr/test-stpcpy.h: New file.
20966
20967         Tests for module 'unistr/u32-strcpy'.
20968         * modules/unistr/u32-strcpy-tests: New file.
20969         * tests/unistr/test-u32-strcpy.c: New file.
20970
20971         Tests for module 'unistr/u16-strcpy'.
20972         * modules/unistr/u16-strcpy-tests: New file.
20973         * tests/unistr/test-u16-strcpy.c: New file.
20974
20975         Tests for module 'unistr/u8-strcpy'.
20976         * modules/unistr/u8-strcpy-tests: New file.
20977         * tests/unistr/test-u8-strcpy.c: New file.
20978         * tests/unistr/test-strcpy.h: New file.
20979
20980         Tests for module 'unistr/u32-strnlen'.
20981         * modules/unistr/u32-strnlen-tests: New file.
20982         * tests/unistr/test-u32-strnlen.c: New file.
20983
20984         Tests for module 'unistr/u16-strnlen'.
20985         * modules/unistr/u16-strnlen-tests: New file.
20986         * tests/unistr/test-u16-strnlen.c: New file.
20987
20988         Tests for module 'unistr/u8-strnlen'.
20989         * modules/unistr/u8-strnlen-tests: New file.
20990         * tests/unistr/test-u8-strnlen.c: New file.
20991         * tests/unistr/test-strnlen.h: New file.
20992
20993         Tests for module 'unistr/u32-strlen'.
20994         * modules/unistr/u32-strlen-tests: New file.
20995         * tests/unistr/test-u32-strlen.c: New file.
20996
20997         Tests for module 'unistr/u16-strlen'.
20998         * modules/unistr/u16-strlen-tests: New file.
20999         * tests/unistr/test-u16-strlen.c: New file.
21000
21001         Tests for module 'unistr/u8-strlen'.
21002         * modules/unistr/u8-strlen-tests: New file.
21003         * tests/unistr/test-u8-strlen.c: New file.
21004
21005         Tests for module 'unistr/u32-prev'.
21006         * modules/unistr/u32-prev-tests: New file.
21007         * tests/unistr/test-u32-prev.c: New file.
21008
21009         Tests for module 'unistr/u16-prev'.
21010         * modules/unistr/u16-prev-tests: New file.
21011         * tests/unistr/test-u16-prev.c: New file.
21012
21013         Tests for module 'unistr/u8-prev'.
21014         * modules/unistr/u8-prev-tests: New file.
21015         * tests/unistr/test-u8-prev.c: New file.
21016
21017         Tests for module 'unistr/u32-next'.
21018         * modules/unistr/u32-next-tests: New file.
21019         * tests/unistr/test-u32-next.c: New file.
21020
21021         Tests for module 'unistr/u16-next'.
21022         * modules/unistr/u16-next-tests: New file.
21023         * tests/unistr/test-u16-next.c: New file.
21024
21025         Tests for module 'unistr/u8-next'.
21026         * modules/unistr/u8-next-tests: New file.
21027         * tests/unistr/test-u8-next.c: New file.
21028
21029         Tests for module 'unistr/u32-strmbtouc'.
21030         * modules/unistr/u32-strmbtouc-tests: New file.
21031         * tests/unistr/test-u32-strmbtouc.c: New file.
21032
21033         Tests for module 'unistr/u16-strmbtouc'.
21034         * modules/unistr/u16-strmbtouc-tests: New file.
21035         * tests/unistr/test-u16-strmbtouc.c: New file.
21036
21037         Tests for module 'unistr/u8-strmbtouc'.
21038         * modules/unistr/u8-strmbtouc-tests: New file.
21039         * tests/unistr/test-u8-strmbtouc.c: New file.
21040
21041         Tests for module 'unistr/u32-strmblen'.
21042         * modules/unistr/u32-strmblen-tests: New file.
21043         * tests/unistr/test-u32-strmblen.c: New file.
21044
21045         Tests for module 'unistr/u16-strmblen'.
21046         * modules/unistr/u16-strmblen-tests: New file.
21047         * tests/unistr/test-u16-strmblen.c: New file.
21048
21049         Tests for module 'unistr/u8-strmblen'.
21050         * modules/unistr/u8-strmblen-tests: New file.
21051         * tests/unistr/test-u8-strmblen.c: New file.
21052
21053         Tests for module 'unistr/u32-cpy-alloc'.
21054         * modules/unistr/u32-cpy-alloc-tests: New file.
21055         * tests/unistr/test-u32-cpy-alloc.c: New file.
21056
21057         Tests for module 'unistr/u16-cpy-alloc'.
21058         * modules/unistr/u16-cpy-alloc-tests: New file.
21059         * tests/unistr/test-u16-cpy-alloc.c: New file.
21060
21061         Tests for module 'unistr/u8-cpy-alloc'.
21062         * modules/unistr/u8-cpy-alloc-tests: New file.
21063         * tests/unistr/test-u8-cpy-alloc.c: New file.
21064         * tests/unistr/test-cpy-alloc.h: New file.
21065
21066         Tests for module 'unistr/u32-mbsnlen'.
21067         * modules/unistr/u32-mbsnlen-tests: New file.
21068         * tests/unistr/test-u32-mbsnlen.c: New file.
21069
21070         Tests for module 'unistr/u16-mbsnlen'.
21071         * modules/unistr/u16-mbsnlen-tests: New file.
21072         * tests/unistr/test-u16-mbsnlen.c: New file.
21073
21074         Tests for module 'unistr/u8-mbsnlen'.
21075         * modules/unistr/u8-mbsnlen-tests: New file.
21076         * tests/unistr/test-u8-mbsnlen.c: New file.
21077
21078         Tests for module 'unistr/u32-chr'.
21079         * modules/unistr/u32-chr-tests: New file.
21080         * tests/unistr/test-u32-chr.c: New file.
21081
21082         Tests for module 'unistr/u16-chr'.
21083         * modules/unistr/u16-chr-tests: New file.
21084         * tests/unistr/test-u16-chr.c: New file.
21085
21086         Tests for module 'unistr/u8-chr'.
21087         * modules/unistr/u8-chr-tests: New file.
21088         * tests/unistr/test-u8-chr.c: New file.
21089         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
21090
21091         Tests for module 'unistr/u32-cmp2'.
21092         * modules/unistr/u32-cmp2-tests: New file.
21093         * tests/unistr/test-u32-cmp2.c: New file.
21094
21095         Tests for module 'unistr/u16-cmp2'.
21096         * modules/unistr/u16-cmp2-tests: New file.
21097         * tests/unistr/test-u16-cmp2.c: New file.
21098
21099         Tests for module 'unistr/u8-cmp2'.
21100         * modules/unistr/u8-cmp2-tests: New file.
21101         * tests/unistr/test-u8-cmp2.c: New file.
21102         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
21103
21104         Tests for module 'unistr/u32-cmp'.
21105         * modules/unistr/u32-cmp-tests: New file.
21106         * tests/unistr/test-u32-cmp.c: New file.
21107
21108         Tests for module 'unistr/u16-cmp'.
21109         * modules/unistr/u16-cmp-tests: New file.
21110         * tests/unistr/test-u16-cmp.c: New file.
21111
21112         Tests for module 'unistr/u8-cmp'.
21113         * modules/unistr/u8-cmp-tests: New file.
21114         * tests/unistr/test-u8-cmp.c: New file.
21115         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
21116
21117         Tests for module 'unistr/u32-set'.
21118         * modules/unistr/u32-set-tests: New file.
21119         * tests/unistr/test-u32-set.c: New file.
21120
21121         Tests for module 'unistr/u16-set'.
21122         * modules/unistr/u16-set-tests: New file.
21123         * tests/unistr/test-u16-set.c: New file.
21124
21125         Tests for module 'unistr/u8-set'.
21126         * modules/unistr/u8-set-tests: New file.
21127         * tests/unistr/test-u8-set.c: New file.
21128         * tests/unistr/test-set.h: New file.
21129
21130         Tests for module 'unistr/u32-move'.
21131         * modules/unistr/u32-move-tests: New file.
21132         * tests/unistr/test-u32-move.c: New file.
21133
21134         Tests for module 'unistr/u16-move'.
21135         * modules/unistr/u16-move-tests: New file.
21136         * tests/unistr/test-u16-move.c: New file.
21137
21138         Tests for module 'unistr/u8-move'.
21139         * modules/unistr/u8-move-tests: New file.
21140         * tests/unistr/test-u8-move.c: New file.
21141         * tests/unistr/test-move.h: New file.
21142
21143         Tests for module 'unistr/u32-cpy'.
21144         * modules/unistr/u32-cpy-tests: New file.
21145         * tests/unistr/test-u32-cpy.c: New file.
21146
21147         Tests for module 'unistr/u16-cpy'.
21148         * modules/unistr/u16-cpy-tests: New file.
21149         * tests/unistr/test-u16-cpy.c: New file.
21150
21151         Tests for module 'unistr/u8-cpy'.
21152         * modules/unistr/u8-cpy-tests: New file.
21153         * tests/unistr/test-u8-cpy.c: New file.
21154         * tests/unistr/test-cpy.h: New file.
21155
21156 2010-01-09  Bruno Haible  <bruno@clisp.org>
21157
21158         Tests for module 'unistr/u32-uctomb'.
21159         * modules/unistr/u32-uctomb-tests: New file.
21160         * tests/unistr/test-u32-uctomb.c: New file.
21161
21162         Tests for module 'unistr/u16-uctomb'.
21163         * modules/unistr/u16-uctomb-tests: New file.
21164         * tests/unistr/test-u16-uctomb.c: New file.
21165
21166         Tests for module 'unistr/u8-uctomb'.
21167         * modules/unistr/u8-uctomb-tests: New file.
21168         * tests/unistr/test-u8-uctomb.c: New file.
21169
21170         Tests for module 'unistr/u32-mbtoucr'.
21171         * modules/unistr/u32-mbtoucr-tests: New file.
21172         * tests/unistr/test-u32-mbtoucr.c: New file.
21173
21174         Tests for module 'unistr/u16-mbtoucr'.
21175         * modules/unistr/u16-mbtoucr-tests: New file.
21176         * tests/unistr/test-u16-mbtoucr.c: New file.
21177
21178         Tests for module 'unistr/u8-mbtoucr'.
21179         * modules/unistr/u8-mbtoucr-tests: New file.
21180         * tests/unistr/test-u8-mbtoucr.c: New file.
21181
21182         Tests for module 'unistr/u32-mbtouc'.
21183         * modules/unistr/u32-mbtouc-tests: New file.
21184         * tests/unistr/test-u32-mbtouc.c: New file.
21185
21186         Tests for module 'unistr/u16-mbtouc'.
21187         * modules/unistr/u16-mbtouc-tests: New file.
21188         * tests/unistr/test-u16-mbtouc.c: New file.
21189
21190         Tests for module 'unistr/u8-mbtouc'.
21191         * modules/unistr/u8-mbtouc-tests: New file.
21192         * tests/unistr/test-u8-mbtouc.c: New file.
21193
21194         Tests for module 'unistr/u32-mbtouc-unsafe'.
21195         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
21196         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
21197         * tests/unistr/test-u32-mbtouc.h: New file.
21198
21199         Tests for module 'unistr/u16-mbtouc-unsafe'.
21200         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
21201         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
21202         * tests/unistr/test-u16-mbtouc.h: New file.
21203
21204         Tests for module 'unistr/u8-mbtouc-unsafe'.
21205         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
21206         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
21207         * tests/unistr/test-u8-mbtouc.h: New file.
21208
21209         Tests for module 'unistr/u32-mblen'.
21210         * modules/unistr/u32-mblen-tests: New file.
21211         * tests/unistr/test-u32-mblen.c: New file.
21212
21213         Tests for module 'unistr/u16-mblen'.
21214         * modules/unistr/u16-mblen-tests: New file.
21215         * tests/unistr/test-u16-mblen.c: New file.
21216
21217         Tests for module 'unistr/u8-mblen'.
21218         * modules/unistr/u8-mblen-tests: New file.
21219         * tests/unistr/test-u8-mblen.c: New file.
21220
21221         Tests for module 'unistr/u32-to-u16'.
21222         * modules/unistr/u32-to-u16-tests: New file.
21223         * tests/unistr/test-u32-to-u16.c: New file.
21224
21225         Tests for module 'unistr/u32-to-u8'.
21226         * modules/unistr/u32-to-u8-tests: New file.
21227         * tests/unistr/test-u32-to-u8.c: New file.
21228
21229         Tests for module 'unistr/u16-to-u32'.
21230         * modules/unistr/u16-to-u32-tests: New file.
21231         * tests/unistr/test-u16-to-u32.c: New file.
21232
21233         Tests for module 'unistr/u16-to-u8'.
21234         * modules/unistr/u16-to-u8-tests: New file.
21235         * tests/unistr/test-u16-to-u8.c: New file.
21236
21237         Tests for module 'unistr/u8-to-u32'.
21238         * modules/unistr/u8-to-u32-tests: New file.
21239         * tests/unistr/test-u8-to-u32.c: New file.
21240
21241         Tests for module 'unistr/u8-to-u16'.
21242         * modules/unistr/u8-to-u16-tests: New file.
21243         * tests/unistr/test-u8-to-u16.c: New file.
21244
21245         Tests for module 'unistr/u32-check'.
21246         * modules/unistr/u32-check-tests: New file.
21247         * tests/unistr/test-u32-check.c: New file.
21248
21249         Tests for module 'unistr/u16-check'.
21250         * modules/unistr/u16-check-tests: New file.
21251         * tests/unistr/test-u16-check.c: New file.
21252
21253         Tests for module 'unistr/u8-check'.
21254         * modules/unistr/u8-check-tests: New file.
21255         * tests/unistr/test-u8-check.c: New file.
21256
21257         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
21258         (category_equals): New function.
21259         (main): Add more tests.
21260         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
21261
21262         * tests/unictype/test-bidi_byname.c (main): Add more tests.
21263
21264 2010-01-10  Bruno Haible  <bruno@clisp.org>
21265
21266         unistr/u*-strcoll: Try harder to distinguish different strings.
21267         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
21268         compare s1 and s2 to see if they are different.
21269
21270 2010-01-10  Bruno Haible  <bruno@clisp.org>
21271
21272         unistr/u*-stpncpy: Fix the return value.
21273         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
21274         description of the return value consistent with stpncpy in glibc.
21275         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
21276         written non-NUL unit.
21277
21278 2010-01-10  Bruno Haible  <bruno@clisp.org>
21279
21280         unistr/u*-next: Add missing dependencies.
21281         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
21282         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
21283         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
21284
21285 2010-01-10  Bruno Haible  <bruno@clisp.org>
21286
21287         unistr/u8-mbsnlen: Fix return value for incomplete character.
21288         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
21289         u8_mblen.
21290         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
21291         Remove unistr/u8-mblen.
21292         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
21293         u16_mblen.
21294         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
21295         Remove unistr/u16-mblen.
21296
21297 2010-01-10  Bruno Haible  <bruno@clisp.org>
21298
21299         wchar: Fix compilation error when <wchar.h> is used from coreutils.
21300         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
21301         Reported by Brian Gough <bjg@gnu.org> and
21302         Chris Clayton <chris2553@googlemail.com> via
21303         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
21304
21305 2010-01-09  Bruno Haible  <bruno@clisp.org>
21306
21307         unistr/u16-to-u32: Reject invalid input.
21308         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
21309         u16_mbtouc.
21310         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
21311         Remove unistr/u16-mbtouc.
21312
21313         unistr/u16-to-u8: Reject invalid input.
21314         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
21315         u16_mbtouc.
21316         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
21317         Remove unistr/u16-mbtouc.
21318
21319         unistr/u8-to-u32: Reject invalid input.
21320         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
21321         u8_mbtouc.
21322         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
21323         Remove unistr/u8-mbtouc.
21324
21325         unistr/u8-to-u16: Reject invalid input.
21326         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
21327         u8_mbtouc.
21328         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
21329         Remove unistr/u8-mbtouc.
21330
21331 2010-01-09  Bruno Haible  <bruno@clisp.org>
21332
21333         Tests for module 'getlogin'.
21334         * modules/getlogin-tests: New file.
21335         * tests/test-getlogin.c: New file.
21336
21337         New module 'getlogin'.
21338         * lib/unistd.in.h (getlogin): New declaration.
21339         * lib/getlogin.c: New file.
21340         * m4/getlogin.m4: New file.
21341         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
21342         HAVE_GETLOGIN.
21343         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
21344         HAVE_GETLOGIN.
21345         * modules/getlogin: New file.
21346         * doc/posix-functions/getlogin.texi: Mention the new module.
21347         Reported by John W. Eaton <jwe@gnu.org>.
21348
21349 2010-01-09  Bruno Haible  <bruno@clisp.org>
21350
21351         getlogin_r: Support for native Windows.
21352         * lib/getlogin_r.c: Include <windows.h>
21353         (getlogin_r): Implement for native Windows.
21354         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
21355         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
21356         via John W. Eaton <jwe@gnu.org>.
21357
21358 2010-01-09  Bruno Haible  <bruno@clisp.org>
21359
21360         getlogin_r: Small fixes.
21361         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
21362         succeeds.
21363         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
21364         before testing whether getlogin_r is declared. No need to set
21365         HAVE_DECL_GETLOGIN_R to 1.
21366         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
21367
21368 2010-01-09  Bruno Haible  <bruno@clisp.org>
21369
21370         * lib/unistd.in.h (getlogin_r): Add comment.
21371
21372 2010-01-09  Bruno Haible  <bruno@clisp.org>
21373
21374         Tests for module 'getlogin_r'.
21375         * modules/getlogin_r-tests: New file.
21376         * tests/test-getlogin_r.c: New file.
21377
21378 2010-01-09  Jim Meyering  <meyering@redhat.com>
21379
21380         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
21381         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
21382         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
21383
21384 2010-01-08  Simon Josefsson  <simon@josefsson.org>
21385
21386         * lib/dup2.c (rpl_dup2): Improve comment.
21387
21388 2010-01-08  Eric Blake  <ebb9@byu.net>
21389
21390         maint.mk: allow packages to add makefile @@ exceptions
21391         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
21392         (sc_makefile_check): Rename...
21393         (sc_makefile_at_at_check): ...to this, and use hook.
21394
21395         dup2: work around mingw bug
21396         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
21397         Reported by Simon Josefsson.
21398
21399 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
21400
21401         glob: Fix C++ compilation.
21402         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
21403         C++.
21404
21405 2010-01-07  Bruno Haible  <bruno@clisp.org>
21406
21407         Fix indentation of wctype.in.h, broken since 2007-01-06.
21408         * lib/wctype.in.h: Fix indentation of preprocessor directives.
21409
21410 2010-01-07  Bruno Haible  <bruno@clisp.org>
21411
21412         mbslen: Avoid collision with system function.
21413         * lib/string.in.h [MirBSD]: Include <wchar.h>.
21414         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
21415         * m4/mbslen.m4: New file.
21416         * modules/mbslen (Files): Add it.
21417         (configure.ac): Invoke gl_MBSLEN.
21418         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
21419         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
21420         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
21421         via Ian Beckwith <ianb@erislabs.net>.
21422
21423 2010-01-07  Bruno Haible  <bruno@clisp.org>
21424
21425         dirent: Document the last fix.
21426         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
21427
21428 2010-01-07  Bruno Haible  <bruno@clisp.org>
21429
21430         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
21431         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
21432         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
21433         va_list are defined.
21434         * doc/posix-headers/stdio.texi: Document the bug of missing types.
21435         Reported by Eric Blake.
21436
21437 2010-01-07  Bruno Haible  <bruno@clisp.org>
21438
21439         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
21440         * modules/xlist (Depends-on): Add 'list',
21441         * modules/xoset (Depends-on): Add 'oset'.
21442         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21443
21444 2010-01-07  Bruno Haible  <bruno@clisp.org>
21445
21446         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
21447         * doc/posix-functions/strncasecmp.texi: Likewise.
21448
21449 2010-01-07  Bruno Haible  <bruno@clisp.org>
21450
21451         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
21452
21453 2010-01-07  John W. Eaton  <jwe@octave.org>
21454
21455         wctype: allow C++ use
21456         * lib/wctype.in.h: Add extern "C" block for C++.
21457
21458 2010-01-06  Eric Blake  <ebb9@byu.net>
21459
21460         maint.mk: detect incorrect GFDL usage
21461         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
21462
21463 2010-01-06  Jim Meyering  <meyering@redhat.com>
21464         and Eric Blake  <ebb9@byu.net>
21465
21466         maint.mk: ignore multi-line copyright in NEWS
21467         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
21468
21469 2010-01-06  Eric Blake  <ebb9@byu.net>
21470
21471         select: add missing dependency
21472         * modules/select-tests (Depends-on): Move sockets dependency...
21473         * modules/select (Depends-on): ...here.
21474         Reported by Ian Beckwith.
21475
21476         doc: regenerate INSTALL
21477         * doc/INSTALL: Reflect recent autoconf update.
21478         * doc/INSTALL.ISO: Likewise.
21479         * doc/INSTALL.UTF-8: Likewise.
21480
21481         pread: fix compilation on glibc
21482         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
21483         Reported by Ralf Wildenhues.
21484
21485         dirent: fix test failure
21486         * lib/dirent.in.h (includes): Guarantee ino_t.
21487         Reported by Ralf Wildenhues.
21488
21489 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
21490
21491         linkat, renameat: avoid bad free
21492         * lib/at-func2.c (at_func2): Fix typo.
21493         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
21494
21495 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21496
21497         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
21498         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
21499         to avoid failure of symlink test later.
21500
21501 2010-01-06  Eric Blake  <ebb9@byu.net>
21502
21503         stdio, unistd: guarantee ssize_t
21504         * lib/unistd.in.h (includes): Ensure that types required by POSIX
21505         2008 are exposed when needed.
21506         * lib/stdio.in.h (includes): Likewise.
21507         Reported by Ralf Wildenhues.
21508
21509 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
21510
21511         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
21512         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
21513         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
21514
21515 2010-01-06  Jim Meyering  <meyering@redhat.com>
21516
21517         readtokens: this module *does* require xalloc.h
21518         It uses only functions that were omitted by the old syntax-check rule.
21519         * lib/readtokens.c: Include "xalloc.h" once again.
21520         * modules/readtokens (Depends-on): Add xalloc.
21521         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
21522
21523 2010-01-05  Eric Blake  <ebb9@byu.net>
21524
21525         maint: support 'make announcement' from a VPATH build
21526         * top/maint.mk (announcement): Look for correct NEWS file.
21527
21528 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
21529
21530         utimens (fdutimens): ignore a negative FD, per contract
21531         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
21532         when we have a valid file descriptor.  Otherwise, using a brand
21533         new glibc (with just-patched futimens that now fails with EBADF)
21534         would cause this function to fail with ENOSYS.
21535         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
21536         See also http://bugzilla.redhat.com/552320.
21537
21538 2010-01-05  Eric Blake  <ebb9@byu.net>
21539
21540         strcase: document what it provides
21541         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
21542         gnulib module.
21543         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
21544         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
21545
21546 2010-01-05  Jim Meyering  <meyering@redhat.com>
21547
21548         maint: remove useless inclusions of "xalloc.h"
21549         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
21550         * lib/readtokens.c: Likewise.
21551         * lib/same.c: Likewise.
21552         * modules/getloadavg (Depends-on): Remove xalloc.
21553         * modules/readtokens: Likewise.
21554         * modules/same: Likewise.
21555
21556         maint.mk: include 4 more function names in alloca.h-checking regexp
21557         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
21558         regexp.  Before, we would give a false-positive (saying alloca.h
21559         is included unnecessarily) when the only uses involved omitted symbols.
21560
21561         xalloc.h: use consistent formatting
21562         * lib/xalloc.h: Move declarations to start in the first column.
21563
21564 2010-01-05  Eric Blake  <ebb9@byu.net>
21565
21566         mkdir: avoid xalloc
21567         * lib/mkdir.c (includes): Drop unused header.
21568         Reported by John W. Eaton.
21569
21570 2010-01-04  Jim Meyering  <meyering@redhat.com>
21571
21572         nl_langinfo: avoid configure-time syntax error
21573         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
21574         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
21575         the empty string.  Don't let that provoke a shell syntax error.
21576
21577         regcomp, regexec, fnmatch: avoid array bounds read error
21578         * lib/regcomp.c (build_equiv_class): From glibc:
21579         Use only the low 24 bits of a findidx return value as an index
21580         into the weights array.  Patch by Ulrich Drepper:
21581         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
21582         * lib/regexec.c (check_node_accept_bytes): Likewise.
21583         * lib/fnmatch_loop.c (FCT): Likewise.
21584
21585         regcomp: skip collseq lookup when there are no rules
21586         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
21587         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
21588
21589         regcomp: recognize ill-formed { } expressions
21590         * lib/regcomp.c (parse_dup_op): From glibc:
21591         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
21592
21593         regcomp: fix typo in comment
21594         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
21595         s/satisfy/satisfies/.
21596
21597         regcomp: sync from glibc: remove dead store
21598         * lib/regcomp.c (duplicate_node_closure): Remove useless
21599         search_duplicated_node call and dead store.
21600
21601         regcomp: sync from glibc; always use nl_langinfo
21602         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
21603         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
21604         * modules/regex (Depends-on): Add nl_langinfo.
21605
21606 2010-01-04  Eric Blake  <ebb9@byu.net>
21607
21608         fdopendir: fix configure test
21609         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
21610
21611 2010-01-01  Bruno Haible  <bruno@clisp.org>
21612
21613         wchar: Remove unused configure check.
21614         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
21615
21616 2010-01-01  Eric Blake  <ebb9@byu.net>
21617
21618         headers: make check of system header explicit
21619         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
21620         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
21621         ourselves.
21622         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
21623         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21624         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
21625         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
21626         internals.
21627         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
21628         missing.
21629         Suggested by Bruno Haible.
21630
21631 2010-01-01  Jim Meyering  <meyering@redhat.com>
21632
21633         ChangeLog: tweak to eliminate unnecessary copyright line
21634         * ChangeLog: Remove a copyright line that was mistakenly updated
21635         by today's update-copyright run.  Reported by Eric Blake.
21636
21637         test-update-copyright: don't let envvar setting cause test failure
21638         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
21639
21640 2010-01-01  Bruno Haible  <bruno@clisp.org>
21641
21642         localename: Avoid gcc warning.
21643         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
21644         function if it is not used.
21645
21646 2010-01-01  Jim Meyering  <meyering@redhat.com>
21647
21648         update nearly all FSF copyright year lists to include 2010
21649         Use the same procedure as for 2009, outlined in
21650         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
21651
21652         version-etc: set COPYRIGHT_YEAR to 2010
21653         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
21654
21655 2009-12-31  Eric Blake  <ebb9@byu.net>
21656
21657         doc: correct availability of cygwin 1.5.x getopt
21658         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
21659         variables.
21660         * doc/posix-functions/opterr.texi (opterr): Likewise.
21661         * doc/posix-functions/optind.texi (optind): Likewise.
21662         * doc/posix-functions/optopt.texi (optopt): Likewise.
21663         * doc/posix-functions/tzname.texi (tzname): Likewise.
21664
21665         openat: update maintainer
21666         * modules/openat (Maintainer): Add myself.
21667
21668         utimens: avoid shadowing warning
21669         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
21670         buffers into one, to avoid shadowing, as well as avoiding a
21671         redundant stat.
21672         Reported by Jim Meyering.
21673
21674         test-dup2: avoid compiler warning
21675         * tests/test-dup2.c (is_inheritable): Only define if used.
21676
21677 2010-01-01  Bruno Haible  <bruno@clisp.org>
21678
21679         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
21680         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
21681         defined, use wctomb instead of wcrtomb.
21682
21683 2010-01-01  Bruno Haible  <bruno@clisp.org>
21684
21685         iconv: Reject native Solaris iconv.
21686         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
21687         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
21688
21689 2009-12-31  Bruno Haible  <bruno@clisp.org>
21690
21691         * tests/test-signal.c (main): Remove test of 'SIG'.
21692
21693 2009-12-31  Bruno Haible  <bruno@clisp.org>
21694
21695         spawn: Fix incomplete fix.
21696         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
21697         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
21698         warnings for GNULIB_POSIXCHECK again.
21699         Reported by Eric Blake.
21700
21701 2009-12-31  Bruno Haible  <bruno@clisp.org>
21702
21703         Avoid namespace pollution on glibc systems.
21704         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
21705         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
21706         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
21707         glibc systems.
21708
21709 2009-12-31  Bruno Haible  <bruno@clisp.org>
21710
21711         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
21712         (gl_REPLACE_WCHAR_H): Turn into a no-op.
21713         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
21714         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
21715         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
21716         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
21717         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
21718
21719 2009-12-31  Bruno Haible  <bruno@clisp.org>
21720
21721         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
21722         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
21723         afterwards.
21724
21725 2009-12-31  Bruno Haible  <bruno@clisp.org>
21726
21727         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
21728         SYS_UTSNAME_H.
21729
21730 2009-12-31  Bruno Haible  <bruno@clisp.org>
21731
21732         spawn: Fix misapplied patch.
21733         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
21734         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
21735         warnings for GNULIB_POSIXCHECK.
21736
21737 2009-12-31  Bruno Haible  <bruno@clisp.org>
21738
21739         times: Update after sys_times changed.
21740         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
21741         * modules/times (Files): Add it.
21742         (configure.ac): Invoke gl_FUNC_TIMES.
21743
21744 2009-12-31  Bruno Haible  <bruno@clisp.org>
21745
21746         Use AC_C_INLINE where necessary.
21747         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
21748         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
21749         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
21750         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
21751         * m4/mbfile.m4 (gl_MBFILE): Likewise.
21752         * m4/mbiter.m4 (gl_MBITER): Likewise.
21753         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
21754         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
21755         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
21756         * modules/u64 (configure.ac): Likewise.
21757
21758 2009-12-31  Bruno Haible  <bruno@clisp.org>
21759
21760         Use AC_C_INLINE instead of module 'inline' where possible.
21761         * modules/inline (Description): Clarify purpose.
21762         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
21763         * modules/count-one-bits (Depends-on): Remove inline.
21764         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
21765         * modules/openat (Depends-on): Remove inline.
21766         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
21767         instead of depending on module 'inline'.
21768         * modules/filevercmp (Depends-on, configure.ac): Likewise.
21769         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
21770         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
21771         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
21772         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
21773         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
21774         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
21775         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
21776         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
21777         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
21778         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
21779         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
21780         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
21781         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
21782         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
21783         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
21784         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
21785         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
21786         Likewise.
21787         * modules/unictype/property-ascii-hex-digit (Depends-on,
21788         configure.ac): Likewise.
21789         * modules/unictype/property-bidi-arabic-digit (Depends-on,
21790         configure.ac): Likewise.
21791         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
21792         configure.ac): Likewise.
21793         * modules/unictype/property-bidi-block-separator (Depends-on,
21794         configure.ac): Likewise.
21795         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
21796         configure.ac): Likewise.
21797         * modules/unictype/property-bidi-common-separator (Depends-on,
21798         configure.ac): Likewise.
21799         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
21800         Likewise.
21801         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
21802         configure.ac): Likewise.
21803         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
21804         configure.ac): Likewise.
21805         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
21806         configure.ac): Likewise.
21807         * modules/unictype/property-bidi-european-digit (Depends-on,
21808         configure.ac): Likewise.
21809         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
21810         configure.ac): Likewise.
21811         * modules/unictype/property-bidi-left-to-right (Depends-on,
21812         configure.ac): Likewise.
21813         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
21814         configure.ac): Likewise.
21815         * modules/unictype/property-bidi-other-neutral (Depends-on,
21816         configure.ac): Likewise.
21817         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
21818         Likewise.
21819         * modules/unictype/property-bidi-segment-separator (Depends-on,
21820         configure.ac): Likewise.
21821         * modules/unictype/property-bidi-whitespace (Depends-on,
21822         configure.ac): Likewise.
21823         * modules/unictype/property-combining (Depends-on, configure.ac):
21824         Likewise.
21825         * modules/unictype/property-composite (Depends-on, configure.ac):
21826         Likewise.
21827         * modules/unictype/property-currency-symbol (Depends-on,
21828         configure.ac): Likewise.
21829         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
21830         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
21831         Likewise.
21832         * modules/unictype/property-default-ignorable-code-point (Depends-on,
21833         configure.ac): Likewise.
21834         * modules/unictype/property-deprecated (Depends-on, configure.ac):
21835         Likewise.
21836         * modules/unictype/property-diacritic (Depends-on, configure.ac):
21837         Likewise.
21838         * modules/unictype/property-extender (Depends-on, configure.ac):
21839         Likewise.
21840         * modules/unictype/property-format-control (Depends-on, configure.ac):
21841         Likewise.
21842         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
21843         Likewise.
21844         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
21845         Likewise.
21846         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
21847         Likewise.
21848         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
21849         Likewise.
21850         * modules/unictype/property-hyphen (Depends-on, configure.ac):
21851         Likewise.
21852         * modules/unictype/property-id-continue (Depends-on, configure.ac):
21853         Likewise.
21854         * modules/unictype/property-id-start (Depends-on, configure.ac):
21855         Likewise.
21856         * modules/unictype/property-ideographic (Depends-on, configure.ac):
21857         Likewise.
21858         * modules/unictype/property-ids-binary-operator (Depends-on,
21859         configure.ac): Likewise.
21860         * modules/unictype/property-ids-trinary-operator (Depends-on,
21861         configure.ac): Likewise.
21862         * modules/unictype/property-ignorable-control (Depends-on,
21863         configure.ac): Likewise.
21864         * modules/unictype/property-iso-control (Depends-on, configure.ac):
21865         Likewise.
21866         * modules/unictype/property-join-control (Depends-on, configure.ac):
21867         Likewise.
21868         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
21869         Likewise.
21870         * modules/unictype/property-line-separator (Depends-on, configure.ac):
21871         Likewise.
21872         * modules/unictype/property-logical-order-exception (Depends-on,
21873         configure.ac): Likewise.
21874         * modules/unictype/property-lowercase (Depends-on, configure.ac):
21875         Likewise.
21876         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
21877         * modules/unictype/property-non-break (Depends-on, configure.ac):
21878         Likewise.
21879         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
21880         Likewise.
21881         * modules/unictype/property-numeric (Depends-on, configure.ac):
21882         Likewise.
21883         * modules/unictype/property-other-alphabetic (Depends-on,
21884         configure.ac): Likewise.
21885         * modules/unictype/property-other-default-ignorable-code-point
21886         (Depends-on, configure.ac): Likewise.
21887         * modules/unictype/property-other-grapheme-extend (Depends-on,
21888         configure.ac): Likewise.
21889         * modules/unictype/property-other-id-continue (Depends-on,
21890         configure.ac): Likewise.
21891         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
21892         Likewise.
21893         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
21894         Likewise.
21895         * modules/unictype/property-other-math (Depends-on, configure.ac):
21896         Likewise.
21897         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
21898         Likewise.
21899         * modules/unictype/property-paired-punctuation (Depends-on,
21900         configure.ac): Likewise.
21901         * modules/unictype/property-paragraph-separator (Depends-on,
21902         configure.ac): Likewise.
21903         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
21904         Likewise.
21905         * modules/unictype/property-pattern-white-space (Depends-on,
21906         configure.ac): Likewise.
21907         * modules/unictype/property-private-use (Depends-on, configure.ac):
21908         Likewise.
21909         * modules/unictype/property-punctuation (Depends-on, configure.ac):
21910         Likewise.
21911         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
21912         Likewise.
21913         * modules/unictype/property-radical (Depends-on, configure.ac):
21914         Likewise.
21915         * modules/unictype/property-sentence-terminal (Depends-on,
21916         configure.ac): Likewise.
21917         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
21918         Likewise.
21919         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
21920         * modules/unictype/property-terminal-punctuation (Depends-on,
21921         configure.ac): Likewise.
21922         * modules/unictype/property-titlecase (Depends-on, configure.ac):
21923         Likewise.
21924         * modules/unictype/property-unassigned-code-value (Depends-on,
21925         configure.ac): Likewise.
21926         * modules/unictype/property-unified-ideograph (Depends-on,
21927         configure.ac): Likewise.
21928         * modules/unictype/property-uppercase (Depends-on, configure.ac):
21929         Likewise.
21930         * modules/unictype/property-variation-selector (Depends-on,
21931         configure.ac): Likewise.
21932         * modules/unictype/property-white-space (Depends-on, configure.ac):
21933         Likewise.
21934         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
21935         Likewise.
21936         * modules/unictype/property-xid-start (Depends-on, configure.ac):
21937         Likewise.
21938         * modules/unictype/property-zero-width (Depends-on, configure.ac):
21939         Likewise.
21940         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
21941         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
21942         Likewise.
21943
21944 2009-12-31  Bruno Haible  <bruno@clisp.org>
21945
21946         Remove unnecessary AC_C_INLINE invocation.
21947         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
21948         since 2009-08-21.
21949
21950 2009-12-31  Jim Meyering  <meyering@redhat.com>
21951
21952         maint.mk: don't require explicit gpg_key_ID in cfg.mk
21953         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
21954         With this change, we can all remove the gpg_key_ID = ... definition
21955         from our respective cfg.mk files.
21956
21957         maint.mk: create announcement template in ~/, not in /tmp
21958         * top/maint.mk (emit_upload_commands): Adjust.
21959         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
21960         Remove temporary file, .ci-msg.
21961
21962 2009-12-31  Eric Blake  <ebb9@byu.net>
21963
21964         link-warning: always build headers with link warnings
21965         * modules/arpa_inet (Makefile.am): Always build replacement
21966         header.
21967         * modules/ctype (Makefile.am): Likewise.
21968         * modules/dirent (Makefile.am): Likewise.
21969         * modules/inttypes (Makefile.am): Likewise.
21970         * modules/langinfo (Makefile.am): Likewise.
21971         * modules/locale (Makefile.am): Likewise.
21972         * modules/spawn (Makefile.am): Likewise.
21973         * modules/sys_file (Makefile.am): Likewise.
21974         * modules/sys_ioctl (Makefile.am): Likewise.
21975         * modules/sys_select (Makefile.am): Likewise.
21976         * modules/sys_socket (Makefile.am): Likewise.
21977         * modules/sys_times (Makefile.am): Likewise.
21978         * modules/sys_utsname (Makefile.am): Likewise.
21979         * modules/sys_wait (Makefile.am): Likewise.
21980         * modules/wchar (Makefile.am): Likewise.
21981         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
21982         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
21983         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
21984         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
21985         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
21986         Likewise.
21987         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
21988         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
21989         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
21990         Likewise.
21991         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
21992         Likewise.
21993         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
21994         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
21995         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
21996         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21997         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
21998         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
21999         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
22000         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
22001         (gl_WCHAR_H_DEFAULTS): Likewise.
22002
22003 2009-12-31  Eric Blake  <ebb9@byu.net>
22004
22005         signal, spawn: use link warnings
22006         * lib/signal.in.h (sigset_t): Make unconditional.
22007         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
22008         (sigpending, sigprocmask, sigaction): Add link warnings.
22009         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
22010         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
22011         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
22012         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
22013         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
22014         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
22015         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
22016         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
22017         (posix_spawn_file_actions_destroy)
22018         (posix_spawn_file_actions_addopen)
22019         (posix_spawn_file_actions_addclose)
22020         (posix_spawn_file_actions_adddup2): Likewise.
22021         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
22022         * tests/test-signal.c (main): Enhance test.
22023
22024         spawn: improve wrapper support
22025         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
22026         (gl_SPAWN_H_DEFAULTS): New defaults.
22027         * modules/spawn (Makefile.am): Substitute them.
22028         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
22029         Only declare if missing or broken.
22030
22031         sys_times, sys_utsname: use include_next
22032         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
22033         header.
22034         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
22035         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
22036         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
22037         * modules/sys_times (Depends-on): Add include_next.
22038         (Makefile.am): Substitute additional values.
22039         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
22040         * lib/sys_times.in.h (includes): Include native header, if
22041         available.
22042         * lib/sys_utsname.in.h (includes): Likewise.
22043         * tests/test-sys_times.c (main): Enhance test.
22044
22045         fdutimensat: revert prior patch
22046         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
22047         utimens.h.
22048         Reported by Bruno Haible.
22049
22050 2009-12-30  Eric Blake  <ebb9@byu.net>
22051
22052         sys_wait: drop link-warning dependency
22053         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
22054         link-warning efforts.
22055         * lib/sys_wait.in.h: Likewise.
22056
22057         fdutimensat: remove bogus dependency
22058         * modules/fdutimensat (Depends-on): Drop inline.
22059
22060         unistd: fix typo
22061         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
22062
22063 2009-12-30  Bruno Haible  <bruno@clisp.org>
22064
22065         Fix compilation error with Solaris cc.
22066         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
22067         * lib/unicase/u16-is-invariant.c: Likewise.
22068         * lib/unicase/u32-is-invariant.c: Likewise.
22069         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
22070
22071 2009-12-30  Bruno Haible  <bruno@clisp.org>
22072
22073         Fix test crash.
22074         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
22075         locales.
22076         Reported by Simon Josefsson <simon@josefsson.org>.
22077
22078 2009-12-30  Bruno Haible  <bruno@clisp.org>
22079
22080         Fix compilation error on most platforms.
22081         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
22082         Reported by Simon Josefsson <simon@josefsson.org>
22083         and Nelson H. F. Beebe <beebe@math.utah.edu>.
22084
22085 2009-12-30  Eric Blake  <ebb9@byu.net>
22086
22087         futimens, utimensat: work around ntfs-3g bug
22088         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
22089         a ctime bug is present, and expand workaround to cover ntfs-3g.
22090         * lib/utimens.c (fdutimens, lutimens): Likewise.
22091         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
22092         (validate_timespec): Adjust return value.
22093         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
22094         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
22095         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
22096
22097 2009-12-29  Eric Blake  <ebb9@byu.net>
22098
22099         link-warning: make usage consistent
22100         * modules/ctype (Depends-on): Add link-warning.
22101         (Makefile.am): Update rules accordingly.
22102         * modules/langinfo (Depends-on, Makefile.am): Likewise.
22103         * modules/locale (Depends-on, Makefile.am): Likewise.
22104         * modules/sys_file (Makefile.am): Likewise.
22105         * modules/getopt-posix (Makefile.am): Delete unused link warning
22106         efforts.
22107         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
22108         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
22109         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
22110         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
22111
22112         stdio: remove unused variables
22113         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
22114         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
22115         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
22116
22117         tests: test more substitute headers
22118         * modules/ctype-tests: New file.
22119         * modules/dirent-tests: Likewise.
22120         * modules/spawn-tests: Likewise.
22121         * modules/sys_file-tests: Likewise.
22122         * modules/sys_ioctl-tests: Likewise.
22123         * modules/sys_wait-tests: Likewise.
22124         * tests/test-ctype.c: Likewise.
22125         * tests/test-dirent.c: Likewise.
22126         * tests/test-spawn.c: Likewise.
22127         * tests/test-sys_file.c: Likewise.
22128         * tests/test-sys_ioctl.c: Likewise.
22129         * tests/test-sys_wait.c: Likewise.
22130         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
22131         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
22132         whether or not flock is in use.
22133
22134         tests: remove License section from module
22135         * modules/arpa_inet-tests: Remove unneeded section.
22136         * modules/byteswap-tests: Likewise.
22137         * modules/ceilf-tests: Likewise.
22138         * modules/ceill-tests: Likewise.
22139         * modules/crypto/des-tests: Likewise.
22140         * modules/crypto/gc-arcfour-tests: Likewise.
22141         * modules/crypto/gc-arctwo-tests: Likewise.
22142         * modules/crypto/gc-des-tests: Likewise.
22143         * modules/crypto/gc-hmac-md5-tests: Likewise.
22144         * modules/crypto/gc-hmac-sha1-tests: Likewise.
22145         * modules/crypto/gc-md2-tests: Likewise.
22146         * modules/crypto/gc-md4-tests: Likewise.
22147         * modules/crypto/gc-md5-tests: Likewise.
22148         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
22149         * modules/crypto/gc-rijndael-tests: Likewise.
22150         * modules/crypto/gc-sha1-tests: Likewise.
22151         * modules/crypto/gc-tests: Likewise.
22152         * modules/crypto/md2-tests: Likewise.
22153         * modules/crypto/md4-tests: Likewise.
22154         * modules/fcntl-h-tests: Likewise.
22155         * modules/floorf-tests: Likewise.
22156         * modules/floorl-tests: Likewise.
22157         * modules/frexp-nolibm-tests: Likewise.
22158         * modules/frexp-tests: Likewise.
22159         * modules/frexpl-nolibm-tests: Likewise.
22160         * modules/frexpl-tests: Likewise.
22161         * modules/getaddrinfo-tests: Likewise.
22162         * modules/inttypes-tests: Likewise.
22163         * modules/isfinite-tests: Likewise.
22164         * modules/isinf-tests: Likewise.
22165         * modules/ldexpl-tests: Likewise.
22166         * modules/locale-tests: Likewise.
22167         * modules/math-tests: Likewise.
22168         * modules/netdb-tests: Likewise.
22169         * modules/netinet_in-tests: Likewise.
22170         * modules/printf-frexp-tests: Likewise.
22171         * modules/printf-frexpl-tests: Likewise.
22172         * modules/priv-set-tests: Likewise.
22173         * modules/random_r-tests: Likewise.
22174         * modules/round-tests: Likewise.
22175         * modules/roundf-tests: Likewise.
22176         * modules/roundl-tests: Likewise.
22177         * modules/search-tests: Likewise.
22178         * modules/select-tests: Likewise.
22179         * modules/signal-tests: Likewise.
22180         * modules/stdbool-tests: Likewise.
22181         * modules/stddef-tests: Likewise.
22182         * modules/stdint-tests: Likewise.
22183         * modules/stdio-tests: Likewise.
22184         * modules/stdlib-tests: Likewise.
22185         * modules/string-tests: Likewise.
22186         * modules/strings-tests: Likewise.
22187         * modules/sys_select-tests: Likewise.
22188         * modules/sys_socket-tests: Likewise.
22189         * modules/sys_stat-tests: Likewise.
22190         * modules/sys_time-tests: Likewise.
22191         * modules/sys_utsname-tests: Likewise.
22192         * modules/sysexits-tests: Likewise.
22193         * modules/time-tests: Likewise.
22194         * modules/trunc-tests: Likewise.
22195         * modules/truncf-tests: Likewise.
22196         * modules/truncl-tests: Likewise.
22197         * modules/tsearch-tests: Likewise.
22198         * modules/unistd-tests: Likewise.
22199         * modules/wchar-tests: Likewise.
22200         * modules/wctype-tests: Likewise.
22201
22202         tests: fix license on several tests
22203         * tests/test-des.c: Update to GPLv3+.
22204         * tests/test-flock.c: Likewise.
22205         * tests/test-fsync.c: Likewise.
22206         * tests/test-futimens.h: Likewise.
22207         * tests/test-gc-arcfour.c: Likewise.
22208         * tests/test-gc-arctwo.c: Likewise.
22209         * tests/test-gc-des.c: Likewise.
22210         * tests/test-gc-hmac-md5.c: Likewise.
22211         * tests/test-gc-hmac-sha1.c: Likewise.
22212         * tests/test-gc-md2.c: Likewise.
22213         * tests/test-gc-md4.c: Likewise.
22214         * tests/test-gc-md5.c: Likewise.
22215         * tests/test-gc-pbkdf2-sha1.c: Likewise.
22216         * tests/test-gc-rijndael.c: Likewise.
22217         * tests/test-gc-sha1.c: Likewise.
22218         * tests/test-gc.c: Likewise.
22219         * tests/test-getcwd.c: Likewise.
22220         * tests/test-link.c: Likewise.
22221         * tests/test-link.h: Likewise.
22222         * tests/test-lutimens.h: Likewise.
22223         * tests/test-md2.c: Likewise.
22224         * tests/test-md4.c: Likewise.
22225         * tests/test-mkdir.h: Likewise.
22226         * tests/test-rename.c: Likewise.
22227         * tests/test-rename.h: Likewise.
22228         * tests/test-safe-alloc.c: Likewise.
22229         * tests/test-utimens-common.h: Likewise.
22230         * tests/test-utimens.h: Likewise.
22231
22232         maint: sync license texts
22233         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
22234         * doc/gpl-3.0.texi: Revert copyright year update.
22235         * doc/lgpl-3.0.texi: Likewise.
22236
22237 2009-12-29  Jim Meyering  <meyering@redhat.com>
22238
22239         update nearly all FSF copyright year lists to include 2009
22240         The files named by the following are exempted:
22241             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
22242               test -f "$dst" && { echo "$dst"; continue; }
22243               test -d "$dst" || continue
22244               echo "$dst"/$(basename "$src")
22245             done > exempt
22246             git ls-files tests/unictype >> exempt
22247         In the remaining files, convert to all-interval notation if
22248         - there is already at least one year interval like 2000-2003
22249         - the file is maintained by me
22250         - the file is in lib/uni*/, where that style already prevails
22251         Otherwise, use update-copyright's default.
22252
22253 2009-12-29  Simon Josefsson  <simon@josefsson.org>
22254         and Eric Blake  <ebb9@byu.net>
22255
22256         tests: don't require debug system() to pass
22257         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
22258         * tests/test-rmdir.h (test_rmdir_func): Likewise.
22259         * tests/test-unlink.h (test_unlink_func): Likewise.
22260         * tests/test-fstatat.c (main): ...into callers.
22261         * tests/test-lstat.c (main): Likewise.
22262         * tests/test-rmdir.c (main): Likewise.
22263         * tests/test-unlink.c (main): Likewise.
22264         * tests/test-unlinkat.c (main): Likewise.
22265         * tests/test-areadlink-with-size.c (main): Don't require a
22266         debug-only system call to pass, aiding cross-testing to mingw.
22267         * tests/test-areadlink.c (main): Likewise.
22268         * tests/test-areadlinkat-with-size.c (main): Likewise.
22269         * tests/test-areadlinkat.c (main): Likewise.
22270         * tests/test-canonicalize-lgpl.c (main): Likewise.
22271         * tests/test-canonicalize.c (main): Likewise.
22272         * tests/test-chown.c (main): Likewise.
22273         * tests/test-fchownat.c (main): Likewise.
22274         * tests/test-lchown.c (main): Likewise.
22275         * tests/test-fdutimensat.c (main): Likewise.
22276         * tests/test-futimens.c (main): Likewise.
22277         * tests/test-link.c (main): Likewise.
22278         * tests/test-linkat.c (main): Likewise.
22279         * tests/test-mkdir.c (main): Likewise.
22280         * tests/test-mkdirat.c (main): Likewise.
22281         * tests/test-mkfifo.c (main): Likewise.
22282         * tests/test-mkfifoat.c (main): Likewise.
22283         * tests/test-mknod.c (main): Likewise.
22284         * tests/test-readlink.c (main): Likewise.
22285         * tests/test-remove.c (main): Likewise.
22286         * tests/test-rename.c (main): Likewise.
22287         * tests/test-renameat.c (main): Likewise.
22288         * tests/test-symlink.c (main): Likewise.
22289         * tests/test-symlinkat.c (main): Likewise.
22290         * tests/test-utimens.c (main): Likewise.
22291         * tests/test-utimensat.c (main): Likewise.
22292
22293 2009-12-29  Simon Josefsson  <simon@josefsson.org>
22294
22295         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
22296         on $(UNUSED_PARAMETER_H) to avoid build failure.
22297
22298 2009-12-28  Jim Meyering  <meyering@redhat.com>
22299
22300         update-copyright: you may specify a max. line length other than 72
22301         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
22302
22303         maint: use consistent FSF copyright line syntax
22304         * lib/posixtm.c: Add missing comma in FSF copyright line.
22305         * lib/posixtm.h: Likewise.
22306         * lib/getugroups.c: Add missing ", Inc.".
22307
22308         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
22309         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
22310         FSF copyright line.  Remove trailing blanks.
22311
22312 2009-12-28  Eric Blake  <ebb9@byu.net>
22313
22314         test-dup2: reduce dependencies
22315         * modules/cloexec (Configure.ac): Set witness.
22316         * modules/dup2-tests (Depends-on): Drop cloexec.
22317         * tests/test-dup2.c (main): Skip portion of test if cloexec module
22318         not present.
22319         Suggested by Bruno Haible.
22320
22321 2009-12-26  Bruno Haible  <bruno@clisp.org>
22322
22323         Remove an unneeded dependency.
22324         * modules/fseterr (Depends-on): Remove dup2.
22325
22326 2009-12-26  Eric Blake  <ebb9@byu.net>
22327
22328         tests: use macros.h in more places
22329         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
22330         (ASSERT_STREAM): Provide default of stderr.
22331         * tests/test-dirent-safer.c: Include macros.h, using alternate
22332         stream for assertions.
22333         * tests/test-dup-safer.c: Likewise.
22334         * tests/test-freopen-safer.c: Likewise.
22335         * tests/test-getopt.c: Likewise.
22336         * tests/test-openat-safer.c: Likewise.
22337         * tests/test-pipe.c: Likewise.
22338         * tests/test-popen-safer.c: Likewise.
22339         * modules/dirent-safer-tests (Files): Include macros.h.
22340         * modules/unistd-safer-tests (Files): Likewise.
22341         * modules/freopen-safer-tests (Files): Likewise.
22342         * modules/getopt-posix-tests (Files): Likewise.
22343         * modules/openat-safer-tests (Files): Likewise.
22344         * modules/pipe-tests (Files): Likewise.
22345
22346 2009-12-26  Bruno Haible  <bruno@clisp.org>
22347
22348         javacomp: Portability fix.
22349         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
22350         that it also works on Solaris.
22351
22352 2009-12-26  Bruno Haible  <bruno@clisp.org>
22353
22354         localename: Fix storage allocation of gl_locale_name_thread's result.
22355         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
22356         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
22357         all platforms that have 'uselocale'.
22358         (gl_locale_name_thread_unsafe): New function, extracted from
22359         gl_locale_name_thread.
22360         (gl_locale_name_thread): Call struniq on all platforms that have
22361         'uselocale'.
22362         * tests/test-localename.c (test_locale_name_thread): Check that the
22363         resulting strings are permanently allocated.
22364         * modules/localename-tests (Depends-on): Add strdup.
22365
22366 2009-12-26  Bruno Haible  <bruno@clisp.org>
22367
22368         * tests/test-localename.c (categories): Fill in the strings.
22369
22370 2009-12-26  Jim Meyering  <meyering@redhat.com>
22371
22372         isdir: complete the removal of m4/isdir.m4
22373         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
22374
22375         isdir: clean up, since at least grep still uses it
22376         * lib/isdir.c: Include "isdir.h".
22377         (S_ISDIR): Remove now-unneeded definition.
22378         * modules/isdir (Files): Add lib/isdir.h.
22379         * lib/isdir.h: New file, with declaration.
22380         * m4/isdir.m4: Remove file -- unneeded.
22381
22382 2009-12-25  Bruno Haible  <bruno@clisp.org>
22383
22384         selinux-h: Make generated .h files standalone.
22385         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
22386         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
22387         * lib/se-selinux.in.h: Likewise.
22388         * modules/selinux-h (Depends-on): Add unused-parameter.
22389         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
22390         selinux/selinux.h and selinux/context.h.
22391         Suggested by Eric Blake.
22392
22393 2009-12-25  Bruno Haible  <bruno@clisp.org>
22394
22395         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
22396         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
22397         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
22398         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
22399         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
22400
22401 2009-12-24  Bruno Haible  <bruno@clisp.org>
22402
22403         openat: Fix warning.
22404         * lib/openat-proc.c: Include <unistd.h>.
22405
22406 2009-12-24  Bruno Haible  <bruno@clisp.org>
22407
22408         New module 'unused-parameter'.
22409         * build-aux/unused-parameter.h: New file, extracted from earlier
22410         gnulib-common.m4.
22411         * modules/unused-parameter: New file.
22412         * lib/unistr.h: Include unused-parameter.h.
22413         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
22414         _GL_UNUSED.
22415         * modules/unistr/base (Depends-on): Add unused-parameter.
22416
22417 2009-12-24  Bruno Haible  <bruno@clisp.org>
22418
22419         Add missing dependencies to 'extensions' module.
22420         * m4/extensions.m4: Add comment.
22421         * modules/accept4 (Depends-on): Add extensions.
22422         * modules/dup3 (Depends-on): Likewise.
22423         * modules/fcntl (Depends-on): Likewise.
22424         * modules/futimens (Depends-on): Likewise.
22425         * modules/mknod (Depends-on): Likewise.
22426         * modules/pipe2 (Depends-on): Likewise.
22427         * modules/stat-time (Depends-on): Likewise.
22428         * modules/strcasestr-simple (Depends-on): Likewise.
22429         * modules/strsignal (Depends-on): Likewise.
22430         * modules/utimensat (Depends-on): Likewise.
22431         * modules/localcharset (Depends-on): Likewise. Needed because of
22432         gl_FCNTL_O_FLAGS.
22433         * modules/wcrtomb (Depends-on): Likewise. Needed because of
22434         AC_TYPE_MBSTATE_T.
22435         * modules/wcsnrtombs (Depends-on): Likewise.
22436         * modules/wcsrtombs (Depends-on): Likewise.
22437
22438 2009-12-24  Bruno Haible  <bruno@clisp.org>
22439
22440         binary-io: Avoid gcc warning due to SET_BINARY.
22441         * lib/binary-io.h (SET_BINARY): Cast the result to void.
22442         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
22443
22444 2009-12-24  Bruno Haible  <bruno@clisp.org>
22445
22446         Avoid future namespace pollution on glibc systems.
22447         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
22448         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
22449         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
22450         glibc systems.
22451
22452 2009-12-24  Bruno Haible  <bruno@clisp.org>
22453
22454         Refactor common macros used in tests.
22455         * tests/macros.h: New file.
22456         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
22457         and/or <stdlib.h>, if appropriate.
22458         (ASSERT, SIZEOF): Remove macros.
22459         * tests/test-areadlink-with-size.c: Likewise.
22460         * tests/test-areadlinkat.c: Likewise.
22461         * tests/test-areadlinkat-with-size.c: Likewise.
22462         * tests/test-argmatch.c: Likewise.
22463         * tests/test-argv-iter.c: Likewise.
22464         * tests/test-array-mergesort.c: Likewise.
22465         * tests/test-array_list.c: Likewise.
22466         * tests/test-array_oset.c: Likewise.
22467         * tests/test-avltree_list.c: Likewise.
22468         * tests/test-avltree_oset.c: Likewise.
22469         * tests/test-avltreehash_list.c: Likewise.
22470         * tests/test-base64.c: Likewise.
22471         * tests/test-binary-io.c: Likewise.
22472         * tests/test-bitrotate.c: Likewise.
22473         * tests/test-btowc.c: Likewise.
22474         * tests/test-byteswap.c: Likewise.
22475         * tests/test-c-ctype.c: Likewise.
22476         * tests/test-c-stack.c: Likewise.
22477         * tests/test-c-strcasecmp.c: Likewise.
22478         * tests/test-c-strcasestr.c: Likewise.
22479         * tests/test-c-strncasecmp.c: Likewise.
22480         * tests/test-c-strstr.c: Likewise.
22481         * tests/test-canonicalize-lgpl.c: Likewise.
22482         * tests/test-canonicalize.c: Likewise.
22483         * tests/test-carray_list.c: Likewise.
22484         * tests/test-ceilf1.c: Likewise.
22485         * tests/test-ceilf2.c: Likewise.
22486         * tests/test-ceill.c: Likewise.
22487         * tests/test-chown.c: Likewise.
22488         * tests/test-cloexec.c: Likewise.
22489         * tests/test-copy-acl.c: Likewise.
22490         * tests/test-copy-file.c: Likewise.
22491         * tests/test-count-one-bits.c: Likewise.
22492         * tests/test-dprintf-posix.c: Likewise.
22493         * tests/test-dup2.c: Likewise.
22494         * tests/test-dup3.c: Likewise.
22495         * tests/test-duplocale.c: Likewise.
22496         * tests/test-fbufmode.c: Likewise.
22497         * tests/test-fchdir.c: Likewise.
22498         * tests/test-fchownat.c: Likewise.
22499         * tests/test-fcntl-safer.c: Likewise.
22500         * tests/test-fcntl.c: Likewise.
22501         * tests/test-fdopendir.c: Likewise.
22502         * tests/test-fdutimensat.c: Likewise.
22503         * tests/test-fflush2.c: Likewise.
22504         * tests/test-file-has-acl.c: Likewise.
22505         * tests/test-filevercmp.c: Likewise.
22506         * tests/test-flock.c: Likewise.
22507         * tests/test-floorf1.c: Likewise.
22508         * tests/test-floorf2.c: Likewise.
22509         * tests/test-floorl.c: Likewise.
22510         * tests/test-fnmatch.c: Likewise.
22511         * tests/test-fopen.h: Likewise.
22512         * tests/test-fpending.c: Likewise.
22513         * tests/test-fprintf-posix.c: Likewise.
22514         * tests/test-fpurge.c: Likewise.
22515         * tests/test-freadable.c: Likewise.
22516         * tests/test-freadahead.c: Likewise.
22517         * tests/test-freading.c: Likewise.
22518         * tests/test-freadptr.c: Likewise.
22519         * tests/test-freadptr2.c: Likewise.
22520         * tests/test-freadseek.c: Likewise.
22521         * tests/test-freopen.c: Likewise.
22522         * tests/test-frexp.c: Likewise.
22523         * tests/test-frexpl.c: Likewise.
22524         * tests/test-fseek.c: Likewise.
22525         * tests/test-fseeko.c: Likewise.
22526         * tests/test-fstatat.c: Likewise.
22527         * tests/test-fstrcmp.c: Likewise.
22528         * tests/test-fsync.c: Likewise.
22529         * tests/test-ftell.c: Likewise.
22530         * tests/test-ftello.c: Likewise.
22531         * tests/test-func.c: Likewise.
22532         * tests/test-futimens.c: Likewise.
22533         * tests/test-fwritable.c: Likewise.
22534         * tests/test-fwriting.c: Likewise.
22535         * tests/test-getcwd.c: Likewise.
22536         * tests/test-getdate.c: Likewise.
22537         * tests/test-getdelim.c: Likewise.
22538         * tests/test-getdtablesize.c: Likewise.
22539         * tests/test-getgroups.c: Likewise.
22540         * tests/test-getline.c: Likewise.
22541         * tests/test-getndelim2.c: Likewise.
22542         * tests/test-glob.c: Likewise.
22543         * tests/test-hash.c: Likewise.
22544         * tests/test-i-ring.c: Likewise.
22545         * tests/test-iconv-utf.c: Likewise.
22546         * tests/test-iconv.c: Likewise.
22547         * tests/test-idpriv-drop.c: Likewise.
22548         * tests/test-idpriv-droptemp.c: Likewise.
22549         * tests/test-inet_ntop.c: Likewise.
22550         * tests/test-inet_pton.c: Likewise.
22551         * tests/test-isblank.c: Likewise.
22552         * tests/test-isfinite.c: Likewise.
22553         * tests/test-isinf.c: Likewise.
22554         * tests/test-isnan.c: Likewise.
22555         * tests/test-isnand.h: Likewise.
22556         * tests/test-isnanf.h: Likewise.
22557         * tests/test-isnanl.h: Likewise.
22558         * tests/test-lchown.c: Likewise.
22559         * tests/test-ldexpl.c: Likewise.
22560         * tests/test-link.c: Likewise.
22561         * tests/test-linkat.c: Likewise.
22562         * tests/test-linked_list.c: Likewise.
22563         * tests/test-linkedhash_list.c: Likewise.
22564         * tests/test-localename.c: Likewise.
22565         * tests/test-lseek.c: Likewise.
22566         * tests/test-lstat.c: Likewise.
22567         * tests/test-mbmemcasecmp.c: Likewise.
22568         * tests/test-mbmemcasecoll.c: Likewise.
22569         * tests/test-mbrtowc.c: Likewise.
22570         * tests/test-mbscasecmp.c: Likewise.
22571         * tests/test-mbscasestr1.c: Likewise.
22572         * tests/test-mbscasestr2.c: Likewise.
22573         * tests/test-mbscasestr3.c: Likewise.
22574         * tests/test-mbscasestr4.c: Likewise.
22575         * tests/test-mbschr.c: Likewise.
22576         * tests/test-mbscspn.c: Likewise.
22577         * tests/test-mbsinit.c: Likewise.
22578         * tests/test-mbsncasecmp.c: Likewise.
22579         * tests/test-mbsnrtowcs.c: Likewise.
22580         * tests/test-mbspbrk.c: Likewise.
22581         * tests/test-mbspcasecmp.c: Likewise.
22582         * tests/test-mbsrchr.c: Likewise.
22583         * tests/test-mbsrtowcs.c: Likewise.
22584         * tests/test-mbsspn.c: Likewise.
22585         * tests/test-mbsstr1.c: Likewise.
22586         * tests/test-mbsstr2.c: Likewise.
22587         * tests/test-mbsstr3.c: Likewise.
22588         * tests/test-memchr.c: Likewise.
22589         * tests/test-memchr2.c: Likewise.
22590         * tests/test-memcmp.c: Likewise.
22591         * tests/test-memmem.c: Likewise.
22592         * tests/test-memrchr.c: Likewise.
22593         * tests/test-mkdir.c: Likewise.
22594         * tests/test-mkdirat.c: Likewise.
22595         * tests/test-mkfifo.c: Likewise.
22596         * tests/test-mkfifoat.c: Likewise.
22597         * tests/test-mknod.c: Likewise.
22598         * tests/test-nanosleep.c: Likewise.
22599         * tests/test-nl_langinfo.c: Likewise.
22600         * tests/test-obstack-printf.c: Likewise.
22601         * tests/test-open.c: Likewise.
22602         * tests/test-openat.c: Likewise.
22603         * tests/test-pipe-filter-gi1.c: Likewise.
22604         * tests/test-pipe-filter-gi2-main.c: Likewise.
22605         * tests/test-pipe-filter-ii1.c: Likewise.
22606         * tests/test-pipe-filter-ii2-main.c: Likewise.
22607         * tests/test-pipe2.c: Likewise.
22608         * tests/test-popen.h: Likewise.
22609         * tests/test-posixtm.c: Likewise.
22610         * tests/test-pread.c: Likewise.
22611         * tests/test-printf-frexp.c: Likewise.
22612         * tests/test-printf-frexpl.c: Likewise.
22613         * tests/test-printf-posix.c: Likewise.
22614         * tests/test-priv-set.c: Likewise.
22615         * tests/test-quotearg.c: Likewise.
22616         * tests/test-random_r.c: Likewise.
22617         * tests/test-rawmemchr.c: Likewise.
22618         * tests/test-rbtree_list.c: Likewise.
22619         * tests/test-rbtree_oset.c: Likewise.
22620         * tests/test-rbtreehash_list.c: Likewise.
22621         * tests/test-readlink.c: Likewise.
22622         * tests/test-remove.c: Likewise.
22623         * tests/test-rename.c: Likewise.
22624         * tests/test-renameat.c: Likewise.
22625         * tests/test-rmdir.c: Likewise.
22626         * tests/test-round1.c: Likewise.
22627         * tests/test-roundf1.c: Likewise.
22628         * tests/test-roundl.c: Likewise.
22629         * tests/test-safe-alloc.c: Likewise.
22630         * tests/test-sameacls.c: Likewise.
22631         * tests/test-set-mode-acl.c: Likewise.
22632         * tests/test-setenv.c: Likewise.
22633         * tests/test-sigaction.c: Likewise.
22634         * tests/test-signbit.c: Likewise.
22635         * tests/test-sleep.c: Likewise.
22636         * tests/test-snprintf-posix.c: Likewise.
22637         * tests/test-snprintf.c: Likewise.
22638         * tests/test-sprintf-posix.c: Likewise.
22639         * tests/test-stat-time.c: Likewise.
22640         * tests/test-stat.c: Likewise.
22641         * tests/test-strcasestr.c: Likewise.
22642         * tests/test-strchrnul.c: Likewise.
22643         * tests/test-strerror.c: Likewise.
22644         * tests/test-striconv.c: Likewise.
22645         * tests/test-striconveh.c: Likewise.
22646         * tests/test-striconveha.c: Likewise.
22647         * tests/test-strsignal.c: Likewise.
22648         * tests/test-strstr.c: Likewise.
22649         * tests/test-strtod.c: Likewise.
22650         * tests/test-strverscmp.c: Likewise.
22651         * tests/test-symlink.c: Likewise.
22652         * tests/test-symlinkat.c: Likewise.
22653         * tests/test-trunc1.c: Likewise.
22654         * tests/test-trunc2.c: Likewise.
22655         * tests/test-truncf1.c: Likewise.
22656         * tests/test-truncf2.c: Likewise.
22657         * tests/test-truncl.c: Likewise.
22658         * tests/test-uname.c: Likewise.
22659         * tests/test-unlink.c: Likewise.
22660         * tests/test-unlinkat.c: Likewise.
22661         * tests/test-unsetenv.c: Likewise.
22662         * tests/test-usleep.c: Likewise.
22663         * tests/test-utimens.c: Likewise.
22664         * tests/test-utimensat.c: Likewise.
22665         * tests/test-vasnprintf-posix.c: Likewise.
22666         * tests/test-vasnprintf-posix2.c: Likewise.
22667         * tests/test-vasnprintf.c: Likewise.
22668         * tests/test-vasprintf-posix.c: Likewise.
22669         * tests/test-vasprintf.c: Likewise.
22670         * tests/test-vdprintf-posix.c: Likewise.
22671         * tests/test-vfprintf-posix.c: Likewise.
22672         * tests/test-vprintf-posix.c: Likewise.
22673         * tests/test-vsnprintf-posix.c: Likewise.
22674         * tests/test-vsnprintf.c: Likewise.
22675         * tests/test-vsprintf-posix.c: Likewise.
22676         * tests/test-wcrtomb.c: Likewise.
22677         * tests/test-wcsnrtombs.c: Likewise.
22678         * tests/test-wcsrtombs.c: Likewise.
22679         * tests/test-wctype.c: Likewise.
22680         * tests/test-wcwidth.c: Likewise.
22681         * tests/test-xfprintf-posix.c: Likewise.
22682         * tests/test-xmemdup0.c: Likewise.
22683         * tests/test-xprintf-posix.c: Likewise.
22684         * tests/test-xvasprintf.c: Likewise.
22685         * tests/unicase/test-locale-language.c: Likewise.
22686         * tests/unicase/test-mapping-part1.h: Likewise.
22687         * tests/unicase/test-predicate-part1.h: Likewise.
22688         * tests/unicase/test-u8-casecmp.c: Likewise.
22689         * tests/unicase/test-u8-casecoll.c: Likewise.
22690         * tests/unicase/test-u8-casefold.c: Likewise.
22691         * tests/unicase/test-u8-is-cased.c: Likewise.
22692         * tests/unicase/test-u8-is-casefolded.c: Likewise.
22693         * tests/unicase/test-u8-is-lowercase.c: Likewise.
22694         * tests/unicase/test-u8-is-titlecase.c: Likewise.
22695         * tests/unicase/test-u8-is-uppercase.c: Likewise.
22696         * tests/unicase/test-u8-tolower.c: Likewise.
22697         * tests/unicase/test-u8-totitle.c: Likewise.
22698         * tests/unicase/test-u8-toupper.c: Likewise.
22699         * tests/unicase/test-u16-casecmp.c: Likewise.
22700         * tests/unicase/test-u16-casecoll.c: Likewise.
22701         * tests/unicase/test-u16-casefold.c: Likewise.
22702         * tests/unicase/test-u16-is-cased.c: Likewise.
22703         * tests/unicase/test-u16-is-casefolded.c: Likewise.
22704         * tests/unicase/test-u16-is-lowercase.c: Likewise.
22705         * tests/unicase/test-u16-is-titlecase.c: Likewise.
22706         * tests/unicase/test-u16-is-uppercase.c: Likewise.
22707         * tests/unicase/test-u16-tolower.c: Likewise.
22708         * tests/unicase/test-u16-totitle.c: Likewise.
22709         * tests/unicase/test-u16-toupper.c: Likewise.
22710         * tests/unicase/test-u32-casecmp.c: Likewise.
22711         * tests/unicase/test-u32-casecoll.c: Likewise.
22712         * tests/unicase/test-u32-casefold.c: Likewise.
22713         * tests/unicase/test-u32-is-cased.c: Likewise.
22714         * tests/unicase/test-u32-is-casefolded.c: Likewise.
22715         * tests/unicase/test-u32-is-lowercase.c: Likewise.
22716         * tests/unicase/test-u32-is-titlecase.c: Likewise.
22717         * tests/unicase/test-u32-is-uppercase.c: Likewise.
22718         * tests/unicase/test-u32-tolower.c: Likewise.
22719         * tests/unicase/test-u32-totitle.c: Likewise.
22720         * tests/unicase/test-u32-toupper.c: Likewise.
22721         * tests/unicase/test-ulc-casecmp.c: Likewise.
22722         * tests/unicase/test-ulc-casecoll.c: Likewise.
22723         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
22724         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
22725         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
22726         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
22727         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
22728         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
22729         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
22730         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
22731         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
22732         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
22733         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
22734         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
22735         * tests/unictype/test-bidi_byname.c: Likewise.
22736         * tests/unictype/test-bidi_name.c: Likewise.
22737         * tests/unictype/test-bidi_of.c: Likewise.
22738         * tests/unictype/test-bidi_test.c: Likewise.
22739         * tests/unictype/test-block_list.c: Likewise.
22740         * tests/unictype/test-block_of.c: Likewise.
22741         * tests/unictype/test-block_test.c: Likewise.
22742         * tests/unictype/test-categ_and.c: Likewise.
22743         * tests/unictype/test-categ_and_not.c: Likewise.
22744         * tests/unictype/test-categ_byname.c: Likewise.
22745         * tests/unictype/test-categ_name.c: Likewise.
22746         * tests/unictype/test-categ_none.c: Likewise.
22747         * tests/unictype/test-categ_of.c: Likewise.
22748         * tests/unictype/test-categ_or.c: Likewise.
22749         * tests/unictype/test-categ_test_withtable.c: Likewise.
22750         * tests/unictype/test-combining.c: Likewise.
22751         * tests/unictype/test-decdigit.c: Likewise.
22752         * tests/unictype/test-digit.c: Likewise.
22753         * tests/unictype/test-mirror.c: Likewise.
22754         * tests/unictype/test-numeric.c: Likewise.
22755         * tests/unictype/test-pr_byname.c: Likewise.
22756         * tests/unictype/test-pr_test.c: Likewise.
22757         * tests/unictype/test-predicate-part1.h: Likewise.
22758         * tests/unictype/test-scripts.c: Likewise.
22759         * tests/unictype/test-sy_c_ident.c: Likewise.
22760         * tests/unictype/test-sy_java_ident.c: Likewise.
22761         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
22762         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
22763         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
22764         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
22765         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
22766         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
22767         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
22768         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
22769         * tests/uninorm/test-canonical-decomposition.c: Likewise.
22770         * tests/uninorm/test-compat-decomposition.c: Likewise.
22771         * tests/uninorm/test-composition.c: Likewise.
22772         * tests/uninorm/test-decomposing-form.c: Likewise.
22773         * tests/uninorm/test-decomposition.c: Likewise.
22774         * tests/uninorm/test-u8-nfc.c: Likewise.
22775         * tests/uninorm/test-u8-nfd.c: Likewise.
22776         * tests/uninorm/test-u8-nfkc.c: Likewise.
22777         * tests/uninorm/test-u8-nfkd.c: Likewise.
22778         * tests/uninorm/test-u8-normcmp.c: Likewise.
22779         * tests/uninorm/test-u8-normcoll.c: Likewise.
22780         * tests/uninorm/test-u16-nfc.c: Likewise.
22781         * tests/uninorm/test-u16-nfd.c: Likewise.
22782         * tests/uninorm/test-u16-nfkc.c: Likewise.
22783         * tests/uninorm/test-u16-nfkd.c: Likewise.
22784         * tests/uninorm/test-u16-normcmp.c: Likewise.
22785         * tests/uninorm/test-u16-normcoll.c: Likewise.
22786         * tests/uninorm/test-u32-nfc.c: Likewise.
22787         * tests/uninorm/test-u32-nfd.c: Likewise.
22788         * tests/uninorm/test-u32-nfkc.c: Likewise.
22789         * tests/uninorm/test-u32-nfkd.c: Likewise.
22790         * tests/uninorm/test-u32-normalize-big.c: Likewise.
22791         * tests/uninorm/test-u32-normcmp.c: Likewise.
22792         * tests/uninorm/test-u32-normcoll.c: Likewise.
22793         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
22794         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
22795         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
22796         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
22797         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
22798         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
22799         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
22800         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
22801         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
22802         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
22803         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
22804         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
22805         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
22806         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
22807         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
22808         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
22809         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
22810         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
22811         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
22812         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
22813         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
22814         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
22815         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
22816         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
22817         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
22818         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
22819         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
22820         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
22821         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
22822         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
22823         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
22824         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
22825         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
22826         * tests/uniwidth/test-u8-strwidth.c: Likewise.
22827         * tests/uniwidth/test-u8-width.c: Likewise.
22828         * tests/uniwidth/test-u16-strwidth.c: Likewise.
22829         * tests/uniwidth/test-u16-width.c: Likewise.
22830         * tests/uniwidth/test-u32-strwidth.c: Likewise.
22831         * tests/uniwidth/test-u32-width.c: Likewise.
22832         * tests/uniwidth/test-uc_width.c: Likewise.
22833         * tests/uniwidth/test-uc_width2.c: Likewise.
22834         * modules/acl-tests (Files): Add tests/macros.h.
22835         * modules/areadlink-tests (Files): Likewise.
22836         * modules/areadlink-with-size-tests (Files): Likewise.
22837         * modules/areadlinkat-tests (Files): Likewise.
22838         * modules/areadlinkat-with-size-tests (Files): Likewise.
22839         * modules/argmatch-tests (Files): Likewise.
22840         * modules/argv-iter-tests (Files): Likewise.
22841         * modules/array-list-tests (Files): Likewise.
22842         * modules/array-mergesort-tests (Files): Likewise.
22843         * modules/array-oset-tests (Files): Likewise.
22844         * modules/avltree-list-tests (Files): Likewise.
22845         * modules/avltree-oset-tests (Files): Likewise.
22846         * modules/avltreehash-list-tests (Files): Likewise.
22847         * modules/base64-tests (Files): Likewise.
22848         * modules/binary-io-tests (Files): Likewise.
22849         * modules/bitrotate-tests (Files): Likewise.
22850         * modules/btowc-tests (Files): Likewise.
22851         * modules/byteswap-tests (Files): Likewise.
22852         * modules/c-ctype-tests (Files): Likewise.
22853         * modules/c-stack-tests (Files): Likewise.
22854         * modules/c-strcase-tests (Files): Likewise.
22855         * modules/c-strcasestr-tests (Files): Likewise.
22856         * modules/c-strstr-tests (Files): Likewise.
22857         * modules/canonicalize-lgpl-tests (Files): Likewise.
22858         * modules/canonicalize-tests (Files): Likewise.
22859         * modules/carray-list-tests (Files): Likewise.
22860         * modules/ceilf-tests (Files): Likewise.
22861         * modules/ceill-tests (Files): Likewise.
22862         * modules/chown-tests (Files): Likewise.
22863         * modules/cloexec-tests (Files): Likewise.
22864         * modules/copy-file-tests (Files): Likewise.
22865         * modules/count-one-bits-tests (Files): Likewise.
22866         * modules/dprintf-posix-tests (Files): Likewise.
22867         * modules/dup2-tests (Files): Likewise.
22868         * modules/dup3-tests (Files): Likewise.
22869         * modules/duplocale-tests (Files): Likewise.
22870         * modules/fbufmode-tests (Files): Likewise.
22871         * modules/fchdir-tests (Files): Likewise.
22872         * modules/fcntl-safer-tests (Files): Likewise.
22873         * modules/fcntl-tests (Files): Likewise.
22874         * modules/fdopendir-tests (Files): Likewise.
22875         * modules/fdutimensat-tests (Files): Likewise.
22876         * modules/fflush-tests (Files): Likewise.
22877         * modules/filevercmp-tests (Files): Likewise.
22878         * modules/flock-tests (Files): Likewise.
22879         * modules/floorf-tests (Files): Likewise.
22880         * modules/floorl-tests (Files): Likewise.
22881         * modules/fnmatch-tests (Files): Likewise.
22882         * modules/fopen-safer-tests (Files): Likewise.
22883         * modules/fopen-tests (Files): Likewise.
22884         * modules/fpending-tests (Files): Likewise.
22885         * modules/fprintf-posix-tests (Files): Likewise.
22886         * modules/fpurge-tests (Files): Likewise.
22887         * modules/freadable-tests (Files): Likewise.
22888         * modules/freadahead-tests (Files): Likewise.
22889         * modules/freading-tests (Files): Likewise.
22890         * modules/freadptr-tests (Files): Likewise.
22891         * modules/freadseek-tests (Files): Likewise.
22892         * modules/freopen-tests (Files): Likewise.
22893         * modules/frexp-nolibm-tests (Files): Likewise.
22894         * modules/frexp-tests (Files): Likewise.
22895         * modules/frexpl-nolibm-tests (Files): Likewise.
22896         * modules/frexpl-tests (Files): Likewise.
22897         * modules/fseek-tests (Files): Likewise.
22898         * modules/fseeko-tests (Files): Likewise.
22899         * modules/fstrcmp-tests (Files): Likewise.
22900         * modules/fsync-tests (Files): Likewise.
22901         * modules/ftell-tests (Files): Likewise.
22902         * modules/ftello-tests (Files): Likewise.
22903         * modules/func-tests (Files): Likewise.
22904         * modules/futimens-tests (Files): Likewise.
22905         * modules/fwritable-tests (Files): Likewise.
22906         * modules/fwriting-tests (Files): Likewise.
22907         * modules/getcwd-tests (Files): Likewise.
22908         * modules/getdate-tests (Files): Likewise.
22909         * modules/getdelim-tests (Files): Likewise.
22910         * modules/getdtablesize-tests (Files): Likewise.
22911         * modules/getgroups-tests (Files): Likewise.
22912         * modules/getline-tests (Files): Likewise.
22913         * modules/getndelim2-tests (Files): Likewise.
22914         * modules/glob-tests (Files): Likewise.
22915         * modules/hash-tests (Files): Likewise.
22916         * modules/i-ring-tests (Files): Likewise.
22917         * modules/iconv-tests (Files): Likewise.
22918         * modules/iconv_open-utf-tests (Files): Likewise.
22919         * modules/idpriv-drop-tests (Files): Likewise.
22920         * modules/idpriv-droptemp-tests (Files): Likewise.
22921         * modules/inet_ntop-tests (Files): Likewise.
22922         * modules/inet_pton-tests (Files): Likewise.
22923         * modules/isblank-tests (Files): Likewise.
22924         * modules/isfinite-tests (Files): Likewise.
22925         * modules/isinf-tests (Files): Likewise.
22926         * modules/isnan-tests (Files): Likewise.
22927         * modules/isnand-nolibm-tests (Files): Likewise.
22928         * modules/isnand-tests (Files): Likewise.
22929         * modules/isnanf-nolibm-tests (Files): Likewise.
22930         * modules/isnanf-tests (Files): Likewise.
22931         * modules/isnanl-nolibm-tests (Files): Likewise.
22932         * modules/isnanl-tests (Files): Likewise.
22933         * modules/lchown-tests (Files): Likewise.
22934         * modules/ldexpl-tests (Files): Likewise.
22935         * modules/link-tests (Files): Likewise.
22936         * modules/linkat-tests (Files): Likewise.
22937         * modules/linked-list-tests (Files): Likewise.
22938         * modules/linkedhash-list-tests (Files): Likewise.
22939         * modules/localename-tests (Files): Likewise.
22940         * modules/lseek-tests (Files): Likewise.
22941         * modules/lstat-tests (Files): Likewise.
22942         * modules/mbmemcasecmp-tests (Files): Likewise.
22943         * modules/mbmemcasecoll-tests (Files): Likewise.
22944         * modules/mbrtowc-tests (Files): Likewise.
22945         * modules/mbscasecmp-tests (Files): Likewise.
22946         * modules/mbscasestr-tests (Files): Likewise.
22947         * modules/mbschr-tests (Files): Likewise.
22948         * modules/mbscspn-tests (Files): Likewise.
22949         * modules/mbsinit-tests (Files): Likewise.
22950         * modules/mbsncasecmp-tests (Files): Likewise.
22951         * modules/mbsnrtowcs-tests (Files): Likewise.
22952         * modules/mbspbrk-tests (Files): Likewise.
22953         * modules/mbspcasecmp-tests (Files): Likewise.
22954         * modules/mbsrchr-tests (Files): Likewise.
22955         * modules/mbsrtowcs-tests (Files): Likewise.
22956         * modules/mbsspn-tests (Files): Likewise.
22957         * modules/mbsstr-tests (Files): Likewise.
22958         * modules/memchr-tests (Files): Likewise.
22959         * modules/memchr2-tests (Files): Likewise.
22960         * modules/memcmp-tests (Files): Likewise.
22961         * modules/memmem-tests (Files): Likewise.
22962         * modules/memrchr-tests (Files): Likewise.
22963         * modules/mkdir-tests (Files): Likewise.
22964         * modules/mkfifo-tests (Files): Likewise.
22965         * modules/mkfifoat-tests (Files): Likewise.
22966         * modules/mknod-tests (Files): Likewise.
22967         * modules/nanosleep-tests (Files): Likewise.
22968         * modules/nl_langinfo-tests (Files): Likewise.
22969         * modules/obstack-printf-tests (Files): Likewise.
22970         * modules/open-tests (Files): Likewise.
22971         * modules/openat-tests (Files): Likewise.
22972         * modules/pipe-filter-gi-tests (Files): Likewise.
22973         * modules/pipe-filter-ii-tests (Files): Likewise.
22974         * modules/pipe2-tests (Files): Likewise.
22975         * modules/popen-safer-tests (Files): Likewise.
22976         * modules/popen-tests (Files): Likewise.
22977         * modules/posixtm-tests (Files): Likewise.
22978         * modules/pread-tests (Files): Likewise.
22979         * modules/printf-frexp-tests (Files): Likewise.
22980         * modules/printf-frexpl-tests (Files): Likewise.
22981         * modules/printf-posix-tests (Files): Likewise.
22982         * modules/priv-set-tests (Files): Likewise.
22983         * modules/quotearg-tests (Files): Likewise.
22984         * modules/random_r-tests (Files): Likewise.
22985         * modules/rawmemchr-tests (Files): Likewise.
22986         * modules/rbtree-list-tests (Files): Likewise.
22987         * modules/rbtree-oset-tests (Files): Likewise.
22988         * modules/rbtreehash-list-tests (Files): Likewise.
22989         * modules/readlink-tests (Files): Likewise.
22990         * modules/remove-tests (Files): Likewise.
22991         * modules/rename-tests (Files): Likewise.
22992         * modules/renameat-tests (Files): Likewise.
22993         * modules/rmdir-tests (Files): Likewise.
22994         * modules/round-tests (Files): Likewise.
22995         * modules/roundf-tests (Files): Likewise.
22996         * modules/roundl-tests (Files): Likewise.
22997         * modules/safe-alloc-tests (Files): Likewise.
22998         * modules/setenv-tests (Files): Likewise.
22999         * modules/sigaction-tests (Files): Likewise.
23000         * modules/signbit-tests (Files): Likewise.
23001         * modules/sleep-tests (Files): Likewise.
23002         * modules/snprintf-posix-tests (Files): Likewise.
23003         * modules/snprintf-tests (Files): Likewise.
23004         * modules/sprintf-posix-tests (Files): Likewise.
23005         * modules/stat-tests (Files): Likewise.
23006         * modules/stat-time-tests (Files): Likewise.
23007         * modules/strcasestr-tests (Files): Likewise.
23008         * modules/strchrnul-tests (Files): Likewise.
23009         * modules/strerror-tests (Files): Likewise.
23010         * modules/striconv-tests (Files): Likewise.
23011         * modules/striconveh-tests (Files): Likewise.
23012         * modules/striconveha-tests (Files): Likewise.
23013         * modules/strsignal-tests (Files): Likewise.
23014         * modules/strstr-tests (Files): Likewise.
23015         * modules/strtod-tests (Files): Likewise.
23016         * modules/strverscmp-tests (Files): Likewise.
23017         * modules/symlink-tests (Files): Likewise.
23018         * modules/symlinkat-tests (Files): Likewise.
23019         * modules/trunc-tests (Files): Likewise.
23020         * modules/truncf-tests (Files): Likewise.
23021         * modules/truncl-tests (Files): Likewise.
23022         * modules/uname-tests (Files): Likewise.
23023         * modules/unicase/cased-tests (Files): Likewise.
23024         * modules/unicase/ignorable-tests (Files): Likewise.
23025         * modules/unicase/locale-language-tests (Files): Likewise.
23026         * modules/unicase/tolower-tests (Files): Likewise.
23027         * modules/unicase/totitle-tests (Files): Likewise.
23028         * modules/unicase/toupper-tests (Files): Likewise.
23029         * modules/unicase/u8-casecmp-tests (Files): Likewise.
23030         * modules/unicase/u8-casecoll-tests (Files): Likewise.
23031         * modules/unicase/u8-casefold-tests (Files): Likewise.
23032         * modules/unicase/u8-is-cased-tests (Files): Likewise.
23033         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
23034         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
23035         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
23036         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
23037         * modules/unicase/u8-tolower-tests (Files): Likewise.
23038         * modules/unicase/u8-totitle-tests (Files): Likewise.
23039         * modules/unicase/u8-toupper-tests (Files): Likewise.
23040         * modules/unicase/u16-casecmp-tests (Files): Likewise.
23041         * modules/unicase/u16-casecoll-tests (Files): Likewise.
23042         * modules/unicase/u16-casefold-tests (Files): Likewise.
23043         * modules/unicase/u16-is-cased-tests (Files): Likewise.
23044         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
23045         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
23046         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
23047         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
23048         * modules/unicase/u16-tolower-tests (Files): Likewise.
23049         * modules/unicase/u16-totitle-tests (Files): Likewise.
23050         * modules/unicase/u16-toupper-tests (Files): Likewise.
23051         * modules/unicase/u32-casecmp-tests (Files): Likewise.
23052         * modules/unicase/u32-casecoll-tests (Files): Likewise.
23053         * modules/unicase/u32-casefold-tests (Files): Likewise.
23054         * modules/unicase/u32-is-cased-tests (Files): Likewise.
23055         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
23056         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
23057         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
23058         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
23059         * modules/unicase/u32-tolower-tests (Files): Likewise.
23060         * modules/unicase/u32-totitle-tests (Files): Likewise.
23061         * modules/unicase/u32-toupper-tests (Files): Likewise.
23062         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
23063         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
23064         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
23065         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
23066         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
23067         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
23068         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
23069         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
23070         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
23071         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
23072         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
23073         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
23074         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
23075         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
23076         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
23077         * modules/unictype/bidicategory-name-tests (Files): Likewise.
23078         * modules/unictype/bidicategory-of-tests (Files): Likewise.
23079         * modules/unictype/bidicategory-test-tests (Files): Likewise.
23080         * modules/unictype/block-list-tests (Files): Likewise.
23081         * modules/unictype/block-of-tests (Files): Likewise.
23082         * modules/unictype/block-test-tests (Files): Likewise.
23083         * modules/unictype/category-C-tests (Files): Likewise.
23084         * modules/unictype/category-Cc-tests (Files): Likewise.
23085         * modules/unictype/category-Cf-tests (Files): Likewise.
23086         * modules/unictype/category-Cn-tests (Files): Likewise.
23087         * modules/unictype/category-Co-tests (Files): Likewise.
23088         * modules/unictype/category-Cs-tests (Files): Likewise.
23089         * modules/unictype/category-L-tests (Files): Likewise.
23090         * modules/unictype/category-Ll-tests (Files): Likewise.
23091         * modules/unictype/category-Lm-tests (Files): Likewise.
23092         * modules/unictype/category-Lo-tests (Files): Likewise.
23093         * modules/unictype/category-Lt-tests (Files): Likewise.
23094         * modules/unictype/category-Lu-tests (Files): Likewise.
23095         * modules/unictype/category-M-tests (Files): Likewise.
23096         * modules/unictype/category-Mc-tests (Files): Likewise.
23097         * modules/unictype/category-Me-tests (Files): Likewise.
23098         * modules/unictype/category-Mn-tests (Files): Likewise.
23099         * modules/unictype/category-N-tests (Files): Likewise.
23100         * modules/unictype/category-Nd-tests (Files): Likewise.
23101         * modules/unictype/category-Nl-tests (Files): Likewise.
23102         * modules/unictype/category-No-tests (Files): Likewise.
23103         * modules/unictype/category-P-tests (Files): Likewise.
23104         * modules/unictype/category-Pc-tests (Files): Likewise.
23105         * modules/unictype/category-Pd-tests (Files): Likewise.
23106         * modules/unictype/category-Pe-tests (Files): Likewise.
23107         * modules/unictype/category-Pf-tests (Files): Likewise.
23108         * modules/unictype/category-Pi-tests (Files): Likewise.
23109         * modules/unictype/category-Po-tests (Files): Likewise.
23110         * modules/unictype/category-Ps-tests (Files): Likewise.
23111         * modules/unictype/category-S-tests (Files): Likewise.
23112         * modules/unictype/category-Sc-tests (Files): Likewise.
23113         * modules/unictype/category-Sk-tests (Files): Likewise.
23114         * modules/unictype/category-Sm-tests (Files): Likewise.
23115         * modules/unictype/category-So-tests (Files): Likewise.
23116         * modules/unictype/category-Z-tests (Files): Likewise.
23117         * modules/unictype/category-Zl-tests (Files): Likewise.
23118         * modules/unictype/category-Zp-tests (Files): Likewise.
23119         * modules/unictype/category-Zs-tests (Files): Likewise.
23120         * modules/unictype/category-and-not-tests (Files): Likewise.
23121         * modules/unictype/category-and-tests (Files): Likewise.
23122         * modules/unictype/category-byname-tests (Files): Likewise.
23123         * modules/unictype/category-name-tests (Files): Likewise.
23124         * modules/unictype/category-none-tests (Files): Likewise.
23125         * modules/unictype/category-of-tests (Files): Likewise.
23126         * modules/unictype/category-or-tests (Files): Likewise.
23127         * modules/unictype/category-test-withtable-tests (Files): Likewise.
23128         * modules/unictype/combining-class-tests (Files): Likewise.
23129         * modules/unictype/ctype-alnum-tests (Files): Likewise.
23130         * modules/unictype/ctype-alpha-tests (Files): Likewise.
23131         * modules/unictype/ctype-blank-tests (Files): Likewise.
23132         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
23133         * modules/unictype/ctype-digit-tests (Files): Likewise.
23134         * modules/unictype/ctype-graph-tests (Files): Likewise.
23135         * modules/unictype/ctype-lower-tests (Files): Likewise.
23136         * modules/unictype/ctype-print-tests (Files): Likewise.
23137         * modules/unictype/ctype-punct-tests (Files): Likewise.
23138         * modules/unictype/ctype-space-tests (Files): Likewise.
23139         * modules/unictype/ctype-upper-tests (Files): Likewise.
23140         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
23141         * modules/unictype/decimal-digit-tests (Files): Likewise.
23142         * modules/unictype/digit-tests (Files): Likewise.
23143         * modules/unictype/mirror-tests (Files): Likewise.
23144         * modules/unictype/numeric-tests (Files): Likewise.
23145         * modules/unictype/property-alphabetic-tests (Files): Likewise.
23146         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
23147         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
23148         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
23149         Likewise.
23150         * modules/unictype/property-bidi-block-separator-tests (Files):
23151         Likewise.
23152         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
23153         Likewise.
23154         * modules/unictype/property-bidi-common-separator-tests (Files):
23155         Likewise.
23156         * modules/unictype/property-bidi-control-tests (Files): Likewise.
23157         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
23158         Likewise.
23159         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
23160         Likewise.
23161         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
23162         Likewise.
23163         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
23164         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
23165         Likewise.
23166         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
23167         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
23168         Likewise.
23169         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
23170         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
23171         * modules/unictype/property-bidi-segment-separator-tests (Files):
23172         Likewise.
23173         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
23174         * modules/unictype/property-byname-tests (Files): Likewise.
23175         * modules/unictype/property-combining-tests (Files): Likewise.
23176         * modules/unictype/property-composite-tests (Files): Likewise.
23177         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
23178         * modules/unictype/property-dash-tests (Files): Likewise.
23179         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
23180         * modules/unictype/property-default-ignorable-code-point-tests (Files):
23181         Likewise.
23182         * modules/unictype/property-deprecated-tests (Files): Likewise.
23183         * modules/unictype/property-diacritic-tests (Files): Likewise.
23184         * modules/unictype/property-extender-tests (Files): Likewise.
23185         * modules/unictype/property-format-control-tests (Files): Likewise.
23186         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
23187         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
23188         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
23189         * modules/unictype/property-hex-digit-tests (Files): Likewise.
23190         * modules/unictype/property-hyphen-tests (Files): Likewise.
23191         * modules/unictype/property-id-continue-tests (Files): Likewise.
23192         * modules/unictype/property-id-start-tests (Files): Likewise.
23193         * modules/unictype/property-ideographic-tests (Files): Likewise.
23194         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
23195         * modules/unictype/property-ids-trinary-operator-tests (Files):
23196         Likewise.
23197         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
23198         * modules/unictype/property-iso-control-tests (Files): Likewise.
23199         * modules/unictype/property-join-control-tests (Files): Likewise.
23200         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
23201         * modules/unictype/property-line-separator-tests (Files): Likewise.
23202         * modules/unictype/property-logical-order-exception-tests (Files):
23203         Likewise.
23204         * modules/unictype/property-lowercase-tests (Files): Likewise.
23205         * modules/unictype/property-math-tests (Files): Likewise.
23206         * modules/unictype/property-non-break-tests (Files): Likewise.
23207         * modules/unictype/property-not-a-character-tests (Files): Likewise.
23208         * modules/unictype/property-numeric-tests (Files): Likewise.
23209         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
23210         * modules/unictype/property-other-default-ignorable-code-point-tests
23211         (Files): Likewise.
23212         * modules/unictype/property-other-grapheme-extend-tests (Files):
23213         Likewise.
23214         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
23215         * modules/unictype/property-other-id-start-tests (Files): Likewise.
23216         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
23217         * modules/unictype/property-other-math-tests (Files): Likewise.
23218         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
23219         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
23220         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
23221         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
23222         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
23223         * modules/unictype/property-private-use-tests (Files): Likewise.
23224         * modules/unictype/property-punctuation-tests (Files): Likewise.
23225         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
23226         * modules/unictype/property-radical-tests (Files): Likewise.
23227         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
23228         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
23229         * modules/unictype/property-space-tests (Files): Likewise.
23230         * modules/unictype/property-terminal-punctuation-tests (Files):
23231         Likewise.
23232         * modules/unictype/property-test-tests (Files): Likewise.
23233         * modules/unictype/property-titlecase-tests (Files): Likewise.
23234         * modules/unictype/property-unassigned-code-value-tests (Files):
23235         Likewise.
23236         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
23237         * modules/unictype/property-uppercase-tests (Files): Likewise.
23238         * modules/unictype/property-variation-selector-tests (Files): Likewise.
23239         * modules/unictype/property-white-space-tests (Files): Likewise.
23240         * modules/unictype/property-xid-continue-tests (Files): Likewise.
23241         * modules/unictype/property-xid-start-tests (Files): Likewise.
23242         * modules/unictype/property-zero-width-tests (Files): Likewise.
23243         * modules/unictype/scripts-tests (Files): Likewise.
23244         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
23245         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
23246         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
23247         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
23248         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
23249         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
23250         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
23251         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
23252         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
23253         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
23254         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
23255         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
23256         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
23257         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
23258         * modules/uninorm/composition-tests (Files): Likewise.
23259         * modules/uninorm/decomposing-form-tests (Files): Likewise.
23260         * modules/uninorm/decomposition-tests (Files): Likewise.
23261         * modules/uninorm/filter-tests (Files): Likewise.
23262         * modules/uninorm/nfc-tests (Files): Likewise.
23263         * modules/uninorm/nfd-tests (Files): Likewise.
23264         * modules/uninorm/nfkc-tests (Files): Likewise.
23265         * modules/uninorm/nfkd-tests (Files): Likewise.
23266         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
23267         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
23268         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
23269         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
23270         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
23271         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
23272         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
23273         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
23274         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
23275         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
23276         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
23277         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
23278         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
23279         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
23280         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
23281         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
23282         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
23283         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
23284         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
23285         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
23286         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
23287         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
23288         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
23289         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
23290         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
23291         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
23292         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
23293         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
23294         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
23295         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
23296         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
23297         * modules/uniwidth/u8-width-tests (Files): Likewise.
23298         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
23299         * modules/uniwidth/u16-width-tests (Files): Likewise.
23300         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
23301         * modules/uniwidth/u32-width-tests (Files): Likewise.
23302         * modules/uniwidth/width-tests (Files): Likewise.
23303         * modules/unlink-tests (Files): Likewise.
23304         * modules/unsetenv-tests (Files): Likewise.
23305         * modules/usleep-tests (Files): Likewise.
23306         * modules/utimens-tests (Files): Likewise.
23307         * modules/utimensat-tests (Files): Likewise.
23308         * modules/vasnprintf-posix-tests (Files): Likewise.
23309         * modules/vasnprintf-tests (Files): Likewise.
23310         * modules/vasprintf-posix-tests (Files): Likewise.
23311         * modules/vasprintf-tests (Files): Likewise.
23312         * modules/vdprintf-posix-tests (Files): Likewise.
23313         * modules/vfprintf-posix-tests (Files): Likewise.
23314         * modules/vprintf-posix-tests (Files): Likewise.
23315         * modules/vsnprintf-posix-tests (Files): Likewise.
23316         * modules/vsnprintf-tests (Files): Likewise.
23317         * modules/vsprintf-posix-tests (Files): Likewise.
23318         * modules/wcrtomb-tests (Files): Likewise.
23319         * modules/wcsnrtombs-tests (Files): Likewise.
23320         * modules/wcsrtombs-tests (Files): Likewise.
23321         * modules/wctype-tests (Files): Likewise.
23322         * modules/wcwidth-tests (Files): Likewise.
23323         * modules/xmemdup0-tests (Files): Likewise.
23324         * modules/xprintf-posix-tests (Files): Likewise.
23325         * modules/xvasprintf-tests (Files): Likewise.
23326
23327 2009-12-24  Eric Blake  <ebb9@byu.net>
23328
23329         test-nanosleep: fix typo
23330         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
23331         patch.
23332         Reported by Bruno Haible.
23333
23334 2009-12-24  Bruno Haible  <bruno@clisp.org>
23335
23336         Reduce namespace pollution on glibc systems.
23337         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
23338         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
23339         systems.
23340         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
23341         <getopt.h> on glibc systems.
23342         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
23343         systems.
23344         * lib/fcntl.c: Include <unistd.h> here instead.
23345
23346 2009-12-24  Bruno Haible  <bruno@clisp.org>
23347
23348         * lib/stdlib.in.h (includes): Fix typo in today's commit.
23349
23350 2009-12-24  Eric Blake  <ebb9@byu.net>
23351
23352         tests: add signature checks
23353         * tests/signature.h (SIGNATURE_CHECK): New file.
23354         * modules/atexit-tests (Files): Use it.
23355         * modules/btowc-tests (Files): Likewise.
23356         * modules/canonicalize-lgpl-tests (Files): Likewise.
23357         * modules/ceilf-tests (Files): Likewise.
23358         * modules/ceill-tests (Files): Likewise.
23359         * modules/chown-tests (Files): Likewise.
23360         * modules/dprintf-posix-tests (Files): Likewise.
23361         * modules/dup2-tests (Files): Likewise.
23362         * modules/dup3-tests (Files): Likewise.
23363         * modules/duplocale-tests (Files): Likewise.
23364         * modules/fchdir-tests (Files): Likewise.
23365         * modules/fcntl-tests (Files): Likewise.
23366         * modules/fdopendir-tests (Files): Likewise.
23367         * modules/fflush-tests (Files): Likewise.
23368         * modules/flock-tests (Files): Likewise.
23369         * modules/floorf-tests (Files): Likewise.
23370         * modules/floorl-tests (Files): Likewise.
23371         * modules/fnmatch-tests (Files): Likewise.
23372         * modules/fopen-tests (Files): Likewise.
23373         * modules/fprintf-posix-tests (Files): Likewise.
23374         * modules/freopen-tests (Files): Likewise.
23375         * modules/frexp-nolibm-tests (Files): Likewise.
23376         * modules/frexp-tests (Files): Likewise.
23377         * modules/frexpl-nolibm-tests (Files): Likewise.
23378         * modules/frexpl-tests (Files): Likewise.
23379         * modules/fseek-tests (Files): Likewise.
23380         * modules/fseeko-tests (Files): Likewise.
23381         * modules/fsync-tests (Files): Likewise.
23382         * modules/ftell-tests (Files): Likewise.
23383         * modules/ftello-tests (Files): Likewise.
23384         * modules/futimens-tests (Files): Likewise.
23385         * modules/getaddrinfo-tests (Files): Likewise.
23386         * modules/getcwd-tests (Files): Likewise.
23387         * modules/getdelim-tests (Files): Likewise.
23388         * modules/getdtablesize-tests (Files): Likewise.
23389         * modules/getgroups-tests (Files): Likewise.
23390         * modules/gethostname-tests (Files): Likewise.
23391         * modules/getline-tests (Files): Likewise.
23392         * modules/getopt-posix-tests (Files): Likewise.
23393         * modules/gettimeofday-tests (Files): Likewise.
23394         * modules/glob-tests (Files): Likewise.
23395         * modules/iconv-tests (Files): Likewise.
23396         * modules/inet_ntop-tests (Files): Likewise.
23397         * modules/inet_pton-tests (Files): Likewise.
23398         * modules/isblank-tests (Files): Likewise.
23399         * modules/lchown-tests (Files): Likewise.
23400         * modules/ldexpl-tests (Files): Likewise.
23401         * modules/link-tests (Files): Likewise.
23402         * modules/linkat-tests (Files): Likewise.
23403         * modules/lseek-tests (Files): Likewise.
23404         * modules/lstat-tests (Files): Likewise.
23405         * modules/mbrtowc-tests (Files): Likewise.
23406         * modules/mbsinit-tests (Files): Likewise.
23407         * modules/mbsnrtowcs-tests (Files): Likewise.
23408         * modules/mbsrtowcs-tests (Files): Likewise.
23409         * modules/memchr-tests (Files): Likewise.
23410         * modules/memcmp-tests (Files): Likewise.
23411         * modules/memmem-tests (Files): Likewise.
23412         * modules/memrchr-tests (Files): Likewise.
23413         * modules/mkdir-tests (Files): Likewise.
23414         * modules/mkfifo-tests (Files): Likewise.
23415         * modules/mkfifoat-tests (Files): Likewise.
23416         * modules/mknod-tests (Files): Likewise.
23417         * modules/nanosleep-tests (Files): Likewise.
23418         * modules/nl_langinfo-tests (Files): Likewise.
23419         * modules/obstack-printf-tests (Files): Likewise.
23420         * modules/open-tests (Files): Likewise.
23421         * modules/openat-tests (Files): Likewise.
23422         * modules/perror-tests (Files): Likewise.
23423         * modules/pipe2-tests (Files): Likewise.
23424         * modules/poll-tests (Files): Likewise.
23425         * modules/popen-tests (Files): Likewise.
23426         * modules/posix_spawn-tests (Files): Likewise.
23427         * modules/posix_spawnp-tests (Files): Likewise.
23428         * modules/pread-tests (Files): Likewise.
23429         * modules/printf-posix-tests (Files): Likewise.
23430         * modules/pty-tests (Files): Likewise.
23431         * modules/random_r-tests (Files): Likewise.
23432         * modules/rawmemchr-tests (Files): Likewise.
23433         * modules/readlink-tests (Files): Likewise.
23434         * modules/remove-tests (Files): Likewise.
23435         * modules/rename-tests (Files): Likewise.
23436         * modules/renameat-tests (Files): Likewise.
23437         * modules/rmdir-tests (Files): Likewise.
23438         * modules/round-tests (Files): Likewise.
23439         * modules/roundf-tests (Files): Likewise.
23440         * modules/roundl-tests (Files): Likewise.
23441         * modules/select-tests (Files): Likewise.
23442         * modules/setenv-tests (Files): Likewise.
23443         * modules/sigaction-tests (Files): Likewise.
23444         * modules/sleep-tests (Files): Likewise.
23445         * modules/snprintf-posix-tests (Files): Likewise.
23446         * modules/snprintf-tests (Files): Likewise.
23447         * modules/sprintf-posix-tests (Files): Likewise.
23448         * modules/stat-tests (Files): Likewise.
23449         * modules/strcasestr-tests (Files): Likewise.
23450         * modules/strchrnul-tests (Files): Likewise.
23451         * modules/strerror-tests (Files): Likewise.
23452         * modules/strsignal-tests (Files): Likewise.
23453         * modules/strstr-tests (Files): Likewise.
23454         * modules/strtod-tests (Files): Likewise.
23455         * modules/strverscmp-tests (Files): Likewise.
23456         * modules/symlink-tests (Files): Likewise.
23457         * modules/symlinkat-tests (Files): Likewise.
23458         * modules/times-tests (Files): Likewise.
23459         * modules/trunc-tests (Files): Likewise.
23460         * modules/truncf-tests (Files): Likewise.
23461         * modules/truncl-tests (Files): Likewise.
23462         * modules/tsearch-tests (Files): Likewise.
23463         * modules/uname-tests (Files): Likewise.
23464         * modules/unlink-tests (Files): Likewise.
23465         * modules/unsetenv-tests (Files): Likewise.
23466         * modules/usleep-tests (Files): Likewise.
23467         * modules/utimensat-tests (Files): Likewise.
23468         * modules/vasprintf-tests (Files): Likewise.
23469         * modules/vdprintf-posix-tests (Files): Likewise.
23470         * modules/vfprintf-posix-tests (Files): Likewise.
23471         * modules/vprintf-posix-tests (Files): Likewise.
23472         * modules/vsnprintf-posix-tests (Files): Likewise.
23473         * modules/vsnprintf-tests (Files): Likewise.
23474         * modules/vsprintf-posix-tests (Files): Likewise.
23475         * modules/wcrtomb-tests (Files): Likewise.
23476         * modules/wcsnrtombs-tests (Files): Likewise.
23477         * modules/wcsrtombs-tests (Files): Likewise.
23478         * modules/wcwidth-tests (Files): Likewise.
23479         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
23480         * tests/test-isinf.c (isinf): Likewise.
23481         * tests/test-isnan.c (isnan): Likewise.
23482         * tests/test-signbit.c (signbit): Likewise.
23483         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
23484         declaration, either as macro or with correct signature.
23485         (select): Ensure function under test is declared with correct
23486         signature in correct header.
23487         * tests/test-atexit.c (atexit): Likewise.
23488         * tests/test-btowc.c (btowc): Likewise.
23489         * tests/test-canonicalize-lgpl.c (realpath)
23490         (canonicalize_file_name): Likewise.
23491         * tests/test-ceilf1.c (ceilf): Likewise.
23492         * tests/test-ceill.c (ceill): Likewise.
23493         * tests/test-chown.c (chown): Likewise.
23494         * tests/test-dprintf-posix.c (dprintf): Likewise.
23495         * tests/test-dup2.c (dup2): Likewise.
23496         * tests/test-dup3.c (dup3): Likewise.
23497         * tests/test-duplocale.c (duplocale): Likewise.
23498         * tests/test-fchdir.c (fchdir): Likewise.
23499         * tests/test-fchownat.c (fchownat): Likewise.
23500         * tests/test-fcntl.c (fcntl): Likewise.
23501         * tests/test-fdopendir.c (fdopendir): Likewise.
23502         * tests/test-fflush.c (fflush): Likewise.
23503         * tests/test-flock.c (flock): Likewise.
23504         * tests/test-floorf1.c (floorf): Likewise.
23505         * tests/test-floorl.c (floorl): Likewise.
23506         * tests/test-fnmatch.c (fnmatch): Likewise.
23507         * tests/test-fopen.c (fopen): Likewise.
23508         * tests/test-fprintf-posix.c (fprintf): Likewise.
23509         * tests/test-freopen.c (freopen): Likewise.
23510         * tests/test-frexp.c (frexp): Likewise.
23511         * tests/test-frexpl.c (frexpl): Likewise.
23512         * tests/test-fseek.c (fseek): Likewise.
23513         * tests/test-fseeko.c (fseeko): Likewise.
23514         * tests/test-fstatat.c (fstatat): Likewise.
23515         * tests/test-fsync.c (fsync): Likewise.
23516         * tests/test-ftell.c (ftell): Likewise.
23517         * tests/test-ftello.c (ftello): Likewise.
23518         * tests/test-futimens.c (futimens): Likewise.
23519         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
23520         (gai_strerror): Likewise.
23521         * tests/test-getcwd.c (getcwd): Likewise.
23522         * tests/test-getdelim.c (getdelim): Likewise.
23523         * tests/test-getdtablesize.c (getdtablesize): Likewise.
23524         * tests/test-getgroups.c (getgroups): Likewise.
23525         * tests/test-gethostname.c (gethostname): Likewise.
23526         * tests/test-getline.c (getline): Likewise.
23527         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
23528         Likewise.
23529         * tests/test-gettimeofday.c (gettimeofday): Likewise.
23530         * tests/test-glob.c (glob, globfree): Likewise.
23531         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
23532         * tests/test-inet_ntop.c (inet_ntop): Likewise.
23533         * tests/test-inet_pton.c (inet_pton): Likewise.
23534         * tests/test-isblank.c (isblank): Likewise.
23535         * tests/test-lchown.c (lchown): Likewise.
23536         * tests/test-ldexpl.c (ldexpl): Likewise.
23537         * tests/test-link.c (link): Likewise.
23538         * tests/test-linkat.c (linkat): Likewise.
23539         * tests/test-lseek.c (lseek): Likewise.
23540         * tests/test-lstat.c (lstat): Likewise.
23541         * tests/test-mbrtowc.c (mbrtowc): Likewise.
23542         * tests/test-mbsinit.c (mbsinit): Likewise.
23543         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
23544         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
23545         * tests/test-memchr.c (memchr): Likewise.
23546         * tests/test-memcmp.c (memcmp): Likewise.
23547         * tests/test-memmem.c (memmem): Likewise.
23548         * tests/test-memrchr.c (memrchr): Likewise.
23549         * tests/test-mkdir.c (mkdir): Likewise.
23550         * tests/test-mkdirat.c (mkdirat): Likewise.
23551         * tests/test-mkfifo.c (mkfifo): Likewise.
23552         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
23553         * tests/test-mknod.c (mknod): Likewise.
23554         * tests/test-nanosleep.c (nanosleep): Likewise.
23555         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
23556         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
23557         Likewise.
23558         * tests/test-open.c (open): Likewise.
23559         * tests/test-openat.c (openat): Likewise.
23560         * tests/test-perror.c (perror): Likewise.
23561         * tests/test-pipe2.c (pipe2): Likewise.
23562         * tests/test-poll.c (poll): Likewise.
23563         * tests/test-popen.c (popen, pclose): Likewise.
23564         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
23565         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
23566         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
23567         (posix_spawn_file_actions_destroy)
23568         (posix_spawn_file_actions_addclose)
23569         (posix_spawn_file_actions_addopen)
23570         (posix_spawn_file_actions_adddup2): Likewise.
23571         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
23572         * tests/test-pread.c (pread): Likewise.
23573         * tests/test-printf-posix.c (printf): Likewise.
23574         * tests/test-pty.c (openpty, forkpty): Likewise.
23575         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
23576         (random_r): Likewise.
23577         * tests/test-rawmemchr.c (rawmemchr): Likewise.
23578         * tests/test-readlink.c (readlink): Likewise.
23579         * tests/test-remove.c (remove): Likewise.
23580         * tests/test-rename.c (rename): Likewise.
23581         * tests/test-renameat.c (renameat): Likewise.
23582         * tests/test-rmdir.c (rmdir): Likewise.
23583         * tests/test-round1.c (round): Likewise.
23584         * tests/test-roundf1.c (roundf): Likewise.
23585         * tests/test-roundl.c (roundl): Likewise.
23586         * tests/test-setenv.c (setenv): Likewise.
23587         * tests/test-sigaction.c (sigaction): Likewise.
23588         * tests/test-sleep.c (sleep): Likewise.
23589         * tests/test-snprintf.c (snprintf): Likewise.
23590         * tests/test-sprintf-posix.c (sprintf): Likewise.
23591         * tests/test-stat.c (stat): Likewise.
23592         * tests/test-stpncpy.c (stpncpy): Likewise.
23593         * tests/test-strcasestr.c (strcasestr): Likewise.
23594         * tests/test-strchrnul.c (strchrnul): Likewise.
23595         * tests/test-strerror.c (strerror): Likewise.
23596         * tests/test-strsignal.c (strsignal): Likewise.
23597         * tests/test-strstr.c (strstr): Likewise.
23598         * tests/test-strtod.c (strtod): Likewise.
23599         * tests/test-strverscmp.c (strverscmp): Likewise.
23600         * tests/test-symlink.c (symlink): Likewise.
23601         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
23602         * tests/test-times.c (times): Likewise.
23603         * tests/test-trunc1.c (trunc): Likewise.
23604         * tests/test-truncf1.c (truncf): Likewise.
23605         * tests/test-truncl.c (truncl): Likewise.
23606         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
23607         Likewise.
23608         * tests/test-uname.c (uname): Likewise.
23609         * tests/test-unlink.c (unlink): Likewise.
23610         * tests/test-unlinkat.c (unlinkat): Likewise.
23611         * tests/test-unsetenv.c (unsetenv): Likewise.
23612         * tests/test-usleep.c (usleep): Likewise.
23613         * tests/test-utimensat.c (utimensat): Likewise.
23614         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
23615         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
23616         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
23617         * tests/test-vprintf-posix.c (vprintf): Likewise.
23618         * tests/test-vsnprintf.c (vsnprintf): Likewise.
23619         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
23620         * tests/test-wcrtomb.c (wcrtomb): Likewise.
23621         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
23622         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
23623         * tests/test-wcwidth.c (wcwidth): Likewise.
23624
23625         build: pull in conditional headers during GNULIB_POSIXCHECK
23626         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
23627         definitions from any conditionally-included headers.
23628         * lib/stdlib.in.h (includes): Likewise.
23629         * lib/unistd.in.h (includes): Likewise.
23630
23631 2009-12-24  Bruno Haible  <bruno@clisp.org>
23632
23633         * tests/test-argv-iter.c: Include header file being tested immediately
23634         after config.h.
23635         * tests/test-base64.c: Likewise.
23636         * tests/test-flock.c: Likewise.
23637         * tests/test-fsync.c: Likewise.
23638         * tests/test-getdate.c: Likewise.
23639         * tests/test-getndelim2.c: Likewise.
23640         * tests/test-isfinite.c: Likewise.
23641         * tests/test-isinf.c: Likewise.
23642         * tests/test-strerror.c: Likewise.
23643         * tests/test-strsignal.c: Likewise.
23644
23645 2009-12-23  Eric Blake  <ebb9@byu.net>
23646
23647         unistd: work around cygwin bug
23648         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
23649         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
23650         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
23651
23652 2009-12-23  Bruno Haible  <bruno@clisp.org>
23653
23654         localename: More tests.
23655         * tests/test-localename.c (SIZEOF): New macro.
23656         (categories): New variable.
23657         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
23658         test_locale_name_default): Add test w.r.t. thread locale.
23659         (test_locale_name_thread): New function.
23660         (main): Invoke it.
23661
23662         localename: Make aware of thread locale.
23663         * lib/localename.h (gl_locale_name_thread): New declaration.
23664         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
23665         behaviour with respect to thread locale.
23666         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
23667         <langinfo.h>, glthread/lock.h.
23668         (SIZE_BITS): New macro.
23669         (string_hash): New function.
23670         (struct hash_node): New type.
23671         (HASH_TABLE_SIZE): New macro.
23672         (struniq_hash_table, struniq_lock): New variables.
23673         (struniq): New function.
23674         (gl_locale_name_thread): New function.
23675         (gl_locale_name): Invoke it.
23676         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
23677         * modules/localename (Depends-on): Add lock.
23678         Reported by Mike Gran <spk121@yahoo.com>.
23679
23680 2009-12-23  Eric Blake  <ebb9@byu.net>
23681
23682         va-args: new module
23683         * modules/va-args: New file.
23684         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
23685         * MODULES.html.sh (Core language properties): Mention it.
23686
23687         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
23688         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
23689         named alias for __attribute__((__unused__)).
23690         * lib/chown.c: Update client.
23691         * lib/fchmodat.c: Likewise.
23692         * lib/fts.c: Likewise.
23693         * lib/getdate.y: Likewise.
23694         * lib/getgroups.c: Likewise.
23695         * lib/getopt.c: Likewise.
23696         * lib/getugroups.c: Likewise.
23697         * lib/mkdir.c: Likewise.
23698         * lib/mkfifo.c: Likewise.
23699         * lib/mkfifoat.c: Likewise.
23700         * lib/mknod.c: Likewise.
23701         * lib/mknodat.c: Likewise.
23702         * lib/readlink.c: Likewise.
23703         * lib/se-context.in.h: Likewise.
23704         * lib/se-selinux.in.h: Likewise.
23705         * lib/sockets.c: Likewise.
23706         * lib/symlink.c: Likewise.
23707         * lib/symlinkat.c: Likewise.
23708         * lib/unicodeio.c: Likewise.
23709         * lib/unistr.h: Likewise.
23710         * tests/test-areadlink.c: Likewise.
23711         * tests/test-areadlinkat.c: Likewise.
23712         * tests/test-filenamecat.c: Likewise.
23713         * tests/test-fseeko.c: Likewise.
23714         * tests/test-ftello.c: Likewise.
23715         * tests/test-getdate.c: Likewise.
23716         * tests/test-getgroups.c: Likewise.
23717         * tests/test-gethostname.c: Likewise.
23718         * tests/test-quotearg.c: Likewise.
23719         * tests/test-version-etc.c: Likewise.
23720         * tests/test-xalloc-die.c: Likewise.
23721         * tests/test-xfprintf-posix.c: Likewise.
23722         * tests/test-xprintf-posix.c: Likewise.
23723         * tests/test-xvasprintf.c: Likewise.
23724
23725         tests: avoid compiler warnings
23726         * tests/test-fcntl.c (main): Delete unused parameters.
23727         * tests/test-freopen-safer.c (main): Likewise.
23728         * tests/test-xalloc-die.c (main): Mark unused parameters.
23729         * tests/test-fseeko.c (main): Likewise.
23730         * tests/test-ftello.c (main): Likewise.
23731         * tests/test-nanosleep.c (main): Avoid declaration warning.
23732         * tests/test-sleep.c (main): Likewise.
23733         * tests/test-unsetenv.c (main): Silence warning about string
23734         literal.
23735         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
23736
23737 2009-12-23  Bruno Haible  <bruno@clisp.org>
23738
23739         * tests/test-localename.c (test_locale_name): New function, extracted
23740         from main. Also test mixed situations.
23741         (test_locale_name_posix, test_locale_name_environ,
23742         test_locale_name_default): New functions.
23743         (main): Invoke them all.
23744         * modules/localename-tests (configure.ac): Test for newlocale.
23745
23746 2009-12-23  Bruno Haible  <bruno@clisp.org>
23747
23748         unistd: Ensure getcwd gets declared before being overridden.
23749         * lib/unistd.in.h: Conditionally include <io.h>.
23750
23751 2009-12-22  Bruno Haible  <bruno@clisp.org>
23752
23753         wchar: Diagnose broken combination of glibc and gcc versions and flags.
23754         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
23755         (gl_WCHAR_H): Invoke it.
23756         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
23757         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
23758         Reported by Karl Berry <karl@freefriends.org>.
23759
23760 2009-12-22  Eric Blake  <ebb9@byu.net>
23761
23762         math, unistd: avoid redundant includes
23763         * lib/math.in.h (isnan): No need to re-include <math.h>.
23764         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
23765
23766         getsubopt: work around cygwin bug
23767         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
23768         avoid conflicting with system getsubopt.
23769         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
23770         bug.
23771
23772         getopt: synchronize from glibc
23773         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
23774         parameter order.  Adjust all callers.
23775         (_getopt_internal_r, main): Adjust quoting in error messages.
23776         Drop considerations for outdated POSIX 1003.2 error message.
23777         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
23778         callers.
23779         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
23780
23781         test-getopt: test stderr behavior
23782         * modules/getopt-posix-tests (Depends-on): Add dup2.
23783         * tests/test-getopt.c (ASSERT): Avoid stderr.
23784         (main): Move stderr to a temporary file.
23785         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
23786         Instead, add parameter to inform caller if output occurred.
23787         (test_getopt): Adjust all existing tests to expect silence, and
23788         add new tests of leading ":".
23789         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
23790         glibc shortcomings with leading "-:" or "+:" in optstring.
23791         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23792         Likewise.
23793         * doc/posix-functions/getopt.texi (getopt): Likewise.
23794
23795         test-getopt: enhance test
23796         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
23797         supports optind=0.
23798         * tests/test-getopt.c (OPTIND_MIN): Move...
23799         * tests/test-getopt.h (OPTIND_MIN): ...here.
23800         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
23801         Require that optind=0 works, since modern BSD supports it in
23802         addition to optreset, and since coreutils expects it.
23803         (test_getopt_long_only): New test.
23804         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
23805         glibc shortcomings with 'W;', and enforcement of optind=0.
23806         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23807         Likewise.
23808
23809 2009-12-21  Bruno Haible  <bruno@clisp.org>
23810
23811         localename: Improvements for MacOS X and Cygwin.
23812         * lib/localename.h (gl_locale_name_environ): New declaration.
23813         * lib/localename.c (gl_locale_name_environ): New function, extracted from
23814         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
23815         (gl_locale_name_posix): Invoke it.
23816         (gl_locale_name_default): Add comments. Use Windows native API also on
23817         Cygwin.
23818
23819 2009-12-21  Bruno Haible  <bruno@clisp.org>
23820
23821         Update list of Win32 locale ids.
23822         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
23823         (LANG_SAMI): Renamed from LANG_SAAMI.
23824         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
23825         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
23826         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
23827         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
23828         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
23829         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
23830         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
23831         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
23832         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
23833         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
23834         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
23835         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
23836         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
23837         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
23838         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
23839         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
23840         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
23841         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
23842         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
23843         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
23844         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
23845         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
23846         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
23847         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
23848         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
23849         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
23850         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
23851         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
23852         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
23853         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
23854         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
23855         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
23856         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
23857         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
23858         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
23859         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
23860         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
23861         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
23862         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
23863         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
23864         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
23865         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
23866         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
23867         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
23868         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
23869         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
23870         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
23871         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
23872         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
23873         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
23874         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
23875         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
23876         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
23877         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
23878         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
23879         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
23880         Add more languages and countries for Sami, Sorbian. Add more countries
23881         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
23882         for Pashto. Change country for Syriac, Tswana.
23883
23884 2009-12-21  Eric Blake  <ebb9@byu.net>
23885
23886         test-utimens: avoid spurious failure
23887         * tests/test-chown.h (nap): Factor...
23888         * tests/nap.h: ...into new file.
23889         * tests/test-lchown.h (nap): Avoid duplication.
23890         * tests/test-utimens-common.h (nap): Use shared implementation,
23891         necessary on file systems with 1-second resolution.
23892         * modules/chown-tests (Files): Include new file.
23893         * modules/fdutimensat-tests (Files): Likewise.
23894         * modules/futimens-tests (Files): Likewise.
23895         * modules/lchown-tests (Files): Likewise.
23896         * modules/openat-tests (Files): Likewise.
23897         * modules/utimens-tests (Files): Likewise.
23898         * modules/utimensat-tests (Files): Likewise.
23899
23900 2009-12-19  Eric Blake  <ebb9@byu.net>
23901
23902         futimens, utimensat: work around Linux bug
23903         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
23904         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23905         * lib/utimensat.c (rpl_utimensat): Work around it.
23906         * lib/futimens.c (rpl_futimens): Adjust comment.
23907
23908         utimens: work around Linux ctime bug
23909         * lib/utimens.c (detect_ctime_bug): New helper function.
23910         (update_timespec): Differentiate between workaround needed for
23911         this bug vs. what is needed for systems that lack utimensat.
23912         (fdutimens, lutimens): Work around bug.
23913
23914         utimens: check for ctime update
23915         * tests/test-utimens-common.h (check_ctime): Define.
23916         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
23917         * tests/test-futimens.h (test_futimens): Likewise.
23918         * tests/test-lutimens.h (test_lutimens): Likewise.
23919         * doc/posix-functions/futimens.texi (futimens): Document the bug.
23920         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
23921
23922 2009-12-19  Bruno Haible  <bruno@clisp.org>
23923
23924         dprintf-posix: Check against memory leak fixed on 2009-12-15.
23925         * tests/test-dprintf-posix2.sh: New file.
23926         * tests/test-dprintf-posix2.c: New file.
23927         * modules/dprintf-posix-tests (Files): Add them.
23928         (configure.ac): Check for getrlimit and setrlimit.
23929         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
23930
23931 2009-12-19  Bruno Haible  <bruno@clisp.org>
23932
23933         fprintf-posix: Check against memory leak fixed on 2009-12-15.
23934         * tests/test-fprintf-posix3.sh: New file.
23935         * tests/test-fprintf-posix3.c: New file.
23936         * modules/fprintf-posix-tests (Files): Add them.
23937         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
23938
23939 2009-12-19  Eric Blake  <ebb9@byu.net>
23940
23941         dirfd: fix prototype
23942         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
23943         * lib/dirfd.c (dirfd): Likewise.
23944
23945         canonicalize: reduce memory usage
23946         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
23947         allocation to size.
23948         Reported by Solar Designer <solar@openwall.com>.
23949
23950 2009-12-19  Bruno Haible  <bruno@clisp.org>
23951
23952         New module attribute 'Applicability'.
23953         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
23954         * gnulib-tool: New option --extract-applicability.
23955         (func_usage): Document it.
23956         (sed_extract_prog): Recognize it.
23957         (func_get_applicability): New function.
23958         (func_import): Generalize handling of 'link-warning' module.
23959         * modules/link-warning (Applicability): New section.
23960         * modules/arg-nonnull (Applicability): New section.
23961         Repoted by Simon Josefsson <simon@josefsson.org>.
23962
23963 2009-12-19  Bruno Haible  <bruno@clisp.org>
23964
23965         fflush: tweak
23966         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
23967         * lib/fseeko.c (rpl_fseeko): Likewise.
23968
23969 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
23970
23971         * lib/gl_list.h: Fix typo in comment.
23972
23973 2009-12-16  Eric Blake  <ebb9@byu.net>
23974
23975         fcntl: use to simplify other modules
23976         * modules/cloexec (Depends-on): Add fcntl.
23977         * modules/fchdir (Depends-on): Likewise.
23978         * modules/fd-safer-flag (Depends-on): Likewise.
23979         * modules/unistd-safer (Depends-on): Likewise.
23980         * modules/dup3 (configure.ac): Set module indicator.
23981         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
23982         missing.
23983         * lib/fchdir.c (_gl_register_dup): Fix comment.
23984         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
23985         * lib/dup-safer.c (dup_safer): Likewise.
23986         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
23987         * lib/dup3.c (dup3): Likewise.
23988         * tests/test-fchdir.c (main): Enhance test.
23989         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
23990
23991         fcntl: port portions of fcntl to mingw
23992         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
23993         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
23994         replacement for mingw.
23995         * modules/fcntl (Description): Update.
23996         (Depends-on): Add dup2.
23997         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
23998         * modules/fcntl-h (Makefile.am): Substitute it.
23999         * lib/fcntl.in.h (fcntl): Update declaration.
24000         (F_DUPFD, F_GETFD): New macros, when needed.
24001         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
24002         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
24003         * tests/test-fcntl.c (check_flags, main): Enhance test for items
24004         we now guarantee.
24005
24006         fcntl: work around cygwin bug in F_DUPFD
24007         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
24008         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
24009         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
24010         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
24011         * doc/posix-functions/fcntl.texi (fcntl): Document it.
24012
24013         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
24014         * modules/fcntl (Files): List new files.
24015         (configure.ac): Run a test.
24016         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
24017         * lib/fcntl.c (rpl_fcntl): Likewise.
24018         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
24019         (gl_FCNTL_H): Always replace fcntl.h.
24020         * modules/fcntl-h (Makefile.am): Substitute witnesses.
24021         * lib/fcntl.in.h (fcntl): Declare replacement.
24022         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
24023         needed, plus a witness.
24024         * doc/posix-functions/fcntl.texi (fcntl): Document this.
24025         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
24026         * tests/test-fcntl.c: New file.
24027         * modules/fcntl-tests: Likewise.
24028
24029         binary-io: avoid potential compilation warning
24030         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
24031         directives.
24032
24033         fflush: avoid compilation error on NetBSD
24034         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
24035         between off_t and fpos_t, since the latter is sometimes a struct.
24036         * lib/fseeko.c (rpl_fseeko): Likewise.
24037         Reported by Alexander Nasonov <alnsn@yandex.ru>.
24038
24039 2009-12-15  Eric Blake  <ebb9@byu.net>
24040
24041         fcntl-h, stdio, sys_ioctl: fix declarations
24042         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
24043         function must not take arguments.
24044         * lib/sys_ioctl.in.h (ioctl): Likewise.
24045         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
24046         (open): Add a link warning.
24047
24048 2009-12-15  Jim Meyering  <meyering@redhat.com>
24049
24050         areadlink, areadlink-with-size: relax license to LGPLv2+
24051         * modules/areadlink (License): Relax to LGPLv2+.
24052         * modules/areadlink-with-size (License): Likewise.
24053
24054 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
24055             Bruno Haible  <bruno@clisp.org>
24056
24057         *printf: Fix memory leak.
24058         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
24059         * lib/vfprintf.c (vfprintf): Likewise.
24060         * lib/dprintf.c (dprintf): Likewise.
24061         * lib/vdprintf.c (vdprintf): Likewise.
24062
24063 2009-12-14  Eric Blake  <ebb9@byu.net>
24064
24065         accept4: adjust module dependencies
24066         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
24067
24068         utimens: one more try at avoiding compiler warning
24069         * lib/utimens.c (lutimens): Lower scope of result.
24070
24071 2009-12-13  Bruno Haible  <bruno@clisp.org>
24072
24073         Move the malloc checking from module 'list' to new module 'xlist'.
24074         * modules/xlist: New file.
24075         * lib/gl_xlist.h: New file.
24076         * lib/gl_xlist.c: New file.
24077         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
24078         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
24079         gl_list_add_last, gl_list_add_before, gl_list_add_after,
24080         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
24081         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
24082         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
24083         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
24084         gl_sortedlist_nx_add): New declarations.
24085         (struct gl_list_implementation): Rename and change methods accordingly.
24086         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
24087         (gl_list_nx_create): Renamed from gl_list_create.
24088         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
24089         (gl_list_nx_set_at): Renamed from gl_list_set_at.
24090         (gl_list_nx_add_first): Renamed from gl_list_add_first.
24091         (gl_list_nx_add_last): Renamed from gl_list_add_last.
24092         (gl_list_nx_add_before): Renamed from gl_list_add_before.
24093         (gl_list_nx_add_after): Renamed from gl_list_add_after.
24094         (gl_list_nx_add_at): Renamed from gl_list_add_at.
24095         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
24096         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
24097         gl_list_create_empty.
24098         (gl_list_nx_create): Renamed from gl_list_create.
24099         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
24100         (gl_list_nx_set_at): Renamed from gl_list_set_at.
24101         (gl_list_nx_add_first): Renamed from gl_list_add_first.
24102         (gl_list_nx_add_last): Renamed from gl_list_add_last.
24103         (gl_list_nx_add_before): Renamed from gl_list_add_before.
24104         (gl_list_nx_add_after): Renamed from gl_list_add_after.
24105         (gl_list_nx_add_at): Renamed from gl_list_add_at.
24106         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
24107         * lib/gl_array_list.c: Don't include xalloc.h.
24108         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
24109         NULL upon out-of-memory.
24110         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
24111         out-of-memory.
24112         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
24113         Change return type to 'int'.
24114         (gl_array_nx_set_at): Renamed from gl_array_set_at.
24115         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
24116         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
24117         upon out-of-memory.
24118         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
24119         upon out-of-memory.
24120         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
24121         upon out-of-memory.
24122         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
24123         upon out-of-memory.
24124         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
24125         out-of-memory.
24126         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
24127         Update.
24128         (gl_array_list_implementation): Update.
24129         * lib/gl_carray_list.c: Don't include xalloc.h.
24130         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
24131         Return NULL upon out-of-memory.
24132         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
24133         out-of-memory.
24134         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
24135         Change return type to 'int'.
24136         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
24137         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
24138         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
24139         upon out-of-memory.
24140         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
24141         upon out-of-memory.
24142         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
24143         out-of-memory.
24144         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
24145         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
24146         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
24147         Update.
24148         (gl_carray_list_implementation): Update.
24149         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
24150         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
24151         gl_linked_create_empty. Return NULL upon out-of-memory.
24152         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
24153         out-of-memory.
24154         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
24155         Change return type to 'int'. Return -1 upon out-of-memory.
24156         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
24157         out-of-memory.
24158         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
24159         upon out-of-memory.
24160         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
24161         upon out-of-memory.
24162         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
24163         NULL upon out-of-memory.
24164         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
24165         upon out-of-memory.
24166         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
24167         out-of-memory.
24168         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
24169         Update.
24170         * lib/gl_linked_list.c: Don't include xalloc.h.
24171         (gl_linked_list_implementation): Update.
24172         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
24173         (add_to_bucket): Change return type to 'int'.
24174         (gl_linkedhash_list_implementation): Update.
24175         * lib/gl_anytree_list1.h (free_subtree): New function.
24176         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
24177         gl_tree_create_empty. Return NULL upon out-of-memory.
24178         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
24179         Change return type to 'int'. Return -1 upon out-of-memory.
24180         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
24181         out-of-memory.
24182         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
24183         (gl_tree_remove_node): New function, moved here from
24184         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
24185         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
24186         Update.
24187         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
24188         malloc, not xmalloc. Return NULL upon out-of-memory.
24189         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
24190         out-of-memory.
24191         (gl_tree_remove_node_from_tree): New function, extracted from
24192         gl_tree_remove_node.
24193         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
24194         upon out-of-memory.
24195         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
24196         out-of-memory.
24197         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
24198         upon out-of-memory.
24199         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
24200         upon out-of-memory.
24201         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
24202         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
24203         not xmalloc. Return NULL upon out-of-memory.
24204         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
24205         out-of-memory.
24206         (gl_tree_remove_node_from_tree): New function, extracted from
24207         gl_tree_remove_node.
24208         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
24209         upon out-of-memory.
24210         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
24211         out-of-memory.
24212         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
24213         upon out-of-memory.
24214         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
24215         upon out-of-memory.
24216         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
24217         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
24218         gl_anytree_list1.h before gl_anyavltree_list2.h.
24219         (gl_avltree_list_implementation): Update.
24220         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
24221         gl_anytree_list1.h before gl_anyavltree_list2.h.
24222         (gl_rbtree_list_implementation): Update.
24223         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
24224         Change return type to 'int'. Return -1 upon out-of-memory. Use
24225         __builtin_expect.
24226         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
24227         (gl_avltreehash_list_implementation): Update.
24228         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
24229         (gl_rbtreehash_list_implementation): Update.
24230         * modules/array-list (Depends-on): Remove xalloc.
24231         * modules/carray-list (Depends-on): Likewise.
24232         * modules/linked-list (Depends-on): Likewise.
24233         * modules/linkedhash-list (Depends-on): Likewise.
24234         * modules/avltree-list (Depends-on): Likewise.
24235         * modules/rbtree-list (Depends-on): Likewise.
24236         * modules/avltreehash-list (Depends-on): Likewise.
24237         * modules/rbtreehash-list (Depends-on): Likewise.
24238
24239         * modules/xsublist: New file.
24240         * lib/gl_xsublist.h: New file.
24241         * lib/gl_xsublist.c: New file.
24242         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
24243         (gl_sublist_nx_create): New declaration.
24244         * lib/gl_sublist.c: Don't include xalloc.h.
24245         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
24246         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
24247         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
24248         Change return type to 'int'. Return -1 upon out-of-memory.
24249         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
24250         upon out-of-memory.
24251         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
24252         NULL upon out-of-memory.
24253         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
24254         upon out-of-memory.
24255         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
24256         NULL upon out-of-memory.
24257         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
24258         NULL upon out-of-memory.
24259         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
24260         upon out-of-memory.
24261         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
24262         (gl_sublist_list_implementation): Update.
24263         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
24264         upon out-of-memory.
24265         * modules/sublist (Depends-on): Remove xalloc.
24266
24267         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
24268         * tests/test-carray_list.c: Likewise.
24269         * tests/test-linked_list.c: Likewise.
24270         * tests/test-linkedhash_list.c: Likewise.
24271         * tests/test-avltree_list.c: Likewise.
24272         * tests/test-rbtree_list.c: Likewise.
24273         * tests/test-avltreehash_list.c: Likewise.
24274         * tests/test-rbtreehash_list.c: Likewise.
24275         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
24276         * modules/carray-list-tests (Makefile.am): Likewise.
24277         * modules/linked-list-tests (Makefile.am): Likewise.
24278         * modules/linkedhash-list-tests (Makefile.am): Likewise.
24279         * modules/avltree-list-tests (Makefile.am): Likewise.
24280         * modules/rbtree-list-tests (Makefile.am): Likewise.
24281         * modules/avltreehash-list-tests (Makefile.am): Likewise.
24282         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
24283
24284         * NEWS: Mention the changes.
24285
24286         * lib/clean-temp.c: Include gl_xlist.h.
24287         * modules/clean-temp (Depends-on): Add xlist.
24288
24289         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
24290         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
24291
24292         * tests/test-array_oset.c: Include gl_xlist.h.
24293         * modules/array-oset-tests (Depends-on): Add xlist.
24294
24295         Reported by José E. Marchesi <jemarch@gnu.org>.
24296
24297 2009-12-13  Bruno Haible  <bruno@clisp.org>
24298
24299         Move the malloc checking from module 'oset' to new module 'xoset'.
24300         * modules/xoset: New file.
24301         * lib/gl_xoset.h: New file.
24302         * lib/gl_xoset.c: New file.
24303         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
24304         declarations.
24305         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
24306         (struct gl_oset_implementation): Rename and change methods accordingly.
24307         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
24308         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
24309         'int'. Mark as __warn_unused_result__.
24310         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
24311         gl_oset_create_empty.
24312         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
24313         'int'.
24314         * lib/gl_array_oset.c: Don't include xalloc.h.
24315         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
24316         malloc, not xmalloc.
24317         (grow): Change return type to 'int'. Don't call xalloc_die.
24318         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
24319         to 'int'.
24320         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
24321         'int'.
24322         (gl_array_oset_implementation): Update.
24323         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
24324         gl_tree_create_empty.
24325         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
24326         'int'.
24327         * lib/gl_avltree_oset.c: Don't include xalloc.h.
24328         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
24329         xmalloc.
24330         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
24331         not xmalloc.
24332         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
24333         xmalloc.
24334         (gl_avltree_oset_implementation): Update.
24335         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
24336         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
24337         xmalloc.
24338         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
24339         not xmalloc.
24340         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
24341         xmalloc.
24342         (gl_rbtree_oset_implementation): Update.
24343         * modules/array-oset (Depends-on): Remove xalloc.
24344         * modules/avltree-oset (Depends-on): Likewise.
24345         * modules/rbtree-oset (Depends-on): Likewise.
24346         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
24347         * tests/test-avltree_oset.c: Likewise.
24348         * tests/test-rbtree_oset.c: Likewise.
24349         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
24350         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
24351         * modules/rbtree-oset-tests (Makefile.am): Likewise.
24352         * NEWS: Mention the change.
24353
24354 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
24355
24356         maint.mk: allow a project to override release-prep commands
24357         * top/maint.mk (alpha, beta, stable): Move release-preparatory
24358         commands into a new rule.
24359         (release-prep): New rule.
24360         (release-prep-hook): New overridable variable.
24361
24362 2009-12-13  Bruno Haible  <bruno@clisp.org>
24363
24364         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
24365
24366 2009-12-13  Jim Meyering  <meyering@redhat.com>
24367
24368         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
24369         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
24370
24371 2009-12-12  Bruno Haible  <bruno@clisp.org>
24372
24373         duplocale: Tweak.
24374         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
24375
24376 2009-12-12  Karl Berry  <karl@gnu.org>
24377
24378         * config/srclist.txt (strtoll.c): tab changes, no more sync.
24379
24380 2009-12-12  Bruno Haible  <bruno@clisp.org>
24381
24382         * m4/po.m4: Undo incorrect untabification.
24383
24384 2009-12-12  Bruno Haible  <bruno@clisp.org>
24385
24386         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
24387         * modules/c-strtod (Depends-on): Add locale.
24388         * modules/c-strtold (Depends-on): Likewise.
24389
24390 2009-12-12  Bruno Haible  <bruno@clisp.org>
24391
24392         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
24393
24394 2009-12-11  Eric Blake  <ebb9@byu.net>
24395
24396         setenv: relax requirement in light of POSIX ruling
24397         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
24398         not NULL.
24399         * tests/test-setenv.c (main): Relax test.
24400         * tests/test-unsetenv.c (main): Likewise.
24401         * doc/posix-functions/setenv.texi (setenv): Document this.
24402         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
24403
24404 2009-12-11  Bruno Haible  <bruno@clisp.org>
24405
24406         New module 'fd-safer-flag'.
24407         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
24408         * lib/dup-safer.c (dup_safer_flag): Remove function.
24409         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
24410         * lib/fd-safer.c (fd_safer_flag): Remove function.
24411         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
24412         * modules/cloexec (configure.ac): Drop indicator macro.
24413         * modules/fd-safer-flag: New file.
24414         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
24415         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
24416         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
24417
24418 2009-12-11  Bruno Haible  <bruno@clisp.org>
24419
24420         Tests for module 'nl_langinfo'.
24421         * modules/nl_langinfo-tests: New file.
24422         * tests/test-nl_langinfo.sh: New file.
24423         * tests/test-nl_langinfo.c: New file.
24424
24425         New module 'nl_langinfo'.
24426         * lib/nl_langinfo.c: New file.
24427         * m4/nl_langinfo.m4: New file.
24428         * modules/nl_langinfo: New file.
24429         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
24430
24431 2009-12-11  Bruno Haible  <bruno@clisp.org>
24432
24433         Tests for module 'langinfo'.
24434         * modules/langinfo-tests: New file.
24435         * tests/test-langinfo.c: New file.
24436
24437         New module 'langinfo'.
24438         * lib/langinfo.in.h: New file.
24439         * m4/langinfo_h.m4: New file.
24440         * modules/langinfo: New file.
24441         * doc/posix-headers/langinfo.texi: Mention the new module.
24442
24443 2009-12-11  Bruno Haible  <bruno@clisp.org>
24444
24445         * lib/config.charset: Untabify.
24446
24447 2009-12-11  Bruno Haible  <bruno@clisp.org>
24448
24449         * modules/unistd-safer (configure.ac): Drop indicator macro.
24450
24451 2009-12-11  Bruno Haible  <bruno@clisp.org>
24452
24453         Move pipe2-safer code to its own file.
24454         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
24455         * lib/pipe-safer.c (pipe2_safer): Remove function.
24456         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
24457         (Makefile.am): Add it to lib_SOURCES.
24458
24459 2009-12-10  Bruno Haible  <bruno@clisp.org>
24460
24461         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
24462
24463 2009-12-10  Bruno Haible  <bruno@clisp.org>
24464
24465         Declare which arguments expect non-NULL values, for GCC and clang.
24466         * build-aux/arg-nonnull.h: New file.
24467         * modules/arg-nonnull: New file.
24468         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
24469         (inet_ntop, inet_pton): Use it.
24470         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
24471         (closedir, dirfd, opendir, scandir, alphasort): Use it.
24472         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
24473         (open, openat): Use it.
24474         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
24475         (fnmatch): Use it.
24476         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
24477         (getopt, getopt_long, getopt_long_only): Use it.
24478         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
24479         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
24480         Use it.
24481         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
24482         (iconv_open): Use it.
24483         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
24484         (strtoimax, strtoumax): Use it.
24485         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
24486         (duplocale): Use it.
24487         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
24488         (frexp, frexpl): Use it.
24489         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
24490         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
24491         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
24492         (tsearch, tfind, tdelete, twalk): Use it.
24493         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
24494         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
24495         sigpending): Use it.
24496         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
24497         (posix_spawn, posix_spawnp, posix_spawnattr_init,
24498         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
24499         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
24500         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
24501         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
24502         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
24503         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
24504         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
24505         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
24506         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
24507         Use it.
24508         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
24509         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
24510         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
24511         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
24512         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
24513         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
24514         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
24515         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
24516         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
24517         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
24518         strtoull, unsetenv): Use it.
24519         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
24520         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
24521         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
24522         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
24523         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
24524         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
24525         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
24526         (strcasecmp, strncasecmp): Use it.
24527         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
24528         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
24529         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
24530         rpl_setsockopt): Use it.
24531         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
24532         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
24533         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
24534         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
24535         (gettimeofday): Use it.
24536         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
24537         (times): Use it.
24538         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
24539         (uname): Use it.
24540         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
24541         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
24542         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
24543         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
24544         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
24545         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
24546         unlinkat, write): Use it.
24547         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
24548         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
24549         * lib/argv-iter.h: Include arg-nonnull.h.
24550         (_ATTRIBUTE_NONNULL_): Remove macro.
24551         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
24552         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
24553         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
24554         optimization.
24555         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
24556         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
24557         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
24558         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
24559         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
24560         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
24561         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
24562         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
24563         * modules/arpa_inet (Depends-on): Add arg-nonnull.
24564         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
24565         * modules/dirent (Depends-on): Add arg-nonnull.
24566         (Makefile.am): Insert arg-nonnull.h into dirent.h.
24567         * modules/fcntl-h (Depends-on): Add arg-nonnull.
24568         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
24569         * modules/fnmatch (Depends-on): Add arg-nonnull.
24570         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
24571         * modules/getopt-posix (Depends-on): Add arg-nonnull.
24572         (Makefile.am): Insert arg-nonnull.h into getopt.h.
24573         * modules/glob (Depends-on): Add arg-nonnull.
24574         (Makefile.am): Insert arg-nonnull.h into glob.h.
24575         * modules/iconv_open (Depends-on): Add arg-nonnull.
24576         (Makefile.am): Insert arg-nonnull.h into iconv.h.
24577         * modules/inttypes (Depends-on): Add arg-nonnull.
24578         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
24579         * modules/locale (Depends-on): Add arg-nonnull.
24580         (Makefile.am): Insert arg-nonnull.h into locale.h.
24581         * modules/math (Depends-on): Add arg-nonnull.
24582         (Makefile.am): Insert arg-nonnull.h into math.h.
24583         * modules/netdb (Depends-on): Add arg-nonnull.
24584         (Makefile.am): Insert arg-nonnull.h into netdb.h.
24585         * modules/search (Depends-on): Add arg-nonnull.
24586         (Makefile.am): Insert arg-nonnull.h into search.h.
24587         * modules/signal (Depends-on): Add arg-nonnull.
24588         (Makefile.am): Insert arg-nonnull.h into signal.h.
24589         * modules/spawn (Depends-on): Add arg-nonnull.
24590         (Makefile.am): Insert arg-nonnull.h into spawn.h.
24591         * modules/stdio (Depends-on): Add arg-nonnull.
24592         (Makefile.am): Insert arg-nonnull.h into stdio.h.
24593         * modules/stdlib (Depends-on): Add arg-nonnull.
24594         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
24595         * modules/string (Depends-on): Add arg-nonnull.
24596         (Makefile.am): Insert arg-nonnull.h into string.h.
24597         * modules/strings (Depends-on): Add arg-nonnull.
24598         (Makefile.am): Insert arg-nonnull.h into strings.h.
24599         * modules/sys_socket (Depends-on): Add arg-nonnull.
24600         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
24601         * modules/sys_stat (Depends-on): Add arg-nonnull.
24602         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
24603         * modules/sys_time (Depends-on): Add arg-nonnull.
24604         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
24605         * modules/sys_times (Depends-on): Add arg-nonnull.
24606         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
24607         * modules/sys_utsname (Depends-on): Add arg-nonnull.
24608         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
24609         * modules/time (Depends-on): Add arg-nonnull.
24610         (Makefile.am): Insert arg-nonnull.h into time.h.
24611         * modules/unistd (Depends-on): Add arg-nonnull.
24612         (Makefile.am): Insert arg-nonnull.h into unistd.h.
24613         * modules/wchar (Depends-on): Add arg-nonnull.
24614         (Makefile.am): Insert arg-nonnull.h into wchar.h.
24615         * modules/argv-iter (Depends-on): Add arg-nonnull.
24616         * tests/test-canonicalize.c (null_ptr): New function.
24617         (main): Use it.
24618         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
24619         (main): Use it.
24620         * tests/test-memmem.c (null_ptr): New function.
24621         (main): Use it.
24622         Reported by Jim Meyering.
24623
24624 2009-12-10  Bruno Haible  <bruno@clisp.org>
24625
24626         Use spaces for indentation, not tabs.
24627         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
24628         * m4/*.m4: Untabify.
24629         * build-aux/*.h: Untabify.
24630         * tests/**/*.[hc]: Untabify.
24631         * README: New section "Indent with spaces, not TABs", based on
24632         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
24633         * NEWS: Mention the change.
24634
24635 2009-12-10  Bruno Haible  <bruno@clisp.org>
24636
24637         pty test: Fix link error.
24638         * modules/pty-tests (Makefile.am): Add the default LDADD value to
24639         test_pty_LDADD.
24640
24641 2009-12-07  Simon Josefsson  <simon@josefsson.org>
24642
24643         * modules/pty: New file.
24644         * modules/pty-tests: New file.
24645         * m4/pty.m4: New file.
24646         * tests/test-pty.c: New file.
24647         * doc/glibc-headers/pty.texi: Modified.
24648         * doc/glibc-functions/forkpty.texi: Modified.
24649         * doc/glibc-functions/openpty.texi: Modified.
24650
24651 2009-12-10  Bruno Haible  <bruno@clisp.org>
24652
24653         Avoid syntax error in C++ mode.
24654         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
24655
24656 2009-12-10  Bruno Haible  <bruno@clisp.org>
24657
24658         Use sed with option -e.
24659         * gnulib-tool (func_version, func_emit_copyright_notice,
24660         func_emit_initmacro_end, func_import, func_create_testdir): Pass
24661         option -e to sed.
24662         * modules/link-warning (Makefile.am): Likewise.
24663
24664 2009-12-10  Jim Meyering  <meyering@redhat.com>
24665
24666         mgetgroups: do not write bytes beyond end of malloc'd buffer
24667         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
24668         username, we call getgroups with a one-element-shorter buffer,
24669         but still told it the length was original, max_n_groups.
24670
24671 2009-12-09  Eric Blake  <ebb9@byu.net>
24672
24673         cloexec: relax license
24674         * modules/cloexec (Maintainer): Add myself.
24675         (License): Use LGPL, not GPL.
24676
24677         link-warning: optimize generation
24678         * modules/link-warning (Makefile.am): Reduce process usage.
24679
24680 2009-12-09  Bruno Haible  <bruno@clisp.org>
24681
24682         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
24683         workaround was added on 2009-11-17.
24684
24685 2009-12-09  Jim Meyering  <meyering@redhat.com>
24686             Bruno Haible  <bruno@clisp.org>
24687
24688         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
24689         * modules/link-warning (Makefile.am): Make the comment-removing sed
24690         command more robust in the face of bootstrap-prepended comment lines.
24691
24692 2009-12-09  Bruno Haible  <bruno@clisp.org>
24693
24694         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
24695         most one group.
24696
24697 2009-12-09  Simon Josefsson <simon@josefsson.org>
24698             Bruno Haible  <bruno@clisp.org>
24699
24700         * build-aux/link-warning.h: Add copyright notice.
24701         * modules/link-warning (Makefile.am): Generate link-warning.h from
24702         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
24703         * NEWS: Mention change in link-warning module.
24704         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
24705         * modules/dirent (Makefile.am): Add dependency to dirent.h.
24706         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
24707         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
24708         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
24709         * modules/math (Makefile.am): Add dependency to math.h.
24710         * modules/search (Makefile.am): Add dependency to search.h.
24711         * modules/signal (Makefile.am): Add dependency to signal.h.
24712         * modules/spawn (Makefile.am): Add dependency to spawn.h.
24713         * modules/stdio (Makefile.am): Add dependency to stdio.h.
24714         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
24715         * modules/string (Makefile.am): Add dependency to string.h.
24716         * modules/strings (Makefile.am): Add dependency to strings.h.
24717         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
24718         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
24719         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
24720         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
24721         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
24722         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
24723         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
24724         * modules/unistd (Makefile.am): Add dependency to unistd.h.
24725         * modules/wchar (Makefile.am): Add dependency to wchar.h.
24726
24727 2009-12-09  Bruno Haible  <bruno@clisp.org>
24728
24729         fchdir: Optimize away rpl_fstat when possible.
24730         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
24731         REPLACE_OPEN_DIRECTORY.
24732         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
24733
24734 2009-12-09  Bruno Haible  <bruno@clisp.org>
24735
24736         * lib/fchdir.c: Update comment.
24737
24738 2009-12-09  Bruno Haible  <bruno@clisp.org>
24739
24740         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
24741
24742 2009-12-08  Eric Blake  <ebb9@byu.net>
24743
24744         fchdir: avoid memory leak on re-registration.
24745         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
24746
24747 2009-12-08  Jim Meyering  <meyering@redhat.com>
24748
24749         init.sh: avoid Solaris 10 /bin/sh portability problem
24750         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
24751         sourced script:
24752           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
24753           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
24754           bar
24755         tests/init.sh relied on that, accepting a --set-path=DIR argument,
24756         and two tests used that idiom.
24757         * tests/init.sh: Update suggested usage comments.
24758         (path_prepend_): New function, to be used in place
24759         of the --src-path=DIR option.
24760         (setup_): Move PATH-prepending code into path_prepend_.
24761         * tests/test-pread.sh: Adapt to new usage.
24762         * tests/test-xalloc-die.sh: Likewise.
24763
24764 2009-12-08  Simon Josefsson  <simon@josefsson.org>
24765
24766         * doc/gnulib.texi (Glibc pty.h): Add.
24767         * doc/glibc-functions/forkpty.texi: Add.
24768         * doc/glibc-functions/openpty.texi: Add.
24769         Suggested by Bruno Haible.
24770
24771 2009-12-08  Eric Blake  <ebb9@byu.net>
24772
24773         fchdir: fix logic bugs
24774         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
24775         * tests/test-fchdir.c (main): Enhance test.
24776         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
24777         is in use.
24778
24779         dup2: fix logic bugs
24780         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
24781         REPLACE_DUP2 to decide when rpl_dup2 is needed.
24782         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
24783         exists.
24784         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
24785
24786 2009-12-07  Eric Blake  <ebb9@byu.net>
24787
24788         unlink: fix m4 detection
24789         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
24790
24791         unistd-safer: add unit test
24792         * modules/unistd-safer-tests: New file.
24793         * tests/test-dup-safer.c: Likewise.
24794         * tests/test-cloexec.c (setmode): Avoid compiler warning.
24795         * tests/test-dup2.c (setmode): Likewise.
24796         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
24797
24798         cloexec: preserve text vs. binary across dup_cloexec
24799         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
24800         mode.
24801         * modules/dup2-tests (Depends-on): Add binary-io.
24802         * modules/cloexec-tests (Depends-on): Likewise.
24803         * tests/test-dup2.c (setmode, is_mode): New helpers.
24804         (main): Add tests that translation mode is preserved.
24805         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
24806         Reported by Bruno Haible.
24807
24808         mgetgroups: reduce duplicate listings
24809         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
24810         resulting array.
24811         * tests/test-chown.h (test_chown): Simplify client.
24812         * tests/test-lchown.h (test_lchown): Likewise.
24813
24814 2009-12-06  Bruno Haible  <bruno@clisp.org>
24815
24816         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
24817         value.
24818
24819 2009-12-06  Bruno Haible  <bruno@clisp.org>
24820
24821         * lib/progname.c: Include stdio.h, stdlib.h.
24822         (set_program_name): Reject a NULL argument.
24823
24824 2009-12-05  Eric Blake  <ebb9@byu.net>
24825
24826         pipe2-safer: new module
24827         * modules/pipe2-safer: New file.
24828         * lib/unistd-safer.h (pipe2_safer): New prototype.
24829         * lib/unistd--.h (pipe2): New wrapper.
24830         * lib/pipe-safer.c (pipe2_safer): New function.
24831         * modules/pipe (Depends-on): Add pipe2-safer.
24832         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
24833
24834         stdlib-safer: preserve cloexec flag for mkostemp[s]
24835         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
24836         fd_safer_flag.
24837
24838         unistd-safer: allow preservation of cloexec status via flag
24839         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
24840         prototypes.
24841         * lib/dup-safer.c (dup_safer_flag): New function.
24842         * lib/fd-safer.c (fd_safer_flag): Likewise.
24843         * modules/cloexec (configure.ac): Set witness.
24844
24845         test-dup2: enhance test
24846         * modules/dup2-tests (Depends-on): Add cloexec.
24847         * tests/test-dup2.c (main): Enhance test.
24848
24849         cloexec: add dup_cloexec
24850         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
24851         header and comments.
24852         * lib/cloexec.c (set_cloexec_flag): Add comments.
24853         (dup_cloexec): New function, with mingw implementation borrowed
24854         from...
24855         * lib/w32spawn.h (dup_noinherit): ...here.
24856         * modules/execute (Depends-on): Add cloexec.
24857         * modules/pipe (Depends-on): Likewise.
24858         * modules/cloexec (Depends-on): Add dup2.
24859         * modules/cloexec-tests (Files): New file.
24860         * tests/test-cloexec.c: Likewise.
24861
24862         test-xalloc-die: fix test for mingw
24863         * modules/xalloc-die-tests (Files): Add tests/init.sh.
24864         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
24865         directory and .exe suffix off argv[0] output.
24866
24867         test-fseeko: fix test for mingw
24868         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
24869         than undefining fseek, so test will pass on mingw.
24870
24871 2009-12-05  Bruno Haible  <bruno@clisp.org>
24872
24873         * lib/progname.h (set_program_name): Clarify specification.
24874         * lib/progname.c (set_program_name): Likewise.
24875         Reported by Jim Meyering.
24876
24877 2009-12-05  Jim Meyering  <meyering@redhat.com>
24878
24879         maint.mk: backslash-escape parens in default regexp
24880         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
24881         backslash-escape the literal parentheses.
24882
24883         maint.mk: news-date-check: use grep -E
24884         * top/maint.mk (today): Define a Make variable, not a...
24885         (news-date-check): ...shell variable.
24886         (news-date-regexp): Use the Make variable.
24887         Use grep's -E option.  Change the failing diagnostic to mention
24888         the variable, $(news-date-regexp).
24889
24890 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
24891
24892         maintainer-makefile: allow customization of NEWS entry format
24893         * top/maint.mk (news-date-regexp): New overridable variable.
24894         (news-date-check): Use it.
24895
24896 2009-12-04  Eric Blake  <ebb9@byu.net>
24897
24898         mgetgroups: add xgetgroups, and avoid ENOSYS failures
24899         * lib/mgetgroups.h (xgetgroups): New prototype.
24900         * lib/mgetgroups.c (xgetgroups): New wrapper.
24901         (mgetgroups): Handle ENOSYS.
24902         * modules/mgetgroups (Depends-on): Add realloc.
24903         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
24904
24905         mgetgroups: avoid argument promotion issues with -1
24906         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
24907         for invalid gid_t.
24908         * tests/test-chown.h (getegid, test_chown): Likewise.
24909         * tests/test-lchown.h (getegid, test_lchown): Likewise.
24910
24911 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
24912
24913         exclude: Fix header file problems.
24914         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
24915
24916 2009-12-01  Jim Meyering  <meyering@redhat.com>
24917
24918         fts: fts_open: do not let an empty string cause immediate failure
24919         This is required in support of GNU rm, for which the command
24920         "rm A '' B" must process and remove both A and B, in spite of
24921         the empty string argument.
24922         * lib/fts.c (fts_open): Do not let the presence of an empty string
24923         cause fts_open to fail immediately.  Most fts-using tools must be
24924         able to process all arguments, in order, and can be expected to
24925         diagnose such arguments themselves.
24926
24927 2009-11-30  Eric Blake  <ebb9@byu.net>
24928
24929         utimens: fix compilation error
24930         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
24931         Declare variable at right scope.
24932
24933 2009-11-29  Jim Meyering  <meyering@redhat.com>
24934
24935         bootstrap: handle perl-5.11's changed --version output
24936         * build-aux/bootstrap (get_version): Handle perl separately,
24937         since perl-5.11's --version output is different.
24938
24939 2009-11-28  Jim Meyering  <meyering@redhat.com>
24940
24941         userspec: depend on the inttostr module, too
24942         * modules/userspec (Depends-on): Add inttostr.
24943
24944         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
24945         * lib/userspec.c (parse_with_separator): Do not accept a user ID
24946         number of MAXUID when it evaluates to (uid_t) -1.
24947         Likewise for group ID.  Reported by Matt McCutchen in
24948         <http://savannah.gnu.org/bugs/?28113>
24949
24950         userspec: reformat to use spaces, not TABs
24951         * lib/userspec.c: Expand TABs to spaces.
24952         Add Emacs' "indent-tabs-mode: nil" hint.
24953
24954 2009-11-27  Eric Blake  <ebb9@byu.net>
24955
24956         getopt-gnu: flush out another BSD bug
24957         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
24958         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
24959         flush out BSD bug.
24960         * tests/test-getopt.h (test_getopt): End lists with NULL.
24961         * tests/test-getopt_long.h (test_getopt_long): Likewise.
24962         (test_getopt_long_posix): Enhance test.
24963         * modules/getopt-posix-tests (Depends-on): Add stdbool.
24964         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
24965         getopt-gnu.
24966         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24967         Likewise.
24968
24969 2009-11-27  Simon Josefsson  <simon@josefsson.org>
24970
24971         * modules/idpriv-droptemp-tests (Notice): Fix text.
24972
24973 2009-11-27  Jim Meyering  <meyering@redhat.com>
24974
24975         test-xalloc-die: avoid spurious failure due to libtool argv difference
24976         In a libtool-enabled project, this test would fail due to a difference
24977         in the emitted program name, e.g.,
24978         -test-xalloc-die: memory exhausted
24979         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
24980         Use program to avoid that.
24981         * modules/xalloc-die-tests (Depends-on): Add progname.
24982         * tests/test-xalloc-die.c: Include progname.h".
24983         (program_name): Remove decl.
24984         (main): Call set_program_name.
24985         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
24986
24987 2009-11-26  Richard Jones  <rjones@redhat.com>
24988
24989         w32sock: leave win32 error in place.
24990         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
24991
24992 2009-11-26  Eric Blake  <ebb9@byu.net>
24993
24994         init.sh: suggest to use skip_ and fail_ functions in comments
24995         * tests/init.sh: Add a sentence.
24996
24997 2009-11-25  Bruno Haible  <bruno@clisp.org>
24998
24999         init.sh: add documentation in comments
25000         * tests/init.sh: Add some developer and user documentation.
25001
25002 2009-11-26  Jim Meyering  <meyering@redhat.com>
25003
25004         init.sh: accommodate even those who specify bogus srcdir manually
25005         * tests/init.sh: Normally, srcdir is guaranteed by automake and
25006         configure-time tests to be sanitized, so that there is no need to
25007         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
25008         (with no double quotes) suffices.  However, since tests may be
25009         invoked manually, and since you may explicitly set srcdir to the
25010         name of a directory containing spaces, do quote its uses here.
25011         * tests/test-pread.sh: Likewise.
25012         Suggested by Bruno Haible.
25013
25014         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
25015         * tests/test-pread.sh: Write no data into the pipe, because
25016         test-pread actually reads none.  This avoids a diagnostic,
25017         "bash: echo: write error: Broken pipe", that arises in the unusual
25018         event something is ignoring SIGPIPE, and might be interpreted
25019         as some sort of failure.  Reported by Bruno Haible.
25020
25021 2009-11-25  Jim Meyering  <meyering@redhat.com>
25022
25023         test-pread: cover failure with ESPIPE and EINVAL
25024         * tests/test-pread.c (main): Test for failure, too.
25025         * tests/test-pread.sh: Invoke with stdin on a pipe.
25026         Suggested by Eric Blake.
25027
25028         pread: improvement and fix
25029         * modules/pread (Depends-on): Depend on lseek, for portability to
25030         e.g., mingw.  Suggested by Eric Blake.
25031         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
25032
25033         unistd.in.h: correct declaration of pread
25034         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
25035         Reported by Richard W.M. Jones.
25036
25037         test-pread.sh: distribute the test script
25038         * modules/pread-tests (Files): Include test-pread.sh.
25039
25040         test-pread.sh: clean up
25041         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
25042         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
25043         That is unnecessary, since it's always ".".
25044         Suggestion from Eric Blake.
25045
25046         test-pread.sh: make executable
25047         * tests/test-pread.sh: Set executable bit.
25048         Reported by Eric Blake.
25049
25050         correct typo in test-pread.sh
25051         * tests/test-pread.sh: Add #! line.
25052
25053         test pread
25054         * tests/test-pread.c: New file.
25055         * tests/test-pread.sh: Likewise.
25056         * modules/pread-tests: Likewise.
25057
25058         pread: new module
25059         * modules/pread: New file.
25060         * lib/unistd.in.h (pread): Define/declare.
25061         * lib/pread.c (pread): New file.
25062         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
25063         * modules/unistd (Makefile.am): Substitute witnesses.
25064         * doc/posix-functions/pread.texi (pread): Update.
25065         * MODULES.html.sh: Add pread.
25066
25067 2009-11-25  Jim Meyering  <meyering@redhat.com>
25068
25069         tests/init.sh: new file to be used via most *.sh tests
25070         * tests/init.sh: New file.
25071
25072 2009-11-25  Eric Blake  <ebb9@byu.net>
25073
25074         utimens: work around older Linux failure with symlinks
25075         * lib/utimens.c (lutimensat_works_really): New variable.
25076         (fdutimens, lutimens): Use it to manage kernels that support
25077         nanosecond times on files, but not on symlinks.
25078         Reported by OndÅ™ej Vašík.
25079
25080         utimes: fix configure grammar
25081         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
25082
25083 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
25084
25085         regex: Fix fastmap for multibyte character ranges.
25086         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
25087         characters when a multibyte character range is included.
25088
25089 2009-11-22  Andy Wingo  <wingo@pobox.com>
25090
25091         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
25092         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
25093
25094 2009-11-24  Bruno Haible  <bruno@clisp.org>
25095
25096         doc: Most *_l functions exist in MacOS X 10.5.
25097         * doc/posix-functions/duplocale.texi: Update platforms list.
25098         * doc/posix-functions/freelocale.texi: Likewise.
25099         * doc/posix-functions/newlocale.texi: Likewise.
25100         * doc/posix-functions/uselocale.texi: Likewise.
25101         * doc/posix-functions/isalnum_l.texi: Likewise.
25102         * doc/posix-functions/isalpha_l.texi: Likewise.
25103         * doc/posix-functions/isblank_l.texi: Likewise.
25104         * doc/posix-functions/iscntrl_l.texi: Likewise.
25105         * doc/posix-functions/isdigit_l.texi: Likewise.
25106         * doc/posix-functions/isgraph_l.texi: Likewise.
25107         * doc/posix-functions/islower_l.texi: Likewise.
25108         * doc/posix-functions/isprint_l.texi: Likewise.
25109         * doc/posix-functions/ispunct_l.texi: Likewise.
25110         * doc/posix-functions/isspace_l.texi: Likewise.
25111         * doc/posix-functions/isupper_l.texi: Likewise.
25112         * doc/posix-functions/iswalnum_l.texi: Likewise.
25113         * doc/posix-functions/iswalpha_l.texi: Likewise.
25114         * doc/posix-functions/iswblank_l.texi: Likewise.
25115         * doc/posix-functions/iswcntrl_l.texi: Likewise.
25116         * doc/posix-functions/iswctype_l.texi: Likewise.
25117         * doc/posix-functions/iswdigit_l.texi: Likewise.
25118         * doc/posix-functions/iswgraph_l.texi: Likewise.
25119         * doc/posix-functions/iswlower_l.texi: Likewise.
25120         * doc/posix-functions/iswprint_l.texi: Likewise.
25121         * doc/posix-functions/iswpunct_l.texi: Likewise.
25122         * doc/posix-functions/iswspace_l.texi: Likewise.
25123         * doc/posix-functions/iswupper_l.texi: Likewise.
25124         * doc/posix-functions/iswxdigit_l.texi: Likewise.
25125         * doc/posix-functions/isxdigit_l.texi: Likewise.
25126         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
25127         * doc/posix-functions/strcasecmp_l.texi: Likewise.
25128         * doc/posix-functions/strcoll_l.texi: Likewise.
25129         * doc/posix-functions/strfmon_l.texi: Likewise.
25130         * doc/posix-functions/strftime_l.texi: Likewise.
25131         * doc/posix-functions/strncasecmp_l.texi: Likewise.
25132         * doc/posix-functions/strxfrm_l.texi: Likewise.
25133         * doc/posix-functions/tolower_l.texi: Likewise.
25134         * doc/posix-functions/toupper_l.texi: Likewise.
25135         * doc/posix-functions/towctrans_l.texi: Likewise.
25136         * doc/posix-functions/towlower_l.texi: Likewise.
25137         * doc/posix-functions/towupper_l.texi: Likewise.
25138         * doc/posix-functions/wcscoll_l.texi: Likewise.
25139         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
25140         * doc/posix-functions/wctrans_l.texi: Likewise.
25141         * doc/posix-functions/wctype_l.texi: Likewise.
25142         * doc/glibc-functions/strptime_l.texi: Likewise.
25143         * doc/glibc-functions/strtod_l.texi: Likewise.
25144         * doc/glibc-functions/strtof_l.texi: Likewise.
25145         * doc/glibc-functions/strtol_l.texi: Likewise.
25146         * doc/glibc-functions/strtold_l.texi: Likewise.
25147         * doc/glibc-functions/strtoll_l.texi: Likewise.
25148         * doc/glibc-functions/strtoul_l.texi: Likewise.
25149         * doc/glibc-functions/strtoull_l.texi: Likewise.
25150         * doc/glibc-functions/wcsftime_l.texi: Likewise.
25151         * doc/glibc-functions/wcstod_l.texi: Likewise.
25152         * doc/glibc-functions/wcstof_l.texi: Likewise.
25153         * doc/glibc-functions/wcstol_l.texi: Likewise.
25154         * doc/glibc-functions/wcstold_l.texi: Likewise.
25155         * doc/glibc-functions/wcstoll_l.texi: Likewise.
25156         * doc/glibc-functions/wcstoul_l.texi: Likewise.
25157         * doc/glibc-functions/wcstoull_l.texi: Likewise.
25158
25159 2009-11-24  Bruno Haible  <bruno@clisp.org>
25160
25161         duplocale: Fix logic bug.
25162         * lib/duplocale.c: Don't include <langinfo.h>.
25163         (_NL_LOCALE_NAME): Remove macro.
25164         (rpl_duplocale): Use setlocale instead of nl_langinfo.
25165         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
25166
25167 2009-11-23  Jim Meyering  <meyering@redhat.com>
25168
25169         test-update-copyright: don't hard-code /usr/bin/perl
25170         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
25171         perl to print the current year.  Gilles Espinasse reported that
25172         the replaced use of perl was hard-coded as /usr/bin/perl.
25173
25174 2009-11-23  Bruno Haible  <bruno@clisp.org>
25175
25176         duplocale: Add support for glibc 2.3.x.
25177         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
25178
25179 2009-11-22  Bruno Haible  <bruno@clisp.org>
25180
25181         vasnprintf: Tiny optimization.
25182         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
25183         MacOS X.
25184
25185 2009-11-22  Bruno Haible  <bruno@clisp.org>
25186
25187         Tests for module 'duplocale'.
25188         * modules/duplocale-tests: New file.
25189         * tests/test-duplocale.c: New file.
25190
25191         New module 'duplocale'.
25192         * m4/duplocale.m4: New file.
25193         * lib/locale.in.h (duplocale): New declaration.
25194         * lib/duplocale.c: New file.
25195         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
25196         gl_LOCALE_H_DEFAULTS): New macros.
25197         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
25198         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
25199         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
25200         REPLACE_DUPLOCALE.
25201         * modules/duplocale: New file.
25202         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
25203
25204 2009-11-22  Bruno Haible  <bruno@clisp.org>
25205
25206         * modules/locale-tests (configure.ac): Test for newlocale function.
25207         * tests/test-locale.c: When the system has extended locale functions,
25208         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
25209
25210         locale: Make locale_t available when possible.
25211         * lib/locale.in.h: Include <xlocale.h> when it exists.
25212         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
25213         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
25214         * modules/locale (Depends-on): Add extensions.
25215         (Makefile.am): Also substitute HAVE_XLOCALE_H.
25216         * doc/posix-headers/locale.texi: Document the problem with locale_t.
25217
25218 2009-11-22  Bruno Haible  <bruno@clisp.org>
25219
25220         Add comments.
25221         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
25222         invocation.
25223         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
25224         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
25225         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
25226
25227 2009-11-22  Bruno Haible  <bruno@clisp.org>
25228
25229         error: account for the possibility of freopen (stdout).
25230         * lib/error.c: Include <unistd.h>.
25231         (flush_stdout): New function, extracted from error and error_at_line.
25232         Determine stdout's fd dynamically.
25233         (error, error_at_line): Invoke flush_stdout.
25234         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
25235         * modules/error (Depends-on): Add unistd.
25236
25237 2009-11-22  Bruno Haible  <bruno@clisp.org>
25238
25239         diffseq: Add comment.
25240         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
25241
25242 2009-11-22  Jim Meyering  <meyering@redhat.com>
25243
25244         c-stack: avoid defining an unused static function
25245         * lib/c-stack.c (find_stack_direction): Do not define this function
25246         when it will not be used.
25247
25248         diffseq: avoid spurious gcc warnings
25249         * lib/diffseq.h (IF_LINT2): Define.
25250         (compareseq): Use it to initialize two members of "part".
25251         This avoids two used-uninitialized warnings.
25252
25253 2009-11-21  Jim Meyering  <meyering@redhat.com>
25254
25255         c-stack: avoid "ignoring return value of `write'" warning
25256         * lib/c-stack.c: Include "ignore-value.h".
25257         (die): Explicitly ignore each write return value.
25258         * modules/c-stack (Depends-on): Add ignore-value.
25259
25260 2009-11-21  Bruno Haible  <bruno@clisp.org>
25261
25262         diffseq: reduce scope of variable 'best'.
25263         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
25264         variable, earlier used for two different purposes.
25265
25266 2009-11-21  Jim Meyering  <meyering@redhat.com>
25267
25268         diffseq: remove useless assignment to "best"
25269         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
25270         assignment.  At that point "best" is already guaranteed to be zero.
25271
25272 2009-11-20  Eric Blake  <ebb9@byu.net>
25273
25274         build: mention ftp redirector in release announcements
25275         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
25276         values that used to come from cfg.mk; mention FTP redirect URL.
25277         * build-aux/announce-gen: Mention the mirror list.
25278         Suggested by Karl Berry.
25279
25280         nanosleep: improve port to mingw
25281         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
25282         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
25283         LIB_NANOSLEEP, but only when needed.
25284         * modules/select (Link): Document LIBSOCKET.
25285         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
25286         enough.
25287
25288         nanosleep: work around cygwin bug
25289         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
25290         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
25291         bug.
25292         (getnow): Delete, not needed.
25293         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
25294         LIB_CLOCK_GETTIME.
25295         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
25296         clock-time, gettime.
25297         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
25298         bug.
25299         * modules/nanosleep-tests: New test.
25300         * tests/test-nanosleep.c: New file.
25301
25302         sleep: work around cygwin bug
25303         * lib/sleep.c (rpl_sleep): Work around the bug.
25304         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
25305         (gl_PREREQ_SLEEP): Delete unused macro.
25306         * modules/sleep (Depends-on): Add verify.
25307         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
25308         * modules/unistd (Makefile.am): Substitute witness.
25309         * lib/unistd.in.h (sleep): Update prototype.
25310         * doc/posix-functions/sleep.texi (sleep): Document the bug.
25311         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
25312         * modules/sleep-tests (Depends-on): Check for alarm.
25313
25314 2009-11-20  Jim Meyering  <meyering@redhat.com>
25315
25316         maint.mk: improve sc_prohibit_magic_number_exit
25317         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
25318         so it does not match uses like System.exit(1).
25319         Add comments showing how to correct all offenders.
25320
25321 2009-11-19  Eric Blake  <ebb9@byu.net>
25322
25323         xalloc-die-tests: add missing library
25324         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
25325
25326         test-xvasprintf: silence compiler warnings
25327         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
25328         empty string from gcc.
25329
25330 2009-11-19  Jim Meyering  <meyering@redhat.com>
25331
25332         xfreopen: new module, from coreutils
25333         * modules/xfreopen: New module.
25334         * lib/xfreopen.c: New file.
25335         * lib/xfreopen.h: New file.
25336         * MODULES.html.sh (File stream based Input/Output"): Add it.
25337
25338 2009-11-19  Eric Blake  <ebb9@byu.net>
25339
25340         manywarnings: depend on warnings
25341         * modules/manywarnings (Depends-on): Add warnings.
25342
25343         build: avoid compiler warnings
25344         * lib/select.c (rpl_select): Delete unused variable.
25345         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
25346
25347 2009-11-18  Eric Blake  <ebb9@byu.net>
25348
25349         tests: avoid false negative with --with-packager
25350         * tests/test-version-etc.sh: Discard packager information.
25351         * tests/test-argp-version-etc-1.sh: Likewise.
25352         Reported by Mike Frysinger.
25353
25354         utimens: fix regression on Solaris
25355         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
25356         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
25357         can only change fd timestamps via futimesat.  Instead, use an
25358         additional witness macro to avoid BSD bug.
25359         Reported by Jim Meyering.
25360
25361 2009-11-17  Eric Blake  <ebb9@byu.net>
25362
25363         usleep: use it to simplify tests
25364         * modules/stat-time-tests (Depends-on): Add usleep.
25365         (configure.ac): Drop usleep check.
25366         * modules/chown-tests (Depends-on, configure.ac): Likewise.
25367         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
25368         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
25369         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
25370         * modules/openat-tests (Depends-on, configure.ac): Likewise.
25371         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
25372         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
25373         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
25374         Likewise.
25375         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
25376         * tests/test-lchown.h (nap): Likewise.
25377         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
25378         * tests/test-stat-time.c (nap): Likewise.
25379         * tests/test-utimens-common.h (nap): Update comments.
25380
25381         usleep: new module
25382         * modules/usleep: New file.
25383         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
25384         * lib/usleep.c (usleep): Likewise.
25385         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
25386         * modules/unistd (Makefile.am): Substitute witnesses.
25387         * lib/unistd.in.h (usleep): Add declaration.
25388         * doc/pastposix-functions/usleep.texi (usleep): Document this.
25389         * MODULES.html.sh (Date and time): Likewise.
25390         * modules/usleep-tests (Depends-on): New test.
25391         * tests/test-usleep.c: New file.
25392
25393         chown: work around OpenBSD bug
25394         * lib/chown.c (rpl_chown): Work around the bug.
25395         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
25396         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
25397         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
25398         * modules/chown (Depends-on): Add stdbool.
25399         * modules/lchown (Depends-on): Likewise.
25400         * doc/posix-functions/chown.texi (chown): Document the bug.
25401         * doc/posix-functions/lchown.texi (lchown): Likewise.
25402         * tests/test-lchown.h (test_chown): Relax test.
25403
25404         mkstemp: avoid conflict with C++ keyword template
25405         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
25406         * lib/mkostemp.c (mkostemp): Likewise.
25407         * lib/mkostemps.c (mkostemps): Likewise.
25408         * lib/mkstemp.c (mkstemp): Likewise.
25409         * lib/mkstemps.c (mkstemps): Likewise.
25410
25411         xalloc-die-tests: optimize
25412         * tests/test-xalloc-die.sh: Reduce number of processes.
25413
25414 2009-11-17  Simon Josefsson  <simon@josefsson.org>
25415
25416         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
25417         patch from ludo@gnu.org (Ludovic Courtès).
25418
25419 2009-11-17  Jim Meyering  <meyering@redhat.com>
25420
25421         version-etc: use proper license string
25422         * modules/version-etc (License): Use LGPL, not LGPLv3+.
25423         * modules/version-etc-fsf: Likewise.
25424
25425 2009-11-17  Simon Josefsson  <simon@josefsson.org>
25426
25427         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
25428         printed to stdout.  Deal with EOL differences.
25429
25430 2009-11-17  Eric Blake  <ebb9@byu.net>
25431
25432         unsetenv: work around Solaris bug
25433         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
25434         * lib/unsetenv.c (rpl_unsetenv): Work around it.
25435         Reported by Jim Meyering.
25436
25437         vasnprintf: avoid compiler warnings
25438         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
25439         variables.
25440         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
25441
25442 2009-11-17  Simon Josefsson  <simon@josefsson.org>
25443
25444         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
25445         settings since xalloc-die is no longer the self test,
25446         xalloc-die.sh is.
25447
25448 2009-11-17  Jim Meyering  <meyering@redhat.com>
25449
25450         test-xalloc-die.sh: make the code agree with the commit log
25451         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
25452         at the end, just in case you happen to have a test-xalloc-die
25453         program in some other PATH directory.
25454
25455         test-xalloc-die.sh: fix a portability bug
25456         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
25457         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
25458         Otherwise, argv[0] (as often seen in diagnostics) would be too
25459         system-dependent, sometimes with, and sometimes without the leading "./".
25460
25461         version-etc-fsf: relax license to LGPLv3+
25462         * modules/version-etc-fsf (License): Relax license.
25463
25464 2009-11-16  Eric Blake  <ebb9@byu.net>
25465
25466         xalloc-die-tests: avoid printing null pointer
25467         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
25468         shell script.
25469         * tests/test-xalloc-die.c (program_name): Declare.
25470         * tests/test-xalloc-die.sh (tmpfiles): New file.
25471
25472         setenv, unsetenv: work around various bugs
25473         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
25474         (setenv) [HAVE_SETENV]: Work around bugs.
25475         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
25476         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
25477         for bugs.
25478         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
25479         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
25480         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
25481         * modules/stdlib (Makefile.am): Update substitutions.
25482         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
25483         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
25484         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
25485         * modules/setenv-tests: New test.
25486         * modules/unsetenv-tests: Likewise.
25487         * tests/test-setenv.c: New file.
25488         * tests/test-unsetenv.c: Likewise.
25489
25490 2009-11-16  Jim Meyering  <meyering@redhat.com>
25491
25492         version-etc: relax license to LGPLv3+
25493         * modules/version-etc (License): Relax license.
25494
25495         better AC_REQUIRE expanded-before-required-warning avoidance
25496         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
25497         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
25498         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
25499         which is no longer needed.
25500
25501 2009-11-16  Eric Blake  <ebb9@byu.net>
25502
25503         test-freading: clean up temporary file
25504         * tests/test-freading.c (main): Remove file on success, and use
25505         ASSERT more liberally.
25506         Reported by Jim Meyering.
25507
25508 2009-11-16  Jim Meyering  <meyering@redhat.com>
25509
25510         avoid new AC_REQUIRE expanded-before-required warnings
25511         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
25512         merely using it.
25513         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
25514         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
25515
25516 2009-11-15  Simon Josefsson  <simon@josefsson.org>
25517
25518         * tests/test-xalloc-die.c: New file.
25519         * modules/xalloc-die-tests: New file.
25520         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
25521         XFAIL_TESTS so it can be appended by modules.
25522
25523 2009-11-15  Simon Josefsson  <simon@josefsson.org>
25524
25525         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
25526         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
25527
25528 2009-11-14  Eric Blake  <ebb9@byu.net>
25529
25530         fnmatch: avoid compiler warning
25531         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
25532         to silence compiler warning about mismatch signedness in ?:.
25533         Reported by Robert Millan.
25534
25535         intprops: add double-inclusion guard
25536         * lib/intprops.h: Allow idempotent includes.
25537         Suggested by Bruce Korb.
25538
25539         openat: detect Solaris fchownat bug
25540         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
25541         penalizing glibc chownat when only lchownat is broken.
25542         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
25543         trailing slash bugs.
25544         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
25545         * modules/openat-tests (Files): Include more files.
25546         (Depends-on): Add mgetgroups, sleep, stat-time.
25547         (configure.ac): Add additional checks.
25548         (Makefile.am): Build new test.
25549         * tests/test-fchownat.c: New file.
25550
25551         lchown: detect Solaris and FreeBSD bug
25552         * lib/lchown.c (rpl_lchown): Work around bug.
25553         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
25554         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25555         * modules/unistd (Makefile.am): Populate it.
25556         * lib/unistd.in.h (lchown): Update declaration.
25557         * doc/posix-functions/lchown.texi (lchown): Document the bug.
25558         * modules/lchown-tests: New file.
25559         * tests/test-lchown.h (test_lchown): Likewise.
25560         * tests/test-lchown.c (main): Likewise.
25561
25562         chown: detect Solaris and FreeBSD bug
25563         * lib/chown.c (rpl_chown): Work around bug.
25564         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
25565         (gl_PREREQ_CHOWN): Delete.
25566         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25567         * modules/unistd (Makefile.am): Populate it.
25568         * lib/unistd.in.h (chown): Update declaration.
25569         * lib/lchown.c (chown): Update client.
25570         * modules/lchown (Depends-on): Add lstat.
25571         * doc/posix-functions/chown.texi (chown): Document the bug.
25572         * doc/posix-functions/getgroups.texi (getgroups): Document
25573         getgroups pitfall.
25574         * modules/chown-tests: New file.
25575         * tests/test-chown.h (test_chown): Likewise.
25576         * tests/test-chown.c (main): Likewise.
25577
25578 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
25579
25580         gnulib-tool: correctly detect absence of m4 directories
25581         * gnulib-tool: Avoid extra newline on data passed to wc -l.
25582
25583 2009-11-14  Jim Meyering  <meyering@redhat.com>
25584
25585         maint.mk: Prohibit inclusion of "xalloc.h" without use.
25586         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
25587
25588 2009-11-14  John W. Eaton  <jwe@gnu.org>
25589
25590         strftime.h: wrap funtion declaration in extern "C" block
25591         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
25592
25593 2009-11-13  Eric Blake  <ebb9@byu.net>
25594
25595         getgroups: avoid compiler warning
25596         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
25597
25598         getgroups: work around FreeBSD bug
25599         * lib/getgroups.c (rpl_getgroups): Work around the bug.
25600         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
25601         * doc/posix-functions/getgroups.texi (getgroups): Document it.
25602         * tests/test-getgroups.c (main): Fix buffer overrun.
25603
25604         getgroups: avoid compilation failure
25605         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
25606         * modules/getgroups (Depends-on): Add stdint.
25607
25608 2009-11-13  Jim Meyering  <meyering@redhat.com>
25609
25610         test-getgroups: avoid compilation failure
25611         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
25612
25613 2009-11-13  Eric Blake  <ebb9@byu.net>
25614
25615         mgetgroups: new module, taken from coreutils
25616         * modules/mgetgroups: New file.
25617         * lib/mgetgroups.h: Likewise.
25618         * lib/mgetgroups.c (mgetgroups): Likewise.
25619         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
25620         * MODULES.html.sh (Users and groups): Mention it.
25621
25622         getgroups: don't expose GETGROUPS_T to user
25623         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
25624         an element at a time if GETGROUPS_T is wrong size.
25625         * lib/getugroups.h (getugroups): Change signature.
25626         * lib/unistd.in.h (getgroups): Likewise.
25627         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
25628         signature needs fixing.
25629         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
25630         AC_TYPE_GETGROUPS.
25631         * modules/group-member (Depends-on): Add getgroups.
25632         * lib/group-member.c (group_info, get_group_info): Use gid_t.
25633         (group_member): Rely on getgroups replacement.
25634         * lib/getugroups.c (getugroups): Use gid_t.
25635         * tests/test-getgroups.c (main): Likewise.
25636         * NEWS: Mention the signature change.
25637         * doc/posix-functions/getgroups.texi (getgroups): Mention the
25638         problem with signature.
25639         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
25640         GETGROUPS_T is still useful for setgroups.
25641
25642         getgroups, getugroups: provide stubs for mingw
25643         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
25644         * lib/getugroups.c (getugroups): Likewise.
25645         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
25646         function.  Modernize replacement scheme.
25647         (gl_PREREQ_GETGROUPS): Delete.
25648         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
25649         * modules/getgroups (configure.ac): Declare witness.
25650         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
25651         * modules/unistd (Depends-on): Substitute witness.
25652         * lib/unistd.in.h (getgroups): Declare replacement.
25653
25654         getgroups: avoid calling exit
25655         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
25656         drop xalloc.
25657         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
25658         dependencies.
25659         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
25660         exiting, in the rare case of malloc failure.
25661
25662         getgroups: fix logic error
25663         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
25664         has more than 20 groups.
25665         * modules/getgroups-tests: New test.
25666         * tests/test-getgroups.c: New file.
25667
25668 2009-11-13  Simon Josefsson  <simon@josefsson.org>
25669
25670         * tests/test-base64.c: Improve.
25671
25672 2009-11-13  Simon Josefsson  <simon@josefsson.org>
25673
25674         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
25675         Blake <ebb9@byu.net>.
25676
25677 2009-11-13  Simon Josefsson  <simon@josefsson.org>
25678
25679         * tests/test-xvasprintf.c: Add %s%s related checks.
25680
25681 2009-11-12  Eric Blake  <ebb9@byu.net>
25682
25683         version-etc: match standards.texi style
25684         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
25685         and use <> only for URLs.
25686
25687 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
25688
25689         fts: do not fail on a submount during traversal
25690         * lib/fts.c (fts_build): Read the stat info again after opening
25691         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
25692         Original report at http://bugzilla.redhat.com/501848.
25693
25694 2009-11-12  Jim Meyering  <meyering@redhat.com>
25695
25696         bootstrap: sync from coreutils
25697         * build-aux/bootstrap (bootstrap_epilogue): New function.
25698         Use git_modules_config in one more place.  This make bootstrap's
25699         --gnulib-srcdir option more useful for testing.
25700
25701         bootstrap: generalize autoheader check
25702         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
25703         AC_CONFIG_HEADERS.
25704
25705 2009-11-11  Eric Blake  <ebb9@byu.net>
25706
25707         mkfifoat: use new modules for Solaris and BSD bugs
25708         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
25709         * lib/mkfifoat.c (mknodat): Split...
25710         * lib/mknodat.c (mknodat): ...into new file.
25711         * modules/mkfifoat (Files): Ship new file.
25712         (Depends-on): Add mkfifo, mknod.
25713         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
25714         (Depends-on): Add symlink.
25715         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
25716         redundant with test_mkfifo.h.
25717         (do_mkfifoat, do_mknodat): New helpers.
25718
25719         mknod: new module
25720         * modules/mknod: New file.
25721         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
25722         * lib/mknod.c (mknod): Likewise.
25723         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
25724         defaults.
25725         * modules/sys_stat (Makefile.am): Substitute them.
25726         * lib/sys_stat.in.h (mknod): Declare replacement.
25727         * MODULES.html.sh (Support for systems lacking POSIX:2008):
25728         Document it.
25729         * doc/posix-functions/mknod.texi (mknod): Likewise.
25730         * modules/mknod-tests: New test.
25731         * tests/test-mknod.c: Likewise.
25732
25733         mkfifo: new module
25734         * modules/mkfifo: New file.
25735         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
25736         * lib/mkfifo.c (mkfifo): Likewise.
25737         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
25738         defaults.
25739         * modules/sys_stat (Makefile.am): Substitute them.
25740         * lib/sys_stat.in.h (mkfifo): Declare replacement.
25741         * MODULES.html.sh (Support for systems lacking POSIX:2008):
25742         Document it.
25743         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
25744         * modules/mkfifo-tests: New test.
25745         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
25746         from test-mkfifoat.c.
25747         * tests/test-mkfifo.c: New file.
25748
25749         readlink: detect FreeBSD bug
25750         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
25751         slash on symlink.
25752         * doc/posix-functions/readlink.texi (readlink): Document the bug.
25753         * tests/test-readlink.h (test_readlink): Enhance test.
25754
25755         symlink: detect FreeBSD bug
25756         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
25757         slash on symlink.
25758         * doc/posix-functions/symlink.texi (symlink): Document the bug.
25759         * tests/test-symlink.h (test_symlink): Enhance test.
25760
25761 2009-11-10  Eric Blake  <ebb9@byu.net>
25762
25763         link: detect FreeBSD bug
25764         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
25765         symlink.
25766         * doc/posix-functions/link.texi (link): Document the bug.
25767         * tests/test-link.h (test_link): Enhance test.
25768         * tests/test-linkat.c (main): Update caller.
25769
25770         unlink, remove: detect FreeBSD bug
25771         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
25772         slash on symlink.
25773         * doc/posix-functions/unlink.texi (unlink): Document the bug.
25774         * doc/posix-functions/remove.texi (remove): Likewise.
25775         * tests/test-unlink.h (test_unlink): Enhance test.
25776         * tests/test-remove.c (main): Likewise.
25777
25778 2009-11-09  Eric Blake  <ebb9@byu.net>
25779
25780         rename: detect FreeBSD bug
25781         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
25782         slash on symlink.
25783         * modules/renameat-tests (Depends-on): Add filenamecat.
25784         * tests/test-rename.h (test_rename): Allow one more errno.
25785         * tests/test-renameat.c (main): Likewise.
25786         * doc/posix-functions/rename.texi (rename): Document the bug.
25787
25788         open: detect FreeBSD bug
25789         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
25790         symlink.
25791         * doc/posix-functions/open.texi (open): Document the bug.
25792         * doc/posix-functions/utimes.texi (utimes): Likewise.
25793         * tests/test-open.h (test_open): Add parameters, and test symlink
25794         handling.
25795         * tests/test-open.c (main): Adjust caller.
25796         * tests/test-fcntl-safer.c (main): Likewise.
25797         * modules/open-tests (Depends-on): Add stdbool, symlink.
25798         * modules/fcntl-safer-tests (Depends-on): Likewise.
25799         * tests/test-openat.c (main): Add test-open tests.
25800
25801         stat: detect FreeBSD bug
25802         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
25803         symlink.
25804         * doc/posix-functions/stat.texi (stat): Document the bug.
25805         * tests/test-stat.h (test_stat_func): Add argument.
25806         * tests/test-stat.c (main): Adjust caller.
25807         * tests/test-fstatat.c (main): Likewise.
25808         * modules/stat-tests (Depends-on): Add stdbool, symlink.
25809         Reported by Jim Meyering.
25810
25811 2009-11-09  James Youngman  <jay@gnu.org>
25812
25813         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
25814         * lib/strftime.c: Correct placement of #include "ignore-value.h".
25815
25816 2009-11-08  Jim Meyering  <meyering@redhat.com>
25817
25818         utimens: remove invalid futimesat call
25819         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
25820         It used the file descriptor of the target file as the DIR_FD
25821         parameter and NULL as the file name.  That caused failure with
25822         errno == EFAULT on FreeBSD-8.0-rc2
25823
25824 2009-11-07  Eric Blake  <ebb9@byu.net>
25825
25826         fflush, freadseek: use fseeko, not fseek
25827         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
25828         (clear_ungetc_buffer): Avoid potential problems on large files.
25829         * lib/freadseek.c (freadseek): Likewise.
25830         * modules/freadseek (Depends-on): Add fseeko.
25831         * modules/fseek (configure.ac): Set a witness.
25832         * tests/test-fflush.c (main): Use fseeko.
25833         * tests/test-fpurge.c (fseek): Disable link warning.
25834         * tests/test-freadable.c (fseek): Likewise.
25835         * tests/test-freading.c (fseek): Likewise.
25836         * tests/test-fseeko.c (fseek): Likewise.
25837         * tests/test-ftell.c (fseek): Likewise.
25838         * tests/test-ftello.c (fseek): Likewise.
25839         * tests/test-fwritable.c (fseek): Likewise.
25840         * tests/test-fwriting.c (fseek): Likewise.
25841
25842 2009-11-06  Simon Josefsson  <simon@josefsson.org>
25843
25844         * modules/memchr (Depends-on): Drop getpagesize dependency.
25845
25846 2009-11-06  Simon Josefsson  <simon@josefsson.org>
25847
25848         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
25849         Reported by Ludovic Courtès.
25850         * build-aux/pmccabe2html: Improve example usage.
25851         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
25852
25853 2009-11-06  Jim Meyering  <meyering@redhat.com>
25854
25855         do-release-commit-and-tag: New module.
25856         Automate the release-commit and tag process.
25857         * build-aux/do-release-commit-and-tag: New script, from coreutils.
25858         * modules/do-release-commit-and-tag: New file.
25859         * MODULES.html.sh (Support for maintaining and releasing): Add it.
25860
25861 2009-11-06  Simon Josefsson  <simon@josefsson.org>
25862
25863         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
25864         because test-select.c uses inet_pton.
25865
25866 2009-11-06  Simon Josefsson  <simon@josefsson.org>
25867
25868         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
25869         GETADDRINFO_LIB.  Bump serial number.
25870         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
25871         Suggested by Eric Blake <ebb9@byu.net>.
25872
25873 2009-11-05  Eric Blake  <ebb9@byu.net>
25874
25875         strtod: detect darwin bug
25876         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
25877         Reported by Leo Davis.
25878
25879         freopen-safer: new module
25880         * modules/freopen-safer: New module.
25881         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
25882         * lib/freopen-safer.c (freopen_safer): New file.
25883         * lib/stdio-safer.h (freopen_safer): New declaration.
25884         * lib/stdio--.h (freopen): New override.
25885         * MODULES.html.sh (File stream based Input/Output): Mention it.
25886         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
25887         freopen-safer module.
25888         * doc/posix-functions/stderr.texi (stderr): Likewise.
25889         * doc/posix-functions/stdin.texi (stdin): Likewise.
25890         * doc/posix-functions/stdout.texi (stdout): Likewise.
25891         * modules/freopen-safer-tests: New test.
25892         * tests/test-reopen-safer.c: New file.
25893
25894 2009-11-05  Jim Meyering  <meyering@redhat.com>
25895
25896         maint.mk: Prohibit inclusion of "close-stream.h" without use.
25897         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
25898
25899 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25900
25901         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
25902
25903 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25904
25905         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
25906
25907 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25908
25909         Fix link error.
25910         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
25911         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
25912
25913 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25914
25915         * tests/test-func.c: Also test value of __func__.
25916
25917 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25918
25919         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
25920         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
25921
25922 2009-11-05  Bruno Haible  <bruno@clisp.org>
25923
25924         Fix link error.
25925         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
25926         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
25927         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
25928
25929 2009-11-05  Bruno Haible  <bruno@clisp.org>
25930
25931         Tests for module 'inet_pton'.
25932         * modules/inet_pton-tests: New file.
25933         * tests/test-inet_pton.c: New file.
25934
25935 2009-11-05  Bruno Haible  <bruno@clisp.org>
25936
25937         Tests for module 'inet_ntop'.
25938         * modules/inet_ntop-tests: New file.
25939         * tests/test-inet_ntop.c: New file.
25940
25941 2009-11-04  Eric Blake  <ebb9@byu.net>
25942
25943         stdlib-safer: wrap all mkstemp variants
25944         * modules/mkostemp (configure.ac): Set witness.
25945         * modules/mkostemps (configure.ac): Likewise.
25946         * modules/mkstemps (configure.ac): Likewise.
25947         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
25948         (mkstemps_safer): Wrap more functions.
25949         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
25950         wrapping.
25951         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
25952         (mkstemps_safer): Implement the wrappers.
25953
25954         mkstemps, mkostemps: new modules
25955         * modules/mkostemps: New module.
25956         * modules/mkstemps: Likewise.
25957         * lib/mkostemps.c (mkostemps): New file.
25958         * lib/mkstemps.c (mkstemps): Likewise.
25959         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
25960         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
25961         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
25962         * modules/stdlib (Makefile.am): Substitute them.
25963         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
25964         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
25965         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
25966         * doc/gnulib.texi (Glibc stdlib.h): Include them.
25967         * MODULES.html.sh (File system functions): Mention them.
25968
25969         tempname: resync from glibc
25970         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
25971         same values for __GT_FILE as glibc.  Abort even when assertions
25972         are disabled.
25973         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
25974         match its value otherwise.  Allow idempotent inclusion.
25975         * lib/mkdtemp.c (mkdtemp): Adjust caller.
25976         * lib/mkostemp.c (mkostemp): Likewise.
25977         * lib/mkstemp.c (mkstemp): Likewise.
25978         * lib/tmpfile.c (tmpfile): Likewise.
25979         * NEWS: Document this.
25980
25981         utimens: fix use of futimens on older Linux
25982         * lib/utimens.c (fdutimens): Use updated, rather than original,
25983         timespec to avoid bug in older Linux kernel.
25984         Reported by Simon Josefsson.
25985
25986 2009-11-04  Bruno Haible  <bruno@clisp.org>
25987
25988         Make num_processors more flexible and consistent.
25989         * lib/nproc.h (enum nproc_query): New type.
25990         (num_processors): Add a 'query' argument.
25991         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
25992         (num_processors): Add a 'query' argument. Test the value of the
25993         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
25994         mingw, count the number of CPUs available for the current process.
25995         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
25996         Check for sched_getaffinity and sched_getaffinity_np.
25997         * modules/nproc (Depends-on): Add c-ctype, extensions.
25998         * NEWS: Mention the change.
25999
26000 2009-11-03  Bruno Haible  <bruno@clisp.org>
26001
26002         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
26003
26004 2009-11-03  Jim Meyering  <meyering@redhat.com>
26005
26006         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
26007         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
26008         if it is defined.
26009
26010 2009-11-02  Eric Blake  <ebb9@byu.net>
26011
26012         mktime, timegm: share common declaration
26013         * lib/mktime-internal.h: New file.
26014         * lib/mktime.c: Use it rather than open-coding a declaration.
26015         * lib/timegm.c: Likewise.
26016         * modules/mktime (Files): Ship it.
26017         * modules/timegm (Files): Likewise.
26018         Suggested by Bruno Haible.
26019
26020         test-update-copyright: update test to match script changes
26021         * tests/test-update-copyright.sh: Avoid hard-coding perl
26022         location.  Don't update *.bak created by earlier runs.
26023
26024 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
26025             Simon Josefsson  <simon@josefsson.org>
26026             Bruno Haible  <bruno@clisp.org>
26027
26028         Fix link error on Solaris 8.
26029         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
26030         also in libnsl. Define also INET_PTON_LIB.
26031         * modules/inet_pton (Link): New section.
26032
26033 2009-11-02  Simon Josefsson  <simon@josefsson.org>
26034             Bruno Haible  <bruno@clisp.org>
26035
26036         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
26037         * modules/inet_ntop (Link): New section.
26038         Reported by Boyan Kasarov <bkasarov@gmail.com>.
26039
26040 2009-11-02  Eric Blake  <ebb9@byu.net>
26041
26042         maint: avoid compiler warnings in m4 macros
26043         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
26044         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
26045
26046 2009-11-02  Simon Josefsson  <simon@josefsson.org>
26047
26048         * m4/pmccabe2html.m4: Remove file.
26049         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
26050         function.  Change maintainer.
26051         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
26052         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
26053         Courtès).
26054
26055 2009-10-31  Eric Blake  <ebb9@byu.net>
26056
26057         fseeko: fix m4 regression
26058         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
26059         regression from 2009-10-27.
26060         Reported by Ralf Wildenhues.
26061
26062 2009-10-31  Jim Meyering  <meyering@redhat.com>
26063
26064         inttostr: aesthetics and improved (compile-time) safety
26065         Define inttype_is_signed rather than inttype_is_unsigned,
26066         since the sole use is via "#if inttype_is_signed".
26067         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
26068         inttype_is_unsigned.
26069         * lib/offtostr.c (inttype_is_signed): Likewise.
26070         * lib/uinttostr.c (inttype_is_signed): Likewise.
26071         * lib/umaxtostr.c (inttype_is_signed): Likewise.
26072         * lib/inttostr.c (inttostr): Use verify to cross-check the
26073         inttype_is_signed value and the signedness of the actual type.
26074         * modules/inttostr (Depends-on): Add verify.
26075
26076 2009-10-30  Eric Blake  <ebb9@byu.net>
26077
26078         build: avoid compiler warnings
26079         * lib/fchmodat.c (lchmod): Mark unused variables.
26080         * lib/getopt.c (_getopt_initialize): Likewise.
26081         * lib/mktime.c (__mktime_internal): Provide prototype.
26082         * lib/inttostr.c (inttostr): Avoid compiler warning even with
26083         older gcc that do not understand #pragma GCC diagnostic.
26084         * lib/uinttostr.c (inttype_is_unsigned): Define.
26085         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
26086
26087 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
26088
26089         stat: fix compilation on AIX
26090         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
26091         only see struct stat64.
26092
26093 2009-10-30  Eric Blake  <ebb9@byu.net>
26094
26095         exclude: make more robust
26096         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
26097         rather than masking a coding bug.
26098         Suggested by Bruno Haible.
26099
26100 2009-10-30  Jim Meyering  <meyering@redhat.com>
26101
26102         perl scripts: remove #!/usr/bin/perl in favor of more portable...
26103         Rather than putting #!/usr/bin/perl on the first line,
26104         start with a variant of what's recommended by "man perlrun" that
26105         invokes the first "perl" program from your shell's search path.
26106         * build-aux/gitlog-to-changelog: Replace #!... as above.
26107         Add a "Local Variables" perl mode setting.
26108         Prompted by a patch from Ludovic Courtès.
26109         Improved by Eric Blake.
26110         * build-aux/useless-if-before-free: Likewise.
26111         * build-aux/announce-gen: Likewise.
26112         * build-aux/update-copyright: Likewise.
26113
26114 2009-10-29  Eric Blake  <ebb9@byu.net>
26115
26116         filenamecat-lgpl: adjust clients
26117         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
26118         filenamecat.
26119         * modules/renameat (Depends-on): Likewise.
26120
26121         filenamecat: split into filenamecat-lgpl
26122         * modules/filenamecat-lgpl: New module.
26123         * modules/filenamecat (Files): Move library-safe files into
26124         filenamecat-lgpl.
26125         (Depends-on): Add filenamecat-lgpl.
26126         (configure.ac): Declare witness.
26127         * lib/filenamecat.h (file_name_concat): Only declare when using
26128         GPL module.
26129         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
26130         Move...
26131         * lib/filenamecat-lgpl.c: ...into new file.
26132         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
26133         (gl_FILE_NAME_CONCAT): Use it.
26134         * MODULES.html.sh (File system functions): Mention new module.
26135
26136         argp: avoid memory leak
26137         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
26138         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
26139         base_name, since the latter malloc()s and can call exit().
26140         Leak introduced 2006-07-03.
26141
26142         dirname-lgpl: adjust clients that don't need full dirname
26143         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
26144         * modules/filenamecat (Depends-on): Likewise.
26145         * modules/linkat (Depends-on): Likewise.
26146         * modules/mkancesdirs (Depends-on): Likewise.
26147         * modules/mkdir (Depends-on): Likewise.
26148         * modules/openat (Depends-on): Likewise.
26149         * modules/savewd (Depends-on): Likewise.
26150         * modules/rename (Depends-on): Likewise.
26151         (License): Relax license.
26152         * modules/mkdir-tests (Depends-on): Drop progname.
26153         (Makefile.am): Delete unneeded LDADD.
26154         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
26155
26156         dirname: split into dirname-lgpl
26157         * modules/dirname-lgpl: New module.
26158         * modules/dirname (Files): Move library-safe files into
26159         dirname-lgpl.
26160         (Depends-on): Add dirname-lgpl.
26161         (configure.ac): Declare witness.
26162         * modules/double-slash-root (License): Relax license.
26163         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
26164         module.
26165         * lib/dirname.c (dir_len, mdir_name): Move...
26166         * lib/dirname-lgpl.c: ...into new file.
26167         * lib/basename.c (last_component, base_len): Move...
26168         * lib/basename-lgpl.c: ...into new file.
26169         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
26170         (gl_DIRNAME): Use it.
26171         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
26172         Mention new module.
26173         * modules/dirname-tests (Depends-on): Add progname.
26174         * tests/test-dirname.c (program_name): Delete.
26175
26176         mkdir: make safe for libraries
26177         * modules/mkdir (Depends-on): Drop xalloc.
26178         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
26179         exit.
26180
26181         tests: avoid some compiler warnings
26182         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
26183         literals.
26184         * tests/test-memchr.c (main): Avoid type mismatch.
26185         * tests/test-arpa_inet.c (main): Avoid unused parameters.
26186         * tests/test-base64.c (main): Likewise.
26187         * tests/test-getdelim.c (main): Likewise.
26188         * tests/test-gethostname.c (main): Likewise.
26189         * tests/test-getline.c (main): Likewise.
26190         * tests/test-netinet_in.c (main): Likewise.
26191         * tests/test-select.c (open_server_socket, main): Likewise.
26192         * tests/test-select-stdin.c (main): Likewise.
26193         * tests/test-sockets.c (main): Likewise.
26194         * tests/test-strsignal.c (main): Likewise.
26195         * tests/test-sys_select.c (main): Likewise.
26196         * tests/test-sys_socket.c (main): Likewise.
26197         * tests/test-u64.c (main): Likewise.
26198         * tests/test-xfprintf-posix.c (main): Likewise.
26199         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
26200
26201         sockets: avoid compiler warning
26202         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
26203
26204         maint: detect usage(1) and other suspicious exits
26205         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
26206
26207 2009-10-29  Jim Meyering  <meyering@redhat.com>
26208
26209         timespec: long-to-int truncation could make timespec_cmp malfunction
26210         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
26211         a multiple of 2^32 nanoseconds as no difference.
26212
26213 2009-10-28  Jim Meyering  <meyering@redhat.com>
26214
26215         fprintftime: wrap macro code argument in "do {...} while(0)"
26216         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
26217         cpy macro must be a statement that can be followed by a semicolon.
26218         Now that the else clause contains a comment and is hence longer
26219         than one line, I require curly braces.  That in turn requires
26220         that we wrap this code block in the standard do...while(0).
26221
26222         fprintftime: remove stray semicolon from previous change
26223         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
26224
26225         fprintftime: avoid a warning about ignored fwrite return value
26226         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
26227         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
26228         that is unsafe.
26229         * modules/fprintftime (Depends-on): Add ignore-value.
26230
26231         exclude: avoid an unwarranted warning
26232         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
26233
26234 2009-10-27  Eric Blake  <ebb9@byu.net>
26235
26236         fseek: avoid compilation failure when fflush is replaced
26237         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
26238         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
26239         module is in use.
26240         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
26241         module is not in use; since REPLACE_FSEEK worked otherwise.
26242         (GNULIB_FTELLO): Likewise for ftell.
26243         Reported by Ian Beckwith and others.
26244
26245 2009-10-27  Bruno Haible  <bruno@clisp.org>
26246
26247         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
26248         Reported by Jim Meyering.
26249
26250 2009-10-27  Jim Meyering  <jim@meyering.net>
26251             Bruno Haible  <bruno@clisp.org>
26252
26253         Avoid warning despite dropping the return value of fwrite.
26254         * lib/unicodeio.c: Include ignore-value.h.
26255         (fwrite_success_callback): Explicitly ignore fwrite's return value.
26256         * modules/unicodeio (Depends-on): Add ignore-value.
26257
26258 2009-10-26  Eric Blake  <ebb9@byu.net>
26259
26260         areadlinkat: fix fallback path
26261         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
26262         pointer and zero.
26263
26264 2009-10-22  Pádraig Brady  <P@draigBrady.com>
26265
26266         Use a better IO block size for modern systems
26267         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
26268         * lib/md2.c: Likewise.
26269         * lib/md4.c: Likewise.
26270         * lib/md5.c: Likewise.
26271         * lib/sha1.c: Likewise.
26272         * lib/sha256.c: Likewise.
26273         * lib/sha512.c: Likewise.
26274
26275 2009-10-22  Eric Blake  <ebb9@byu.net>
26276
26277         tests: avoid several compiler warnings
26278         * tests/test-getcwd.c (main): Avoid buffer underflow.
26279         * tests/test-getdate.c (main): String literals are not safe with
26280         putenv, so use setenv.  Declare unused argument.
26281         * modules/getdate-tests (Depends-on): Add setenv.
26282         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
26283         problems with string literals in char *.
26284         * tests/test-hash.c (main): Avoid shadowing declaration.
26285         (insert_new): Treat string literals as char const *.
26286         * tests/test-getopt.h (test_getopt): Likewise.
26287         (getopt_loop): Alter types to minimize casting elsewhere.
26288         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
26289         (test_getopt_long_posix): Likewise.
26290         (do_getopt_long): Add wrapper to minimize casting.
26291         * tests/test-atexit.c (clear_temp_file): Use void.
26292         * tests/test-areadlink-with-size.c (main): Declare unused
26293         arguments.
26294         * tests/test-areadlink.c (main): Likewise.
26295         * tests/test-areadlinkat-with-size.c (main): Likewise.
26296         * tests/test-areadlinkat.c (main): Likewise.
26297         * tests/test-canonicalize-lgpl.c (main): Likewise.
26298         * tests/test-canonicalize.c (main): Likewise.
26299         * tests/test-dirent-safer.c (main): Likewise.
26300         * tests/test-dirname.c (main): Likewise.
26301         * tests/test-dup2.c (main): Likewise.
26302         * tests/test-fchdir.c (main): Likewise.
26303         * tests/test-fcntl-h.c (main): Likewise.
26304         * tests/test-fcntl-safer.c (main): Likewise.
26305         * tests/test-fdopendir.c (main): Likewise.
26306         * tests/test-fdutimensat.c (main): Likewise.
26307         * tests/test-fflush.c (main): Likewise.
26308         * tests/test-filenamecat.c (main): Likewise.
26309         * tests/test-filevercmp.c (main): Likewise.
26310         * tests/test-fopen-safer.c (main): Likewise.
26311         * tests/test-fopen.c (main): Likewise.
26312         * tests/test-fpending.c (main): Likewise.
26313         * tests/test-fpurge.c (main): Likewise.
26314         * tests/test-freading.c (main): Likewise.
26315         * tests/test-fstatat.c (main): Likewise.
26316         * tests/test-fsync.c (main): Likewise.
26317         * tests/test-futimens.c (main): Likewise.
26318         * tests/test-getndelim2.c (main): Likewise.
26319         * tests/test-gettimeofday.c (main): Likewise.
26320         * tests/test-getopt.c (main): Likewise.
26321         * tests/test-i-ring.c (main): Likewise.
26322         * tests/test-inttypes.c (main): Likewise.
26323         * tests/test-link.c (main): Likewise.
26324         * tests/test-lstat.c (main): Likewise.
26325         * tests/test-math.c (main): Likewise.
26326         * tests/test-md5.c (main): Likewise.
26327         * tests/test-memchr2.c (main): Likewise.
26328         * tests/test-memrchr.c (main): Likewise.
26329         * tests/test-mkdir.c (main): Likewise.
26330         * tests/test-mkdirat.c (main): Likewise.
26331         * tests/test-mkfifoat.c (main): Likewise.
26332         * tests/test-open.c (main): Likewise.
26333         * tests/test-openat-safer.c (main): Likewise.
26334         * tests/test-openat.c (main): Likewise.
26335         * tests/test-quotearg.c (main): Likewise.
26336         * tests/test-rawmemchr.c (main): Likewise.
26337         * tests/test-readlink.c (main): Likewise.
26338         * tests/test-remove.c (main): Likewise.
26339         * tests/test-rename.c (main): Likewise.
26340         * tests/test-renameat.c (main): Likewise.
26341         * tests/test-rmdir.c (main): Likewise.
26342         * tests/test-sha1.c (main): Likewise.
26343         * tests/test-signal.c (main): Likewise.
26344         * tests/test-sigaction.c (main): Likewise.
26345         * tests/test-stat.c (main): Likewise.
26346         * tests/test-stat-time.c (main): Likewise.
26347         * tests/test-stddef.c (main): Likewise.
26348         * tests/test-stdint.c (main): Likewise.
26349         * tests/test-stdio.c (main): Likewise.
26350         * tests/test-stdlib.c (main): Likewise.
26351         * tests/test-strchrnul.c (main): Likewise.
26352         * tests/test-strerror.c (main): Likewise.
26353         * tests/test-string.c (main): Likewise.
26354         * tests/test-strtod.c (main): Likewise.
26355         * tests/test-strverscmp.c (main): Likewise.
26356         * tests/test-symlink.c (main): Likewise.
26357         * tests/test-symlinkat.c (main): Likewise.
26358         * tests/test-sys_stat.c (main): Likewise.
26359         * tests/test-sys_time.c (main): Likewise.
26360         * tests/test-time.c (main): Likewise.
26361         * tests/test-unistd.c (main): Likewise.
26362         * tests/test-unlink.c (main): Likewise.
26363         * tests/test-unlinkat.c (main): Likewise.
26364         * tests/test-utimens.c (main): Likewise.
26365         * tests/test-utimensat.c (main): Likewise.
26366         * tests/test-version-etc.c (main): Likewise.
26367         * tests/test-wchar.c (main): Likewise.
26368         * tests/test-wctype.c (main): Likewise.
26369         * tests/test-xprintf-posix.c (main): Likewise.
26370         * tests/test-posixtm.c (main): Likewise.
26371         (STREQ): Delete unused macro.
26372         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
26373         shadowed variables.
26374         * tests/test-memchr.c (main): Likewise.
26375
26376 2009-10-21  Eric Blake  <ebb9@byu.net>
26377
26378         areadlinkat: avoid failure on older glibc
26379         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
26380         rather than mis-comparing 0 against FUNC_RESULT of char*.
26381
26382 2009-10-21  Bruno Haible  <bruno@clisp.org>
26383
26384         * modules/stpncpy (License): Relicense under LGPLv2+.
26385         Reported by David Lutterkort <lutter@redhat.com>.
26386
26387 2009-10-20  Eric Blake  <ebb9@byu.net>
26388
26389         utimensat: work around Solaris 9 bug
26390         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
26391         has trailing slash bugs.
26392         * tests/test-lutimens.h (test_lutimens): Enhance test.
26393         * tests/test-utimens.h (test_utimens): Likewise.
26394         * doc/posix-functions/utime.texi (utime): Enhance documentation.
26395         * doc/posix-functions/utimes.texi (utimes): Likewise.
26396         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
26397         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
26398         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
26399         * doc/posix-functions/futimens.texi (futimens): Likewise.
26400
26401         fdutimensat: new module
26402         * modules/fdutimensat: New file.
26403         * lib/fdutimensat.c (fdutimensat): Likewise.
26404         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
26405         * MODULES.html.sh (File system functions): Mention module.
26406         * modules/fdutimensat-tests: New test.
26407         * tests/test-fdutimensat.c: Likewise.
26408
26409         doc: regenerate INSTALL
26410         * doc/INSTALL: Reflect recent autoconf update.
26411         * doc/INSTALL.ISO: Likewise.
26412         * doc/INSTALL.UTF-8: Likewise.
26413
26414 2009-10-20  Pádraig Brady  <P@draigBrady.com>
26415
26416         acl: warn if ACL support is not detected
26417         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
26418
26419 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
26420
26421         * lib/nproc.h: Add extern "C" block for C++.
26422
26423 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
26424             Bruno Haible  <bruno@clisp.org>
26425
26426         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
26427         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
26428         * doc/posix-functions/isalpha.texi: Likewise.
26429         * doc/posix-functions/isblank.texi: Likewise.
26430         * doc/posix-functions/iscntrl.texi: Likewise.
26431         * doc/posix-functions/isdigit.texi: Likewise.
26432         * doc/posix-functions/isgraph.texi: Likewise.
26433         * doc/posix-functions/islower.texi: Likewise.
26434         * doc/posix-functions/isprint.texi: Likewise.
26435         * doc/posix-functions/ispunct.texi: Likewise.
26436         * doc/posix-functions/isspace.texi: Likewise.
26437         * doc/posix-functions/isupper.texi: Likewise.
26438         * doc/posix-functions/isxdigit.texi: Likewise.
26439
26440 2009-10-18  Bruno Haible  <bruno@clisp.org>
26441
26442         Tests for module 'isblank'.
26443         * modules/isblank-tests: New file.
26444         * tests/test-isblank.c: New file.
26445
26446         New module 'isblank'.
26447         * lib/isblank.c: New file.
26448         * m4/isblank.m4: New file.
26449         * modules/isblank: New file.
26450         * doc/posix-functions/isblank.texi: Mention the new module.
26451
26452 2009-10-18  Bruno Haible  <bruno@clisp.org>
26453
26454         New module 'ctype'.
26455         * lib/ctype.in.h: New file.
26456         * m4/ctype.m4: New file.
26457         * modules/ctype: New file.
26458         * doc/posix-headers/ctype.texi: Mention the new module.
26459
26460 2009-10-18  Jim Meyering  <meyering@redhat.com>
26461
26462         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
26463         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
26464         right after its initialization, rather than farther down.
26465         Keeping these in close proximity makes it easier to ensure
26466         that each such variable is initialized.  E.g.,
26467
26468             LIB_CLOCK_GETTIME=
26469             AC_SUBST([LIB_CLOCK_GETTIME])
26470
26471         This change also increments these serial numbers.
26472         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
26473         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
26474         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26475
26476 2009-10-18  Bruno Haible  <bruno@clisp.org>
26477
26478         Don't let environment variables perturb build.
26479         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
26480         (gl_PREREQ_GETHRXTIME): ... not here.
26481
26482 2009-10-18  Bruno Haible  <bruno@clisp.org>
26483
26484         Avoid symlink attack in localcharset module.
26485         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
26486         (O_NOFOLLOW): Define fallback.
26487         (get_charset_aliases): Don't open the file if it is a symbolic link.
26488         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
26489         gl_FCNTL_H.
26490         (gl_FCNTL_H): Require it.
26491         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
26492         * modules/localcharset (Files): Add m4/fcntl_h.m4.
26493         Reported by Fergal Glynn <fglynn@veracode.com>.
26494
26495 2009-10-18  Bruno Haible  <bruno@clisp.org>
26496
26497         Implement nproc for mingw.
26498         * lib/nproc.c: Include <windows.h>
26499         (num_processors): On native Windows platforms, try GetSystemInfo.
26500
26501 2009-10-18  Bruno Haible  <bruno@clisp.org>
26502
26503         Implement nproc for IRIX.
26504         * lib/nproc.c: Include <sys/sysmp.h>.
26505         (num_processors): On IRIX systems, try sysmp.
26506         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
26507
26508 2009-10-18  Bruno Haible  <bruno@clisp.org>
26509
26510         Implement nproc for HP-UX.
26511         * lib/nproc.c: Include <sys/pstat.h>
26512         (num_processors): On HP-UX systems, try pstat_getdynamic.
26513         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
26514         pstat_getdynamic.
26515
26516 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
26517             Bruno Haible  <bruno@clisp.org>
26518
26519         Implement nproc for NetBSD, OpenBSD.
26520         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
26521         (ARRAY_SIZE): New macro.
26522         (num_processors): On BSD systems, try sysctl of HW_NCPU.
26523         * m4/nproc.m4: New file.
26524         * modules/nproc (Files): Add m4/nproc.m4.
26525         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
26526         (Makefile.am): Instead, augment lib_SOURCES.
26527
26528 2009-10-18  Bruno Haible  <bruno@clisp.org>
26529
26530         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
26531         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
26532         sys/param.h.
26533
26534 2009-10-16  Eric Blake  <ebb9@byu.net>
26535
26536         utimensat: new module
26537         * modules/utimensat: New file.
26538         * lib/utimensat.c (utimensat): Likewise.
26539         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
26540         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
26541         so we can work around Linux bugs.
26542         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
26543         * modules/sys_stat (Makefile.am): Substitute them.
26544         * lib/sys_stat.in.h (utimensat): Declare it.
26545         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26546         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
26547         * modules/utimensat-tests: New test.
26548         * tests/test-utimensat.c: Likewise.
26549
26550         utimens: let lutimens work on non-symlinks
26551         * lib/utimens.c (lutimens): Fall back to utimens rather than
26552         failing with ENOSYS, when file is not a symlink.
26553         (utimens): Reduce redirection.
26554         * tests/test-lutimens.h (test_lutimens): Update test to cover
26555         non-symlinks.
26556         * tests/test-utimens.h (test_utimens): Update test to cover
26557         symlinks.
26558         * tests/test-utimens.c (main): Update caller.
26559
26560         utimens: cache whether utimensat syscall works
26561         * lib/utimens.c (utimensat_works_really): New cache variable.
26562         (fdutimens, lutimens): Use it to avoid failing syscall.
26563
26564         test-stat-time, test-utimens: improve portability
26565         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
26566         ext4 on alpha, and for cygwin.
26567         * tests/test-utimens-common.h: New file.
26568         (nap): Factor delays into single function.
26569         * tests/test-lutimens.h (test_lutimens): Use new header.
26570         * tests/test-futimens.h (test_futimens): Likewise.
26571         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
26572         timestamps to occur from same machine, as was done previously for
26573         test_utimens.
26574         * modules/utimens-tests (Files): Ship new file.
26575         * modules/futimens-tests (Files): Likewise.
26576         Reported in part by Jim Meyering.
26577
26578         sys_stat: sort replacement declarations
26579         * lib/sys_stat.in.h: Sort declarations.
26580         * lib/futimens.c (futimens): Fix typo.
26581
26582 2009-10-15  Jim Meyering  <meyering@redhat.com>
26583
26584         don't let environment settings perturb build
26585         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
26586         could cause a configure-time and/or build-time malfunction.
26587         Typically, a configure-time function-in-library test is performed
26588         via code like this:
26589
26590           LIB_VAR=
26591           AC_SUBST([LIB_VAR])
26592           prefix_saved_LIBS=$LIBS
26593             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
26594                        [test "$ac_cv_search_FUNC" = "none required" ||
26595                         LIB_VAR=$ac_cv_search_FUNC])
26596           LIBS=$prefix_saved_LIBS
26597
26598         However, in each of the files affected by this change, the LIB_VAR=
26599         initialization was omitted.  Thus, when set in the environment, its
26600         value would propagate into generated Makefiles when FUNC is not found
26601         in LIB_NAME.
26602         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
26603         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
26604         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26605
26606 2009-10-14  Eric Blake  <ebb9@byu.net>
26607
26608         fchdir: avoid infinite recursion in mingw
26609         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
26610         recursing.
26611
26612         test-stat-time: port to mingw
26613         * tests/test-stat-time.c (force_unlink): Return a value.
26614         (test_ctime) [W32]: Fix compilation error.
26615         (nap): Don't call usleep with too large an argument.  Use
26616         force_unlink.
26617         * doc/pastposix-functions/usleep.texi (usleep): Document the
26618         portability issue.
26619
26620 2009-10-13  Jim Meyering  <meyering@redhat.com>
26621
26622         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
26623         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
26624         * modules/pipe-filter-ii: Likewise.
26625         * modules/sys_socket-tests: Likewise.
26626         * modules/tsearch-tests: Likewise.
26627         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
26628         (check): Depend on it.
26629
26630 2009-10-12  Eric Blake  <ebb9@byu.net>
26631
26632         utimens-tests: port to NFS file systems
26633         * tests/test-utimens.h (test_utimens): Refactor utimecmp
26634         comparisons to avoid spurious failures from timestamp drift
26635         between NFS machines.
26636
26637 2009-10-12  Eric Blake  <ebb9@byu.net>
26638
26639         stat-time-tests: minor cleanups
26640         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
26641         * tests/test-stat-time.c (nap): Separate assignment from call.
26642         Suggested by Paolo Bonzini and Bruno Haible.
26643
26644         sys_stat: guarantee struct timespec
26645         * lib/sys_stat.in.h (includes): Always include <time.h>
26646         * modules/sys_stat (Depends-on): Add time.
26647         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
26648         mode_t permission values.
26649         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
26650         get at subsecond timestamps.
26651
26652 2009-10-10  Eric Blake  <ebb9@byu.net>
26653
26654         futimens: new module
26655         * modules/futimens: New file.
26656         * lib/futimens.c (futimens): Likewise.
26657         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
26658         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
26659         we can work around Linux bugs.
26660         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
26661         * modules/sys_stat (Makefile.am): Substitute them.
26662         * lib/sys_stat.in.h (futimens): Declare it.
26663         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26664         * doc/posix-functions/futimens.texi (futimens): Likewise.
26665         * modules/futimens-tests: New test.
26666         * tests/test-futimens.c: Likewise.
26667
26668         utimens: introduce fdutimens
26669         * lib/utimens.h (fdutimens): New prototype.
26670         * lib/utimens.c (gl_futimens): Move guts...
26671         (fdutimens): ...to new interface.
26672         * tests/test-utimens.c (do_fdutimens): Use it.
26673
26674         utimens: add UTIME_NOW and UTIME_OMIT support
26675         * lib/utimens.c (validate_timespec, update_timespec): New helper
26676         functions.
26677         (gl_futimens, lutimens): Use them.
26678         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
26679         stdbool, sys_stat.
26680         (Link): Mention resulting library dependency.
26681         * modules/utimecmp (Link): Likewise.
26682         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
26683         (Makefile.am): Pick up library dependency.
26684         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
26685         definition.
26686         * tests/test-sys_stat.c: Test the definitions.
26687         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
26688         * NEWS: Document library dependency.
26689
26690         utimecmp: support symlink timestamps
26691         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
26692         hashing when possible.  Use pathconf when available.
26693         (SYSCALL_RESOLUTION): Recognize tighter resolution.
26694         * modules/utimecmp (Depends-on): Add lstat.
26695
26696         utimens: add lutimens interface
26697         * lib/utimens.c (lutimens): New function.
26698         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
26699         * lib/utimens.h (lutimens): Declare new interface.
26700         * tests/test-utimens.c (main): Enhance test.
26701         * tests/test-lutimens.h (test_lutimens): New file.
26702         * modules/utimens-tests (Files): Distribute it.
26703         (Depends-on): Add symlink.
26704         (configure.ac): Check for usleep.
26705
26706         utimens: validate futimens usage
26707         * lib/utimens.c (gl_futimens): Require valid fd up front, using
26708         fewer syscalls on failure later on.  Avoid compiler warning on
26709         mingw.
26710         * modules/utimens (Depends-on): Add dup2.
26711
26712         utimens: add test
26713         * modules/utimens-tests: New test.
26714         * tests/test-utimens.h: New file.
26715         * tests/test-futimens.h: Likewise.
26716         * tests/test-utimens.c: Likewise.
26717
26718         doc: mention timestamp portability issues
26719         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
26720         instead.
26721         * doc/posix-functions/utime.texi (utime): Likewise.
26722         * doc/posix-functions/utimes.texi (utimes): Likewise.
26723         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
26724         instead.
26725         * doc/posix-functions/futimens.texi (futimens): Mention utimens
26726         module.
26727         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
26728         Mention weakness with symlink timestamps.
26729         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
26730         to utimensat/futimens instead.
26731         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
26732
26733         test-dup2: enhance test
26734         * tests/test-dup2.c (main): Also check AT_FDCWD.
26735
26736         test-stat-time: avoid more spurious failures
26737         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
26738         xfs; and avoid race if the two timestamps cross quantization edge.
26739
26740         relocatable: prefer 'file system' over 'filesystem'
26741         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
26742         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
26743         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
26744         * doc/relocatable.texi (Enabling Relocatability): Likewise.
26745         * lib/relocatable.c (compute_curr_prefix): Likewise.
26746
26747 2009-10-10  Jim Meyering  <meyering@redhat.com>
26748
26749         stat-time-tests: check for the usleep function
26750         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
26751
26752 2009-10-10  Bruno Haible  <bruno@clisp.org>
26753
26754         * modules/xnanosleep: Put the Link section after the Include section.
26755
26756 2009-10-09  Eric Blake  <ebb9@byu.net>
26757
26758         dup2: work around FreeBSD 6.1 bug
26759         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
26760         * doc/posix-functions/dup2.texi (dup2): Document it.
26761         Reported by Nelson H. F. Beebe and Jim Meyering.
26762
26763         test-stat-time: port to buggy NFS clients
26764         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
26765         (test_ctime): Also skip test if mtime and ctime are skewed.
26766
26767         maint: prefer 'file system' over 'filesystem'
26768         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
26769         * doc/posix-functions/lstat.texi (lstat): Likewise.
26770         * lib/file-has-acl.c (file_has_acl): Likewise.
26771         * lib/fwriteerror.c [TEST]: Likewise.
26772         * tests/test-areadlink.h (test_areadlink): Likewise.
26773         * tests/test-areadlinkat-with-size.c (main): Likewise.
26774         * tests/test-areadlinkat.c (main): Likewise.
26775         * tests/test-canonicalize-lgpl.c (main): Likewise.
26776         * tests/test-canonicalize.c (main): Likewise.
26777         * tests/test-fstatat.c (main): Likewise.
26778         * tests/test-linkat.c (main): Likewise.
26779         * tests/test-lstat.h (test_lstat_func): Likewise.
26780         * tests/test-mkdir.h (test_mkdir): Likewise.
26781         * tests/test-readlink.h (test_readlink): Likewise.
26782         * tests/test-remove.c (main): Likewise.
26783         * tests/test-rename.h (test_rename): Likewise.
26784         * tests/test-renameat.c (main): Likewise.
26785         * tests/test-rmdir.h (test_rmdir_func): Likewise.
26786         * tests/test-symlink.h (test_symlink): Likewise.
26787         * tests/test-symlinkat.c (main): Likewise.
26788         * tests/test-unlink.h (test_unlink_func): Likewise.
26789         * tests/test-unlinkat.c (main): Likewise.
26790
26791         maint: make realtime library usage explicit
26792         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
26793         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
26794         * modules/settime (Link): Likewise.
26795         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
26796
26797         test-stat-time: speed up execution
26798         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
26799         warning on mingw.
26800         (nap): New helper function.
26801         (prepare_test): Use it to reduce sleep time.
26802         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
26803         execution.
26804         * modules/stat-time-tests (configure.ac): Check for usleep.
26805
26806 2009-10-09  Jim Meyering  <meyering@redhat.com>
26807
26808         selinux-h: always use getfilecon wrappers
26809         * lib/getfilecon.c: New file.
26810         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
26811         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
26812         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
26813         (fgetfilecon): Provide a stub.
26814         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
26815         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
26816         file unconditionally.
26817         When <selinux/selinux.h> is found, arrange to use wrappers.
26818         * modules/selinux-h (Files): Add getfilecon.c.
26819         (Makefile.am): Substitute include-next-related bits
26820         into the now-always-generated selinux/selinux.h file.
26821         * doc/glibc-functions/lgetfilecon.texi: New file.
26822         * doc/glibc-functions/fgetfilecon.texi: New file.
26823         * doc/glibc-functions/getfilecon.texi: New file.
26824         * doc/glibc-functions/getfilecon-desc.texi: New file.
26825         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
26826         which to pull in the new files.
26827         * MODULES.html.sh (Misc): Add selinux-h.
26828
26829 2009-10-08  Jim Meyering  <meyering@redhat.com>
26830
26831         unistd: fix comment typo
26832         * lib/unistd.in.h (euidaccess): Fix a comment typo.
26833
26834 2009-10-08  Eric Blake  <ebb9@byu.net>
26835
26836         areadlink: use SIZE_MAX consistently
26837         * modules/areadlink (Depends-on): Add stdint.
26838         * modules/areadlink-with-size (Depends-on): Likewise.
26839         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
26840         gives NULL; drop sys/types, since unistd gives size_t; and add
26841         stdint for SIZE_MAX.
26842         (SIZE_MAX): Rely on headers.
26843         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
26844         and add stdint.
26845         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
26846         (SIZE_MAX): Likewise.
26847         (INITIAL_BUF_SIZE): Turn into enum.
26848         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
26849
26850 2009-10-08  Jim Meyering  <meyering@redhat.com>
26851
26852         areadlinkat: avoid compilation failure
26853         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
26854         Fix typo in comment.
26855
26856 2009-10-07  Eric Blake  <ebb9@byu.net>
26857
26858         areadlinkat-with-size: new module
26859         * modules/areadlinkat-with-size: New module.
26860         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
26861         * lib/areadlink.h (areadlinkat): Declare it.
26862         * MODULES.html.sh (File system functions): Mention it.
26863         * modules/areadlinkat-with-size-tests: New test.
26864         * tests/test-areadlinkat-with-size.c: New file.
26865
26866         xreadlinkat: new module
26867         * modules/xreadlinkat: New module.
26868         * lib/xreadlinkat.c (xreadlinkat): New file.
26869         * lib/xreadlink.h (xreadlinkat): Declare it.
26870         * MODULES.html.sh (File system functions): Mention it.
26871
26872         areadlinkat: new module
26873         * lib/at-func.c (FUNC_FAIL): New define.
26874         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
26875         * modules/areadlinkat: New module.
26876         * lib/linkat.c (areadlinkat): Move...
26877         * lib/areadlinkat.c (areadlinkat): ...to new file.
26878         * lib/areadlink.h (areadlinkat): Declare it.
26879         * modules/linkat (Depends-on): Add areadlinkat.
26880         * MODULES.html.sh (File system functions): Mention it.
26881         * modules/areadlinkat-tests: New test.
26882         * tests/test-areadlinkat.c: New file.
26883
26884         areadlink, areadlink-with-size: add tests
26885         * modules/areadlink-tests: New test.
26886         * modules/areadlink-with-size-tests: Likewise.
26887         * tests/test-areadlink.h: New file.
26888         * tests/test-areadlink.c: Likewise.
26889         * tests/test-areadlink-with-size.c: Likewise.
26890
26891         maint: minor cleanups
26892         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
26893         _UNUSED_PARAMETER_ instead.
26894         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
26895         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
26896         * modules/linkat-tests (Files): Distribute test-link.h.
26897
26898         openat, utimens: whitespace cleanup
26899         * lib/openat.c: Prefer space throughout, rather than mix of 8
26900         spaces vs. tabs.
26901         * lib/at-func.c: Likewise.
26902         * lib/utimens.c: Likewise.
26903
26904         openat: avoid using wrong fd
26905         * lib/openat.c (openat_permissive): Reject user's fd if saving the
26906         working directory chooses same fd.
26907         * lib/at-func.c (AT_FUNC_NAME): Likewise.
26908
26909         mkdir, mkdirat: fix cygwin 1.5.x bug
26910         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
26911         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
26912         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
26913         bug.
26914         (gl_PREREQ_MKDIR): Delete unused macro.
26915         * modules/mkdir (Files): Track file rename.
26916         (configure.ac): Update macro name.
26917         * modules/openat (Depends-on): Add mkdir.
26918         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
26919
26920         mkdir, mkdirat: add tests
26921         * modules/mkdir-tests: New test.
26922         * tests/test-mkdir.h: New file.
26923         * tests/test-mkdir.c: Likewise.
26924         * tests/test-mkdirat.c: Likewise.
26925         * modules/openat-tests (Files): Add new files.
26926         (Makefile.am): Run new test.
26927
26928 2009-10-06  Eric Blake  <ebb9@byu.net>
26929
26930         doc: tweak *at function documentation
26931         * doc/posix-functions/faccessat.texi (faccessat): Mention
26932         known issue with replacement.
26933         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
26934         * doc/posix-functions/linkat.texi (linkat): Likewise.
26935         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
26936         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
26937         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26938         * doc/posix-functions/renameat.texi (renameat): Likewise.
26939         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
26940
26941         openat: fix GNU/Hurd bug in unlinkat
26942         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
26943         broken.
26944         * doc/posix-functions/unlink.texi (unlink): Document this.
26945         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
26946
26947         fdopendir: fix GNU/Hurd bug
26948         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
26949         allowing non-directory fds.
26950         * lib/fdopendir.c (rpl_fdopendir): Work around it.
26951         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
26952         * modules/dirent (Makefile.am): Substitute it.
26953         * lib/dirent.in.h (fdopendir): Declare replacement.
26954         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
26955         * tests/test-fdopendir.c (main): Test something other than
26956         /dev/null, since on Hurd that behaves like a directory.
26957
26958         test-symlink: port to GNU/Hurd
26959         * tests/test-symlink.h (test_symlink): Relax expected errno.
26960
26961         doc: tweak more cygwin information
26962         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
26963         now compatible with glibc.
26964         * doc/posix-functions/getopt.texi (getopt): Likewise.
26965
26966         getopt-gnu: add another test
26967         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
26968         guarantee behavior relied on by m4.
26969         * tests/test-getopt.c (main): Use it.
26970         * modules/getopt-posix-tests (Depends-on): Add setenv.
26971         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
26972
26973         getopt: fix compilation on darwin
26974         * lib/getopt.in.h (includes): Leave breadcrumbs during system
26975         include.
26976         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
26977         Reported by Ludovic Courtès.
26978
26979 2009-10-06  Bruno Haible  <bruno@clisp.org>
26980
26981         * modules/size_max (Description): Discourage its use.
26982         Reported by Simon Josefsson.
26983
26984 2009-10-06  Jim Meyering  <meyering@redhat.com>
26985
26986         linkat: avoid compilation failure
26987         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
26988
26989 2009-10-05  Eric Blake  <ebb9@byu.net>
26990
26991         linkat: support Linux 2.6.17
26992         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
26993         linkat on Linux, but allow cache variable override.
26994         * lib/linkat.c (rpl_linkat): Define override.
26995         * modules/linkat (Depends-on): Add symlinkat.
26996         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
26997         * modules/unistd (Makefile.am): Substitute it.
26998         * lib/unistd.in.h (linkat): Declare replacement.
26999         Reported by Pádraig Brady.
27000
27001         quotearg: port test to systems with C.UTF-8 locale
27002         * tests/test-quotearg.c (struct result_strings): Add another
27003         member, differentiating between C.ASCII and C.UTF-8 handling.
27004         (compare_strings): Add parameter.
27005         (main): Adjust all callers.
27006
27007         getopt: avoid clash with FreeBSD _getopt_internal
27008         * lib/getopt.in.h (_getopt_internal): Override the name.
27009         * lib/getopt_int.h (includes): Pick up any overrides.
27010         Reported by Reuben Thomas.
27011
27012         hash: allow C89 compilation
27013         * lib/hash.c (check_tuning): Move declaration before statement.
27014         Reported by Reuben Thomas.
27015
27016 2009-10-05  Karl Berry  <karl@gnu.org>
27017
27018         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
27019
27020 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
27021             Bruno Haible  <bruno@clisp.org>
27022
27023         * lib/uname.c (uname): Use a table-driven algorithm to compute
27024         Windows NT versions.
27025
27026 2009-10-04  Bruno Haible  <bruno@clisp.org>
27027
27028         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
27029         program_invocation_short_name.
27030         * modules/progname (configure.ac): Test for presence of
27031         program_invocation_short_name.
27032         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
27033
27034 2009-10-04  Bruno Haible  <bruno@clisp.org>
27035
27036         * lib/progname.c (set_program_name): Fix comment.
27037         Reported by Jim Meyering.
27038
27039 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
27040             Bruno Haible  <bruno@clisp.org>
27041
27042         * lib/uname.c: Include <string.h>.
27043         (uname): Do only one call to GetVersionEx in the common case.
27044
27045 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
27046             Bruno Haible  <bruno@clisp.org>
27047
27048         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
27049         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
27050         (uname): Add support for Windows CE and various non-x86 CPU types.
27051
27052 2009-10-03  Bruno Haible  <bruno@clisp.org>
27053
27054         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
27055         invocation to tests/configure.ac.
27056         Reported by Ian Beckwith <ianb@erislabs.net>.
27057
27058 2009-10-02  Eric Blake  <ebb9@byu.net>
27059
27060         fchdir: avoid compiler warning
27061         * lib/fchdir.c (canonicalize_file_name)
27062         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
27063
27064         test-open: support mingw errno values
27065         * tests/test-open.h (test_open): Relax test.
27066         * tests/test-fopen.h (test_fopen): Likewise.
27067         * tests/test-openat-safer.c (main): Likewise.
27068
27069         open: fix opening directory on mingw
27070         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
27071
27072         test-open: on GNU/Hurd, /dev/null is a directory
27073         * tests/test-fopen.h (main): Rename...
27074         (test_fopen): ...to this.  Use a guaranteed non-directory when
27075         confirming open behavior on trailing slash.
27076         * tests/test-openat-safer.c (main): Likewise.
27077         * tests/test-open.h (main): Likewise....
27078         (test_open): ...to this.
27079         * tests/test-fopen.c (main): Adjust caller.
27080         * tests/test-fopen-safer.c (main): Likewise.
27081         * tests/test-open.c (main): Likewise.
27082         * tests/test-fcntl-safer.c (main): Likewise.
27083         Reported by Samuel Thibault.
27084
27085         rename, fchdir: don't ignore chdir failure
27086         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
27087         * lib/rename.c (rpl_rename) [W32]: Likewise.
27088         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
27089         an empty destination directory if source cannot be renamed,
27090         although there is still possibility for failure.
27091         * doc/posix-functions/rename.texi (rename): Document the race.
27092         Reported by Jim Meyering.
27093
27094         maint: cleanup whitespace in recent commits
27095         * lib/rename.c (rpl_rename): Remove tabs.
27096         * tests/test-link.h (test_link): Likewise.
27097         * lib/fchdir.c (get_name): Likewise.
27098         Reported by Jim Meyering.
27099
27100 2009-10-02  Ben Pfaff  <blp@gnu.org>
27101
27102         relocatable-prog-wrapper: Add missing dependency on
27103         double-slash-root.
27104         * modules/relocatable-prog-wrapper: Add dependency.
27105         Reported by Ian Beckwith <ianb@erislabs.net>.
27106
27107 2009-10-02  Eric Blake  <ebb9@byu.net>
27108
27109         renameat: fix Solaris bugs
27110         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
27111         needed fixing.
27112         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
27113         * modules/stdio (Makefile.am): Substitute it.
27114         * lib/stdio.in.h (renameat): Declare replacement.
27115         * lib/renameat.c (rpl_renameat): Implement fix.
27116
27117         renameat: new module
27118         * modules/renameat: New file.
27119         * lib/renameat.c (renameat): Likewise.
27120         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
27121         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
27122         * modules/stdio (Makefile.am): Substitute them.
27123         * lib/stdio.in.h (renameat): Declare it.
27124         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27125         * doc/posix-functions/renameat.texi (renameat): Likewise.
27126         * modules/renameat-tests: New test.
27127         * tests/test-renameat.c: Likewise.
27128
27129         rename: fix mingw bugs
27130         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
27131         directory overwrite bugs.
27132
27133         rename: fix another cygwin 1.5 bug
27134         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
27135         checks.
27136         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
27137         unnecessary cygwin workarounds.  Also work around bug with moving
27138         full directory onto an empty one.
27139         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
27140
27141         rename-dest-slash: merge into rename module
27142         * modules/rename-dest-slash (Status): Mark obsolete.
27143         (Depends-on): Add rename.
27144         (Files): Let rename do it all.
27145         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
27146         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
27147         * m4/rename-dest-slash.m4: ...so this file can be deleted.
27148         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
27149         * lib/rename.c (rpl_rename): Update comments.
27150
27151         rename: fix cygwin 1.5.x bugs
27152         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
27153         * lib/rename.c (rpl_rename): Work around them.
27154         * modules/rename (Depends-on): Add same-inode.
27155
27156         rename: fix Solaris 10 bug
27157         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
27158         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
27159         was the only bug.
27160
27161         rename: fix Solaris 9 bug
27162         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
27163         on non-directory.  Avoid calling exit.
27164         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
27165         strdup.
27166         * modules/rename-tests (Depends-on): Drop lstat.
27167         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
27168         (gl_PREREQ_RENAME): Delete unused macro.
27169
27170         rename-dest-slash: fix NetBSD bug
27171         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
27172         links.
27173         * modules/rename-dest-slash (Depends-on): Add same-inode.
27174
27175         rename-tests: new test, exposes several platform bugs
27176         * modules/rename-tests: New file.
27177         * tests/test-rename.h: Likewise.
27178         * tests/test-rename.c: Likewise.
27179         * doc/posix-functions/rename.texi (rename): Improve documentation,
27180         including bugs that will eventually be fixed in gnulib.
27181
27182 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
27183
27184         * lib/uname.c: Include <stdlib.h>
27185         (uname): Assume version info is available.
27186
27187 2009-10-02  Jim Meyering  <meyering@redhat.com>
27188
27189         gnu-web-doc-update: correct --help output
27190         * build-aux/gnu-web-doc-update: Make --help output relevant.
27191
27192         gnu-web-doc-update: add standard options
27193         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
27194
27195         gnu-web-doc-update: New module.
27196         Use this script to automatically update the on-line web documentation
27197         for your GNU project at http://www.gnu.org/software/$pkg/manual/
27198         * modules/gnu-web-doc-update: New file, from coreutils.
27199         * build-aux/gnu-web-doc-update: New script.
27200
27201 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
27202
27203         link: LoadLibrary is not needed.
27204         * lib/link.c: Use GetModuleHandle.
27205
27206 2009-10-01  Eric Blake  <ebb9@byu.net>
27207
27208         getopt: bump serial number
27209         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
27210         change.
27211
27212         tests: tighten link, rmdir, and remove tests
27213         * tests/test-link.h (includes): No need to use <config.h> here.
27214         Clean up if directory hard link was created, otherwise test for
27215         trailing '.'.
27216         * tests/test-linkat.c (main): Simplify.
27217         * tests/test-remove.c (main): Enhance test for trailing '.'.
27218         * tests/test-rmdir.h (test_rmdir_func): Likewise.
27219
27220 2009-10-01  Jim Meyering  <meyering@redhat.com>
27221
27222         maint.mk: requiring "make major" was annoying, for a "minor" release.
27223         What is intended is "stable", to contrast with alpha and beta,
27224         so require "make stable", not "make major".
27225         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
27226         (get_tool_versions): Likewise.
27227         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
27228
27229 2009-09-30  Ben Pfaff  <blp@gnu.org>
27230
27231         Fix broken build of replacement for Windows tmpfile().
27232         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
27233         flags argument added along with the 'mkostemp' module.
27234
27235 2009-09-28  Bruno Haible  <bruno@clisp.org>
27236
27237         Avoid identifier clash with POSIX function 'remove' defined as a macro.
27238         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
27239         to 'remove_elt'.
27240         (gl_list_remove): Update.
27241         * lib/gl_list.c (gl_list_remove): Update.
27242         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
27243         to 'remove_elt'.
27244         (gl_oset_remove): Update.
27245         * lib/gl_list.c (gl_oset_remove): Update.
27246         Reported by Eric Blake.
27247
27248 2009-09-28  Eric Blake  <ebb9@byu.net>
27249
27250         doc: mention yet more cygwin 1.7 status
27251         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
27252         cygwin.
27253         * doc/glibc-functions/execvpe.texi (execvpe): New file.
27254         * doc/gnulib.texi (Glibc unistd.h): Mention it.
27255
27256         argp: fix test failure
27257         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
27258         that are not upper-case.  Pass correct range to tolower.
27259
27260 2009-09-27  Jim Meyering  <meyering@redhat.com>
27261
27262         test-yesno: work around sparc-dash here-document infelicity
27263         Without this change, the literal \177 byte in a here document
27264         would make dash 0.5.5.1-3 access uninitialized memory.
27265         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
27266         Instead, use a marker, "@", and filter through tr to create the desired
27267         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
27268
27269 2009-09-27  Bruno Haible  <bruno@clisp.org>
27270
27271         Disable untested support for new flavours of ACLs on AIX.
27272         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
27273         progress.
27274         * lib/set-mode-acl.c (qset_acl): Likewise.
27275
27276 2008-12-07  Bruno Haible  <bruno@clisp.org>
27277
27278         Add support for new flavours of ACLs on AIX. (Untested.)
27279         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
27280         (file_has_acl): Add support for newer AIX.
27281         * lib/set-mode-acl.c (qset_acl): Likewise.
27282         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
27283         Rainer Tammer <tammer@tammer.net>.
27284
27285 2009-09-26  Eric Blake  <ebb9@byu.net>
27286
27287         argp: fix compilation of getopt
27288         * lib/getopt.in.h (includes): Use different guard than glibc.
27289         Reported by Sergey Poznyakoff.
27290
27291         doc: mention more cygwin 1.7 status
27292         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
27293         bug.
27294         * doc/posix-functions/execl.texi (execl): Likewise.
27295         * doc/posix-functions/execle.texi (execle): Likewise.
27296         * doc/posix-functions/execlp.texi (execlp): Likewise.
27297         * doc/posix-functions/execv.texi (execv): Likewise.
27298         * doc/posix-functions/execve.texi (execve): Likewise.
27299         * doc/posix-functions/execvp.texi (execvp): Likewise.
27300         * doc/glibc-functions/canonicalize_file_name.texi
27301         (canonicalize_file_name): Cygwin 1.7 now provides this.
27302         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
27303         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
27304         on AT_SYMLINK_NOFOLLOW.
27305
27306 2009-09-24  Eric Blake  <ebb9@byu.net>
27307
27308         test-linkat: make test more robust
27309         * tests/test-linkat.c (main): Avoid collision with EEXIST.
27310
27311         getopt: fix inclusion guards for cygwin
27312         * modules/getopt-posix (Depends-on): Add include-next.
27313         (Makefile.am): Substitute more items in replacement header.
27314         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
27315         <getopt.h>.
27316         * lib/getopt.in.h (includes): Use split inclusion guard, and
27317         prefer <getopt.h> over include <unistd.h> when one is present.
27318         (option): Also override name of 'struct option'.
27319
27320         same-inode: revert prior change; it is not yet ready
27321         * NEWS: Undo mention of this change.
27322         * lib/same-inode.h (same-inode.h): Undo tri-state change.
27323         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
27324         * lib/cycle-check.c (cycle_check): Likewise.
27325         * lib/same.c (same_name): Likewise.
27326         * lib/at-func2.c (at_func2): Likewise.
27327
27328 2009-09-23  Eric Blake  <ebb9@byu.net>
27329
27330         linkat: new module
27331         * modules/linkat: New file.
27332         * lib/at-func2.c (at_func2): Likewise.
27333         * lib/linkat.c (linkat): Likewise.
27334         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
27335         * lib/openat-priv.h (at_func2): Add declaration.
27336         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
27337         * modules/unistd (Makefile.am): Substitute them.
27338         * lib/unistd.in.h (linkat): Declare it.
27339         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27340         * doc/posix-functions/linkat.texi (linkat): Likewise.
27341         * doc/posix-functions/link.texi (link): Tweak wording.
27342         * tests/test-link.c (main): Move guts...
27343         * tests/test-link.h (test_link): ...into new file.
27344         * modules/linkat-tests: New test.
27345         * tests/test-linkat.c: Likewise.
27346         * modules/link-tests (Files): Ship new file.
27347         (Depends-on): Add stdbool.
27348
27349         dirname: add library-safe mdir_name
27350         * lib/dirname.h (mdir_name): New prototype.
27351         * lib/dirname.c (dir_name): Move guts...
27352         (mdir_name): ...to new function that avoids xalloc_die.
27353
27354         fchdir: another mingw fix
27355         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
27356         * lib/fchdir.c (get_name): New helper method; skips canonicalize
27357         on mingw (where it has not yet been ported), and make it optional
27358         elsewhere.
27359         (_gl_register_fd): Use it.
27360
27361         same-inode: make SAME_INODE tri-state, to port to mingw
27362         * NEWS: Mention this change.
27363         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
27364         st_ino always being 0.
27365         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
27366         * lib/cycle-check.c (cycle_check): Likewise.
27367         * lib/same.c (same_name): Likewise.
27368
27369         lstat: avoid mingw compilation error
27370         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
27371         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
27372         lstat ourselves.
27373         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
27374         was adequate.
27375         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
27376         the checks for lstat.
27377         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
27378
27379         link: fix test failure on Solaris 9
27380         * lib/link.c (rpl_link): Don't assume link will catch bogus
27381         trailing slash on source.
27382
27383         test-symlinkat: enhance test
27384         * tests/test-readlink.c (main): Move guts...
27385         * tests/test-readlink.h (test_readlink): ...into new file.
27386         * tests/test-symlink.c (main): Move guts...
27387         * tests/test-symlink.h (test_symlink): ...into new file.
27388         * tests/test-symlinkat.c (main): Use new files for further
27389         coverage.
27390         (do_symlink, do_readlink): New helper functions.
27391         * modules/symlink-tests (Files): Ship new file.
27392         (Depends-on): Add stdbool.
27393         * modules/readlink-tests (Files): Ship new file.
27394         (Depends-on): Add stdbool.
27395         * modules/symlinkat-tests (Files): Use new files.
27396
27397 2009-09-23  Eric Blake  <ebb9@byu.net>
27398
27399         readlink: document portability issue with symlink length
27400         * doc/posix-functions/lstat.texi (lstat): Mention that some file
27401         systems have bogus st_size on symlinks, and mention the
27402         areadlink-with-size module.
27403         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
27404         * doc/posix-functions/readlink.texi (readlink): Mention the
27405         areadlink module, and ERANGE failure.
27406         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
27407         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
27408
27409         readlink: fix Solaris 9 bug with trailing slash
27410         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
27411         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
27412         * doc/posix-functions/readlink.texi (readlink): Document this.
27413         * modules/readlink-tests: New test.
27414         * tests/test-readlink.c: Likewise.
27415
27416         readlink: fix cygwin 1.5.x bug with return type
27417         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
27418         * lib/unistd.in.h (readlink): Use ssize_t.
27419         * lib/readlink.c (readlink): Likewise.
27420         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27421         * modules/unistd (Makefile.am): Substitute it.
27422         * lib/unistd.in.h (readlink): Declare replacement.
27423         * doc/posix-functions/readlink.texi (readlink): Document this.
27424
27425         symlink: use throughout gnulib
27426         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
27427         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
27428         symlink is not used.
27429         * modules/symlinkat (Depends-on): Add symlink.
27430         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
27431         * modules/canonicalize-tests (Depends-on): Likewise.
27432         * modules/lstat-tests (Depends-on): Likewise.
27433         * modules/openat-tests (Depends-on): Likewise.
27434         * modules/remove-tests (Depends-on): Likewise.
27435         * modules/rmdir-tests (Depends-on): Likewise.
27436         * modules/unlink-tests (Depends-on): Likewise.
27437         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
27438         * tests/test-canonicalize.c (symlink): Likewise.
27439         * tests/test-fstatat.c (symlink): Likewise.
27440         * tests/test-lstat.c (symlink): Likewise.
27441         * tests/test-remove.c (symlink): Likewise.
27442         * tests/test-rmdir.c (symlink): Likewise.
27443         * tests/test-unlink.c (symlink): Likewise.
27444         * tests/test-unlinkat.c (symlink): Likewise.
27445
27446         symlink: new module, for Solaris 9 bug
27447         * modules/symlink: New file.
27448         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
27449         * lib/symlink.c: Likewise.
27450         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
27451         * modules/unistd (Makefile.am): Substitute them.
27452         * lib/unistd.in.h (symlink): Declare replacement.
27453         * MODULES.html.sh (File system functions): Mention it.
27454         * doc/posix-functions/symlink.texi (symlink): Likewise.
27455         * modules/symlink-tests: New test.
27456         * tests/test-symlink.c: Likewise.
27457
27458 2009-09-23  Bruno Haible  <bruno@clisp.org>
27459
27460         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
27461         when needed.
27462         Test case: gnulib-tool --import --with-tests atexit inttypes.
27463         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
27464
27465 2009-09-23  Bruno Haible  <bruno@clisp.org>
27466
27467         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
27468         subcommand, not in a subshell.
27469
27470 2009-09-22  Eric Blake  <ebb9@byu.net>
27471
27472         unistd: sort replacement declarations
27473         * lib/unistd.in.h: Sort declarations.
27474
27475         open, openat: minor optimization
27476         * lib/open.c (open): If open succeeded, len is non-zero.
27477         * lib/openat.c (rpl_openat): Likewise.
27478
27479         link-follow: ensure correct result
27480         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
27481         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
27482         distinguish between possible failures.
27483
27484 2009-09-21  Eric Blake  <ebb9@byu.net>
27485
27486         fts: avoid compiler warning
27487         * lib/fts.c (dirent_inode_sort_may_be_useful)
27488         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
27489
27490 2009-09-19  Bruno Haible  <bruno@clisp.org>
27491
27492         * lib/progreloc.c (canonicalize_file_name): New declaration.
27493
27494 2009-09-19  Eric Blake  <ebb9@byu.net>
27495
27496         link: fix quoting
27497         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
27498
27499         openat: fix openat bugs on Solaris 9
27500         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
27501         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
27502         * modules/openat (Depends-on): Add open.
27503         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
27504         * modules/fcntl-h (Makefile.am): Substitute it.
27505         * lib/fcntl.in.h (openat): Declare replacement.
27506         * doc/posix-functions/openat.texi (openat): Document this.
27507
27508         openat: move fstatat and unlinkat into correct files
27509         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
27510         compiled.
27511         * lib/openat.c (fstatat, unlinkat): Move...
27512         * lib/fstatat.c (fstatat): ...into correct files.
27513         * lib/unlinkat.c (unlinkat): Likewise.
27514
27515         openat: fix unlinkat bugs on Solaris 9
27516         * lib/unlinkat.c (unlinkat): New file.
27517         * modules/openat (Depends-on): Add unlink.
27518         (Files): Distribute it.
27519         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
27520         trailing slash behavior is broken.
27521         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27522         * modules/unistd (Makefile.am): Substitute it.
27523         * lib/unistd.in.h (unlinkat): Declare replacement.
27524         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
27525
27526         openat: fix fstatat bugs on Solaris 9
27527         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
27528         stat.
27529         * doc/posix-functions/fstatat.texi (fstatat): Document this.
27530
27531         test-unlinkat: enhance test, to expose Solaris 9 bug
27532         * tests/test-unlink.c (main): Factor guts...
27533         * tests/test-unlink.h (test_rmdir_func): ...into new file.
27534         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
27535         * tests/test-rmdir.c (main): Adjust caller.
27536         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
27537         (unlinker): New helper function.
27538         (rmdirat): Enhance check.
27539         * modules/rmdir-tests (Depends-on): Add stdbool.
27540         * modules/unlink-tests (Depends-on): Likewise.
27541         (Files): Add test-unlink.h.
27542         * modules/openat-tests (Files): Likewise.
27543         (Depends-on): Add unlinkdir.
27544
27545         test-fstatat: new test, to expose Solaris 9 bugs
27546         * tests/test-stat.c (main): Factor guts...
27547         * tests/test-stat.h (test_stat_func): ...into new file.
27548         * tests/test-lstat.c (main): Factor guts...
27549         * tests/test-lstat.h (test_lstat_func): ...into new file.
27550         * tests/test-fstatat.c: New file.
27551         * modules/stat-tests (Files): Add test-stat.h.
27552         * modules/lstat-tests (Files): Add test-lstat.h.
27553         (Depends-on): Add stdbool.
27554         * modules/openat-tests (Depends-on): Add pathmax.
27555         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
27556         (Makefile.am): Run new test.
27557
27558         remove: new module, for mingw and Solaris 9 bugs
27559         * modules/remove: New file.
27560         * lib/remove.c: Likewise.
27561         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
27562         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
27563         * modules/stdio (Makefile.am): Use them.
27564         * lib/stdio.in.h (remove): Declare replacement.
27565         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27566         * doc/posix-functions/remove.texi (remove): Likewise.
27567         * modules/remove-tests: New test.
27568         * tests/test-remove.c: Likewise.
27569
27570         unlink: new module, for Solaris 9 bug
27571         * modules/unlink: New file.
27572         * lib/unlink.c: Likewise.
27573         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
27574         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
27575         * modules/unistd (Makefile.am): Use them.
27576         * lib/unistd.in.h (stat): Declare replacement.
27577         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27578         * doc/posix-functions/unlink.texi (unlink): Likewise.
27579         * modules/unlink-tests: New test.
27580         * tests/test-unlink.c: Likewise.
27581
27582         lstat: fix Solaris 9 bug
27583         * lib/lstat.c (lstat): Also check for trailing slash on
27584         non-symlink, non-directories.  Use stat module to simplify logic.
27585         * doc/posix-functions/lstat.texi (lstat): Document it.
27586         * modules/lstat-tests (Depends-on): Add errno, same-inode.
27587         (configure.ac): Check for symlink.
27588         * tests/test-lstat.c (main): Add more tests.
27589
27590         stat: add as dependency to other modules
27591         * modules/chown (Depends-on): Add stat.
27592         * modules/euidaccess (Depends-on): Likewise.
27593         * modules/fchdir (Depends-on): Likewise.
27594         * modules/isdir (Depends-on): Likewise.
27595         * modules/link (Depends-on): Likewise.
27596         * modules/lstat (Depends-on): Likewise.
27597         * modules/mkdir-p (Depends-on): Likewise.
27598         * modules/modechange (Depends-on): Likewise.
27599         * modules/open (Depends-on): Likewise.
27600         * modules/readlink (Depends-on): Likewise.
27601         * modules/same (Depends-on): Likewise.
27602
27603         stat: fix Solaris 9 bug
27604         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
27605         slash.
27606         * lib/stat.c (rpl_stat): Work around it.
27607         * doc/posix-functions/stat.texi (stat): Update documentation.
27608
27609         stat: new module, for mingw bug
27610         * modules/stat: New file.
27611         * lib/stat.c: Likewise.
27612         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
27613         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
27614         * modules/sys_stat (Makefile.am): Use them.
27615         * lib/sys_stat.in.h (stat): Declare replacement.
27616         * lib/openat.c (fstatat): Deal with lstat and stat being function
27617         macros.
27618         * modules/openat (Depends-on): Add inline.
27619         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27620         * doc/posix-functions/stat.texi (stat): Likewise.
27621         * modules/stat-tests: New test.
27622         * tests/test-stat.c: Likewise.
27623
27624 2009-09-19  Jim Meyering  <meyering@redhat.com>
27625
27626         syntax-check: detect unnecessary inclusion of canonicalize.h
27627         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
27628
27629 2009-09-19  Eric Blake  <ebb9@byu.net>
27630
27631         canonicalize-lgpl: adjust clients to use correct header
27632         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
27633         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
27634         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
27635         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
27636         * lib/progreloc.c (includes): Likewise.
27637
27638 2009-09-19  Jim Meyering  <meyering@redhat.com>
27639
27640         test-posixtm.c: correct a comment
27641         * tests/test-posixtm.c: Correct first-line comment.
27642         Spotted by Eric Blake.
27643
27644 2009-09-16  Jim Meyering  <meyering@redhat.com>
27645
27646         posixtm-tests: make T const-correct; add a test case
27647         * tests/test-posixtm.c (T): Declare const.
27648         Add a test for -(2^31+1).
27649         Remove useless can-succeed-only-in-2002 test.
27650
27651         posixtm-tests: adjust the sole failing test
27652         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
27653         expected output matches what mktime now produces.  Cross-checked via
27654         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
27655
27656         posixtm: move #ifdef'd tests into a new module
27657         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
27658         * tests/test-posixtm.c: ... this new file.
27659         * modules/posixtm-tests: New module.
27660
27661 2009-09-19  Eric Blake  <ebb9@byu.net>
27662
27663         openat: simplify use of at-func.c
27664         * lib/at-func.c (includes): Include prerequisites here, to
27665         simplify requirements on client files.
27666         * lib/openat-priv.h: Add double-inclusion guard.
27667         * lib/faccessat.c (includes): Simplify.
27668         * lib/fchmodat.c (includes): Likewise.
27669         * lib/fchownat.c (includes): Likewise.
27670         * lib/mkdirat.c (includes): Likewise.
27671         * lib/mkfifoat.c (includes): Likewise.
27672         * lib/symlinkat.c (includes): Likewise.
27673
27674         openat: allow return of fd 0
27675         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
27676         * modules/save-cwd (Depends-on): Replace fcntl-safer with
27677         unistd-safer.
27678         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
27679         <fcntl.h>; this module does not leak fds.
27680         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
27681         must be allowed to return 0, leaving openat_safer to add the
27682         safety.
27683         (openat_permissive): Avoid writing to just-opened fd 2 if
27684         restoring the current directory fails.
27685         * lib/openat-die.c (openat_restore_fail): Add comment.
27686         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
27687         (save_cwd): Guarantee safe fd, but without use of open_safer.
27688         * tests/test-openat.c: New test.
27689         * modules/openat-tests (Files, Makefile.am): Distribute and build
27690         new file.
27691
27692         relocatable-prog-wrapper: fix build
27693         * modules/relocatable-prog-wrapper (Files): Update name of
27694         canonicalize m4 file, broken on 2009-09-17.
27695         Reported by emad hajjar <aleppos@hotmail.com>.
27696
27697 2009-09-19  Bruno Haible  <bruno@clisp.org>
27698
27699         * lib/safe-alloc.h: Use the standard header with GPL copyright.
27700         * lib/safe-alloc.c: Likewise.
27701         Reported by Ian Beckwith <ianb@erislabs.net>.
27702
27703 2009-09-18  Bruno Haible  <bruno@clisp.org>
27704
27705         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
27706         Reported by <erobles@sensacd.com.mx>.
27707
27708 2009-09-17  Eric Blake  <ebb9@byu.net>
27709
27710         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
27711         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
27712         slashes when checking if last component is missing.
27713         * tests/test-canonicalize.c (main): Test this.
27714
27715         canonicalize, canonicalize-lgpl: honor // if distinct from /
27716         * modules/canonicalize (Files): Add double-slash-root.m4.
27717         * modules/canonicalize-lgpl (Files): Likewise.
27718         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
27719         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
27720         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
27721         fallback definition.
27722         (canonicalize_filename_mode): Use it to protect //.
27723         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
27724         (__realpath): Likewise.
27725         * tests/test-canonicalize.c (main): Test this.
27726         * tests/test-canonicalize-lgpl.c (main): Likewise.
27727         * modules/canonicalize-tests (Depends-on): Add same-inode.
27728         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
27729
27730         canonicalize-lgpl: fix glibc bug with trailing slash
27731         * m4/canonicalize-lgpl.m4: Move contents...
27732         * m4/canonicalize.m4: ...here.
27733         (gl_CANONICALIZE_LGPL): Factor realpath check...
27734         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
27735         glibc 2.3.5 bug, fixed 2005-04-27.
27736         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
27737         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
27738         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
27739         * modules/canonicalize-lgpl (Files): Manage file rename.
27740         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
27741         * modules/stdlib (Makefile.am): Substitute witness.
27742         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
27743         is needed.
27744         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
27745         replacement is required.
27746         * lib/canonicalize.c (canonicalize_file_name): Likewise.
27747         * doc/glibc-functions/canonicalize_file_name.texi
27748         (canonicalize_file_name): Document this.
27749         * doc/posix-functions/realpath.texi (realpath): Likewise.
27750
27751         canonicalize-lgpl: reject non-directory with trailing slash
27752         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
27753         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
27754         catches failures in glibc 2.3.5.
27755         * tests/test-canonicalize.c (main): Likewise.
27756
27757         canonicalize-lgpl: use native realpath if it works
27758         * lib/canonicalize-lgpl.c (realpath): Guard with
27759         FUNC_REALPATH_WORKS.
27760         * lib/stdlib.in.h (realpath): Make declaration optional based on
27761         HAVE_REALPATH.
27762         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
27763         native realpath works.
27764         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
27765         * modules/stdlib (Makefile.am): Substitute witness.
27766
27767         canonicalize, canonicalize-lgpl: use <stdlib.h>
27768         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
27769         (Include): Mention <stdlib.h>.
27770         (configure.ac): Mention functions we provide.
27771         * modules/canonicalize (configure.ac): Likewise.
27772         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
27773         realpath if canonicalize_file_name is missing.
27774         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
27775         * modules/stdlib (Makefile.am): Substitute witnesses.
27776         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
27777         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
27778         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
27779         * NEWS: Document this.
27780         * doc/glibc-functions/canonicalize_file_name.texi
27781         (canonicalize_file_name): Likewise.
27782         * doc/posix-functions/realpath.texi (realpath): Likewise.
27783         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
27784
27785         test-canonicalize: consolidate into single C program
27786         * tests/test-canonicalize.sh: Delete; move setup into...
27787         * tests/test-canonicalize.c (main): ...the program, making it
27788         easier to run in debugger.  Add some tests.
27789         * modules/canonicalize-tests (Files): Remove unused file.
27790         (Depends-on): Add progname.
27791         (configure.ac, Makefile.am): Simplify.
27792
27793         test-canonicalize-lgpl: consolidate into single C program
27794         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
27795         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
27796         easier to run in debugger.  Add some tests.
27797         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
27798         (configure.ac, Makefile.am): Simplify.
27799
27800         canonicalize: avoid resolvepath
27801         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
27802         unnecessary checks.
27803         * lib/canonicalize.c (includes): Simplify.
27804         (canonicalize_file_name): Drop resolvepath implementation.
27805         * modules/canonicalize (Depends-on): Drop filenamecat.
27806
27807         canonicalize: don't lose errno
27808         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
27809         over calls to free.
27810
27811         canonicalize: simplify errno handling
27812         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
27813         assignment.
27814
27815         canonicalize, canonicalize-lgpl: update module dependencies
27816         * modules/canonicalize (Depends-on): Add extensions, lstat,
27817         pathmax, stdlib.
27818         (Files): Drop pathmax.h.
27819         (configure.ac): Adjust macro name.
27820         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
27821         lstat, stdlib, sys_stat.
27822         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
27823         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
27824         extensions.
27825         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
27826         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
27827         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
27828         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
27829         declaration, if available.
27830         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
27831         we can rely on the readlink module.
27832         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
27833         (includes): Use <unistd.h> unconditionally.
27834
27835 2009-09-17  Eric Blake  <ebb9@byu.net>
27836
27837         maint: make Include sections of modules consistent
27838         * modules/alloca: Use only header name; no need to list #include.
27839         * modules/alloca-opt: Likewise.
27840         * modules/arpa_inet: Likewise.
27841         * modules/canon-host: Likewise.
27842         * modules/configmake: Likewise.
27843         * modules/dirent: Likewise.
27844         * modules/eealloc: Likewise.
27845         * modules/environ: Likewise.
27846         * modules/fchdir: Likewise.
27847         * modules/fcntl: Likewise.
27848         * modules/fcntl-h: Likewise.
27849         * modules/gethrxtime: Likewise.
27850         * modules/gettime: Likewise.
27851         * modules/ignore-value: Likewise.
27852         * modules/inet_ntop: Likewise.
27853         * modules/inet_pton: Likewise.
27854         * modules/inttypes: Likewise.
27855         * modules/isnand-nolibm: Likewise.
27856         * modules/isnanf-nolibm: Likewise.
27857         * modules/mbchar: Likewise.
27858         * modules/mbfile: Likewise.
27859         * modules/mbiter: Likewise.
27860         * modules/mbuiter: Likewise.
27861         * modules/netdb: Likewise.
27862         * modules/netinet_in: Likewise.
27863         * modules/nproc: Likewise.
27864         * modules/pagealign_alloc: Likewise.
27865         * modules/poll: Likewise.
27866         * modules/printf-frexp: Likewise.
27867         * modules/pthread: Likewise.
27868         * modules/putenv: Likewise.
27869         * modules/random_r: Likewise.
27870         * modules/relocatable-prog: Likewise.
27871         * modules/search: Likewise.
27872         * modules/select: Likewise.
27873         * modules/selinux-h: Likewise.
27874         * modules/settime: Likewise.
27875         * modules/signal: Likewise.
27876         * modules/size_max: Likewise.
27877         * modules/socklen: Likewise.
27878         * modules/ssize_t: Likewise.
27879         * modules/stdarg: Likewise.
27880         * modules/stdbool: Likewise.
27881         * modules/stddef: Likewise.
27882         * modules/stdint: Likewise.
27883         * modules/stdio: Likewise.
27884         * modules/stdlib: Likewise.
27885         * modules/string: Likewise.
27886         * modules/strings: Likewise.
27887         * modules/sys_file: Likewise.
27888         * modules/sys_ioctl: Likewise.
27889         * modules/sys_select: Likewise.
27890         * modules/sys_socket: Likewise.
27891         * modules/sys_stat: Likewise.
27892         * modules/sys_time: Likewise.
27893         * modules/sys_times: Likewise.
27894         * modules/sys_utsname: Likewise.
27895         * modules/sys_wait: Likewise.
27896         * modules/sysexits: Likewise.
27897         * modules/time: Likewise.
27898         * modules/times: Likewise.
27899         * modules/tmpfile: Likewise.
27900         * modules/trim: Likewise.
27901         * modules/unistd: Likewise.
27902         * modules/wchar: Likewise.
27903         * modules/wctype: Likewise.
27904
27905 2009-09-17  Bruno Haible  <bruno@clisp.org>
27906
27907         Make getdate.y compile on QNX and NetBSD 5 / i386.
27908         * m4/getdate.m4 (gl_GETDATE): Conditionally define
27909         TIME_T_FITS_IN_LONG_INT.
27910         * lib/getdate.y (long_time_t): New type.
27911         (relative_time): Change type of 'seconds' field to long_time_t.
27912         (get_date): Update types of local variables. Check against overflow
27913         during conversion from long_time_t to time_t.
27914         Reported by Matt Kraai <kraai@ftbfs.org>
27915         and Hasso Tepper <hasso@netbsd.org>.
27916
27917 2009-09-17  Bruno Haible  <bruno@clisp.org>
27918
27919         * modules/COPYING: Update copyright years.
27920         * modules/README: Likeiwse.
27921         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
27922         Reported by Ian Beckwith <ianb@erislabs.net>.
27923
27924 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
27925
27926         * users.txt: Update references for gnuit package.
27927
27928 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
27929
27930         * m4/getdelim.m4: Fix typo in copyright line.
27931
27932 2009-09-17  Bruno Haible  <bruno@clisp.org>
27933
27934         * lib/atoll.c: Use the standard header with GPL copyright.
27935         * lib/argz.in.h: Likewise.
27936         * lib/glob.c: Likewise.
27937         * lib/glob-libc.h: Likewise.
27938         * lib/random_r.c: Likewise.
27939         * lib/siglist.h: Likewise.
27940         * lib/strsignal.c: Likewise.
27941         Reported by Ian Beckwith <ianb@erislabs.net>.
27942
27943 2009-09-17  Eric Blake  <ebb9@byu.net>
27944
27945         rmdir: ensure correct dependency order
27946         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
27947
27948 2009-09-17  Bruno Haible  <bruno@clisp.org>
27949
27950         Disable assertion that fails on NetBSD 5 / i386.
27951         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
27952         Reported by Sam Steingold <sds@gnu.org>
27953         and Hasso Tepper <hasso@netbsd.org>.
27954
27955 2009-09-16  Eric Blake  <ebb9@byu.net>
27956
27957         unlinkdir: port to mingw
27958         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
27959         on which no one can unlink a directory.
27960
27961         stdlib: sort witness names
27962         * modules/stdlib (Makefile.am): Sort replacements.
27963         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
27964         * lib/stdlib.in.h: Likewise.
27965
27966         parse-duration-tests: avoid link failure
27967         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
27968         LIBINTL.
27969         Reported by Tom G. Christensen.
27970
27971         openat-tests: ensure unlinkat behaves like rmdir
27972         * tests/test-rmdir.c (main): Factor guts...
27973         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
27974         * modules/rmdir-tests (Files): Ship new file.
27975         * modules/openat-tests: New test.
27976         * tests/test-unlinkat.c: Likewise.
27977
27978         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
27979         * modules/rmdir-errno (Status, Notice): Now obsolete.
27980
27981         rmdir: work around cygwin 1.5.x and mingw bugs
27982         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
27983         * lib/rmdir.c (rmdir): Work around it.
27984         * modules/rmdir (Status, Notice): No longer obsolete.
27985         (Files): Add dos.m4.
27986         (Depends-on): Add unistd.
27987         (configure.ac): Set witnesses.
27988         (License): Relax to LGPLv2+.
27989         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
27990         * modules/unistd (Makefile.am): Substitute witnesses.
27991         * lib/unistd.in.h (rmdir): Declare replacement.
27992         * doc/posix-functions/rmdir.texi (rmdir): Document this.
27993         * modules/rmdir-tests: New tests.
27994         * tests/test-rmdir.c: Likewise.
27995
27996 2009-09-15  Eric Blake  <ebb9@byu.net>
27997
27998         fchdir: improve use of replacement functions
27999         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
28000         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
28001         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
28002         REPLACE_CLOSEDIR.
28003         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
28004         * modules/sys_stat (Makefile.am): Substitute correct witness.
28005         * modules/dirent (Makefile.am): Likewise.
28006         * modules/unistd (Makefile.am): Likewise.
28007         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
28008         * lib/unistd.in.h (dup): Likewise.
28009         * lib/sys_stat.in.h (fstat): Likewise.
28010
28011         maint: ignore gnulib-tool temp files
28012         * .gitignore: Ignore files created during gnulib-tool --test.
28013
28014 2009-09-13  Jim Meyering  <meyering@redhat.com>
28015
28016         posixtm: don't reject a time that specify "60" as the number of seconds
28017         * lib/posixtm.c (posixtime): The code to reject invalid dates
28018         would also reject a time specified with the .60 suffix.
28019         But POSIX allows that, in order to accommodate leap seconds.
28020         So don't reject it.
28021         (main): Adjust tests accordingly.
28022         * modules/posixtm (Depends-on): Add stpcpy.
28023
28024 2009-09-11  Jim Meyering  <meyering@redhat.com>
28025
28026         announce-gen: include [$release_type] in emitted Subject:
28027         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
28028         e.g., [stable] in the emitted Subject: line.
28029
28030 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28031
28032         Remove obsolete macros from several modules.
28033         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
28034         obsolete Autoconf macros with their modern counterparts.
28035         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
28036         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
28037         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
28038         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
28039         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
28040         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
28041         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
28042         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
28043         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
28044         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
28045         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
28046         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
28047         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
28048         * m4/sockets.m4 (gl_SOCKETS): Likewise.
28049         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
28050         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
28051         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
28052         * m4/time_r.m4 (gl_TIME_R): Likewise.
28053         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
28054         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
28055         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
28056
28057         Fix copyright header in build-aux scripts.
28058         * build-aux/git-version-gen: Fix copyright header to match GPLv3
28059         recommendation.
28060         * build-aux/ncftpput-ftp: Likewise.
28061         * build-aux/update-copyright: Likewise.
28062
28063 2009-09-09  Eric Blake  <ebb9@byu.net>
28064
28065         test-link: allow Linux choice of errno
28066         * tests/test-link.c (main): Relax test for alternate error.
28067
28068         strndup: fix improper m4 caching
28069         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
28070         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
28071         (gl_PREREQ_STRNDUP): Delete.
28072         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
28073         * modules/string (Makefile.am): Substitute it.
28074         * lib/string.in.h (strndup): Modernize prototype.
28075
28076         getcwd: port to mingw
28077         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
28078         different from the POSIX assumptions made throughout the getcwd
28079         module; fortunately, the mingw getcwd does not need replacement.
28080         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
28081         * modules/getcwd-tests: New test.
28082         * tests/test-getcwd.c: Likewise.
28083
28084         link: fix platform bugs
28085         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
28086         * lib/link.c (link): Work around them.  Fix related mingw bug.
28087         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
28088         * modules/unistd (Makefile.am): Substitute it.
28089         * lib/unistd.in.h (link): Declare replacement.
28090         * doc/posix-functions/link.texi (link): Document this.
28091         * modules/link (Depends-on): Add strdup-posix, sys_stat.
28092
28093         test-link: consolidate into single C program, test more cases
28094         * tests/test-link.sh: Delete.
28095         * tests/test-link.c: Test more error conditions.  Exposes bugs on
28096         at least Cygwin and Solaris.
28097         * modules/link-tests (Files): Remove unused file.
28098         (Depends-on): Add errno, sys_stat.
28099         (Makefile.am): Simplify.
28100
28101 2009-09-08  Bruno Haible  <bruno@clisp.org>
28102
28103         Work around towlower, towupper bug on mingw.
28104         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
28105         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
28106         * doc/posix-functions/towlower.texi: Mention the mingw bug.
28107         * doc/posix-functions/towupper.texi: Likewise.
28108         Reported by Eric Blake.
28109
28110 2009-09-08  Jim Meyering  <meyering@redhat.com>
28111
28112         build: don't try to run autoheader if we don't use it
28113         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
28114         is not used in configure.ac.
28115
28116 2009-09-08  Eric Blake  <ebb9@byu.net>
28117
28118         euidaccess: fix compilation error
28119         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
28120
28121         rawmemchr: relax license
28122         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
28123         okay.
28124         Reported by Jim Meyering.
28125
28126         mkfifoat: new module
28127         * modules/mkfifoat: New file.
28128         * lib/mkfifoat.c: Likewise.
28129         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
28130         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
28131         * modules/sys_stat (Makefile.am): Use them.
28132         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
28133         * MODULES.html.sh (File system functions): Mention module.
28134         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
28135         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
28136         * modules/mkfifoat-tests: New test.
28137         * tests/test-mkfifoat.c: Likewise.
28138
28139         strchrnul: relax license
28140         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
28141         okay.
28142         Reported by Jim Meyering.
28143
28144 2009-09-08  Eric Blake  <ebb9@byu.net>
28145
28146         fstatat: fix compilation on Solaris
28147         * lib/fstatat.c (includes): Add fcntl.h.
28148         Reported by Pádraig Brady.
28149
28150 2009-09-07  Eric Blake  <ebb9@byu.net>
28151
28152         rename: modernize replacement
28153         * modules/rename (Depends-on): Add stdio.
28154         (configure.ac): Declare witness.
28155         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
28156         stdio take care of replacement.
28157         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
28158         * modules/stdio (Makefile.am): Substitute them.
28159         * lib/stdio.in.h (rename): Declare replacement.
28160         * lib/rename.c (includes): Allow cross-compilation to non-windows
28161         machines.
28162         * doc/posix-functions/rename.texi (rename): Improve
28163         documentation.
28164
28165         stdio: sort witness names
28166         * modules/stdio (Makefile.am): Sort replacements.
28167         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
28168         * lib/stdio.in.h: Likewise.
28169
28170         getcwd: minor cleanups
28171         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
28172         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
28173
28174         openat: provide more convenience names
28175         * modules/faccessat (configure.ac): Add C witness.
28176         * lib/unistd.in.h (readlinkat): Fix typo.
28177         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
28178         convenience wrappers.
28179         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
28180         wrappers in syntax checks.
28181
28182 2009-09-06  Eric Blake  <ebb9@byu.net>
28183
28184         doc: fix comments in recent patches
28185         * lib/faccessat.c: Mention correct function.
28186         * lib/fchmodat.c: Likewise.
28187         * lib/fchownat.c: Likewise.
28188         * lib/symlinkat.c: Likewise.
28189         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
28190         constants.
28191
28192         faccessat, symlinkat: continue cleanup of previous patch
28193         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
28194         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
28195         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
28196         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
28197         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
28198         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
28199         set.
28200
28201 2009-09-06  Bruno Haible  <bruno@clisp.org>
28202
28203         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
28204         (fstatat): Declare if GNULIB_FSTATAT is set.
28205         (mkdirat): Declare if GNULIB_MKDIRAT is set.
28206         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
28207         (unlinkat): Declare if GNULIB_UNLINKAT is set.
28208         * modules/fcntl-h (Files): Remove m4/openat.m4.
28209         * modules/sys_stat (Files): Remove m4/openat.m4.
28210         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
28211         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
28212         * modules/unistd (Files): Remove m4/openat.m4.
28213         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
28214         GNULIB_OPENAT.
28215         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
28216         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
28217         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
28218         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
28219         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
28220         gl_OPENAT_DEFAULTS.
28221         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
28222         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
28223         Don't require gl_OPENAT_DEFAULTS.
28224         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
28225         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
28226         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
28227         (gl_OPENAT_DEFAULTS): Remove macro.
28228
28229 2009-09-06  Bruno Haible  <bruno@clisp.org>
28230
28231         * modules/openat (configure.ac): Remove unneeded witness.
28232
28233 2009-09-06  Bruno Haible  <bruno@clisp.org>
28234
28235         Set errno to ENOSYS when a function is entirely unsupported.
28236         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
28237         EOPNOTSUPP.
28238         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
28239         * modules/chown (Depends-on): Remove errno.
28240
28241 2009-09-06  Bruno Haible  <bruno@clisp.org>
28242
28243         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
28244
28245 2009-09-06  Bruno Haible  <bruno@clisp.org>
28246
28247         * lib/sys_stat.in.h: Fix preprocessor command indentation.
28248
28249 2009-09-06  Ben Pfaff  <blp@gnu.org>
28250             Bruno Haible  <bruno@clisp.org>
28251
28252         Work around a glibc bug in strtok_r.
28253         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
28254         Undefine if UNDEFINE_STRTOK_R is set.
28255         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
28256         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28257         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
28258         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
28259         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
28260         UNDEFINE_STRTOK_R.
28261         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
28262
28263 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
28264
28265         exclude: minor fix
28266         * lib/exclude.c: Include wctype.h
28267
28268 2009-09-06  Akim Demaille  <demaille@gostai.com>
28269
28270         bootstrap: improve error message
28271         * build-aux/bootstrap (find_tool): Upon failure, report the list
28272         of candidates.
28273         Honor the initial value of the envvar.
28274
28275 2009-09-05  Eric Blake  <ebb9@byu.net>
28276
28277         symlinkat: new module
28278         * modules/symlinkat: New file.
28279         * lib/symlinkat.c: Likewise.
28280         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
28281         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
28282         * modules/unistd (Makefile.am): Use them.
28283         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
28284         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
28285         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
28286         * MODULES.html.sh (File system functions): Mention module.
28287         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
28288         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
28289         * modules/symlinkat-tests: New test.
28290         * tests/test-symlinkat.c: Likewise.
28291
28292         test-openat-safer: add more checks
28293         * tests/test-openat-safer.c (main): Check more code paths.
28294
28295 2009-09-05  Jim Meyering  <meyering@redhat.com>
28296
28297         syntax-check: detect unnecessary inclusion of openat.h
28298         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
28299
28300 2009-09-05  Bruno Haible  <bruno@clisp.org>
28301
28302         Support towlower, towupper.
28303         * doc/posix-functions/towlower.texi: Mention module wctype.
28304         * doc/posix-functions/towupper.texi: Likewise.
28305         * lib/wctype.in.h (towlower, towupper): New functions.
28306         * tests/test-wctype.c: Include stdio.h, stdlib.h.
28307         (ASSERT): New macro.
28308         (e): New variable.
28309         (main): Test also towlower, towupper. Test WEOF argument.
28310         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
28311
28312 2009-09-05  Bruno Haible  <bruno@clisp.org>
28313
28314         Fix conversion behaviour when the input is invalid.
28315         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
28316         mark occurring in first pass of indirect conversion.
28317         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
28318         input.
28319         Found by clang's static analyzer.
28320
28321 2009-09-05  Bruno Haible  <bruno@clisp.org>
28322
28323         * tests/test-striconveh.c (main): Test indirect conversion on platforms
28324         where direct conversion is possible.
28325
28326 2009-09-04  Eric Blake  <ebb9@byu.net>
28327
28328         openat: fail with ENOENT on empty name
28329         * lib/openat-proc.c (openat_proc_name): Special-case the empty
28330         buffer.
28331
28332         link-follow: fix logic bug in prior patch
28333         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
28334         reversed sense of yes and no in prior patch.  Avoid confusing
28335         compilation failure with desired semantics.
28336
28337         link-follow: accomodate mingw and cross-compilation
28338         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
28339         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
28340         cross-compilation results to -1, to make linkat easier to
28341         implement when cross-compiling.  Trivially support mingw.
28342         * modules/link-follow (configure.ac): Call new name.
28343         * NEWS: Mention this.
28344
28345 2009-09-03  Eric Blake  <ebb9@byu.net>
28346
28347         faccessat: compile replacement
28348         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
28349         needed.
28350
28351         fts: fix compilation error
28352         * lib/fts.c (includes): Re-add "openat.h", for
28353         openat_needs_fchdir.
28354
28355         faccessat: new module
28356         * modules/faccessat: New file.
28357         * lib/faccessat.c: Likewise.
28358         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
28359         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28360         * modules/unistd (Makefile.am): Use it.
28361         * lib/unistd.in.h (faccessat): Declare it.
28362         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
28363         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
28364         * MODULES.html.sh (File system functions): Mention it.
28365         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
28366         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
28367
28368         euidaccess: prefer POSIX over non-standard implementation
28369         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
28370         * lib/euidaccess.c (euidaccess): Use it if available.
28371
28372         openat: make template easier to use
28373         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
28374         AT_FUNC_F2 to be undefined.
28375         (VALIDATE_FLAG): New macro; use it to reject bad flags.
28376         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
28377         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
28378         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
28379         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
28380         Likewise.
28381         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
28382         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
28383         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
28384         Likewise.
28385
28386         openat: declare in POSIX headers
28387         * NEWS: Mention this.
28388         * modules/openat (configure.ac): Declare witnesses.
28389         (Depends-on): Add fcntl-h, sys_stat, unistd.
28390         (Include): Mention correct headers.
28391         * modules/fcntl-h (Depends-on): Add link-warning.
28392         (Files): Add openat.m4.
28393         (Makefile.am): Substitute witnesses.
28394         * modules/sys_stat (Files, Makefile.am): Likewise.
28395         * modules/unistd (Files, Makefile.am): Likewise.
28396         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
28397         (gl_OPENAT_DEFAULTS): New macro.
28398         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
28399         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
28400         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
28401         (SYS_STAT_H): Remove unused variable.
28402         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
28403         * lib/fcntl--.h (includes): Remove unneeded header.
28404         * lib/openat-safer.c (includes): Likewise.
28405         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
28406         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
28407         appropriate headers.
28408         (__OPENAT_PREFIX): Delete.
28409         * lib/fcntl.in.h (openat): Provide declaration.
28410         (AT_FDCWD): Fix Solaris bug.
28411         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
28412         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
28413         * lib/fchmodat.c (includes):  Adjust to find declaration.
28414         * lib/fchownat.c (includes): Likewise.
28415         * lib/mkdirat.c (includes): Likewise.
28416         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
28417         still visible.
28418
28419 2009-09-02  Eric Blake  <ebb9@byu.net>
28420
28421         errno: use consistently
28422         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
28423         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
28424         * lib/canonicalize.c (ELOOP): Likewise.
28425         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
28426         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
28427         * lib/lchown.c (EOPNOTSUPP): Likewise.
28428         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
28429         * lib/savewd.c (ESTALE): Likewise.
28430         * lib/settime.c (ENOSYS): Likewise.
28431         * lib/utimens.c (ENOSYS): Likewise.
28432         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
28433         * lib/chdir-safer.c (ELOOP): Likewise.
28434         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
28435         * modules/c-stack (Depends-on): Add errno.
28436         * modules/canonicalize (Depends-on): Likewise.
28437         * modules/chdir-safer (Depends-on): Likewise.
28438         * modules/fdopendir (Depends-on): Likewise.
28439         * modules/inet_ntop (Depends-on): Likewise.
28440         * modules/inet_pton (Depends-on): Likewise.
28441         * modules/lchown (Depends-on): Likewise.
28442         * modules/openat (Depends-on): Likewise.
28443         * modules/savewd (Depends-on): Likewise.
28444         * modules/settime (Depends-on): Likewise.
28445         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
28446
28447         fts: avoid leaking fds
28448         * modules/fts (Depends-on): Add cloexec.
28449         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
28450         flag.
28451
28452         fts: make directory fds more robust
28453         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
28454         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
28455
28456         backupfile, chdir-long, fts, savedir: make safer
28457         * lib/backupfile.c (includes): Use "dirent--.h", since
28458         numbered_backup can write to stderr during readdir.
28459         * lib/savedir.c (includes): Likewise.
28460         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
28461         emulation can write to stderr on failure.
28462         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
28463         * lib/getcwd.c: Document why opendir_safer is unused.
28464         * lib/glob.c: Likewise.
28465         * lib/scandir.c: Likewise.
28466         * lib/openat-proc.c: Likewise, for open_safer.
28467         * modules/backupfile (Depends-on): Add dirent-safer.
28468         * modules/savedir (Depends-on): Likewise.
28469         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
28470         * modules/chdir-long (Depends-on): Add openat-safer.
28471
28472         openat-safer: new module
28473         * modules/openat-safer: New file.
28474         * lib/openat-safer.c: Likewise.
28475         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
28476         * lib/fcntl-safer.h (openat_safer): Declare.
28477         * lib/fcntl--.h (openat): Override.
28478         * MODULES.html.sh (File descriptor based I/O): Mention it.
28479         * lib/openat.h: Add double-inclusion guards.
28480         * lib/openat.c (includes): Only include "fcntl-safer.h", not
28481         "fcntl--.h", so we can implement openat.
28482         * modules/openat-safer-tests: New test.
28483         * tests/test-openat-safer.c: New file.
28484
28485         dirent-safer: new module
28486         * modules/dirent-safer: New file.
28487         * lib/dirent--.h: Likewise.
28488         * lib/dirent-safer.h: Likewise.
28489         * lib/opendir-safer.c: Likewise.
28490         * m4/dirent-safer.m4: Likewise.
28491         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
28492         * modules/dirent-safer-tests: New test.
28493         * tests/test-dirent-safer.c: New file.
28494         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
28495
28496         fdopendir: optimize on mingw
28497         * lib/unistd.in.h (_gl_directory_name): New prototype.
28498         * lib/fchdir.c (_gl_directory_name): Implement it.
28499         (fchdir): Use it to simplify implementation.
28500         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
28501         fchdir, when available, to avoid calling [f]chdir().
28502
28503         fdopendir: split into its own module
28504         * lib/openat.c (fdopendir): Move...
28505         * lib/fdopendir.c: ...into new file.
28506         * modules/fdopendir: New module.
28507         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
28508         * modules/openat (Depends-on): Add fdopendir.
28509         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
28510         fdopendir here.
28511         * modules/savedir (Depends-on): Only need fdopendir, not full
28512         openat.
28513         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
28514         * lib/openat.h (fdopendir): Drop prototype.
28515         * lib/dirent.in.h (fdopendir): Provide prototype.
28516         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
28517         * modules/dirent (Makefile.am): Substitute them.
28518         * MODULES.html.sh (File system functions): Mention it.
28519         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
28520         * modules/fdopendir-tests: New file.
28521         * tests/test-fdopendir.c: Likewise.
28522
28523         fchdir: use more consistent macro convention
28524         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
28525         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
28526         REPLACE_FCHDIR, rather than relying on config.h macros.
28527         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
28528         inside a single make-time REPLACE_FCHDIR block, rather than using
28529         the config.h FCHDIR_REPLACEMENT.
28530         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
28531         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
28532         Manage fstat replacement.
28533         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
28534         REPLACE_FCHDIR.
28535         * modules/sys_stat (Files): Add m4/unistd_h.m4.
28536         (Makefile.am): Substitute REPLACE_FCHDIR.
28537         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
28538         FCHDIR_REPLACEMENT.
28539         * lib/dup-safer.c (dup_safer): Likewise.
28540         * lib/dup2.c (rpl_dup2): Likewise.
28541         * lib/dup3.c (rpl_dup3): Likewise.
28542         * lib/open.c (rpl_open): Likewise.
28543
28544         fchdir: simplify error handling, and support dup3
28545         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
28546         stdbool, malloc-posix, realloc-posix.
28547         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
28548         (ensure_dirs_slot): Return false on allocation failure.
28549         (rpl_dup2): Delete.
28550         (_gl_register_dup): New function.
28551         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
28552         (_gl_register_fd): Close fd on allocation failure.
28553         * lib/fcntl.in.h (_gl_register_fd): Update signature.
28554         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
28555         prototype.
28556         (rpl_dup2_fchdir): Delete prototype.
28557         * lib/open.c (open): Update caller.
28558         * lib/dup2.c (dup2): Track fchdir metadata.
28559         * lib/dup3.c (dup3): Likewise.
28560         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
28561         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
28562
28563 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28564
28565         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
28566         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
28567         don't pass arguments to AC_OUTPUT.
28568
28569 2009-09-02  Bruno Haible  <bruno@clisp.org>
28570
28571         * modules/mkdtemp (License): Relicense under LGPLv2+.
28572         Reported by Paolo Bonzini.
28573
28574 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28575
28576         Replace uses of obsolete autoconf macros in Jim's modules.
28577         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
28578         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
28579         can evoke a warning from autoconf when run with -Wobsolete
28580         enabled.  They were declared obsolete for good reasons (see
28581         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
28582         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
28583         should not continue using the deprecated macros.
28584         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
28585         obsolete Autoconf macros with modern counterparts.
28586         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
28587         * m4/dos.m4 (gl_AC_DOS): Likewise.
28588         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
28589         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
28590         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
28591         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
28592         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
28593         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
28594         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
28595         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
28596         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
28597         Likewise.
28598         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
28599         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
28600         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
28601         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
28602         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
28603         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
28604
28605 2009-09-01  Eric Blake  <ebb9@byu.net>
28606
28607         fchdir: fix off-by-one bug in previous patch
28608         * lib/fchdir.c (rpl_fstat): Use correct bounds.
28609         (_gl_unregister_fd): Delete useless if.
28610
28611 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
28612
28613         maint.mk: sort the list of syntax-check rules
28614         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
28615         easier to get a sense of progress when the rules are run sequentially
28616         and take a long time.
28617
28618 2009-09-01  Simon Josefsson  <simon@josefsson.org>
28619
28620         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
28621         * modules/netinet_in: Likewise.
28622         * modules/sys_file: Likewise.
28623         * modules/sys_ioctl: Likewise.
28624         * modules/sys_select: Likewise.
28625         * modules/sys_socket: Likewise.
28626         * modules/sys_stat: Likewise.
28627         * modules/sys_time: Likewise.
28628         * modules/sys_times: Likewise.
28629         * modules/sys_utsname: Likewise.
28630         * modules/sys_wait: Likewise.
28631
28632 2009-09-01  Jim Meyering  <meyering@redhat.com>
28633
28634         fts: help ensure that return values are not ignored
28635         * lib/fts_.h (__GNUC_PREREQ): Define.
28636         (__attribute_warn_unused_result__): Define.
28637         (fts_children, fts_close, fts_open, fts_read): Declare with
28638         __attribute_warn_unused_result__.
28639
28640         fts: fts_close now fails also when closing a dir file descriptor fails
28641         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
28642         and propagate to caller, along with errno.
28643
28644         announce-gen: correct formatting in --help output
28645         * build-aux/announce-gen (usage): Move the one-line description in
28646         --help output "up", to where it belongs, just after Usage:.
28647
28648 2009-08-31  Eric Blake  <ebb9@byu.net>
28649
28650         fchdir: port to mingw
28651         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
28652         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
28653         opened, then use a substitute.
28654         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
28655         replacement.
28656         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
28657         (_gl_register_fd): No need to check stat if open already filters
28658         all directories.
28659         (fchdir): Fix error condition to match POSIX.
28660         * modules/fchdir (Depends-on): Add sys_stat.
28661         * doc/posix-functions/open.texi (open): Document the limitation.
28662         * modules/fchdir-tests: New file.
28663         * tests/test-fchdir.c: Likewise.
28664
28665         canonicalize: allow cross-testing from cygwin to mingw
28666         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
28667         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
28668         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
28669         Likewise.
28670         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
28671         target does not support symlinks.
28672         * tests/test-canonicalize-lgpl.sh: Likewise.
28673
28674         chown: avoid compilation warning on mingw
28675         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
28676         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
28677         mingw.
28678         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
28679         * modules/chown (Depends-on): Add errno.
28680
28681 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
28682
28683         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
28684         command.
28685
28686 2009-08-31  Jim Meyering  <meyering@redhat.com>
28687
28688         canonicalize: remove useless initialization
28689         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
28690         initialization of local, "end".
28691
28692 2009-08-30  Bruno Haible  <bruno@clisp.org>
28693
28694         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
28695         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
28696         ENOSYS.
28697
28698 2009-08-30  Bruno Haible  <bruno@clisp.org>
28699
28700         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
28701         /usr/xpg4/bin/tr when it exists.
28702         * tests/test-pipe-filter-gi1.sh: Likewise.
28703
28704 2009-08-30  Bruno Haible  <bruno@clisp.org>
28705
28706         Work around deficient /usr/bin/id program on Solaris.
28707         * tests/test-file-has-acl.sh (ID): New variable.
28708         * tests/test-set-mode-acl.sh (ID): Likewise.
28709         * tests/test-copy-acl.sh (ID): Likewise.
28710         * tests/test-copy-file.sh (ID): Likewise.
28711
28712 2009-08-30  Bruno Haible  <bruno@clisp.org>
28713
28714         New module 'xstriconveh'.
28715         * lib/xstriconveh.h: New file.
28716         * lib/xstriconveh.c: New file.
28717         * modules/xstriconveh: New file.
28718
28719 2009-08-30  Bruno Haible  <bruno@clisp.org>
28720
28721         Make it easier to use mem_cd_iconveh.
28722         * lib/striconveh.h (iconveh_t): New type.
28723         (iconveh_open, iconveh_close): New declarations.
28724         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
28725         with a single 'const iconveh_t *' argument.
28726         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
28727         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
28728         with a single 'const iconveh_t *' argument.
28729         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
28730         * tests/test-striconveh.c (main): Update.
28731         * NEWS: Mention the change.
28732
28733 2009-08-30  Bruno Haible  <bruno@clisp.org>
28734
28735         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
28736         problem.
28737
28738 2009-08-30  Bruno Haible  <bruno@clisp.org>
28739
28740         Work around iconv_open problem on Solaris.
28741         * lib/iconv_open-solaris.gperf: New file.
28742         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
28743         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
28744         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
28745         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
28746         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
28747         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
28748
28749 2009-08-29  Jim Meyering  <meyering@redhat.com>
28750
28751         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
28752         * top/maint.mk (cvs-check): Remove target; it was just an alias
28753         to the better-named vc-diff-check.
28754         (maintainer-distcheck): Remove rule.  It was used only from
28755         the (alpha/beta/major) target, and all of its commands but one
28756         were coreutils-specific.
28757         (vc-dist): Remove rule.
28758         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
28759         Run vc-diff-check, not vc-dist.
28760         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
28761
28762 2009-08-27  Bruno Haible  <bruno@clisp.org>
28763
28764         * tests/test-bitrotate.c (main): Remove test that uses a shift count
28765         of 0.
28766
28767 2009-08-27  Bruno Haible  <bruno@clisp.org>
28768
28769         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
28770         compilers.
28771         * doc/func.texi: Document the SunPRO C bug.
28772
28773 2009-08-27  Bruno Haible  <bruno@clisp.org>
28774
28775         Fix link error on Solaris.
28776         * tests/test-parse-duration.c (xstrdup): Remove function.
28777
28778 2009-08-26  Pádraig Brady  <P@draigbrady.com>
28779
28780         ignore-value: handle pointer types, too
28781         * lib/ignore-value.h (__attribute__): Remove definition.
28782         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
28783         of a more concise and more-often effective "(void) i" statement.
28784         (ignore_ptr): New function to suppress warnings from functions that
28785         return pointers, and to make it explicit that one function doesn't
28786         handle all cases.
28787
28788 2009-08-25  Bruno Haible  <bruno@clisp.org>
28789
28790         dup2: work around a Linux bug.
28791         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
28792         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
28793         * doc/posix-functions/dup2.texi: Mention the Linux bug.
28794         Reported by Simon Josefsson.
28795
28796 2009-08-25  Jim Meyering  <meyering@redhat.com>
28797
28798         libguestfs uses gnulib
28799         * users.txt: Add libguestfs.
28800
28801 2009-08-24  Eric Blake  <ebb9@byu.net>
28802
28803         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
28804         * lib/pipe2.c (includes): Add binary-io.h.
28805         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
28806
28807 2009-08-24  Bruno Haible  <bruno@clisp.org>
28808
28809         Tolerate declared but missing accept4 syscall.
28810         * lib/accept4.c (accept4): Invoke original accept4 function first, if
28811         available.
28812         * lib/sys_socket.in.h (accept4): If the function is already present,
28813         override it.
28814         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
28815         * modules/accept4 (Makefile.am): Compile accept4.c always.
28816         Reported by Paolo Bonzini and Eric Blake.
28817
28818 2009-08-23  Bruno Haible  <bruno@clisp.org>
28819
28820         New module 'accept4'.
28821         * lib/sys_socket.in.h (accept4): New declaration.
28822         * lib/accept4.c: New file.
28823         * m4/accept4.m4: New file.
28824         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
28825         GNULIB_ACCEPT4, HAVE_ACCEPT4.
28826         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
28827         HAVE_ACCEPT4.
28828         * modules/accept4: New file.
28829         * doc/glibc-functions/accept4.texi: Mention the new module.
28830
28831 2009-08-24  Jim Meyering  <meyering@redhat.com>
28832
28833         progname: also set global program_invocation_name, when possible
28834         Before this change, a libtool-enabled program that calls glibc's
28835         error function would report the program name as
28836         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
28837         * modules/progname (configure.ac): Check for a declaration of
28838         program_invocation_name.
28839         * lib/progname.c:  Include <errno.h>.
28840         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
28841         Set program_invocation_name.
28842
28843 2009-08-23  Bruno Haible  <bruno@clisp.org>
28844
28845         * lib/dup3.c: Include <string.h>.
28846
28847 2009-08-23  Bruno Haible  <bruno@clisp.org>
28848
28849         * lib/dup3.c (dup3): Test only once whether the system actually exists.
28850         * lib/pipe2.c (pipe2): Likewise.
28851         Suggested by Eric Blake.
28852
28853 2009-08-23  Bruno Haible  <bruno@clisp.org>
28854
28855         Tolerate declared but missing dup3 syscall.
28856         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
28857         * lib/unistd.in.h (dup3): If the function is already present,
28858         override it.
28859         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
28860         * modules/dup3 (Makefile.am): Compile dup3.c always.
28861         Reported by Paolo Bonzini.
28862
28863 2009-08-23  Bruno Haible  <bruno@clisp.org>
28864
28865         Tolerate declared but missing pipe2 syscall.
28866         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
28867         available.
28868         * lib/unistd.in.h (pipe2): If the function is already present,
28869         override it.
28870         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
28871         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
28872         Reported by Paolo Bonzini.
28873
28874 2009-08-23  Bruno Haible  <bruno@clisp.org>
28875
28876         * lib/pipe2.c (pipe2): Move #ifs inside function.
28877
28878 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
28879
28880         quotearg: document limitations of quote_these_too
28881         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
28882         those limitations are created.
28883         * lib/quotearg.h (set_char_quoting): Document that digits and
28884         letters that are special after backslash are not permitted.
28885         (quotearg_char): Cross-reference set_char_quoting documentation.
28886
28887 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
28888
28889         quotearg: implement custom_quoting_style
28890         * lib/quotearg.c: (struct quoting_options): Add left_quote and
28891         right_quote fields.
28892         (set_custom_quoting): New public function.
28893         (quotearg_buffer_restyled): Add left_quote and right_quote
28894         arguments, handle them very much like locale quoting, and update
28895         all uses.
28896         (quotearg_n_custom): New public function.
28897         (quotearg_n_custom_mem): New public function.
28898         (quotearg_custom): New public function.
28899         (quotearg_custom_mem): New public function.
28900         * lib/quotearg.h: Prototype and document new public functions.
28901         (enum quoting_style): For escape_quoting_style and
28902         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
28903         ignored even though they're otherwise like c_quoting_style.
28904         Add custom_quoting_style member and document with comparison to
28905         clocale_quoting_style.
28906         * tests/test-quotearg.c (custom_quotes): New array.
28907         (custom_results): New array.
28908         (main): Extend to test custom quoting.
28909
28910 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
28911
28912         quotearg: fix right quote escaping when it's in quote_these_too
28913         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
28914         quote, be sure to prepend only one backslash.
28915         * tests/test-quotearg.c (use_quote_double_quotes): New function.
28916         (main): Test it.
28917
28918 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
28919
28920         quotearg-tests: test escaping of embedded locale quotes
28921         * tests/test-quotearg.c (struct result_strings): Add member for
28922         new input.
28923         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
28924         (inputs): Add new input.
28925         (results_g): Add expected results.
28926         (flag_results): Likewise.
28927         (locale_results): Likewise.
28928         (compare_strings): Check those.
28929
28930 2009-08-23  Bruno Haible  <bruno@clisp.org>
28931
28932         Tests for module 'dup3'.
28933         * modules/dup3-tests: New file.
28934         * tests/test-dup3.c: New file.
28935
28936         New module 'dup3'.
28937         * lib/unistd.in.h (dup3): New declaration.
28938         * lib/dup3.c: New file.
28939         * m4/dup3.m4: New file.
28940         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
28941         HAVE_DUP3.
28942         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
28943         * modules/dup3: New file.
28944         * doc/glibc-functions/dup3.texi: Mention the new module.
28945
28946 2009-08-23  Bruno Haible  <bruno@clisp.org>
28947
28948         Tweak the dup2 test.
28949         * tests/test-dup2.c (main): Create the test file empty. Verify that an
28950         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
28951         the test file is still empty. Fix argument order of lseek.
28952
28953 2009-08-23  Bruno Haible  <bruno@clisp.org>
28954
28955         Avoid test link errors when the modules getopt-gnu, gettext are used.
28956         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
28957         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28958
28959 2009-08-23  Bruno Haible  <bruno@clisp.org>
28960
28961         Fix getdtablesize() on mingw.
28962         * lib/getdtablesize.c (getdtablesize): Implement differently.
28963         * lib/unistd.in.h (getdtablesize): Improve comment.
28964
28965 2009-08-23  Bruno Haible  <bruno@clisp.org>
28966
28967         New module 'mkostemp'.
28968         Based on Ulrich Drepper's 2007-08-10 change in glibc.
28969         * lib/stdlib.in.h (mksotemp): New declaration.
28970         * lib/mkostemp.c: New file, from glibc with modifications.
28971         * lib/tempname.h (GT_FILE): Remove outdated comment.
28972         (gen_tempname): Add flags argument.
28973         * lib/tempname.c (__GT_BIGFILE): Remove macro.
28974         (__GT_FILE): Map to 1.
28975         (small_open, large_open): Remove macros.
28976         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
28977         * lib/mkstemp.c (mkstemp): Update.
28978         * lib/mkdtemp.c (mkdtemp): Likewise.
28979         * m4/mkostemp.m4: New file.
28980         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
28981         HAVE_MKOSTEMP.
28982         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
28983         HAVE_MKOSTEMP.
28984         * modules/mkostemp: New file, based on modules/mkstemp.
28985         * doc/glibc-functions/mkostemp.texi: Mention the new module.
28986         * NEWS: Mention the change.
28987
28988 2009-08-23  Bruno Haible  <bruno@clisp.org>
28989
28990         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
28991         Reported by Eric Blake.
28992
28993 2009-08-23  Bruno Haible  <bruno@clisp.org>
28994
28995         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
28996         Reported by Eric Blake.
28997
28998 2009-08-23  Bruno Haible  <bruno@clisp.org>
28999
29000         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
29001         * modules/pipe2 (Depends-on): Likewise.
29002
29003 2009-08-23  Eric Blake  <ebb9@byu.net>
29004
29005         fcntl-h: add O_TTY_INIT support
29006         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
29007         * tests/test-fcntl-h.c (o): Test it.
29008         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
29009
29010         fcntl-h: rename from fcntl, in preparation for fcntl(2)
29011         * modules/fcntl: Move <fcntl.h> header replacement...
29012         * modules/fcntl-h: ...to new name, so as not to collide with
29013         like-named function.
29014         * tests/test-fcntl.c: Rename...
29015         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
29016         * modules/fcntl-tests: Rename...
29017         * modules/fcntl-h-tests: ...to this.  Update test file name.
29018         * modules/chdir-long (Depends-on): Update clients.
29019         * modules/chdir-safer (Depends-on): Likewise.
29020         * modules/fcntl-safer (Depends-on): Likewise.
29021         * modules/fts (Depends-on): Likewise.
29022         * modules/mkancesdirs (Depends-on): Likewise.
29023         * modules/mkdir-p (Depends-on): Likewise.
29024         * modules/open (Depends-on): Likewise.
29025         * modules/savewd (Depends-on): Likewise.
29026         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
29027         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
29028
29029 2009-08-22  Bruno Haible  <bruno@clisp.org>
29030
29031         * modules/binary-io (License): Relicense under LGPL.
29032         * modules/pipe2 (License): Likewise.
29033
29034 2009-08-22  Bruno Haible  <bruno@clisp.org>
29035
29036         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
29037         return value.
29038         * lib/pipe-filter-gi.c (filter_init): Likewise.
29039         Reported by Eric Blake.
29040
29041 2009-08-22  Bruno Haible  <bruno@clisp.org>
29042
29043         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
29044         * modules/pipe (Depends-on): Add pipe2.
29045
29046 2009-08-22  Bruno Haible  <bruno@clisp.org>
29047
29048         Tests for module 'pipe2'.
29049         * modules/pipe2-tests: New file.
29050         * tests/test-pipe2.c: New file.
29051
29052         New module 'pipe2'.
29053         * lib/unistd.in.h (pipe2): New declaration.
29054         * lib/pipe2.c: New file.
29055         * m4/pipe2.m4: New file.
29056         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
29057         HAVE_PIPE2.
29058         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
29059         * modules/pipe2: New file.
29060         * doc/glibc-functions/pipe2.texi: Mention the new module.
29061
29062 2009-08-22  Bruno Haible  <bruno@clisp.org>
29063
29064         Reference some new glibc functions.
29065         * doc/glibc-functions/accept4.texi: New file.
29066         * doc/glibc-functions/dup3.texi: New file.
29067         * doc/glibc-functions/mkostemp.texi: New file.
29068         * doc/glibc-functions/pipe2.texi: New file.
29069         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
29070         (Glibc sys/socket.h): Refer to accept4.
29071         (Glibc unistd.h): Refer to dup3, pipe2.
29072         Reported by Eric Blake.
29073
29074 2009-08-22  Jim Meyering  <meyering@redhat.com>
29075             Bruno Haible  <bruno@clisp.org>
29076
29077         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
29078         This makes it so packages using automake-1.11's silent-rules option
29079         can print e.g., a single "GEN    configmake.h" line, rather than
29080         the 30+ statements that perform the job.  If you want to see the
29081         actual commands, you can still run "make V=1".
29082         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
29083         so that make output is abbreviated when those variables are defined
29084         appropriately.
29085         * modules/argz: Likewise.
29086         * modules/arpa_inet: Likewise.
29087         * modules/byteswap: Likewise.
29088         * modules/configmake: Likewise.
29089         * modules/dirent: Likewise.
29090         * modules/errno: Likewise.
29091         * modules/fcntl: Likewise.
29092         * modules/float: Likewise.
29093         * modules/fnmatch: Likewise.
29094         * modules/getopt-posix: Likewise.
29095         * modules/glob: Likewise.
29096         * modules/iconv_open: Likewise.
29097         * modules/inttypes: Likewise.
29098         * modules/localcharset: Likewise.
29099         * modules/locale: Likewise.
29100         * modules/math: Likewise.
29101         * modules/netdb: Likewise.
29102         * modules/netinet_in: Likewise.
29103         * modules/poll: Likewise.
29104         * modules/posix_spawnp-tests: Likewise.
29105         * modules/sched: Likewise.
29106         * modules/search: Likewise.
29107         * modules/selinux-h: Likewise.
29108         * modules/signal: Likewise.
29109         * modules/spawn: Likewise.
29110         * modules/stdarg: Likewise.
29111         * modules/stdbool: Likewise.
29112         * modules/stddef: Likewise.
29113         * modules/stdint: Likewise.
29114         * modules/stdio: Likewise.
29115         * modules/stdlib: Likewise.
29116         * modules/string: Likewise.
29117         * modules/strings: Likewise.
29118         * modules/sys_file: Likewise.
29119         * modules/sys_ioctl: Likewise.
29120         * modules/sys_select: Likewise.
29121         * modules/sys_socket: Likewise.
29122         * modules/sys_stat: Likewise.
29123         * modules/sys_time: Likewise.
29124         * modules/sys_times: Likewise.
29125         * modules/sys_utsname: Likewise.
29126         * modules/sys_wait: Likewise.
29127         * modules/sysexits: Likewise.
29128         * modules/time: Likewise.
29129         * modules/unistd: Likewise.
29130         * modules/wchar: Likewise.
29131         * modules/wctype: Likewise.
29132
29133 2009-08-22  Jim Meyering  <meyering@redhat.com>
29134
29135         announce-gen: detect write failure
29136         * build-aux/announce-gen: Add Coda at end.
29137         Remove equivalent-but-more-verbose block at top.
29138
29139 2009-08-19  Akim Demaille  <demaille@gostai.com>
29140
29141         bootstrap: --help to stdout.
29142         * bootstrap (usage): Don't send --help to stderr.
29143         Use a here doc instead of a long string.
29144
29145 2009-08-21  Eric Blake  <ebb9@byu.net>
29146
29147         test-popen-safer: split from test-popen
29148         * tests/test-popen.c (main): Move...
29149         * tests/test-popen.h: ...into new file.
29150         * tests/test-popen-safer2.c: New file.
29151         * modules/popen-tests (Files): Add test-popen.h.
29152         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
29153         Suggested by Bruno Haible.
29154
29155         test-fcntl-safer: split from test-open
29156         * tests/test-open.c (main): Move...
29157         * tests/test-open.h: ...into new file.
29158         * tests/test-fcntl-safer.c: New file.
29159         * modules/open-tests (Files): Add test-open.h.
29160         * modules/fcntl-safer-tests: New file.
29161         Suggested by Bruno Haible.
29162
29163         test-fopen-safer: split from test-fopen
29164         * tests/test-fopen.c (main): Move...
29165         * tests/test-fopen.h: ...into new file.
29166         * tests/test-fopen-safer.c: New file.
29167         * modules/fopen-tests (Files): Add test-fopen.h.
29168         * modules/fopen-safer-tests: New file.
29169         Suggested by Bruno Haible.
29170
29171 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
29172
29173         popen-safer: test O_CLOEXEC at run-time.
29174         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
29175
29176 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
29177
29178         fcntl: move more flags to the header
29179         * lib/cloexec.c: Do not define FD_CLOEXEC here.
29180         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
29181         * lib/fcntl.in.h: Do both things here.
29182
29183 2009-08-21  Jim Meyering  <meyering@redhat.com>
29184
29185         consistently remove $@-t before redirecting to it
29186         * modules/argz: Remove $@-t and $@ before redirecting to the former.
29187         * modules/alloca-opt: Likewise.
29188         * modules/byteswap: Likewise.
29189         * modules/fnmatch: Likewise.
29190         * modules/getopt-posix: Likewise.
29191         * modules/glob: Likewise.
29192         * modules/poll: Likewise.
29193         * modules/posix_spawnp-tests: Likewise.
29194         * modules/sys_socket: Likewise.
29195         * modules/sysexits: Likewise.
29196
29197 2009-08-21  Eric Blake  <ebb9@byu.net>
29198
29199         popen: simplify access to original popen
29200         * lib/popen.c (rpl_popen): No need to worry about popen being a
29201         macro.
29202         Reported by Bruno Haible.
29203
29204 2009-08-20  Eric Blake  <ebb9@byu.net>
29205
29206         build: avoid some compiler warnings
29207         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
29208         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
29209         type.
29210         (new_exclude_segment, excluded_file_pattern_p)
29211         (excluded_file_name_p): Reduce scope.
29212         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
29213         old-style declaration.
29214
29215 2009-08-20  Simon Josefsson  <simon@josefsson.org>
29216
29217         * tests/test-exclude1.sh: Handle Windows EOL.
29218         * tests/test-exclude2.sh: Likewise.
29219         * tests/test-exclude3.sh: Likewise.
29220         * tests/test-exclude4.sh: Likewise.
29221         * tests/test-exclude5.sh: Likewise.
29222         * tests/test-exclude6.sh: Likewise.
29223         * tests/test-exclude7.sh: Likewise.
29224
29225 2009-08-19  Akim Demaille  <demaille@gostai.com>
29226
29227         bootstrap: find sha1sum when named gsha1sum.
29228         * bootstrap (find_tool): New.
29229         ($SHA1SUM): New.
29230         Use it.
29231
29232 2009-08-20  Jim Meyering  <meyering@redhat.com>
29233
29234         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
29235         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
29236         expression that converts "." in a file name to "\." in the resulting
29237         regexp.  Start with a dummy statement, so that prior shell variable
29238         definitions are expanded portably.  Reported by Simon Josefsson.
29239
29240 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
29241
29242         Fix polling for writeability of a screen buffer.
29243         * lib/poll.c: Distinguish input and screen buffers for the
29244         Win32 implementation.
29245         * lib/select.c: Likewise.
29246
29247 2009-08-19  Eric Blake  <ebb9@byu.net>
29248
29249         popen-safer: prevent popen from clobbering std descriptors
29250         * modules/popen-safer: New file.
29251         * lib/popen-safer.c: Likewise.
29252         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
29253         * lib/stdio--.h (popen): Provide override.
29254         * lib/stdio-safer.h (popen_safer): Provide declaration.
29255         * tests/test-popen.c (includes): Partially test this.
29256         * modules/popen-safer-tests: New file, for more tests.
29257         * tests/test-popen-safer.c: Likewise.
29258         * MODULES.html.sh (file stream based Input/Output): Mention it.
29259
29260         tests: test some of the *-safer modules
29261         * modules/fopen-safer (Depends-on): Add fopen.
29262         * modules/fcntl-safer (Depends-on): Add fcntl.
29263         * modules/stdlib-safer (Depends-on): Add stdlib.
29264         (configure.ac): Set indicator.
29265         * modules/unistd-safer (configure.ac): Likewise.
29266         * modules/tmpfile-safer (configure.ac): Likewise.
29267         (Depends-on): Add tmpfile.
29268         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
29269         active.
29270         * tests/test-fopen.c (includes): Test safer versions when they are
29271         in use.
29272         * tests/test-open.c (includes): Likewise.
29273
29274         popen: fix cygwin 1.5 bug when stdin closed
29275         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
29276         * modules/popen: New file.
29277         * modules/popen-tests: Likewise.
29278         * tests/test-popen.c: Likewise.
29279         * m4/popen.m4: Likewise.
29280         * lib/popen.c: Likewise.
29281         * lib/stdio.in.h (popen): New declaration.
29282         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
29283         * modules/stdio (Makefile.am): Likewise.
29284         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
29285
29286 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
29287
29288         maint.mk: give full control over update-copyright exclusions
29289         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
29290         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
29291         (update-copyright): Don't force inclusion of top-level
29292         ChangeLog.  Don't force exclusion of all COPYING files, but make
29293         them the default exclusion instead.
29294
29295 2009-08-16  Bruno Haible  <bruno@clisp.org>
29296
29297         Fix test failures on Solaris 10.
29298         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
29299         tests when Solaris iconv() is used.
29300         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
29301         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
29302         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
29303         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
29304         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
29305
29306 2009-08-16  Bruno Haible  <bruno@clisp.org>
29307
29308         Fix test failures on Solaris 10.
29309         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
29310         'tr' program and pass it as first argument.
29311         * tests/test-pipe-filter-gi1.sh: Likewise.
29312         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
29313         program as first argument.
29314         * tests/test-pipe-filter-gi1.c (main): Likewise.
29315
29316 2009-08-16  Eric Blake  <ebb9@byu.net>
29317
29318         fpurge: fix previous commits
29319         * modules/fpurge (Makefile.am): Make replacement conditional,
29320         partially reverting 2007-04-29 change; missed in previous
29321         attempt.
29322         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
29323         is missing.
29324
29325 2009-08-16  Bruno Haible  <bruno@clisp.org>
29326
29327         Clarify fpurge's effect on the file position.
29328         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
29329         * tests/test-fpurge.c (main): Make a second pass for checking the file
29330         position.
29331
29332 2009-08-16  Bruno Haible  <bruno@clisp.org>
29333
29334         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
29335         declaration of fpurge is missing.
29336         * tests/test-fpurge.c (main): Check that the file has not more contents
29337         than expected. Close the file before removing it.
29338
29339 2009-08-15  Eric Blake  <ebb9@byu.net>
29340
29341         fpurge: don't wrap working cygwin implementation
29342         * lib/fpurge.c (fpurge): Fix comment typo.
29343         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
29344         1.7 to avoid replacement.
29345         * tests/test-fpurge.c (main): Enhance test.
29346
29347 2009-08-15  Eric Blake  <ebb9@byu.net>
29348         and Jim Meyering  <meyering@redhat.com>
29349
29350         test-update-copyright: skip if perl is insufficient
29351         * tests/test-update-copyright.sh: Failure to run maintainer tool
29352         should not cause testsuite failure on cygwin 1.5.
29353
29354 2009-08-14  Eric Blake  <ebb9@byu.net>
29355
29356         doc: mention more functions added in cygwin 1.7.0
29357         * doc/posix-headers/limits.texi (limits.h): Update for recent
29358         cygwin additions.
29359         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
29360         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
29361         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
29362         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
29363         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
29364
29365 2009-08-14  Eric Blake  <ebb9@byu.net>
29366
29367         maint.mk: simplify update-copyright rule
29368         * top/maint.mk (update-copyright-local): Delete, and document how
29369         to do it in cfg.mk instead.
29370         (update-copyright-exclude-regexp): Delete, and document how to do
29371         it in .x-update-copyright instead.
29372         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
29373         exclude ChangeLog.
29374
29375 2009-08-14  Bruno Haible  <bruno@clisp.org>
29376
29377         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
29378
29379 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
29380
29381         maint.mk: support update-copyright-env
29382         * top/maint.mk (update-copyright-env): Define place-holder.
29383         (update-copyright): Expand $(update-copyright-env) before
29384         invoking update-copyright.
29385
29386 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
29387
29388         update-copyright: implement forced reformatting
29389         * build-aux/update-copyright: Implement and document
29390         UPDATE_COPYRIGHT_FORCE.
29391         * tests/test-update-copyright.sh: Test it.
29392
29393 2009-08-14  Eric Blake  <ebb9@byu.net>
29394         and Bruno Haible  <bruno@clisp.org>
29395
29396         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
29397         * tests/test-locale.c: Revert previous patch related to NULL.
29398         * tests/test-stdio.c: Likewise.
29399         * tests/test-stdlib.c: Likewise.
29400         * tests/test-string.c: Likewise.
29401         * tests/test-unistd.c: Likewise.
29402         * modules/time-tests (Depends-on): Add verify.
29403         * modules/wchar-tests (Depends-on): Likewise.
29404         * tests/test-time.c: Test for NULL compliance.
29405         * tests/test-wchar.c: Likewise.
29406         * modules/locale (Depends-on): Add stddef.
29407         * modules/stdio (Depends-on): Likewise.
29408         * modules/stdlib (Depends-on): Likewise.
29409         * modules/string (Depends-on): Likewise.
29410         * modules/time (Depends-on): Likewise.
29411         * modules/unistd (Depends-on): Likewise.
29412         * modules/wchar (Depends-on): Likewise.
29413         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
29414         * lib/stdlib.in.h (includes): Likewise.
29415         * lib/string.in.h (includes): Likewise.
29416         * lib/time.in.h (includes): Likewise.
29417         * lib/unistd.in.h (includes): Likewise.
29418         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
29419         replaced.
29420         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
29421         * m4/stddef_h.m4: New file.
29422         * modules/stddef: Likewise.
29423         * lib/stddef.in.h: Likewise.
29424         * modules/stddef-tests: Likewise.
29425         * tests/test-stddef.c: Likewise.
29426         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
29427         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
29428         * doc/posix-headers/locale.texi (locale.h): Likewise.
29429         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
29430         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
29431         * doc/posix-headers/string.texi (string.h): Likewise.
29432         * doc/posix-headers/time.texi (time.h): Likewise.
29433         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
29434         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
29435
29436 2009-08-14  Eric Blake  <ebb9@byu.net>
29437
29438         doc: improve git diff of texinfo files
29439         * .gitattributes: Add rule for *.texi files, with hint on how to
29440         use it.
29441         Copied from m4, and based on a report by Bruno Haible.
29442
29443 2009-08-14  Bruno Haible  <bruno@clisp.org>
29444
29445         Disable multithread support by default on Cygwin 1.5.x for real.
29446         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
29447
29448 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
29449
29450         update-copyright: much ado about intervals
29451         * build-aux/update-copyright: Implement and document
29452         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
29453         of copyright year intervals.
29454         Also, document UPDATE_COPYRIGHT_YEAR.
29455         * tests/test-update-copyright.sh: Test it.
29456
29457         update-copyright: convert 2-digit to 4-digit years
29458         * build-aux/update-copyright: Implement and document.
29459         * tests/test-update-copyright.sh: Update.
29460
29461 2009-08-14  Jim Meyering  <meyering@redhat.com>
29462
29463         test-exclude: avoid coreutils "make check" failure
29464         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
29465         just as in test-argmatch.c.
29466
29467 2009-08-13  Eric Blake  <ebb9@byu.net>
29468
29469         test-dup2: fix bad assumption
29470         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
29471         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
29472
29473         test-version-etc: fix CRLF portability issue
29474         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
29475         recognize \r.
29476         * tests/test-argp-version-etc-1.sh: Likewise.
29477
29478         getopt: update client modules
29479         * modules/argp (Depends-on): Use getopt-gnu.
29480         * modules/git-merge-changelog (Depends-on): Likewise.
29481         * modules/long-options (Depends-on): Likewise.
29482         * modules/xstrtol (Depends-on): Likewise.
29483
29484 2009-08-13  Simon Josefsson  <simon@josefsson.org>
29485
29486         * tests/test-version-etc.sh: Don't fail on different
29487         project/version.  Don't fail on CRLF differences.  Rewrite to use
29488         multiple -e instead of multiple sed forks, suggested by Eric Blake
29489         <ebb9@byu.net>.
29490         * tests/test-argp-version-etc-1.sh: Likewise.
29491
29492 2009-08-13  Simon Josefsson  <simon@josefsson.org>
29493
29494         * tests/test-version-etc.sh: Don't fail on different
29495         project/version.
29496
29497 2009-08-12  Bruno Haible  <bruno@clisp.org>
29498
29499         Tests for modules 'getopt-posix', 'getopt-gnu'.
29500         * modules/getopt-posix-tests: New file.
29501         * tests/test-getopt.c: New file.
29502         * tests/test-getopt.h: New file.
29503         * tests/test-getopt_long.h: New file.
29504
29505         New modules 'getopt-posix', 'getopt-gnu'.
29506         * modules/getopt-gnu: New file, renamed from modules/getopt.
29507         * modules/getopt-posix: New file.
29508         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
29509         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
29510         (gl_GETOPT): Remove macro.
29511         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
29512         Disable the test against BSD systems that declare optreset. Test
29513         against mingw bug. Test against lack of support of optional arguments
29514         on many platforms.
29515         * doc/glibc-headers/getopt.texi: Update module name and list of
29516         relevant platforms.
29517         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
29518         'getopt-gnu' and more portability problems.
29519         * NEWS: Mention the changes.
29520
29521 2009-08-12  Bruno Haible  <bruno@clisp.org>
29522
29523         Ensure that optarg etc. get declared by <unistd.h>.
29524         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
29525         AC_USE_SYSTEM_EXTENSIONS.
29526         * modules/getopt (Depends-on): Add 'extensions'.
29527
29528 2009-08-12  Bruno Haible  <bruno@clisp.org>
29529
29530         Avoid test link errors.
29531         * modules/pipe-filter-ii-tests (Makefile.am): Define
29532         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
29533         * modules/pipe-filter-gi-tests (Makefile.am): Define
29534         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
29535         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29536
29537 2009-08-12  Bruno Haible  <bruno@clisp.org>
29538
29539         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
29540         gl_GETOPT_SUBSTITUTE before.
29541         (gl_GETOPT): Use it.
29542         * m4/argp.m4 (gl_ARGP): Update.
29543         Reported by Sergey Poznyakoff.
29544
29545         * m4/getopt.m4: Reorder macros.
29546         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
29547         (gl_GETOPT_SUBSTITUTE): Remove macro.
29548
29549 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
29550
29551         Minor improvement in gitlog-to-changelog
29552
29553         * build-aux/gitlog-to-changelog: New option `--format' makes
29554         output format string configurable.
29555
29556 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
29557
29558         Optimize exclude: use hash tables for non-wildcard patterns.
29559
29560         * lib/exclude.c: Include hash.h and mbuiter.h
29561         (struct exclude_pattern, exclude_segment): New data types.
29562         (struct exclude): Rewrite.
29563         (fnmatch_pattern_has_wildcards): New function.
29564         (new_exclude_segment, free_exclude_segment): New functions.
29565         (excluded_file_pattern_p, excluded_file_name_p): New functions.
29566         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
29567         * lib/exclude.h (is_fnmatch_pattern): New prototype.
29568         * modules/exclude: Depend on hash and mbuiter.
29569
29570         * modules/exclude-tests: New file.
29571         * tests/test-exclude.c: New file.
29572         * tests/test-exclude1.sh: New file.
29573         * tests/test-exclude2.sh: New file.
29574         * tests/test-exclude3.sh: New file.
29575         * tests/test-exclude4.sh: New file.
29576         * tests/test-exclude5.sh: New file.
29577         * tests/test-exclude6.sh: New file.
29578         * tests/test-exclude7.sh: New file.
29579
29580 2009-08-12  Bruno Haible  <bruno@clisp.org>
29581
29582         Ensure that getopt() gets declared by <unistd.h>.
29583         * lib/unistd.in.h: Conditionally include getopt.h.
29584         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
29585         Set GNULIB_UNISTD_H_GETOPT.
29586         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29587         GNULIB_UNISTD_H_GETOPT.
29588         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
29589
29590 2009-08-12  Bruno Haible  <bruno@clisp.org>
29591
29592         Clarify logic.
29593         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
29594         gl_replace_getopt instead of GETOPT_H.
29595
29596 2009-08-12  Bruno Haible  <bruno@clisp.org>
29597
29598         * m4/getopt.m4: Add comments.
29599
29600 2009-08-12  Bruno Haible  <bruno@clisp.org>
29601
29602         Disable multithread support by default on Cygwin 1.5.x.
29603         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
29604         set gl_use_threads=no if not specified otherwise.
29605
29606 2009-08-11  Bruno Haible  <bruno@clisp.org>
29607
29608         Avoid compilation error on NetBSD 5.0.
29609         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
29610         * tests/test-stdio.c: Likewise.
29611         * tests/test-stdlib.c: Likewise.
29612         * tests/test-string.c: Likewise.
29613         * tests/test-unistd.c: Likewise.
29614         Reported by Greg Troxel <gdt@ir.bbn.com>
29615         at <https://savannah.gnu.org/support/?106973>.
29616
29617 2009-08-11  Bruno Haible  <bruno@clisp.org>
29618
29619         * modules/dup2-tests (Depends-on): Remove close.
29620
29621         Undo 2009-07-19 commit.
29622         * modules/acl-tests (Depends-on): Remove close.
29623         * modules/binary-io-tests (Depends-on): Likewise.
29624         * modules/closein-tests (Depends-on): Likewise.
29625         * modules/flock-tests (Depends-on): Likewise.
29626         * modules/fsync-tests (Depends-on): Likewise.
29627         * modules/lseek-tests (Depends-on): Likewise.
29628         * modules/pipe-tests (Depends-on): Likewise.
29629         * modules/posix_spawn-tests (Depends-on): Likewise.
29630         * modules/posix_spawnp-tests (Depends-on): Likewise.
29631         * modules/stat-time-tests (Depends-on): Likewise.
29632         * modules/yesno-tests (Depends-on): Likewise.
29633
29634 2009-08-10  Bruno Haible  <bruno@clisp.org>
29635
29636         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
29637
29638 2009-08-10  Bruno Haible  <bruno@clisp.org>
29639
29640         Fix a gcc warning.
29641         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
29642
29643 2009-08-10  Bruno Haible  <bruno@clisp.org>
29644
29645         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
29646         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
29647         not only the first time.
29648         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
29649         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
29650         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
29651         is 1, not only the the first time.
29652
29653 2009-08-10  Bruno Haible  <bruno@clisp.org>
29654
29655         Make it possible to use module 'gethostname' without module 'close'.
29656         * lib/unistd.in.h (close): Evoke a link error only if
29657         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
29658         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29659         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29660         * modules/unistd (Makefile.am): Substitute
29661         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29662         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
29663         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
29664         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
29665         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29666         * modules/sys_ioctl (Makefile.am): Substitute
29667         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29668         * modules/socket (configure.ac): On native Windows, set
29669         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
29670         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29671         Reported by Sam Steingold <sds@gnu.org>.
29672
29673 2009-08-10  Bruno Haible  <bruno@clisp.org>
29674
29675         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
29676         * modules/ioctl (configure.ac): Likewise.
29677
29678 2009-08-10  Bruno Haible  <bruno@clisp.org>
29679
29680         Avoid collision between gnulib wrapper and libintl wrapper.
29681         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
29682         already defined in intl/printf.c.
29683         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
29684         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
29685
29686 2009-08-09  Bruno Haible  <bruno@clisp.org>
29687
29688         Make <sys/select.h> really self-contained, also on Solaris 10.
29689         * lib/sys_select.in.h: Include <string.h>.
29690         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
29691         Solaris 10 problem.
29692         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
29693         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
29694         Reported by Jim Meyering.
29695
29696 2009-08-09  Bruno Haible  <bruno@clisp.org>
29697
29698         Avoid warnings from 'aclocal' that are due to a use of macro name
29699         AM_XGETTEXT_OPTION that is not defined in automake.
29700         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
29701         automake.
29702         * modules/error (configure.ac): Likewise.
29703         * modules/propername (configure.ac): Likewise.
29704         * modules/vasprintf (configure.ac): Likewise.
29705         * modules/verror (configure.ac): Likewise.
29706         * modules/xprintf (configure.ac): Likewise.
29707         * modules/xvasprintf (configure.ac): Likewise.
29708
29709 2009-08-08  Bruno Haible  <bruno@clisp.org>
29710
29711         Avoid compilation error in C++ mode.
29712         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
29713         Reported by Sam Steingold <sds@gnu.org>.
29714
29715 2009-08-08  Bruno Haible  <bruno@clisp.org>
29716
29717         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
29718         for the various Unix platforms.
29719         * doc/posix-headers/limits.texi: Update platforms list regarding
29720         HOST_NAME_MAX.
29721         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29722
29723 2009-08-07  Jim Meyering  <meyering@redhat.com>
29724
29725         selinux-at: fix typo in a comment
29726         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
29727         Spotted by Paolo Bonzini.
29728
29729         selinux-at: remove redundant m4 code, add documentation
29730         * modules/selinux-at (configure.ac): Remove redundant code.
29731         LIB_SELINUX is already set via the dependent module, selinux-h.
29732         (Include): Add quotes around selinux-at.h.
29733         * lib/selinux-at.h: Add documentation.
29734         Reported by Bruno Haible in
29735         http://marc.info/?l=gnulib-bug&m=124958988300749
29736
29737 2009-08-07  Bruno Haible  <bruno@clisp.org>
29738
29739         Avoid link error on MacOS X 10.3 and 10.4.
29740         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
29741         on non-ELF systems.
29742         * lib/argp-pv.c (argp_program_version): Likewise.
29743         Reported by Simon Josefsson.
29744
29745 2009-08-07  Simon Josefsson  <simon@josefsson.org>
29746
29747         * tests/test-version-etc.sh: Use $EXEEXT.
29748
29749 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
29750
29751         update-copyright: update documentation to point to maint.mk
29752         * build-aux/update-copyright: Here.
29753
29754 2009-08-06  Jim Meyering  <meyering@redhat.com>
29755
29756         maint.mk: support update-copyright-local
29757         * top/maint.mk (update-copyright-local): Define place-holder.
29758         (update-copyright): Depend on $(update-copyright-local).
29759
29760 2009-08-06  Jim Meyering  <meyering@redhat.com>
29761
29762         selinux-at: new module
29763         Initially written for coreutils, this module will soon be
29764         used by findutils, too.
29765         * MODULES.html.sh [Misc]: Add selinux-at.
29766         * lib/selinux-at.h: New file, from coreutils.
29767         * lib/selinux-at.c: Likewise.
29768         * modules/selinux-at: Likewise.
29769         (License): Change from LGPL to GPL, since it depends
29770         on the GPL'd openat module.
29771
29772         doc: update README
29773         * README: Remove references to cogito.
29774         Remove cvs-repo-updating instructions from 2007.
29775         Don't imply that CVS is better if you have limited disk space.
29776
29777 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
29778
29779         update-copyright: support C-style comments
29780         * build-aux/update-copyright: Implement and document.
29781         * tests/test-update-copyright.sh: Test.
29782
29783 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
29784
29785         update-copyright: support omitted "(C)"
29786         * build-aux/update-copyright: Implement and document.  Also,
29787         allow variable whitespace before "(C)".
29788         * tests/test-update-copyright.sh: Test.
29789
29790 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
29791
29792         update-copyright: don't trip on non-FSF copyright statements
29793         * build-aux/update-copyright: Fix so that the first correctly
29794         formatted FSF copyright statement is recognized no matter what
29795         appears before it.  Update documentation.
29796         * tests/test-update-copyright.sh: Test that.
29797
29798 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
29799
29800         update-copyright: clean up code a little
29801         * build-aux/update-copyright: Append "_re" to the name of any
29802         variable holding a regular expression.
29803         Replace "old" and "new" with "stmt" in variable names.
29804         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
29805         handled correctly.
29806         Format code more consistently.
29807
29808 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
29809
29810         update-copyright-tests: improve portability
29811         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
29812         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
29813
29814 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
29815
29816         update-copyright: support @copyright{} and &copy;
29817         * build-aux/update-copyright: Implement and document.
29818         * tests/test-update-copyright.sh: Test.
29819
29820 2009-08-04  Jim Meyering  <meyering@redhat.com>
29821
29822         update-copyright-tests: correctly test EOL=\r\n handling
29823         * tests/test-update-copyright.sh: Put \r at the end of some lines
29824         for the dos-eol tests.  Based on a patch by Joel E. Denny.
29825
29826         maint.mk: make update-copyright exclusion list more configurable
29827         * top/maint.mk (update-copyright): Default to excluding COPYING,
29828         but allow an override, in case someone does want to update that file.
29829
29830         maint.mk: don't update copyright date in COPYING
29831         * top/maint.mk (update-copyright): Exclude COPYING.
29832
29833         maint.mk: add a copyright-updating rule
29834         * top/maint.mk (update-copyright): New rule.
29835         Derived from coreutils/Makefile.am.
29836
29837         update-copyright: rename some variables
29838         * build-aux/update-copyright: Rename a few variables for clarity.
29839         Tweak syntax.  List Joel E. Denny as coauthor.
29840
29841 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
29842
29843         update-copyright: fix bug for 2-digit last year and add tests
29844         * build-aux/update-copyright: Fix bug.
29845         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
29846         specified.
29847         * modules/update-copyright-tests: New
29848         * tests/test-update-copyright.sh: New.
29849
29850 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
29851
29852         update-copyright: handle leading tabs in line prefix
29853         * build-aux/update-copyright: Count leading tabs as 8 spaces
29854         when computing margin.  This helps with the formatting of
29855         ChangeLogs, for example.
29856         Fix documentation a little.
29857
29858 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
29859
29860         update-copyright: support EOL=\r\n
29861         * build-aux/update-copyright: Implement that.
29862
29863 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
29864
29865         update-copyright: automatically format copyright statements
29866         * build-aux/update-copyright: Implement that.
29867         Also, be a little more predictable and safer by always failing
29868         when the full copyright format is not perfectly recognized as an
29869         unbroken whole.  Discussed at
29870         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
29871         Rewrite documentation.
29872
29873 2009-08-03  Bruno Haible  <bruno@clisp.org>
29874
29875         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
29876
29877 2009-08-02  Bruno Haible  <bruno@clisp.org>
29878
29879         Tests for module 'uname'.
29880         * modules/uname-tests: New file.
29881         * tests/test-uname.c: New file.
29882
29883         New module 'uname'.
29884         * lib/uname.c: New file.
29885         * m4/uname.m4: New file.
29886         * modules/uname: New file.
29887         * doc/posix-functions/uname.texi: Mention the new module.
29888
29889 2009-08-02  Bruno Haible  <bruno@clisp.org>
29890
29891         Tests for module 'sys_utsname'.
29892         * modules/sys_utsname-tests: New file.
29893         * tests/test-sys_utsname.c: New file.
29894
29895         New module 'sys_utsname'.
29896         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
29897         * m4/sys_utsname_h.m4: New file.
29898         * modules/sys_utsname: New file.
29899         * doc/posix-headers/sys_utsname.texi: Mention the new module.
29900
29901 2009-08-02  Bruno Haible  <bruno@clisp.org>
29902
29903         Implicitly initialize the sockets library.
29904         * lib/gethostname.c: Include sockets.h.
29905         (rpl_gethostname): Invoke gl_sockets_startup.
29906         * lib/socket.c: Include sockets.h.
29907         (rpl_socket): Invoke gl_sockets_startup.
29908         * modules/gethostname (Depends-on): Add sockets.
29909         * modules/socket (Depends-on): Likewise.
29910         * tests/test-poll.c: Don't include sockets.h.
29911         (main): Don't invoke gl_sockets_startup.
29912         * tests/test-select.c: Don't include sockets.h.
29913         (main): Don't invoke gl_sockets_startup.
29914
29915 2009-08-02  Bruno Haible  <bruno@clisp.org>
29916
29917         Allow multiple calls to gl_sockets_startup.
29918         * lib/sockets.c (initialized_sockets_version): New variable.
29919         (gl_sockets_startup): Do nothing if already called for this or a higher
29920         version.
29921         (gl_sockets_cleanup): Reset initialized_sockets_version.
29922
29923 2009-08-03  Simon Josefsson  <simon@josefsson.org>
29924
29925         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
29926         different project/version.
29927
29928 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
29929             Bruno Haible  <bruno@clisp.org>
29930
29931         Tests for module 'pipe-filter-gi'.
29932         * modules/pipe-filter-gi-tests: New file.
29933         * tests/test-pipe-filter-gi1.sh: New file.
29934         * tests/test-pipe-filter-gi1.c: New file.
29935         * tests/test-pipe-filter-gi2.sh: New file.
29936         * tests/test-pipe-filter-gi2-main.c: New file.
29937         * tests/test-pipe-filter-gi2-child.c: New file.
29938
29939         New module 'pipe-filter-gi'.
29940         * lib/pipe-filter-gi.c: New file.
29941         * modules/pipe-filter-gi: New file.
29942
29943 2009-08-02  Bruno Haible  <bruno@clisp.org>
29944             Paolo Bonzini  <bonzini@gnu.org>
29945
29946         Tests for module 'pipe-filter-ii'.
29947         * modules/pipe-filter-ii-tests: New file.
29948         * tests/test-pipe-filter-ii1.sh: New file.
29949         * tests/test-pipe-filter-ii1.c: New file.
29950         * tests/test-pipe-filter-ii2.sh: New file.
29951         * tests/test-pipe-filter-ii2-main.c: New file.
29952         * tests/test-pipe-filter-ii2-child.c: New file.
29953
29954         New module 'pipe-filter-ii'.
29955         * lib/pipe-filter.h: New file.
29956         * lib/pipe-filter-ii.c: New file.
29957         * lib/pipe-filter-aux.h: New file.
29958         * modules/pipe-filter-ii: New file.
29959
29960 2009-08-02  Simon Josefsson  <simon@josefsson.org>
29961
29962         * lib/gc-libgcrypt.c: Change copyright to FSF.
29963         * lib/gc-gnulib.c: Likewise.
29964
29965 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
29966
29967         * lib/gethostname.c: Include limits.h.
29968
29969 2009-08-02  Simon Josefsson  <simon@josefsson.org>
29970             Bruno Haible  <bruno@clisp.org>
29971
29972         Ensure HOST_NAME_MAX as part of the gethostname module.
29973         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
29974         define also HOST_NAME_MAX.
29975         * tests/test-gethostname.c: Include <limits.h>.
29976         (main): Check also HOST_NAME_MAX.
29977         * doc/posix-headers/limits.texi: Document the mingw problem.
29978
29979 2009-08-02  Bruno Haible  <bruno@clisp.org>
29980
29981         * lib/gethostname.c (gethostname): Fix handling of large len argument.
29982         Add comments.
29983
29984 2009-03-31  Simon Josefsson  <simon@josefsson.org>
29985
29986         * lib/gethostname.c: Add Windows wrapper.
29987         * m4/gethostname.m4: Look for gethostname in -lws2_32.
29988         * modules/gethostname: Depend on sys_socket & errno, for also
29989         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
29990         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
29991
29992 2009-07-31  Jim Meyering  <meyering@redhat.com>
29993
29994         getloadavg: fix symbol name in comment
29995         * lib/getloadavg.c: Correct a typo I introduced when adding
29996         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
29997         Matt Kraai spotted the problem.
29998
29999 2009-07-29  Matt Kraai  <mkraai@beckman.com>
30000
30001         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
30002         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
30003         code also if ! defined N_NAME_POINTER.
30004         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
30005         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
30006         but the n_name member is a 12-byte array.
30007
30008 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
30009
30010         update-copyright: generalize comment handling
30011         * build-aux/update-copyright: Handle copyright statements
30012         within more comment styles.
30013         Document usage.
30014         Report any file with an external copyright holder or parse failure.
30015
30016 2009-07-29  Jim Meyering  <meyering@redhat.com>
30017
30018         mktime: correct setting of REPLACE_MKTIME
30019         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
30020
30021         update-copyright: new module
30022         * modules/update-copyright: New file.
30023         * build-aux/update-copyright: New file.
30024         * MODULES.html.sh (maint+release support): Add update-copyright.
30025
30026 2009-07-27  Bruno Haible  <bruno@clisp.org>
30027
30028         Fix compilation error when <ctime> is used and mktime is replaced.
30029         * lib/time.in.h (mktime): New declaration.
30030         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
30031         REPLACE_MKTIME instead of defining mktime in config.h.
30032         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
30033         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
30034         Reported by Ross McFarland <rwmcfa1@neces.com>.
30035
30036 2009-07-27  Bruno Haible  <bruno@clisp.org>
30037
30038         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
30039         Reported by Matt Kraai <mkraai@beckman.com>.
30040
30041 2009-07-25  Jim Meyering  <meyering@redhat.com>
30042
30043         maint.mk: avoid warnings about missing files
30044         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
30045         diagnostic when .prev-version does not exist.
30046         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
30047         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
30048         nonexistent cfg.mk.
30049         Suggestions from Simon Josefsson.
30050
30051 2009-07-25  Bruno Haible  <bruno@clisp.org>
30052
30053         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
30054         defined as macros. Needed on QNX 6.4.1.
30055         Reported by Matt Kraai <mkraai@beckman.com>.
30056
30057 2009-07-23  Jim Meyering  <meyering@redhat.com>
30058
30059         maint.mk: invoke "make dist" with a working value of XZ_OPT
30060         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
30061
30062 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
30063
30064         Make fseeko.c compile on QNX.
30065         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
30066
30067 2009-07-22  Peter Simons  <simons@cryp.to>
30068
30069         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
30070         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
30071         * lib/md4.h: Likewise.
30072         * lib/md5.h: Likewise.
30073         * lib/sha1.h: Likewise.
30074         * lib/sha256.h: Likewise.
30075         * lib/sha512.h: Likewise.
30076
30077         tests-sha1: don't assign literal string to 'char *' variable
30078         * tests/test-sha1.c (main): Declare locals with "const" to match
30079         attributes of the right hand side.
30080
30081 2009-07-21  Eric Blake  <ebb9@byu.net>
30082
30083         dup2: fix more mingw problems
30084         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
30085         fd to itself.
30086         * doc/posix-functions/dup2.texi (dup2): Document the bug.
30087         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
30088         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
30089         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
30090         care of mingw bugs.
30091
30092 2009-07-21  Jim Meyering  <meyering@redhat.com>
30093
30094         vc-list-files: avoid failure when /bin/sh is dash
30095         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
30096         On some Debian based systems, /bin/sh is a symlink to dash, and running
30097         this command would omit the "/" following each 'tests' prefix:
30098           dash -x build-aux/vc-list-files -C . tests
30099         That is because bash and dash work differently:
30100           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
30101           bash ok
30102           dash odd
30103
30104 2009-07-21  Eric Blake  <ebb9@byu.net>
30105
30106         dup2-tests: test previous patch
30107         * modules/dup2-tests: New file.
30108         * tests/test-dup2.c: Likewise.
30109         * tests/test-open.c (main): Avoid unspecified behavior.
30110         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
30111         test.
30112
30113         dup2: work around mingw and cygwin 1.5 bug
30114         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
30115         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30116         * modules/unistd (Makefile.am): Substitute it.
30117         * lib/unistd.in.h (dup2): Declare the replacement.
30118         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
30119         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
30120         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
30121         * modules/execute (Depends-on): Add dup2.
30122         * modules/fseterr (Depends-on): Likewise.
30123         * modules/pipe (Depends-on): Likewise.
30124         * modules/posix_spawn-internal (Depends-on): Likewise.
30125
30126 2009-07-21  Bruno Haible  <bruno@clisp.org>
30127
30128         * modules/.gitattributes: New file.
30129
30130 2009-07-20  Bruno Haible  <bruno@clisp.org>
30131
30132         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
30133         (main): Use it.
30134
30135 2009-07-20  Eric Blake  <ebb9@byu.net>
30136
30137         test-pipe: make a bit more robust.
30138         * tests/test-pipe.c (myerr): Allow error messages regardless of
30139         what we do to stderr.
30140         (test_pipe): Rearrange to avoid deadlock.
30141         (child_main): Try a larger read, to ensure we avoided deadlock.
30142         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
30143         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
30144         if misused.
30145
30146 2009-07-19  Jim Meyering  <meyering@redhat.com>
30147
30148         fts: avoid false-positive cycle-detection
30149         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
30150         for each new command line argument.
30151
30152 2009-07-19  Bruno Haible  <bruno@clisp.org>
30153
30154         Fix build error on mingw with the modules sys_select and unistd.
30155         * modules/acl-tests (Depends-on): Add close.
30156         * modules/binary-io-tests (Depends-on): Likewise.
30157         * modules/closein-tests (Depends-on): Likewise.
30158         * modules/flock-tests (Depends-on): Likewise.
30159         * modules/fsync-tests (Depends-on): Likewise.
30160         * modules/lseek-tests (Depends-on): Likewise.
30161         * modules/pipe-tests (Depends-on): Likewise.
30162         * modules/posix_spawn-tests (Depends-on): Likewise.
30163         * modules/posix_spawnp-tests (Depends-on): Likewise.
30164         * modules/stat-time-tests (Depends-on): Likewise.
30165         * modules/yesno-tests (Depends-on): Likewise.
30166
30167 2009-07-19  Bruno Haible  <bruno@clisp.org>
30168
30169         Unify conditionals.
30170         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
30171         macros, not at the compiler macros.
30172         * lib/pipe.c: Likewise.
30173         * lib/execute.c: Likewise.
30174         * lib/spawni.c: Likewise.
30175
30176 2009-07-19  Bruno Haible  <bruno@clisp.org>
30177
30178         Fix handling of closed stdin/stdout/stderr on mingw.
30179         * lib/w32spawn.h: Include unistd.h.
30180         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
30181         file descriptor with O_NOINHERIT flag.
30182         (fd_safer_noinherit): New function, based on fd-safer.c.
30183         (dup_safer_noinherit): New function, based on dup-safer.c.
30184         (undup_safer_noinherit): New function.
30185         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
30186         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
30187         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
30188         instead of fd_safer.
30189         * tests/test-pipe.c: Include <windows.h>.
30190         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
30191         result.
30192
30193         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
30194         from main.
30195         (test_pipe): Pass an extra argument for disambiguation.
30196         (main): Invoke parent_main or child_main.
30197
30198         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
30199         consistently.
30200
30201 2009-07-18  Eric Blake  <ebb9@byu.net>
30202
30203         test-pipe: fix mingw build
30204         * tests/test-pipe.c (main): Avoid fcntl on mingw.
30205
30206 2009-07-18  Bruno Haible  <bruno@clisp.org>
30207
30208         * modules/pipe-tests (Makefile.am): Fix typo.
30209
30210 2009-07-18  Eric Blake  <ebb9@byu.net>
30211
30212         error: fix mingw build
30213         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
30214         Reported by Bruno Haible.
30215
30216         error: avoid undefined use of stdout
30217         * lib/error.c (error, error_at_line): Check that fd 1 is open
30218         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
30219         is handling faults and the close_stdout module wants to report the
30220         detection of closed stdout as an error.
30221
30222 2009-07-17  Eric Blake  <ebb9@byu.net>
30223
30224         pipe: be robust in face of closed fds
30225         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
30226         should cause child to misbehave.
30227         * modules/pipe-tests: New module.
30228         * tests/test-pipe.c: New file.
30229         * tests/test-pipe.sh: New file.
30230         Reported by Akim Demaille.
30231
30232 2009-07-14  Bruno Haible  <bruno@clisp.org>
30233
30234         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
30235         Reported by anonymous kc.
30236
30237 2009-07-07  Jim Meyering  <meyering@redhat.com>
30238
30239         maint.mk: don't look for translatable strings in *.m4 or *.mk
30240         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
30241         when searching for translatable strings.
30242
30243 2009-07-05  Jim Meyering  <meyering@redhat.com>
30244
30245         remove superfluous parentheses in STREQ definition
30246         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
30247         * lib/getugroups.c (STREQ): Likewise.
30248         * lib/fnmatch.c (STREQ): Likewise.
30249         Spotted by Bruno Haible.
30250
30251 2009-07-04  Jim Meyering  <meyering@redhat.com>
30252
30253         argv-iter: new module
30254         * MODULES.html.sh: Add argv-iter.
30255         * lib/argv-iter.c, lib/argv-iter.h: New files.
30256         * modules/argv-iter: New file.
30257         * modules/argv-iter-tests: New file.
30258         * tests/test-argv-iter.c: Test it.
30259
30260 2009-07-04  Bruno Haible  <bruno@clisp.org>
30261
30262         Fix assertion.
30263         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
30264         contains more exact copies of a given entry than file2, leave the extra
30265         copies unpaired rather than aborting.
30266         Reported by Eric Blake.
30267
30268 2009-07-02  Bruno Haible  <bruno@clisp.org>
30269
30270         Speedup git-merge-changelog for git cherry-pick.
30271         * lib/git-merge-changelog.c (struct entries_mapping): New type.
30272         (entries_mapping_get): New function, extracted from compute_mapping.
30273         (entries_mapping_reverse_get): New function.
30274         (compute_mapping): Add a 'full' argument. Return the result in a
30275         'struct entries_mapping'.
30276         (main): Update. Access the mappings through entries_mapping_get.
30277         Reported by Eric Blake.
30278
30279 2009-07-02  Bruno Haible  <bruno@clisp.org>
30280
30281         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
30282         best_i.
30283
30284 2009-07-02  Bruno Haible  <bruno@clisp.org>
30285
30286         Speed up approximate search for matching ChangeLog entries.
30287         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
30288         argument. Call fstrcmp_bounded instead of fstrcmp.
30289         (compute_mapping, try_split_merged_entry, main): Update callers.
30290
30291 2009-07-02  Bruno Haible  <bruno@clisp.org>
30292
30293         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
30294
30295 2009-06-30  Bruno Haible  <bruno@clisp.org>
30296
30297         Reduce the number of uc_is_cased calls.
30298         * lib/unicase.h (casing_suffix_context_t): Add
30299         'first_char_except_ignorable' field.
30300         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
30301         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
30302         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
30303         Update initializer.
30304         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
30305         case-ignorable characters.
30306         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
30307         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
30308         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
30309         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
30310         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
30311
30312 2009-06-30  Bruno Haible  <bruno@clisp.org>
30313
30314         Tests for module 'unicase/ignorable'.
30315         * modules/unicase/ignorable-tests: New file.
30316         * tests/unicase/test-ignorable.c: New file, generated by
30317         gen-uni-tables.
30318
30319         Tests for module 'unicase/cased'.
30320         * modules/unicase/cased-tests: New file.
30321         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
30322         * tests/unicase/test-predicate-part1.h: New file, derived from
30323         tests/unictype/test-predicate-part1.h.
30324         * tests/unicase/test-predicate-part2.h: New file, same as
30325         tests/unictype/test-predicate-part2.h.
30326
30327         Fix evaluation of "Before C" condition of FINAL_SIGMA.
30328         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
30329         (output_casing_properties): New function.
30330         (main): Call it.
30331         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
30332         * lib/unicase/cased.c: Include unictype/bitmap.h.
30333         (uc_is_cased): Define through a bitmap lookup.
30334         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
30335         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
30336         (uc_is_case_ignorable): Define through a bitmap lookup.
30337         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
30338         lib/unictype/bitmap.h.
30339         (Depends-on): Add inline. Clean up.
30340         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
30341         lib/unictype/bitmap.h.
30342         (Depends-on): Add inline. Clean up.
30343         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
30344         recognition.
30345         * tests/unicase/test-u16-tolower.c (main): Likewise.
30346         * tests/unicase/test-u32-tolower.c (main): Likewise.
30347
30348 2009-06-30  Bruno Haible  <bruno@clisp.org>
30349
30350         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
30351         * lib/unicase/u16-casemap.c: Likewise.
30352         * lib/unicase/u32-casemap.c: Likewise.
30353
30354 2009-06-29  Bruno Haible  <bruno@clisp.org>
30355
30356         Define u32_casefold as a wrapper around u32_ct_casefold.
30357         * lib/unicase/u32-casefold.c: Update.
30358         * modules/unicase/u32-casefold (Depends-on): Add
30359         unicase/u32-ct-casefold, unicase/empty-prefix-context,
30360         unicase/empty-suffix-context. Clean up.
30361
30362         Define u16_casefold as a wrapper around u16_ct_casefold.
30363         * lib/unicase/u16-casefold.c: Update.
30364         * modules/unicase/u16-casefold (Depends-on): Add
30365         unicase/u16-ct-casefold, unicase/empty-prefix-context,
30366         unicase/empty-suffix-context. Clean up.
30367
30368         Define u8_casefold as a wrapper around u8_ct_casefold.
30369         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
30370         * lib/unicase/u8-casefold.c: Update.
30371         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
30372         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
30373
30374         Define u32_totitle as a wrapper around u32_ct_totitle.
30375         * lib/unicase/u32-totitle.c: Update.
30376         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
30377         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
30378
30379         Define u16_totitle as a wrapper around u16_ct_totitle.
30380         * lib/unicase/u16-totitle.c: Update.
30381         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
30382         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
30383
30384         Define u8_totitle as a wrapper around u8_ct_totitle.
30385         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
30386         functions.
30387         (FUNC): Delegate to U_CT_TOTITLE.
30388         * lib/unicase/u8-totitle.c: Update.
30389         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
30390         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
30391
30392         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
30393         invocation.
30394         * modules/unicase/u32-tolower (Depends-on): Add
30395         unicase/empty-prefix-context, unicase/empty-suffix-context.
30396
30397         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
30398         invocation.
30399         * modules/unicase/u16-tolower (Depends-on): Add
30400         unicase/empty-prefix-context, unicase/empty-suffix-context.
30401
30402         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
30403         * modules/unicase/u8-tolower (Depends-on): Add
30404         unicase/empty-prefix-context, unicase/empty-suffix-context.
30405
30406         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
30407         invocation.
30408         * modules/unicase/u32-toupper (Depends-on): Add
30409         unicase/empty-prefix-context, unicase/empty-suffix-context.
30410
30411         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
30412         invocation.
30413         * modules/unicase/u16-toupper (Depends-on): Add
30414         unicase/empty-prefix-context, unicase/empty-suffix-context.
30415
30416         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
30417         * modules/unicase/u8-toupper (Depends-on): Add
30418         unicase/empty-prefix-context, unicase/empty-suffix-context.
30419
30420         New module 'unicase/u32-ct-casefold'.
30421         * lib/unicase/u32-ct-casefold.c: New file.
30422         * modules/unicase/u32-ct-casefold: New file.
30423
30424         New module 'unicase/u16-ct-casefold'.
30425         * lib/unicase/u16-ct-casefold.c: New file.
30426         * modules/unicase/u16-ct-casefold: New file.
30427
30428         New module 'unicase/u8-ct-casefold'.
30429         * lib/unicase/u8-ct-casefold.c: New file.
30430         * lib/unicase/u-ct-casefold.h: New file, derived from
30431         lib/unicase/u-casefold.h.
30432         * modules/unicase/u8-ct-casefold: New file.
30433
30434         New module 'unicase/u32-ct-totitle'.
30435         * lib/unicase/u32-ct-totitle.c: New file.
30436         * modules/unicase/u32-ct-totitle: New file.
30437
30438         New module 'unicase/u16-ct-totitle'.
30439         * lib/unicase/u16-ct-totitle.c: New file.
30440         * modules/unicase/u16-ct-totitle: New file.
30441
30442         New module 'unicase/u8-ct-totitle'.
30443         * lib/unicase/u8-ct-totitle.c: New file.
30444         * lib/unicase/u-ct-totitle.h: New file, derived from
30445         lib/unicase/u-totitle.h.
30446         * modules/unicase/u8-ct-totitle: New file.
30447
30448         New module 'unicase/u32-ct-tolower'.
30449         * lib/unicase/u32-ct-tolower.c: New file.
30450         * modules/unicase/u32-ct-tolower: New file.
30451
30452         New module 'unicase/u16-ct-tolower'.
30453         * lib/unicase/u16-ct-tolower.c: New file.
30454         * modules/unicase/u16-ct-tolower: New file.
30455
30456         New module 'unicase/u8-ct-tolower'.
30457         * lib/unicase/u8-ct-tolower.c: New file.
30458         * modules/unicase/u8-ct-tolower: New file.
30459
30460         New module 'unicase/u32-ct-toupper'.
30461         * lib/unicase/u32-ct-toupper.c: New file.
30462         * modules/unicase/u32-ct-toupper: New file.
30463
30464         New module 'unicase/u16-ct-toupper'.
30465         * lib/unicase/u16-ct-toupper.c: New file.
30466         * modules/unicase/u16-ct-toupper: New file.
30467
30468         New module 'unicase/u8-ct-toupper'.
30469         * lib/unicase/u8-ct-toupper.c: New file.
30470         * modules/unicase/u8-ct-toupper: New file.
30471
30472         Add context arguments to u*_casemap functions.
30473         * lib/unicase/unicasemap.h: Include unicase.h.
30474         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
30475         suffix_context arguments.
30476         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
30477         functions.
30478         (FUNC): Add prefix_context and suffix_context arguments. Use
30479         uc_is_cased and uc_is_case_ignorable.
30480         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
30481         * lib/unicase/u16-casemap.c: Likewise.
30482         * lib/unicase/u32-casemap.c: Likewise.
30483         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
30484         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
30485         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
30486         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
30487         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
30488         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
30489
30490         New module 'unicase/u32-suffix-context'.
30491         * lib/unicase/u32-suffix-context.c: New file.
30492         * modules/unicase/u32-suffix-context: New file.
30493
30494         New module 'unicase/u16-suffix-context'.
30495         * lib/unicase/u16-suffix-context.c: New file.
30496         * modules/unicase/u16-suffix-context: New file.
30497
30498         New module 'unicase/u8-suffix-context'.
30499         * lib/unicase/u8-suffix-context.c: New file.
30500         * lib/unicase/u-suffix-context.h: New file.
30501         * modules/unicase/u8-suffix-context: New file.
30502
30503         New module 'unicase/empty-suffix-context'.
30504         * lib/unicase/empty-suffix-context.c: New file.
30505         * modules/unicase/empty-suffix-context: New file.
30506
30507         New module 'unicase/u32-prefix-context'.
30508         * lib/unicase/u32-prefix-context.c: New file.
30509         * modules/unicase/u32-prefix-context: New file.
30510
30511         New module 'unicase/u16-prefix-context'.
30512         * lib/unicase/u16-prefix-context.c: New file.
30513         * modules/unicase/u16-prefix-context: New file.
30514
30515         New module 'unicase/u8-prefix-context'.
30516         * lib/unicase/u8-prefix-context.c: New file.
30517         * lib/unicase/u-prefix-context.h: New file.
30518         * lib/unicase/context.h: New file.
30519         * modules/unicase/u8-prefix-context: New file.
30520
30521         New module 'unicase/empty-prefix-context'.
30522         * lib/unicase/empty-prefix-context.c: New file.
30523         * modules/unicase/empty-prefix-context: New file.
30524
30525         New module 'unicase/ignorable'.
30526         * lib/unicase/ignorable.c: New file.
30527         * modules/unicase/ignorable: New file.
30528
30529         New module 'unicase/cased'.
30530         * lib/unicase/caseprop.h: New file.
30531         * lib/unicase/cased.c: New file.
30532         * modules/unicase/cased: New file.
30533
30534         New functions for case mapping of substrings.
30535         * lib/unicase.h (casing_prefix_context_t): New type.
30536         (unicase_empty_prefix_context): New variable.
30537         (u8_casing_prefix_context, u16_casing_prefix_context,
30538         u32_casing_prefix_context, u8_casing_prefixes_context,
30539         u16_casing_prefixes_context, u32_casing_prefixes_context): New
30540         declarations.
30541         (casing_suffix_context_t): New type.
30542         (unicase_empty_suffix_context): New variable.
30543         (u8_casing_suffix_context, u16_casing_suffix_context,
30544         u32_casing_suffix_context, u8_casing_suffixes_context,
30545         u16_casing_suffixes_context, u32_casing_suffixes_context,
30546         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
30547         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
30548         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
30549         declarations.
30550
30551 2009-06-28  Jim Meyering  <meyering@redhat.com>
30552
30553         boostrap: indent only with spaces
30554         * build-aux/bootstrap: Indent only with spaces, never TABs.
30555
30556         bootstrap: split long lines
30557         * build-aux/bootstrap: Keep line length < 80.
30558
30559         bootstrap: sync from coreutils
30560         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
30561         just as autoreconf does.  Verify a list of prerequisite
30562         package-name,version-number pairs if defined in bootstrap.conf.
30563         Refer to README-prereq, if prerequisites are not satisfied.
30564
30565 2009-06-27  Eric Blake  <ebb9@byu.net>
30566
30567         tests: add test for bogus NULL definition
30568         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
30569         * tests/test-stdlib.c: Likewise.
30570         * tests/test-string.c: Likewise.
30571         * tests/test-locale.c: Likewise.
30572         * tests/test-unistd.c: Likewise.
30573         * modules/stdio-tests (Depends-on): Add verify.
30574         * modules/stdlib-tests (Depends-on): Likewise.
30575         * modules/string-tests (Depends-on): Likewise.
30576         * modules/locale-tests (Depends-on): Likewise.
30577         * modules/unistd-tests (Depends-on): Likewise.
30578
30579 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
30580
30581         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
30582         self-explaining comment.
30583         * m4/selinux-selinux-h: Update serial.
30584         (gl_LIBSELINUX): New macro, adding a warning for missing development
30585         packages to code extracted from...
30586         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
30587         Add warning for missing development packages here, too.
30588
30589 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
30590
30591         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
30592
30593 2009-06-25  Eric Blake  <ebb9@byu.net>
30594
30595         version-etc: fix regression
30596         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
30597         gcc.
30598         (version_etc): Use it, to catch bugs with trailing NULL.
30599         * lib/version-etc.c (version_etc_arn): Delete unused argument.
30600         (version_etc_va): Fix logic bug.
30601         * modules/version-etc-tests: Add test.
30602         * tests/test-version-etc.c: New file.
30603         * tests/test-version-etc.sh: Likewise.
30604
30605 2009-06-25  Sam Steingold  <sds@gnu.org>
30606
30607         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
30608         mbtowc declaration.
30609
30610 2009-06-25  Eric Blake  <ebb9@byu.net>
30611
30612         fpurge: migrate into <stdio.h>
30613         * lib/fpurge.h: Delete...
30614         * lib/stdio.in.h (fpurge): ...and declare here, instead.
30615         * lib/fpurge.c (fpurge): Change declaring header.
30616         * modules/fpurge (Files): Drop deleted file.
30617         (Depends-on): Add stdio.
30618         (configure.ac): Set witness.
30619         * modules/stdio (Makefile.am): Support fpurge macros.
30620         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
30621         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
30622         * lib/fflush.c: Update client.
30623         * tests/test-fpurge.c: Likewise.
30624         * NEWS: Mention the change.
30625
30626 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
30627
30628         * lib/argp-version-etc.c (program_authors): Add const
30629         qualifier.
30630         * lib/version-etc.c: Fix typos in the comments.
30631         * modules/argp-version-etc: Depends on version-etc.
30632
30633 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
30634
30635         argp-version-etc: new module.
30636
30637         * lib/argp-version-etc.c: New file.
30638         * lib/argp-version-etc.h: New file.
30639         * modules/argp-version-etc: New file.
30640         * modules/argp-version-etc-tests: New file.
30641         * tests/test-argp-version-etc.c: New test.
30642         * tests/test-argp-version-etc-1.sh: New test.
30643
30644 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
30645
30646         Provide additional interfaces and documentation for version-etc
30647         module.
30648
30649         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
30650         interfaces.
30651         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
30652         prototypes.
30653
30654 2009-06-24  Bruno Haible  <bruno@clisp.org>
30655
30656         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
30657         HAVE_LIB${NAME} macro.
30658         Reported by Sam Steingold <sds@gnu.org>.
30659
30660 2009-06-23  Simon Josefsson  <simon@josefsson.org>
30661
30662         * modules/hash-tests (test_hash_LDADD): Link to libintl when
30663         needed.
30664
30665 2009-06-21  Bruno Haible  <bruno@clisp.org>
30666
30667         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
30668         work.
30669         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
30670         together with LIB${NAME}, LTLIB${NAME}.
30671         Reported by Sam Steingold <sds@gnu.org>.
30672
30673 2009-06-20  Jim Meyering  <meyering@redhat.com>
30674
30675         tests: make sc_require_test_exit_idiom more generic
30676         * top/maint.mk (Exit_witness_file): New overridable variable.
30677         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
30678         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
30679
30680 2009-06-19  Jim Meyering  <meyering@redhat.com>
30681
30682         hash: reverse order of src/dst parameters in an internal interface
30683         * lib/hash.c (transfer_entries): Reverse order of parameters to
30684         put DST before SRC.  Adjust callers.
30685
30686         tests: test-hash: avoid wholesale duplication
30687         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
30688         Instead, use a loop and add a single conditional.
30689
30690         tests: test-hash: allow seed selection via a command line argument
30691         * tests/test-hash.c (get_seed): New function.
30692         (main): Use it.
30693
30694 2009-06-19  Eric Blake  <ebb9@byu.net>
30695
30696         hash: avoid memory leak on allocation failure
30697         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
30698         failure.  Factor repeated algorithm...
30699         (transfer_entries): ...into new helper routine.
30700         (hash_delete): React to hash_rehash return value.
30701
30702         hash: reduce memory pressure in hash_rehash no-op case
30703         * lib/hash.c (next_prime): Avoid overflow.
30704         (hash_initialize): Factor bucket size computation...
30705         (compute_bucket_size): ...into new helper function.
30706         (hash_rehash): Use new function and open coding to reduce memory
30707         pressure, and avoid a memory leak in USE_OBSTACK code.
30708         Reported by Jim Meyering.
30709
30710 2009-06-18  Eric Blake  <ebb9@byu.net>
30711
30712         hash: make rotation more obvious
30713         * modules/hash (Depends-on): Add bitrotate and stdint.
30714         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
30715         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
30716         (SIZE_MAX): Rely on headers for definition.
30717         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
30718         (raw_hasher): Use rotr_sz.
30719         Suggested by Jim Meyering.
30720
30721         hash: fix memory leak in last patch
30722         * lib/hash.c (hash_rehash): Avoid memory leak.
30723
30724         hash: avoid no-op rehashing
30725         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
30726
30727         hash: provide default callback functions
30728         * lib/hash.c (raw_hasher, raw_comparator): New functions.
30729         (hash_initialize): Use them as defaults.
30730         * tests/test-hash.c (main): Test this.
30731
30732         hash: minor optimization
30733         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
30734         when possible.
30735         (hash_initialize): Document this promise.
30736         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
30737         * tests/test-hash.c (hash_compare_strings): Test this.
30738
30739 2009-06-18  Bruno Haible  <bruno@clisp.org>
30740
30741         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
30742         going to be replaced anyway.
30743
30744 2009-06-18  Bruno Haible  <bruno@clisp.org>
30745
30746         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
30747         in one place.
30748         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
30749         be replaced anyway.
30750
30751 2009-06-18  Eric Blake  <ebb9@byu.net>
30752
30753         hash: check for resize before insertion
30754         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
30755         threshold before insertion, so that a pathological hash_rehash
30756         that fills every bucket can still trigger another rehash.
30757
30758 2009-06-18  Jim Meyering  <meyering@redhat.com>
30759
30760         hash-tests: add a loop around the small tests
30761         * tests/test-hash.c (main): Repeat small tests with selected
30762         small initial table sizes.
30763
30764 2009-06-17  Eric Blake  <ebb9@byu.net>
30765
30766         hash: minor cleanups
30767         * lib/hash.h (hash_entry): Make opaque, by moving...
30768         * lib/hash.c (hash_entry): ...here.
30769         (hash_insert): Clarify restrictions on what can be inserted.
30770         (hash_get_next): Clarify when it is safe to remove an element
30771         during traversal.
30772         (check_tuning): Skip verification when tuning is known safe.
30773         (hash_initialize): Clarify restrictions on tuning.
30774
30775 2009-06-17  Jim Meyering  <jim@meyering.net>
30776         and Eric Blake  <ebb9@byu.net>
30777
30778         hash-tests: new module
30779         * modules/hash-tests: New file.
30780         * tests/test-hash.c: New file.
30781
30782 2009-06-17  Eric Blake  <ebb9@byu.net>
30783
30784         strstr-simple: document new module
30785         * MODULES.html.sh: Document new module.
30786
30787         strstr, strcasestr: replace on platforms with broken memchr
30788         * modules/strstr: Split into...
30789         * modules/strstr-simple: ...new module that does not care about
30790         performance, but does care about glibc bug.
30791         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
30792         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
30793         if platform memchr is broken, per Debian bug 521737.
30794         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
30795         memchr.
30796         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
30797         * doc/posix-functions/strstr.texi (strstr): Document the fix.
30798         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
30799         * modules/mountlist (Depends-on): Add strstr-simple.
30800         * modules/gen-uni-tables (Depends-on): Likewise.
30801         * modules/argz (Depends-on): Add strstr.
30802
30803 2009-06-17  Bruno Haible  <bruno@clisp.org>
30804
30805         * modules/posix_spawn-internal (Depends-on): Add errno.
30806
30807 2009-06-17  Bruno Haible  <bruno@clisp.org>
30808
30809         Define missing ESTALE on Interix 3.5.
30810         * lib/errno.in.h (ESTALE): Assign a value if missing.
30811         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
30812         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
30813         missing.
30814         * doc/posix-headers/errno.texi: Mention the Interix bug.
30815         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
30816
30817 2009-06-15  Eric Blake  <ebb9@byu.net>
30818
30819         memchr, memchr2: add valgrind exception
30820         * lib/memchr.valgrind: New file.
30821         * lib/memchr2.valgrind: New file.
30822         * modules/memchr (Files): Distribute valgrind file.
30823         * modules/memchr2 (Files): Likewise.
30824
30825         docs: memchr is no longer obsolete
30826         * MODULES.html.sh: Move memchr from obsolete to string.h section.
30827         * lib/string.in.h (memchr): Simplify logic.
30828
30829 2009-06-14  Jim Meyering  <meyering@redhat.com>
30830
30831         link-follow: fix the "checking..." message to not mention trailing slash
30832         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
30833         never considered trailing slashes.
30834
30835 2009-06-14  Bruno Haible  <bruno@clisp.org>
30836
30837         * m4/memchr.m4: Mention also the bug on IA-64.
30838         * doc/posix-functions/memchr.texi: Likewise.
30839
30840 2009-06-12  Eric Blake  <ebb9@byu.net>
30841
30842         memchr: detect broken x86_64 and alpha implementations
30843         * modules/memchr-tests (Depends-on): Move mmap detection...
30844         * modules/memchr (Depends-on): ...here.
30845         (configure.ac): Set indicator.
30846         * lib/string.in.h (memchr): Declare replacement.
30847         * modules/string (Makefile.am): Trigger replacement.
30848         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
30849         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
30850         bugs.
30851         * doc/posix-functions/memchr.texi (memchr): Document the bug.
30852         * modules/getpagesize (License): Relax license.
30853
30854 2009-06-11  Bruno Haible  <bruno@clisp.org>
30855
30856         * lib/idpriv.h: Add more references.
30857
30858 2009-06-08  Bruno Haible  <bruno@clisp.org>
30859
30860         Tests for module 'idpriv-droptemp'.
30861         * modules/idpriv-droptemp-tests: New file.
30862         * tests/test-idpriv-droptemp.sh: New file.
30863         * tests/test-idpriv-droptemp.su.sh: New file.
30864         * tests/test-idpriv-droptemp.c: New file.
30865
30866         New module 'idpriv-droptemp'.
30867         * lib/idpriv-droptemp.c: New file.
30868         * modules/idpriv-droptemp: New file.
30869
30870 2009-06-08  Bruno Haible  <bruno@clisp.org>
30871
30872         Tests for module 'idpriv-drop'.
30873         * modules/idpriv-drop-tests: New file.
30874         * tests/test-idpriv-drop.sh: New file.
30875         * tests/test-idpriv-drop.su.sh: New file.
30876         * tests/test-idpriv-drop.c: New file.
30877
30878         New module 'idpriv-drop'.
30879         * lib/idpriv.h: New file.
30880         * lib-idpriv-drop.c: New file.
30881         * m4/idpriv.m4: New file.
30882         * modules/idpriv-drop: New file.
30883
30884 2009-06-08  Bruno Haible  <bruno@clisp.org>
30885
30886         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
30887         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
30888         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
30889         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
30890         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
30891         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
30892         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
30893
30894 2009-06-08  Eric Blake  <ebb9@byu.net>
30895
30896         test-strstr: use memory fence, when possible
30897         * tests/test-strstr.c (main): Use memory fence, in order to be
30898         more likely to trigger Debian bug 521737.
30899         * modules/strstr-tests (Files): Pull in additional files.
30900
30901         memchr: no longer obsolete, for wider field testing
30902         * modules/memchr (Status, Notice): Delete, this module is no
30903         longer obsolete.
30904         * modules/vasnprintf (Depends-on): Add memchr.
30905
30906 2009-06-07  Jim Meyering  <meyering@redhat.com>
30907
30908         hash: declare some functions with the warn_unused_result attribute
30909         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
30910
30911 2009-06-07  Bruno Haible  <bruno@clisp.org>
30912
30913         * tests/test-alignof.c: Don't test int64_t if it does not exist.
30914         Reported by Eric Blake.
30915
30916 2009-06-06  Eric Blake  <ebb9@byu.net>
30917
30918         test-alignof: fix typo with long double
30919         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
30920         compiler error.
30921
30922 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
30923
30924         Escape non-texinfo { and }s.
30925         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
30926         markup error.
30927
30928 2009-06-04  Jim Meyering  <meyering@redhat.com>
30929
30930         gitlog-to-changelog: don't infloop on an empty commit log
30931         * build-aux/gitlog-to-changelog: Warn about an empty log message.
30932         Reported by Boris Petersen <transacid@centerim.org>.
30933
30934 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
30935
30936         version-etc: extend for packagers
30937         Add three new configure options, intended for packagers:
30938           --with-packager="packager name"
30939           --with-packager-version="packager-specific version"
30940           --with-packager-bug-reports="packager bug reporting"
30941         An example with coreutils:
30942           $ ./configure \
30943             --with-packager=Gentoo \
30944             --with-packager-bug-report=http://bugs.gentoo.org/ \
30945             --with-packager-version="patchset 1.6"
30946           $ ./src/ls --version | head -n2
30947           ls (GNU coreutils) 7.1-dirty
30948           Packaged by Gentoo (patchset 1.6)
30949         Note that the bug reporting info via --help doesn't show up because
30950         coreutils uses its own custom emit_bug_reporting_address() implementation
30951         in src/system.h.  If it didn't, it'd look like:
30952           $ ./src/ls --help | tail -n4
30953           Report bugs to <bug-coreutils@gnu.org>.
30954           Report Gentoo bugs to <http://bugs.gentoo.org/>.
30955           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
30956           General help using GNU software: <http://www.gnu.org/gethelp/>.
30957         * lib/version-etc.c: Print new information, if provided.
30958         * m4/version-etc.m4: New file.
30959         * modules/version-etc (Files): Add m4/version-etc.m4.
30960         (configure.ac): Add gl_VERSION_ETC.
30961
30962 2009-05-31  Bruno Haible  <bruno@clisp.org>
30963
30964         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
30965         and 'int64_t'.
30966         * modules/alignof-tests (Dependencies): Add stdint.
30967         Reported by Eric Blake.
30968
30969 2009-05-31  Bruno Haible  <bruno@clisp.org>
30970
30971         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
30972         restriction due to compiler bugs.
30973         Reported by Eric Blake.
30974
30975 2009-05-31  Simon Josefsson  <simon@josefsson.org>
30976             Bruno Haible  <bruno@clisp.org>
30977
30978         Fix test-alignof failure.
30979         * lib/alignof.h (alignof_slot): New macro.
30980         (alignof_type): New macro, with the same semantics as the previous
30981         'alignof'.
30982         (alignof): Alias to alignof_slot.
30983         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
30984         check that the results are usable as constant expressions.
30985
30986 2009-05-31  Bruno Haible  <bruno@clisp.org>
30987
30988         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
30989         * tests/test-memchr.c (main): Check that memchr does not read past the
30990         first occurrence of the byte.
30991         * tests/test-strstr.c (main): Update comment.
30992         Suggested by Eric Blake.
30993
30994 2009-05-30  Bruno Haible  <bruno@clisp.org>
30995
30996         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
30997         detail how to use dumpbin.
30998         Reported by David Byron <dbyron@dbyron.com>.
30999
31000 2009-06-02  Simon Josefsson  <simon@josefsson.org>
31001
31002         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
31003
31004 2009-06-02  Simon Josefsson  <simon@josefsson.org>
31005
31006         * m4/manywarnings.m4: Add GCC 4.4 warnings.
31007
31008 2009-05-28  Bruno Haible  <bruno@clisp.org>
31009
31010         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
31011         build-aux/ files.
31012
31013 2009-05-28  Simon Josefsson  <simon@josefsson.org>
31014
31015         * gnulib-tool (func_import): Transform license on build-aux/ files too.
31016
31017 2009-05-27  Simon Josefsson  <simon@josefsson.org>
31018
31019         * gnulib-tool (sed_transform_main_lib_file)
31020         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
31021         regexps.
31022
31023 2009-05-26  Simon Josefsson  <simon@josefsson.org>
31024
31025         * tests/test-strstr.c: Add another self-test.
31026         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
31027         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
31028
31029 2009-05-23  Bruno Haible  <bruno@clisp.org>
31030
31031         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
31032         change.
31033
31034 2009-05-21  Bruno Haible  <bruno@clisp.org>
31035
31036         Simplify use of mode_t varargs.
31037         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
31038         uses 'mode_t' or 'int'.
31039         * lib/openat.c (openat): Likewise.
31040         * lib/open-safer.c (open_safer): Likewise.
31041         * m4/mode_t.m4: New file.
31042         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
31043         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
31044         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
31045         * modules/open (Files): Add m4/mode_t.m4.
31046         * modules/openat (Files): Likewise.
31047         * modules/fcntl-safer (Files): Likewise.
31048         Suggested by Eric Blake.
31049
31050 2009-05-21  Pádraig Brady  <P@draigbrady.com>
31051
31052         * doc/glibc-functions/fallocate.texi: New file.
31053         * doc/gnulib.texi: Include it.
31054
31055 2009-05-21  Eric Blake  <ebb9@byu.net>
31056             Bruno Haible  <bruno@clisp.org>
31057
31058         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
31059         invocations.
31060         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
31061
31062 2009-05-21  Eric Blake  <ebb9@byu.net>
31063             Bruno Haible  <bruno@clisp.org>
31064
31065         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
31066         include_next. Fix of 2008-11-20 commit.
31067         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
31068         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
31069         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
31070         NEXT_MATH_H.
31071         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
31072         instead of NEXT_MATH_H.
31073
31074 2009-05-21  Bruno Haible  <bruno@clisp.org>
31075
31076         Avoid redefinition warnings for SIZE_MAX.
31077         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
31078         Reported by Simon Josefsson.
31079
31080 2009-05-21  Bruno Haible  <bruno@clisp.org>
31081
31082         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
31083         AC_CACHE_VAL.
31084
31085 2009-05-20  Bruno Haible  <bruno@clisp.org>
31086
31087         Make zeroptr.h work on mingw.
31088         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
31089         mprotect.
31090         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
31091         * modules/memchr2-tests (configure.ac): Likewise.
31092         * modules/memcmp-tests (configure.ac): Likewise.
31093         * modules/memmem-tests (configure.ac): Likewise.
31094         * modules/memrchr-tests (configure.ac): Likewise.
31095         Reported by Simon Josefsson.
31096
31097 2009-05-20  Simon Josefsson  <simon@josefsson.org>
31098
31099         * tests/test-glob.c: Include string.h for strcmp prototype.
31100
31101 2009-05-20  Simon Josefsson  <simon@josefsson.org>
31102
31103         * modules/getdelim (Depends-on): Add explicit stdint, although it
31104         was implicitly already pulled in via realloc-posix.
31105         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
31106
31107 2009-05-20  Simon Josefsson  <simon@josefsson.org>
31108
31109         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
31110         G. Christensen" <tgc@jupiterrise.com>.
31111         * m4/sys_socket_h.m4: Check for sa_family_t.
31112         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
31113         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
31114         * tests/test-sys_socket.c: Check that sa_family_t works.
31115
31116 2009-05-18  Eric Blake  <ebb9@byu.net>
31117
31118         maint.mk: allow gnulib_dir in VPATH build
31119         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
31120
31121 2009-05-15  Jim Meyering  <meyering@redhat.com>
31122
31123         maint.mk: Give gnulib_dir a default definition.
31124         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
31125         Thus, most packages no longer need to specify this variable in cfg.mk
31126
31127 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
31128
31129         rename.m4: fix typos that would make non-mingw cross-configure fail
31130         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
31131
31132 2009-05-13  Eric Blake  <ebb9@byu.net>
31133
31134         mmap-anon: avoid out-of-order autoconf expansion
31135         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
31136         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
31137         * modules/memchr-tests (Depends-on): Add extensions.
31138         * modules/memchr2-tests (Depends-on): Add extensions.
31139         * modules/memcmp-tests (Depends-on): Add extensions.
31140         * modules/memmem-tests (Depends-on): Add extensions.
31141         * modules/memrchr-tests (Depends-on): Add extensions.
31142
31143 2009-05-13  Bruno Haible  <bruno@clisp.org>
31144
31145         Make some tests ISO C 99 compliant.
31146         * tests/zerosize-ptr.h: New file.
31147         * tests/test-memchr.c: Include zerosize-ptr.h.
31148         (main): Use a zero-size object pointer instead of NULL.
31149         * tests/test-memchr2.c: Include zerosize-ptr.h.
31150         (main): Use a zero-size object pointer instead of NULL.
31151         * tests/test-memcmp.c: Include zerosize-ptr.h.
31152         (main): Use a zero-size object pointer instead of NULL.
31153         * tests/test-memmem.c: Include zerosize-ptr.h.
31154         (main): Use a zero-size object pointer instead of NULL.
31155         * tests/test-memrchr.c: Include zerosize-ptr.h.
31156         (main): Use a zero-size object pointer instead of NULL.
31157         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
31158         m4/mmap-anon.m4.
31159         (Depends-on): Add getpagesize.
31160         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31161         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
31162         m4/mmap-anon.m4.
31163         (Depends-on): Add getpagesize.
31164         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31165         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
31166         m4/mmap-anon.m4.
31167         (Depends-on): Add getpagesize.
31168         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31169         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
31170         m4/mmap-anon.m4.
31171         (Depends-on): Add getpagesize.
31172         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31173         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
31174         m4/mmap-anon.m4.
31175         (Depends-on): Add getpagesize.
31176         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31177
31178 2009-05-12  Bruno Haible  <bruno@clisp.org>
31179
31180         Tests for module 'alignof'.
31181         * modules/alignof-tests: New file.
31182         * tests/test-alignof.c: New file.
31183
31184 2009-05-12  Bruno Haible  <bruno@clisp.org>
31185
31186         Fix alignof macro.
31187         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
31188         vendor compilers that are always correct.
31189
31190 2009-05-12  Bruno Haible  <bruno@clisp.org>
31191
31192         Make the MAP_ANONYMOUS detection work on HP-UX 11.
31193         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
31194         not whether its fully works.
31195
31196 2009-05-12  Bruno Haible  <bruno@clisp.org>
31197
31198         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
31199
31200 2009-05-12  Jim Meyering  <meyering@redhat.com>
31201
31202         * top/maint.mk: Adjust backslash alignment.
31203
31204 2009-05-11  Simon Josefsson  <simon@josefsson.org>
31205
31206         * top/maint.mk: Make $(srcdir)/build-aux configurable.
31207
31208 2009-05-11  Eric Blake  <ebb9@byu.net>
31209
31210         argp: avoid undefined behavior
31211         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
31212         macros.
31213
31214 2009-05-08  Simon Josefsson  <simon@josefsson.org>
31215
31216         * tests/test-vc-list-files-git.sh: Do git config of user.email and
31217         user.name to prevent git commit from complaining.
31218
31219 2009-05-10  Bruno Haible  <bruno@clisp.org>
31220
31221         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
31222         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
31223         it rewrites every file name only once.
31224         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
31225
31226 2009-05-08  Bruno Haible  <bruno@clisp.org>
31227
31228         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
31229         instead of 'max'.
31230
31231 2009-05-08  Simon Josefsson  <simon@josefsson.org>
31232
31233         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
31234         sockaddr_storage test.
31235
31236 2009-05-07  Simon Josefsson  <simon@josefsson.org>
31237
31238         * modules/sys_socket (Makefile.am): Substitute
31239         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
31240         * m4/sys_socket_h.m4: Check for sockaddr_storage.
31241         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
31242         * tests/test-sys_socket.c: Check sockaddr_storage.
31243
31244 2009-05-08  Bruno Haible  <bruno@clisp.org>
31245
31246         New module 'alignof'.
31247         * lib/alignof.h: New file.
31248         * modules/alignof: New file.
31249
31250 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31251             Bruno Haible  <bruno@clisp.org>
31252
31253         Fix test-file-has-acl on FreeBSD.
31254         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
31255         mask is implicitly added.
31256         * tests/test-file-has-acl.c: Include <signal.h>.
31257         (main): Terminate the test after 5 seconds.
31258         * modules/acl-tests (configure.ac): Check for alarm function.
31259
31260 2009-05-04  Bruno Haible  <bruno@clisp.org>
31261
31262         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
31263         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
31264         * modules/errno (configure.ac): Drop AC_REQUIRE.
31265         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
31266         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
31267
31268 2009-05-04  Simon Josefsson  <simon@josefsson.org>
31269
31270         * modules/glob-tests: New module.
31271         * tests/test-glob.c: Add.
31272
31273 2009-05-04  Simon Josefsson  <simon@josefsson.org>
31274
31275         * modules/fnmatch-tests: New module.
31276         * tests/test-fnmatch.c: Add.
31277
31278 2009-05-04  Eric Blake  <ebb9@byu.net>
31279
31280         maint: make the new no-submodule-changes rule VPATH-safe
31281         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
31282
31283 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31284             Bruno Haible  <bruno@clisp.org>
31285
31286         acl: Fix infinite loop on FreeBSD.
31287         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
31288         of return value from acl_get_entry.
31289         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
31290         Likewise.
31291
31292 2009-05-03  Bruno Haible  <bruno@clisp.org>
31293
31294         * lib/acl-internal.h (acl_entries): Clarify return value.
31295         * lib/acl_entries.c (acl_entries): Likewise.
31296
31297 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31298
31299         Bug fix in acl module.
31300         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
31301
31302 2009-05-03  Bruno Haible  <bruno@clisp.org>
31303
31304         Create gperf-generated file in the source dir, not in the build dir.
31305         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
31306         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
31307         * modules/unicase/locale-language (unicase/locale-languages.h):
31308         Likewise.
31309         * modules/unicase/special-casing (unicase/special-casing-table.h):
31310         Likewise.
31311         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
31312         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
31313         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
31314         Reported by Ralf Wildenhues.
31315
31316 2009-05-03  Bruno Haible  <bruno@clisp.org>
31317
31318         * modules/fnmatch (Description, configure.ac): Taken from
31319         fnmatch-posix.
31320         * modules/fnmatch-posix: Turn into a symbolic reference to the
31321         'fnmatch' module, and deprecate.
31322         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
31323
31324 2009-05-03  Bruno Haible  <bruno@clisp.org>
31325
31326         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
31327         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
31328         Reported by Ralf Wildenhues.
31329
31330 2009-05-04  Simon Josefsson  <simon@josefsson.org>
31331
31332         * m4/fnmatch.m4: Fix fnmatch re-define.
31333
31334 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31335
31336         priv-set: new module and tests; adapt write-any-file
31337         * lib/priv-set.c: New file.
31338         * lib/priv-set.h: New file.
31339         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
31340         * lib/write-any-file.c: Simplify by using priv-set module.
31341         * m4/priv-set.m4: New file.
31342         * modules/priv-set: New file.
31343         * modules/unlinkdir: Add dependency on priv-set module.
31344         * modules/write-any-file: Likewise.
31345
31346         Tests for module 'priv-set'.
31347         * modules/priv-set-tests: New file.
31348         * tests/test-priv-set.c: New file.
31349
31350 2009-05-03  Jim Meyering  <meyering@redhat.com>
31351             Bruno Haible  <bruno@clisp.org>
31352
31353         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
31354         use the converted UTF-8 variant of the name instead.
31355
31356 2009-05-03  Jim Meyering  <meyering@redhat.com>
31357
31358         tests: tighten some getdate tests
31359         * tests/test-getdate.c (main): Tighten tests: require equality,
31360         not just greater than.  Set TZ envvar to UTC0.
31361
31362 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
31363
31364         getdate: correctly interpret "next monday" when run on a Monday
31365         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
31366         that e.g., "next tues" (when run on a tuesday) results in a date
31367         that is one week in the future, and not today's date.
31368         I.e., add a week when the wday is the same as the current one.
31369         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
31370         and earlier by Martin Bernreuther and Jan Minář.
31371         * tests/test-getdate.c (main): Check that "next DAY" is always in
31372         the future and that "last DAY" is always in the past.
31373
31374 2009-05-02  Jim Meyering  <meyering@redhat.com>
31375
31376         build: ensure that a release build fails when a submodule is unclean
31377         * top/maint.mk (no-submodule-changes): New rule.
31378         (alpha beta major): Depend on it.
31379
31380 2009-05-02  Bruno Haible  <bruno@clisp.org>
31381
31382         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
31383         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
31384         shell variable gl_fnmatch_required to detect which variant is
31385         requested.
31386         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
31387         gl_FUNC_FNMATCH_POSIX.
31388         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
31389         exclude fnmatch-posix.
31390
31391 2009-05-02  Bruno Haible  <bruno@clisp.org>
31392
31393         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
31394         * modules/mbsrtowcs (License): Change to LGPLv2+.
31395         * modules/strnlen1 (License): Likewise.
31396         Reported by Simon Josefsson.
31397
31398 2009-05-02  Bruno Haible  <bruno@clisp.org>
31399
31400         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
31401         "cross".
31402         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
31403         gnulib-tool was called with option --source-base=lib.
31404
31405 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31406
31407         Use automake *-local hooks without commands, for extensibility.
31408         * modules/localcharset (Makefile.am): Rename install-exec-local
31409         rule to install-exec-localcharset, and make it a prerequisite of
31410         install-exec-local.  Likewise, rename the uninstall-local rule to
31411         uninstall-localcharset, and make it a prerequisite of the former.
31412
31413 2009-05-01  Bruno Haible  <bruno@clisp.org>
31414
31415         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
31416         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
31417         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
31418         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
31419         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
31420         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
31421         m4/locale-zh.m4, m4/codeset.m4.
31422
31423         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
31424         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
31425         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
31426         m4/locale-zh.m4.
31427
31428         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
31429         REPLACE_WCRTOMB if mbstate_t must be replaced.
31430         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
31431         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
31432
31433 2009-05-01  Bruno Haible  <bruno@clisp.org>
31434
31435         Avoid compiler warnings when redefining macros defined by <libintl.h>.
31436         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
31437         dngettext, dcngettext, textdomain, bindtextdomain,
31438         bind_textdomain_codeset): Undefine before redefining.
31439
31440 2009-04-30  Bruno Haible  <bruno@clisp.org>
31441
31442         Fix bug introduced on 2009-04-25.
31443         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
31444         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
31445         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
31446         is defined.
31447         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
31448         is defined.
31449         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
31450         is defined.
31451         Reported by Elbert_Pol <elbert.pol@gmail.com>.
31452
31453 2009-04-28  Bruno Haible  <bruno@clisp.org>
31454
31455         Comment tweaks.
31456         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
31457         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
31458         * lib/unicase.h (u*_casexfrm): Likewise.
31459         Reported by Paolo Bonzini.
31460
31461 2009-04-28  Bruno Haible  <bruno@clisp.org>
31462
31463         Fix a compilation error.
31464         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
31465         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
31466         Reported by Jim Meyering.
31467
31468 2009-04-27  Bruno Haible  <bruno@clisp.org>
31469
31470         New module 'libunistring'.
31471         * modules/libunistring: New file.
31472         * m4/libunistring.m4: New file.
31473         * MODULES.html.sh (Unicode string functions): Add it.
31474
31475 2009-04-27  Eric Blake  <ebb9@byu.net>
31476
31477         maint.mk: allow package-specific header to provide <config.h>
31478         * top/maint.mk (sc_require_config_h): New variable.
31479         (sc_require_config_h, sc_require_config_h_first): Use it.
31480
31481 2009-04-27  Simon Josefsson  <simon@josefsson.org>
31482
31483         * top/maint.mk (sc_avoid_if_before_free): Except
31484         useless-if-before-free script.
31485
31486 2009-04-27  Eric Blake  <ebb9@byu.net>
31487
31488         maintainer-makefile: depend on all required helper scripts
31489         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
31490         useless-if-before-free.
31491         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
31492         version, rather than assuming gnulib checkout is available.
31493         Reported by Simen Josefsson.
31494
31495 2009-04-26  Bruno Haible  <bruno@clisp.org>
31496
31497         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
31498         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
31499         "../" or "..".
31500
31501 2009-04-26  Bruno Haible  <bruno@clisp.org>
31502
31503         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
31504         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
31505         AC_LIB_HAVE_LINKFLAGS.
31506
31507 2009-04-26  Bruno Haible  <bruno@clisp.org>
31508
31509         Simplify calling convention of u*_conv_from_encoding.
31510         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
31511         u32_conv_from_encoding): Expect a resultbuf argument and return the
31512         result directly as a pointer.
31513         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
31514         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
31515         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
31516         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
31517         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
31518         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
31519         Update.
31520         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
31521         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
31522         * lib/vasnprintf.c (VASNPRINTF): Update.
31523         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
31524         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
31525         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
31526         * NEWS: Mention the change.
31527
31528 2009-04-26  Bruno Haible  <bruno@clisp.org>
31529
31530         Simplify calling convention of u*_conv_to_encoding.
31531         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
31532         u32_conv_to_encoding): Expect a resultbuf argument and return the
31533         result directly as a pointer.
31534         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
31535         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
31536         freeing scaled_offsets if mem_iconveha failed.
31537         * lib/unicase/u-casexfrm.h (FUNC): Update.
31538         * lib/uninorm/u-normxfrm.h (FUNC): Update.
31539         * lib/vasnprintf.c (VASNPRINTF): Update.
31540         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
31541         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
31542         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
31543         * NEWS: Mention the change.
31544
31545 2009-04-26  Bruno Haible  <bruno@clisp.org>
31546
31547         Avoid test failures on AIX and OSF/1.
31548         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
31549         malloc(0).
31550         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
31551         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
31552         Likewise.
31553         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
31554         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
31555         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
31556         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
31557         * doc/posix-functions/malloc.texi: Document the portability problem
31558         related to malloc(0).
31559
31560 2009-04-26  Bruno Haible  <bruno@clisp.org>
31561
31562         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
31563         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
31564         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
31565
31566 2009-04-25  Bruno Haible  <bruno@clisp.org>
31567
31568         Avoid link error when creating a namespace clean library.
31569         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
31570         as macro with arguments if already defined as an alias.
31571         * lib/signbitf.c (gl_signbitf): Don't undefine.
31572         * lib/signbitd.c (gl_signbitd): Don't undefine.
31573         * lib/signbitl.c (gl_signbitl): Don't undefine.
31574
31575 2009-04-25  Jim Meyering  <meyering@redhat.com>
31576
31577         vc-list-files: fix another quoting bug
31578         * build-aux/vc-list-files: Avoid sed backslash expansion
31579         of pathological directory names.
31580
31581 2009-04-25  Eric Blake  <ebb9@byu.net>
31582
31583         vc-list-files: fix shell quoting error
31584         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
31585         timestamp.
31586
31587 2009-04-25  Jim Meyering  <meyering@redhat.com>
31588
31589         vc-list-files: restore lost functionality with subdir argument
31590         * build-aux/vc-list-files: When given a non-"." sub-directory
31591         argument, substitute the $dir/ prefix back onto each resulting name.
31592         Otherwise, coreutils' root_tests check would fail.
31593
31594 2009-04-24  Eric Blake  <ebb9@byu.net>
31595
31596         vc-list-files: ignore git symlinks
31597         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
31598         than ls-files, to ignore git symlinks.
31599
31600         maint.mk: import improvements from m4
31601         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
31602         (move_if_change): Delete unused macro.
31603         (news-date-check, vc-diff-check): Support VPATH builds.
31604         (announcement): Likewise.  Split --bootstrap-tools list...
31605         (boostrap-tools): ...into separate list, which can be overridden
31606         in cfg.mk.
31607         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
31608         requiring dependency on useless-if-before-free module.
31609         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
31610         Support VPATH builds.
31611
31612 2009-04-24  Jim Meyering  <meyering@redhat.com>
31613
31614         maint.mk: remove coreutils-specific rules and variables
31615         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
31616         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
31617         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
31618
31619         maint.mk: remove obsolete rule
31620         * top/maint.mk (rel-check): Remove rule.
31621         (WGET, WGETFLAGS): Remove now-unused variables.
31622
31623 2009-04-24  Simon Josefsson  <simon@josefsson.org>
31624
31625         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
31626         consistency.
31627
31628         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
31629         '$(PATH_SEPARATOR)' instead of ':'.
31630
31631 2009-04-24  Simon Josefsson  <simon@josefsson.org>
31632
31633         * lib/getopt1.c (main): Use 'const' for static array.
31634
31635 2009-04-24  Simon Josefsson  <simon@josefsson.org>
31636
31637         * top/maint.mk: Sync with coreutils.
31638         * NEWS: Explain incompatibilities.
31639
31640 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31641             Bruno Haible  <bruno@clisp.org>
31642
31643         Fix cross-compilation results.
31644         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
31645         statement, as third argument of AC_TRY_RUN.
31646         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
31647         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
31648         Likewise.
31649         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
31650         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
31651         Likewise.
31652         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
31653         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
31654         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
31655
31656 2009-04-20  Bruno Haible  <bruno@clisp.org>
31657
31658         Avoid test failure on mingw.
31659         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
31660
31661 2009-04-20  Bruno Haible  <bruno@clisp.org>
31662
31663         Avoid compilation error on mingw.
31664         * modules/localename-tests (Depends-on): Add locale.
31665
31666 2009-04-19  Bruno Haible  <bruno@clisp.org>
31667
31668         Support for building a shared library on Windows platforms.
31669         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
31670         (main): Test the presence of UNINORM_NFC here.
31671         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
31672         (main): Test the presence of UNINORM_NFD here.
31673         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
31674         (main): Test the presence of UNINORM_NFKC here.
31675         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
31676         (main): Test the presence of UNINORM_NFKD here.
31677
31678 2009-04-19  Bruno Haible  <bruno@clisp.org>
31679
31680         Avoid a compiler warning.
31681         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
31682         Change type of variable 'sequence'.
31683
31684 2009-04-19  Bruno Haible  <bruno@clisp.org>
31685
31686         * modules/configmake (Makefile.am): When the contents of configmake.h
31687         does not change, arrange to preserve its modification time.
31688
31689 2009-04-17  Simon Josefsson  <simon@josefsson.org>
31690
31691         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
31692         gettext domain.
31693
31694 2009-04-16  Jim Meyering  <meyering@redhat.com>
31695
31696         useless-if-before-free: improve conversion code
31697         * build-aux/useless-if-before-free: Adjust code-in-comment to match
31698         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
31699
31700 2009-04-14  Bruno Haible  <bruno@clisp.org>
31701
31702         * modules/fcntl (Depends-on): Add extensions.
31703         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
31704
31705 2009-04-12  Ben Pfaff  <blp@gnu.org>
31706
31707         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
31708         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
31709
31710 2009-03-20  Ben Pfaff  <blp@gnu.org>
31711
31712         Make rename replace existing destinations on Windows.
31713         * m4/rename.m4: Add test for Mingw.
31714         * lib/rename.c: Add rename replacement that uses MoveFileEx with
31715         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
31716         * doc/posix-functions/rename.texi: Document.
31717
31718 2009-04-10  Bruno Haible  <bruno@clisp.org>
31719
31720         New include file "iconveh.h".
31721         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
31722         * lib/striconveh.h: Include it.
31723         (enum iconv_ilseq_handler): Remove definition.
31724         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
31725         striconveh.h.
31726         * lib/striconveha.c: Include striconveh.h.
31727         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
31728         * modules/striconveh (Files): Add lib/iconveh.h.
31729         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
31730         lib/striconveh.h.
31731
31732 2009-04-10  Bruno Haible  <bruno@clisp.org>
31733
31734         * lib/uniconv.h: Update comment.
31735
31736 2009-04-10  Bruno Haible  <bruno@clisp.org>
31737
31738         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
31739         always.
31740         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
31741         * lib/unistr/u16-mbtouc-aux.c: Likewise.
31742         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
31743         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
31744         "unistring-notinline.h", so that the function gets defined always.
31745         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
31746         * lib/unistr/u8-uctomb.c: Likewise.
31747         * lib/unistr/u16-mbtouc.c: Likewise.
31748         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
31749         * lib/unistr/u16-uctomb.c: Likewise.
31750         * lib/unistr/u32-mbtouc.c: Likewise.
31751         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
31752         * lib/unistr/u32-uctomb.c: Likewise.
31753
31754 2009-04-10  Bruno Haible  <bruno@clisp.org>
31755
31756         Mark 'utime' obsolete.
31757         * modules/utime (Status, Notice): New sections.
31758         Suggested by Jim Meyering.
31759
31760         Fix cross-compile guess for utime test.
31761         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
31762         autoconf.
31763         * doc/posix-functions/utime.texi: Give more precisions.
31764         Reported by Jan <ipif@ymail.com>.
31765
31766 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
31767
31768         filevercmp: correct today's change
31769         * lib/filevercmp.c: Also handle coreutils' test inputs.
31770         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
31771
31772         Fix regression in 'filevercmp' module. Thanks Sven Joachim
31773         for reporting it.
31774         * lib/filevercmp.c: Special handle for "", "." and "..".
31775         * tests/test-filevercmp.c: Enlarge the set suite.
31776
31777 2009-04-07  Jim Meyering  <meyering@redhat.com>
31778
31779         useless-if-before-free: show how to remove braced useless free, too
31780         * build-aux/useless-if-before-free: still only in a comment, though.
31781
31782 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
31783
31784         maint.mk: import changes to syntax-check macros from coreutils
31785         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
31786         Use them in the relevant macros.
31787
31788 2009-04-06  Bruno Haible  <bruno@clisp.org>
31789
31790         Fix unportable use of bit-fields.
31791         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
31792         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
31793         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
31794
31795 2009-04-06  Bruno Haible  <bruno@clisp.org>
31796
31797         Avoid test failures on AIX and OSF/1.
31798         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
31799         that malloc(0) = NULL.
31800         * tests/unicase/test-u8-tolower.c (check): Likewise.
31801         * tests/unicase/test-u8-totitle.c (check): Likewise.
31802         * tests/unicase/test-u8-toupper.c (check): Likewise.
31803         * tests/unicase/test-u16-casefold.c (check): Likewise.
31804         * tests/unicase/test-u16-tolower.c (check): Likewise.
31805         * tests/unicase/test-u16-totitle.c (check): Likewise.
31806         * tests/unicase/test-u16-toupper.c (check): Likewise.
31807         * tests/unicase/test-u32-casefold.c (check): Likewise.
31808         * tests/unicase/test-u32-tolower.c (check): Likewise.
31809         * tests/unicase/test-u32-totitle.c (check): Likewise.
31810         * tests/unicase/test-u32-toupper.c (check): Likewise.
31811         * tests/uninorm/test-u8-nfc.c (check): Likewise.
31812         * tests/uninorm/test-u8-nfd.c (check): Likewise.
31813         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
31814         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
31815         * tests/uninorm/test-u16-nfc.c (check): Likewise.
31816         * tests/uninorm/test-u16-nfd.c (check): Likewise.
31817         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
31818         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
31819         * tests/uninorm/test-u32-nfc.c (check): Likewise.
31820         * tests/uninorm/test-u32-nfd.c (check): Likewise.
31821         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
31822         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
31823
31824 2009-04-05  Bruno Haible  <bruno@clisp.org>
31825
31826         Work around an autoconf limitation.
31827         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
31828         comment line if it would be longer than 3 KB.
31829
31830 2009-04-05  Bruno Haible  <bruno@clisp.org>
31831
31832         Avoid test failure with libiconv-1.13.
31833         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
31834         of the expected test results.
31835
31836 2009-04-05  Bruno Haible  <bruno@clisp.org>
31837
31838         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
31839         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
31840         that it should be installed.
31841
31842 2009-04-05  Bruno Haible  <bruno@clisp.org>
31843
31844         * gnulib-tool: New option --copy-file.
31845         (func_usage): Document it.
31846         (func_dest_tmpfilename): Moved out of func_import.
31847         (func_add_file, func_update_file): New functions, extracted from
31848         func_import.
31849         (func_import): Update.
31850
31851 2009-04-05  Karl Berry  <karl@gnu.org>
31852
31853         * README: prominently mention gnulib-tool.
31854         Rearrange sections so getting the code is near the top.
31855
31856 2009-04-05  Bruno Haible  <bruno@clisp.org>
31857
31858         * lib/unicase.h: Mention u*_cmp2.
31859         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
31860         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
31861         * lib/unicase/ulc-casecmp.c: Likewise.
31862         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
31863         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
31864         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
31865         unistr/u8-cmp.
31866         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
31867         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
31868         unistr/u16-cmp.
31869         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
31870         unistr/u32-cmp.
31871
31872         * lib/uninorm.h: Mention u*_cmp2.
31873         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
31874         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
31875         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
31876         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
31877         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
31878         unistr/u8-cmp.
31879         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
31880         unistr/u16-cmp.
31881         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
31882         unistr/u32-cmp.
31883
31884         New module 'unistr/u32-cmp2'.
31885         * lib/unistr/u32-cmp2.c: New file.
31886         * modules/unistr/u32-cmp2: New file.
31887
31888         New module 'unistr/u16-cmp2'.
31889         * lib/unistr/u16-cmp2.c: New file.
31890         * modules/unistr/u16-cmp2: New file.
31891
31892         New module 'unistr/u8-cmp2'.
31893         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
31894         * lib/unistr/u8-cmp2.c: New file.
31895         * lib/unistr/u-cmp2.h: New file.
31896         * modules/unistr/u8-cmp2: New file.
31897
31898 2009-04-05  Bruno Haible  <bruno@clisp.org>
31899
31900         * lib/unictype.h (uc_property_is_valid): New macro.
31901         * tests/unictype/test-pr_byname.c (main): Use it.
31902
31903         * lib/unistr.h: Doc fixes.
31904         * lib/uniconv.h: Doc fixes.
31905         * lib/unictype.h: Doc fixes.
31906
31907 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
31908
31909         Port coreutils 7.2 to Solaris 8.
31910
31911         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
31912         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
31913         for Solaris 8.  This is a bit of a hack, as it means it's the
31914         caller's responsibility to add -lnsl if needed, but most likely it
31915         won't be needed since only getaddrinfo uses this and getaddrinfo
31916         isn't needed on Solaris 8.
31917
31918         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
31919         problem to Solaris 8 encountered with coreutils 7.2, which
31920         resulted in a message "fnmatch.c:292: warning: passing argument 4
31921         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
31922         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
31923
31924 2009-04-03  Simon Josefsson  <simon@josefsson.org>
31925
31926         * m4/ld-version-script.m4: Add FIXME comment.
31927
31928 2009-04-02  Simon Josefsson  <simon@josefsson.org>
31929
31930         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
31931         SOVERSION variable.
31932
31933 2009-04-02  Bruno Haible  <bruno@clisp.org>
31934
31935         * Makefile (info, html, dvi, pdf): Combine the rules.
31936         Suggested by Jim Meyering.
31937
31938 2009-04-01  Bruno Haible  <bruno@clisp.org>
31939
31940         * Makefile (info, html, dvi, pdf): New targets.
31941         Reported by Reuben Thomas <rrt@sc3d.org>.
31942
31943 2009-04-01  Bruno Haible  <bruno@clisp.org>
31944
31945         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
31946         can be put into PATH.
31947         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
31948
31949 2009-04-01  Bruno Haible  <bruno@clisp.org>
31950
31951         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
31952
31953 2009-04-01  Bruno Haible  <bruno@clisp.org>
31954
31955         Rename module 'visibility'.
31956         * modules/lib-symbol-visibility: Renamed from modules/visibility.
31957         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
31958         * doc/gnulib.texi: Update.
31959         * MODULES.html.sh (Misc): Update.
31960         * NEWS: Mention the change.
31961
31962 2009-04-01  Simon Josefsson  <simon@josefsson.org>
31963
31964         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
31965         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
31966         Eric Blake <ebb9@byu.net> for review.
31967         * MODULES.html.sh: Add lib-msvc-compat.
31968         * doc/gnulib.texi: Link to new section.
31969         * m4/ld-output-def.m4: New file.
31970         * doc/ld-output-def.texi: New file.
31971
31972 2009-04-01  Simon Josefsson  <simon@josefsson.org>
31973
31974         Rename ld-version-script to lib-symbol-versions.  Suggested by
31975         Bruno Haible <bruno@clisp.org>.
31976         * modules/ld-version-script: Renamed to lib-symbol-versions.
31977         * doc/ld-version-script.texi: Fix module name.
31978         * MODULES.html.sh: Add lib-symbol-versions.
31979
31980 2009-03-31  Simon Josefsson  <simon@josefsson.org>
31981
31982         * modules/u64-tests: New file.
31983         * tests/test-u64.c: New file.
31984
31985 2009-03-04  Simon Josefsson  <simon@josefsson.org>
31986
31987         * MODULES.html.sh: Mention u64.
31988         * modules/u64: New module.
31989         * modules/crypto/sha512: Depend on u64 module instead of providing
31990         u64.h.
31991
31992 2009-03-27  Eric Blake  <ebb9@byu.net>
31993
31994         test-strerror: make debugging EAI_SYSTEM easier
31995         * modules/getaddrinfo-tests (Depends-on): Add strerror.
31996         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
31997         failure was EAI_SYSTEM.
31998
31999 2009-03-25  Bruno Haible  <bruno@clisp.org>
32000
32001         Fix a problem with --enable-relocatable on Solaris 7.
32002         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
32003         since 2008-02-24.
32004
32005 2009-03-25  Eric Blake  <ebb9@byu.net>
32006
32007         test-sockets: avoid gcc warning
32008         * tests/test-sockets.c (main): Silence compiler warning.
32009
32010 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
32011
32012         New modules nproc, pthread, contributed by Glen Lenker.
32013
32014         * MODULES.html.sh: Add pthread, nproc.
32015         * lib/nproc.c: New file.
32016         * lib/nproc.h: New file.
32017         * lib/pthread.in.h: New file.
32018         * m4/pthread.m4: New file.
32019         * modules/nproc: New file.
32020         * modules/pthread: New file.
32021
32022 2009-03-24  Simon Josefsson  <simon@josefsson.org>
32023
32024         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
32025         New variable.
32026
32027 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
32028
32029         filevercmp: handle simple~ and numbered.~3~ backup suffixes
32030         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
32031         * tests/test-filevercmp.c: Add tests for backup suffixes.
32032
32033 2009-03-24  Simon Josefsson  <simon@josefsson.org>
32034
32035         * modules/stdlib (Depends-on): Add stdint, needed when defining
32036         struct random_data on, for example, HP-UX 10.20.  Reported by
32037         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32038
32039 2009-03-24  Simon Josefsson  <simon@josefsson.org>
32040
32041         * lib/readline.c (readline): Call fflush on stdout after printing
32042         prompt.
32043
32044 2009-03-20  Bruno Haible  <bruno@clisp.org>
32045
32046         Remove dependency from 'close' module to -lws2_32 on native Windows.
32047         * lib/close-hook.h: New file.
32048         * lib/close-hook.c: New file.
32049         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
32050         w32sock.h.
32051         (_gl_close_fd_maybe_socket): Remove function.
32052         (rpl_close): Invoke execute_all_close_hooks instead of
32053         _gl_close_fd_maybe_socket.
32054         * lib/sockets.c: Include close-hook.h, w32sock.h.
32055         (close_fd_maybe_socket): New function, essentially from lib/close.c.
32056         (close_sockets_hook): New variable.
32057         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
32058         (gl_sockets_cleanup): Unregister it.
32059         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
32060         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
32061         * modules/close-hook: New file.
32062         * modules/close (Files): Remove lib/w32sock.h.
32063         (Depends-on): Add close-hook.
32064         (Link): Remove section.
32065         * modules/sockets (Files): Add lib/w32sock.h.
32066         (Depends-on): Add close-hook.
32067         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
32068         invocation.
32069         * NEWS: Mention that LIB_CLOSE is gone.
32070
32071 2009-03-23  Eric Blake  <ebb9@byu.net>
32072
32073         signal-tests: test previous patch
32074         * tests/test-signal.c: New file.
32075         * modules/signal-tests: Likewise.
32076
32077         signal.h: always support 'volatile sig_atomic_t'
32078         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
32079         (gl_SIGNAL_H_DEFAULTS): Add a default.
32080         * modules/signal (Makefile.am): Substitute if needed.
32081         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
32082         users can blindly add volatile.
32083         * doc/posix-headers/signal.texi (signal.h): Document it.
32084         Reported by Matthew Woehlke.
32085
32086 2009-03-23  Jim Meyering  <meyering@redhat.com>
32087
32088         pathmax: PATH_MAX: use pathconf only when available
32089         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
32090         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
32091         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
32092         This avoids a link failure in a PSP cross-compilation environment
32093         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
32094
32095         * lib/vasnprintf.c (divide): Fix typo in comment.
32096
32097 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32098
32099         * gnulib-tool (func_filter_filelist): Fix comment.
32100
32101 2009-03-20  Bruno Haible  <bruno@clisp.org>
32102
32103         Make sockets.h self-contained.
32104         * lib/sockets.c: Include sockets.h first.
32105         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
32106
32107 2009-03-19  Eric Blake  <ebb9@byu.net>
32108
32109         doc: mention more functions added in cygwin 1.7.0
32110         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
32111         addition.
32112         * doc/posix-functions/log2f.texi: Likewise.
32113
32114 2009-03-19  Jim Meyering  <meyering@redhat.com>
32115
32116         fsusage: avoid syntax error due to statement-before-declaration
32117         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
32118         after all declarations.  Reported by Matthew Woehlke in
32119         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
32120
32121 2009-03-18  Eric Blake  <ebb9@byu.net>
32122
32123         build-aux/compile: sync from automake
32124         * build-aux/compile: New file, from automake.
32125         * config/srclist.txt: Mention build-aux/compile.
32126
32127 2009-03-17  Bruno Haible  <bruno@clisp.org>
32128
32129         * lib/git-merge-changelog.c: Fix typo in comment.
32130         Reported by Reuben Thomas <rrt@sc3d.org>.
32131
32132 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
32133
32134         * m4/regex.m4: update and improve help for
32135         --without-included-regex.
32136
32137 2009-03-17  Simon Josefsson  <simon@josefsson.org>
32138
32139         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
32140         failure on missing include files.
32141
32142 2009-03-17  Eric Blake  <ebb9@byu.net>
32143
32144         doc: mention more functions added in cygwin 1.7.0
32145         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
32146         addition.
32147         * doc/posix-functions/fwscanf.texi: Likewise.
32148         * doc/posix-functions/swprintf.texi: Likewise.
32149         * doc/posix-functions/swscanf.texi: Likewise.
32150         * doc/posix-functions/vfwprintf.texi: Likewise.
32151         * doc/posix-functions/vfwscanf.texi: Likewise.
32152         * doc/posix-functions/vswprintf.texi: Likewise.
32153         * doc/posix-functions/vswscanf.texi: Likewise.
32154         * doc/posix-functions/vwprintf.texi: Likewise.
32155         * doc/posix-functions/vwscanf.texi: Likewise.
32156         * doc/posix-functions/wcscasecmp.texi: Likewise.
32157         * doc/posix-functions/wcsdup.texi: Likewise.
32158         * doc/posix-functions/wcsftime.texi: Likewise.
32159         * doc/posix-functions/wcsncasecmp.texi: Likewise.
32160         * doc/posix-functions/wprintf.texi: Likewise.
32161         * doc/posix-functions/wscanf.texi: Likewise.
32162         * doc/glibc-functions/gethostbyname2.texi: Likewise.
32163
32164 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32165
32166         maint.mk: really add $(AM_MAKEFLAGS)
32167         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
32168         was inadvertently omitted in the last commit.
32169         Spotted by Bruno Haible.
32170
32171         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
32172         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
32173         $(AM_MAKEFLAGS)' rather than plain `make'.
32174
32175         gnulib-tool: execute $MAKE not make
32176         * gnulib-tool: Default $MAKE to 'make'.
32177         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
32178         than make.  Initialize $MAKE in the do-autobuild script.
32179
32180         gnulib-tool: use $MAKE not make in generated files
32181         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
32182         make, in generated files.  Initialize $MAKE in the do-autobuild
32183         script.
32184
32185         * top/GNUmakefile (_have-git-version-gen): Fix typo.
32186
32187         GNUmakefile: disable parallelism only for multiple, recursive targets
32188         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
32189         additions in the Makefile.
32190         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
32191         by Automake.
32192         (.NOTPARALLEL): Only disable parallel builds if multiple targets
32193         are listed on the command line and at least one of them is
32194         listed in $(ALL_RECURSIVE_TARGETS).
32195
32196 2009-03-14  Bruno Haible  <bruno@clisp.org>
32197
32198         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
32199         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
32200         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
32201         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
32202         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
32203         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
32204         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
32205         unistr/u8-uctomb.
32206         * modules/unistr/u8-strchr (Depends-on): Likewise.
32207         * modules/unistr/u8-strrchr (Depends-on): Likewise.
32208         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
32209         unistr/u16-uctomb.
32210         * modules/unistr/u16-strchr (Depends-on): Likewise.
32211         * modules/unistr/u16-strrchr (Depends-on): Likewise.
32212
32213 2009-03-12  Bruno Haible  <bruno@clisp.org>
32214
32215         Work around select() bug on Interix 3.5.
32216         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
32217         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
32218         * m4/select.m4: New file.
32219         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
32220         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
32221         * modules/select (Files): Add m4/select.m4.
32222         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
32223         * modules/nanosleep (Depends-on): Add select.
32224         * modules/poll (Depends-on): Likewise.
32225         * doc/posix-functions/select.texi: Mention the Interix bug.
32226         Reported by Markus Duft <mduft@gentoo.org>.
32227
32228         * lib/select.c: Renamed from lib/winsock-select.c.
32229         * modules/select (Files): Add lib/select.c, remove
32230         lib/winsock-select.c.
32231         (configure.ac): Update.
32232
32233 2009-03-12  Jim Meyering  <meyering@redhat.com>
32234
32235         avoid gcc warnings about unused macro definitions
32236         * lib/readtokens.c (STREQ): Remove unused definition.
32237         * lib/xmalloc.c (SIZE_MAX): Likewise.
32238         * lib/openat-die.c (N_): Likewise.
32239         * lib/mountlist.c (SIZE_MAX): Remove definition.
32240         Instead, include <stdint.h>.
32241         * lib/readutmp.c: Likewise.
32242         * modules/readutmp (Depends-on): Add stdint.
32243         * modules/mountlist (Depends-on): Add stdint.
32244         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
32245
32246 2009-03-10  Bruno Haible  <bruno@clisp.org>
32247
32248         Tests for module 'mbmemcasecoll'.
32249         * modules/mbmemcasecoll-tests: New file.
32250         * tests/test-mbmemcasecoll1.sh: New file.
32251         * tests/test-mbmemcasecoll2.sh: New file.
32252         * tests/test-mbmemcasecoll3.sh: New file.
32253         * tests/test-mbmemcasecoll.c: New file.
32254
32255         New module 'mbmemcasecoll'.
32256         * lib/mbmemcasecoll.h: New file.
32257         * lib/mbmemcasecoll.c: New file.
32258         * modules/mbmemcasecoll: New file.
32259
32260         * tests/test-mbmemcasecmp.h: New file, extracted from
32261         tests/test-mbmemcasecmp.c.
32262         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
32263         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
32264         (main): Update.
32265         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
32266
32267 2009-03-09  Bruno Haible  <bruno@clisp.org>
32268
32269         Tests for module 'mbmemcasecmp'.
32270         * modules/mbmemcasecmp-tests: New file.
32271         * tests/test-mbmemcasecmp1.sh: New file.
32272         * tests/test-mbmemcasecmp2.sh: New file.
32273         * tests/test-mbmemcasecmp3.sh: New file.
32274         * tests/test-mbmemcasecmp.c: New file.
32275
32276         New module 'mbmemcasecmp'.
32277         * lib/mbmemcasecmp.h: New file.
32278         * lib/mbmemcasecmp.c: New file.
32279         * modules/mbmemcasecmp: New file.
32280
32281 2009-03-09  Bruno Haible  <bruno@clisp.org>
32282
32283         Tests for module 'unicase/ulc-casecoll'.
32284         * modules/unicase/ulc-casecoll-tests: New file.
32285         * tests/unicase/test-ulc-casecoll1.sh: New file.
32286         * tests/unicase/test-ulc-casecoll2.sh: New file.
32287         * tests/unicase/test-ulc-casecoll.c: New file.
32288
32289         New module 'unicase/ulc-casecoll'.
32290         * lib/unicase.h (ulc_casecoll): New declaration.
32291         * lib/unicase/ulc-casecoll.c: New file.
32292         * modules/unicase/ulc-casecoll: New file.
32293
32294         New module 'unicase/ulc-casexfrm'.
32295         * lib/unicase.h (ulc_casexfrm): New declaration.
32296         * lib/unicase/ulc-casexfrm.c: New file.
32297         * modules/unicase/ulc-casexfrm: New file.
32298
32299 2009-03-09  Bruno Haible  <bruno@clisp.org>
32300
32301         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
32302         invocations.
32303
32304         * m4/mbscasecmp.m4: Remove file.
32305         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
32306         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
32307
32308         * m4/mbscasestr.m4: Remove file.
32309         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
32310         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
32311
32312         * m4/mbschr.m4: Remove file.
32313         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
32314         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
32315
32316         * m4/mbscspn.m4: Remove file.
32317         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
32318         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
32319
32320         * m4/mbslen.m4: Remove file.
32321         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
32322         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
32323
32324         * m4/mbsncasecmp.m4: Remove file.
32325         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
32326         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
32327
32328         * m4/mbsnlen.m4: Remove file.
32329         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
32330         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
32331
32332         * m4/mbspbrk.m4: Remove file.
32333         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
32334         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
32335
32336         * m4/mbspcasecmp.m4: Remove file.
32337         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
32338         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
32339
32340         * m4/mbsrchr.m4: Remove file.
32341         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
32342         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
32343
32344         * m4/mbssep.m4: Remove file.
32345         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
32346         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
32347
32348         * m4/mbsspn.m4: Remove file.
32349         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
32350         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
32351
32352         * m4/mbsstr.m4: Remove file.
32353         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
32354         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
32355
32356         * m4/mbstok_r.m4: Remove file.
32357         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
32358         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
32359
32360         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
32361
32362         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
32363         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
32364
32365         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
32366
32367 2009-03-08  Bruno Haible  <bruno@clisp.org>
32368
32369         Tests for module 'unicase/ulc-casecmp'.
32370         * modules/unicase/ulc-casecmp-tests: New file.
32371         * tests/unicase/test-ulc-casecmp1.sh: New file.
32372         * tests/unicase/test-ulc-casecmp2.sh: New file.
32373         * tests/unicase/test-ulc-casecmp.c: New file.
32374
32375         New module 'unicase/ulc-casecmp'.
32376         * lib/unicase.h (ulc_casecmp): New declaration.
32377         * lib/unicase/ulc-casecmp.c: New file.
32378         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
32379         'const SRC_UNIT *'.
32380         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
32381         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
32382         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
32383         * modules/unicase/ulc-casecmp: New file.
32384
32385         Tests for module 'unicase/u32-is-cased'.
32386         * modules/unicase/u32-is-cased-tests: New file.
32387         * tests/unicase/test-u32-is-cased.c: New file.
32388
32389         Tests for module 'unicase/u16-is-cased'.
32390         * modules/unicase/u16-is-cased-tests: New file.
32391         * tests/unicase/test-u16-is-cased.c: New file.
32392
32393         Tests for module 'unicase/u8-is-cased'.
32394         * modules/unicase/u8-is-cased-tests: New file.
32395         * tests/unicase/test-u8-is-cased.c: New file.
32396         * tests/unicase/test-is-cased.h: New file.
32397
32398         New module 'unicase/u32-is-cased'.
32399         * lib/unicase/u32-is-cased.c: New file.
32400         * modules/unicase/u32-is-cased: New file.
32401
32402         New module 'unicase/u16-is-cased'.
32403         * lib/unicase/u16-is-cased.c: New file.
32404         * modules/unicase/u16-is-cased: New file.
32405
32406         New module 'unicase/u8-is-cased'.
32407         * lib/unicase/u8-is-cased.c: New file.
32408         * lib/unicase/u-is-cased.h: New file.
32409         * modules/unicase/u8-is-cased: New file.
32410
32411         Tests for module 'unicase/u32-is-casefolded'.
32412         * modules/unicase/u32-is-casefolded-tests: New file.
32413         * tests/unicase/test-u32-is-casefolded.c: New file.
32414
32415         Tests for module 'unicase/u16-is-casefolded'.
32416         * modules/unicase/u16-is-casefolded-tests: New file.
32417         * tests/unicase/test-u16-is-casefolded.c: New file.
32418
32419         Tests for module 'unicase/u8-is-casefolded'.
32420         * modules/unicase/u8-is-casefolded-tests: New file.
32421         * tests/unicase/test-u8-is-casefolded.c: New file.
32422         * tests/unicase/test-is-casefolded.h: New file.
32423
32424         New module 'unicase/u32-is-casefolded'.
32425         * lib/unicase/u32-is-casefolded.c: New file.
32426         * modules/unicase/u32-is-casefolded: New file.
32427
32428         New module 'unicase/u16-is-casefolded'.
32429         * lib/unicase/u16-is-casefolded.c: New file.
32430         * modules/unicase/u16-is-casefolded: New file.
32431
32432         New module 'unicase/u8-is-casefolded'.
32433         * lib/unicase/u8-is-casefolded.c: New file.
32434         * modules/unicase/u8-is-casefolded: New file.
32435
32436         Tests for module 'unicase/u32-is-titlecase'.
32437         * modules/unicase/u32-is-titlecase-tests: New file.
32438         * tests/unicase/test-u32-is-titlecase.c: New file.
32439
32440         Tests for module 'unicase/u16-is-titlecase'.
32441         * modules/unicase/u16-is-titlecase-tests: New file.
32442         * tests/unicase/test-u16-is-titlecase.c: New file.
32443
32444         Tests for module 'unicase/u8-is-titlecase'.
32445         * modules/unicase/u8-is-titlecase-tests: New file.
32446         * tests/unicase/test-u8-is-titlecase.c: New file.
32447         * tests/unicase/test-is-titlecase.h: New file.
32448
32449         New module 'unicase/u32-is-titlecase'.
32450         * lib/unicase/u32-is-titlecase.c: New file.
32451         * modules/unicase/u32-is-titlecase: New file.
32452
32453         New module 'unicase/u16-is-titlecase'.
32454         * lib/unicase/u16-is-titlecase.c: New file.
32455         * modules/unicase/u16-is-titlecase: New file.
32456
32457         New module 'unicase/u8-is-titlecase'.
32458         * lib/unicase/u8-is-titlecase.c: New file.
32459         * modules/unicase/u8-is-titlecase: New file.
32460
32461         Tests for module 'unicase/u32-is-lowercase'.
32462         * modules/unicase/u32-is-lowercase-tests: New file.
32463         * tests/unicase/test-u32-is-lowercase.c: New file.
32464
32465         Tests for module 'unicase/u16-is-lowercase'.
32466         * modules/unicase/u16-is-lowercase-tests: New file.
32467         * tests/unicase/test-u16-is-lowercase.c: New file.
32468
32469         Tests for module 'unicase/u8-is-lowercase'.
32470         * modules/unicase/u8-is-lowercase-tests: New file.
32471         * tests/unicase/test-u8-is-lowercase.c: New file.
32472         * tests/unicase/test-is-lowercase.h: New file.
32473
32474         New module 'unicase/u32-is-lowercase'.
32475         * lib/unicase/u32-is-lowercase.c: New file.
32476         * modules/unicase/u32-is-lowercase: New file.
32477
32478         New module 'unicase/u16-is-lowercase'.
32479         * lib/unicase/u16-is-lowercase.c: New file.
32480         * modules/unicase/u16-is-lowercase: New file.
32481
32482         New module 'unicase/u8-is-lowercase'.
32483         * lib/unicase/u8-is-lowercase.c: New file.
32484         * modules/unicase/u8-is-lowercase: New file.
32485
32486         Tests for module 'unicase/u32-is-uppercase'.
32487         * modules/unicase/u32-is-uppercase-tests: New file.
32488         * tests/unicase/test-u32-is-uppercase.c: New file.
32489
32490         Tests for module 'unicase/u16-is-uppercase'.
32491         * modules/unicase/u16-is-uppercase-tests: New file.
32492         * tests/unicase/test-u16-is-uppercase.c: New file.
32493
32494         Tests for module 'unicase/u8-is-uppercase'.
32495         * modules/unicase/u8-is-uppercase-tests: New file.
32496         * tests/unicase/test-u8-is-uppercase.c: New file.
32497         * tests/unicase/test-is-uppercase.h: New file.
32498
32499         New module 'unicase/u32-is-uppercase'.
32500         * lib/unicase/u32-is-uppercase.c: New file.
32501         * modules/unicase/u32-is-uppercase: New file.
32502
32503         New module 'unicase/u16-is-uppercase'.
32504         * lib/unicase/u16-is-uppercase.c: New file.
32505         * modules/unicase/u16-is-uppercase: New file.
32506
32507         New module 'unicase/u8-is-uppercase'.
32508         * lib/unicase/u8-is-uppercase.c: New file.
32509         * modules/unicase/u8-is-uppercase: New file.
32510
32511         New module 'unicase/u32-is-invariant'.
32512         * lib/unicase/u32-is-invariant.c: New file.
32513         * modules/unicase/u32-is-invariant: New file.
32514
32515         New module 'unicase/u16-is-invariant'.
32516         * lib/unicase/u16-is-invariant.c: New file.
32517         * modules/unicase/u16-is-invariant: New file.
32518
32519         New module 'unicase/u8-is-invariant'.
32520         * lib/unicase/u8-is-invariant.c: New file.
32521         * lib/unicase/invariant.h: New file.
32522         * lib/unicase/u-is-invariant.h: New file.
32523         * modules/unicase/u8-is-invariant: New file.
32524
32525         Tests for module 'unicase/u32-casecoll'.
32526         * modules/unicase/u32-casecoll-tests: New file.
32527         * tests/unicase/test-u32-casecoll.c: New file.
32528
32529         Tests for module 'unicase/u16-casecoll'.
32530         * modules/unicase/u16-casecoll-tests: New file.
32531         * tests/unicase/test-u16-casecoll.c: New file.
32532
32533         Tests for module 'unicase/u8-casecoll'.
32534         * modules/unicase/u8-casecoll-tests: New file.
32535         * tests/unicase/test-u8-casecoll.c: New file.
32536
32537         New module 'unicase/u32-casecoll'.
32538         * lib/unicase/u32-casecoll.c: New file.
32539         * modules/unicase/u32-casecoll: New file.
32540
32541         New module 'unicase/u16-casecoll'.
32542         * lib/unicase/u16-casecoll.c: New file.
32543         * modules/unicase/u16-casecoll: New file.
32544
32545         New module 'unicase/u8-casecoll'.
32546         * lib/unicase/u8-casecoll.c: New file.
32547         * lib/unicase/u-casecoll.h: New file.
32548         * modules/unicase/u8-casecoll: New file.
32549
32550         New module 'unicase/u32-casexfrm'.
32551         * lib/unicase/u32-casexfrm.c: New file.
32552         * modules/unicase/u32-casexfrm: New file.
32553
32554         New module 'unicase/u16-casexfrm'.
32555         * lib/unicase/u16-casexfrm.c: New file.
32556         * modules/unicase/u16-casexfrm: New file.
32557
32558         New module 'unicase/u8-casexfrm'.
32559         * lib/unicase/u8-casexfrm.c: New file.
32560         * lib/unicase/u-casexfrm.h: New file.
32561         * modules/unicase/u8-casexfrm: New file.
32562
32563         Tests for module 'unicase/u32-casecmp'.
32564         * modules/unicase/u32-casecmp-tests: New file.
32565         * tests/unicase/test-u32-casecmp.c: New file.
32566
32567         Tests for module 'unicase/u16-casecmp'.
32568         * modules/unicase/u16-casecmp-tests: New file.
32569         * tests/unicase/test-u16-casecmp.c: New file.
32570
32571         Tests for module 'unicase/u8-casecmp'.
32572         * modules/unicase/u8-casecmp-tests: New file.
32573         * tests/unicase/test-u8-casecmp.c: New file.
32574         * tests/unicase/test-casecmp.h: New file.
32575
32576         New module 'unicase/u32-casecmp'.
32577         * lib/unicase/u32-casecmp.c: New file.
32578         * modules/unicase/u32-casecmp: New file.
32579
32580         New module 'unicase/u16-casecmp'.
32581         * lib/unicase/u16-casecmp.c: New file.
32582         * modules/unicase/u16-casecmp: New file.
32583
32584         New module 'unicase/u8-casecmp'.
32585         * lib/unicase/u8-casecmp.c: New file.
32586         * lib/unicase/u-casecmp.h: New file.
32587         * modules/unicase/u8-casecmp: New file.
32588
32589         Tests for module 'unicase/u32-casefold'.
32590         * modules/unicase/u32-casefold-tests: New file.
32591         * tests/unicase/test-u32-casefold.c: New file.
32592
32593         Tests for module 'unicase/u16-casefold'.
32594         * modules/unicase/u16-casefold-tests: New file.
32595         * tests/unicase/test-u16-casefold.c: New file.
32596
32597         Tests for module 'unicase/u8-casefold'.
32598         * modules/unicase/u8-casefold-tests: New file.
32599         * tests/unicase/test-u8-casefold.c: New file.
32600
32601         New module 'unicase/u32-casefold'.
32602         * lib/unicase/u32-casefold.c: New file.
32603         * modules/unicase/u32-casefold: New file.
32604
32605         New module 'unicase/u16-casefold'.
32606         * lib/unicase/u16-casefold.c: New file.
32607         * modules/unicase/u16-casefold: New file.
32608
32609         New module 'unicase/u8-casefold'.
32610         * lib/unicase/u8-casefold.c: New file.
32611         * lib/unicase/u-casefold.h: New file.
32612         * modules/unicase/u8-casefold: New file.
32613
32614         New module 'unicase/tocasefold'.
32615         * lib/unicase/casefold.h: New file.
32616         * lib/unicase/tocasefold.c: New file.
32617         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
32618         * modules/unicase/tocasefold: New file.
32619
32620         Tests for module 'unicase/u32-totitle'.
32621         * modules/unicase/u32-totitle-tests: New file.
32622         * tests/unicase/test-u32-totitle.c: New file.
32623
32624         Tests for module 'unicase/u16-totitle'.
32625         * modules/unicase/u16-totitle-tests: New file.
32626         * tests/unicase/test-u16-totitle.c: New file.
32627
32628         Tests for module 'unicase/u8-totitle'.
32629         * modules/unicase/u8-totitle-tests: New file.
32630         * tests/unicase/test-u8-totitle.c: New file.
32631
32632         New module 'unicase/u32-totitle'.
32633         * lib/unicase/u32-totitle.c: New file.
32634         * modules/unicase/u32-totitle: New file.
32635
32636         New module 'unicase/u16-totitle'.
32637         * lib/unicase/u16-totitle.c: New file.
32638         * modules/unicase/u16-totitle: New file.
32639
32640         New module 'unicase/u8-totitle'.
32641         * lib/unicase/u8-totitle.c: New file.
32642         * lib/unicase/u-totitle.h: New file.
32643         * modules/unicase/u8-totitle: New file.
32644
32645         Tests for module 'unicase/u32-tolower'.
32646         * modules/unicase/u32-tolower-tests: New file.
32647         * tests/unicase/test-u32-tolower.c: New file.
32648
32649         Tests for module 'unicase/u16-tolower'.
32650         * modules/unicase/u16-tolower-tests: New file.
32651         * tests/unicase/test-u16-tolower.c: New file.
32652
32653         Tests for module 'unicase/u8-tolower'.
32654         * modules/unicase/u8-tolower-tests: New file.
32655         * tests/unicase/test-u8-tolower.c: New file.
32656
32657         New module 'unicase/u32-tolower'.
32658         * lib/unicase/u32-tolower.c: New file.
32659         * modules/unicase/u32-tolower: New file.
32660
32661         New module 'unicase/u16-tolower'.
32662         * lib/unicase/u16-tolower.c: New file.
32663         * modules/unicase/u16-tolower: New file.
32664
32665         New module 'unicase/u8-tolower'.
32666         * lib/unicase/u8-tolower.c: New file.
32667         * modules/unicase/u8-tolower: New file.
32668
32669         Tests for module 'unicase/u32-toupper'.
32670         * modules/unicase/u32-toupper-tests: New file.
32671         * tests/unicase/test-u32-toupper.c: New file.
32672
32673         Tests for module 'unicase/u16-toupper'.
32674         * modules/unicase/u16-toupper-tests: New file.
32675         * tests/unicase/test-u16-toupper.c: New file.
32676
32677         Tests for module 'unicase/u8-toupper'.
32678         * modules/unicase/u8-toupper-tests: New file.
32679         * tests/unicase/test-u8-toupper.c: New file.
32680
32681         New module 'unicase/u32-toupper'.
32682         * lib/unicase/u32-toupper.c: New file.
32683         * modules/unicase/u32-toupper: New file.
32684
32685         New module 'unicase/u16-toupper'.
32686         * lib/unicase/u16-toupper.c: New file.
32687         * modules/unicase/u16-toupper: New file.
32688
32689         New module 'unicase/u8-toupper'.
32690         * lib/unicase/u8-toupper.c: New file.
32691         * modules/unicase/u8-toupper: New file.
32692
32693         New module 'unicase/u32-casemap'.
32694         * lib/unicase/u32-casemap.c: New file.
32695         * modules/unicase/u32-casemap: New file.
32696
32697         New module 'unicase/u16-casemap'.
32698         * lib/unicase/u16-casemap.c: New file.
32699         * modules/unicase/u16-casemap: New file.
32700
32701         New module 'unicase/u8-casemap'.
32702         * lib/unicase/unicasemap.h: New file.
32703         * lib/unicase/u8-casemap.c: New file.
32704         * lib/unicase/u-casemap.h: New file.
32705         * modules/unicase/u8-casemap: New file.
32706
32707         New module 'unicase/special-casing'.
32708         * lib/unicase/special-casing.h: New file.
32709         * lib/unicase/special-casing.c: New file.
32710         * lib/unicase/special-casing-table.gperf: New file, generated by
32711         gen-uni-tables.c.
32712         * modules/unicase/special-casing: New file.
32713
32714         Tests for module 'unicase/locale-language'.
32715         * modules/unicase/locale-language-tests: New file.
32716         * tests/unicase/test-locale-language.sh: New file.
32717         * tests/unicase/test-locale-language.c: New file.
32718
32719         New module 'unicase/locale-language'.
32720         * lib/unicase/locale-language.c: New file.
32721         * lib/unicase/locale-languages.gperf: New file.
32722         * modules/unicase/locale-language: New file.
32723
32724         Generate more tables for case conversion and case folding.
32725         * lib/gen-uni-tables.c (SCC_*): New enum items.
32726         (struct special_casing_rule): New type.
32727         (casing_rules, num_casing_rules, allocated_casing_rules): New
32728         variables.
32729         (add_casing_rule, fill_casing_rules): New functions.
32730         (struct casefold_rule): New type.
32731         (casefolding_rules, num_casefolding_rules,
32732         allocated_casefolding_rules): New variables.
32733         (fill_casefolding_rules): New function.
32734         (unicode_casefold): New variable.
32735         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
32736         sort_casing_rules, output_casing_rules): New functions.
32737         (main): Accept to more arguments: SpecialCasing.txt and
32738         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
32739         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
32740         Output mapping for casefolding.
32741
32742         * lib/unicase.h: Include stdbool.h, uninorm.h.
32743         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
32744         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
32745         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
32746         arguments.
32747         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
32748         resultp arguments.
32749         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
32750         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
32751         resultp arguments.
32752         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
32753         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
32754         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
32755         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
32756         declarations.
32757         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
32758
32759 2009-03-08  Bruno Haible  <bruno@clisp.org>
32760
32761         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
32762         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
32763         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
32764         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
32765
32766 2009-03-07  Bruno Haible  <bruno@clisp.org>
32767
32768         Adjust u*_normcmp, u*_normcoll API.
32769         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
32770         u16_normcoll, u32_normcoll): Change failure conventions.
32771         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
32772         errno and return -1.
32773         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
32774
32775 2009-03-07  Bruno Haible  <bruno@clisp.org>
32776
32777         Tests for module 'uninorm/u32-normcoll'.
32778         * modules/uninorm/u32-normcoll-tests: New file.
32779         * tests/uninorm/test-u32-normcoll.c: New file.
32780
32781         Tests for module 'uninorm/u16-normcoll'.
32782         * modules/uninorm/u16-normcoll-tests: New file.
32783         * tests/uninorm/test-u16-normcoll.c: New file.
32784
32785         Tests for module 'uninorm/u8-normcoll'.
32786         * modules/uninorm/u8-normcoll-tests: New file.
32787         * tests/uninorm/test-u8-normcoll.c: New file.
32788
32789 2009-03-07  Bruno Haible  <bruno@clisp.org>
32790
32791         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
32792         tests/uninorm/test-u32-normcmp.c.
32793         * tests/uninorm/test-u32-normcmp.c: Include it.
32794         (test_nonascii): New function, extracted from main. Add some more
32795         tests.
32796         (main): Invoke test_ascii and test_nonascii.
32797         * modules/uninorm/u32-normcmp-tests (Files): Add
32798         tests/uninorm/test-u32-normcmp.h.
32799         (Depends-on): Remove uninorm/u32-normcmp.
32800
32801         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
32802         tests/uninorm/test-u16-normcmp.c.
32803         * tests/uninorm/test-u16-normcmp.c: Include it.
32804         (test_nonascii): New function, extracted from main. Add some more
32805         tests.
32806         (main): Invoke test_ascii and test_nonascii.
32807         * modules/uninorm/u16-normcmp-tests (Files): Add
32808         tests/uninorm/test-u16-normcmp.h.
32809         (Depends-on): Remove uninorm/u16-normcmp.
32810
32811         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
32812         tests/uninorm/test-u8-normcmp.c.
32813         * tests/uninorm/test-u8-normcmp.c: Include it.
32814         (test_nonascii): New function, extracted from main. Add some more
32815         tests.
32816         (main): Invoke test_ascii and test_nonascii.
32817         * modules/uninorm/u8-normcmp-tests (Files): Add
32818         tests/uninorm/test-u8-normcmp.h.
32819         (Depends-on): Remove uninorm/u8-normcmp.
32820
32821 2009-03-07  Bruno Haible  <bruno@clisp.org>
32822
32823         New module 'uninorm/u32-normcoll'.
32824         * lib/uninorm/u32-normcoll.c: New file.
32825         * modules/uninorm/u32-normcoll: New file.
32826
32827         New module 'uninorm/u16-normcoll'.
32828         * lib/uninorm/u16-normcoll.c: New file.
32829         * modules/uninorm/u16-normcoll: New file.
32830
32831         New module 'uninorm/u8-normcoll'.
32832         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
32833         declarations.
32834         * lib/uninorm/u8-normcoll.c: New file.
32835         * lib/uninorm/u-normcoll.h: New file.
32836         * modules/uninorm/u8-normcoll: New file.
32837
32838         New module 'uninorm/u32-normxfrm'.
32839         * lib/uninorm/u32-normxfrm.c: New file.
32840         * modules/uninorm/u32-normxfrm: New file.
32841
32842         New module 'uninorm/u16-normxfrm'.
32843         * lib/uninorm/u16-normxfrm.c: New file.
32844         * modules/uninorm/u16-normxfrm: New file.
32845
32846         New module 'uninorm/u8-normxfrm'.
32847         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
32848         declarations.
32849         * lib/uninorm/u8-normxfrm.c: New file.
32850         * lib/uninorm/u-normxfrm.h: New file.
32851         * modules/uninorm/u8-normxfrm: New file.
32852
32853 2009-03-07  Bruno Haible  <bruno@clisp.org>
32854
32855         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
32856         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
32857         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
32858
32859 2009-03-07  Bruno Haible  <bruno@clisp.org>
32860
32861         New module 'memxfrm'.
32862         * lib/memxfrm.h: New file.
32863         * lib/memxfrm.c: New file.
32864         * modules/memxfrm: New file.
32865
32866 2009-03-07  Bruno Haible  <bruno@clisp.org>
32867
32868         New module 'memcmp2'.
32869         * lib/memcmp2.h: New file.
32870         * lib/memcmp2.c: New file.
32871         * modules/memcmp2: New file.
32872
32873 2009-03-07  Bruno Haible  <bruno@clisp.org>
32874
32875         Tests for module 'uninorm/decomposing-form'.
32876         * modules/uninorm/decomposing-form-tests: New file.
32877         * tests/uninorm/test-decomposing-form.c: New file.
32878
32879         New module 'uninorm/decomposing-form'.
32880         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
32881         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
32882         Add 'decomposing_variant' field.
32883         * lib/uninorm/decomposing-form.c: New file.
32884         * lib/uninorm/nfc.c (uninorm_nfc): Update.
32885         * lib/uninorm/nfd.c (uninorm_nfd): Update.
32886         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
32887         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
32888         * modules/uninorm/decomposing-form: New file.
32889         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
32890         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
32891
32892 2009-03-07  Bruno Haible  <bruno@clisp.org>
32893
32894         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
32895         strings.
32896
32897 2009-03-06  Bruno Haible  <bruno@clisp.org>
32898
32899         Tests for module 'uninorm/u32-normcmp'.
32900         * tests/uninorm/test-u32-normcmp.c: New file.
32901         * modules/uninorm/u32-normcmp-tests: New file.
32902
32903         Tests for module 'uninorm/u16-normcmp'.
32904         * tests/uninorm/test-u16-normcmp.c: New file.
32905         * modules/uninorm/u16-normcmp-tests: New file.
32906
32907         Tests for module 'uninorm/u8-normcmp'.
32908         * tests/uninorm/test-u8-normcmp.c: New file.
32909         * modules/uninorm/u8-normcmp-tests: New file.
32910
32911         New module 'uninorm/u32-normcmp'.
32912         * lib/uninorm/u32-normcmp.c: New file.
32913         * modules/uninorm/u32-normcmp: New file.
32914
32915         New module 'uninorm/u16-normcmp'.
32916         * lib/uninorm/u16-normcmp.c: New file.
32917         * modules/uninorm/u16-normcmp: New file.
32918
32919         New module 'uninorm/u8-normcmp'.
32920         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
32921         declarations.
32922         * lib/uninorm/u8-normcmp.c: New file.
32923         * lib/uninorm/u-normcmp.h: New file.
32924         * modules/uninorm/u8-normcmp: New file.
32925
32926 2009-03-06  Bruno Haible  <bruno@clisp.org>
32927
32928         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
32929         Reported by Eric Blake.
32930
32931 2009-03-06  Eric Blake  <ebb9@byu.net>
32932             Bruno Haible  <bruno@clisp.org>
32933
32934         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
32935         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
32936         condition.
32937         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
32938         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
32939         condition.
32940         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
32941
32942 2009-03-06  Eric Blake  <ebb9@byu.net>
32943
32944         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
32945         to avoid compiler warnings.
32946         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
32947
32948 2009-03-05  Bruno Haible  <bruno@clisp.org>
32949
32950         * tests/test-ftell.c (main): Disable test beyond end of file on
32951         FreeMiNT.
32952         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
32953
32954 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
32955
32956         * lib/filevercmp.c: Move hidden files up in ordering.
32957         * tests/test-filevercmp.c: Add tests for hidden files.
32958
32959 2009-03-04  Bruno Haible  <bruno@clisp.org>
32960
32961         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
32962         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
32963         AM_CFLAGS.
32964         Reported by Simon Josefsson.
32965
32966 2009-03-03  Bruno Haible  <bruno@clisp.org>
32967
32968         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
32969         Reported by Simon Josefsson.
32970
32971         * doc/ld-version-script.texi: Update node reference.
32972
32973 2009-03-03  Bruno Haible  <bruno@clisp.org>
32974
32975         * modules/visibility (License): Change to 'unlimited'.
32976         Suggested by Simon Josefsson.
32977
32978 2009-03-03  Jim Meyering  <meyering@redhat.com>
32979
32980         unlinkdir: cannot_unlink_dir may modify process state
32981         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
32982         it's neither thread-safe nor appropriate for use in a library.
32983
32984 2009-03-03  Eric Blake  <ebb9@byu.net>
32985
32986         test-closein: silence test under Darwin
32987         * tests/test-closein.sh: Ignore stderr from cat, since we don't
32988         care if it dies from EPIPE or EBADF.
32989
32990 2009-03-03  Bruno Haible  <bruno@clisp.org>
32991
32992         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
32993         earlier.
32994         * doc/visibility.texi: Fix @node and @section.
32995
32996 2009-03-03  Simon Josefsson  <simon@josefsson.org>
32997
32998         * doc/gnulib.texi: Link to sections for ld version script and
32999         visibility.
33000         * doc/visibility.texi: Add @node and @section.
33001         * modules/ld-version-script: New module.
33002         * m4/ld-version-script.m4: New file.
33003         * doc/ld-version-script.texi: New file.
33004
33005 2009-03-02  David Lutterkort  <lutter@redhat.com>
33006
33007         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
33008         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33009
33010 2009-03-02  Bruno Haible  <bruno@clisp.org>
33011
33012         * doc/visibility.texi: Mention libtool's -export-symbols option.
33013
33014 2009-03-02  Jim Meyering  <meyering@redhat.com>
33015
33016         announce-gen: new option: --no-print-checksums
33017         * build-aux/announce-gen (usage): Describe it.
33018         (print_checksums): Print a newline here, not in the [*] footnote.
33019         (main): Honor it.
33020
33021 2009-03-01  Bruno Haible  <bruno@clisp.org>
33022
33023         Use socklen_t in the native Windows replacements prototypes.
33024         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
33025         instead of 'int'.
33026         * lib/getsockopt.c (rpl_getsockopt): Likewise.
33027         * lib/setsockopt.c (rpl_setsockopt): Likewise.
33028         * modules/getsockopt (Depends-on): Add socklen.
33029         * modules/setsockopt (Depends-on): Add socklen.
33030
33031 2009-03-01  Bruno Haible  <bruno@clisp.org>
33032
33033         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
33034         least 4.2.
33035
33036 2009-03-01  Eric Blake  <ebb9@byu.net>
33037             Bruno Haible  <bruno@clisp.org>
33038
33039         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
33040         error messages.
33041         * lib/wait-process.c (wait_subprocess): Omit error message about
33042         deadly signal sent to the child of termsigp != NULL.
33043
33044 2009-03-01  Eric Blake  <ebb9@byu.net>
33045
33046         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
33047
33048 2009-03-01  Bruno Haible  <bruno@clisp.org>
33049
33050         Avoid a gcc warning.
33051         * tests/test-sched.c (b): Make global.
33052         Reported by Eric Blake.
33053
33054 2009-01-19  Martin Lambers  <marlam@marlam.de>
33055
33056         Provide POSIX semantics for socket timeout options on W32.
33057         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
33058         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
33059         * modules/setsockopt: Depend on sys_time module for struct timeval.
33060         * modules/getsockopt: Depend on sys_time module for struct timeval.
33061
33062 2009-03-01  Simon Josefsson  <simon@josefsson.org>
33063
33064         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
33065         __USE_GNU, for consistency with netdb.in.h.
33066         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
33067
33068 2009-03-01  Bruno Haible  <bruno@clisp.org>
33069
33070         More support for FreeMiNT.
33071         * lib/fseeko.c (rpl_fseeko): Complete last commit.
33072         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
33073
33074 2009-03-01  Bruno Haible  <bruno@clisp.org>
33075
33076         More support for FreeMiNT.
33077         * lib/fpurge.c (fpurge): Correct last commit.
33078         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
33079
33080 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33081
33082         Fix unportable awk script in vc-list-files.
33083         * build-aux/vc-list-files: In the replacement awk script, use
33084         substr with a second argument of 1, not zero.
33085         Report by Simon Josefsson.
33086
33087 2009-02-28  Bruno Haible  <bruno@clisp.org>
33088
33089         More support for FreeMiNT.
33090         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
33091         to FreeMiNT today.
33092         * lib/fwriting.c (fwriting): Likewise.
33093         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
33094
33095 2009-02-28  Bruno Haible  <bruno@clisp.org>
33096
33097         * tests/test-freadseek.c (main): Disable test beyond end of file on
33098         FreeMiNT.
33099         * tests/test-ftello.c (main): Likewise.
33100         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
33101
33102 2009-02-28  Bruno Haible  <bruno@clisp.org>
33103
33104         Add tentative support for FreeMiNT.
33105         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
33106         * lib/fpurge.c (fpurge): Likewise.
33107         * lib/freadable.c (freadable): Likewise.
33108         * lib/freading.c (freading): Likewise.
33109         * lib/freadptr.c (freadptr): Likewise.
33110         * lib/freadseek.c (freadptrinc): Likewise.
33111         * lib/fseeko.c (rpl_fseeko): Likewise.
33112         * lib/fseterr.c (fseterr): Likewise.
33113         * lib/fwritable.c (fwritable): Likewise.
33114         * lib/fwriting.c (fwriting): Likewise.
33115         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
33116         Hourihane.
33117         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
33118
33119 2009-02-28  Bruno Haible  <bruno@clisp.org>
33120
33121         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
33122         SIGCHLD.
33123         Reported by Jim Meyering.
33124
33125 2009-02-28  Bruno Haible  <bruno@clisp.org>
33126
33127         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
33128         Mention the results of these tests on various platforms.
33129         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
33130         order.
33131         * doc/posix-functions/printf.texi: Likewise.
33132         * doc/posix-functions/snprintf.texi: Likewise.
33133         * doc/posix-functions/sprintf.texi: Likewise.
33134         * doc/posix-functions/vfprintf.texi: Likewise.
33135         * doc/posix-functions/vprintf.texi: Likewise.
33136         * doc/posix-functions/vsnprintf.texi: Likewise.
33137         * doc/posix-functions/vsprintf.texi: Likewise.
33138         * doc/glibc-functions/obstack_printf.texi: Likewise.
33139         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
33140
33141 2009-02-28  Bruno Haible  <bruno@clisp.org>
33142
33143         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
33144         Reported by Loïc Minier <lool@dooz.org>.
33145
33146 2009-02-27  Bruno Haible  <bruno@clisp.org>
33147
33148         * gnulib-tool (func_import): Make the sed expression used to create the
33149         sed script for updating the .gitignore file POSIX compliant.
33150         Reported by Eric Blake.
33151
33152 2009-02-27  Bruno Haible  <bruno@clisp.org>
33153
33154         * gnulib-tool (sed): Don't alias as "sed --posix".
33155         Reported by Eric Blake.
33156
33157 2009-02-27  Bruno Haible  <bruno@clisp.org>
33158
33159         Avoid test link errors.
33160         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
33161         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
33162         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
33163         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
33164         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33165
33166 2009-02-27  Bruno Haible  <bruno@clisp.org>
33167
33168         Avoid spurious "(cached)" in configure output.
33169         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
33170         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
33171         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
33172         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
33173         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
33174         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
33175         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
33176         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
33177         Reported by Eric Blake.
33178
33179 2009-02-27  Eric Blake  <ebb9@byu.net>
33180
33181         printf: fix regression in previous patch
33182         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
33183
33184 2009-02-27  Bruno Haible  <bruno@clisp.org>
33185
33186         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
33187         value.
33188         * lib/stdint.in.h: Likewise.
33189         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
33190
33191 2009-02-27  Eric Blake  <ebb9@byu.net>
33192
33193         doc: mention more functions added in cygwin 1.7.0
33194         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
33195         addition.
33196         * doc/posix-functions/open_wmemstream.texi: Likewise.
33197         * doc/posix-functions/wcsnlen.texi: Likewise.
33198         * doc/posix-functions/wcsnrtombs.texi: Likewise.
33199         * doc/posix-functions/wcstod.texi: Likewise.
33200         * doc/posix-functions/wcstof.texi: Likewise.
33201         * doc/posix-functions/wcstoimax.texi: Likewise.
33202         * doc/posix-functions/wcstok.texi: Likewise.
33203         * doc/posix-functions/wcstoumax.texi: Likewise.
33204
33205         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
33206         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
33207         * doc/posix-functions/fprintf.texi: Update.
33208         * doc/posix-functions/printf.texi: Update.
33209         * doc/posix-functions/snprintf.texi: Update.
33210         * doc/posix-functions/sprintf.texi: Update.
33211         * doc/posix-functions/vfprintf.texi: Update.
33212         * doc/posix-functions/vprintf.texi: Update.
33213         * doc/posix-functions/vsnprintf.texi: Update.
33214         * doc/posix-functions/vsprintf.texi: Update.
33215         * doc/glibc-functions/obstack_printf.texi: Update.
33216         * doc/glibc-functions/obstack_vprintf.texi: Update.
33217
33218 2009-02-26  Eric Blake  <ebb9@byu.net>
33219
33220         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
33221         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
33222         compilation bug by using runtime conversion.
33223         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
33224         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
33225         * modules/ceill-tests (Files): Use nan.h.
33226         * modules/floorl-tests (Files): Likewise.
33227         * modules/frexpl-tests (Files): Likewise.
33228         * modules/isnanl-tests (Files): Likewise.
33229         * modules/ldexpl-tests (Files): Likewise.
33230         * modules/roundl-tests (Files): Likewise.
33231         * modules/truncl-tests (Files): Likewise.
33232         * tests/test-ceill.c (main): Use a working NaN.
33233         * tests/test-floorl.c (main): Likewise.
33234         * tests/test-frexpl.c (main): Likewise.
33235         * tests/test-isnan.c (test_long_double): Likewise.
33236         * tests/test-isnanl.h (main): Likewise.
33237         * tests/test-ldexpl.h (main): Likewise.
33238         * tests/test-roundl.h (main): Likewise.
33239         * tests/test-truncl.h (main): Likewise.
33240         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
33241
33242 2009-02-26  Eric Blake  <ebb9@byu.net>
33243             Bruno Haible  <bruno@clisp.org>
33244
33245         Work around a *printf bug with %ls on Solaris.
33246         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
33247         precision is specified, sprintf stops converting the wide string
33248         argument when the number of bytes that have been produced by this
33249         conversion equals or exceeds the precision.
33250         * doc/posix-functions/fprintf.texi: Update.
33251         * doc/posix-functions/printf.texi: Update.
33252         * doc/posix-functions/snprintf.texi: Update.
33253         * doc/posix-functions/sprintf.texi: Update.
33254         * doc/posix-functions/vfprintf.texi: Update.
33255         * doc/posix-functions/vprintf.texi: Update.
33256         * doc/posix-functions/vsnprintf.texi: Update.
33257         * doc/posix-functions/vsprintf.texi: Update.
33258         * doc/glibc-functions/obstack_printf.texi: Update.
33259         * doc/glibc-functions/obstack_vprintf.texi: Update.
33260
33261 2009-02-26  Eric Blake  <ebb9@byu.net>
33262
33263         stdlib: favor compiler check of random.h
33264         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
33265         to avoid an ObjC random.h installed by Swarm.
33266
33267 2009-02-26  Bruno Haible  <bruno@clisp.org>
33268
33269         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
33270         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
33271         Reported by Gary V. Vaughan <gary@gnu.org>.
33272
33273 2009-02-26  Bruno Haible  <bruno@clisp.org>
33274
33275         Fix *printf behaviour regarding the %ls directive.
33276         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
33277         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
33278         NEED_PRINTF_DIRECTIVE_LS.
33279         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
33280         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
33281         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33282         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
33283         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
33284         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
33285         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
33286         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33287         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33288         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33289         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33290         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
33291         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33292         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33293         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33294         * doc/posix-functions/fprintf.texi: Update.
33295         * doc/posix-functions/printf.texi: Update.
33296         * doc/posix-functions/snprintf.texi: Update.
33297         * doc/posix-functions/sprintf.texi: Update.
33298         * doc/posix-functions/vfprintf.texi: Update.
33299         * doc/posix-functions/vprintf.texi: Update.
33300         * doc/posix-functions/vsnprintf.texi: Update.
33301         * doc/posix-functions/vsprintf.texi: Update.
33302         * doc/glibc-functions/obstack_printf.texi: Update.
33303         * doc/glibc-functions/obstack_vprintf.texi: Update.
33304         Reported by Eric Blake.
33305
33306 2009-02-25  Bruno Haible  <bruno@clisp.org>
33307
33308         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
33309         with known value.
33310         Reported by Gary V. Vaughan <gary@gnu.org>.
33311
33312 2009-02-25  Bruno Haible  <bruno@clisp.org>
33313
33314         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
33315         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
33316         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
33317         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
33318         Reported by Gary V. Vaughan <gary@gnu.org>.
33319
33320 2009-02-25  Bruno Haible  <bruno@clisp.org>
33321
33322         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
33323         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
33324         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
33325         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
33326         Reported by Gary V. Vaughan <gary@gnu.org>.
33327
33328 2009-02-25  Eric Blake  <ebb9@byu.net>
33329
33330         tests: skip fseek/ftell tests if ungetc is broken
33331         * m4/ungetc.m4: New file.
33332         * modules/fseek-tests: Split test, so ungetc dependency is
33333         separate from rest of test.
33334         * modules/fseeko-tests: Likewise.
33335         * modules/ftell-tests: Likewise.
33336         * modules/ftello-tests: Likewise.
33337         * tests/test-fseek.c (main): Isolate ungetc dependency.
33338         * tests/test-fseeko.c (main): Likewise.
33339         * tests/test-ftell.c (main): Likewise.
33340         * tests/test-ftello.c (main): Likewise.
33341         * tests/test-fseek2.sh: New file.
33342         * tests/test-fseeko2.sh: Likewise.
33343         * tests/test-ftell2.sh: Likewise.
33344         * tests/test-ftello2.sh: Likewise.
33345
33346 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
33347
33348         test-getaddrinfo: fix usage of skip return code 77
33349         * tests/test-gettaddrinfo.c: Return skip code 77 only
33350         for first occurance of skip (4x77 is not 77)
33351
33352 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
33353
33354         strtod: avoid C99 decl-after-statement
33355         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
33356
33357 2009-02-24  Eric Blake  <ebb9@byu.net>
33358
33359         strtod: detect HP-UX 11.31 bug
33360         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
33361         Reported by Gary V. Vaughan.
33362
33363 2009-02-23  Bruno Haible  <bruno@clisp.org>
33364
33365         Fix invalid read past end of memory block.
33366         * lib/vasnprintf.c (DCHAR_SET): Define.
33367         (local_wcslen): Define only when needed.
33368         (local_strnlen, local_wcsnlen): New functions.
33369         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
33370         directives that involve a conversion ourselves.
33371         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
33372         wcsnlen, mbrtowc, wcrtomb.
33373         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
33374         * tests/test-vasprintf-posix.c (test_function): Likewise.
33375         * tests/test-snprintf-posix.h (test_function): Likewise.
33376         * tests/test-sprintf-posix.h (test_function): Likewise.
33377         Reported by Ben Pfaff <blp@cs.stanford.edu>.
33378
33379 2009-02-22  Bruno Haible  <bruno@clisp.org>
33380
33381         Implement new clarified decomposition of Hangul syllables.
33382         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
33383         of type LTV, return only a pairwise decomposition.
33384         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
33385         Likewise.
33386         * tests/uninorm/test-decomposition.c (main): Updated expected result.
33387         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
33388         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
33389
33390 2009-02-22  Bruno Haible  <bruno@clisp.org>
33391
33392         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
33393         zero-length results and shrink excess allocated memory.
33394         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
33395         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
33396         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
33397         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
33398         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
33399         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
33400         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
33401         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
33402         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
33403         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
33404         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
33405         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
33406
33407 2009-02-21  Bruno Haible  <bruno@clisp.org>
33408
33409         * doc/gnulib.texi: Include safe-alloc.texi earlier.
33410         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
33411         spaces after a period. Put a space between a macro name and its
33412         argument list. Trivial rewordings.
33413         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
33414         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
33415         (main): Return 0 explicitly.
33416
33417 2009-02-21  Bruno Haible  <bruno@clisp.org>
33418
33419         Tests for module 'uninorm/filter'.
33420         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
33421         * modules/uninorm/filter-tests: New file.
33422
33423         New module 'uninorm/filter'.
33424         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
33425         uninorm_filter_flush, uninorm_filter_free): New declarations.
33426         * lib/uninorm/uninorm-filter.c: New file.
33427         * modules/uninorm/filter: New file.
33428
33429 2009-02-21  Bruno Haible  <bruno@clisp.org>
33430
33431         Tests for module 'uninorm/nfkc'.
33432         * tests/uninorm/test-nfkc.c: New file.
33433         * tests/uninorm/test-u8-nfkc.c: New file.
33434         * tests/uninorm/test-u16-nfkc.c: New file.
33435         * tests/uninorm/test-u32-nfkc.c: New file.
33436         * tests/uninorm/test-u32-nfkc-big.sh: New file.
33437         * tests/uninorm/test-u32-nfkc-big.c: New file.
33438         * modules/uninorm/nfkc-tests: New file.
33439
33440         New module 'uninorm/nfkc'.
33441         * lib/uninorm/nfkc.c: New file.
33442         * modules/uninorm/nfkc: New file.
33443
33444         Tests for module 'uninorm/nfkd'.
33445         * tests/uninorm/test-nfkd.c: New file.
33446         * tests/uninorm/test-u8-nfkd.c: New file.
33447         * tests/uninorm/test-u16-nfkd.c: New file.
33448         * tests/uninorm/test-u32-nfkd.c: New file.
33449         * tests/uninorm/test-u32-nfkd-big.sh: New file.
33450         * tests/uninorm/test-u32-nfkd-big.c: New file.
33451         * modules/uninorm/nfkd-tests: New file.
33452
33453         New module 'uninorm/nfkd'.
33454         * lib/uninorm/nfkd.c: New file.
33455         * modules/uninorm/nfkd: New file.
33456
33457         Tests for module 'uninorm/nfc'.
33458         * tests/uninorm/test-nfc.c: New file.
33459         * tests/uninorm/test-u8-nfc.c: New file.
33460         * tests/uninorm/test-u16-nfc.c: New file.
33461         * tests/uninorm/test-u32-nfc.c: New file.
33462         * tests/uninorm/test-u32-nfc-big.sh: New file.
33463         * tests/uninorm/test-u32-nfc-big.c: New file.
33464         * modules/uninorm/nfc-tests: New file.
33465
33466         New module 'uninorm/nfc'.
33467         * lib/uninorm/nfc.c: New file.
33468         * modules/uninorm/nfc: New file.
33469
33470         Tests for module 'uninorm/nfd'.
33471         * tests/uninorm/test-nfd.c: New file.
33472         * tests/uninorm/test-u8-nfd.c: New file.
33473         * tests/uninorm/test-u16-nfd.c: New file.
33474         * tests/uninorm/test-u32-nfd.c: New file.
33475         * tests/uninorm/test-u32-nfd-big.sh: New file.
33476         * tests/uninorm/test-u32-nfd-big.c: New file.
33477         * tests/uninorm/test-u32-normalize-big.h: New file.
33478         * tests/uninorm/test-u32-normalize-big.c: New file.
33479         * tests/uninorm/NormalizationTest.txt: New file, created from
33480         Unicode 5.1.0 NormalizationTest.txt.
33481         * modules/uninorm/nfd-tests: New file.
33482
33483         New module 'uninorm/nfd'.
33484         * lib/uninorm/nfd.c: New file.
33485         * modules/uninorm/nfd: New file.
33486
33487         New module 'uninorm/u32-normalize'.
33488         * lib/uninorm/u32-normalize.c: New file.
33489         * modules/uninorm/u32-normalize: New file.
33490
33491         New module 'uninorm/u16-normalize'.
33492         * lib/uninorm/u16-normalize.c: New file.
33493         * modules/uninorm/u16-normalize: New file.
33494
33495         New module 'uninorm/u8-normalize'.
33496         * lib/uninorm/u8-normalize.c: New file.
33497         * lib/uninorm/normalize-internal.h: New file.
33498         * lib/uninorm/u-normalize-internal.h: New file.
33499         * modules/uninorm/u8-normalize: New file.
33500
33501         New module 'uninorm/decompose-internal'.
33502         * lib/uninorm/decompose-internal.c: New file.
33503         * modules/uninorm/decompose-internal: New file.
33504
33505         Tests for module 'uninorm/composition'.
33506         * tests/uninorm/test-composition.c: New file.
33507         * modules/uninorm/composition-tests: New file.
33508
33509         New module 'uninorm/composition'.
33510         * lib/uninorm/composition.c: New file.
33511         * lib/uninorm/composition-table.gperf: New file, generated by
33512         gen-uni-tables.
33513         * modules/uninorm/composition: New file.
33514
33515         Tests for module 'uninorm/compat-decomposition'.
33516         * tests/uninorm/test-compat-decomposition.c: New file.
33517         * modules/uninorm/compat-decomposition-tests: New file.
33518
33519         New module 'uninorm/compat-decomposition'.
33520         * lib/uninorm/decompose-internal.h: New file.
33521         * lib/uninorm/compat-decomposition.c: New file.
33522         * modules/uninorm/compat-decomposition: New file.
33523
33524         Tests for module 'uninorm/canonical-decomposition'.
33525         * tests/uninorm/test-canonical-decomposition.c: New file.
33526         * modules/uninorm/canonical-decomposition-tests: New file.
33527
33528         New module 'uninorm/canonical-decomposition'.
33529         * lib/uninorm/canonical-decomposition.c: New file.
33530         * modules/uninorm/canonical-decomposition: New file.
33531
33532         Tests for module 'uninorm/decomposition'.
33533         * tests/uninorm/test-decomposition.c: New file.
33534         * modules/uninorm/decomposition-tests: New file.
33535
33536         New module 'uninorm/decomposition'.
33537         * lib/uninorm/decomposition.c: New file.
33538         * modules/uninorm/decomposition: New file.
33539
33540         New module 'uninorm/decomposition-table'.
33541         * lib/uninorm/decomposition-table.h: New file.
33542         * lib/uninorm/decomposition-table.c: New file.
33543         * lib/uninorm/decomposition-table1.h: New file, generated by
33544         gen-uni-tables.
33545         * lib/uninorm/decomposition-table2.h: New file, generated by
33546         gen-uni-tables.
33547         * modules/uninorm/decomposition-table: New file.
33548
33549         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
33550         (UC_DECOMP_*): New enumeration items.
33551         (get_decomposition): New function.
33552         (struct decomp_table): New type.
33553         (output_decomposition, output_decomposition_tables): New functions.
33554         (unicode_composition_exclusions): New variable.
33555         (fill_composition_exclusions, debug_output_composition_tables): New
33556         functions.
33557         (main): Accept one more argument. Invoke fill_composition_exclusions.
33558         Output decomposition and composition tables.
33559
33560         New module 'uninorm/base'.
33561         * lib/uninorm.h: New file.
33562         * lib/unictype.h: Update comment.
33563         * modules/uninorm/base: New file.
33564
33565 2009-02-21  David Lutterkort  <lutter@redhat.com>
33566
33567         Tests for module 'safe-alloc'.
33568         * tests/test-safe-alloc.c: New file.
33569         * modules/safe-alloc-tests: New file.
33570
33571         New module 'safe-alloc'.
33572         * lib/safe-alloc.h: New file.
33573         * lib/safe-alloc.c: New file.
33574         * m4/safe-alloc.m4: New file.
33575         * modules/safe-alloc: New file.
33576         * doc/safe-alloc.texi: New file.
33577         * doc/gnulib.texi: Include it.
33578         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
33579         safe-alloc.
33580
33581 2009-02-18  Bruno Haible  <bruno@clisp.org>
33582
33583         Fix link error on non-glibc systems.
33584         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
33585         variable.
33586         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33587
33588 2009-02-18  Jim Meyering  <meyering@redhat.com>
33589
33590         fts: avoid used-uninitialized error due to recent change
33591         * lib/fts.c (fts_read): Guard uses of the new member,
33592         parent->fts_n_dirs_remaining, since it's not relevant for
33593         the parent of a directory specified on the command-line.
33594
33595 2009-02-17  James Youngman  <jay@gnu.org>
33596             Bruno Haible  <bruno@clisp.org>
33597
33598         * m4/include_next.m4: Reformulate comment.
33599
33600 2009-02-16  Jim Meyering  <meyering@redhat.com>
33601
33602         fts: add #if guards so that the fts_lgpl module still builds
33603         * lib/fts.c: Guard just-added hash-table-using parts with
33604         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
33605         Reported by Simon Josefsson.
33606
33607 2009-02-15  Bruno Haible  <bruno@clisp.org>
33608
33609         * modules/array-mergesort-tests: New file.
33610         * tests/test-array-mergesort.c: New file.
33611
33612         New module 'array-mergesort'.
33613         * modules/array-mergesort: New file.
33614         * lib/array-mergesort.h: New file.
33615
33616 2009-02-15  Bruno Haible  <bruno@clisp.org>
33617
33618         Fix 2009-02-07 commit.
33619         * lib/gen-uni-tables.c (output_predicate, output_category,
33620         output_combclass, output_bidi_category, output_decimal_digit,
33621         output_digit, output_numeric, output_mirror, output_scripts,
33622         output_ident_category, output_simple_mapping): Fix format directives.
33623         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
33624
33625 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
33626
33627         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
33628         fixes are available from IBM.
33629
33630 2009-02-13  Jim Meyering  <meyering@redhat.com>
33631
33632         fts: arrange not to stat non-directories in more cases
33633         This makes GNU find (when it doesn't need to stat each file)
33634         *much* more efficient at traversing reiserfs file systems.
33635         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
33636         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
33637         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
33638         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
33639         (leaf_optimization_applies): New function.
33640         (LCO_hash, LCO_compare): New helper functions.
33641         (link_count_optimize_ok): New function.
33642         (fts_stat): Initialize new member (if dir).
33643         (fts_read): Decrement parent's fts_n_dirs_remaining count if
33644         we've just stat'ed a directory.  Skip the stat call when possible.
33645         ---
33646         Note this AFS-related exchange:
33647         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
33648         and note find's pioctl call in find/fstype.c.
33649         But that is necessary only if you want to enable the
33650         optimization for AFS, and for now, I don't.
33651
33652         fts: move a function definition "up" (no semantic change)
33653         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
33654         "up" to precede upcoming use of a related function.
33655
33656 2009-02-11  Jim Meyering  <meyering@redhat.com>
33657
33658         fts: correct internal computation of nlinks (optimization-related)
33659         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
33660         whether the current entry is a directory, so don't test it.
33661
33662 2009-02-10  Bruno Haible  <bruno@clisp.org>
33663
33664         Tests for module 'uniwbrk/ulc-wordbreaks'.
33665         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
33666         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
33667         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
33668
33669         Tests for module 'uniwbrk/u32-wordbreaks'.
33670         * modules/uniwbrk/u32-wordbreaks-tests: New file.
33671         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
33672
33673         Tests for module 'uniwbrk/u16-wordbreaks'.
33674         * modules/uniwbrk/u16-wordbreaks-tests: New file.
33675         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
33676
33677         Tests for module 'uniwbrk/u8-wordbreaks'.
33678         * modules/uniwbrk/u8-wordbreaks-tests: New file.
33679         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
33680
33681 2009-02-10  Bruno Haible  <bruno@clisp.org>
33682
33683         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
33684         property.
33685         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
33686         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
33687         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
33688
33689 2009-02-10  Simon Josefsson  <simon@josefsson.org>
33690
33691         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
33692         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
33693
33694 2009-02-10  Bruno Haible  <bruno@clisp.org>
33695
33696         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
33697         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
33698         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
33699         * lib/unilbrk/u8-possible-linebreaks.c: Update.
33700         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
33701         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
33702
33703 2009-02-09  Simon Josefsson  <simon@josefsson.org>
33704
33705         * lib/sockets.h (gl_fd_to_handle): New function.
33706
33707         * tests/test-sockets.c: Call gl_fd_to_handle.
33708
33709 2009-02-09  Bruno Haible  <bruno@clisp.org>
33710
33711         * doc/havelib.texi: Document the conventions on bi-arch systems.
33712
33713 2009-02-08  Bruno Haible  <bruno@clisp.org>
33714
33715         Document the AC_LIB_LINKFLAGS macro.
33716         * doc/havelib.texi: New file, mostly written on 2005-05-24.
33717         * doc/gnulib.texi: Include it.
33718
33719 2009-02-08  Bruno Haible  <bruno@clisp.org>
33720
33721         Fix wrong order of sections, compared to TOC.
33722         * doc/gnulib.texi: Include relocatable-maint.texi after the
33723         "Regular expressions" node, not before.
33724
33725 2009-02-08  Bruno Haible  <bruno@clisp.org>
33726
33727         Tests for module 'unicase/totitle'.
33728         * modules/unicase/totitle-tests: New file.
33729
33730         Tests for module 'unicase/tolower'.
33731         * modules/unicase/tolower-tests: New file.
33732
33733         Tests for module 'unicase/toupper'.
33734         * modules/unicase/toupper-tests: New file.
33735         * tests/unicase/test-mapping-part1.h: New file.
33736         * tests/unicase/test-mapping-part2.h: New file.
33737
33738         New module 'unicase/totitle'.
33739         * modules/unicase/totitle: New file.
33740         * lib/unicase/totitle.c: New file.
33741
33742         New module 'unicase/tolower'.
33743         * modules/unicase/tolower: New file.
33744         * lib/unicase/tolower.c: New file.
33745
33746         New module 'unicase/toupper'.
33747         * modules/unicase/toupper: New file.
33748         * lib/unicase/toupper.c: New file.
33749         * lib/unicase/simple-mapping.h: New file.
33750
33751         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
33752         (mapping_table): New structure.
33753         (output_simple_mapping): New function.
33754         (main): Invoke output_simple_mapping_test and output_simple_mapping.
33755         * modules/gen-uni-tables (Description): Update.
33756         * lib/unicase/toupper.h: New file, automatically generated by
33757         gen-uni-tables.
33758         * lib/unicase/tolower.h: New file, automatically generated by
33759         gen-uni-tables.
33760         * lib/unicase/totitle.h: New file, automatically generated by
33761         gen-uni-tables.
33762         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
33763         gen-uni-tables.
33764         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
33765         gen-uni-tables.
33766         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
33767         gen-uni-tables.
33768
33769         New module 'unicase/base'.
33770         * modules/unicase/base: New file.
33771         * lib/unicase.h: New file.
33772
33773 2009-02-08  Bruno Haible  <bruno@clisp.org>
33774
33775         New module 'uniwbrk/ulc-wordbreaks'.
33776         * modules/uniwbrk/ulc-wordbreaks: New file.
33777         * lib/uniwbrk/ulc-wordbreaks.c: New file.
33778
33779         New module 'uniwbrk/u32-wordbreaks'.
33780         * modules/uniwbrk/u32-wordbreaks: New file.
33781         * lib/uniwbrk/u32-wordbreaks.c: New file.
33782
33783         New module 'uniwbrk/u16-wordbreaks'.
33784         * modules/uniwbrk/u16-wordbreaks: New file.
33785         * lib/uniwbrk/u16-wordbreaks.c: New file.
33786
33787         New module 'uniwbrk/u8-wordbreaks'.
33788         * modules/uniwbrk/u8-wordbreaks: New file.
33789         * lib/uniwbrk/u8-wordbreaks.c: New file.
33790         * lib/uniwbrk/u-wordbreaks.h: New file.
33791
33792         New module 'uniwbrk/table'.
33793         * modules/uniwbrk/table: New file.
33794         * lib/uniwbrk/wbrktable.h: New file.
33795         * lib/uniwbrk/wbrktable.c: New file.
33796
33797         New module 'uniwbrk/wordbreak-property'.
33798         * modules/uniwbrk/wordbreak-property: New file.
33799         * lib/uniwbrk/wordbreak-property.c: New file.
33800
33801         * lib/gen-uni-tables.c (WBP_*): New enum items.
33802         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
33803         (unicode_org_wbp): New variable.
33804         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
33805         New functions.
33806         (wbp_table): New structure.
33807         (output_wbp, output_wbrk_tables): New functions.
33808         (main): Accept additional argument. Invoke fill_org_wbp,
33809         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
33810         output_wbrk_tables.
33811         * modules/gen-uni-tables (Description): Update.
33812         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
33813         gen-uni-tables.
33814
33815         New module 'uniwbrk/base'.
33816         * modules/uniwbrk/base: New file.
33817         * lib/uniwbrk.h: New file.
33818
33819 2009-02-08  Bruno Haible  <bruno@clisp.org>
33820
33821         Update to Unicode 5.1.0.
33822         * lib/gen-uni-tables.c (is_property_alphabetic): Include
33823         U+2185..U+2188.
33824         (is_property_default_ignorable_code_point): Don't include characters
33825         of category Cc or Cs and not-a-characters.
33826         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
33827         U+0D79, U+109E, U+109F, U+A60C.
33828         * lib/unictype/bidi_of.h: Regenerated.
33829         * lib/unictype/blocks.h: Regenerated.
33830         * lib/unictype/categ_C.h: Regenerated.
33831         * lib/unictype/categ_Cf.h: Regenerated.
33832         * lib/unictype/categ_Cn.h: Regenerated.
33833         * lib/unictype/categ_L.h: Regenerated.
33834         * lib/unictype/categ_Ll.h: Regenerated.
33835         * lib/unictype/categ_Lm.h: Regenerated.
33836         * lib/unictype/categ_Lo.h: Regenerated.
33837         * lib/unictype/categ_Lu.h: Regenerated.
33838         * lib/unictype/categ_M.h: Regenerated.
33839         * lib/unictype/categ_Mc.h: Regenerated.
33840         * lib/unictype/categ_Me.h: Regenerated.
33841         * lib/unictype/categ_Mn.h: Regenerated.
33842         * lib/unictype/categ_N.h: Regenerated.
33843         * lib/unictype/categ_Nd.h: Regenerated.
33844         * lib/unictype/categ_Nl.h: Regenerated.
33845         * lib/unictype/categ_No.h: Regenerated.
33846         * lib/unictype/categ_P.h: Regenerated.
33847         * lib/unictype/categ_Pd.h: Regenerated.
33848         * lib/unictype/categ_Pe.h: Regenerated.
33849         * lib/unictype/categ_Pf.h: Regenerated.
33850         * lib/unictype/categ_Pi.h: Regenerated.
33851         * lib/unictype/categ_Po.h: Regenerated.
33852         * lib/unictype/categ_Ps.h: Regenerated.
33853         * lib/unictype/categ_S.h: Regenerated.
33854         * lib/unictype/categ_Sk.h: Regenerated.
33855         * lib/unictype/categ_Sm.h: Regenerated.
33856         * lib/unictype/categ_So.h: Regenerated.
33857         * lib/unictype/categ_of.h: Regenerated.
33858         * lib/unictype/combining.h: Regenerated.
33859         * lib/unictype/ctype_alnum.h: Regenerated.
33860         * lib/unictype/ctype_alpha.h: Regenerated.
33861         * lib/unictype/ctype_graph.h: Regenerated.
33862         * lib/unictype/ctype_lower.h: Regenerated.
33863         * lib/unictype/ctype_print.h: Regenerated.
33864         * lib/unictype/ctype_punct.h: Regenerated.
33865         * lib/unictype/ctype_upper.h: Regenerated.
33866         * lib/unictype/decdigit.h: Regenerated.
33867         * lib/unictype/digit.h: Regenerated.
33868         * lib/unictype/mirror.h: Regenerated.
33869         * lib/unictype/numeric.h: Regenerated.
33870         * lib/unictype/pr_alphabetic.h: Regenerated.
33871         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
33872         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
33873         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
33874         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
33875         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
33876         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
33877         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
33878         * lib/unictype/pr_combining.h: Regenerated.
33879         * lib/unictype/pr_dash.h: Regenerated.
33880         * lib/unictype/pr_decimal_digit.h: Regenerated.
33881         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
33882         * lib/unictype/pr_deprecated.h: Regenerated.
33883         * lib/unictype/pr_diacritic.h: Regenerated.
33884         * lib/unictype/pr_extender.h: Regenerated.
33885         * lib/unictype/pr_format_control.h: Regenerated.
33886         * lib/unictype/pr_grapheme_base.h: Regenerated.
33887         * lib/unictype/pr_grapheme_extend.h: Regenerated.
33888         * lib/unictype/pr_grapheme_link.h: Regenerated.
33889         * lib/unictype/pr_id_continue.h: Regenerated.
33890         * lib/unictype/pr_id_start.h: Regenerated.
33891         * lib/unictype/pr_ideographic.h: Regenerated.
33892         * lib/unictype/pr_ignorable_control.h: Regenerated.
33893         * lib/unictype/pr_lowercase.h: Regenerated.
33894         * lib/unictype/pr_math.h: Regenerated.
33895         * lib/unictype/pr_numeric.h: Regenerated.
33896         * lib/unictype/pr_other_alphabetic.h: Regenerated.
33897         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
33898         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
33899         * lib/unictype/pr_other_id_continue.h: Regenerated.
33900         * lib/unictype/pr_other_lowercase.h: Regenerated.
33901         * lib/unictype/pr_other_math.h: Regenerated.
33902         * lib/unictype/pr_punctuation.h: Regenerated.
33903         * lib/unictype/pr_sentence_terminal.h: Regenerated.
33904         * lib/unictype/pr_soft_dotted.h: Regenerated.
33905         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
33906         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
33907         * lib/unictype/pr_unified_ideograph.h: Regenerated.
33908         * lib/unictype/pr_uppercase.h: Regenerated.
33909         * lib/unictype/pr_xid_continue.h: Regenerated.
33910         * lib/unictype/pr_xid_start.h: Regenerated.
33911         * lib/unictype/pr_zero_width.h: Regenerated.
33912         * lib/unictype/scripts.h: Regenerated.
33913         * lib/unictype/scripts_byname.gperf: Regenerated.
33914         * lib/unictype/sy_java_ident.h: Regenerated.
33915         * lib/unilbrk/lbrkprop1.h: Regenerated.
33916         * lib/unilbrk/lbrkprop2.h: Regenerated.
33917         * tests/unictype/test-categ_C.c: Regenerated.
33918         * tests/unictype/test-categ_Cf.c: Regenerated.
33919         * tests/unictype/test-categ_Cn.c: Regenerated.
33920         * tests/unictype/test-categ_L.c: Regenerated.
33921         * tests/unictype/test-categ_Ll.c: Regenerated.
33922         * tests/unictype/test-categ_Lm.c: Regenerated.
33923         * tests/unictype/test-categ_Lo.c: Regenerated.
33924         * tests/unictype/test-categ_Lu.c: Regenerated.
33925         * tests/unictype/test-categ_M.c: Regenerated.
33926         * tests/unictype/test-categ_Mc.c: Regenerated.
33927         * tests/unictype/test-categ_Me.c: Regenerated.
33928         * tests/unictype/test-categ_Mn.c: Regenerated.
33929         * tests/unictype/test-categ_N.c: Regenerated.
33930         * tests/unictype/test-categ_Nd.c: Regenerated.
33931         * tests/unictype/test-categ_Nl.c: Regenerated.
33932         * tests/unictype/test-categ_No.c: Regenerated.
33933         * tests/unictype/test-categ_P.c: Regenerated.
33934         * tests/unictype/test-categ_Pd.c: Regenerated.
33935         * tests/unictype/test-categ_Pe.c: Regenerated.
33936         * tests/unictype/test-categ_Pf.c: Regenerated.
33937         * tests/unictype/test-categ_Pi.c: Regenerated.
33938         * tests/unictype/test-categ_Po.c: Regenerated.
33939         * tests/unictype/test-categ_Ps.c: Regenerated.
33940         * tests/unictype/test-categ_S.c: Regenerated.
33941         * tests/unictype/test-categ_Sk.c: Regenerated.
33942         * tests/unictype/test-categ_Sm.c: Regenerated.
33943         * tests/unictype/test-categ_So.c: Regenerated.
33944         * tests/unictype/test-ctype_alnum.c: Regenerated.
33945         * tests/unictype/test-ctype_alpha.c: Regenerated.
33946         * tests/unictype/test-ctype_graph.c: Regenerated.
33947         * tests/unictype/test-ctype_lower.c: Regenerated.
33948         * tests/unictype/test-ctype_print.c: Regenerated.
33949         * tests/unictype/test-ctype_punct.c: Regenerated.
33950         * tests/unictype/test-ctype_upper.c: Regenerated.
33951         * tests/unictype/test-decdigit.h: Regenerated.
33952         * tests/unictype/test-digit.h: Regenerated.
33953         * tests/unictype/test-numeric.h: Regenerated.
33954         * tests/unictype/test-pr_alphabetic.c: Regenerated.
33955         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
33956         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
33957         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
33958         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
33959         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
33960         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
33961         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
33962         * tests/unictype/test-pr_combining.c: Regenerated.
33963         * tests/unictype/test-pr_dash.c: Regenerated.
33964         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
33965         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
33966         * tests/unictype/test-pr_deprecated.c: Regenerated.
33967         * tests/unictype/test-pr_diacritic.c: Regenerated.
33968         * tests/unictype/test-pr_extender.c: Regenerated.
33969         * tests/unictype/test-pr_format_control.c: Regenerated.
33970         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
33971         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
33972         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
33973         * tests/unictype/test-pr_id_continue.c: Regenerated.
33974         * tests/unictype/test-pr_id_start.c: Regenerated.
33975         * tests/unictype/test-pr_ideographic.c: Regenerated.
33976         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
33977         * tests/unictype/test-pr_lowercase.c: Regenerated.
33978         * tests/unictype/test-pr_math.c: Regenerated.
33979         * tests/unictype/test-pr_numeric.c: Regenerated.
33980         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
33981         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
33982         Regenerated.
33983         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
33984         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
33985         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
33986         * tests/unictype/test-pr_other_math.c: Regenerated.
33987         * tests/unictype/test-pr_punctuation.c: Regenerated.
33988         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
33989         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
33990         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
33991         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
33992         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
33993         * tests/unictype/test-pr_uppercase.c: Regenerated.
33994         * tests/unictype/test-pr_xid_continue.c: Regenerated.
33995         * tests/unictype/test-pr_xid_start.c: Regenerated.
33996         * tests/unictype/test-pr_zero_width.c: Regenerated.
33997
33998         Update to Unicode 5.1.0.
33999         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
34000         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
34001         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
34002         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
34003         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
34004         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
34005         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
34006         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
34007         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
34008         (nonspacing_table_ind): Update.
34009         * tests/uniwidth/test-uc_width2.sh: Update expected result.
34010
34011         Update to Unicode 5.1.0.
34012         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
34013         code transform.
34014         * lib/uniname/uniname.c (unicode_character_name,
34015         unicode_name_character): Add the range 0x1Fxxx to the code transform.
34016         * lib/uniname/uninames.h: Regenerated.
34017         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
34018
34019 2009-02-07  Bruno Haible  <bruno@clisp.org>
34020
34021         Merge gen-ctype and gen-lbrk into a single program.
34022         * lib/gen-uni-tables.c: New file, incorporating
34023         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
34024         Add directory prefixes to the names of the generated files.
34025         * lib/unictype/gen-ctype.c: Remove file.
34026         * lib/unilbrk/gen-lbrk.c: Remove file.
34027         * modules/gen-uni-tables: New file.
34028         * modules/unictype/gen-ctype: Remove file.
34029         * modules/unilbrk/gen-lbrk: Remove file.
34030
34031 2009-02-07  Bruno Haible  <bruno@clisp.org>
34032
34033         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
34034
34035         New module 'unistr/u32-strcoll'.
34036         * modules/unistr/u32-strcoll: New file.
34037         * lib/unistr/u32-strcoll.c: New file.
34038
34039         New module 'unistr/u16-strcoll'.
34040         * modules/unistr/u16-strcoll: New file.
34041         * lib/unistr/u16-strcoll.c: New file.
34042
34043         New module 'unistr/u8-strcoll'.
34044         * modules/unistr/u8-strcoll: New file.
34045         * lib/unistr/u8-strcoll.c: New file.
34046         * lib/unistr/u-strcoll.h: New file.
34047
34048 2009-02-07  Bruno Haible  <bruno@clisp.org>
34049
34050         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
34051         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
34052         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
34053         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
34054         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
34055         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
34056
34057 2009-02-07  Bruno Haible  <bruno@clisp.org>
34058
34059         Make 64-bit clean.
34060         * lib/unictype/gen-ctype.c (output_predicate, output_category,
34061         output_combclass, output_bidi_category, output_decimal_digit,
34062         output_digit, output_numeric, output_mirror, output_scripts,
34063         output_ident_category): Use proper width specifier in format strings.
34064
34065 2009-02-07  Bruno Haible  <bruno@clisp.org>
34066
34067         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
34068         failure behaviour.
34069
34070 2009-02-07  Jim Meyering  <meyering@redhat.com>
34071
34072         regex: avoid compilation failure with upcoming gcc-4.4
34073         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
34074         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
34075         "... error: integer overflow in preprocessor expression".
34076
34077 2009-02-05  Ben Pfaff  <blp@gnu.org>
34078
34079         Fix link errors on Windows when close module is used.
34080         * modules/close: Add $(LIB_CLOSE) to Link section.
34081         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
34082         $(LIB_CLOSE) on Windows.
34083
34084 2009-02-05  Jim Meyering  <meyering@redhat.com>
34085
34086         still avoid unused-parameter warnings, but do it cleanly
34087         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
34088         (get_fs_usage): Cast to void instead.
34089         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
34090         (dev_from_mount_options, read_file_system_list): Cast to void.
34091         Prompted by Bruno Haible.
34092
34093 2009-02-04  Jim Meyering  <meyering@redhat.com>
34094
34095         fsusage.c: correct copyright year
34096         * lib/fsusage.c: Reflect year in which the change is pushed into
34097
34098         avoid misc. warnings
34099         * lib/fsusage.c (UNUSED_PARAM): Define.
34100         (get_fs_usage): Mark parameter "disk" as unused.
34101         * lib/getugroups.c (getgrent): Use "void" in prototype.
34102         * lib/mountlist.c: Mark unused parameters.
34103         (read_file_system_list): Declare a local with "const".
34104         * lib/nanosleep.c (getnow): Declare static.
34105         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
34106
34107         dirfd: set errno upon failure
34108         * lib/dirfd.c: Include <errno.h>.
34109         Set errno to ENOTSUP when returning -1.
34110         * modules/dirfd (Depends-on): Add errno.
34111         Suggested by John Kodis <kodis@comcast.net>.
34112
34113 2009-02-01  Bruno Haible  <bruno@clisp.org>
34114
34115         Don't assume sizeof (long) >= sizeof (void *).
34116         * lib/memcmp.c: Include stdint.h.
34117         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
34118         srcp2 to 'const byte *'.
34119         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
34120         types to uintptr_t.
34121         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
34122         * modules/memcmp (Depends-on): Add stdint.
34123         Reported by Ozkan Sezer <sezeroz@gmail.com>.
34124
34125 2009-01-30  Eric Blake  <ebb9@byu.net>
34126
34127         fix more require-before-expand issues
34128         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
34129         expand, AC_PROG_AWK.
34130         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
34131
34132 2009-01-28  Eric Blake  <ebb9@byu.net>
34133
34134         version-etc: use consistent URL formatting
34135         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
34136         Improve formatting.  Use fputs for string without %.
34137
34138 2009-01-28  Jim Meyering  <meyering@redhat.com>
34139
34140         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
34141         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
34142         "underquoted definition of NAME" from autoconf-2.59.
34143
34144 2009-01-28  Bruno Haible  <bruno@clisp.org>
34145
34146         * doc/gnulib.texi: Add "Obsolete modules" to index.
34147
34148 2009-01-28  Jim Meyering  <meyering@redhat.com>
34149
34150         useless-if-before-free: recognize more variants
34151         * build-aux/useless-if-before-free: Also recognize e.g.,
34152         if (NULL != p) free (p);
34153
34154 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
34155
34156         test-getaddrinfo: skip (don't fail) this test when there's no network
34157         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
34158         on the presumption that it means you lack network access.
34159
34160 2009-01-26  Jim Meyering  <meyering@redhat.com>
34161
34162         fflush: avoid warnings on modern systems
34163         * lib/fflush.c (rpl_fflush): Move declarations of locals,
34164         pos and result, into scopes where they're used.
34165
34166 2009-01-26  Eric Blake  <ebb9@byu.net>
34167
34168         Silence warning reintroduced by recent extensions patch.
34169         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
34170         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
34171         autoconf.
34172
34173         Backport improved autoconf semantics of AC_DEFUN_ONCE.
34174         * m4/00gnulib.m4: New file.
34175         * gnulib-tool (func_get_filelist): Always use it.
34176         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
34177         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
34178
34179 2009-01-25  Bruno Haible  <bruno@clisp.org>
34180
34181         Make test-quotearg work on MacOS X and AIX.
34182         * tests/test-quotearg.sh: New file.
34183         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
34184         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
34185         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
34186         include <libintl.h>.
34187         (fake_locale): Remove variable.
34188         (gettext, dgettext, dcgettext): Remove functions.
34189         (main): Instead of setting a fake locale, set a real locale. Call
34190         textdomain and bindtextdomain.
34191         * modules/quotearg-tests (Files): Add the new files.
34192         (Depends-on): Add gettext, setenv, unsetenv.
34193         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
34194         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
34195         Augment TESTS_ENVIRONMENT.
34196
34197 2009-01-25  Bruno Haible  <bruno@clisp.org>
34198
34199         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
34200         fr_FR.ISO8859-1 locale on MacOS X.
34201         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
34202         ja_JP.eucJP locale on MacOS X.
34203         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
34204         zh_CN.GB18030 locale on MacOS X.
34205
34206 2009-01-25  Bruno Haible  <bruno@clisp.org>
34207
34208         Avoid link errors on MacOS X 10.3.
34209         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
34210         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
34211
34212 2009-01-25  Bruno Haible  <bruno@clisp.org>
34213
34214         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
34215         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
34216         * modules/pipe (Files): Remove m4/posix_spawn.m4.
34217         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
34218         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
34219         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
34220         posix_spawnattr_init, posix_spawnattr_setsigmask,
34221         posix_spawnattr_setflags, posix_spawnattr_destroy.
34222
34223         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
34224         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
34225         * modules/execute (Files): Remove m4/posix_spawn.m4.
34226         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
34227         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
34228         posix_spawnattr_init, posix_spawnattr_setsigmask,
34229         posix_spawnattr_setflags, posix_spawnattr_destroy.
34230
34231 2009-01-25  Bruno Haible  <bruno@clisp.org>
34232
34233         * lib/glthread/threadlib.c: Include <stdlib.h>.
34234
34235 2009-01-25  Bruno Haible  <bruno@clisp.org>
34236
34237         * lib/glthread/threadlib.c (dummy): New declaration.
34238
34239 2009-01-25  Bruno Haible  <bruno@clisp.org>
34240
34241         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
34242         multibyte characters also for the GB18030 encoding. Don't crash when
34243         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
34244
34245 2009-01-25  Bruno Haible  <bruno@clisp.org>
34246
34247         Avoid redefining 'struct random_data' on OSF/1 5.1.
34248         * lib/stdlib.in.h: Include <random.h> if it exists.
34249         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
34250         HAVE_RANDOM_H. Include <random.h> when testing whether
34251         'struct random_data' exists.
34252         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
34253
34254 2009-01-25  Bruno Haible  <bruno@clisp.org>
34255
34256         Don't install charset.alias on MacOS X >= 10.3.
34257         * lib/localcharset.c (DARWIN7): New macro.
34258         (get_charset_aliases): Hardcode the result for Darwin7.
34259         * modules/localcharset (install-exec-local): Don't install
34260         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
34261
34262 2009-01-25  Bruno Haible  <bruno@clisp.org>
34263
34264         Don't install charset.alias on mingw and Cygwin.
34265         * modules/localcharset (install-exec-local): Don't install
34266         charset.alias on mingw and Cygwin, if the file does not yet exist.
34267         The result for these platforms is hardcoded in localcharset.c.
34268
34269 2009-01-25  Bruno Haible  <bruno@clisp.org>
34270
34271         Make it possible again to use AC_GNU_SOURCE together with gnulib.
34272         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
34273         before requiring AC_USE_SYSTEM_EXTENSIONS.
34274
34275 2009-01-25  Jim Meyering  <meyering@redhat.com>
34276
34277         c-strtod: avoid warnings
34278         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
34279         "assignment discards qualifiers from pointer target type" warnings.
34280
34281 2009-01-24  Bruno Haible  <bruno@clisp.org>
34282
34283         Add support for non-UTF-8 locales on MacOS X.
34284         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
34285         canonical encodings. For Darwin 7 and newer, don't map traditional
34286         encodings to UTF-8.
34287         Reported by Vincent Lefevre <vincent@vinc17.org>
34288         at <http://savannah.gnu.org/bugs/?25235>.
34289
34290 2009-01-24  Bruno Haible  <bruno@clisp.org>
34291
34292         * doc/gnulib.texi (Obsolete modules): New section.
34293         Reported by Mike Frysinger <vapier@gentoo.org>.
34294
34295 2009-01-24  Bruno Haible  <bruno@clisp.org>
34296
34297         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
34298         (%.dvi): New rule.
34299
34300 2009-01-24  Bruno Haible  <bruno@clisp.org>
34301
34302         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
34303         Reported by Eric Blake.
34304
34305 2009-01-24  Bruno Haible  <bruno@clisp.org>
34306
34307         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
34308         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
34309         Reported by Gary V. Vaughan <gary@gnu.org>.
34310
34311 2009-01-24  Bruno Haible  <bruno@clisp.org>
34312
34313         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
34314
34315 2009-01-23  Bruno Haible  <bruno@clisp.org>
34316
34317         Make c-strtod, c-strtold usable in libraries.
34318         * lib/c-strtod.c: Include string.h instead of xalloc.h.
34319         (C_STRTOD): Call strdup instead of xstrdup.
34320         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
34321         * modules/c-strtold (Depends-on): Likewise.
34322         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
34323         * NEWS: Mention the change.
34324         Reported by Michael Gold <mgold@ncf.ca>.
34325
34326 2009-01-23  Jim Meyering  <meyering@redhat.com>
34327
34328         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
34329         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
34330         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
34331
34332 2009-01-23  Simon Josefsson  <simon@josefsson.org>
34333
34334         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
34335         GNU CoreUtils.
34336         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
34337         * modules/version-etc (Description): Update.
34338
34339 2009-01-22  Bruno Haible  <bruno@clisp.org>
34340
34341         Cache the C locale object.
34342         * lib/c-strtod.c (c_locale_cache): New variable.
34343         (c_locale): New function.
34344         (C_STRTOD): Use it, and don't call freelocale.
34345         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
34346         Suggested by Paolo Bonzini.
34347
34348 2009-01-21  Bruno Haible  <bruno@clisp.org>
34349
34350         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
34351         conditions other than overflow.
34352
34353 2009-01-21  Bruno Haible  <bruno@clisp.org>
34354
34355         * lib/c-strtod.c: Include errno.h.
34356         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
34357         value from STRTOD_L and STRTOD.
34358
34359 2009-01-21  Bruno Haible  <bruno@clisp.org>
34360         and Jim Meyering  <meyering@redhat.com>
34361
34362         nanosleep: skip configure test (fail it) for apple universal builds
34363         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
34364         universal builds, assume that nanosleep does not work.
34365         * modules/nanosleep (Depends-on): Add multiarch.
34366
34367         mktime: skip configure test (fail it) for apple universal builds
34368         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
34369         universal builds, assume that mktime does not work.
34370         * modules/mktime (Depends-on): Add multiarch.
34371
34372 2009-01-21  Eric Blake  <ebb9@byu.net>
34373
34374         multiarch: avoid expand-before-require warning
34375         * modules/multiarch (configure.ac): Require, rather than expand,
34376         gl_MULTIARCH.
34377         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
34378         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
34379         enforce that all clients require it.  Partial reversion of
34380         2008-12-29 patch.
34381
34382         error: avoid expand-before-require warning
34383         * modules/errno (configure.ac): Require, rather than expand,
34384         gl_HEADER_ERRNO_H.
34385         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
34386         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
34387         enforce that all clients require it.
34388
34389         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
34390         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
34391         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
34392         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
34393
34394 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
34395
34396         Revert:
34397         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
34398
34399         regex: do not depend on obsolete modules.
34400         * modules/regex: Remove memcmp and memmove.
34401
34402 2009-01-20  Bruno Haible  <bruno@clisp.org>
34403
34404         Make the 'link' module link on Windows NT 4.
34405         * lib/link.c (_WIN32_WINNT): Don't define.
34406         (CreateHardLinkFuncType): New type.
34407         (CreateHardLinkFunc, initialized): New variables.
34408         (initialize): New function.
34409         (link): Invoke CreateHardLink indirectly through the function pointer.
34410
34411 2009-01-20  Bruno Haible  <bruno@clisp.org>
34412
34413         Fix compilation failure on mingw.
34414         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
34415
34416 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
34417
34418         * doc/c-strtod.texi: Mention a couple of restrictions.
34419
34420 2009-01-20  Jim Meyering  <meyering@redhat.com>
34421
34422         gettimeofday: move more declarations out of functions
34423         * lib/gettimeofday.c: Move extern declarations of tzset and
34424         gmtime out of containing functions.  Prompted by Bruno Haible.
34425
34426 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
34427
34428         regex: do not depend on obsolete modules.
34429         * modules/regex: Remove memcmp and memmove.
34430
34431 2009-01-19  Bruno Haible  <bruno@clisp.org>
34432
34433         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
34434         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
34435         gl_BIGENDIAN, not AC_C_BIGENDIAN.
34436         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
34437         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
34438
34439 2009-01-19  Bruno Haible  <bruno@clisp.org>
34440
34441         * tests/test-link.c: Include <errno.h>.
34442         (main): Exit with code 77 when a hard link cannot be created due to
34443         the file system.
34444         * tests/test-link.sh: Skip test when a hard link cannot be created due
34445         to the file system.
34446         Suggested by Eric Blake.
34447
34448 2009-01-19  Martin Lambers  <marlam@marlam.de>
34449
34450         * modules/link-tests: New file.
34451         * tests/test-link.sh: New file.
34452         * tests/test-link.c: New file.
34453
34454 2009-01-19  Eric Blake  <ebb9@byu.net>
34455
34456         doc: mention another function added in cygwin 1.7.0
34457         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
34458         Another new function in cygwin 1.7.
34459
34460 2009-01-19  Bruno Haible  <bruno@clisp.org>
34461
34462         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
34463         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
34464         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
34465         gl_BIGENDIAN, not AC_C_BIGENDIAN.
34466         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
34467         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
34468         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
34469         * m4/md4.m4 (gl_MD4): Likewise.
34470         * m4/md5.m4 (gl_MD5): Likewise.
34471         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
34472         * m4/sha1.m4 (gl_SHA1): Likewise.
34473         * m4/sha256.m4 (gl_SHA256): Likewise.
34474         * m4/sha512.m4 (gl_SHA512): Likewise.
34475
34476 2009-01-19  Bruno Haible  <bruno@clisp.org>
34477
34478         * modules/uniname/uniname-tests (Depends-on): Add progname.
34479         * tests/uniname/test-uninames.c: Include progname.h.
34480         (main): Call set_program_name.
34481
34482         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
34483         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
34484         (main): Call set_program_name.
34485
34486         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
34487         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
34488         (main): Call set_program_name.
34489
34490         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
34491         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
34492         (main): Call set_program_name.
34493
34494         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
34495         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
34496         (main): Call set_program_name.
34497
34498         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
34499         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
34500         (main): Call set_program_name.
34501
34502         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
34503         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
34504         (main): Call set_program_name.
34505
34506         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
34507         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
34508         (main): Call set_program_name.
34509
34510         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
34511         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
34512         (main): Call set_program_name.
34513
34514 2009-01-19  Eric Blake  <ebb9@byu.net>
34515
34516         test-unistd: test previous patch
34517         * tests/test-unistd.c: Test *_FILENO macros.
34518
34519         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
34520         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
34521         Guarantee a definition.
34522         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
34523         * modules/unistd-safer (Depends-on): Add dependency on unistd.
34524         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
34525         * lib/dup-safer.c (STDERR_FILENO): Likewise.
34526         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
34527         Likewise.
34528         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
34529         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
34530         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
34531         Likewise.
34532         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
34533         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
34534         (STDERR_FILENO): Likewise.
34535         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
34536         (STDERR_FILENO): Likewise.
34537         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
34538         (STDERR_FILENO): Likewise.
34539         Reported by Elbert Pol.
34540
34541 2009-01-19  Eric Blake  <ebb9@byu.net>
34542
34543         doc: mention more functions added in cygwin 1.7.0
34544         * doc/posix-functions/abort.texi (abort): Update wording related
34545         to cygwin.
34546         * doc/posix-functions/daylight.texi (daylight): Likewise.
34547         * doc/posix-functions/optarg.texi (optarg): Likewise.
34548         * doc/posix-functions/optarg.texi (opterr): Likewise.
34549         * doc/posix-functions/optarg.texi (optind): Likewise.
34550         * doc/posix-functions/optarg.texi (optopt): Likewise.
34551         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
34552         worked in 1.5.x, and was withdrawn in 1.7.
34553         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
34554         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
34555         cygwin versions.
34556         * doc/posix-functions/perror.texi (perror): Likewise.
34557         * doc/posix-functions/printf.texi (printf): Likewise.
34558         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
34559         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
34560         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
34561         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
34562         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
34563         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
34564         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
34565         Likewise.
34566         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
34567         Likewise.
34568         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
34569         this function.
34570         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
34571         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
34572         Likewise.
34573         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
34574         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
34575         * doc/posix-functions/confstr.texi (confstr): Likewise.
34576         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
34577         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
34578         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
34579         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
34580         * doc/posix-functions/fputws.texi (fputws): Likewise.
34581         * doc/posix-functions/fwide.texi (fwide): Likewise.
34582         * doc/posix-functions/getwc.texi (getwc): Likewise.
34583         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
34584         * doc/posix-functions/putwc.texi (putwc): Likewise.
34585         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
34586         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
34587         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
34588         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
34589         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
34590         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
34591         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
34592         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
34593         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
34594         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
34595         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
34596
34597 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
34598
34599         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
34600         * lib/ioctl.c: Include <sys/ioctl.h>.
34601
34602 2009-01-19  Simon Josefsson  <simon@josefsson.org>
34603
34604         * modules/getdate-tests (Depends-on): Add progname.
34605         * tests/test-getdate.c: Use progname module, to avoid link errors
34606         on non-glibc systems.
34607
34608 2009-01-18  Simon Josefsson  <simon@josefsson.org>
34609
34610         * modules/filenamecat-tests (Depends-on): Add progname.
34611         * modules/fstrcmp-tests (Depends-on): Likewise.
34612
34613         * tests/test-filenamecat.c: Use progname module, to avoid link
34614         errors on non-glibc systems.
34615         * tests/test-fstrcmp.c: Likewise.
34616
34617 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
34618
34619         gettimeofday: avoid warning: nested extern declaration of 'localtime'
34620         * lib/gettimeofday.c: Move extern declaration out of function.
34621
34622 2009-01-18  Bruno Haible  <bruno@clisp.org>
34623
34624         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
34625         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
34626         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
34627
34628 2009-01-18  Bruno Haible  <bruno@clisp.org>
34629
34630         * lib/strftime.c (MEMPCPY): Remove unused macro.
34631         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
34632
34633 2009-01-18  Martin Lambers  <marlam@marlam.de>
34634
34635         New module 'link'.
34636         * lib/unistd.in.h (link): New declaration.
34637         * lib/link.c: New file.
34638         * m4/link.m4: New file.
34639         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
34640         HAVE_LINK.
34641         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
34642         * modules/link: New file.
34643         * doc/posix-functions/link.texi: Mention the new module.
34644
34645 2009-01-18  Bruno Haible  <bruno@clisp.org>
34646
34647         * tests/test-avltree_list.c (main): Call set_program_name.
34648         * tests/test-avltree_oset.c (main): Likewise.
34649         * tests/test-obstack-printf.c: Include progname.h.
34650         (main): Call set_program_name.
34651         * tests/test-quotearg.c: Include progname.h.
34652         (main): Call set_program_name.
34653         * tests/test-xmemdup0.c: Include progname.h.
34654         (main): Call set_program_name.
34655
34656 2009-01-18  Bruno Haible  <bruno@clisp.org>
34657
34658         New module 'alphasort'.
34659         * lib/dirent.in.h (alphasort): New declaration.
34660         * lib/alphasort.c: New file, from glibc with modifications.
34661         * m4/alphasort.m4: New file.
34662         * modules/alphasort: New file.
34663         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
34664         HAVE_ALPHASORT.
34665         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
34666         HAVE_ALPHASORT.
34667         * doc/posix-functions/alphasort.texi: Mention the new module and the
34668         portability problems.
34669
34670 2009-01-18  Bruno Haible  <bruno@clisp.org>
34671
34672         New module 'scandir'.
34673         * lib/dirent.in.h (scandir): New declaration.
34674         * lib/scandir.c: New file, from glibc with modifications.
34675         * m4/scandir.m4: New file.
34676         * modules/scandir: New file.
34677         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
34678         HAVE_SCANDIR.
34679         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
34680         HAVE_SCANDIR.
34681         * doc/posix-functions/scandir.texi: Mention the new module and the
34682         portability problems.
34683
34684 2009-01-17  Bruno Haible  <bruno@clisp.org>
34685
34686         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
34687         Update documentation.
34688         (func_remove_suffix): Escape all dots in the suffix. Update
34689         documentation.
34690         (func_filter_filelist): Update documentation.
34691         Reported by Ralf Wildenhues.
34692
34693 2009-01-17  Bruno Haible  <bruno@clisp.org>
34694
34695         * modules/dprintf-posix-tests: New file.
34696         * tests/test-dprintf-posix.sh: New file.
34697         * tests/test-dprintf-posix.c: New file.
34698
34699         New modules 'dprintf', 'dprintf-posix'.
34700         * lib/stdio.in.h (dprintf): New declaration.
34701         * lib/dprintf.c: New file.
34702         * m4/dprintf.m4: New file.
34703         * m4/dprintf-posix.m4: New file.
34704         * modules/dprintf: New file.
34705         * modules/dprintf-posix: New file.
34706         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
34707         HAVE_DPRINTF, REPLACE_DPRINTF.
34708         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
34709         HAVE_DPRINTF, REPLACE_DPRINTF.
34710         * doc/posix-functions/dprintf.texi: Mention the new modules.
34711
34712 2009-01-17  Bruno Haible  <bruno@clisp.org>
34713
34714         * modules/vdprintf-posix-tests: New file.
34715         * tests/test-vdprintf-posix.sh: New file.
34716         * tests/test-vdprintf-posix.c: New file.
34717
34718         New modules 'vdprintf', 'vdprintf-posix'.
34719         * lib/stdio.in.h (vdprintf): New declaration.
34720         * lib/vdprintf.c: New file.
34721         * m4/vdprintf.m4: New file.
34722         * m4/vdprintf-posix.m4: New file.
34723         * modules/vdprintf: New file.
34724         * modules/vdprintf-posix: New file.
34725         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
34726         HAVE_VDPRINTF, REPLACE_VDPRINTF.
34727         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
34728         HAVE_VDPRINTF, REPLACE_VDPRINTF.
34729         * doc/posix-functions/vdprintf.texi: Mention the new modules.
34730
34731 2009-01-17  Bruno Haible  <bruno@clisp.org>
34732
34733         Fix replacement of fopen on mingw.
34734         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
34735         mingw.
34736
34737 2009-01-17  Bruno Haible  <bruno@clisp.org>
34738
34739         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
34740         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
34741
34742 2009-01-17  Bruno Haible  <bruno@clisp.org>
34743
34744         Avoid test-fflush2.sh failure on mingw.
34745         * tests/test-fflush2.c: Include binary-io.h.
34746         (main): Put standard input into binary mode.
34747         * modules/fflush-tests (Depends-on): Add binary-io.
34748
34749 2009-01-17  Bruno Haible  <bruno@clisp.org>
34750
34751         * lib/wchar.in.h: In another particular situation, include only the
34752         system's <wchar.h> file.
34753         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
34754         Reported by Albert Chin-A-Young <china@thewrittenword.com>
34755         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
34756
34757 2009-01-17  Bruno Haible  <bruno@clisp.org>
34758
34759         Support for stripping executables in --enable-relocatable.
34760         * build-aux/install-reloc: Expect one more argument, or an environment
34761         variable RELOC_STRIP_PROG. If set, strip the destination program and
34762         its wrapper.
34763         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
34764         RELOC_STRIP_PROG.
34765         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
34766         to set RELOCATABLE_STRIP.
34767         * NEWS: Mention the new Makefile requirement.
34768
34769 2009-01-17  Bruno Haible  <bruno@clisp.org>
34770
34771         * build-aux/install-reloc: Remove debugging information left over by
34772         C compiler on MacOS X.
34773
34774 2009-01-17  Bruno Haible  <bruno@clisp.org>
34775
34776         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
34777         * lib/progreloc.c (find_executable): Fix type of pointer passed to
34778         _NSGetExecutablePath.
34779
34780 2009-01-16  Jim Meyering  <meyering@redhat.com>
34781
34782         strerror: avoid warnings about discarding "const"
34783         * lib/strerror.c (rpl_strerror): Instead of returning a const
34784         string from each and every "case", use a variable, and add a single
34785         cast after the switch.
34786
34787 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
34788
34789         * lib/arpa_inet.in.h: Add extern "C" block for C++.
34790
34791 2009-01-16  Bruno Haible  <bruno@clisp.org>
34792
34793         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
34794         array initializer syntax that also works in C++ mode.
34795         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34796
34797 2009-01-16  Jim Meyering  <meyering@redhat.com>
34798
34799         poll: suppress a warning
34800         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
34801         to ignore "...unsigned expression < 0 is always false" warnings.
34802
34803 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
34804
34805         poll: remove declarations of unused variables
34806         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
34807         sockbuf and optlen.
34808
34809 2009-01-15  Bruno Haible  <bruno@clisp.org>
34810
34811         Make fflush-after-ungetc POSIX compliant on BSD systems.
34812         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
34813         (clear_ungetc_buffer): Implement also for other systems.
34814         (rpl_fflush): On glibc systems, invoke
34815         clear_ungetc_buffer_preserving_position. Otherwise, invoke
34816         clear_ungetc_buffer after fetching the stream's position, not before.
34817
34818 2009-01-15  Bruno Haible  <bruno@clisp.org>
34819
34820         Make fflush-after-ungetc POSIX compliant on glibc systems.
34821         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
34822         after ungetc.
34823         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
34824         (rpl_fflush): On glibc systems, simply call the system's fflush
34825         function after clearing the ungetc buffer.
34826         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
34827         Instead, lseek only to the end of file, then use the system's fseeko
34828         for the rest. On glibc systems, reset the EOF indicator bit.
34829
34830 2009-01-15  Jim Meyering  <meyering@redhat.com>
34831
34832         openmp.m4: revert quote-adding change, for portability to older autoconf
34833         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
34834         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
34835         Simon Josefsson noticed the problem when using autoconf-2.61.
34836
34837 2009-01-15  Bruno Haible  <bruno@clisp.org>
34838
34839         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
34840         * tests/test-fflush2.c (ASSERT): Always fail.
34841         (main): Add two tests for fflush() after ungetc(), taking into account
34842         the Austin Group's clarification.
34843         Suggested by Eric Blake.
34844
34845 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
34846
34847         mktime.m4: remove K&R-style function prototypes
34848         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
34849         for the Sun C++ compiler.
34850
34851 2009-01-14  Bruno Haible  <bruno@clisp.org>
34852
34853         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
34854         while including <wchar.h>.
34855         * lib/wchar.in.h: In two particular situations on HP-UX, include only
34856         the system's <wchar.h> file.
34857         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34858
34859 2009-01-14  Bruno Haible  <bruno@clisp.org>
34860
34861         * m4/csharp.m4: Don't mention gettext on the serial number line.
34862         * m4/csharpexec.m4: Likewise.
34863         * m4/eaccess.m4: Likewise.
34864         * m4/javaexec.m4: Likewise.
34865         * m4/sig_atomic_t.m4: Likewise.
34866         * m4/tmpdir.m4: Likewise.
34867         * m4/intldir.m4: Bump gettext version.
34868         * m4/lib-ld.m4: Likewise.
34869
34870 2009-01-14  Bruno Haible  <bruno@clisp.org>
34871
34872         * lib/progname.c (set_program_name): Add more comments.
34873         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
34874
34875 2009-01-14  Simon Josefsson  <simon@josefsson.org>
34876
34877         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
34878         were sys/stat.h does not define it.
34879
34880 2009-01-14  Jim Meyering  <meyering@redhat.com>
34881
34882         many *.m4 files: improve m4 quoting
34883         99% of this change was performed by running the following commands:
34884         git ls-files | grep '\.m4$' | xargs perl -pi \
34885           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
34886           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
34887           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
34888           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
34889         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
34890         The remainder were to add Copyright dates, increment serial numbers,
34891         undo some changes in comments, exclude m4/intl.m4, and add quotes
34892         around the "1" in ",1" where the unusual spacing prohibited the
34893         above regexps from doing the job.  For more details, see
34894         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
34895         * m4/acl.m4: Modified.
34896         * m4/afs.m4: Likewise.
34897         * m4/alloca.m4: Likewise.
34898         * m4/argp.m4: Likewise.
34899         * m4/argz.m4: Likewise.
34900         * m4/atexit.m4: Likewise.
34901         * m4/bison-i18n.m4: Likewise.
34902         * m4/bison.m4: Likewise.
34903         * m4/byteswap.m4: Likewise.
34904         * m4/c-stack.m4: Likewise.
34905         * m4/c-strtod.m4: Likewise.
34906         * m4/calloc.m4: Likewise.
34907         * m4/canonicalize-lgpl.m4: Likewise.
34908         * m4/chown.m4: Likewise.
34909         * m4/clock_time.m4: Likewise.
34910         * m4/codeset.m4: Likewise.
34911         * m4/copy-file.m4: Likewise.
34912         * m4/csharp.m4: Likewise.
34913         * m4/csharpcomp.m4: Likewise.
34914         * m4/csharpexec.m4: Likewise.
34915         * m4/d-ino.m4: Likewise.
34916         * m4/d-type.m4: Likewise.
34917         * m4/dirfd.m4: Likewise.
34918         * m4/double-slash-root.m4: Likewise.
34919         * m4/eaccess.m4: Likewise.
34920         * m4/eealloc.m4: Likewise.
34921         * m4/environ.m4: Likewise.
34922         * m4/errno_h.m4: Likewise.
34923         * m4/euidaccess.m4: Likewise.
34924         * m4/execute.m4: Likewise.
34925         * m4/fatal-signal.m4: Likewise.
34926         * m4/fchdir.m4: Likewise.
34927         * m4/fcntl_h.m4: Likewise.
34928         * m4/fileblocks.m4: Likewise.
34929         * m4/filenamecat.m4: Likewise.
34930         * m4/findprog.m4: Likewise.
34931         * m4/flexmember.m4: Likewise.
34932         * m4/fnmatch.m4: Likewise.
34933         * m4/fopen.m4: Likewise.
34934         * m4/fpending.m4: Likewise.
34935         * m4/fprintf-posix.m4: Likewise.
34936         * m4/free.m4: Likewise.
34937         * m4/frexp.m4: Likewise.
34938         * m4/frexpl.m4: Likewise.
34939         * m4/fsusage.m4: Likewise.
34940         * m4/ftruncate.m4: Likewise.
34941         * m4/gc-camellia.m4: Likewise.
34942         * m4/gc-random.m4: Likewise.
34943         * m4/gc.m4: Likewise.
34944         * m4/getaddrinfo.m4: Likewise.
34945         * m4/getcwd-abort-bug.m4: Likewise.
34946         * m4/getcwd-path-max.m4: Likewise.
34947         * m4/getdate.m4: Likewise.
34948         * m4/getdomainname.m4: Likewise.
34949         * m4/getgroups.m4: Likewise.
34950         * m4/gethostname.m4: Likewise.
34951         * m4/gethrxtime.m4: Likewise.
34952         * m4/getline.m4: Likewise.
34953         * m4/getloadavg.m4: Likewise.
34954         * m4/getndelim2.m4: Likewise.
34955         * m4/getpass.m4: Likewise.
34956         * m4/gettext.m4: Likewise.
34957         * m4/gettime.m4: Likewise.
34958         * m4/gettimeofday.m4: Likewise.
34959         * m4/gnulib-common.m4: Likewise.
34960         * m4/group-member.m4: Likewise.
34961         * m4/host-os.m4: Likewise.
34962         * m4/iconv.m4: Likewise.
34963         * m4/iconv_open.m4: Likewise.
34964         * m4/inet_ntop.m4: Likewise.
34965         * m4/inet_pton.m4: Likewise.
34966         * m4/inline.m4: Likewise.
34967         * m4/intldir.m4: Likewise.
34968         * m4/intlmacosx.m4: Likewise.
34969         * m4/intmax.m4: Likewise.
34970         * m4/intmax_t.m4: Likewise.
34971         * m4/inttypes.m4: Likewise.
34972         * m4/inttypes_h.m4: Likewise.
34973         * m4/inttypes-pri.m4: Likewise.
34974         * m4/isapipe.m4: Likewise.
34975         * m4/isnand.m4: Likewise.
34976         * m4/isnanf.m4: Likewise.
34977         * m4/isnanl.m4: Likewise.
34978         * m4/javacomp.m4: Likewise.
34979         * m4/javaexec.m4: Likewise.
34980         * m4/jm-winsz1.m4: Likewise.
34981         * m4/jm-winsz2.m4: Likewise.
34982         * m4/lchown.m4: Likewise.
34983         * m4/lcmessage.m4: Likewise.
34984         * m4/ldexpl.m4: Likewise.
34985         * m4/lib-ld.m4: Likewise.
34986         * m4/lib-link.m4: Likewise.
34987         * m4/libsigsegv.m4: Likewise.
34988         * m4/link-follow.m4: Likewise.
34989         * m4/localcharset.m4: Likewise.
34990         * m4/locale-fr.m4: Likewise.
34991         * m4/locale-ja.m4: Likewise.
34992         * m4/locale-tr.m4: Likewise.
34993         * m4/locale-zh.m4: Likewise.
34994         * m4/lock.m4: Likewise.
34995         * m4/longlong.m4: Likewise.
34996         * m4/ls-mntd-fs.m4: Likewise.
34997         * m4/lstat.m4: Likewise.
34998         * m4/malloc.m4: Likewise.
34999         * m4/mathl.m4: Likewise.
35000         * m4/mbrtowc.m4: Likewise.
35001         * m4/mbstate_t.m4: Likewise.
35002         * m4/mbswidth.m4: Likewise.
35003         * m4/memchr.m4: Likewise.
35004         * m4/memcmp.m4: Likewise.
35005         * m4/memcpy.m4: Likewise.
35006         * m4/memmem.m4: Likewise.
35007         * m4/memmove.m4: Likewise.
35008         * m4/mempcpy.m4: Likewise.
35009         * m4/memrchr.m4: Likewise.
35010         * m4/memset.m4: Likewise.
35011         * m4/minmax.m4: Likewise.
35012         * m4/mkdir-slash.m4: Likewise.
35013         * m4/mkdtemp.m4: Likewise.
35014         * m4/mktime.m4: Likewise.
35015         * m4/mmap-anon.m4: Likewise.
35016         * m4/mountlist.m4: Likewise.
35017         * m4/nanosleep.m4: Likewise.
35018         * m4/nls.m4: Likewise.
35019         * m4/nocrash.m4: Likewise.
35020         * m4/open.m4: Likewise.
35021         * m4/openat.m4: Likewise.
35022         * m4/openmp.m4: Likewise.
35023         * m4/pathmax.m4: Likewise.
35024         * m4/perl.m4: Likewise.
35025         * m4/physmem.m4: Likewise.
35026         * m4/pipe.m4: Likewise.
35027         * m4/po.m4: Likewise.
35028         * m4/poll.m4: Likewise.
35029         * m4/posixtm.m4: Likewise.
35030         * m4/posixver.m4: Likewise.
35031         * m4/printf-frexp.m4: Likewise.
35032         * m4/printf-frexpl.m4: Likewise.
35033         * m4/printf-posix.m4: Likewise.
35034         * m4/printf-posix-rpl.m4: Likewise.
35035         * m4/printf.m4: Likewise.
35036         * m4/progtest.m4: Likewise.
35037         * m4/putenv.m4: Likewise.
35038         * m4/readline.m4: Likewise.
35039         * m4/readlink.m4: Likewise.
35040         * m4/readutmp.m4: Likewise.
35041         * m4/realloc.m4: Likewise.
35042         * m4/regex.m4: Likewise.
35043         * m4/relocatable.m4: Likewise.
35044         * m4/relocatable-lib.m4: Likewise.
35045         * m4/rename-dest-slash.m4: Likewise.
35046         * m4/rename.m4: Likewise.
35047         * m4/rmdir-errno.m4: Likewise.
35048         * m4/rmdir.m4: Likewise.
35049         * m4/roundf.m4: Likewise.
35050         * m4/roundl.m4: Likewise.
35051         * m4/rpmatch.m4: Likewise.
35052         * m4/save-cwd.m4: Likewise.
35053         * m4/selinux-selinux-h.m4: Likewise.
35054         * m4/setenv.m4: Likewise.
35055         * m4/settime.m4: Likewise.
35056         * m4/sig2str.m4: Likewise.
35057         * m4/sig_atomic_t.m4: Likewise.
35058         * m4/signalblocking.m4: Likewise.
35059         * m4/signbit.m4: Likewise.
35060         * m4/sigpipe.m4: Likewise.
35061         * m4/sockets.m4: Likewise.
35062         * m4/sockpfaf.m4: Likewise.
35063         * m4/st_dm_mode.m4: Likewise.
35064         * m4/stat-time.m4: Likewise.
35065         * m4/stdbool.m4: Likewise.
35066         * m4/stdint.m4: Likewise.
35067         * m4/stdint_h.m4: Likewise.
35068         * m4/stpcpy.m4: Likewise.
35069         * m4/stpncpy.m4: Likewise.
35070         * m4/strcase.m4: Likewise.
35071         * m4/strchrnul.m4: Likewise.
35072         * m4/strcspn.m4: Likewise.
35073         * m4/strdup.m4: Likewise.
35074         * m4/strftime.m4: Likewise.
35075         * m4/strndup.m4: Likewise.
35076         * m4/strnlen.m4: Likewise.
35077         * m4/strpbrk.m4: Likewise.
35078         * m4/strptime.m4: Likewise.
35079         * m4/strsep.m4: Likewise.
35080         * m4/strtod.m4: Likewise.
35081         * m4/strtoimax.m4: Likewise.
35082         * m4/strtok_r.m4: Likewise.
35083         * m4/strtol.m4: Likewise.
35084         * m4/strtoll.m4: Likewise.
35085         * m4/strtoul.m4: Likewise.
35086         * m4/strtoull.m4: Likewise.
35087         * m4/strtoumax.m4: Likewise.
35088         * m4/strverscmp.m4: Likewise.
35089         * m4/threadlib.m4: Likewise.
35090         * m4/timegm.m4: Likewise.
35091         * m4/tm_gmtoff.m4: Likewise.
35092         * m4/tmpdir.m4: Likewise.
35093         * m4/tmpfile.m4: Likewise.
35094         * m4/tzset.m4: Likewise.
35095         * m4/uintmax_t.m4: Likewise.
35096         * m4/unlinkdir.m4: Likewise.
35097         * m4/unlocked-io.m4: Likewise.
35098         * m4/uptime.m4: Likewise.
35099         * m4/userspec.m4: Likewise.
35100         * m4/utimbuf.m4: Likewise.
35101         * m4/utime.m4: Likewise.
35102         * m4/utimes-null.m4: Likewise.
35103         * m4/utimes.m4: Likewise.
35104         * m4/vararrays.m4: Likewise.
35105         * m4/vasnprintf.m4: Likewise.
35106         * m4/vfprintf-posix.m4: Likewise.
35107         * m4/vprintf-posix.m4: Likewise.
35108         * m4/wait-process.m4: Likewise.
35109         * m4/wchar_t.m4: Likewise.
35110         * m4/wint_t.m4: Likewise.
35111         * m4/write-any-file.m4: Likewise.
35112         * m4/yield.m4: Likewise.
35113
35114 2009-01-13  Bruno Haible  <bruno@clisp.org>
35115
35116         Avoid test-copy-file.sh failures when ACL support insufficient.
35117         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
35118         TESTS_ENVIRONMENT.
35119         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
35120         Reported by Jim Meyering.
35121
35122 2009-01-13  Bruno Haible  <bruno@clisp.org>
35123
35124         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
35125         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
35126         * modules/unistdio/u8-printf-parse (Files): Likewise.
35127         * modules/unistdio/u32-printf-parse (Files): Likewise.
35128         * modules/unistdio/ulc-printf-parse (Files): Likewise.
35129
35130 2009-01-13  Simon Josefsson  <simon@josefsson.org>
35131
35132         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
35133         and m4/inttypes_h.m4 too.
35134
35135 2009-01-12  Eric Blake  <ebb9@byu.net>
35136
35137         tests: IRIX 6.2 cc can't compile -0.0 into .data
35138         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
35139         rather than at compile-time.
35140         * tests/test-floorl.c (minus_zero): Likewise.
35141         * tests/test-frexpl.c (minus_zero): Likewise.
35142         * tests/test-isnan.c (minus_zerol): Likewise.
35143         * tests/test-isnanl.h (minus_zero): Likewise.
35144         * tests/test-ldexpl.c (minus_zero): Likewise.
35145         * tests/test-roundl.c (minus_zero): Likewise.
35146         * tests/test-signbit.c (minus_zerol): Likewise.
35147         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
35148         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
35149         * tests/test-truncl.c (minus_zero): Likewise.
35150         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
35151         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
35152         Reported by Tom G. Christensen and Nelson H. F. Beebe.
35153
35154 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
35155
35156         regex: fix glibc bug 9697
35157         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
35158         handling.
35159
35160 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
35161
35162         regex: fix glibc bug 697
35163         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
35164         being NULL also if there are no backreferences.
35165
35166 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
35167
35168         regex: merge glibc changes
35169         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
35170         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
35171         re_string_skip_chars, re_string_reconstruct): Likewise.
35172         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
35173
35174 2009-01-07  Jim Meyering  <meyering@redhat.com>
35175
35176         poll: filter through cppi
35177         * lib/poll.c: Indent cpp directives to reflect nesting.
35178
35179 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
35180
35181         poll: don't return uninitialized
35182         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
35183
35184 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
35185
35186         avoid compile failure on AIX 6.1
35187         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
35188         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
35189
35190 2009-01-04  Jim Meyering  <meyering@redhat.com>
35191
35192         remove duplicate inclusion of <stdio.h>
35193         * tests/test-fprintf-posix.c: Likewise.
35194         * tests/test-printf-posix.c: Likewise.
35195         * tests/test-snprintf-posix.c: Likewise.
35196         * tests/test-sprintf-posix.c: Likewise.
35197         * tests/test-vasprintf-posix.c: Likewise.
35198         * tests/test-vfprintf-posix.c: Likewise.
35199         * tests/test-vprintf-posix.c: Likewise.
35200         * tests/test-vsnprintf-posix.c: Likewise.
35201         * tests/test-vsprintf-posix.c: Likewise.
35202
35203 2009-01-03  Jim Meyering  <meyering@redhat.com>
35204
35205         gnulib-tool: fix sed-based filtering
35206         * gnulib-tool (func_filter_filelist): Remove extra backslash
35207         in sed_fff_filter definition.
35208
35209 2009-01-02  Jim Meyering  <meyering@redhat.com>
35210
35211         strftime: avoid compilation failure on Solaris 2.6
35212         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
35213         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
35214         Don't #define mbrlen or mbsinit, since now they're guaranteed to
35215         be available.  Reported by Tom G. Christensen.  Details in
35216         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
35217
35218 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35219             Bruno Haible  <bruno@clisp.org>
35220
35221         Speed up gnulib-tool by doing more string processing through shell
35222         built-ins.
35223         * gnulib-tool (fast_func_append): New variable.
35224         (func_remove_prefix, func_remove_suffix): New functions.
35225         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
35226         (func_filter_filelist): New function.
35227         (func_get_dependencies): Use func_remove_suffix instead of sed.
35228         (func_get_automake_snippet): Use func_filter_filelist instead of a
35229         subshell and sed invocation.
35230
35231 2009-01-01  Bruno Haible  <bruno@clisp.org>
35232
35233         Fix a security bug.
35234         * gnulib-tool (func_import, import, update): Don't allow the characters
35235         '"', '$', '`', '\' in macro arguments that become part of commands that
35236         are evaluated.
35237
35238 2009-01-01  Bruno Haible  <bruno@clisp.org>
35239
35240         * gnulib-tool (func_reset_sigpipe): Add more comments.
35241
35242 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35243
35244         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
35245         func_emit_tests_Makefile_am, func_import): Abort loops early if we
35246         already know the answer.
35247
35248 2009-01-01  Jim Meyering  <meyering@redhat.com>
35249
35250         * lib/version-etc.c (version_etc_va): Update copyright year.
35251
35252 2008-12-30  Bruno Haible  <bruno@clisp.org>
35253
35254         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
35255         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
35256         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
35257
35258 2008-12-29  Eric Blake  <ebb9@byu.net>
35259
35260         multiarch: avoid autoconf AC_REQUIRE bug
35261         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
35262         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
35263         2.63 and older.
35264         Reported by Bruno Haible, and analyzed in
35265         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
35266
35267 2008-12-29  Bruno Haible  <bruno@clisp.org>
35268
35269         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
35270         files in subdirectories correctly.
35271         Reported by Ralf Wildenhues.
35272
35273 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35274
35275         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
35276         rather than 'join FILE -', for Solaris join.
35277
35278 2008-12-29  Bruno Haible  <bruno@clisp.org>
35279
35280         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
35281         quoting.
35282         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
35283         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
35284         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
35285         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
35286         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
35287         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
35288         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
35289         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
35290         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
35291         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
35292         * m4/nls.m4 (AM_NLS): Likewise.
35293         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
35294         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
35295         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
35296         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
35297         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
35298         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
35299         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
35300         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
35301         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
35302         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
35303         * m4/xsize.m4 (gl_XSIZE): Likewise.
35304         Suggested by Jim Meyering.
35305
35306 2008-11-17  Bruce Korb  <bkorb@gnu.org>
35307
35308         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
35309         * lib/parse-duration.c: use a switch instead of cascading if's.
35310
35311 2008-12-29  Eric Blake  <ebb9@byu.net>
35312
35313         wchar.h: supply WEOF on Irix 5.3
35314         * lib/wchar.in.h (wint_t): Also supply WEOF.
35315         * lib/wctype.in.h (wint_t): Likewise.
35316         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
35317         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
35318         Reported by Tom G. Christensen.
35319
35320 2008-12-26  Bruno Haible  <bruno@clisp.org>
35321
35322         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
35323         i486, i586, i686.
35324
35325 2008-12-26  Bruno Haible  <bruno@clisp.org>
35326
35327         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
35328
35329 2008-12-26  Bruno Haible  <bruno@clisp.org>
35330
35331         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
35332         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
35333         not __STDC_CONSTANT_MACROS.
35334         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
35335
35336 2008-12-25  Bruno Haible  <bruno@clisp.org>
35337
35338         Add support for universal builds to vasnprintf.
35339         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
35340         universal builds, guess no.
35341         * modules/vasnprintf-posix (Depends-on): Add multiarch.
35342         * modules/vasprintf-posix (Depends-on): Likewise.
35343         * modules/fprintf-posix (Depends-on): Likewise.
35344         * modules/vfprintf-posix (Depends-on): Likewise.
35345         * modules/snprintf-posix (Depends-on): Likewise.
35346         * modules/vsnprintf-posix (Depends-on): Likewise.
35347         * modules/sprintf-posix (Depends-on): Likewise.
35348         * modules/vsprintf-posix (Depends-on): Likewise.
35349         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
35350         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
35351         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
35352         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
35353         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
35354         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
35355         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
35356
35357         Add support for universal builds to <inttypes.h>.
35358         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
35359         _SCNu64_PREFIX): In Apple
35360         universal builds, define directly, using _LP64.
35361         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
35362         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
35363         * modules/inttypes (Depends-on): Add multiarch.
35364         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
35365
35366         Add support for universal builds to <stdint.h>.
35367         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
35368         universal builds, define directly, using _LP64.
35369         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
35370         Apple universal builds, don't test for the size and suffix of ptrdiff_t
35371         and size_t.
35372         * modules/stdint (Depends-on): Add multiarch.
35373         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
35374
35375         New module 'multiarch'.
35376         * modules/multiarch: New file.
35377         * m4/multiarch.m4: New file.
35378
35379 2008-12-25  Bruno Haible  <bruno@clisp.org>
35380
35381         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
35382
35383 2008-12-25  Bruno Haible  <bruno@clisp.org>
35384
35385         * modules/btowc (License): Relicense under LGPLv2+.
35386         * modules/mbsinit (License): Likewise.
35387         * modules/mbrtowc (License): Likewise.
35388         * modules/wcrtomb (License): Likewise.
35389         * modules/streq (License): Likewise.
35390         Reported by David Lutterkort <lutter@redhat.com>.
35391
35392 2008-12-23  Bruno Haible  <bruno@clisp.org>
35393
35394         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
35395
35396 2008-12-23  Bruno Haible  <bruno@clisp.org>
35397
35398         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
35399         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
35400         GETADDRINFO_LIB, not in LIBS.
35401         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
35402         * modules/canon-host (Link): Likewise.
35403         * NEWS: Mention the change.
35404         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
35405         GETADDRINFO_LIB.
35406
35407 2008-12-22  Bruno Haible  <bruno@clisp.org>
35408
35409         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
35410         * doc/posix-functions/iswalpha_l.texi: Likewise.
35411         * doc/posix-functions/iswblank_l.texi: Likewise.
35412         * doc/posix-functions/iswcntrl_l.texi: Likewise.
35413         * doc/posix-functions/iswctype_l.texi: Likewise.
35414         * doc/posix-functions/iswdigit_l.texi: Likewise.
35415         * doc/posix-functions/iswgraph_l.texi: Likewise.
35416         * doc/posix-functions/iswlower_l.texi: Likewise.
35417         * doc/posix-functions/iswprint_l.texi: Likewise.
35418         * doc/posix-functions/iswpunct_l.texi: Likewise.
35419         * doc/posix-functions/iswspace_l.texi: Likewise.
35420         * doc/posix-functions/iswupper_l.texi: Likewise.
35421         * doc/posix-functions/iswxdigit_l.texi: Likewise.
35422         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
35423         * doc/posix-functions/open_wmemstream.texi: Likewise.
35424         * doc/posix-functions/swscanf.texi: Likewise.
35425         * doc/posix-functions/towctrans_l.texi: Likewise.
35426         * doc/posix-functions/towlower.texi: Likewise.
35427         * doc/posix-functions/towlower_l.texi: Likewise.
35428         * doc/posix-functions/towupper.texi: Likewise.
35429         * doc/posix-functions/towupper_l.texi: Likewise.
35430         * doc/posix-functions/vfwprintf.texi: Likewise.
35431         * doc/posix-functions/vfwscanf.texi: Likewise.
35432         * doc/posix-functions/vswscanf.texi: Likewise.
35433         * doc/posix-functions/vwprintf.texi: Likewise.
35434         * doc/posix-functions/vwscanf.texi: Likewise.
35435         * doc/posix-functions/wcpcpy.texi: Likewise.
35436         * doc/posix-functions/wcpncpy.texi: Likewise.
35437         * doc/posix-functions/wcscasecmp.texi: Likewise.
35438         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
35439         * doc/posix-functions/wcscoll_l.texi: Likewise.
35440         * doc/posix-functions/wcsdup.texi: Likewise.
35441         * doc/posix-functions/wcsncasecmp.texi: Likewise.
35442         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
35443         * doc/posix-functions/wcsnlen.texi: Likewise.
35444         * doc/posix-functions/wcsnrtombs.texi: Likewise.
35445         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
35446         * doc/posix-functions/wctrans_l.texi: Likewise.
35447         * doc/posix-functions/wctype_l.texi: Likewise.
35448         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
35449         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
35450         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
35451         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
35452         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
35453         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
35454         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
35455         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
35456         * doc/glibc-functions/wcschrnul.texi: Likewise.
35457         * doc/glibc-functions/wcsftime_l.texi: Likewise.
35458         * doc/glibc-functions/wcstod_l.texi: Likewise.
35459         * doc/glibc-functions/wcstof_l.texi: Likewise.
35460         * doc/glibc-functions/wcstol_l.texi: Likewise.
35461         * doc/glibc-functions/wcstold_l.texi: Likewise.
35462         * doc/glibc-functions/wcstoll_l.texi: Likewise.
35463         * doc/glibc-functions/wcstoq.texi: Likewise.
35464         * doc/glibc-functions/wcstoul_l.texi: Likewise.
35465         * doc/glibc-functions/wcstoull_l.texi: Likewise.
35466         * doc/glibc-functions/wcstouq.texi: Likewise.
35467         * doc/glibc-functions/wmempcpy.texi: Likewise.
35468
35469 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
35470             Eric Blake  <ebb9@byu.net>
35471             Paolo Bonzini  <bonzini@gnu.org>
35472             Bruno Haible  <bruno@clisp.org>
35473
35474         Make c-stack work on Haiku.
35475         * lib/c-stack.c (SA_ONSTACK): Define fallback.
35476         (c_stack_action): Use SA_ONSTACK flag.
35477
35478 2008-12-22  Bruno Haible  <bruno@clisp.org>
35479
35480         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
35481
35482 2008-12-22  Bruno Haible  <bruno@clisp.org>
35483
35484         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
35485         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
35486         being overridden.
35487         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
35488         New macros.
35489         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
35490         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
35491         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
35492         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
35493
35494 2008-12-22  Bruno Haible  <bruno@clisp.org>
35495
35496         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
35497         from test code.
35498
35499 2008-12-22  Eric Blake  <ebb9@byu.net>
35500
35501         Avoid gcc warnings on cygwin.
35502         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
35503         Avoid unused variable.
35504         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
35505         Likewise.
35506
35507 2008-12-22  Bruno Haible  <bruno@clisp.org>
35508
35509         Remove HAVE_MBRTOWC conditionals.
35510         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
35511         (mbscasecmp): Assume mbrtowc function.
35512         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
35513         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
35514         * lib/mbschr.c: Include mbuiter.h unconditionally.
35515         (mbschr): Assume mbrtowc function.
35516         * lib/mbscspn.c: Include mbuiter.h unconditionally.
35517         (mbscspn): Assume mbrtowc function.
35518         * lib/mbslen.c: Include mbuiter.h unconditionally.
35519         (mbslen): Assume mbrtowc function.
35520         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
35521         (mbsncasecmp): Assume mbrtowc function.
35522         * lib/mbsnlen.c: Include mbiter.h unconditionally.
35523         (mbsnlen): Assume mbrtowc function.
35524         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
35525         (mbspbrk): Assume mbrtowc function.
35526         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
35527         (mbspcasecmp): Assume mbrtowc function.
35528         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
35529         (mbsrchr): Assume mbrtowc function.
35530         * lib/mbssep.c: Include mbuiter.h unconditionally.
35531         (mbssep): Assume mbrtowc function.
35532         * lib/mbsspn.c: Include mbuiter.h unconditionally.
35533         (mbsspn): Assume mbrtowc function.
35534         * lib/mbsstr.c: Include mbuiter.h unconditionally.
35535         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
35536         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
35537         (mbstok_r): Assume mbrtowc function.
35538         * lib/propername.c: Include mbuiter.h unconditionally.
35539         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
35540         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
35541         (trim2): Assume mbrtowc function.
35542         * lib/mbswidth.c (mbsinit): Remove fallback definition.
35543         (mbsnwidth): Assume mbrtowc function.
35544         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
35545         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
35546         fallback definitions.
35547         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
35548
35549 2008-12-22  Bruno Haible  <bruno@clisp.org>
35550
35551         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
35552
35553 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
35554
35555         * modules/regex: Request emulations for the mb*/wc* functions we need.
35556         * m4/regex.m4: Don't look for those functions here.
35557         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
35558
35559 2008-12-22  Bruno Haible  <bruno@clisp.org>
35560
35561         * modules/fnmatch (Depends-on): Remove duplicated dependency.
35562
35563 2008-12-21  Bruno Haible  <bruno@clisp.org>
35564
35565         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
35566         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
35567         (Include): Remove conditionalization.
35568         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
35569         (Include): Remove conditionalization.
35570         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
35571         (Include): Remove conditionalization.
35572         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
35573         * m4/mbfile.m4 (gl_MBFILE): Likewise.
35574         * NEWS: Mention the change.
35575         Reported by Alan Hourihane <alanh@fairlite.co.uk>
35576         via Sergey Poznyakoff <gray@gnu.org.ua>.
35577
35578 2008-12-21  Bruno Haible  <bruno@clisp.org>
35579
35580         * MODULES.html.sh (Extended multibyte and wide character utilities
35581         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
35582         wcrtomb, wcsrtombs.
35583         (Support for systems lacking POSIX:2008): Add accept, bind, close,
35584         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
35585         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
35586         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
35587
35588 2008-12-21  Bruno Haible  <bruno@clisp.org>
35589
35590         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
35591
35592 2008-12-21  Bruno Haible  <bruno@clisp.org>
35593
35594         * modules/wcsnrtombs-tests: New file.
35595         * tests/test-wcsnrtombs1.sh: New file.
35596         * tests/test-wcsnrtombs2.sh: New file.
35597         * tests/test-wcsnrtombs3.sh: New file.
35598         * tests/test-wcsnrtombs4.sh: New file.
35599         * tests/test-wcsnrtombs.c: New file.
35600
35601         New module 'wcsnrtombs'.
35602         * lib/wchar.in.h (wcsnrtombs): New declaration.
35603         * lib/wcsnrtombs.c: New file.
35604         * lib/wcsrtombs-state.c: New file.
35605         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
35606         (internal_state): Remove variable.
35607         * m4/wcsnrtombs.m4: New file.
35608         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
35609         compilation units.
35610         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
35611         HAVE_WCSNRTOMBS.
35612         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
35613         HAVE_WCSNRTOMBS.
35614         * modules/wcsnrtombs: New file.
35615         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
35616         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
35617
35618 2008-12-21  Bruno Haible  <bruno@clisp.org>
35619
35620         * modules/wcsrtombs-tests: New file.
35621         * tests/test-wcsrtombs1.sh: New file.
35622         * tests/test-wcsrtombs2.sh: New file.
35623         * tests/test-wcsrtombs3.sh: New file.
35624         * tests/test-wcsrtombs4.sh: New file.
35625         * tests/test-wcsrtombs.c: New file.
35626
35627         New module 'wcsrtombs'.
35628         * lib/wchar.in.h (wcsrtombs): New declaration.
35629         * lib/wcsrtombs.c: New file.
35630         * m4/wcsrtombs.m4: New file.
35631         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
35632         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
35633         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
35634         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
35635         * modules/wcsrtombs: New file.
35636         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
35637         bugs.
35638
35639 2008-12-21  Bruno Haible  <bruno@clisp.org>
35640
35641         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
35642         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
35643         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
35644         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
35645         if not correct.
35646         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
35647         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
35648         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
35649         m4/locale-zh.m4, m4/codeset.m4.
35650         * doc/posix-functions/wcrtomb.texi: Document the bug.
35651
35652 2008-12-21  Bruno Haible  <bruno@clisp.org>
35653
35654         Work around a btowc() bug on IRIX 6.5.
35655         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
35656         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
35657         REPLACE_WTOBC if not.
35658         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
35659         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
35660         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
35661
35662 2008-12-21  Bruno Haible  <bruno@clisp.org>
35663
35664         * modules/wcrtomb-tests: New file.
35665         * tests/test-wcrtomb.sh: New file.
35666         * tests/test-wcrtomb.c: New file.
35667
35668         New module 'wcrtomb'.
35669         * lib/wchar.in.h (wcrtomb): New declaration.
35670         * lib/wcrtomb.c: New file.
35671         * m4/wcrtomb.m4: New file.
35672         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
35673         HAVE_WCRTOMB.
35674         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
35675         HAVE_WCRTOMB.
35676         * modules/wcrtomb: New file.
35677         * doc/posix-functions/wcrtomb.texi: Mention the new module.
35678
35679 2008-12-21  Bruno Haible  <bruno@clisp.org>
35680
35681         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
35682         * modules/mbsrtowcs (Files): Likewise.
35683         * modules/wctob (Files): Likewise.
35684         * modules/c-strcase-tests (Files): Likewise.
35685         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
35686         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
35687         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
35688         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
35689         * modules/vasnprintf-posix-tests (Files): Likewise.
35690
35691 2008-12-21  William Pursell  <bill.pursell@gmail.com>
35692
35693         gitlog-to-changelog: pass all command-line arguments to git-log
35694         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
35695         it is sometimes convenient to filter the commits in various ways.
35696         gitlog-to-changelog only allows --since to specify a start date,
35697         but git-log itself supports many other filtering mechanisms.
35698         At the moment, I want to filter by branch name.  Rather than
35699         adding a --branch option to gitlog-to-changelog, it seems more
35700         flexible to simply pass all options directly to git-log and let
35701         git do the work.  Notice that this effectively makes --since a
35702         redundant option for gitlog-to-changelog, but removing it would
35703         require current usage to change since calls would then require
35704         an additional '--'.
35705
35706 2008-12-21  Bruno Haible  <bruno@clisp.org>
35707
35708         * modules/mbsnrtowcs-tests: New file.
35709         * tests/test-mbsnrtowcs1.sh: New file.
35710         * tests/test-mbsnrtowcs2.sh: New file.
35711         * tests/test-mbsnrtowcs3.sh: New file.
35712         * tests/test-mbsnrtowcs4.sh: New file.
35713         * tests/test-mbsnrtowcs.c: New file.
35714
35715         New module 'mbsnrtowcs'.
35716         * lib/wchar.in.h (mbsnrtowcs): New declaration.
35717         * lib/mbsnrtowcs.c: New file.
35718         * lib/mbsrtowcs-state.c: New file.
35719         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
35720         (internal_state): Remove variable.
35721         * m4/mbsnrtowcs.m4: New file.
35722         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
35723         compilation units.
35724         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
35725         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
35726         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
35727         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
35728         * modules/mbsnrtowcs: New file.
35729         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
35730         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
35731         portability problem.
35732
35733 2008-12-21  Bruno Haible  <bruno@clisp.org>
35734
35735         Work around mbsrtowcs bug.
35736         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
35737         (gl_FUNC_MBSRTOWCS): Invoke it.
35738         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
35739         m4/locale-zh.m4.
35740         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
35741
35742 2008-12-21  Bruno Haible  <bruno@clisp.org>
35743
35744         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
35745
35746 2008-12-21  Bruno Haible  <bruno@clisp.org>
35747
35748         Update doc for AIX.
35749         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
35750         16-bit wchar_t type.
35751         * doc/posix-functions/btowc.texi: Likewise.
35752         * doc/posix-functions/fgetwc.texi: Likewise.
35753         * doc/posix-functions/fgetws.texi: Likewise.
35754         * doc/posix-functions/fputwc.texi: Likewise.
35755         * doc/posix-functions/fputws.texi: Likewise.
35756         * doc/posix-functions/fwide.texi: Likewise.
35757         * doc/posix-functions/fwprintf.texi: Likewise.
35758         * doc/posix-functions/fwscanf.texi: Likewise.
35759         * doc/posix-functions/getwchar.texi: Likewise.
35760         * doc/posix-functions/getwc.texi: Likewise.
35761         * doc/posix-functions/iswalnum.texi: Likewise.
35762         * doc/posix-functions/iswalpha.texi: Likewise.
35763         * doc/posix-functions/iswblank.texi: Likewise.
35764         * doc/posix-functions/iswcntrl.texi: Likewise.
35765         * doc/posix-functions/iswctype.texi: Likewise.
35766         * doc/posix-functions/iswdigit.texi: Likewise.
35767         * doc/posix-functions/iswgraph.texi: Likewise.
35768         * doc/posix-functions/iswlower.texi: Likewise.
35769         * doc/posix-functions/iswprint.texi: Likewise.
35770         * doc/posix-functions/iswpunct.texi: Likewise.
35771         * doc/posix-functions/iswspace.texi: Likewise.
35772         * doc/posix-functions/iswupper.texi: Likewise.
35773         * doc/posix-functions/iswxdigit.texi: Likewise.
35774         * doc/posix-functions/mbrtowc.texi: Likewise.
35775         * doc/posix-functions/mbsrtowcs.texi: Likewise.
35776         * doc/posix-functions/mbstowcs.texi: Likewise.
35777         * doc/posix-functions/mbtowc.texi: Likewise.
35778         * doc/posix-functions/putwchar.texi: Likewise.
35779         * doc/posix-functions/putwc.texi: Likewise.
35780         * doc/posix-functions/swprintf.texi: Likewise.
35781         * doc/posix-functions/tolower.texi: Likewise.
35782         * doc/posix-functions/toupper.texi: Likewise.
35783         * doc/posix-functions/towctrans.texi: Likewise.
35784         * doc/posix-functions/ungetwc.texi: Likewise.
35785         * doc/posix-functions/vswprintf.texi: Likewise.
35786         * doc/posix-functions/wcrtomb.texi: Likewise.
35787         * doc/posix-functions/wcscat.texi: Likewise.
35788         * doc/posix-functions/wcschr.texi: Likewise.
35789         * doc/posix-functions/wcscmp.texi: Likewise.
35790         * doc/posix-functions/wcscoll.texi: Likewise.
35791         * doc/posix-functions/wcscpy.texi: Likewise.
35792         * doc/posix-functions/wcscspn.texi: Likewise.
35793         * doc/posix-functions/wcsftime.texi: Likewise.
35794         * doc/posix-functions/wcslen.texi: Likewise.
35795         * doc/posix-functions/wcsncat.texi: Likewise.
35796         * doc/posix-functions/wcsncmp.texi: Likewise.
35797         * doc/posix-functions/wcsncpy.texi: Likewise.
35798         * doc/posix-functions/wcspbrk.texi: Likewise.
35799         * doc/posix-functions/wcsrchr.texi: Likewise.
35800         * doc/posix-functions/wcsrtombs.texi: Likewise.
35801         * doc/posix-functions/wcsspn.texi: Likewise.
35802         * doc/posix-functions/wcsstr.texi: Likewise.
35803         * doc/posix-functions/wcstod.texi: Likewise.
35804         * doc/posix-functions/wcstof.texi: Likewise.
35805         * doc/posix-functions/wcstoimax.texi: Likewise.
35806         * doc/posix-functions/wcstok.texi: Likewise.
35807         * doc/posix-functions/wcstold.texi: Likewise.
35808         * doc/posix-functions/wcstoll.texi: Likewise.
35809         * doc/posix-functions/wcstol.texi: Likewise.
35810         * doc/posix-functions/wcstombs.texi: Likewise.
35811         * doc/posix-functions/wcstoull.texi: Likewise.
35812         * doc/posix-functions/wcstoul.texi: Likewise.
35813         * doc/posix-functions/wcstoumax.texi: Likewise.
35814         * doc/posix-functions/wcswidth.texi: Likewise.
35815         * doc/posix-functions/wcsxfrm.texi: Likewise.
35816         * doc/posix-functions/wctob.texi: Likewise.
35817         * doc/posix-functions/wctomb.texi: Likewise.
35818         * doc/posix-functions/wctrans.texi: Likewise.
35819         * doc/posix-functions/wctype.texi: Likewise.
35820         * doc/posix-functions/wcwidth.texi: Likewise.
35821         * doc/posix-functions/wmemchr.texi: Likewise.
35822         * doc/posix-functions/wmemcmp.texi: Likewise.
35823         * doc/posix-functions/wmemcpy.texi: Likewise.
35824         * doc/posix-functions/wmemmove.texi: Likewise.
35825         * doc/posix-functions/wmemset.texi: Likewise.
35826         * doc/posix-functions/wprintf.texi: Likewise.
35827         * doc/posix-functions/wscanf.texi: Likewise.
35828
35829 2008-12-21  Bruno Haible  <bruno@clisp.org>
35830
35831         Update doc for HP-UX 11.11.
35832         * doc/posix-functions/btowc.texi: Clarify that the function is missing
35833         in HP-UX version 11.00, not in all versions of HP-UX 11.
35834         * doc/posix-functions/fwide.texi: Likewise.
35835         * doc/posix-functions/fwprintf.texi: Likewise.
35836         * doc/posix-functions/fwscanf.texi: Likewise.
35837         * doc/posix-functions/inet_ntop.texi: Likewise.
35838         * doc/posix-functions/inet_pton.texi: Likewise.
35839         * doc/posix-functions/mbrlen.texi: Likewise.
35840         * doc/posix-functions/mbrtowc.texi: Likewise.
35841         * doc/posix-functions/mbsinit.texi: Likewise.
35842         * doc/posix-functions/mbsrtowcs.texi: Likewise.
35843         * doc/posix-functions/swprintf.texi: Likewise.
35844         * doc/posix-functions/swscanf.texi: Likewise.
35845         * doc/posix-functions/towctrans.texi: Likewise.
35846         * doc/posix-functions/vfwprintf.texi: Likewise.
35847         * doc/posix-functions/vswprintf.texi: Likewise.
35848         * doc/posix-functions/vwprintf.texi: Likewise.
35849         * doc/posix-functions/wcrtomb.texi: Likewise.
35850         * doc/posix-functions/wcsrtombs.texi: Likewise.
35851         * doc/posix-functions/wcsstr.texi: Likewise.
35852         * doc/posix-functions/wctob.texi: Likewise.
35853         * doc/posix-functions/wctrans.texi: Likewise.
35854         * doc/posix-functions/wmemchr.texi: Likewise.
35855         * doc/posix-functions/wmemcmp.texi: Likewise.
35856         * doc/posix-functions/wmemcpy.texi: Likewise.
35857         * doc/posix-functions/wmemmove.texi: Likewise.
35858         * doc/posix-functions/wmemset.texi: Likewise.
35859         * doc/posix-functions/wprintf.texi: Likewise.
35860         * doc/posix-functions/wscanf.texi: Likewise.
35861
35862 2008-12-21  Bruno Haible  <bruno@clisp.org>
35863
35864         Work around a portability problem.
35865         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
35866         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
35867
35868 2008-12-20  Bruno Haible  <bruno@clisp.org>
35869
35870         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
35871         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
35872         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
35873         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
35874         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
35875
35876         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
35877         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
35878         set.
35879         (GNULIB_defined_mbstate_t): New macro.
35880         (mbsinit): Redefine if REPLACE_MBSINIT is set.
35881         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
35882         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
35883         reuses the system's mbrtowc function but works around the bugs.
35884         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
35885         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
35886         macros.
35887         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
35888         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
35889         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
35890         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
35891         REPLACE_MBSINIT if mbsinit needs to be overridden.
35892         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
35893         REPLACE_MBSINIT, REPLACE_MBRTOWC.
35894         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
35895         REPLACE_MBSINIT, REPLACE_MBRTOWC.
35896         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
35897         m4/locale-zh.m4.
35898         (Depends): Add mbsinit.
35899         * modules/mbsinit (Depends): Add mbrtowc.
35900         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
35901
35902 2008-12-20  Bruno Haible  <bruno@clisp.org>
35903
35904         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
35905         so that there are no conversion errors on AIX.
35906         * tests/test-mbsrtowcs.c (main): LIkewise.
35907
35908 2008-12-20  Bruno Haible  <bruno@clisp.org>
35909
35910         Work around wctob bug on Solaris <= 9.
35911         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
35912         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
35913         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
35914         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
35915         * modules/wctob (Files): Add m4/locale-fr.m4.
35916         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
35917
35918 2008-12-20  Bruno Haible  <bruno@clisp.org>
35919
35920         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
35921         /dev/null.
35922         * tests/test-select-in.sh: Likewise.
35923         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35924
35925 2008-12-20  Bruno Haible  <bruno@clisp.org>
35926
35927         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
35928         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
35929         Cygwin 1.5.x.
35930
35931 2008-12-20  Bruno Haible  <bruno@clisp.org>
35932
35933         Ensure mbstate_t is defined on HP-UX 11.11.
35934         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
35935         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
35936         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
35937         AC_USE_SYSTEM_EXTENSIONS.
35938         * modules/fnmatch (Depends-on): Add extensions.
35939         * modules/mbrlen (Depends-on): Likewise.
35940         * modules/mbrtowc (Depends-on): Likewise.
35941         * modules/mbsinit (Depends-on): Likewise.
35942         * modules/mbsrtowcs (Depends-on): Likewise.
35943         * modules/mbswidth (Depends-on): Likewise.
35944         * modules/quotearg (Depends-on): Likewise.
35945         * modules/strftime (Depends-on): Likewise.
35946
35947 2008-12-20  Bruno Haible  <bruno@clisp.org>
35948
35949         Ensure wctob is declared on IRIX 6.5.
35950         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
35951         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
35952         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
35953         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
35954         of HAVE_WCTOB.
35955         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
35956         HAVE_WCTOB.
35957         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
35958
35959 2008-12-19  Bruno Haible  <bruno@clisp.org>
35960
35961         * modules/mbsrtowcs-tests: New file.
35962         * tests/test-mbsrtowcs1.sh: New file.
35963         * tests/test-mbsrtowcs2.sh: New file.
35964         * tests/test-mbsrtowcs3.sh: New file.
35965         * tests/test-mbsrtowcs4.sh: New file.
35966         * tests/test-mbsrtowcs.c: New file.
35967
35968         New module 'mbsrtowcs'.
35969         * lib/wchar.in.h (mbsrtowcs): New declaration.
35970         * lib/mbsrtowcs.c: New file.
35971         * m4/mbsrtowcs.m4: New file.
35972         * modules/mbsrtowcs: New file.
35973         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
35974         HAVE_MBSRTOWCS.
35975         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
35976         HAVE_MBSRTOWCS.
35977         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
35978
35979 2008-12-19  Bruno Haible  <bruno@clisp.org>
35980
35981         New module 'mbrlen'.
35982         * lib/wchar.in.h (mbrlen): New declaration.
35983         * lib/mbrlen.c: New file.
35984         * m4/mbrlen.m4: New file.
35985         * modules/mbrlen: New file.
35986         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
35987         HAVE_MBRLEN.
35988         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
35989         HAVE_MBRLEN.
35990         * doc/posix-functions/mbrlen.texi: Document the new module.
35991
35992 2008-12-19  Bruno Haible  <bruno@clisp.org>
35993
35994         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
35995         * modules/mbrtowc (Depends-on): Add verify.
35996         Suggested by Paul Eggert.
35997
35998 2008-12-18  Bruno Haible  <bruno@clisp.org>
35999
36000         * modules/mbsinit-tests: New file.
36001         * tests/test-mbsinit.sh: New file.
36002         * tests/test-mbsinit.c: New file.
36003
36004 2008-12-18  Bruno Haible  <bruno@clisp.org>
36005
36006         * modules/mbrtowc-tests: New file.
36007         * tests/test-mbrtowc1.sh: New file.
36008         * tests/test-mbrtowc2.sh: New file.
36009         * tests/test-mbrtowc3.sh: New file.
36010         * tests/test-mbrtowc4.sh: New file.
36011         * tests/test-mbrtowc.c: New file.
36012
36013         New module 'mbrtowc'.
36014         * lib/wchar.in.h (mbstate_t): Override when the system does not have
36015         mbsinit and mbrtowc.
36016         (mbrtowc): New declaration.
36017         * lib/mbrtowc.c: New file.
36018         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
36019         * modules/mbrtowc: New file.
36020         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
36021         HAVE_MBRTOWC.
36022         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
36023         HAVE_MBRTOWC.
36024         * doc/posix-functions/mbrtowc.texi: Document the new module.
36025
36026 2008-12-18  Bruno Haible  <bruno@clisp.org>
36027
36028         New module 'wctob'.
36029         * lib/wchar.in.h (wctob): New declaration.
36030         * lib/wctob.c: New file.
36031         * m4/wctob.m4: New file.
36032         * modules/wctob: New file.
36033         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
36034         HAVE_WCTOB.
36035         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
36036         * doc/posix-functions/wctob.texi: Document the new module.
36037
36038 2008-12-18  Bruno Haible  <bruno@clisp.org>
36039
36040         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
36041         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
36042
36043 2008-12-18  Simon Josefsson  <simon@josefsson.org>
36044
36045         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
36046         G. Christensen" <tgc@jupiterrise.com>.
36047
36048         * lib/flock.c: Need to include errno.h.  Reported by "Tom
36049         G. Christensen" <tgc@jupiterrise.com>.
36050
36051         * lib/flock.c: Need to include string.h.  Reported by "Tom
36052         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
36053         <ebb9@byu.net>.
36054
36055 2008-12-18  Bruno Haible  <bruno@clisp.org>
36056
36057         * m4/locale-ja.m4: New file, from GNU gettext.
36058
36059 2008-12-17  Bruno Haible  <bruno@clisp.org>
36060
36061         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
36062         Suggested by Eric Blake.
36063
36064 2008-12-17  Bruno Haible  <bruno@clisp.org>
36065
36066         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
36067
36068 2008-12-17  Bruno Haible  <bruno@clisp.org>
36069
36070         * lib/mbsinit.c: Include verify.h. Verify an assumption.
36071         * modules/mbsinit (Depends-on): Add verify.
36072         Suggested by Paul Eggert.
36073
36074 2008-12-17  Bruno Haible  <bruno@clisp.org>
36075
36076         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
36077         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
36078         gl_FUNC_MBRTOWC.
36079         * m4/mbiter.m4 (gl_MBITER): LIkewise.
36080         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
36081         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
36082         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
36083         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
36084         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
36085         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
36086         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
36087         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
36088         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
36089         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
36090         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
36091         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
36092         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
36093         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
36094         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
36095         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
36096         * modules/trim (configure.ac): Likewise.
36097
36098 2008-12-17  Bruno Haible  <bruno@clisp.org>
36099
36100         * modules/btowc-tests: New file.
36101         * tests/test-btowc1.sh: New file.
36102         * tests/test-btowc2.sh: New file.
36103         * tests/test-btowc.c: New file.
36104
36105         New module 'btowc'.
36106         * lib/wchar.in.h (btowc): New declaration.
36107         * lib/btowc.c: New file.
36108         * m4/btowc.m4: New file.
36109         * modules/btowc: New file.
36110         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
36111         HAVE_BTOWC.
36112         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
36113         * doc/posix-functions/btowc.texi: Document the new module.
36114
36115 2008-12-17  Bruno Haible  <bruno@clisp.org>
36116
36117         New module 'mbsinit'.
36118         * lib/wchar.in.h (mbsinit): New declaration.
36119         * lib/mbsinit.c: New file.
36120         * m4/mbsinit.m4: New file.
36121         * modules/mbsinit: New file.
36122         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
36123         HAVE_MBSINIT.
36124         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
36125         HAVE_MBSINIT.
36126         * doc/posix-functions/mbsinit.texi: Document the new module.
36127
36128 2008-12-16  Bruno Haible  <bruno@clisp.org>
36129
36130         * lib/unistd.in.h: Add comment.
36131         * tests/test-environ.c: Don't include <stdlib.h>.
36132
36133 2008-12-16  Bruno Haible  <bruno@clisp.org>
36134
36135         * lib/parse-duration.h (parse_duration): Document return value
36136         convention.
36137         * lib/parse-duration.c: Include specification header first. Add
36138         comments.
36139         (_): Remove macro.
36140         (parse_year_month_day, parse_hour_minute_second): Move side effects
36141         outside of strchr call.
36142         (parse_non_iso8601): Move side effects outside of isspace call.
36143         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
36144         call.
36145
36146 2008-12-16  Bruno Haible  <bruno@clisp.org>
36147
36148         * tests/test-parse-duration.sh: Produce no output when the test
36149         succeeds.
36150
36151 2008-12-16  Bruno Haible  <bruno@clisp.org>
36152
36153         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
36154         expressions.
36155
36156 2008-12-15  Bruno Haible  <bruno@clisp.org>
36157
36158         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
36159         * doc/glibc-functions/flistxattr.texi: Likewise.
36160         * doc/glibc-functions/fopencookie.texi: Likewise.
36161         * doc/glibc-functions/fremovexattr.texi: Likewise.
36162         * doc/glibc-functions/fsetxattr.texi: Likewise.
36163         * doc/glibc-functions/getxattr.texi: Likewise.
36164         * doc/glibc-functions/lgetxattr.texi: Likewise.
36165         * doc/glibc-functions/listxattr.texi: Likewise.
36166         * doc/glibc-functions/llistxattr.texi: Likewise.
36167         * doc/glibc-functions/lremovexattr.texi: Likewise.
36168         * doc/glibc-functions/lsetxattr.texi: Likewise.
36169         * doc/glibc-functions/removexattr.texi: Likewise.
36170         * doc/glibc-functions/setxattr.texi: Likewise.
36171         * doc/posix-functions/open_memstream.texi: Likewise.
36172
36173 2008-12-15  Eric Blake  <ebb9@byu.net>
36174
36175         Update doc for cygwin 1.7.
36176         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
36177         functions.
36178         * doc/posix-functions/fchmodat.texi: Likewise.
36179         * doc/posix-functions/fchownat.texi: Likewise.
36180         * doc/posix-functions/fdopendir.texi: Likewise.
36181         * doc/posix-functions/fmemopen.texi: Likewise.
36182         * doc/posix-functions/freeaddrinfo.texi: Likewise.
36183         * doc/posix-functions/fstatat.texi: Likewise.
36184         * doc/posix-functions/futimens.texi: Likewise.
36185         * doc/posix-functions/gai_strerror.texi: Likewise.
36186         * doc/posix-functions/getaddrinfo.texi: Likewise.
36187         * doc/posix-functions/getnameinfo.texi: Likewise.
36188         * doc/posix-functions/if_freenameindex.texi: Likewise.
36189         * doc/posix-functions/if_indextoname.texi: Likewise.
36190         * doc/posix-functions/if_nameindex.texi: Likewise.
36191         * doc/posix-functions/if_nametoindex.texi: Likewise.
36192         * doc/posix-functions/insque.texi: Likewise.
36193         * doc/posix-functions/linkat.texi: Likewise.
36194         * doc/posix-functions/llrint.texi: Likewise.
36195         * doc/posix-functions/llrintf.texi: Likewise.
36196         * doc/posix-functions/llrintl.texi: Likewise.
36197         * doc/posix-functions/lockf.texi: Likewise.
36198         * doc/posix-functions/lrintl.texi: Likewise.
36199         * doc/posix-functions/mkdirat.texi: Likewise.
36200         * doc/posix-functions/mkfifoat.texi: Likewise.
36201         * doc/posix-functions/mknodat.texi: Likewise.
36202         * doc/posix-functions/mq_close.texi: Likewise.
36203         * doc/posix-functions/mq_getattr.texi: Likewise.
36204         * doc/posix-functions/mq_notify.texi: Likewise.
36205         * doc/posix-functions/mq_open.texi: Likewise.
36206         * doc/posix-functions/mq_receive.texi: Likewise.
36207         * doc/posix-functions/mq_send.texi: Likewise.
36208         * doc/posix-functions/mq_setattr.texi: Likewise.
36209         * doc/posix-functions/mq_timedreceive.texi: Likewise.
36210         * doc/posix-functions/mq_timedsend.texi: Likewise.
36211         * doc/posix-functions/mq_unlink.texi: Likewise.
36212         * doc/posix-functions/open_memstream.texi: Likewise.
36213         * doc/posix-functions/openat.texi: Likewise.
36214         * doc/posix-functions/posix_fadvise.texi: Likewise.
36215         * doc/posix-functions/posix_fallocate.texi: Likewise.
36216         * doc/posix-functions/posix_madvise.texi: Likewise.
36217         * doc/posix-functions/posix_memalign.texi: Likewise.
36218         * doc/posix-functions/posix_openpt.texi: Likewise.
36219         * doc/posix-functions/readlinkat.texi: Likewise.
36220         * doc/posix-functions/remque.texi: Likewise.
36221         * doc/posix-functions/renameat.texi: Likewise.
36222         * doc/posix-functions/rintl.texi: Likewise.
36223         * doc/posix-functions/sem_unlink.texi: Likewise.
36224         * doc/posix-functions/shm_open.texi: Likewise.
36225         * doc/posix-functions/shm_unlink.texi: Likewise.
36226         * doc/posix-functions/signgam.texi: Likewise.
36227         * doc/posix-functions/sigset.texi: Likewise.
36228         * doc/posix-functions/stpcpy.texi: Likewise.
36229         * doc/posix-functions/stpncpy.texi: Likewise.
36230         * doc/posix-functions/strerror.texi: Likewise.
36231         * doc/posix-functions/strtod.texi: Likewise.
36232         * doc/posix-functions/symlinkat.texi: Likewise.
36233         * doc/posix-functions/unlinkat.texi: Likewise.
36234         * doc/posix-functions/utimensat.texi: Likewise.
36235         * doc/glibc-functions/bindresvport.texi: Likewise.
36236         * doc/glibc-functions/dn_expand.texi: Likewise.
36237         * doc/glibc-functions/exp10.texi: Likewise.
36238         * doc/glibc-functions/exp10f.texi: Likewise.
36239         * doc/glibc-functions/fgetxattr.texi: Likewise.
36240         * doc/glibc-functions/flistxattr.texi: Likewise.
36241         * doc/glibc-functions/fopencookie.texi: Likewise.
36242         * doc/glibc-functions/freeifaddrs.texi: Likewise.
36243         * doc/glibc-functions/fremovexattr.texi: Likewise.
36244         * doc/glibc-functions/fsetxattr.texi: Likewise.
36245         * doc/glibc-functions/getifaddrs.texi: Likewise.
36246         * doc/glibc-functions/getxattr.texi: Likewise.
36247         * doc/glibc-functions/lgetxattr.texi: Likewise.
36248         * doc/glibc-functions/listxattr.texi: Likewise.
36249         * doc/glibc-functions/llistxattr.texi: Likewise.
36250         * doc/glibc-functions/lremovexattr.texi: Likewise.
36251         * doc/glibc-functions/lsetxattr.texi: Likewise.
36252         * doc/glibc-functions/pow10.texi: Likewise.
36253         * doc/glibc-functions/pow10f.texi: Likewise.
36254         * doc/glibc-functions/rcmd_af.texi: Likewise.
36255         * doc/glibc-functions/removexattr.texi: Likewise.
36256         * doc/glibc-functions/res_init.texi: Likewise.
36257         * doc/glibc-functions/res_mkquery.texi: Likewise.
36258         * doc/glibc-functions/res_query.texi: Likewise.
36259         * doc/glibc-functions/res_querydomain.texi: Likewise.
36260         * doc/glibc-functions/res_send.texi: Likewise.
36261         * doc/glibc-functions/rresvport_af.texi: Likewise.
36262         * doc/glibc-functions/setxattr.texi: Likewise.
36263         * doc/glibc-functions/strcasestr.texi: Likewise.
36264
36265 2008-12-15  Bruno Haible  <bruno@clisp.org>
36266
36267         Fix compilation error on OSF/1 4.0.
36268         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
36269         <sys/time.h>, simply delegate to the system header.
36270         Reported by Daniel Richard G. <oss@teragram.com>.
36271
36272 2008-12-15  Bruno Haible  <bruno@clisp.org>
36273
36274         * doc/posix-functions/openat.texi: Mention the 'openat' module.
36275         * doc/posix-functions/fchmodat.texi: Likewise.
36276         * doc/posix-functions/fchownat.texi: Likewise.
36277         * doc/posix-functions/fdopendir.texi: Likewise.
36278         * doc/posix-functions/fstatat.texi: Likewise.
36279         * doc/posix-functions/mkdirat.texi: Likewise.
36280         * doc/posix-functions/unlinkat.texi: Likewise.
36281
36282 2008-12-14  Bruno Haible  <bruno@clisp.org>
36283
36284         Update doc for POSIX:2008.
36285         * doc/posix-functions/faccessat.texi: New file.
36286         * doc/posix-functions/fchmodat.texi: New file.
36287         * doc/posix-functions/fchownat.texi: New file.
36288         * doc/posix-functions/fdopendir.texi: New file.
36289         * doc/posix-functions/fstatat.texi: New file.
36290         * doc/posix-functions/futimens.texi: New file.
36291         * doc/posix-functions/linkat.texi: New file.
36292         * doc/posix-functions/mkdirat.texi: New file.
36293         * doc/posix-functions/mkfifoat.texi: New file.
36294         * doc/posix-functions/mknodat.texi: New file.
36295         * doc/posix-functions/open_wmemstream.texi: New file.
36296         * doc/posix-functions/openat.texi: New file.
36297         * doc/posix-functions/psiginfo.texi: New file.
36298         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
36299         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
36300         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
36301         * doc/posix-functions/readlinkat.texi: New file.
36302         * doc/posix-functions/renameat.texi: New file.
36303         * doc/posix-functions/strerror_l.texi: New file.
36304         * doc/posix-functions/symlinkat.texi: New file.
36305         * doc/posix-functions/unlinkat.texi: New file.
36306         * doc/posix-functions/utimensat.texi: New file.
36307         * doc/gnulib.texi (Function Substitutes): Add these subsections.
36308
36309 2008-12-14  Bruno Haible  <bruno@clisp.org>
36310
36311         Update doc for POSIX:2008.
36312         * doc/posix-functions/alphasort.texi: Renamed from
36313         doc/glibc-functions/alphasort.texi.
36314         * doc/posix-functions/dirfd.texi: Renamed from
36315         doc/glibc-functions/dirfd.texi.
36316         * doc/posix-functions/dprintf.texi: Renamed from
36317         doc/glibc-functions/dprintf.texi.
36318         * doc/posix-functions/duplocale.texi: Renamed from
36319         doc/glibc-functions/duplocale.texi.
36320         * doc/posix-functions/fexecve.texi: Renamed from
36321         doc/glibc-functions/fexecve.texi.
36322         * doc/posix-functions/fmemopen.texi: Renamed from
36323         doc/glibc-functions/fmemopen.texi.
36324         * doc/posix-functions/freelocale.texi: Renamed from
36325         doc/glibc-functions/freelocale.texi.
36326         * doc/posix-functions/getdate_err.texi: Renamed from
36327         doc/glibc-functions/getdate_err.texi.
36328         * doc/posix-functions/isalnum_l.texi: Renamed from
36329         doc/glibc-functions/isalnum_l.texi.
36330         * doc/posix-functions/isalpha_l.texi: Renamed from
36331         doc/glibc-functions/isalpha_l.texi.
36332         * doc/posix-functions/isblank_l.texi: Renamed from
36333         doc/glibc-functions/isblank_l.texi.
36334         * doc/posix-functions/iscntrl_l.texi: Renamed from
36335         doc/glibc-functions/iscntrl_l.texi.
36336         * doc/posix-functions/isdigit_l.texi: Renamed from
36337         doc/glibc-functions/isdigit_l.texi.
36338         * doc/posix-functions/isgraph_l.texi: Renamed from
36339         doc/glibc-functions/isgraph_l.texi.
36340         * doc/posix-functions/islower_l.texi: Renamed from
36341         doc/glibc-functions/islower_l.texi.
36342         * doc/posix-functions/isprint_l.texi: Renamed from
36343         doc/glibc-functions/isprint_l.texi.
36344         * doc/posix-functions/ispunct_l.texi: Renamed from
36345         doc/glibc-functions/ispunct_l.texi.
36346         * doc/posix-functions/isspace_l.texi: Renamed from
36347         doc/glibc-functions/isspace_l.texi.
36348         * doc/posix-functions/isupper_l.texi: Renamed from
36349         doc/glibc-functions/isupper_l.texi.
36350         * doc/posix-functions/iswalnum_l.texi: Renamed from
36351         doc/glibc-functions/iswalnum_l.texi.
36352         * doc/posix-functions/iswalpha_l.texi: Renamed from
36353         doc/glibc-functions/iswalpha_l.texi.
36354         * doc/posix-functions/iswblank_l.texi: Renamed from
36355         doc/glibc-functions/iswblank_l.texi.
36356         * doc/posix-functions/iswcntrl_l.texi: Renamed from
36357         doc/glibc-functions/iswcntrl_l.texi.
36358         * doc/posix-functions/iswctype_l.texi: Renamed from
36359         doc/glibc-functions/iswctype_l.texi.
36360         * doc/posix-functions/iswdigit_l.texi: Renamed from
36361         doc/glibc-functions/iswdigit_l.texi.
36362         * doc/posix-functions/iswgraph_l.texi: Renamed from
36363         doc/glibc-functions/iswgraph_l.texi.
36364         * doc/posix-functions/iswlower_l.texi: Renamed from
36365         doc/glibc-functions/iswlower_l.texi.
36366         * doc/posix-functions/iswprint_l.texi: Renamed from
36367         doc/glibc-functions/iswprint_l.texi.
36368         * doc/posix-functions/iswpunct_l.texi: Renamed from
36369         doc/glibc-functions/iswpunct_l.texi.
36370         * doc/posix-functions/iswspace_l.texi: Renamed from
36371         doc/glibc-functions/iswspace_l.texi.
36372         * doc/posix-functions/iswupper_l.texi: Renamed from
36373         doc/glibc-functions/iswupper_l.texi.
36374         * doc/posix-functions/iswxdigit_l.texi: Renamed from
36375         doc/glibc-functions/iswxdigit_l.texi.
36376         * doc/posix-functions/isxdigit_l.texi: Renamed from
36377         doc/glibc-functions/isxdigit_l.texi.
36378         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
36379         doc/glibc-functions/mbsnrtowcs.texi.
36380         * doc/posix-functions/mkdtemp.texi: Renamed from
36381         doc/glibc-functions/mkdtemp.texi.
36382         * doc/posix-functions/newlocale.texi: Renamed from
36383         doc/glibc-functions/newlocale.texi.
36384         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
36385         doc/glibc-functions/nl_langinfo_l.texi.
36386         * doc/posix-functions/open_memstream.texi: Renamed from
36387         doc/glibc-functions/open_memstream.texi.
36388         * doc/posix-functions/opterr.texi: Renamed from
36389         doc/glibc-functions/opterr.texi.
36390         * doc/posix-functions/optind.texi: Renamed from
36391         doc/glibc-functions/optind.texi.
36392         * doc/posix-functions/optopt.texi: Renamed from
36393         doc/glibc-functions/optopt.texi.
36394         * doc/posix-functions/psignal.texi: Renamed from
36395         doc/glibc-functions/psignal.texi.
36396         * doc/posix-functions/scandir.texi: Renamed from
36397         doc/glibc-functions/scandir.texi.
36398         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
36399         doc/glibc-functions/sched_get_priority_min.texi.
36400         * doc/posix-functions/signgam.texi: Renamed from
36401         doc/glibc-functions/signgam.texi.
36402         * doc/posix-functions/stpcpy.texi: Renamed from
36403         doc/glibc-functions/stpcpy.texi.
36404         * doc/posix-functions/stpncpy.texi: Renamed from
36405         doc/glibc-functions/stpncpy.texi.
36406         * doc/posix-functions/strcasecmp_l.texi: Renamed from
36407         doc/glibc-functions/strcasecmp_l.texi.
36408         * doc/posix-functions/strcoll_l.texi: Renamed from
36409         doc/glibc-functions/strcoll_l.texi.
36410         * doc/posix-functions/strfmon_l.texi: Renamed from
36411         doc/glibc-functions/strfmon_l.texi.
36412         * doc/posix-functions/strftime_l.texi: Renamed from
36413         doc/glibc-functions/strftime_l.texi.
36414         * doc/posix-functions/strncasecmp_l.texi: Renamed from
36415         doc/glibc-functions/strncasecmp_l.texi.
36416         * doc/posix-functions/strndup.texi: Renamed from
36417         doc/glibc-functions/strndup.texi.
36418         * doc/posix-functions/strnlen.texi: Renamed from
36419         doc/glibc-functions/strnlen.texi.
36420         * doc/posix-functions/strsignal.texi: Renamed from
36421         doc/glibc-functions/strsignal.texi.
36422         * doc/posix-functions/strxfrm_l.texi: Renamed from
36423         doc/glibc-functions/strxfrm_l.texi.
36424         * doc/posix-functions/timer_gettime.texi: Renamed from
36425         doc/glibc-functions/timer_gettime.texi.
36426         * doc/posix-functions/tolower_l.texi: Renamed from
36427         doc/glibc-functions/tolower_l.texi.
36428         * doc/posix-functions/toupper_l.texi: Renamed from
36429         doc/glibc-functions/toupper_l.texi.
36430         * doc/posix-functions/towctrans_l.texi: Renamed from
36431         doc/glibc-functions/towctrans_l.texi.
36432         * doc/posix-functions/towlower_l.texi: Renamed from
36433         doc/glibc-functions/towlower_l.texi.
36434         * doc/posix-functions/towupper_l.texi: Renamed from
36435         doc/glibc-functions/towupper_l.texi.
36436         * doc/posix-functions/uselocale.texi: Renamed from
36437         doc/glibc-functions/uselocale.texi.
36438         * doc/posix-functions/vdprintf.texi: Renamed from
36439         doc/glibc-functions/vdprintf.texi.
36440         * doc/posix-functions/wcpcpy.texi:
36441         Renamed from doc/glibc-functions/wcpcpy.texi.
36442         * doc/posix-functions/wcpncpy.texi: Renamed from
36443         doc/glibc-functions/wcpncpy.texi.
36444         * doc/posix-functions/wcscasecmp.texi: Renamed from
36445         doc/glibc-functions/wcscasecmp.texi.
36446         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
36447         doc/glibc-functions/wcscasecmp_l.texi.
36448         * doc/posix-functions/wcscoll_l.texi: Renamed from
36449         doc/glibc-functions/wcscoll_l.texi.
36450         * doc/posix-functions/wcsdup.texi: Renamed from
36451         doc/glibc-functions/wcsdup.texi.
36452         * doc/posix-functions/wcsncasecmp.texi: Renamed from
36453         doc/glibc-functions/wcsncasecmp.texi.
36454         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
36455         doc/glibc-functions/wcsncasecmp_l.texi.
36456         * doc/posix-functions/wcsnlen.texi: Renamed from
36457         doc/glibc-functions/wcsnlen.texi.
36458         * doc/posix-functions/wcsnrtombs.texi: Renamed from
36459         doc/glibc-functions/wcsnrtombs.texi.
36460         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
36461         doc/glibc-functions/wcsxfrm_l.texi.
36462         * doc/posix-functions/wctrans_l.texi: Renamed from
36463         doc/glibc-functions/wctrans_l.texi.
36464         * doc/posix-functions/wctype_l.texi: Renamed from
36465         doc/glibc-functions/wctype_l.texi.
36466         * doc/gnulib.texi (Function Substitutes): Add these subsections.
36467         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
36468         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
36469         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
36470         these subsections.
36471         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
36472         Remove sections.
36473
36474 2008-12-14  Bruno Haible  <bruno@clisp.org>
36475
36476         Update doc for POSIX:2008.
36477         * doc/posix-functions/*.texi: Update URL of POSIX specification.
36478
36479 2008-12-14  Bruno Haible  <bruno@clisp.org>
36480
36481         Update doc for POSIX:2008.
36482         * doc/pastposix-functions/bcmp.texi: Renamed from
36483         doc/posix-functions/bcmp.texi.
36484         * doc/pastposix-functions/bcopy.texi: Renamed from
36485         doc/posix-functions/bcopy.texi.
36486         * doc/pastposix-functions/bsd_signal.texi: Renamed from
36487         doc/posix-functions/bsd_signal.texi.
36488         * doc/pastposix-functions/bzero.texi: Renamed from
36489         doc/posix-functions/bzero.texi.
36490         * doc/pastposix-functions/ecvt.texi: Renamed from
36491         doc/posix-functions/ecvt.texi.
36492         * doc/pastposix-functions/fcvt.texi: Renamed from
36493         doc/posix-functions/fcvt.texi.
36494         * doc/pastposix-functions/ftime.texi: Renamed from
36495         doc/posix-functions/ftime.texi.
36496         * doc/pastposix-functions/gcvt.texi: Renamed from
36497         doc/posix-functions/gcvt.texi.
36498         * doc/pastposix-functions/getcontext.texi: Renamed from
36499         doc/posix-functions/getcontext.texi.
36500         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
36501         doc/posix-functions/gethostbyaddr.texi.
36502         * doc/pastposix-functions/gethostbyname.texi: Renamed from
36503         doc/posix-functions/gethostbyname.texi.
36504         * doc/pastposix-functions/getwd.texi: Renamed from
36505         doc/posix-functions/getwd.texi.
36506         * doc/pastposix-functions/h_errno.texi: Renamed from
36507         doc/posix-functions/h_errno.texi.
36508         * doc/pastposix-functions/index.texi: Renamed from
36509         doc/posix-functions/index.texi.
36510         * doc/pastposix-functions/makecontext.texi: Renamed from
36511         doc/posix-functions/makecontext.texi.
36512         * doc/pastposix-functions/mktemp.texi: Renamed from
36513         doc/posix-functions/mktemp.texi.
36514         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
36515         doc/posix-functions/pthread_attr_getstackaddr.texi.
36516         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
36517         doc/posix-functions/pthread_attr_setstackaddr.texi.
36518         * doc/pastposix-functions/rindex.texi: Renamed from
36519         doc/posix-functions/rindex.texi.
36520         * doc/pastposix-functions/scalb.texi: Renamed from
36521         doc/posix-functions/scalb.texi.
36522         * doc/pastposix-functions/setcontext.texi: Renamed from
36523         doc/posix-functions/setcontext.texi.
36524         * doc/pastposix-functions/swapcontext.texi: Renamed from
36525         doc/posix-functions/swapcontext.texi.
36526         * doc/pastposix-functions/ualarm.texi: Renamed from
36527         doc/posix-functions/ualarm.texi.
36528         * doc/pastposix-functions/usleep.texi: Renamed from
36529         doc/posix-functions/usleep.texi.
36530         * doc/pastposix-functions/vfork.texi: Renamed from
36531         doc/posix-functions/vfork.texi.
36532         * doc/pastposix-functions/wcswcs.texi: Renamed from
36533         doc/posix-functions/wcswcs.texi.
36534         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
36535         (Function Substitutes): Update.
36536
36537 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36538
36539         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
36540         m4/strerror.m4.
36541
36542 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36543             Bruno Haible  <bruno@clisp.org>
36544
36545         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
36546
36547 2008-12-13  Bruno Haible  <bruno@clisp.org>
36548
36549         * modules/strtoull (Depends-on): Remove unistd.
36550
36551 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36552
36553         * modules/strtoull (Depends-on): Add stdlib.
36554
36555 2008-12-11  Simon Josefsson  <simon@josefsson.org>
36556
36557         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
36558
36559 2008-12-10  Jim Meyering  <meyering@redhat.com>
36560
36561         gl_ASSERT: don't say assertions are disabled when they're not
36562         * m4/assert.m4 (gl_ASSERT): Do not make configure report
36563         "checking whether to enable assertions... no", when they are in
36564         fact enabled.  This is solely a bug in the output of configure.
36565         In spite of saying "no", NDEBUG was not defined in that case.
36566         Also, as noted by Eric Blake, leave assertions enabled upon
36567         --enable-assert=INVALID.
36568
36569 2008-12-10  Bruno Haible  <bruno@clisp.org>
36570
36571         Change MODULES.html to refer to POSIX:2008 where possible.
36572         * MODULES.html.sh (POSIX2008_URL): New variable.
36573         (posix_headers): Remove sys/timeb, ucontext.
36574         (posix2001_headers): New variable.
36575         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
36576         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
36577         index, makecontext, mktemp, pthread_attr_getstackaddr,
36578         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
36579         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
36580         (posix2001_functions): New variable.
36581         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
36582         otherwise.
36583
36584 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36585
36586         add missing include to parse-duration.c
36587         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
36588         * modules/parse-duration (Depends-on): Add xalloc.
36589
36590         fix sed script reading maint.mk
36591         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
36592         (syntax-check-rules): Use it.
36593
36594 2008-12-09  Bruno Haible  <bruno@clisp.org>
36595
36596         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
36597         MacOS X 10.4/PowerPC.
36598         Reported by Simon Josefsson.
36599
36600 2008-12-08  Jim Meyering  <meyering@redhat.com>
36601
36602         work around mingw's lack of some S_IF definitions
36603         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
36604         Reported by Simon Josefsson.
36605
36606 2008-12-08  Bruno Haible  <bruno@clisp.org>
36607
36608         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
36609         applied to variables. Needed on MacOS X 10.4/PowerPC.
36610         Reported by Simon Josefsson.
36611
36612 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
36613         and Eric Blake  <ebb9@byu.net>
36614
36615         assert: honor --enable-assert
36616         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
36617         order to honor --enable-assert, rather than treating it as a
36618         synonym for --disable-assert.
36619
36620 2008-12-08  Jim Meyering  <meyering@redhat.com>
36621
36622         * lib/posixtm.c: Remove now-useless declaration of mktime.
36623
36624         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
36625
36626 2008-12-07  Bruno Haible  <bruno@clisp.org>
36627
36628         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
36629         test_once): Mark functions as static.
36630         * tests/test-tls.c (test_tls): Likewise.
36631
36632 2008-12-07  Bruno Haible  <bruno@clisp.org>
36633
36634         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
36635         iconv_register_autodetect.
36636
36637 2008-12-07  Jim Meyering  <meyering@redhat.com>
36638
36639         posixtm.c: avoid a warning
36640         * lib/posixtm.c (posixtime): Don't initialize tm0.
36641         It's no longer needed to placate gcc4's -Wuninitialized,
36642         and the attempt to placate would elicit a new warning.
36643
36644         unicodeio.c: mark unused parameters
36645         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
36646         (fallback_failure_callback): Likewise.
36647
36648 2008-12-07  Bruno Haible  <bruno@clisp.org>
36649
36650         * gnulib-tool (func_create_testdir): When building the tests
36651         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
36652         Reported by Simon Josefsson.
36653
36654 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36655
36656         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
36657
36658 2008-12-06  Bruno Haible  <bruno@clisp.org>
36659
36660         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
36661         Suggested by Eric Blake.
36662
36663 2008-12-06  Bruno Haible  <bruno@clisp.org>
36664
36665         Fix a c-stack test failure on MacOS X.
36666         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
36667         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
36668         handler for SIGBUS as well.
36669         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
36670         install a signal handler for SIGBUS as well.
36671         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
36672
36673 2008-12-06  Bruno Haible  <bruno@clisp.org>
36674
36675         Advocacy documentation.
36676         * doc/gnulib-intro.texi (Benefits): New section.
36677         * doc/gnulib.texi: Update.
36678
36679 2008-12-06  Bruno Haible  <bruno@clisp.org>
36680
36681         Document the 'manywarnings' module.
36682         * doc/manywarnings.texi: New file.
36683         * doc/gnulib.texi: Include it.
36684
36685 2008-12-05  Eric Blake  <ebb9@byu.net>
36686
36687         tests: silence some gcc warnings
36688         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
36689         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
36690         type mismatches.
36691
36692 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36693             Bruno Haible  <bruno@clisp.org>
36694
36695         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
36696
36697 2008-11-29  Jim Meyering  <meyering@redhat.com>
36698
36699         unicodeio.c: mark unused parameters
36700         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
36701         (fallback_failure_callback): Likewise.
36702
36703         fts: fix a thinko
36704         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
36705         (set_stat_type): Return S_IF*-valued "type" directly.
36706         Prompted by James Youngman's spotting a related bug.
36707         Confirmed by further testing through find.
36708
36709         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
36710         * lib/fts.c (D_TYPE): Define.
36711         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
36712         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
36713         (s_ifmt_shift_bits): New function.
36714         (set_stat_type): New function.
36715         (fts_build): When not calling fts_stat, call set_stat_type
36716         to propagate dirent.d_type info to fts_read caller.
36717         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
36718         fts_statp->st_mode type information may be valid.
36719
36720 2008-11-28  Simon Josefsson  <simon@josefsson.org>
36721
36722         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
36723         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
36724         <sds@gnu.org>.
36725
36726 2008-11-20  Bruno Haible  <bruno@clisp.org>
36727
36728         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
36729         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
36730         INCLUDE_NEXT.
36731         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
36732         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
36733         * modules/math (Makefile.am): Substitute
36734         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
36735         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36736
36737 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
36738             Bruno Haible  <bruno@clisp.org>
36739
36740         * lib/stdint.in.h: Define all type macros so that their expansion is
36741         a single typedef'ed token. Fixes a compilation failure in Boost which
36742         does "using ::int8_t;".
36743
36744 2008-11-18  Simon Josefsson  <simon@josefsson.org>
36745
36746         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
36747         gl_MANYWARN_ALL_GCC.
36748         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
36749         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
36750         * modules/manywarnings: New file.
36751         * MODULES.html.sh: Mention manywarnings module.
36752
36753 2008-11-18  Bruno Haible  <bruno@clisp.org>
36754
36755         * doc/gnulib-tool.texi (Unit tests): New section.
36756
36757 2008-11-18  Simon Josefsson  <simon@josefsson.org>
36758
36759         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
36760         paths like 'lib/po/foo.po'.
36761
36762 2008-11-17  Simon Josefsson  <simon@josefsson.org>
36763
36764         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
36765         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
36766
36767 2008-11-17  Simon Josefsson  <simon@josefsson.org>
36768
36769         * m4/warnings.m4: Use CPPFLAGS to really check whether the
36770         parameter works.
36771
36772 2008-11-17  Simon Josefsson  <simon@josefsson.org>
36773
36774         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
36775
36776 2008-11-17  Bruce Korb  <bkorb@gnu.org>
36777
36778         * modules/parse-duration-tests: New file.
36779         * tests/test-parse-duration.sh: New file.
36780         * tests/test-parse-duration.c: New file.
36781
36782         New module 'parse-duration'.
36783         * lib/parse-duration.h: New file.
36784         * lib/parse-duration.c: New file.
36785         * modules/parse-duration: New file.
36786
36787 2008-11-17  Bruno Haible  <bruno@clisp.org>
36788
36789         * tests/test-select-out.sh: Comment out the first pipe test.
36790         Reported by Simon Josefsson.
36791
36792 2008-11-17  Bruno Haible  <bruno@clisp.org>
36793
36794         * modules/getaddrinfo (Depends-on): Add servent, hostent.
36795         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
36796         gl_HOSTENT.
36797
36798 2008-11-17  Bruno Haible  <bruno@clisp.org>
36799
36800         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
36801         -lnetwork and -lnet. Needed for Haiku and BeOS.
36802
36803 2008-11-16  Bruno Haible  <bruno@clisp.org>
36804
36805         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
36806
36807 2008-11-16  Bruno Haible  <bruno@clisp.org>
36808
36809         Avoid test failure on Haiku.
36810         * tests/test-fsync.c: Include <errno.h>.
36811         (main): Don't require that fsync (0) fails.
36812
36813 2008-11-15  Bruno Haible  <bruno@clisp.org>
36814
36815         New module 'hostent'.
36816         * modules/hostent: New file.
36817         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
36818
36819 2008-11-15  Bruno Haible  <bruno@clisp.org>
36820
36821         New module 'servent'.
36822         * modules/servent: New file.
36823         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
36824
36825 2008-11-15  Bruno Haible  <bruno@clisp.org>
36826
36827         Avoid generating same test program with two different rules.
36828         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
36829         test-frexp to test-frexp-nolibm.
36830         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
36831         test-frexpl to test-frexpl-nolibm.
36832
36833 2008-11-15  Bruno Haible  <bruno@clisp.org>
36834
36835         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
36836         $(FREXPL_LIBM).
36837
36838 2008-11-15  Bruno Haible  <bruno@clisp.org>
36839
36840         * lib/netdb.in.h: Activate the definitions also when the system's
36841         <netdb.h> has 'struct addrinfo'.
36842         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
36843         EAI_OVERFLOW or AI_NUMERICSERV.
36844         * doc/posix-headers/netdb.texi: Document the problem.
36845
36846 2008-11-15  Bruno Haible  <bruno@clisp.org>
36847
36848         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
36849
36850         Make the 'sched' module work on platforms where <sched.h> exists but
36851         is incomplete (such as Haiku).
36852         * lib/sched.in.h; Include the system's <sched.h> if it exists.
36853         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
36854         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
36855         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
36856         HAVE_STRUCT_SCHED_PARAM.
36857         * modules/sched (Depends-on): Add include_next.
36858         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
36859         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
36860         * doc/posix-headers/sched.texi: Document the issue.
36861
36862 2008-11-13  Jim Meyering  <meyering@redhat.com>
36863
36864         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
36865         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
36866         test would fail due to the difference in the Report bugs to ...
36867         line.  The expected address is empty, "<>", while the actual
36868         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
36869
36870 2008-11-12  Bruno Haible  <bruno@clisp.org>
36871
36872         lstat: don't compile lstat.c on systems lacking lstat
36873         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
36874         which don't have lstat; this is handled by lib/sys_stat.in.h already.
36875         Reported by Daniel P. Berrange via Jim Meyering.
36876
36877 2008-11-12  Jim Meyering  <meyering@redhat.com>
36878
36879         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
36880
36881 2008-11-12  Simon Josefsson  <simon@josefsson.org>
36882
36883         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
36884         instead.
36885
36886 2008-11-12  Bruno Haible  <bruno@clisp.org>
36887
36888         * lib/unicodeio.c: Include unistr.h.
36889         (utf8_wctomb): Remove function.
36890         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
36891
36892 2008-11-12  Simon Josefsson  <simon@josefsson.org>
36893
36894         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
36895         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
36896         <bruno@clisp.org>.
36897         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
36898
36899 2008-11-12  Simon Josefsson  <simon@josefsson.org>
36900
36901         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
36902         * doc/gnulib.texi: Add section for warnings.
36903
36904 2008-11-11  Bruno Haible  <bruno@clisp.org>
36905
36906         * lib/sockets.h: Add a comment.
36907
36908 2008-11-11  Karl Berry  <karl@gnu.org>
36909
36910         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
36911
36912 2008-11-11  Eric Blake  <ebb9@byu.net>
36913
36914         fdl.texi: avoid git symlinks
36915         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
36916
36917 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
36918
36919         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
36920
36921 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
36922
36923         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
36924         (gl_WARN_ADD): Substitute $2 if literal.
36925
36926 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
36927
36928         * m4/warning.m4: Remove.
36929
36930 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
36931
36932         * m4/warnings.m4: Almost complete rewrite. :-)
36933
36934 2008-11-10  Simon Josefsson  <simon@josefsson.org>
36935
36936         * modules/warnings: New module.
36937         * m4/warnings.m4: New file.
36938         * MODULES.html.sh: Mention warnings module.
36939         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
36940         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36941
36942 2008-11-10  Eric Blake  <ebb9@byu.net>
36943
36944         fdl.texi: make a symlink to the latest version
36945         * doc/standards.texi: Revert today's earlier change.
36946         * doc/fdl-1.2.texi: Rename from old fdl.texi...
36947         * doc/fdl.texi: ...and replace this with a symlink to the newer
36948         fdl-1.3.texi.
36949
36950 2008-11-10  Bruno Haible  <bruno@clisp.org>
36951
36952         * tests/test-select-fd.c (main): Accept the result file name as fourth
36953         argument.
36954         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
36955         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
36956
36957 2008-11-10  Bruno Haible  <bruno@clisp.org>
36958
36959         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
36960         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
36961         as autoconf-substituted macros.
36962         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
36963         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
36964         gl_NETDB_H_DEFAULTS. Set these variables.
36965         * modules/netdb (Makefile.am): Substitute these variables.
36966
36967 2008-11-10  Eric Blake  <ebb9@byu.net>
36968
36969         standards.texi: include correct file for FDL 1.3
36970         * doc/standards.texi (GNU Free Documentation License): Change
36971         include file to pull in FDL 1.3, not 1.2.
36972
36973         fdl.texi: revert accidental change to license
36974         * doc/fdl.texi: This is FDL 1.2, not 1.3.
36975
36976 2008-11-10  Bruno Haible  <bruno@clisp.org>
36977
36978         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
36979         cross-compiling guesses also when the native compile gives no result.
36980
36981 2008-11-10  Bruno Haible  <bruno@clisp.org>
36982
36983         * lib/spawni.c (__spawni): Force variable into the stack.
36984
36985 2008-11-10  Bruno Haible  <bruno@clisp.org>
36986
36987         Add support for Haiku.
36988         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
36989         glibc and BeOS, but also on Haiku.
36990         * lib/fpurge.c (fpurge): Likewise.
36991         * lib/freadable.c (freadable): Likewise.
36992         * lib/freadahead.c (freadahead): Likewise.
36993         * lib/freading.c (freading): Likewise.
36994         * lib/freadptr.c (freadptr): Likewise.
36995         * lib/freadseek.c (freadptrinc): Likewise.
36996         * lib/fseeko.c (rpl_fseeko): Likewise.
36997         * lib/fseterr.c (fseterr): Likewise.
36998         * lib/fwritable.c (fwritable): Likewise.
36999         * lib/fwriting.c (fwriting): Likewise.
37000         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
37001
37002 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
37003
37004         * lib/config.charset: Treat Haiku like BeOS.
37005
37006 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
37007
37008         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
37009         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
37010
37011 2008-11-08  Bruno Haible  <bruno@clisp.org>
37012
37013         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
37014         AC_CACHE_CHECK.
37015
37016 2008-11-08  Bruno Haible  <bruno@clisp.org>
37017
37018         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
37019
37020 2008-11-08  Bruno Haible  <bruno@clisp.org>
37021
37022         * tests/test-select-fd.c: New file.
37023         * tests/test-select-in.sh: New file.
37024         * tests/test-select-out.sh: New file.
37025         * tests/test-select-stdin.c: New file.
37026         * modules/select-tests (Files): Add the new files.
37027         (Depends-on): Add gettimeofday.
37028         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
37029         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
37030         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
37031
37032 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
37033             Bruno Haible  <bruno@clisp.org>
37034
37035         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
37036
37037 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
37038
37039         * build-aux/pmccabe2html: Added support for C++ source files.
37040
37041 2008-11-05  Ben Pfaff  <blp@gnu.org>
37042
37043         Fix lib/close.c build on Windows.
37044         * modules/close (Files): Add lib/w32sock.h.
37045
37046 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
37047
37048         Accept Bison's NEWS format.
37049         * build-aux/announce-gen (print_news_deltas): Tweak
37050         $re_prefix.
37051
37052 2008-11-04  Bruno Haible  <bruno@clisp.org>
37053
37054         * modules/random_r (Maintainer): Add glibc.
37055
37056 2008-11-04  Simon Josefsson  <simon@josefsson.org>
37057
37058         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
37059         by karl@freefriends.org (Karl Berry).
37060         * doc/alloca.texi: Likewise.
37061         * doc/c-ctype.texi: Likewise.
37062         * doc/c-strcase.texi: Likewise.
37063         * doc/c-strcaseeq.texi: Likewise.
37064         * doc/c-strcasestr.texi: Likewise.
37065         * doc/c-strstr.texi: Likewise.
37066         * doc/c-strtod.texi: Likewise.
37067         * doc/c-strtold.texi: Likewise.
37068         * doc/ctime.texi: Likewise.
37069         * doc/error.texi: Likewise.
37070         * doc/fdl.texi: Likewise.
37071         * doc/gcd.texi: Likewise.
37072         * doc/getdate.texi: Likewise.
37073         * doc/gnulib-intro.texi: Likewise.
37074         * doc/gnulib-tool.texi: Likewise.
37075         * doc/gnulib.texi: Likewise.
37076         * doc/inet_ntoa.texi: Likewise.
37077         * doc/maintain.texi: Likewise.
37078         * doc/make-stds.texi: Likewise.
37079         * doc/quote.texi: Likewise.
37080         * doc/regexprops-generic.texi: Likewise.
37081         * doc/standards.texi: Likewise.
37082         * doc/verify.texi: Likewise.
37083         * doc/visibility.texi: Likewise.
37084         * doc/gnulib.texi (GNU Free Documentation License): Include
37085         fdl-1.3.texi instead of fdl.texi.
37086
37087 2008-11-04  Simon Josefsson  <simon@josefsson.org>
37088
37089         * doc/fdl-1.3.texi: New file, from
37090         <http://www.gnu.org/licenses/fdl-1.3.texi>.
37091         * modules/fdl-1.3: Add.
37092         * MODULES.html.sh: Add fdl-1.3.
37093
37094 2008-11-03  Bruno Haible  <bruno@clisp.org>
37095
37096         Make determination of absolute name of header file work with AIX xlc.
37097         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
37098         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
37099         preprocessing.
37100         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
37101         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
37102
37103 2008-11-03  Simon Josefsson  <simon@josefsson.org>
37104
37105         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
37106         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
37107         <ludo@gnu.org>.
37108
37109 2008-11-02  Bruno Haible  <bruno@clisp.org>
37110
37111         Mark 'strpbrk' obsolete.
37112         * modules/strpbrk (Status, Notice): New sections.
37113         * modules/strtok_r (Depends-on): Add strpbrk.
37114
37115 2008-11-02  Bruno Haible  <bruno@clisp.org>
37116
37117         Mark 'strdup' obsolete.
37118         * modules/strdup (Status, Notice): New sections.
37119         * modules/findprog (Depends-on): Add strdup.
37120         * modules/getaddrinfo (Depends-on): Likewise.
37121         * modules/localename (Depends-on): Likewise.
37122         * modules/relocatable-lib (Depends-on): Likewise.
37123         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
37124         * modules/relocatable-prog (Depends-on): Likewise.
37125         * modules/trim (Depends-on): Likewise.
37126         * modules/unictype/gen-ctype (Depends-on): Likewise.
37127         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
37128
37129 2008-11-02  Bruno Haible  <bruno@clisp.org>
37130
37131         Mark 'strcspn' obsolete.
37132         * modules/strcspn (Status, Notice): New sections.
37133
37134 2008-11-02  Bruno Haible  <bruno@clisp.org>
37135
37136         Mark 'rmdir' obsolete.
37137         * modules/rmdir (Status, Notice): New sections.
37138         * modules/clean-temp (Depends-on): Add rmdir.
37139         * modules/openat (Depends-on): Likewise.
37140
37141 2008-11-02  Bruno Haible  <bruno@clisp.org>
37142
37143         Mark 'raise' obsolete.
37144         * modules/raise (Status, Notice): New sections.
37145         (Include): Specify <signal.h>.
37146         * modules/stdio (Depends-on): Add raise.
37147         * modules/write (Depends-on): Likewise.
37148
37149 2008-11-02  Bruno Haible  <bruno@clisp.org>
37150
37151         Mark 'memset' obsolete.
37152         * modules/memset (Status, Notice): New sections.
37153
37154 2008-11-02  Bruno Haible  <bruno@clisp.org>
37155
37156         Mark 'memmove' obsolete.
37157         * modules/memmove (Status, Notice): New sections.
37158         * modules/argp (Depends-on): Add memmove.
37159         * modules/argz (Depends-on): Likewise.
37160         * modules/canonicalize (Depends-on): Likewise.
37161         * modules/canonicalize-lgpl (Depends-on): Likewise.
37162         * modules/fts (Depends-on): Likewise.
37163         * modules/getcwd (Depends-on): Likewise.
37164         * modules/human (Depends-on): Likewise.
37165         * modules/regex (Depends-on): Likewise.
37166         * modules/striconveh (Depends-on): Likewise.
37167         * modules/trim (Depends-on): Likewise.
37168         * modules/unistr/u8-move (Depends-on): Likewise.
37169         * modules/unistr/u16-move (Depends-on): Likewise.
37170         * modules/unistr/u32-move (Depends-on): Likewise.
37171
37172 2008-11-02  Bruno Haible  <bruno@clisp.org>
37173
37174         Mark 'memcpy' obsolete.
37175         * modules/memcpy (Status, Notice): New sections.
37176
37177 2008-11-02  Bruno Haible  <bruno@clisp.org>
37178
37179         Mark 'memcmp' obsolete.
37180         * modules/memcmp (Status, Notice): New sections.
37181         * modules/argmatch (Depends-on): Add memchr.
37182         * modules/backupfile (Depends-on): Likewise.
37183         * modules/c-strcasestr (Depends-on): Likewise.
37184         * modules/crypto/des (Depends-on): Likewise.
37185         * modules/csharpcomp (Depends-on): Likewise.
37186         * modules/fnmatch (Depends-on): Likewise.
37187         * modules/git-merge-changelog (Depends-on): Likewise.
37188         * modules/isnand (Depends-on): Likewise.
37189         * modules/isnand-nolibm (Depends-on): Likewise.
37190         * modules/isnanf (Depends-on): Likewise.
37191         * modules/isnanf-nolibm (Depends-on): Likewise.
37192         * modules/isnanl (Depends-on): Likewise.
37193         * modules/isnanl-nolibm (Depends-on): Likewise.
37194         * modules/mbchar (Depends-on): Likewise.
37195         * modules/memcoll (Depends-on): Likewise.
37196         * modules/quotearg (Depends-on): Likewise.
37197         * modules/regex (Depends-on): Likewise.
37198         * modules/relocatable-prog (Depends-on): Likewise.
37199         * modules/same (Depends-on): Likewise.
37200         * modules/signbit (Depends-on): Likewise.
37201         * modules/strcasestr-simple (Depends-on): Likewise.
37202         * modules/unictype/gen-ctype (Depends-on): Likewise.
37203         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
37204         * modules/uniname/uniname (Depends-on): Likewise.
37205         * modules/unistr/u8-cmp (Depends-on): Likewise.
37206
37207 2008-11-02  Bruno Haible  <bruno@clisp.org>
37208
37209         Mark 'memchr' obsolete.
37210         * modules/memchr (Status, Notice): New sections.
37211         * modules/argp (Depends-on): Add memchr.
37212         * modules/base64 (Depends-on): Likewise.
37213         * modules/c-strcasestr (Depends-on): Likewise.
37214         * modules/chdir-long (Depends-on): Likewise.
37215         * modules/fnmatch (Depends-on): Likewise.
37216         * modules/getsubopt (Depends-on): Likewise.
37217         * modules/git-merge-changelog (Depends-on): Likewise.
37218         * modules/glob (Depends-on): Likewise.
37219         * modules/strcasestr-simple (Depends-on): Likewise.
37220         * modules/strnlen (Depends-on): Likewise.
37221
37222 2008-11-02  Bruno Haible  <bruno@clisp.org>
37223
37224         Mark 'atexit' obsolete.
37225         * modules/atexit (Status, Notice): New sections.
37226         * modules/chdir-long (Depends-on): Add atexit.
37227         * modules/wait-process (Depends-on): Likewise.
37228
37229 2008-11-02  Bruno Haible  <bruno@clisp.org>
37230
37231         * gnulib-tool: New option --with-obsolete.
37232         (func_usage): Document it.
37233         (func_modules_transitive_closure): Drop obsolete dependencies if
37234         incobsolete is not true.
37235         (func_import): Read and save the incobsolete variable to the cache.
37236
37237 2008-11-02  Bruno Haible  <bruno@clisp.org>
37238
37239         * modules/TEMPLATE-EXTENDED: New field 'Status'.
37240         * gnulib-tool: New option --extract-status.
37241         (func_usage): Document it.
37242         (sed_extract_prog): Recognize it.
37243         (func_get_status): New function.
37244
37245 2008-10-30  Simon Josefsson  <simon@josefsson.org>
37246
37247         * modules/sockets (License): Change from LGPL to LGPLv2+.
37248
37249 2008-10-28  Simon Josefsson  <simon@josefsson.org>
37250
37251         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
37252
37253 2008-10-28  Simon Josefsson  <simon@josefsson.org>
37254
37255         * MODULES.html.sh (Support for systems lacking POSIX:2001):
37256         Mention times and sys_times.
37257         * modules/sys_times, modules/sys_times-tests: New modules.
37258         * modules/times, modules/times-tests: Likewise
37259         * m4/sys_times_h.m4: New file.
37260         * lib/sys_times.in.h: Likewise
37261         * lib/times.c: Likewise.
37262         * tests/test-sys_times.c: Likewise.
37263         * tests/test-times.c: Likewise.
37264         * doc/posix-headers/sys_times.texi: Update.
37265         * doc/posix-functions/times.texi: Update.
37266
37267 2008-10-28  Jim Meyering  <meyering@redhat.com>
37268
37269         * modules/tempname (Depends-on): Add lstat.
37270
37271         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
37272
37273 2008-10-28  Simon Josefsson  <simon@josefsson.org>
37274
37275         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
37276         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
37277         using idiom used elsewhere in gnulib.
37278
37279 2008-10-27  Jim Meyering  <meyering@redhat.com>
37280
37281         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
37282
37283 2008-10-27  Simon Josefsson  <simon@josefsson.org>
37284
37285         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
37286         TESTS_ENVIRONMENT, for shell scripts that needs to call built
37287         programs.
37288         * tests/test-argp-2.sh: Use $EXEEXT when needed.
37289
37290 2008-10-27  Simon Josefsson  <simon@josefsson.org>
37291
37292         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
37293
37294 2008-10-27  Bruno Haible  <bruno@clisp.org>
37295
37296         * tests/test-lstat.c: Include <stdio.h>.
37297
37298 2008-10-27  Simon Josefsson  <simon@josefsson.org>
37299
37300         * modules/lstat-tests: New module.
37301         * tests/test-lstat.c: New file.
37302
37303 2008-10-26  Jim Meyering  <meyering@redhat.com>
37304
37305         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
37306
37307 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37308             Bruno Haible  <bruno@clisp.org>
37309
37310         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
37311         * modules/configmake (Include): Add a note that the include must come
37312         after all system headers.
37313         * lib/javaversion.c: Include configmake.h after all other includes.
37314
37315 2008-10-26  Bruno Haible  <bruno@clisp.org>
37316
37317         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
37318         HAVE_STRUCT_RANDOM_DATA to 1.
37319         (gl_STDLIB_H): Simplify.
37320
37321 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37322
37323         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
37324         substitute HAVE_STRUCT_RANDOM_DATA.
37325         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
37326         random_data.
37327         * modules/stdlib (Makefile.am): Substitute
37328         HAVE_STRUCT_RANDOM_DATA.
37329
37330 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37331
37332         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
37333         * doc/gnulib-intro.texi (Copyright): Likewise.
37334
37335 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37336
37337         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
37338         findings.
37339
37340 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
37341             Bruno Haible  <bruno@clisp.org>
37342
37343         * lib/unistd.in.h: Include <winsock2.h>.
37344         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
37345         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
37346         Provide dummy declarations.
37347         (gethostname): Override.
37348         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
37349         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
37350         gl_PREREQ_SYS_H_WINSOCK2.
37351         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
37352         * doc/posix-functions/gethostname.texi: More details.
37353
37354 2008-10-25  Bruno Haible  <bruno@clisp.org>
37355
37356         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
37357         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
37358         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
37359
37360         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
37361         here ...
37362         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
37363         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
37364         gl_UNISTD_H_DEFAULTS.
37365
37366 2008-10-25  Eric Blake  <ebb9@byu.net>
37367
37368         signbit: avoid spurious compiler failure
37369         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
37370         declarations inside function.
37371
37372 2008-10-24  Simon Josefsson  <simon@josefsson.org>
37373             Bruno Haible  <bruno@clisp.org>
37374
37375         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
37376         * modules/random_r (Depends-on): Add stdint.
37377
37378 2008-10-24  Bruno Haible  <bruno@clisp.org>
37379
37380         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
37381         Eggert.
37382         * modules/strerror (License): Likewise.
37383
37384 2008-10-24  Jim Meyering  <meyering@redhat.com>
37385
37386         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
37387         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
37388
37389 2008-10-24  Eric Blake  <ebb9@byu.net>
37390
37391         getgroups: fix compilation when getgroups is available
37392         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
37393         but with <config.h> override of getgroups disabled.
37394
37395 2008-10-24  Simon Josefsson  <simon@josefsson.org>
37396
37397         * doc/gnulib.texi (Header files): Add note about C++ problems.
37398         Explained by Bruno Haible <bruno@clisp.org>.
37399
37400 2008-10-23  Bruno Haible  <bruno@clisp.org>
37401
37402         Define a dummy SA_NODEFER macro on Interix.
37403         * lib/signal.in.h (SA_NODEFER): Define fallback.
37404         Reported by Aleksey Cheusov <cheusov@tut.by> via
37405         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
37406
37407 2008-10-23  Bruno Haible  <bruno@clisp.org>
37408
37409         * modules/freadahead (License): Change to LGPLv2+.
37410         Suggested by Simon Josefsson.
37411
37412 2008-10-23  Jim Meyering  <meyering@redhat.com>
37413
37414         random_r: new module
37415         * modules/random_r: New file.
37416         * m4/random_r.m4: New file.
37417         * lib/random_r.c: New file, from glibc.
37418         * modules/random_r-tests: New file.
37419         * tests/test-random_r.c: New file.
37420         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
37421          Declare.
37422         (RAND_MAX): Define.
37423         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
37424         * modules/stdlib: Substitute them, too.
37425         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
37426         * doc/glibc-functions/initstate_r.texi: Mention the new module.
37427         * doc/glibc-functions/random_r.texi: Likewise.
37428         * doc/glibc-functions/setstate_r.texi: Likewise.
37429         * doc/glibc-functions/srandom_r.texi: Likewise.
37430         * config/srclist.txt: Mention it.
37431
37432 2008-10-23  David Lutterkort  <lutter@redhat.com>
37433
37434         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
37435         link requirement
37436
37437 2008-10-23  Jim Meyering  <meyering@redhat.com>
37438
37439         selinux-h: mark parameters of stub functions as intentionally unused
37440         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
37441         * lib/se-context.in.h: Likewise.
37442
37443 2008-10-22  Simon Josefsson  <simon@josefsson.org>
37444
37445         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
37446
37447 2008-10-22  Simon Josefsson  <simon@josefsson.org>
37448
37449         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
37450
37451 2008-10-22  Eric Blake  <ebb9@byu.net>
37452
37453         glthread/thread: avoid compiler warning
37454         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
37455         Add unreachable abort to silence compiler.
37456
37457 2008-10-22  Eric Blake  <ebb9@byu.net>
37458
37459         netdb: also supply struct addrinfo for cygwin 1.5.x
37460         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
37461         older cygwin.
37462         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
37463         cygwin.
37464         * doc/posix-headers/netdb.texi (netdb.h): Document this.
37465
37466 2008-10-22  Bruno Haible  <bruno@clisp.org>
37467
37468         * users.txt: Update entry about pspp.
37469
37470 2008-10-21  Bruno Haible  <bruno@clisp.org>
37471
37472         Simplification.
37473         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
37474         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
37475
37476         Simplification.
37477         * lib/ioctl.c (ioctl): Don't undefine.
37478         * lib/socket.c (socket): Don't undefine.
37479
37480         Remove unused module indicator macros.
37481         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
37482         GNULIB_$1 as a C macro.
37483
37484         * doc/posix-functions/close.texi: Undo last change.
37485         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
37486         Windows platforms.
37487
37488 2008-10-21  Bruno Haible  <bruno@clisp.org>
37489
37490         Add gethostname() declaration to <unistd.h>.
37491         * lib/unistd.in.h (gethostname): New declaration.
37492         * lib/gethostname.c: Include <unistd.h>.
37493         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
37494         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
37495         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
37496         and HAVE_GETHOSTNAME.
37497         * modules/gethostname (Depends-on): Add unistd.
37498         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37499         (Include): Specify <unistd.h>.
37500         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
37501         HAVE_GETHOSTNAME.
37502         * tests/test-gethostname.c: Include <unistd.h> first.
37503
37504 2008-10-21  Bruno Haible  <bruno@clisp.org>
37505
37506         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
37507         * modules/select-tests (Depends-on): Likewise.
37508         Reported by Simon Josefsson.
37509
37510 2008-10-21  Simon Josefsson  <simon@josefsson.org>
37511
37512         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
37513         * lib/accept.c: New file, based on winsock.c.
37514         * lib/bind.c: New file, based on winsock.c.
37515         * lib/connect.c: New file, based on winsock.c.
37516         * lib/getpeername.c: New file, based on winsock.c.
37517         * lib/getsockname.c: New file, based on winsock.c.
37518         * lib/getsockopt.c: New file, based on winsock.c.
37519         * lib/ioctl.c: New file, based on winsock.c.
37520         * lib/listen.c: New file, based on winsock.c.
37521         * lib/recv.c: New file, based on winsock.c.
37522         * lib/recvfrom.c: New file, based on winsock.c.
37523         * lib/send.c: New file, based on winsock.c.
37524         * lib/sendto.c: New file, based on winsock.c.
37525         * lib/setsockopt.c: New file, based on winsock.c.
37526         * lib/shutdown.c: New file, based on winsock.c.
37527         * lib/socket.c: New file, based on winsock.c.
37528         * lib/w32sock.h: New file, based on winsock.c.
37529         * lib/winsock.c: Remove file.
37530         * modules/accept: Likewise.
37531         * modules/bind: Likewise.
37532         * modules/connect: Likewise.
37533         * modules/getpeername: Likewise.
37534         * modules/getsockname: Likewise.
37535         * modules/getsockopt: Likewise.
37536         * modules/ioctl: Likewise.
37537         * modules/listen: Likewise.
37538         * modules/recv: Likewise.
37539         * modules/recvfrom: Likewise.
37540         * modules/send: Likewise.
37541         * modules/sendto: Likewise.
37542         * modules/setsockopt: Likewise.
37543         * modules/shutdown: Likewise.
37544         * modules/socket: Use socket.c instead of winsock.c.
37545         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
37546         * doc/posix-functions/accept.texi: Doc fix.
37547         * doc/posix-functions/bind.texi: Doc fix.
37548         * doc/posix-functions/close.texi: Doc fix.
37549         * doc/posix-functions/connect.texi: Doc fix.
37550         * doc/posix-functions/getpeername.texi: Doc fix.
37551         * doc/posix-functions/getsockname.texi: Doc fix.
37552         * doc/posix-functions/getsockopt.texi: Doc fix.
37553         * doc/posix-functions/ioctl.texi: Doc fix.
37554         * doc/posix-functions/listen.texi: Doc fix.
37555         * doc/posix-functions/recv.texi: Doc fix.
37556         * doc/posix-functions/recvfrom.texi: Doc fix.
37557         * doc/posix-functions/send.texi: Doc fix.
37558         * doc/posix-functions/sendto.texi: Doc fix.
37559         * doc/posix-functions/setsockopt.texi: Doc fix.
37560         * doc/posix-functions/shutdown.texi: Doc fix.
37561         * doc/posix-functions/socket.texi: Doc fix.
37562
37563 2008-10-20  Bruno Haible  <bruno@clisp.org>
37564
37565         Take into account the role of SIGABRT_COMPAT on Windows 2008.
37566         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
37567         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
37568         as an alias for SIGABRT.
37569         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
37570         (sigaction): Map it to SIGABRT.
37571         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
37572
37573 2008-10-20  Bruno Haible  <bruno@clisp.org>
37574
37575         * lib/fts.c: Don't include lstat.h.
37576         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
37577
37578         Move the lstat() declaration to <sys/stat.h>.
37579         * lib/lstat.h: Remove file.
37580         * lib/sys_stat.in.h: Add special invocation convention.
37581         (lstat): New declaration.
37582         * lib/lstat.c (orig_lstat): New function.
37583         (rpl_lstat): Use orig_lstat instead of lstat.
37584         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
37585         AC_C_INLINE. Set REPLACE_LSTAT.
37586         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
37587         and REPLACE_LSTAT.
37588         * modules/lstat (Files): Remove lib/lstat.h.
37589         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
37590         (Include): Specify <sys/stat.h> instead of lstat.h.
37591         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
37592         REPLACE_LSTAT.
37593         * NEWS: Mention the change.
37594
37595 2008-10-20  Bruno Haible  <bruno@clisp.org>
37596
37597         * modules/posix_spawn-tests: New file.
37598         * tests/test-posix_spawn3.c: New file.
37599
37600 2008-10-20  Bruno Haible  <bruno@clisp.org>
37601
37602         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
37603         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
37604         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
37605         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
37606         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
37607
37608 2008-10-20  Bruno Haible  <bruno@clisp.org>
37609
37610         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
37611         of posix_spawn on AIX 5.3.
37612
37613 2008-10-20  Bruno Haible  <bruno@clisp.org>
37614
37615         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
37616
37617 2008-10-20  Bruno Haible  <bruno@clisp.org>
37618
37619         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
37620         of AC_LANG_PROGRAM.
37621
37622 2008-10-20  Simon Josefsson  <simon@josefsson.org>
37623
37624         * lib/netdb.in.h: Don't define GNU specific constants until they
37625         are supported or needed.  Reported by Bruno Haible
37626         <bruno@clisp.org>.
37627
37628 2008-10-20  Simon Josefsson  <simon@josefsson.org>
37629
37630         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
37631
37632 2008-10-20  Simon Josefsson  <simon@josefsson.org>
37633
37634         * lib/getaddrinfo.h: Remove file.
37635         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
37636         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
37637         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
37638         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
37639         * modules/netdb: Substitute GNULIB_GETADDRINFO.
37640         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
37641         * tests/test-getaddrinfo.c: Likewise.
37642         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
37643         * NEWS: Mention change.
37644
37645 2008-10-19  Bruno Haible  <bruno@clisp.org>
37646
37647         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
37648
37649 2008-10-19  Bruno Haible  <bruno@clisp.org>
37650
37651         * lib/wait-process.c: Include simply <sys/wait.h>.
37652         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
37653         WIFSTOPPED): Remove fallback definitions.
37654         * modules/wait-process (Depends-on): Add sys_wait.
37655
37656         New module 'sys_wait'.
37657         * modules/sys_wait: New file.
37658         * lib/sys_wait.in.h: New file, partially copied from
37659         lib/wait-process.c.
37660         * m4/sys_wait_h.m4: New file.
37661         * doc/posix-headers/sys_wait.texi: Mention the new module.
37662
37663 2008-10-19  Bruno Haible  <bruno@clisp.org>
37664
37665         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
37666
37667 2008-10-19  Bruno Haible  <bruno@clisp.org>
37668
37669         Assume that waitpid() fills an 'int' status, not a 'union wait'.
37670         * lib/wait-process.c (WAIT_T): Remove type.
37671         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
37672         (wait_subprocess): Update.
37673
37674 2008-10-19  Bruno Haible  <bruno@clisp.org>
37675
37676         New module 'atoll'.
37677         * modules/atoll: New file.
37678         * lib/stdlib.in.h (atoll): New declaration.
37679         * lib/atoll.c: New file, from glibc with modifications.
37680         * m4/atoll.m4: New file.
37681         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
37682         HAVE_ATOLL.
37683         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
37684         * doc/posix-functions/atoll.texi: Mention the new module.
37685
37686 2008-10-19  Bruno Haible  <bruno@clisp.org>
37687
37688         Add strtoull() declaration to <stdlib.h>.
37689         * lib/stdlib.in.h (strtoull): New declaration.
37690         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
37691         Set HAVE_STRTOULL.
37692         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
37693         HAVE_STRTOULL.
37694         * modules/strtoull (Depends-on): Add stdlib.
37695         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37696         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
37697         HAVE_STRTOULL.
37698
37699 2008-10-19  Bruno Haible  <bruno@clisp.org>
37700
37701         Add strtoll() declaration to <stdlib.h>.
37702         * lib/stdlib.in.h (strtoll): New declaration.
37703         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
37704         Set HAVE_STRTOLL.
37705         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
37706         HAVE_STRTOLL.
37707         * modules/strtoll (Depends-on): Add stdlib.
37708         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37709         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
37710
37711 2008-10-19  Bruno Haible  <bruno@clisp.org>
37712
37713         * modules/bcopy (Depends-on): Add strings.
37714         (Include): Specify <strings.h>.
37715
37716 2008-10-19  Bruno Haible  <bruno@clisp.org>
37717
37718         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
37719
37720 2008-10-19  Bruno Haible  <bruno@clisp.org>
37721
37722         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
37723         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
37724         mingw.
37725
37726 2008-10-19  Bruno Haible  <bruno@clisp.org>
37727
37728         * lib/atanl.c: Don't include isnanl.h.
37729         * lib/cosl.c: Likewise.
37730         * lib/ldexpl.c: Likewise.
37731         * lib/logl.c: Likewise.
37732         * lib/sinl.c: Likewise.
37733         * lib/sqrtl.c: Likewise.
37734         * lib/tanl.c: Likewise.
37735
37736         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
37737         * lib/isnanf.h: Remove file.
37738         * lib/isnand.h: Remove file.
37739         * lib/isnanl.h: Remove file.
37740         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
37741         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
37742         macros.
37743         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
37744         HAVE_ISNANF, don't define it as a C macro.
37745         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
37746         HAVE_ISNAND, don't define it as a C macro.
37747         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
37748         HAVE_ISNANL, don't define it as a C macro.
37749         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
37750         HAVE_ISNAN[FDL].
37751         * modules/isnanf (Files): Remove lib/isnanf.h.
37752         (Depends-on): Add math.
37753         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
37754         (Include): Specify <math.h> instead of isnanf.h.
37755         * modules/isnand (Files): Remove lib/isnand.h.
37756         (Depends-on): Add math.
37757         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
37758         (Include): Specify <math.h> instead of isnand.h.
37759         * modules/isnanl (Files): Remove lib/isnanl.h.
37760         (Depends-on): Add math.
37761         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
37762         (Include): Specify <math.h> instead of isnanl.h.
37763         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
37764         HAVE_ISNAN[FDL].
37765         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
37766         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
37767         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
37768         * NEWS: Mention the change.
37769
37770 2008-10-18  Bruno Haible  <bruno@clisp.org>
37771
37772         Add getusershell(), setusershell(), endusershell() declarations to
37773         <unistd.h>.
37774         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
37775         declarations.
37776         * lib/getusershell.c: Include unistd.h.
37777         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
37778         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
37779         HAVE_GETUSERSHELL.
37780         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
37781         and HAVE_GETUSERSHELL.
37782         * modules/getusershell (Depends-on): Add unistd, extensions.
37783         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37784         (Include): Specify <unistd.h>.
37785         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
37786         HAVE_GETUSERSHELL.
37787
37788 2008-10-18  Bruno Haible  <bruno@clisp.org>
37789
37790         Add a getloadavg() declaration to <stdlib.h>.
37791         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
37792         getloadavg declaration.
37793         (getloadavg): New declaration.
37794         * lib/getloadavg.c: Include <stdlib.h> first.
37795         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
37796         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
37797         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
37798         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
37799         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
37800         * modules/getloadavg (Depends-on): Add stdlib, extensions.
37801         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37802         (Include): Specify <stdlib.h>.
37803         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
37804         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
37805
37806 2008-10-18  Bruno Haible  <bruno@clisp.org>
37807
37808         * lib/dirchownmod.c: Don't include lchmod.h.
37809
37810         Move the lchmod() declaration to <sys/stat.h>.
37811         * lib/lchmod.h: Remove file.
37812         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
37813         (lchmod): New declaration, moved here from lib/lchown.h.
37814         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
37815         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
37816         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
37817         and HAVE_LCHMOD.
37818         * modules/lchmod (Files): Remove lib/lchmod.h.
37819         (Depends-on): Add sys_stat, extensions.
37820         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
37821         (Include): Specify <sys/stat.h> instead of lchmod.h.
37822         * modules/sys_stat (Depends-on): Add link-warning.
37823         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
37824         definition of GL_LINK_WARNING.
37825         * NEWS: Mention the change.
37826
37827 2008-10-18  Bruno Haible  <bruno@clisp.org>
37828
37829         * lib/fchdir.c: Don't include dirfd.h.
37830         * lib/fts.c: Likewise.
37831         * lib/getcwd.c: Likewise.
37832         * lib/glob.c: Likewise.
37833
37834         Move the dirfd() declaration to <dirent.h>.
37835         * lib/dirfd.h: Remove file.
37836         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
37837         (dirfd): New declaration.
37838         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
37839         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
37840         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
37841         HAVE_DECL_DIRFD.
37842         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
37843         HAVE_DECL_DIRFD.
37844         * modules/dirfd (Files): Remove lib/dirfd.h.
37845         (Depends-on): Add dirent, extensions.
37846         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
37847         (Include): Specify <dirent.h> instead of dirfd.h.
37848         * modules/dirent (Depends-on): Add link-warning.
37849         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
37850         definition of GL_LINK_WARNING.
37851         * NEWS: Mention the change.
37852
37853 2008-10-18  Bruno Haible  <bruno@clisp.org>
37854
37855         Move the euidaccess() declaration to <unistd.h>.
37856         * lib/euidaccess.h: Remove file.
37857         * lib/unistd.in.h (euidaccess): New declaration.
37858         * lib/euidaccess.c: Don't include euidaccess.h.
37859         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
37860         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
37861         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
37862         and HAVE_EUIDACCESS.
37863         * modules/euidaccess (Files): Remove lib/euidaccess.h.
37864         (Depends-on): Add unistd.
37865         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37866         (Include): Specify <unistd.h> instead of euidaccess.h.
37867         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
37868         HAVE_EUIDACCESS.
37869         * NEWS: Mention the change.
37870
37871 2008-10-18  Bruno Haible  <bruno@clisp.org>
37872
37873         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
37874
37875         Move the getdomainname() declaration to <unistd.h>.
37876         * lib/getdomainname.h: Remove file.
37877         * lib/unistd.in.h (getdomainname): New declaration.
37878         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
37879         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
37880         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
37881         HAVE_GETDOMAINNAME.
37882         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37883         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
37884         * modules/getdomainname (Files): Remove lib/getdomainname.h.
37885         (Depends-on): Add unistd, extensions.
37886         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37887         (Includes): Specify <unistd.h> instead of getdomainname.h.
37888         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
37889         HAVE_GETDOMAINNAME.
37890         * NEWS: Mention the change.
37891
37892 2008-10-18  Bruno Haible  <bruno@clisp.org>
37893
37894         * modules/dirent: New file.
37895         * m4/dirent_h.m4: New file.
37896         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
37897         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
37898         * modules/fchdir (Files): Remove lib/dirent.in.h.
37899         (Depends-on): Add dirent.
37900         (Makefile.am): Move rules to modules/dirent.
37901         * doc/posix-headers/dirent.texi: Mention the new module.
37902
37903 2008-10-18  Bruno Haible  <bruno@clisp.org>
37904
37905         Avoid -Wunused-parameter warnings in public gnulib header files.
37906         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
37907         macro.
37908         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
37909
37910 2008-10-18  Bruno Haible  <bruno@clisp.org>
37911
37912         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
37913         * doc/glibc-functions/error.texi: Mention the module 'error'.
37914         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
37915         * doc/glibc-functions/getdomainname.texi: Mention the module
37916         'getdomainname'.
37917         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
37918         * doc/glibc-functions/getpagesize.texi: Mention the module
37919         'getpagesize'.
37920         * doc/glibc-functions/getusershell.texi: Mention the module
37921         'getusershell'.
37922         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
37923         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
37924         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
37925         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
37926         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
37927         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
37928         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
37929         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
37930         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
37931         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
37932         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
37933         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
37934         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
37935         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
37936
37937 2008-10-17  Bruno Haible  <bruno@clisp.org>
37938
37939         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
37940         HP-UX and IRIX, use -0.0L.
37941         * tests/test-ceill.c (minus_zero): Likewise.
37942         * tests/test-floorl.c (minus_zero): Likewise.
37943         * tests/test-frexpl.c (minus_zero): Likewise.
37944         * tests/test-isnan.c (minus_zerol): Likewise.
37945         * tests/test-isnanl.h (minus_zero): Likewise.
37946         * tests/test-ldexpl.c (minus_zero): Likewise.
37947         * tests/test-roundl.c (minus_zero): Likewise.
37948         * tests/test-signbit.c (minus_zerol): Likewise.
37949         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
37950         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
37951         * tests/test-truncl.c (minus_zero): Likewise.
37952         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
37953         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
37954         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
37955         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
37956
37957 2008-10-17  Bruno Haible  <bruno@clisp.org>
37958
37959         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
37960         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
37961         that it gets activated only for gcc >= 3.0.
37962         * lib/dirent.in.h: Likewise.
37963         * lib/errno.in.h: Likewise.
37964         * lib/fcntl.in.h: Likewise.
37965         * lib/float.in.h: Likewise.
37966         * lib/iconv.in.h: Likewise.
37967         * lib/inttypes.in.h: Likewise.
37968         * lib/locale.in.h: Likewise.
37969         * lib/math.in.h: Likewise.
37970         * lib/netdb.in.h: Likewise.
37971         * lib/netinet_in.in.h: Likewise.
37972         * lib/search.in.h: Likewise.
37973         * lib/signal.in.h: Likewise.
37974         * lib/spawn.in.h: Likewise.
37975         * lib/stdarg.in.h: Likewise.
37976         * lib/stdint.in.h: Likewise.
37977         * lib/stdio.in.h: Likewise.
37978         * lib/stdlib.in.h: Likewise.
37979         * lib/string.in.h: Likewise.
37980         * lib/strings.in.h: Likewise.
37981         * lib/sys_file.in.h: Likewise.
37982         * lib/sys_ioctl.in.h: Likewise.
37983         * lib/sys_select.in.h: Likewise.
37984         * lib/sys_socket.in.h: Likewise.
37985         * lib/sys_stat.in.h: Likewise.
37986         * lib/sys_time.in.h: Likewise.
37987         * lib/sysexits.in.h: Likewise.
37988         * lib/time.in.h: Likewise.
37989         * lib/unistd.in.h: Likewise.
37990         * lib/wchar.in.h: Likewise.
37991         * lib/wctype.in.h: Likewise.
37992         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
37993
37994 2008-10-17  Jim Meyering  <meyering@redhat.com>
37995
37996         ignore-value: don't depend on inline module
37997         * modules/ignore-value (Depends-on): Remove 'inline'.
37998         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
37999         Suggestion from Bruno Haible.
38000
38001 2008-10-17  Bruno Haible  <bruno@clisp.org>
38002
38003         New implementation of condition variables for Win32.
38004         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
38005         (gl_linked_waitqueue_t): New type.
38006         (gl_cond_t): Use it.
38007         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
38008         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
38009         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
38010         (glthread_cond_init_func, glthread_cond_wait_func,
38011         glthread_cond_timedwait_func, glthread_cond_signal_func,
38012         glthread_cond_broadcast_func, glthread_cond_destroy_func):
38013         Reimplemented on the basis of gl_linked_waitqueue_t.
38014         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
38015         gl_waitqueue_t.
38016         (gl_rwlock_t): Update.
38017         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
38018
38019 2008-10-17  Simon Josefsson  <simon@josefsson.org>
38020
38021         * modules/recvfrom (Depends-on): Add dependency on getpeername.
38022         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
38023
38024 2008-10-17  Jim Meyering  <meyering@redhat.com>
38025
38026         ignore-value: new module
38027         * modules/ignore-value: New file.
38028         * lib/ignore-value.h: New file.
38029         * MODULES.html.sh (Compiler warning management): New section,
38030         just for this module.  More to come.
38031
38032 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
38033
38034         open-safer.c: avoid 'signed and unsigned in conditional...' warning
38035         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
38036         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
38037
38038 2008-10-16  Jim Meyering  <meyering@redhat.com>
38039
38040         openat-die.c: avoid 'no previous prototype' warning
38041         * lib/openat-die.c: Include "openat.h".
38042         Reported by Reuben Thomas <rrt@sc3d.org>.
38043
38044 2008-10-16  Simon Josefsson  <simon@josefsson.org>
38045
38046         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
38047         * lib/netdb.in.h: Fix typo.
38048         Reported by Bruno Haible  <bruno@clisp.org>
38049
38050         * lib/netdb.in.h: Include sys/socket.h for platforms without
38051         netdb.h, to get structures like hostent on MinGW.
38052         * modules/netdb (Depends-on): Add sys_socket.
38053
38054 2008-10-15  Simon Josefsson  <simon@josefsson.org>
38055
38056         * modules/netdb, modules/netdb-tests: New file.
38057         * m4/netdb_h.m4: New file.
38058         * lib/netdb.in.h: Add, currently just an empty file pending
38059         definitions.
38060         * tests/test-netdb.c: New file.
38061         * doc/posix-headers/netdb.texi: Mention that we replace it if
38062         needed.
38063         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38064         netdb.
38065
38066 2008-10-15  Simon Josefsson  <simon@josefsson.org>
38067
38068         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
38069         with code.
38070
38071 2008-10-13  Bruno Haible  <bruno@clisp.org>
38072
38073         * lib/glthread/cond.c (glthread_cond_wait_func,
38074         glthread_cond_timedwait_func): Add a comment.
38075
38076 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
38077
38078         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
38079         * tests/test-select.c: Likewise,
38080
38081 2008-10-13  Bruno Haible  <bruno@clisp.org>
38082
38083         * lib/glthread/cond.c (glthread_cond_wait_func,
38084         glthread_cond_timedwait_func): Fix variable name.
38085         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
38086
38087 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
38088
38089         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
38090         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
38091         struct sockaddr.sa_len.
38092         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
38093
38094 2008-10-13  Simon Josefsson  <simon@josefsson.org>
38095
38096         * build-aux/pmccabe2html: Add css and css_url parameters.
38097
38098 2008-10-12  Bruno Haible  <bruno@clisp.org>
38099
38100         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
38101         calling aclx_get.
38102         Reported by Rainer Tammer <tammer@tammer.net>.
38103
38104 2008-10-12  Bruno Haible  <bruno@clisp.org>
38105
38106         Use msvcrt aware primitives for creation/termination of Win32 threads.
38107         * lib/glthread/thread.c: Include <process.h>.
38108         (glthread_create_func): Use _beginthreadex instead of CreateThread.
38109         (wrapper_func): Update signature.
38110         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
38111
38112 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
38113             Bruno Haible  <bruno@clisp.org>
38114
38115         Provide a Win32 implementation of the 'cond' module.
38116         * lib/glthread/cond.h [USE_WIN32]: New implementation.
38117         * lib/glthread/cond.c (glthread_cond_init_func,
38118         glthread_cond_wait_func, glthread_cond_timedwait_func,
38119         glthread_cond_signal_func, glthread_cond_broadcast_func,
38120         glthread_cond_destroy_func) [USE_WIN32]: New functions.
38121         * modules/cond (Dependencies): Add gettimeofday.
38122
38123 2008-10-11  Bruno Haible  <bruno@clisp.org>
38124
38125         Make sleep work on older versions of mingw.
38126         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
38127         only whether it exists.
38128         * doc/posix-functions/sleep.texi: Mention the problem with older
38129         versions of mingw.
38130
38131 2008-10-11  Bruno Haible  <bruno@clisp.org>
38132
38133         New module 'shutdown'.
38134         * modules/shutdown: New file.
38135         * lib/sys_socket.in.h (shutdown): New declaration.
38136         * lib/winsock.c (shutdown): New function.
38137         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
38138         GNULIB_SHUTDOWN.
38139         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
38140         * doc/posix-functions/shutdown.texi: Document the new module.
38141
38142 2008-10-11  Jim Meyering  <meyering@redhat.com>
38143
38144         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
38145
38146 2008-10-11  Bruno Haible  <bruno@clisp.org>
38147
38148         New module 'fclose'.
38149         * modules/fclose: New file.
38150         * lib/stdio.in.h (fclose): New declaration.
38151         * lib/fclose.c: New file.
38152         * m4/fclose.m4: New file.
38153         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
38154         REPLACE_FCLOSE.
38155         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
38156         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
38157         REPLACE_FCLOSE.
38158         * modules/close (Depends-on): fclose.
38159         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
38160
38161 2008-10-11  Bruno Haible  <bruno@clisp.org>
38162
38163         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
38164         set errno and don't call _close.
38165
38166 2008-10-10  Bruno Haible  <bruno@clisp.org>
38167
38168         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
38169         ACL, not afterwards. Fixes test failure on Cygwin.
38170
38171 2008-10-09  Ben Pfaff  <blp@gnu.org>
38172
38173         * build-aux/announce-gen: Fix gnulib version related part of usage
38174         message.  Die with a useful error message if no tarballs are
38175         found.
38176
38177 2008-10-10  Jim Meyering  <meyering@redhat.com>
38178
38179         bootstrap: use git's --depth=N option only if it's supported
38180         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
38181         recognize the --depth option.  Reported by Pádraig Brady.
38182
38183 2008-10-09  Bruno Haible  <bruno@clisp.org>
38184
38185         New module 'ioctl'.
38186         * modules/ioctl: New file.
38187         * lib/sys_socket.in.h (ioctl): Remove declaration.
38188         * lib/winsock.c: Include <sys/ioctl.h>.
38189         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
38190         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
38191         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
38192         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
38193         * doc/posix-functions/ioctl.texi: Mention the new module.
38194
38195 2008-10-09  Bruno Haible  <bruno@clisp.org>
38196
38197         New module 'sys_ioctl'.
38198         * lib/sys_ioctl.in.h: New file.
38199         * m4/sys_ioctl_h.m4: New file.
38200         * modules/sys_ioctl: New file.
38201         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
38202
38203 2008-10-09  Bruno Haible  <bruno@clisp.org>
38204
38205         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
38206         * lib/winsock.c: Include <stdarg.h>.
38207         (rpl_ioctl): Change to second argument 'int' and then varargs.
38208
38209 2008-10-09  Bruno Haible  <bruno@clisp.org>
38210
38211         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
38212         when the sys_socket module is present and the system has <winsock2.h>.
38213
38214 2008-10-09  Bruno Haible  <bruno@clisp.org>
38215
38216         * doc/posix-functions/close.texi: Mention module 'close' instead of
38217         module 'sys_socket'.
38218
38219 2008-10-09  Bruno Haible  <bruno@clisp.org>
38220
38221         * doc/glibc-headers/sys_ioctl.texi: New file.
38222         * doc/gnulib.texi: Include it.
38223
38224 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38225             Bruno Haible  <bruno@clisp.org>
38226
38227         Combine the two replacements of 'close'.
38228         * lib/sys_socket.in.h (close): Define to a reminder to include
38229         <unistd.h>.
38230         (_gl_close_fd_maybe_socket): New declaration.
38231         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
38232         * lib/winsock.c (close): Remove undefinition.
38233         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
38234         needed for the gnulib module 'close'.
38235         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
38236         define to an error symbol or to a warning, if suitable.
38237         * lib/close.c: Include <sys/socket.h>.
38238         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
38239         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
38240         UNISTD_H_HAVE_WINSOCK2_H.
38241         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
38242         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38243         UNISTD_H_HAVE_WINSOCK2_H.
38244         * modules/sys_socket (Files): Add m4/unistd_h.m4.
38245         (configure.ac): Set a module indicator.
38246         (Makefile.am): Substitute GNULIB_CLOSE.
38247         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
38248         * modules/poll-tests (Depends-on): Add close.
38249         * modules/select-tests (Depends-on): Likewise.
38250
38251 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38252             Bruno Haible  <bruno@clisp.org>
38253
38254         New module 'close'.
38255         * modules/close: New file.
38256         * lib/unistd.in.h (close): Move declaration out of the
38257         FCHDIR_REPLACEMENT scope.
38258         (_gl_unregister_fd): New declaration.
38259         * lib/close.c: New file.
38260         * lib/fchdir.c (rpl_close): Remove function.
38261         * m4/close.m4: New file.
38262         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
38263         close.
38264         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
38265         REPLACE_CLOSE.
38266         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
38267         REPLACE_CLOSE.
38268         * modules/fchdir (Depends-on): Add close.
38269
38270 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38271             Bruno Haible  <bruno@clisp.org>
38272
38273         * lib/fcntl.in.h (open): Simplify conditionals.
38274         (_gl_register_fd): New declaration.
38275         * lib/fchdir.c (rpl_open): Remove function.
38276         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
38277         also.
38278         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
38279         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
38280         open.
38281
38282 2008-10-09  Jim Meyering  <meyering@redhat.com>
38283
38284         GNUmakefile: use the more name-space-friendly "_version"
38285         * top/GNUmakefile (_dummy): Update.
38286         (_version): Rename from "version".
38287
38288 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38289             Bruno Haible  <bruno@clisp.org>
38290
38291         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
38292         rpl_close.
38293         (_gl_register_fd): New function, extracted from rpl_open.
38294         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
38295         (rpl_open, rpl_opendir): Use _gl_register_fd.
38296
38297 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38298
38299         Fix organization of 'open' replacement.
38300         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
38301         (gl_FUNC_OPEN): Use it.
38302         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
38303
38304 2008-10-08  Bruno Haible  <bruno@clisp.org>
38305
38306         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
38307
38308 2008-10-08  Simon Josefsson  <simon@josefsson.org>
38309
38310         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
38311         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
38312         listen).
38313
38314 2008-10-08  Eric Blake  <ebb9@byu.net>
38315
38316         GNUmakefile: add 'make version' target
38317         * top/GNUmakefile (_curr-ver): Split version update rules...
38318         (version): ...into a target.
38319
38320 2008-10-07  Bruno Haible  <bruno@clisp.org>
38321
38322         Use a more portable replacement expression for -0.0L.
38323         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
38324         instead of -0.0L. Fix m4 quotation.
38325
38326         * tests/test-signbit.c: Include <float.h>.
38327         (minus_zero): New variable.
38328         (test_signbitl): Use minus_zero instead of -zero.
38329         * modules/signbit-tests (Depends-on): Add float.
38330
38331         * tests/test-ceill.c: Include <float.h>.
38332         (zero): Remove variable.
38333         (minus_zero): New variable.
38334         (main): Use minus_zero instead of -zero.
38335         * modules/ceill-tests (Depends-on): Add float.
38336
38337         * tests/test-floorl.c: Include <float.h>.
38338         (zero): Remove variable.
38339         (minus_zero): New variable.
38340         (main): Use minus_zero instead of -zero.
38341         * modules/floorl-tests (Depends-on): Add float.
38342
38343         * tests/test-roundl.c: Include <float.h>.
38344         (zero): Remove variable.
38345         (minus_zero): New variable.
38346         (main): Use minus_zero instead of -zero.
38347         * modules/roundl-tests (Depends-on): Add float.
38348
38349         * tests/test-truncl.c: Include <float.h>.
38350         (zero): Remove variable.
38351         (minus_zero): New variable.
38352         (main): Use minus_zero instead of -zero.
38353         * modules/truncl-tests (Depends-on): Add float.
38354
38355         * tests/test-frexpl.c (zero): Remove variable.
38356         (minus_zero): New variable.
38357         (main): Use minus_zero instead of -zero.
38358         * modules/frexpl-tests (Depends-on): Add float.
38359
38360         * tests/test-isnan.c (zerol): Remove variable.
38361         (minus_zerol): New variable.
38362         (test_long_double): Use minus_zerol instead of -zerol.
38363         * modules/isnan-tests (Depends-on): Add float.
38364
38365         * tests/test-isnanl.h (zero): Remove variable.
38366         (minus_zero): New variable.
38367         (main): Use minus_zero instead of -zero.
38368         * modules/isnanl-nolibm-tests (Depends-on): Add float.
38369         * modules/isnanl-tests (Depends-on): Add float.
38370
38371         * tests/test-ldexpl.c (zero): Remove variable.
38372         (minus_zero): New variable.
38373         (main): Use minus_zero instead of -zero.
38374         * modules/ldexpl-tests (Depends-on): Add float.
38375
38376         * tests/test-snprintf-posix.h (zerol): Remove variable.
38377         (minus_zerol): New variable.
38378         (test_function): Use minus_zerol instead of -zerol.
38379         * modules/snprintf-posix-tests (Depends-on): Add float.
38380         * modules/vsnprintf-posix-tests (Depends-on): Add float.
38381
38382         * tests/test-sprintf-posix.h (zerol): Remove variable.
38383         (minus_zerol): New variable.
38384         (test_function): Use minus_zerol instead of -zerol.
38385         * modules/sprintf-posix-tests (Depends-on): Add float.
38386         * modules/vsprintf-posix-tests (Depends-on): Add float.
38387
38388         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
38389         (minus_zerol): New variable.
38390         (test_function): Use minus_zerol instead of -zerol.
38391         * modules/vasnprintf-posix-tests (Depends-on): Add float.
38392
38393         * tests/test-vasprintf-posix.c (zerol): Remove variable.
38394         (minus_zerol): New variable.
38395         (test_function): Use minus_zerol instead of -zerol.
38396         * modules/vasprintf-posix-tests (Depends-on): Add float.
38397
38398 2008-10-07  Simon Josefsson  <simon@josefsson.org>
38399
38400         * MODULES.html.sh (Support for building documentation): Mention
38401         pmccabe2html.  Sort entries.
38402
38403         Add pmccabe2html module, from gnupdf.
38404         * build-aux/pmccabe.css: New file.
38405         * build-aux/pmccabe2html: New file.
38406         * m4/pmccabe2html.m4: New file.
38407         * modules/pmccabe2html: New file.
38408
38409 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
38410
38411         flock: new module
38412         * MODULES.html.sh: Add to list of modules.
38413         * lib/flock.c: flock implementation for Windows and Unix systems
38414         which have fcntl.
38415         * doc/glibc-functions/flock.texi: Update documentation.
38416         * lib/sys_file.in.h: <sys/file.h> header file.
38417         * m4/flock.m4: M4 macros.
38418         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
38419         * modules/flock: flock module.
38420         * modules/flock-tests: flock tests module.
38421         * modules/sys_file: sys/file.h module.
38422         * tests/test-flock.c: test suite for flock.
38423
38424 2008-10-06  Jim Meyering  <meyering@redhat.com>
38425
38426         bootstrap: check for LT_INIT more portably still ;-)
38427         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
38428         Spotted by Bruno Haible.
38429
38430 2008-10-06  Eric Blake  <ebb9@byu.net>
38431
38432         test-signbit: avoid tripping Irix cc bug on -0.0L
38433         * tests/test-signbit.c (minus_zerol): Delete, and replace with
38434         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
38435         entire testsuite consistent and avoids an Irix 6.2 bug.
38436
38437 2008-10-05  Bruno Haible  <bruno@clisp.org>
38438             Jim Meyering  <jim@meyering.net>
38439
38440         Add an option for ignoring EPIPE during close_stdout.
38441         * lib/closeout.h: Include <stdbool.h>.
38442         (close_stdout_set_ignore_EPIPE): New declaration.
38443         * lib/closeout.c: Include <stdbool.h>.
38444         (ignore_EPIPE): New variable.
38445         (close_stdout_set_ignore_EPIPE): New function.
38446         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
38447         * lib/close-stream.c (close_stream): Mention the possible EPIPE
38448         failure.
38449         * modules/closeout (Depends-on): Add stdbool.
38450
38451 2008-10-05  Bruno Haible  <bruno@clisp.org>
38452
38453         * modules/accept: New file.
38454         * modules/bind: New file.
38455         * modules/connect: New file.
38456         * modules/getpeername: New file.
38457         * modules/getsockname: New file.
38458         * modules/getsockopt: New file.
38459         * modules/listen: New file.
38460         * modules/recv: New file.
38461         * modules/recvfrom: New file.
38462         * modules/send: New file.
38463         * modules/sendto: New file.
38464         * modules/setsockopt: New file.
38465         * modules/socket: New file.
38466         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
38467         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
38468         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
38469         the particular module is requested. Add a link warning when the
38470         particular module is not requested.
38471         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
38472         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
38473         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
38474         the particular module is requested.
38475         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
38476         gl_SYS_SOCKET_H_DEFAULTS): New macros.
38477         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
38478         * modules/sys_socket (Depends-on): Add link-warning.
38479         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
38480         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
38481         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
38482         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
38483         GL_LINK_WARNING.
38484         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
38485         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
38486         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
38487         * doc/posix-functions/getpeername.texi: Mention the new module
38488         'getpeername'.
38489         * doc/posix-functions/getsockname.texi: Mention the new module
38490         'getsockname'.
38491         * doc/posix-functions/getsockopt.texi: Mention the new module
38492         'getsockopt'.
38493         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
38494         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
38495         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
38496         * doc/posix-functions/send.texi: Mention the new module 'send'.
38497         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
38498         * doc/posix-functions/setsockopt.texi: Mention the new module
38499         'setsockopt'.
38500         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
38501         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
38502         listen, connect, accept.
38503         * modules/select-tests (Depends-on): Likewise.
38504
38505 2008-10-05  Bruno Haible  <bruno@clisp.org>
38506
38507         * lib/winsock.c (strerror): Remove unused #undef.
38508         (rpl_close): Remove unused local variable.
38509
38510         * modules/sys_socket (Depends-on); Add errno.
38511
38512 2008-10-05  Bruno Haible  <bruno@clisp.org>
38513
38514         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
38515         (select): Add a link warning when the 'select' module is not used.
38516         * modules/sys_select (Depends-on): Add link-warning.
38517         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
38518         Suggested by Paolo Bonzini.
38519
38520 2008-10-05  Jim Meyering  <meyering@redhat.com>
38521
38522         bootstrap: check for LT_INIT more portably
38523         * build-aux/bootstrap: Avoid using grep -E, since it's not
38524         portable enough.  Suggestion from Bruno Haible.
38525
38526 2008-10-05  Bruno Haible  <bruno@clisp.org>
38527
38528         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
38529         as being fixed by gnulib.
38530
38531 2008-10-05  Bruno Haible  <bruno@clisp.org>
38532
38533         * modules/select-tests: New file, mostly copied from
38534         modules/sys_select-tests.
38535         * tests/test-select.c: New file, mostly copied from
38536         tests/test-sys_select.c.
38537         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
38538         * modules/sys_select-tests (Depends-on): Remove all dependencies.
38539         (Makefile.am): Remove test_sys_select_LDADD.
38540
38541         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
38542         to an undefined symbol, for an error message.
38543         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
38544         (gl_SYS_SELECT_H_DEFAULTS): New macro.
38545         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
38546         winsock-select.c here.
38547         * modules/sys_select (Files): Remove lib/winsock-select.c.
38548         (Depends-on): Remove alloca.
38549         (Makefile.am): Substitute GNULIB_SELECT.
38550         * modules/select: New file.
38551         * doc/posix-functions/select.texi: Update.
38552
38553 2008-10-05  Bruno Haible  <bruno@clisp.org>
38554
38555         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
38556         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
38557         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
38558         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
38559         getdtablesize.
38560         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
38561         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
38562
38563 2008-10-05  Bruno Haible  <bruno@clisp.org>
38564
38565         * modules/getdtablesize-tests: New file.
38566         * tests/test-getdtablesize.c: New file.
38567
38568         New module 'getdtablesize'.
38569         * lib/unistd.in.h (getdtablesize): New declaration.
38570         * lib/getdtablesize.c: New file.
38571         * m4/getdtablesize.m4: New file.
38572         * modules/getdtablesize: New file.
38573         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38574         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
38575         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
38576         HAVE_GETDTABLESIZE.
38577         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
38578
38579 2008-10-05  Bruno Haible  <bruno@clisp.org>
38580
38581         * modules/sched (Makefile.am): Fix typo.
38582         Reported by Simon Josefsson.
38583
38584 2008-10-05  Jim Meyering  <meyering@redhat.com>
38585
38586         bootstrap: check for LT_INIT, too
38587         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
38588         are deprecated.  Suggestion from Ralf Wildenhues.
38589
38590 2008-10-05  Bruno Haible  <bruno@clisp.org>
38591
38592         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
38593         overriding them by ours.
38594         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
38595
38596 2008-10-05  Jim Meyering  <meyering@redhat.com>
38597
38598         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
38599         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
38600         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
38601
38602 2008-10-04  Bruno Haible  <bruno@clisp.org>
38603
38604         * modules/dup2 (License): Change to LGPLv2+.
38605         * modules/sleep (License): Likewise.
38606         * modules/perror (License): Likewise.
38607         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
38608         Blake.
38609         * modules/signal (License): Likewise.
38610         * modules/sigprocmask (License): Likewise.
38611         * modules/raise (License): Change to LGPLv2+, with approval by Jim
38612         Meyering.
38613
38614 2008-10-04  Bruno Haible  <bruno@clisp.org>
38615
38616         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
38617         Reported by Rainer Tammer <tammer@tammer.net>.
38618
38619 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
38620             Bruno Haible  <bruno@clisp.org>
38621
38622         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
38623         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
38624         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
38625
38626 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
38627
38628         filevercmp: new module
38629         * lib/filevercmp.h: New function filevercmp comparing version strings.
38630         * lib/filevercmp.c: Implementation of filevercmp function.
38631         * modules/filevercmp: Module metadata.
38632         * tests/test-filevercmp.c: Unit test for new module.
38633         * modules/filevercmp-tests: Unit test metadata.
38634         * MODULES.html.sh: Add filevercmp module.
38635
38636 2008-10-03  Bruno Haible  <bruno@clisp.org>
38637
38638         * lib/c-ctype.h: Add comment.
38639         Reported by Jim Meyering.
38640
38641 2008-10-02  Bruno Haible  <bruno@clisp.org>
38642
38643         * modules/posix_spawn-internal (Depends-on): Add 'open'.
38644
38645 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
38646
38647         * build-aux/bootstrap: Allow renaming bootstrap, and change the
38648         name of bootstrap.conf accordingly.
38649
38650 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
38651
38652         * build-aux/bootstrap: Install git-merge-changelog configuration
38653         items into .gitconfig if needed.
38654
38655 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
38656
38657         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
38658         git repository, and initialize/update it accordingly.
38659
38660 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
38661
38662         * modules/fsync-tests: New file.
38663         * tests/test-fsync.c: New file.
38664
38665         New module 'fsync'.
38666         * lib/fsync.c: New file.
38667         * m4/fsync.m4: New file.
38668         * modules/fsync: New file.
38669         * lib/unistd.in.h (fsync): New declaration.
38670         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
38671         GNULIB_FSYNC and HAVE_FSYNC.
38672         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
38673         * MODULES.html.sh (posix_functions): Add fsync.
38674         * doc/posix-functions/fsync.texi: Mention the new module.
38675
38676 2008-10-02  Jim Meyering  <meyering@redhat.com>
38677
38678         fts.c: sync with similar code from coreutils' remove.c
38679         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
38680         Guard also with "#if defined __linux__", since for now at least,
38681         this code is Linux-kernel-specific.
38682
38683 2008-10-02  Jim Meyering  <meyering@redhat.com>
38684
38685         fts: bug fixes
38686         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
38687         Include <sys/vfs.h>, not <sys/statfs.h>.
38688
38689         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
38690         Include <sys/vfs.h>, not <sys/statfs.h>.
38691
38692 2008-10-01  Bruno Haible  <bruno@clisp.org>
38693
38694         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
38695         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
38696         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
38697         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
38698         * doc/posix-functions/posix_spawnp.texi: Likewise.
38699         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
38700         whether posix_spawn actually works.
38701         * m4/pipe.m4 (gl_PIPE): Likewise.
38702         * modules/execute (Files): Add m4/posix_spawn.m4.
38703         * modules/pipe (Files): Add m4/posix_spawn.m4.
38704         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
38705
38706 2008-10-01  Jim Meyering  <meyering@redhat.com>
38707
38708         remove trailing spaces
38709         * NEWS: Likewise.
38710         * lib/poll.c (poll): Likewise.
38711         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
38712         * lib/winsock.c (rpl_close): Likewise.
38713         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
38714         * modules/yield: Likewise.
38715         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
38716         * tests/test-sys_select.c (connect_to_socket): Likewise.
38717
38718         fts.c: adjust a new interface to be more generally useful
38719         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
38720         (fts_build): Adjust caller.
38721
38722 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38723
38724         * modules/cond-tests: New file.
38725         * tests/test-cond.c: New file.
38726
38727 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38728             Bruno Haible  <bruno@clisp.org>
38729
38730         * modules/cond (Dependencies): Add errno, time.
38731         * lib/glthread/cond.h: Include <time.h>.
38732         (gl_cond_define, gl_cond_define_initialized): Use the same definition
38733         across platforms.
38734
38735 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38736             Bruno Haible  <bruno@clisp.org>
38737
38738         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
38739
38740 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38741             Bruno Haible  <bruno@clisp.org>
38742
38743         * modules/tls-tests (Depends-on): Add thread, yield.
38744         (configure.ac): Remove all checks.
38745         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
38746         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
38747         gl_thread_self): Remove definitions. Include glthread/thread.h and
38748         glthread/yield.h instead.
38749         (test_tls): Pass an additional NULL argument to gl_thread_join.
38750
38751 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38752             Bruno Haible  <bruno@clisp.org>
38753
38754         * modules/lock-tests (Depends-on): Add thread, yield.
38755         (configure.ac): Remove all checks.
38756         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
38757         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
38758         gl_thread_self): Remove definitions. Include glthread/thread.h and
38759         glthread/yield.h instead.
38760         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
38761         additional NULL argument to gl_thread_join.
38762
38763 2008-09-30  Bruno Haible  <bruno@clisp.org>
38764
38765         Fix the Win32 implementation of the 'thread' module.
38766         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
38767         pointer type.
38768         (gl_thread_self): Invoke gl_thread_self_func.
38769         (gl_thread_self_func): New declaration.
38770         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
38771         (do_init_self_key, init_self_key): New functions.
38772         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
38773         Remove some fields.
38774         (running_threads, running_lock): Remove variables.
38775         (get_current_thread_handle): New function.
38776         (gl_thread_self_func, wrapper_func, glthread_create_func,
38777         glthread_join_func, gl_thread_exit_func): Largely rewritten and
38778         simplified.
38779
38780 2008-09-30  Bruno Haible  <bruno@clisp.org>
38781
38782         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
38783         files.
38784
38785 2008-09-30  Jim Meyering  <meyering@redhat.com>
38786
38787         fts.m4: correct the test for statfs.f_type
38788         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
38789         when checking for statfs.f_type.
38790
38791 2008-09-15  Simon Josefsson  <simon@josefsson.org>
38792
38793         tests: avoid some compiler warnings
38794         * tests/test-memchr.c (main): Pass NULL indirectly.
38795         * tests/test-getdate.c (main): Remove unused variable 'ret'.
38796
38797 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
38798
38799         getdate.y: disallow countable dayshifts like "4 yesterday ago"
38800         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
38801         exactly specified dayshifts.
38802         (dayshift): New rule.
38803         (rel): Add dayshift.
38804         (relative_time_table) [tomorrow, yesterday, today, now]:
38805         Use tDAY_SHIFT in place of tDAY_UNIT.
38806         * tests/test-getdate.c: Add tests for now-disallowed countable
38807         dayshifts, e.g., "4 yesterday ago".
38808
38809 2008-09-29  Bruno Haible  <bruno@clisp.org>
38810
38811         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
38812         * tests/test-posix_spawn1.in.sh: Renamed from
38813         tests/test-posix_spawn.in.sh.
38814         * tests/test-posix_spawn2.c: New file.
38815         * tests/test-posix_spawn2.in.sh: New file.
38816         * modules/posix_spawnp-tests (Files): Update.
38817         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
38818
38819 2008-09-29  Bruno Haible  <bruno@clisp.org>
38820
38821         Propagate effects of putenv/setenv/unsetenv to child processes.
38822         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
38823         * lib/pipe.c (create_pipe): Likewise.
38824
38825 2008-09-29  Bruno Haible  <bruno@clisp.org>
38826
38827         Enable use of shell scripts as executables in mingw.
38828         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
38829         run the program as a shell script.
38830         * lib/pipe.c (create_pipe): Likewise.
38831         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
38832         resulting array.
38833
38834 2008-09-29  Eric Blake  <ebb9@byu.net>
38835
38836         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
38837
38838 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
38839
38840         * doc/posix-functions/accept.texi: Update mingw problems.
38841         * doc/posix-functions/bind.texi: Update mingw problems.
38842         * doc/posix-functions/close.texi: Update mingw problems.
38843         * doc/posix-functions/connect.texi: Update mingw problems.
38844         * doc/posix-functions/getpeername.texi: Update mingw problems.
38845         * doc/posix-functions/getsockname.texi: Update mingw problems.
38846         * doc/posix-functions/getsockopt.texi: Update mingw problems.
38847         * doc/posix-functions/ioctl.texi: Update mingw problems.
38848         * doc/posix-functions/listen.texi: Update mingw problems.
38849         * doc/posix-functions/recv.texi: Update mingw problems.
38850         * doc/posix-functions/recvfrom.texi: Update mingw problems.
38851         * doc/posix-functions/select.texi: Update mingw problems.
38852         * doc/posix-functions/send.texi: Update mingw problems.
38853         * doc/posix-functions/sendto.texi: Update mingw problems.
38854         * doc/posix-functions/setsockopt.texi: Update mingw problems.
38855         * doc/posix-functions/socket.texi: Update mingw problems.
38856
38857 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
38858             Bruno Haible  <bruno@clisp.org>
38859
38860         * lib/sys_select.in.h: Include sys/time.h.
38861         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
38862         * modules/sys_select: Depend on sys_time.
38863         * tests/test-sys_select.c: Test that sys/select.h defines struct
38864         timeval fully.
38865
38866 2008-09-29  Bruno Haible  <bruno@clisp.org>
38867
38868         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
38869         * lib/sys_select.in.h: Likewise.
38870
38871 2008-09-29  Bruno Haible  <bruno@clisp.org>
38872
38873         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
38874
38875 2008-09-29  Bruno Haible  <bruno@clisp.org>
38876
38877         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
38878         Set LIBSOCKET instead of augmenting LIBS.
38879         * modules/sockets (Link): New section.
38880         * modules/sockets-tests (test_sockets_LDADD): New variable.
38881         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
38882         * modules/poll-tests (test_poll_LDADD): New variable.
38883         * NEWS: Document the change.
38884
38885 2008-09-29  Bruno Haible  <bruno@clisp.org>
38886
38887         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
38888         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
38889         ARPA_INET_H directly.
38890         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38891
38892 2008-09-28  Bruno Haible  <bruno@clisp.org>
38893
38894         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
38895         from gl_HEADER_SYS_SOCKET.
38896         (gl_HEADER_SYS_SOCKET): Invoke it.
38897         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38898
38899 2008-09-28  Bruno Haible  <bruno@clisp.org>
38900
38901         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
38902         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
38903         Needed on OSF/1 4.0.
38904
38905 2008-09-28  Bruno Haible  <bruno@clisp.org>
38906
38907         Override open more carefully.
38908         * lib/open.c (orig_open): New function.
38909         (rpl_open): Use orig_open instead of open.
38910         * lib/fcntl.in.h: Add special invocation convention.
38911         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
38912         (gl_FUNC_OPEN): Invoke it.
38913
38914         Override freopen more carefully.
38915         * lib/freopen.c (orig_freopen): New function.
38916         (rpl_freopen): Use orig_freopen instead of freopen.
38917         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
38918         (gl_FUNC_FREOPEN): Invoke it.
38919
38920         Override fopen more carefully.
38921         * lib/fopen.c (orig_fopen): New function.
38922         (rpl_fopen): Use orig_fopen instead of fopen.
38923         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
38924         (gl_FUNC_FOPEN): Invoke it.
38925         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
38926
38927 2008-09-28  Bruno Haible  <bruno@clisp.org>
38928
38929         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
38930         SIGPIPE.
38931
38932 2008-09-28  Bruno Haible  <bruno@clisp.org>
38933
38934         * tests/test-sigaction.c (handler, main): Disable the check whether
38935         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
38936         glibc systems with LinuxThreads.
38937
38938 2008-09-28  Bruno Haible  <bruno@clisp.org>
38939
38940         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
38941
38942         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
38943         with AIX xlc.
38944         * lib/fcntl.in.h (open): Likewise.
38945         Reported by Rainer Tammer <tammer@tammer.net>.
38946
38947 2008-09-28  Bruno Haible  <bruno@clisp.org>
38948
38949         * modules/posix_spawnp-tests: New file.
38950         * tests/test-posix_spawn.c: New file.
38951         * tests/test-posix_spawn.in.sh: New file.
38952
38953         New module 'posix_spawnp'.
38954         * modules/posix_spawnp: New file.
38955         * lib/spawnp.c: New file, from GNU libc with modifications.
38956         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
38957
38958         New module 'posix_spawn'.
38959         * modules/posix_spawn: New file.
38960         * lib/spawn.c: New file, from GNU libc with modifications.
38961         * doc/posix-functions/posix_spawn.texi: Mention the new module.
38962
38963         New module 'posix_spawnattr_destroy'.
38964         * modules/posix_spawnattr_destroy: New file.
38965         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
38966         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
38967         module.
38968
38969         New module 'posix_spawnattr_setsigmask'.
38970         * modules/posix_spawnattr_setsigmask: New file.
38971         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
38972         modifications.
38973         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
38974         new module.
38975
38976         New module 'posix_spawnattr_getsigmask'.
38977         * modules/posix_spawnattr_getsigmask: New file.
38978         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
38979         modifications.
38980         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
38981         new module.
38982
38983         New module 'posix_spawnattr_setsigdefault'.
38984         * modules/posix_spawnattr_setsigdefault: New file.
38985         * lib/spawnattr_setdefault.c: New file, from GNU libc with
38986         modifications.
38987         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
38988         new module.
38989
38990         New module 'posix_spawnattr_getsigdefault'.
38991         * modules/posix_spawnattr_getsigdefault: New file.
38992         * lib/spawnattr_getdefault.c: New file, from GNU libc with
38993         modifications.
38994         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
38995         new module.
38996
38997         New module 'posix_spawnattr_setschedpolicy'.
38998         * modules/posix_spawnattr_setschedpolicy: New file.
38999         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
39000         modifications.
39001         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
39002         new module.
39003
39004         New module 'posix_spawnattr_getschedpolicy'.
39005         * modules/posix_spawnattr_getschedpolicy: New file.
39006         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
39007         modifications.
39008         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
39009         new module.
39010
39011         New module 'posix_spawnattr_setschedparam'.
39012         * modules/posix_spawnattr_setschedparam: New file.
39013         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
39014         modifications.
39015         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
39016         new module.
39017
39018         New module 'posix_spawnattr_getschedparam'.
39019         * modules/posix_spawnattr_getschedparam: New file.
39020         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
39021         modifications.
39022         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
39023         new module.
39024
39025         New module 'posix_spawnattr_setpgroup'.
39026         * modules/posix_spawnattr_setpgroup: New file.
39027         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
39028         modifications.
39029         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
39030         module.
39031
39032         New module 'posix_spawnattr_getpgroup'.
39033         * modules/posix_spawnattr_getpgroup: New file.
39034         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
39035         modifications.
39036         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
39037         module.
39038
39039         New module 'posix_spawnattr_setflags'.
39040         * modules/posix_spawnattr_setflags: New file.
39041         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
39042         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
39043         module.
39044
39045         New module 'posix_spawnattr_getflags'.
39046         * modules/posix_spawnattr_getflags: New file.
39047         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
39048         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
39049         module.
39050
39051         New module 'posix_spawnattr_init'.
39052         * modules/posix_spawnattr_init: New file.
39053         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
39054         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
39055         module.
39056
39057         New module 'posix_spawn_file_actions_destroy'.
39058         * modules/posix_spawn_file_actions_destroy: New file.
39059         * lib/spawn_faction_destroy.c: New file, from GNU libc with
39060         modifications.
39061         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
39062         the new module.
39063
39064         New module 'posix_spawn_file_actions_addopen'.
39065         * modules/posix_spawn_file_actions_addopen: New file.
39066         * lib/spawn_faction_addopen.c: New file, from GNU libc with
39067         modifications.
39068         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
39069         the new module.
39070
39071         New module 'posix_spawn_file_actions_adddup2'.
39072         * modules/posix_spawn_file_actions_adddup2: New file.
39073         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
39074         modifications.
39075         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
39076         the new module.
39077
39078         New module 'posix_spawn_file_actions_addclose'.
39079         * modules/posix_spawn_file_actions_addclose: New file.
39080         * lib/spawn_faction_addclose.c: New file, from GNU libc with
39081         modifications.
39082         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
39083         the new module.
39084
39085         New module 'posix_spawn_file_actions_init'.
39086         * modules/posix_spawn_file_actions_init: New file.
39087         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
39088         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
39089         new module.
39090
39091         New module 'posix_spawn-internal'.
39092         * modules/posix_spawn-internal: New file.
39093         * lib/spawn_int.h: New file, from GNU libc with modifications.
39094         * lib/spawni.c: New file, from GNU libc with modifications.
39095         * m4/posix_spawn.m4: New file.
39096
39097         New module 'spawn'.
39098         * modules/spawn: New file.
39099         * lib/spawn.in.h: New file, from GNU libc with modifications.
39100         * m4/spawn_h.m4: New file.
39101         * doc/posix-headers/spawn.texi: Mention the new module.
39102
39103 2008-09-28  Bruno Haible  <bruno@clisp.org>
39104
39105         * modules/sched-tests: New file.
39106         * tests/test-sched.c: New file.
39107
39108         New module 'sched'.
39109         * modules/sched: New file.
39110         * lib/sched.in.h: New file.
39111         * m4/sched_h.m4: New file.
39112         * doc/posix-headers/sched.texi: Mention the new module.
39113
39114 2008-09-27  Eric Blake  <ebb9@byu.net>
39115
39116         Fix previous patch, and tweak references to $0.
39117         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
39118         (func_version, func_gnulib_dir): Don't call this program
39119         gnulib-tool.
39120         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
39121         with using $0 in function.
39122         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
39123         (func_fatal_error): Reuse the name the user invoked us with.
39124
39125 2008-09-27  Bruno Haible  <bruno@clisp.org>
39126
39127         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
39128         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
39129         (gl_ICONV_H): Not here.
39130         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
39131         instead of assigning ICONV_H directly.
39132
39133         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
39134         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
39135         WCHAR_H directly.
39136
39137 2008-09-27  Bruno Haible  <bruno@clisp.org>
39138
39139         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
39140         * modules/arpa_inet (Depends-on): Add link-warning.
39141         (Makefile.am): Insert the definition of GL_LINK-WARNING.
39142         * modules/unistd (Makefile.am): Likewise.
39143
39144 2008-09-26  Bruno Haible  <bruno@clisp.org>
39145
39146         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
39147         variables.
39148         (func_version): Essentially copied from gnulib-tool.
39149         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
39150         func_readlink): Copied from gnulib-tool.
39151
39152 2008-09-26  Bruno Haible  <bruno@clisp.org>
39153
39154         * gnulib-tool (func_version): Change directory to $gnulib_dir before
39155         invoking git-version-gen.
39156
39157 2008-09-26  Bruno Haible  <bruno@clisp.org>
39158
39159         * posix-modules: Update to directory names changed on 2008-01-19.
39160         Remove commas in output before splitting into words. No more need to
39161         avoid 'ftruncate' since 2007-02-19.
39162
39163 2008-09-26  Bruno Haible  <bruno@clisp.org>
39164
39165         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
39166
39167 2008-09-26  Bruno Haible  <bruno@clisp.org>
39168
39169         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
39170         * modules/fwriteerror (Depends-on): Add errno.
39171
39172 2008-09-26  Bruno Haible  <bruno@clisp.org>
39173
39174         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
39175         * tests/test-vc-list-files-cvs.sh: Likewise.
39176
39177 2008-09-26  Bruno Haible  <bruno@clisp.org>
39178
39179         * doc/posix-headers/sys_resource.texi: Reorder items.
39180
39181 2008-09-26  Jim Meyering  <meyering@redhat.com>
39182
39183         fts: tweak inode comparison function
39184         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
39185         inode numbers, as documented.
39186
39187         fts: sort dirent entries on inode number before traversing
39188         This avoids a quadratic, seek-related performance penalty when
39189         operating on a directory containing many entries (measurable at 10k;
39190         3.5 hours at 2 million entries with a cold cache) on certain types
39191         of file systems, including ext3 and ext4, but not tmpfs.
39192         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
39193         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
39194         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
39195         (fs_handles_readdir_ordered_dirents_efficiently): New function.
39196         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
39197         (fts_build): Set the stat.st_ino member from D_INO.
39198         If it is likely to be useful, sort dirent entries on inode number.
39199
39200         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
39201         and the struct statfs.f_type member.
39202         * modules/fts (Depends-on): Add d-ino.
39203
39204 2008-09-26  Bruno Haible  <bruno@clisp.org>
39205
39206         * modules/sigpipe-die (Depends-on): Add sigpipe.
39207
39208         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
39209         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
39210         and GNULIB_STDIO_H_SIGPIPE are set.
39211         * lib/stdio-write.c: New file.
39212         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
39213         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
39214         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
39215         REPLACE_STDIO_WRITE_FUNCS.
39216         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
39217         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
39218         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
39219         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
39220         * modules/stdio (Files): Add lib/stdio-write.c.
39221         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
39222         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
39223         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
39224         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
39225         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
39226         REPLACE_FPRINTF_POSIX.
39227         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
39228         REPLACE_PRINTF_POSIX.
39229         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
39230         REPLACE_VFPRINTF_POSIX.
39231         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
39232         REPLACE_VPRINTF_POSIX.
39233         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
39234         SIGPIPE issue.
39235         * doc/posix-functions/fputc.texi: Likewise.
39236         * doc/posix-functions/fputs.texi: Likewise.
39237         * doc/posix-functions/fwrite.texi: Likewise.
39238         * doc/posix-functions/printf.texi: Likewise.
39239         * doc/posix-functions/putc.texi: Likewise.
39240         * doc/posix-functions/putchar.texi: Likewise.
39241         * doc/posix-functions/puts.texi: Likewise.
39242         * doc/posix-functions/vfprintf.texi: Likewise.
39243         * doc/posix-functions/vprintf.texi: Likewise.
39244
39245         * modules/safe-write (Depends-on): Add write.
39246
39247         * modules/sigpipe-tests: New file.
39248         * tests/test-sigpipe.c: New file.
39249         * tests/test-sigpipe.sh: New file.
39250
39251         * modules/write: New file.
39252         * lib/unistd.in.h: Include <sys/types.h>.
39253         (write): New declaration.
39254         * lib/write.c: New file.
39255         * m4/write.m4: New file.
39256         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39257         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
39258         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
39259         GNULIB_WRITE, REPLACE_WRITE.
39260         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
39261         and the SIGPIPE issue.
39262
39263         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
39264         (raise): New declaration.
39265         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
39266         (ext_signal): New function.
39267         (rpl_raise): New function.
39268         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
39269         GNULIB_SIGNAL_H_SIGPIPE.
39270         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
39271         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
39272
39273         * modules/sigpipe: New file.
39274         * m4/sigpipe.m4: New file.
39275
39276 2008-09-25  Derek Price  <derek@ximbiot.com>
39277             Bruno Haible  <bruno@clisp.org>
39278
39279         * gnulib-tool (func_import): Report all license incompatibilities, not
39280         just the first one.
39281
39282 2008-09-25  Bruno Haible  <bruno@clisp.org>
39283
39284         * gnulib-tool (func_import): When computing the edits, consider not
39285         only the Makefile.ams that exist but also those that will be generated.
39286
39287 2008-09-25  Simon Josefsson  <simon@josefsson.org>
39288
39289         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
39290         fixes gnulib-tool --test warning about duplicate dependency.
39291
39292 2008-09-25  Bruno Haible  <bruno@clisp.org>
39293
39294         * gnulib-tool: Don't ask the user to perform edits in the generated
39295         Makefile.ams.
39296         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
39297         apply to the Makefile.am being generated.
39298         (func_emit_tests_Makefile_am): Execute edits that apply to the
39299         Makefile.am being generated.
39300         (func_import): Setup list of Makefile.am edits before emitting the
39301         Makefile.ams, not at the end.
39302         (func_create_testdir): Update.
39303         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
39304
39305 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39306
39307         * gnulib-tool (func_import): Store the --tests-base option in the
39308         comment in gnulib-cache.m4.
39309
39310 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
39311
39312         * NEWS: Document increased portability that sys_select now provides.
39313
39314         * lib/sys_select.in.h: Install select wrapper.
39315         * lib/sys_socket.in.h: Use more descriptive name when there is no
39316         select wrapper.
39317         * lib/winsock-select.c: New.
39318         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
39319         Require gl_HEADER_SYS_SOCKET.
39320         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
39321         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
39322         * tests/test-sys_select.c: Add functional tests.
39323
39324 2008-09-24  Eric Blake  <ebb9@byu.net>
39325
39326         open, fopen: close fd leak in last patch
39327         * lib/open.c (rpl_open): Close fd before returning error.
39328         * lib/fopen.c (rpl_fopen): Close fd before returning error.
39329         * doc/posix-functions/open.texi (open): Document that Irix also
39330         has the bug.
39331         * doc/posix-functions/fopen.texi (fopen): Likewise.
39332         Reported by Paolo Bonzini.
39333
39334 2008-09-24  Bruno Haible  <bruno@clisp.org>
39335
39336         Ensure that a filename ending in a slash cannot be used to access a
39337         non-directory.
39338         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
39339         to check whether it's really a directory.
39340         * lib/fopen.c: Include fcntl.h, unistd.h.
39341         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
39342         and fdopen().
39343         * modules/fopen (Depends-on): Add unistd.
39344         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
39345         * tests/test-fopen.c (main): Likewise.
39346         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
39347         * doc/posix-functions/fopen.texi: Likewise.
39348         Reported by Eric Blake.
39349
39350 2008-09-23  Eric Blake  <ebb9@byu.net>
39351
39352         c-stack: avoid compiler optimizations when provoking overflow
39353         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
39354         recursion harder to optimize, to ensure a stack overflow occurs.
39355         * tests/test-c-stack.c (recurse): Likewise.
39356         Borrowed from libsigsegv.
39357
39358         c-stack: work around Irix sigaltstack bug
39359         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
39360         whether sigaltstack uses wrong end of stack_t (copied in part from
39361         libsigsegv).
39362         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
39363         Irix bug, without requiring an over-allocation.
39364         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
39365         bug.
39366
39367         fopen: document mingw bug on directories
39368         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
39369         not allowing a stream visiting a directory, even though reading
39370         from such a stream is not portable.
39371
39372 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
39373
39374         * lib/poll.c: Rewrite.
39375         * modules/poll: Depend on alloca.
39376
39377 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
39378
39379         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
39380         instead define prototypes for a full set of wrappers.  Ensure
39381         that Cygwin does not use the compatibility code, which is only
39382         for MinGW.
39383         * lib/winsock.c: New.
39384         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
39385         * modules/sys_socket: Add lib/winsock.c.
39386
39387         * modules/poll-tests: Add errno and perror.
39388         * tests/test-poll.c: Use ioctl, not ioctlsocket.
39389
39390 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
39391
39392         * tests/test-poll.c: Downgrade minimum needed Winsock version.
39393
39394 2008-09-23  Bruno Haible  <bruno@clisp.org>
39395
39396         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
39397         * doc/glibc-functions/*: Likewise.
39398
39399 2008-09-23  Simon Josefsson  <simon@josefsson.org>
39400
39401         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
39402         success.
39403
39404 2008-09-22  Eric Blake  <ebb9@byu.net>
39405             Bruno Haible  <bruno@clisp.org>
39406
39407         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
39408         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
39409         supply %A but mishandle pseudo-NaN.
39410         Reported by Simon Josefsson.
39411
39412 2008-09-21  Bruno Haible  <bruno@clisp.org>
39413
39414         * tests/test-lock.c (main): Tweak skip message.
39415         * tests/test-tls.c (main): Likewise.
39416
39417 2008-09-21  Bruno Haible  <bruno@clisp.org>
39418
39419         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
39420         whether 'struct sigaction' has sa_sigaction here...
39421         (gl_PREREQ_SIG_HANDLER_H): ... not here.
39422         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
39423
39424 2008-09-21  Bruno Haible  <bruno@clisp.org>
39425
39426         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
39427         section.
39428         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
39429         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
39430         the new section.
39431         (Support for obsolete systems lacking POSIX:2001): New section.
39432         (String handling <string.h>): Move strdup to the new section.
39433         Suggested by Simon Josefsson and Paolo Bonzini.
39434
39435 2008-09-21  Bruno Haible  <bruno@clisp.org>
39436
39437         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
39438         exponents in %e and %g results on 'long double'. Needed for mingw's
39439         improved *printf functions.
39440         * tests/test-vasprintf-posix.c (test_function): Likewise.
39441         * tests/test-snprintf-posix.h (test_function): Likewise.
39442         * tests/test-sprintf-posix.h (test_function): Likewise.
39443         Reported by Eric Blake.
39444
39445 2008-09-21  Bruno Haible  <bruno@clisp.org>
39446
39447         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
39448         * tests/test-sprintf-posix.h (test_function): Likewise.
39449
39450 2008-09-21  Bruno Haible  <bruno@clisp.org>
39451
39452         * modules/getpass (Depends-on): Add strdup-posix.
39453
39454         New module 'strdup-posix'.
39455         * modules/strdup-posix: New file.
39456         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
39457         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
39458         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
39459         REPLACE_STRDUP.
39460         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
39461         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
39462         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39463         strdup-posix.
39464
39465         * modules/strdup (Depends-on): Remove malloc-posix.
39466
39467 2008-09-20  Bruno Haible  <bruno@clisp.org>
39468
39469         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
39470         Wildenhues.
39471
39472 2008-09-20  Bruno Haible  <bruno@clisp.org>
39473
39474         Ensure that wint_t gets defined on IRIX 5.3.
39475         * lib/wchar.in.h (wint_t): Define if not defined by the system.
39476         * lib/wctype.in.h (wint_t): Likewise.
39477         (__wctype_wint_t): Remove type.
39478         (isw*): Use wint_t instead of __wctype_wint_t.
39479         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
39480         * modules/wchar (Files): Add m4/wint_t.m4.
39481         (Makefile.am): Substitute HAVE_WINT_T.
39482         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
39483         * tests/test-wctype.c: Check that wint_t is defined.
39484         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
39485         * doc/posix-headers/wctype.texi: Likewise.
39486         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39487
39488 2008-09-18  Bruno Haible  <bruno@clisp.org>
39489
39490         * gnulib-tool (func_exit): Update comment.
39491
39492 2008-09-18  Simon Josefsson  <simon@josefsson.org>
39493
39494         * modules/getaddrinfo (Depends-on): Remove strdup, this module
39495         assumes strdup exists and does not depend on strdup to return
39496         ENOMEM on out of memory conditions.
39497
39498 2008-09-18  Bruno Haible  <bruno@clisp.org>
39499
39500         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
39501         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
39502         digits for the exponent.
39503
39504 2008-09-18  Jim Meyering  <meyering@redhat.com>
39505             Bruno Haible  <bruno@clisp.org>
39506
39507         * lib/vasnprintf.c (decimal_point_char): Define also if
39508         NEED_PRINTF_INFINITE_LONG_DOUBLE.
39509
39510 2008-09-16  Bruno Haible  <bruno@clisp.org>
39511         and Eric Blake  <ebb9@byu.net>
39512
39513         vasnprintf: support Irix 5.3
39514         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
39515         that mishandle long double infinity.
39516         Reported by Tom G. Christensen.
39517
39518 2008-09-16  Bruno Haible  <bruno@clisp.org>
39519
39520         * doc/glibc-functions/scandir.texi: Mention the function is missing on
39521         Solaris 9.
39522         * doc/glibc-functions/alphasort.texi: Likewise.
39523         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
39524
39525 2008-09-16  Jim Meyering  <meyering@redhat.com>
39526
39527         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
39528         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
39529         a umask modification leak out of a subshell.  Otherwise, the
39530         opensolaris /bin/sh would be accepted and thus cause unwarranted
39531         failures in the coreutils test suite.
39532
39533 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
39534
39535         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
39536         to succeed.
39537
39538 2008-09-16  Jim Meyering  <meyering@redhat.com>
39539
39540         avoid spurious test failure when library is built without ACL support
39541         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
39542         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
39543         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
39544         * tests/test-copy-acl.sh: Likewise.
39545
39546 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39547
39548         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
39549         based on character occurrence counts.
39550
39551 2008-09-15  Eric Blake  <ebb9@byu.net>
39552
39553         tests: avoid some compiler warnings
39554         * tests/test-memchr.c (main): Pass NULL indirectly.
39555         * tests/test-closein.c (main): Avoid unused variable.
39556
39557 2008-09-15  Bruno Haible  <bruno@clisp.org>
39558
39559         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
39560         are missing on OpenBSD 4.0 individually.
39561         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
39562
39563 2008-09-15  Bruno Haible  <bruno@clisp.org>
39564
39565         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
39566         * doc/posix-functions/strerror.texi: Mention also Cygwin.
39567         * doc/posix-functions/perror.texi: Likewise.
39568         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
39569         is missing.
39570         Reported by Eric Blake.
39571
39572         * lib/errno.in.h: Use replacement values >= 2000.
39573         Reported by Eric Blake.
39574
39575 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39576
39577         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
39578         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
39579         limit.
39580         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
39581         compareseq was aborted.
39582
39583 2008-09-14  Bruno Haible  <bruno@clisp.org>
39584
39585         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
39586         yvec_edit_count.
39587         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
39588         (fstrcmp_bounded): Simplify result computation accordingly.
39589
39590 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39591
39592         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
39593         (fstrcmp): Define in terms of fstrcmp_bounded.
39594         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
39595         lower_bound argument.
39596         Return quickly if the result is certainly < lower_bound.
39597         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
39598
39599 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39600
39601         * lib/diffseq.h (EARLY_ABORT): New macro.
39602         (compareseq): Change return type to bool. Return true when EARLY_ABORT
39603         evaluates to true.
39604
39605 2008-09-14  Bruno Haible  <bruno@clisp.org>
39606
39607         * modules/perror-tests: New file.
39608         * tests/test-perror.sh: New file.
39609         * tests/test-perror.c: New file.
39610
39611         New module 'perror'.
39612         * lib/stdio.in.h (perror): New declaration.
39613         * lib/perror.c: New file.
39614         * m4/perror.m4: New file.
39615         * modules/perror: New file.
39616         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
39617         * doc/posix-functions/perror.texi: Mention the perror module.
39618         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
39619         REPLACE_PERROR.
39620         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
39621         REPLACE_PERROR.
39622
39623 2008-09-14  Bruno Haible  <bruno@clisp.org>
39624
39625         * modules/stdio (Makefile.am): Reorder to match the order in
39626         lib/stdio.in.h.
39627         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
39628
39629 2008-09-13  Bruno Haible  <bruno@clisp.org>
39630
39631         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
39632
39633 2008-09-13  Bruno Haible  <bruno@clisp.org>
39634
39635         Extend strerror to cover the added errno values.
39636         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
39637         (rpl_strerror): Provide error messages for the added errno values and
39638         for the WSA* values.
39639         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
39640         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
39641         strerror.
39642         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
39643         * modules/strerror (Depends-on): Add errno.
39644         * doc/posix-functions/strerror.texi: Document the change.
39645         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
39646         and EOVERFLOW.
39647
39648 2008-09-13  Bruno Haible  <bruno@clisp.org>
39649
39650         * modules/EOVERFLOW: Remove file.
39651         * m4/eoverflow.m4: Remove file.
39652         * modules/EOVERFLOW-tests: Remove file.
39653         * tests/test-EOVERFLOW.c: Remove file.
39654         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
39655         * modules/ftell (Depends-on): Likewise.
39656         * modules/getdelim (Depends-on): Likewise.
39657         * modules/getugroups (Depends-on): Likewise.
39658         * modules/poll (Depends-on): Likewise.
39659         * modules/snprintf (Depends-on): Likewise.
39660         * modules/sprintf-posix (Depends-on): Likewise.
39661         * modules/vasnprintf (Depends-on): Likewise.
39662         * modules/vasprintf (Depends-on): Likewise.
39663         * modules/vfprintf-posix (Depends-on): Likewise.
39664         * modules/vsnprintf (Depends-on): Likewise.
39665         * modules/vsprintf-posix (Depends-on): Likewise.
39666         * modules/xvasprintf (Depends-on): Likewise.
39667         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
39668         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
39669         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
39670         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
39671         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39672         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
39673         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
39674         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
39675         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39676         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
39677         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
39678         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
39679         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39680         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
39681         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
39682         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
39683         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39684         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
39685         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
39686         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
39687         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39688         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
39689         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
39690         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
39691         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
39692         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39693         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
39694         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
39695         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
39696         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
39697         * MODULES.html.sh: Remove EOVERFLOW.
39698         * NEWS: Mention the change.
39699
39700 2008-09-13  Bruno Haible  <bruno@clisp.org>
39701
39702         * modules/errno-tests: New file.
39703         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
39704
39705         * lib/errno.in.h: New file.
39706         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
39707         * modules/errno: New file.
39708         * doc/posix-headers/errno.texi: Update documentation.
39709         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
39710
39711 2008-09-13  Bruno Haible  <bruno@clisp.org>
39712
39713         * tests/test-poll.c: Use #if for native Windows, rather than testing
39714         __MSVCRT__.
39715
39716 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39717             Bruno Haible  <bruno@clisp.org>
39718
39719         * lib/glob.c: Don't include <pwd.h> on native Windows.
39720         (WINDOWS32): New macro.
39721         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
39722
39723 2008-09-13  Bruno Haible  <bruno@clisp.org>
39724
39725         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
39726         (ETIMEDOUT): Remove macro.
39727         (glthread_cond_timedwait_multithreaded): New declaration.
39728         (glthread_cond_timedwait): Use it.
39729         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
39730         (glthread_cond_timedwait_multithreaded): New function.
39731
39732 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
39733
39734         * modules/poll-tests: Do not check for io.h.
39735         * tests/test-poll.c: Check for __MSVCRT__ instead.
39736
39737 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
39738
39739         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
39740         * modules/poll-tests: Add inet_pton, stdbool, sockets.
39741         * tests/test-poll.c: Use them.  Use _pipe on Windows.
39742
39743 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
39744
39745         * modules/poll-tests: New.
39746         * tests/test-poll.c: New.
39747
39748 2008-09-12  Eric Blake  <ebb9@byu.net>
39749
39750         frexp: test for NetBSD failure on -0.0
39751         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
39752         not all, bugs from NetBSD 3.0 have been fixed.
39753         * doc/posix-functions/frexp.texi (frexp): Document bug.
39754         Reported by Thomas Klausner.
39755
39756         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
39757         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
39758         literal -0.0.
39759         Reported by Jonathan C. Patschke <jp@centtech.com>.
39760
39761 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39762
39763         * lib/glthread/cond.h: Use dummy implementation also if
39764         USE_WIN32_THREADS.
39765
39766 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39767
39768         * modules/fnmatch-posix (License): Change to LGPLv2+.
39769         * modules/fnmatch-gnu (License): Likewise.
39770
39771 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39772
39773         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
39774
39775 2008-09-11  Jim Meyering  <meyering@redhat.com>
39776
39777         * users.txt: Add gtk-vnc.
39778
39779 2008-09-08  Simon Josefsson  <simon@josefsson.org>
39780
39781         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
39782         rotate amounts.
39783
39784         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
39785         required for 16-bit and 8-bit rotates.
39786         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
39787         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
39788         UINT8_MAX instead of hard-coded constants.
39789         Suggested by Paul Eggert.
39790
39791 2008-09-07  Bruno Haible  <bruno@clisp.org>
39792
39793         * tests/test-striconveh.c (main): Check behaviour when converting from
39794         UTF-7.
39795
39796         Make striconveh work better with stateful encodings.
39797         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
39798         that iconv does not increment the inptr when returning -1/EINVAL.
39799
39800 2008-09-07  Bruno Haible  <bruno@clisp.org>
39801
39802         * build-aux/config.rpath: Update according to libtool-2.2.6.
39803         * build-aux/config.libpath: Likewise.
39804
39805 2008-09-06  Bruno Haible  <bruno@clisp.org>
39806
39807         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
39808         * lib/freadptr.c (freadptr): Likewise.
39809         * lib/freadseek.c (freadptrinc): Likewise.
39810         Reported by Simon Josefsson.
39811
39812 2008-09-06  Bruno Haible  <bruno@clisp.org>
39813
39814         * modules/freadptr (License): Change to LGPLv2+.
39815         * modules/freadseek (License): Likewise.
39816         Suggested by Eric Blake.
39817
39818         * modules/memchr2 (License): Change to LGPLv2+.
39819         Approved by Eric Blake.
39820
39821 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39822             Bruno Haible  <bruno@clisp.org>
39823
39824         Make gnulib-tool work with native 'sed' on AIX.
39825         * gnulib-tool (sed_noop): New variable.
39826         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
39827         func_add_or_update, func_create_testdir): Use it to initialize sed
39828         script variables.
39829         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39830
39831 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
39832             Bruno Haible  <bruno@clisp.org>
39833
39834         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
39835         also works after #include directives.
39836
39837 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
39838
39839         getdate.y: reject an out-of-range timezone value
39840         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
39841         the range [-24...+24].  When specified with only one or two digits,
39842         * tests/test-getdate.c: Tests for the fix.
39843         * doc/getdate.texi: Document this change.
39844
39845 2008-09-03  Bruno Haible  <bruno@clisp.org>
39846
39847         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
39848
39849 2008-09-02  Simon Josefsson  <simon@josefsson.org>
39850
39851         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
39852         <bruce.korb@gmail.com> with ideas from Ben Pfaff
39853         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
39854         Blake <ebb9@byu.net>.
39855
39856         * tests/test-bitrotate.c: Add more test vectors.
39857
39858 2008-09-02  Eric Blake  <ebb9@byu.net>
39859
39860         vasnprintf-posix: handle large precision via %.*d
39861         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
39862         when handling it ourselves.
39863         * tests/test-vasnprintf-posix.c (test_function): Add test.
39864         * tests/test-snprintf-posix.h (test_function): Likewise.
39865         * tests/test-sprintf-posix.h (test_function): Likewise.
39866         * tests/test-vasprintf-posix.c (test_function): Likewise.
39867         Reported by Alain Guibert.
39868
39869 2008-09-01  Eric Blake  <ebb9@byu.net>
39870
39871         c-stack: make configure-time check more robust
39872         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
39873         successful sigaction call.
39874         Reported by Tom G. Christensen.
39875
39876 2008-09-01  Bruno Haible  <bruno@clisp.org>
39877
39878         New module 'findprog-lgpl'.
39879         * modules/findprog-lgpl: New file.
39880         * lib/findprog-lgpl.c: New file.
39881         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
39882         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
39883         to decide whether to use strdup or xstrdup, concatenated_filename or
39884         xconcatenated_filename.
39885
39886 2008-09-01  Bruno Haible  <bruno@clisp.org>
39887
39888         Split module 'concat-filename' into 'concat-filename' (LGPL) and
39889         'xconcat-filename' (GPL).
39890         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
39891         (License): Change to LGPLv2+.
39892         * modules/xconcat-filename: New file.
39893         * lib/concat-filename.h (concatenated_filename): Change specification.
39894         (xconcatenated_filename): New declaration.
39895         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
39896         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
39897         memory situations.
39898         * lib/xconcat-filename.c: New file.
39899         * NEWS: Mention the change.
39900         * lib/findprog.c: Include concat-filename.h, not filename.h.
39901         (find_in_path): Use xconcatenated_filename instead of
39902         concatenated_filename.
39903         * lib/javacomp.c: Include concat-filename.h, not filename.h.
39904         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
39905         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
39906         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
39907         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
39908         instead of concatenated_filename.
39909         * lib/javaexec.c: Include concat-filename.h, not filename.h.
39910         (execute_java_class): Use xconcatenated_filename instead of
39911         concatenated_filename.
39912         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
39913         * modules/javacomp (Depends-on): Likewise.
39914         * modules/javaexec (Depends-on): Likewise.
39915
39916 2008-09-01  Bruno Haible  <bruno@clisp.org>
39917
39918         Split module 'filename' into 'filename' and 'concat-filename'.
39919         * modules/filename: Keep only lib/filename.h.
39920         (License): Change to LGPLv2+.
39921         * modules/concat-filename: New file, extracted from modules/filename.
39922         * lib/filename.h (concatenated_filename): Remove declaration.
39923         * lib/concat-filename.h: New file, extracted from lib/filename.h.
39924         * lib/concat-filename.c: Include concat-filename.h.
39925         * NEWS: Mention the change.
39926
39927 2008-09-01  Simon Josefsson  <simon@josefsson.org>
39928
39929         * lib/bitrotate.h (rotl8, rotr8): Add.
39930
39931         * modules/bitrotate (configure.ac): Need
39932         AC_REQUIRE([AC_C_INLINE]).
39933         (Description): Mention stdint.h.  Reported by Bruno Haible
39934         <bruno@clisp.org>.
39935
39936         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
39937         Paolo Bonzini <bonzini@gnu.org>.
39938
39939 2008-08-31  Bruno Haible  <bruno@clisp.org>
39940
39941         Assume Solaris specific bi-arch conventions on Solaris systems.
39942         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
39943         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
39944         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
39945         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
39946         like acl_libdirstem.
39947         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
39948         acl_libdirstem.
39949         * NEWS: Mention the change.
39950         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
39951
39952 2008-08-31  Jim Meyering  <meyering@redhat.com>
39953
39954         * lib/strftime.h: Add comments describing the two added arguments.
39955
39956         remove duplicate #include directives
39957         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
39958         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
39959
39960 2008-08-31  Bruno Haible  <bruno@clisp.org>
39961
39962         New module 'sigpipe-die'.
39963         * modules/sigpipe-die: New file.
39964         * lib/sigpipe-die.h: New file.
39965         * lib/sigpipe-die.c: New file.
39966         * MODULES.html.sh (Signal handling): Add sigpipe-die.
39967
39968 2008-08-31  Bruno Haible  <bruno@clisp.org>
39969
39970         Don't override previously installed signal handlers.
39971         * lib/fatal-signal.c (saved_sigactions): New variable.
39972         (uninstall_handlers): Reset the signal to the saved handler, not
39973         to SIG_DFL (except when ignored).
39974         (install_handlers): Save the previous handlers.
39975
39976 2008-08-30  Bruno Haible  <bruno@clisp.org>
39977
39978         * gnulib-tool (func_reset_sigpipe): New function.
39979         (func_get_automake_snippet, func_modules_transitive_closure,
39980         func_import): Invoke it before a join command that reads from stdin,
39981         to avoid "echo: write error: Broken pipe" error messages on stderr.
39982         Reported by Sam Steingold <sds@gnu.org>.
39983
39984 2008-08-30  Bruno Haible  <bruno@clisp.org>
39985
39986         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
39987         Code copied from m4/open.m4.
39988         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
39989         access and the filename ends in a slash. Code copied from lib/open.c.
39990         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
39991         * tests/test-fopen.c (main): Check against bug with trailing slash.
39992
39993 2008-08-29  Bruno Haible  <bruno@clisp.org>
39994
39995         Avoid some "gcc -pedantic" warnings.
39996         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
39997         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
39998         * lib/dirent.in.h: Likewise.
39999         * lib/fcntl.in.h: Likewise.
40000         * lib/float.in.h: Likewise.
40001         * lib/iconv.in.h: Likewise.
40002         * lib/inttypes.in.h: Likewise.
40003         * lib/locale.in.h: Likewise.
40004         * lib/math.in.h: Likewise.
40005         * lib/netinet_in.in.h: Likewise.
40006         * lib/search.in.h: Likewise.
40007         * lib/signal.in.h: Likewise.
40008         * lib/stdarg.in.h: Likewise.
40009         * lib/stdint.in.h: Likewise.
40010         * lib/stdio.in.h: Likewise.
40011         * lib/stdlib.in.h: Likewise.
40012         * lib/string.in.h: Likewise.
40013         * lib/strings.in.h: Likewise.
40014         * lib/sys_select.in.h: Likewise.
40015         * lib/sys_socket.in.h: Likewise.
40016         * lib/sys_stat.in.h: Likewise.
40017         * lib/sys_time.in.h: Likewise.
40018         * lib/sysexits.in.h: Likewise.
40019         * lib/time.in.h: Likewise.
40020         * lib/unistd.in.h: Likewise.
40021         * lib/wchar.in.h: Likewise.
40022         * lib/wctype.in.h: Likewise.
40023         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
40024         * modules/fchdir (Makefile.am): Likewise.
40025         * modules/fcntl (Makefile.am): Likewise.
40026         * modules/float (Makefile.am): Likewise.
40027         * modules/iconv_open (Makefile.am): Likewise.
40028         * modules/inttypes (Makefile.am): Likewise.
40029         * modules/locale (Makefile.am): Likewise.
40030         * modules/math (Makefile.am): Likewise.
40031         * modules/netinet_in (Makefile.am): Likewise.
40032         * modules/search (Makefile.am): Likewise.
40033         * modules/signal (Makefile.am): Likewise.
40034         * modules/stdarg (Makefile.am): Likewise.
40035         * modules/stdint (Makefile.am): Likewise.
40036         * modules/stdio (Makefile.am): Likewise.
40037         * modules/stdlib (Makefile.am): Likewise.
40038         * modules/string (Makefile.am): Likewise.
40039         * modules/strings (Makefile.am): Likewise.
40040         * modules/sys_select (Makefile.am): Likewise.
40041         * modules/sys_socket (Makefile.am): Likewise.
40042         * modules/sys_stat (Makefile.am): Likewise.
40043         * modules/sys_time (Makefile.am): Likewise.
40044         * modules/sysexits (Makefile.am): Likewise.
40045         * modules/time (Makefile.am): Likewise.
40046         * modules/unistd (Makefile.am): Likewise.
40047         * modules/wchar (Makefile.am): Likewise.
40048         * modules/wctype (Makefile.am): Likewise.
40049         Reported by Reuben Thomas <rrt@sc3d.org>.
40050
40051 2008-08-29  Bruno Haible  <bruno@clisp.org>
40052
40053         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
40054         any more.
40055
40056 2008-08-29  Simon Josefsson  <simon@josefsson.org>
40057
40058         * MODULES.html.sh (Misc): Add bitrotate.
40059
40060         * modules/bitrotate: New file.
40061
40062         * lib/bitrotate.h: New file.
40063
40064         * modules/bitrotate-tests: New file.
40065
40066         * tests/test-bitrotate.c: New file.
40067
40068         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
40069         on the bitrotate module.
40070
40071         * lib/arctwo.c: Use new bitrotate module.
40072
40073 2008-08-29  Jim Meyering  <meyering@redhat.com>
40074
40075         bootstrap: merge changes from coreutils
40076         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
40077         of copied files.  Remove a kludge, now that this is fixed.
40078         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
40079         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
40080         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
40081
40082 2008-08-29  Bruno Haible  <bruno@clisp.org>
40083
40084         * MODULES.html.sh: Remove --cvs-urls option.
40085
40086 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
40087
40088         maint.mk: adjust to file name change
40089         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
40090
40091 2008-08-28  Jim Meyering  <meyering@redhat.com>
40092
40093         * modules/getndelim2 (License): Relicense to LGPLv2+.
40094         Approved by Richard Stallman for the version of 1995, and by
40095         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
40096
40097 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
40098
40099         * lib/getdelim.c (flockfile, funlockfile): Make all of them
40100         dummy if one is not available.  Do not touch them if
40101         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
40102         (getc_maybe_unlocked): New.
40103         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
40104
40105 2008-08-26  Eric Blake  <ebb9@byu.net>
40106
40107         doc/INSTALL: resync from autoconf
40108         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
40109         (INSTALL_PRELUDE): Delete; this is done more efficiently by
40110         moving...
40111         * install.texi [!autoconf]: ...here.  Resync from autoconf.
40112         * INSTALL: Regenerate.
40113         * INSTALL.ISO: New file.
40114         * INSTALL.UTF-8: Likewise.
40115
40116 2008-08-26  Jim Meyering  <meyering@redhat.com>
40117
40118         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
40119         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
40120         these definitions conditional, so that they may be overridden, too.
40121
40122 2008-08-26  Bruno Haible  <bruno@clisp.org>
40123
40124         Generate INSTALL file variants with prettier quotes.
40125         * doc/Makefile (INSTALL_PRELUDE): New macro.
40126         (INSTALL): Use it.
40127         (INSTALL.ISO, INSTALL.UTF-8): New rules.
40128
40129 2008-08-26  Bruno Haible  <bruno@clisp.org>
40130
40131         Run makeinfo in an English locale.
40132         * doc/Makefile (MAKEINFO): New variable.
40133
40134 2008-08-26  Bruno Haible  <bruno@clisp.org>
40135
40136         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
40137         Suggested by Eric Blake.
40138
40139 2008-08-25  Bruno Haible  <bruno@clisp.org>
40140
40141         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
40142
40143 2008-08-25  Eric Blake  <ebb9@byu.net>
40144
40145         c-stack: test that stack overflow can be caught
40146         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
40147         that platform allows handling stack overflow; at least OS/2 EMX
40148         has sigaltstack, but crashes before transferring control to
40149         handler on stack overflow.
40150         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
40151         check for HAVE_STACK_OVERFLOW_HANDLING.
40152         Reported by Elbert Pol.
40153
40154 2008-08-25  Bruno Haible  <bruno@clisp.org>
40155
40156         * doc/posix-functions/strftime.texi: Fix description of strftime
40157         module.
40158
40159 2008-08-24  Bruno Haible  <bruno@clisp.org>
40160
40161         * tests/uniwidth/test-uc_width2.c: New file.
40162         * tests/uniwidth/test-uc_width2.sh: New file.
40163         * modules/uniwidth/width-tests (Files): Add the new files.
40164         (TESTS): Add uniwidth/test-uc_width2.sh.
40165         (TESTS_ENVIRONMENT): New variable.
40166         (check_PROGRAMS): Add test-uc_width2.
40167         (test_uc_width2_SOURCES): New variable.
40168
40169         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
40170         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
40171         not 0x00AB.
40172         Reported by Alexander V. Lukyanov <lav@netis.ru>.
40173
40174 2008-08-22  Eric Blake  <ebb9@byu.net>
40175
40176         test-lock, test-tls: mention why a test is skipped
40177         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
40178         skipped.
40179         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
40180
40181         count-one-bits: relax license
40182         * modules/count-one-bits (License): Relicense to LGPLv2+.
40183         Suggested by Ludovic Courtès, approved by Ben Pfaff.
40184
40185 2008-08-22  Andreas Schwab  <schwab@suse.de>
40186
40187         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
40188         Remove spurious space in assignment.
40189
40190 2008-08-21  Simon Josefsson  <simon@josefsson.org>
40191
40192         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
40193         Paul Eggert <eggert@CS.UCLA.EDU>.
40194
40195 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
40196
40197         * modules/gettext: Add m4/threadlib.m4.
40198
40199 2008-08-19  Eric Blake  <ebb9@byu.net>
40200
40201         test-c-stack: fix compilation failure on FreeBSD 5.0
40202         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
40203         headers before <sys/resource.h>.
40204         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
40205         the bug.
40206         Reported by Nelson H. F. Beebe.
40207
40208         strverscmp: migrate from "strverscmp.h" to <string.h>
40209         * modules/string (Makefile.am): Add new hooks.
40210         * modules/strverscmp (Files): Remove strverscmp.h.
40211         (Depends-on): Add string.
40212         (configure.ac): Add indicator.
40213         (Include): Mention new header.
40214         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
40215         defaults.
40216         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
40217         results.
40218         * lib/strverscmp.h: Delete.
40219         * lib/string.in.h (strverscmp): Provide declaration, when needed.
40220         * tests/test-strverscmp.c (includes): Adjust client.
40221         * lib/check-version.c (includes): Likewise.
40222         * NEWS: Document the change.
40223
40224         strverscmp: add unit test
40225         * modules/strverscmp-tests: New file.
40226         * tests/test-strverscmp.c: Likewise.
40227
40228 2008-08-19  Simon Josefsson  <simon@josefsson.org>
40229
40230         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
40231         regarding Windows crypto stuff, from Mono.
40232
40233 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
40234
40235         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
40236         if present, for intel RND.  Return error on failures.
40237
40238 2008-08-18  Ben Pfaff  <blp@gnu.org>
40239
40240         gitlog-to-changelog: give better diagnostic for failed pipe-open
40241         * build-aux/gitlog-to-changelog: Improve error message: suggest
40242         that the version of Git may be too old.
40243
40244 2008-08-18  Simon Josefsson  <simon@josefsson.org>
40245
40246         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
40247         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
40248
40249 2008-08-18  Bruno Haible  <bruno@clisp.org>
40250
40251         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
40252         pthread_in_use().
40253
40254 2008-08-18  Bruno Haible  <bruno@clisp.org>
40255
40256         * lib/glthread/threadlib.c: Include <pthread.h>.
40257
40258 2008-08-18  Bruno Haible  <bruno@clisp.org>
40259
40260         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
40261         glthread_recursive_lock_* macros.
40262         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
40263         Fix syntax error.
40264
40265 2008-08-18  Bruno Haible  <bruno@clisp.org>
40266
40267         * lib/glthread/thread.c: Avoid forcing a context switch right after
40268         thread creation.
40269
40270 2008-08-17  Bruno Haible  <bruno@clisp.org>
40271
40272         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
40273         * lib/glthread/thread.h: Provide Win32 specific implementation.
40274         * modules/thread (Files): Add lib/glthread/thread.c.
40275         (Depends-on): Add lock.
40276         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
40277
40278 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40279
40280         New module 'yield'.
40281         * modules/yield: New file.
40282         * lib/glthread/yield.h: New file.
40283         * m4/yield.m4: New file.
40284         * MODULES.html.sh (Multithreading): Add yield.
40285
40286 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40287
40288         New module 'thread'.
40289         * modules/thread: New file.
40290         * lib/glthread/thread.h: New file.
40291         * m4/thread.m4: New file.
40292         * MODULES.html.sh (Multithreading): Add thread.
40293
40294 2008-08-17  Bruno Haible  <bruno@clisp.org>
40295
40296         * lib/glthread/lock.h: Include <stdlib.h> always.
40297         * lib/glthread/tls.h: Likewise.
40298         * lib/glthread/cond.h: Likewise.
40299
40300 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40301
40302         New module 'cond'.
40303         * modules/cond: New file.
40304         * lib/glthread/cond.h: New file.
40305         * lib/glthread/cond.c: New file.
40306         * m4/cond.m4: New file.
40307         * MODULES.html.sh (Multithreading): Add cond.
40308
40309 2008-08-16  Eric Blake  <ebb9@byu.net>
40310
40311         c-stack: fix regression on Irix 5.3 from 2008-06-21
40312         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
40313         sa_sigaction...
40314         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
40315         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
40316         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
40317         * modules/signal (Makefile.am): Use the value.
40318         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
40319         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
40320         * doc/posix-headers/signal.texi (signal.h): Document this
40321         portability issue.
40322         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
40323         Reported by Tom G. Christensen.
40324
40325 2008-08-17  Bruno Haible  <bruno@clisp.org>
40326
40327         New module 'threadlib'.
40328         * modules/threadlib: New file.
40329         * lib/glthread/threadlib.c: New file, extracted from
40330         lib/glthread/lock.c.
40331         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
40332         functions.
40333         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
40334         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
40335         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
40336         macros.
40337         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
40338         (gl_DISABLE_THREADS): Remove macro.
40339         * modules/lock (Files): Remove build-aux/config.rpath.
40340         (Depends-on): Remove havelib. Add threadlib.
40341         (configure.ac-early): Remove section.
40342         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
40343         * modules/tls (Depends-on): Remove lock. Add threadlib.
40344         (Link): New section, copied from threadlib.
40345         * MODULES.html.sh (Multithreading): Add threadlib.
40346
40347 2008-08-14  Bruno Haible  <bruno@clisp.org>
40348
40349         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
40350         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
40351         glthread_rwlock_unlock, glthread_rwlock_destroy,
40352         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
40353         glthread_recursive_lock_destroy): Define as macros always.
40354         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
40355         glthread_lock_lock.
40356         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
40357         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
40358         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
40359         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
40360         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
40361         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
40362         (glthread_recursive_lock_lock_func): Renamed from
40363         glthread_recursive_lock_lock.
40364         (glthread_recursive_lock_unlock_func): Renamed from
40365         glthread_recursive_lock_unlock.
40366         (glthread_recursive_lock_destroy_func): Renamed from
40367         glthread_recursive_lock_destroy.
40368
40369 2008-08-14  Bruno Haible  <bruno@clisp.org>
40370
40371         * lib/glthread/lock.h: Renamed from lib/lock.h.
40372         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
40373         * lib/glthread/tls.h: Renamed from lib/tls.h.
40374         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
40375         * lib/fstrcmp.c: Update includes.
40376         * lib/strsignal.c: Update includes.
40377         * modules/lock (Files, Makefile.am): Update.
40378         (Include): Change to "glthread/lock.h".
40379         * modules/tls (Files, Makefile.am): Update.
40380         (Include): Change to "glthread/tls.h".
40381         * tests/test-lock.c: Update includes.
40382         * tests/test-tls.c: Update includes.
40383         * NEWS: Mention the renamed header files.
40384
40385 2008-08-11  Jim Meyering  <meyering@redhat.com>
40386
40387         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
40388
40389 2008-08-11  Eric Blake  <ebb9@byu.net>
40390
40391         test-c-stack: avoid C99-ism
40392         * tests/test-c-stack.c (main): Fix whitespace, move declaration
40393         before statement.
40394         Reported by Alain Guibert.
40395
40396 2008-08-10  Jim Meyering  <meyering@redhat.com>
40397
40398         ensure that return value of uinttostr et al are not ignored
40399         * lib/inttostr.h (__GNUC_PREREQ): Define.
40400         (__attribute_warn_unused_result__): Define.
40401         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
40402
40403 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
40404
40405         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
40406         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
40407
40408 2008-08-07  Jim Meyering  <meyering@redhat.com>
40409
40410         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
40411
40412         * modules/mkstemp (License): Relicense under LGPLv2+.
40413         * modules/tempname (License): Likewise.
40414
40415 2008-08-06  Bruno Haible  <bruno@clisp.org>
40416
40417         * lib/poll.c (poll): Further micro-optimization.
40418
40419 2008-08-06  Jim Meyering  <meyering@redhat.com>
40420
40421         inet_pton.c: use locale-independent tolower
40422         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
40423         (inet_pton6): Use c_tolower rather than tolower.
40424         * modules/inet_pton (Depends-on): Add c-ctype.
40425
40426 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
40427
40428         * lib/poll.c (poll): Avoid division when timeout is 0, cache
40429         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
40430
40431 2008-08-06  Jim Meyering  <meyering@redhat.com>
40432
40433         * modules/inet_pton (License): Relicense under LGPLv2+.
40434
40435 2008-08-03  Bruno Haible  <bruno@clisp.org>
40436
40437         Additional non-aborting API for lock and tls.
40438         * lib/lock.h: Include <errno.h>.
40439         (glthread_lock_init): New macro/function.
40440         (gl_lock_init): Define as wrapper around glthread_lock_init.
40441         (glthread_lock_lock): New macro/function.
40442         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
40443         (glthread_lock_unlock): New macro/function.
40444         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
40445         (glthread_lock_destroy): New macro/function.
40446         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
40447         (glthread_rwlock_init): New macro/function.
40448         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
40449         (glthread_rwlock_rdlock): New macro/function.
40450         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
40451         (glthread_rwlock_wrlock): New macro/function.
40452         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
40453         (glthread_rwlock_unlock): New macro/function.
40454         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
40455         (glthread_rwlock_destroy): New macro/function.
40456         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
40457         (glthread_recursive_lock_init): New macro/function.
40458         (gl_recursive_lock_init): Define as wrapper around
40459         glthread_recursive_lock_init.
40460         (glthread_recursive_lock_lock): New macro/function.
40461         (gl_recursive_lock_lock): Define as wrapper around
40462         glthread_recursive_lock_lock.
40463         (glthread_recursive_lock_unlock): New macro/function.
40464         (gl_recursive_lock_unlock): Define as wrapper around
40465         glthread_recursive_lock_unlock.
40466         (glthread_recursive_lock_destroy): New macro/function.
40467         (gl_recursive_lock_destroy): Define as wrapper around
40468         glthread_recursive_lock_destroy.
40469         (glthread_once): New macro/function.
40470         (gl_once): Define as wrapper around glthread_once.
40471         Update function declarations.
40472         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
40473         glthread_rwlock_init. Return error code.
40474         (glthread_rwlock_rdlock_multithreaded): Renamed from
40475         glthread_rwlock_rdlock. Return error code.
40476         (glthread_rwlock_wrlock_multithreaded): Renamed from
40477         glthread_rwlock_wrlock. Return error code.
40478         (glthread_rwlock_unlock_multithreaded): Renamed from
40479         glthread_rwlock_unlock. Return error code.
40480         (glthread_rwlock_destroy_multithreaded): Renamed from
40481         glthread_rwlock_destroy. Return error code.
40482         (glthread_recursive_lock_init_multithreaded): Renamed from
40483         glthread_recursive_lock_init. Return error code.
40484         (glthread_recursive_lock_lock_multithreaded): Renamed from
40485         glthread_recursive_lock_lock. Return error code.
40486         (glthread_recursive_lock_unlock_multithreaded): Renamed from
40487         glthread_recursive_lock_unlock. Return error code.
40488         (glthread_recursive_lock_destroy_multithreaded): Renamed from
40489         glthread_recursive_lock_destroy. Return error code.
40490         (glthread_once_call): Make static.
40491         (glthread_once_multithreaded): Renamed from glthread_once.
40492         * lib/tls.h: Include <errno.h>.
40493         (glthread_tls_key_init): New macro/function.
40494         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
40495         (glthread_tls_set): New macro/function.
40496         (gl_tls_set): Define as wrapper around glthread_tls_set.
40497         (glthread_tls_key_destroy): New macro/function.
40498         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
40499         Update function declarations.
40500         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
40501         glthread_tls_get.
40502         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
40503
40504 2008-08-04  Eric Blake  <ebb9@byu.net>
40505
40506         gnumakefile: use space, not TAB, outside of targets
40507         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
40508
40509 2008-08-02  Jim Meyering  <meyering@redhat.com>
40510
40511         getdate.y: avoid locale-dependent date parsing failure
40512         In Turkish locales, getdate would fail to recognize keywords
40513         containing a lowercase "i".  The solution is not to rely on
40514         locale-sensitive case-conversion.
40515         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
40516         (lookup_word): Use c_toupper in place of toupper.
40517         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
40518         Reported by Vefa Bicakci <bicave@superonline.com> in
40519         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
40520         * modules/getdate (Depends-on): Add c-ctype.
40521
40522 2008-08-02  Bruno Haible  <bruno@clisp.org>
40523
40524         * gnulib-tool (func_import): When updating or creating a .gitignore
40525         file, prepend each added line with a slash, and ignore leading slashes
40526         from the existing lines.
40527         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
40528
40529 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40530
40531         Portability fix for GNU make 3.79.1.
40532         * top/GNUmakefile: Avoid 'else COND', which older GNU make
40533         versions do not understand.
40534
40535 2008-08-01  Bruno Haible  <bruno@clisp.org>
40536
40537         Work around bug of HP-UX 10.20 cc with -0.0 literal.
40538         * tests/test-isnanf.h (zero): New variable.
40539         (main): Avoid literal -0.0f.
40540         * tests/test-isnand.h (zero): New variable.
40541         (main): Avoid literal -0.0.
40542         * tests/test-isnanl.h (zero): New variable.
40543         (main): Avoid literal -0.0L.
40544         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
40545         (test_float, test_double, test_long_double): Avoid literals -0.0f,
40546         -0.0, -0.0L.
40547         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
40548         (test_signbitd): Avoid literal -0.0.
40549         (test_signbitl): Avoid literal -0.0L.
40550         * tests/test-ceilf1.c (zero): New variable.
40551         (main): Avoid literal -0.0f.
40552         * tests/test-ceill.c (zero): New variable.
40553         (main): Avoid literal -0.0L.
40554         * tests/test-floorf1.c (zero): New variable.
40555         (main): Avoid literal -0.0f.
40556         * tests/test-floorl.c (zero): New variable.
40557         (main): Avoid literal -0.0L.
40558         * tests/test-roundf1.c (zero): New variable.
40559         (main): Avoid literal -0.0f.
40560         * tests/test-round1.c (zero): New variable.
40561         (main): Avoid literal -0.0.
40562         * tests/test-roundl.c (zero): New variable.
40563         (main): Avoid literal -0.0L.
40564         * tests/test-truncf1.c (zero): New variable.
40565         (main): Avoid literal -0.0f.
40566         * tests/test-trunc1.c (zero): New variable.
40567         (main): Avoid literal -0.0.
40568         * tests/test-truncl.c (zero): New variable.
40569         (main): Avoid literal -0.0L.
40570         * tests/test-frexp.c (zero): New variable.
40571         (main): Avoid literal -0.0.
40572         * tests/test-frexpl.c (zero): New variable.
40573         (main): Avoid literal -0.0L.
40574         * tests/test-ldexpl.c (zero): New variable.
40575         (main): Avoid literal -0.0L.
40576         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
40577         (zerod, zerol): New variables.
40578         (test_function): Avoid literals -0.0, -0.0L.
40579         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
40580         (zerod, zerol): New variables.
40581         (test_function): Avoid literals -0.0, -0.0L.
40582         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
40583         (zerod, zerol): New variables.
40584         (test_function): Avoid literals -0.0, -0.0L.
40585         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
40586         (zerod, zerol): New variables.
40587         (test_function): Avoid literals -0.0, -0.0L.
40588         * tests/test-strtod.c (zero): New variable.
40589         (main): Avoid literal -0.0.
40590         Reported by Jonathan C. Patschke <jp@centtech.com>.
40591
40592 2008-07-31  Jim Meyering  <meyering@redhat.com>
40593
40594         sha256.h: correct definition of SHA224_DIGEST_SIZE
40595         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
40596         Reported by Paulie Pena IV <paulie4@gmail.com>.
40597         Define as 224 / 8, rather than as a literal.
40598         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
40599         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
40600         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
40601
40602 2008-07-31  Bruno Haible  <bruno@clisp.org>
40603
40604         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
40605         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
40606         Reported by Jonathan Patschke <jp@centtech.com>.
40607
40608 2008-07-31  Bruno Haible  <bruno@clisp.org>
40609
40610         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
40611         Reported by Paolo Bonzini <bonzini@gnu.org>.
40612
40613 2008-07-30  Eric Blake  <ebb9@byu.net>
40614
40615         test-strtod: allow compilation without -lm
40616         * tests/test-strtod.c (main): Avoid link dependence on fabs.
40617         Reported by Dennis Clarke <blastwave@gmail.com>.
40618
40619 2008-07-28  Jim Meyering  <meyering@redhat.com>
40620
40621         bootstrap: work also when there are no .po files in po/
40622         * build-aux/bootstrap (update_po_files): Complete the change
40623         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
40624
40625 2008-07-27  Jim Meyering  <meyering@redhat.com>
40626
40627         * users.txt: Add zile.
40628
40629 2008-07-26  Ben Pfaff  <blp@gnu.org>
40630
40631         Add missing dependencies on new m4/exponent[fdl].m4 files.
40632         * modules/isnanf-nolibm: Add m4/exponentf.m4.
40633         * modules/isnand-nolibm: Add m4/exponentd.m4.
40634         * modules/isnanl-nolibm: Add m4/exponentl.m4.
40635         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
40636         m4/isnan[fdl].m4, because the macros actually used moved.
40637         Reported by Jim Meyering.
40638
40639 2008-07-14  Ben Pfaff  <blp@gnu.org>
40640
40641         Add isinf module.
40642         * lib/isinf.c: New file.
40643         * lib/math.in.h: Define isinf macro if we have decided to replace
40644         it.
40645         * m4/isinf.m4: New file.
40646         * m4/math_h.m4: Initialize and substitute variables for isinf
40647         module.
40648         * modules/isinf: New file.
40649         * modules/isinf-tests: New file.
40650         * modules/math: Add substitutions for new module.
40651         * tests/test-isinf.c: New file.
40652         * doc/posix-functions/isinf.texi: Mention new module.
40653         * MODULES.html.sh: Mention new module.
40654
40655 2008-07-14  Ben Pfaff  <blp@gnu.org>
40656
40657         Factor out some macros for use by additional modules.
40658         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
40659         exponentf.m4.
40660         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
40661         exponentd.m4.
40662         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
40663         file exponentl.m4.
40664         * m4/exponentf.m4: New file.
40665         * m4/exponentd.m4: New file.
40666         * m4/exponentl.m4: New file.
40667         * modules/isnanf: Use new file m4/exponentf.m4.
40668         * modules/isnand: Use new file m4/exponentd.m4.
40669         * modules/isnanl: Use new file m4/exponentl.m4.
40670
40671 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
40672
40673         mktime.c: normalize tp->tm_isdst value to -1/0/1.
40674         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
40675         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
40676         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
40677
40678         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
40679         readlink on platforms without PATH_MAX.
40680
40681 2008-07-21  Eric Blake  <ebb9@byu.net>
40682
40683         Warn, not fail, on stale version.
40684         * top/GNUmakefile (_curr-ver): Tone down previous patch.
40685
40686         Don't allow installation with stale devel version number.
40687         * top/GNUmakefile (_is-install-target): New macro.
40688         (_curr-ver): Forbid installation with stale version number.
40689
40690 2008-07-20  Bruno Haible  <bruno@clisp.org>
40691
40692         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
40693         TESTS_ENVIRONMENT.
40694         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
40695
40696 2008-07-20  Bruno Haible  <bruno@clisp.org>
40697
40698         * lib/c-stack.h (c_stack_action): Add documentation.
40699         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
40700
40701 2008-07-20  Bruno Haible  <bruno@clisp.org>
40702
40703         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
40704         * modules/readlink (License): Likewise.
40705
40706 2008-07-17  Eric Blake  <ebb9@byu.net>
40707
40708         * modules/c-stack (Link): Fix typo.
40709
40710         Make c-stack use libsigsegv, when available.
40711         * modules/c-stack (Depends-on): Add libsigsegv.
40712         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
40713         needed.
40714         * lib/c-stack.c (SIGSTKSZ): Define fallback.
40715         (segv_handler, overflow_handler, c_stack_action)
40716         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
40717         implementation when libsigsegv is available, but only when using
40718         the library is necessary.
40719         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
40720         comment, explaining why XSI check fails on Linux.
40721         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
40722         * tests/test-c-stack2.sh: Tweak skip message.
40723         * NEWS: Document new link-time requirements.
40724
40725 2008-07-16  Eric Blake  <ebb9@byu.net>
40726
40727         c-stack: Expose false positives when not using libsigsegv.
40728         * modules/c-stack-tests (Files): Expand test.
40729         * tests/test-c-stack.c (main): Add means to conditionally trigger
40730         non-overflow SIGSEGV.
40731         * tests/test-c-stack2.sh: New file.
40732
40733 2008-07-14  Bruno Haible  <bruno@clisp.org>
40734
40735         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
40736         Reported by Eric Blake.
40737
40738 2008-07-14  Sam Steingold  <sds@gnu.org>
40739             Bruno Haible  <bruno@clisp.org>
40740
40741         New module libsigsegv.
40742         * modules/libsigsegv: New file.
40743         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
40744         modifications.
40745         * MODULES.html.sh (Signal handling): New section.
40746
40747 2008-07-14  Bruno Haible  <bruno@clisp.org>
40748
40749         * modules/unictype/ctype-* (Description): Add the word "function".
40750         Improves the resulting doc in MODULES.html.
40751
40752 2008-07-12  Ben Pfaff  <blp@gnu.org>
40753
40754         Add longlong module.
40755         * modules/longlong: New file.
40756
40757 2008-07-12  Bruno Haible  <bruno@clisp.org>
40758
40759         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
40760         to empty.
40761
40762 2008-07-10  Ben Pfaff  <blp@gnu.org>
40763
40764         Add isnan module.
40765         * doc/posix-functions/isnan.texi: Mention new module.
40766         * lib/math.in.h: Define isnan macro if we have decided to replace
40767         it.
40768         * m4/isnan.m4: New file.
40769         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
40770         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
40771         also.
40772         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
40773         redundancy.
40774         * m4/math_h.m4: Initialize and substitute variables for isnan
40775         module.
40776         * modules/isnan: New file.
40777         * modules/isnan-tests: New file.
40778         * modules/math: Add substitutions for new module.
40779         * tests/test-isnan.c: New file.
40780         * MODULES.html.sh: Mention new module.
40781
40782 2008-07-10  Ben Pfaff  <blp@gnu.org>
40783
40784         Add isnanf module.
40785         * lib/isnanf.m4: New file.
40786         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
40787         (gl_HAVE_ISNANF_IN_LIBM): New macro.
40788         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
40789         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
40790         * modules/isnanf: New file.
40791         * modules/isnanf-tests: New file.
40792         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
40793         files.
40794         * tests/test-isnanf-nolibm.c: factored most of its contents into
40795         new file tests/test-isnanf.h.
40796         * tests/test-isnanf.h: New file.
40797         * tests/test-isnanf.c: New file.
40798         * MODULES.html.sh: Mention new module.
40799         * doc/glibc-functions/isnanf.texi: Mention new module.
40800
40801 2008-07-10  Ben Pfaff  <blp@gnu.org>
40802
40803         Add isnand module.
40804         * lib/isnand.h: New file.
40805         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
40806         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
40807         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
40808         functionality also.
40809         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
40810         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
40811         (gl_HAVE_ISNAND_IN_LIBM): New macro.
40812         * modules/isnand: New file.
40813         * modules/isnand-tests: New file.
40814         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
40815         files.
40816         * tests/test-isnand-nolibm.c: factored most of its contents into
40817         new file tests/test-isnand.h.
40818         * tests/test-isnand.h: New file.
40819         * tests/test-isnand.c: New file.
40820         * MODULES.html.sh: Mention new module.
40821
40822 2008-07-10  Ben Pfaff  <blp@gnu.org>
40823
40824         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
40825         * lib/isnand.h: Rename lib/isnand-nolibm.h.
40826         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
40827         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
40828         * modules/isnanf-nolibm: Update references to renamed files.
40829         * modules/isnand-nolibm: Likewise.
40830         * modules/isnanf-nolibm-tests: Likewise.
40831         * modules/isnand-nolibm-tests: Likewise.
40832         * lib/frexp.c: Likewise.
40833         * lib/isfinite.c: Likewise.
40834         * lib/signbitd.c: Likewise.
40835         * lib/signbitf.c: Likewise.
40836         * lib/vasnprintf.c: Likewise.
40837         * tests/test-ceilf1.c: Likewise.
40838         * tests/test-ceilf2.c: Likewise.
40839         * tests/test-floorf1.c: Likewise.
40840         * tests/test-floorf2.c: Likewise.
40841         * tests/test-frexp.c: Likewise.
40842         * tests/test-round1.c: Likewise.
40843         * tests/test-round2.c: Likewise.
40844         * tests/test-roundf1.c: Likewise.
40845         * tests/test-strtod.c: Likewise.
40846         * tests/test-trunc1.c: Likewise.
40847         * tests/test-trunc2.c: Likewise.
40848         * tests/test-truncf1.c: Likewise.
40849         * tests/test-truncf2.c: Likewise.
40850         * NEWS: Mention the renamed header files.
40851
40852 2008-07-11  Jim Meyering  <meyering@redhat.com>
40853
40854         vc-list-files: make the last-resort awk code more portable
40855         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
40856         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
40857         does not support it.
40858
40859 2008-07-10  Eric Blake  <ebb9@byu.net>
40860
40861         Work with tar's bootstrap.
40862         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
40863         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
40864         an m4 comment.
40865
40866 2008-07-09  Jim Meyering  <meyering@redhat.com>
40867
40868         posix-shell.m4: fix typo that made this test malfunction
40869         * m4/posix-shell.m4: Remove capitalization in variable name.
40870
40871 2008-07-08  Bruno Haible  <bruno@clisp.org>
40872
40873         * m4/onceonly.m4: Update comments.
40874         Reported by Ben Pfaff <blp@cs.stanford.edu>.
40875
40876 2008-07-04  Jim Meyering  <meyering@redhat.com>
40877
40878         * users.txt: Add vc-dwim.
40879         (bison, coreutils): Use the gitweb URL.
40880
40881 2008-07-03  Jim Meyering  <meyering@redhat.com>
40882
40883         * users.txt: Add libffcall.  From Sam Steingold.
40884
40885 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
40886
40887         getdate.y: do not ignore TZ with relative day, month or year offset
40888         * lib/getdate.y (get_date): Move the tz-handling block to follow the
40889         relative-date-handling, since otherwise, the latter would clobber the
40890         sole output (an updated Start value) of the tz-handling block.
40891         * tests/test-getdate.c: Tests for the fix
40892
40893 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40894
40895         Recognize 'foo_LIBRARIES += libgnu.a'.
40896         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
40897         makefile snippet has already specified an installation location,
40898         also using '+='.
40899
40900 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
40901
40902         getdate.y: factor out common actions
40903         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
40904         Use them in place of open-coded actions.
40905
40906 2008-07-01  Simon Josefsson  <simon@josefsson.org>
40907
40908         Add self-test for getdate module.
40909         * modules/getdate-tests: New file.
40910         * tests/test-getdate.c: New file.
40911
40912 2008-06-29  Bruno Haible  <bruno@clisp.org>
40913
40914         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
40915         .gitignore.
40916         Reported by Sylvain Beucler <beuc@beuc.net>.
40917
40918 2008-06-29  Bruno Haible  <bruno@clisp.org>
40919
40920         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
40921         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
40922
40923 2008-06-29  Bruno Haible  <bruno@clisp.org>
40924
40925         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
40926         EXTRA_DIST.
40927         Reported by Sylvain Beucler <beuc@beuc.net>.
40928
40929 2008-06-26  Jim Meyering  <meyering@redhat.com>
40930
40931         make several modules depend on the "open" module
40932         This provides slightly increased consistency when opening-for-write
40933         the name of a non-directory spelled with a trailing slash.
40934         * modules/chdir-safer: Likewise.
40935         * modules/chown: Likewise.
40936         * modules/clean-temp: Likewise.
40937         * modules/copy-file: Likewise.
40938         * modules/fchdir: Likewise.
40939         * modules/fcntl-safer: Likewise.
40940         * modules/pipe: Likewise.
40941         * modules/utime: Likewise.
40942         Prompted by Eric Blake and Bruno Haible.
40943
40944 2008-06-24  Andreas Schwab  <schwab@suse.de>
40945
40946         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
40947         literals can be used as initializers for global variables.
40948
40949 2008-06-23  Eric Blake  <ebb9@byu.net>
40950
40951         Make gnulib-cache.m4 easier to diff.
40952         * gnulib-tool (func_import): Allow newlines when reading cached
40953         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
40954
40955 2008-06-23  Bruno Haible  <bruno@clisp.org>
40956
40957         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
40958         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
40959         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
40960         m4/signalblocking.m4.
40961         (gl_PREREQ_SIGACTION): Don't invoke it.
40962         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
40963         gl_PREREQ_SIG_HANDLER_H.
40964         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
40965         Don't check for sigaction here.
40966
40967 2008-06-23  Bruno Haible  <bruno@clisp.org>
40968
40969         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
40970         (install_handlers): Don't set the SA_RESETHAND flag.
40971
40972 2008-06-23  Bruno Haible  <bruno@clisp.org>
40973
40974         * m4/sigaction.m4: Comment fixes.
40975         * lib/signal.in.h: Likewise.
40976
40977 2008-06-23  Eric Blake  <ebb9@byu.net>
40978
40979         Fix typo.
40980         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
40981
40982         Avoid SA_ namespace.
40983         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
40984         Reported by Ralf Wildenhues.
40985
40986         Avoid test failure due to SA_RESTORER.
40987         * tests/test-sigaction.c (SA_MASK): New macro.
40988         (main): Avoid failing due to extension flags being set.
40989         Reported by Jim Meyering.
40990
40991         Revert use of sig-handler.h in sigprocmask.c.
40992         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
40993         it requires the existence of struct sigaction.
40994         * lib/sigprocmask.c (handler_t): Restore typedef.
40995         (rpl_signal, old_handlers): Use local type.
40996
40997 2008-06-22  Bruno Haible  <bruno@clisp.org>
40998
40999         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
41000         conditionally.
41001         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41002
41003 2008-06-22  Bruno Haible  <bruno@clisp.org>
41004
41005         * doc/posix-functions/siginterrupt.texi: Move note.
41006
41007         * lib/signal.in.h (SA_RESTART): New macro.
41008         * lib/sigaction.c: Update comment.
41009
41010         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
41011
41012         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
41013         (gl_PREREQ_SIGPROCMASK): Invoke it.
41014         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
41015
41016         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
41017
41018         * lib/sigprocmask.c: Update a comment.
41019
41020 2008-06-21  Eric Blake  <ebb9@byu.net>
41021
41022         Use sigaction module rather than signal().
41023         * modules/c-stack (Depends-on): Add sigaction.
41024         * modules/fatal-signal (Depends-on): Likewise.
41025         * modules/nanosleep (Depends-on): Likewise.
41026         * modules/sigprocmask (Files): Add sig-handler.h.
41027         * modules/sigaction (Files): Likewise.
41028         * lib/sig-handler.h (get_handler): New file, suggested by Paul
41029         Eggert.
41030         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
41031         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
41032         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
41033         (init_fatal_signals): Likewise.
41034         * lib/nanosleep.c (rpl_nanosleep): Likewise.
41035         (siginterrupt): Delete fallback.
41036         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
41037         instead.
41038         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
41039         siginterrupt.
41040
41041         New module sigaction, for mingw.
41042         * modules/sigaction: New module...
41043         * modules/sigaction-tests: ...and its test.
41044         * m4/sigaction.m4: New file.
41045         * lib/sigaction.c: Likewise.
41046         * tests/test-sigaction.c: Likewise.
41047         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
41048         * modules/signal (Makefile.am): Likewise.
41049         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
41050         needed.
41051         * doc/posix-headers/signal.texi (signal.h): Mention provided
41052         types.
41053         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
41054         that sigaction is preferable.
41055         * doc/posix-functions/sigaction.texi (sigaction): Mention new
41056         module.
41057         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41058         sigaction.
41059
41060         Improve robustness of sigprocmask by overriding signal.
41061         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
41062         is in use.
41063         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
41064         (SIGKILL, SIGSTOP): Provide fallbacks.
41065         (rpl_signal): Implement.
41066         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
41067         signal can be called inside handlers.
41068
41069         Fix nanosleep module on mingw.
41070         * modules/nanosleep (Depends-on): Add sys_select.
41071         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
41072
41073         Fix licensing of sigprocmask.
41074         * modules/raise (License): Relicense as LGPL.
41075
41076 2008-06-21  Bruno Haible  <bruno@clisp.org>
41077
41078         * lib/propername.c (proper_name_utf8): Don't use the transliterated
41079         result if it contains question marks.
41080         Reported by Michael Geng <linux@michaelgeng.de>.
41081
41082 2008-06-19  Bruno Haible  <bruno@clisp.org>
41083
41084         Fix CVS-ism.
41085         * doc/gnulib.texi: Include updated-stamp.texi.
41086         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
41087         (updated-stamp.texi): New rule.
41088         (gnulib.info): Depend on it.
41089         * doc/.gitignore: Add updated-stamp.texi.
41090         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
41091
41092 2008-06-19  Bruno Haible  <bruno@clisp.org>
41093
41094         * doc/Makefile (gnulib.info): Update and simplify dependencies.
41095         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
41096
41097 2008-06-19  Eric Blake  <ebb9@byu.net>
41098
41099         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
41100         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
41101         Reported by Stepan Kasal.
41102
41103 2008-06-18  Bruno Haible  <bruno@clisp.org>
41104
41105         * lib/fatal-signal.c (init_fatal_signals): Add comment.
41106         Reported by Eric Blake.
41107
41108 2008-06-18  Eric Blake  <ebb9@byu.net>
41109
41110         Work around cygwin 1.5.25 strsignal bug.
41111         * tests/test-strsignal.c: Allow for const char *.
41112         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
41113
41114 2008-06-18  Simon Josefsson  <simon@josefsson.org>
41115
41116         * users.txt: Update URL to article and add author/date
41117         information.
41118
41119 2008-06-17  Bruno Haible  <bruno@clisp.org>
41120
41121         New macro gl_DISABLE_THREADS.
41122         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
41123         if the user did not pass --enable-threads or --disable-threads option.
41124         (gl_DISABLE_THREADS): New macro.
41125         Reported by Eric Blake <ebb9@byu.net>.
41126
41127 2008-06-17  Bruno Haible  <bruno@clisp.org>
41128
41129         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
41130         when the macro ignores it.
41131         Based on a patch by Eric Blake <ebb9@byu.net>.
41132
41133 2008-06-17  Bruno Haible  <bruno@clisp.org>
41134
41135         * modules/tls (License): Change to LGPLv2+.
41136         Reported by Eric Blake.
41137
41138 2008-06-17  Eric Blake  <ebb9@byu.net>
41139
41140         Simplify c-stack prerequisites.
41141         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
41142         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
41143         no longer requires <ucontext.h> to exist.  Optimize setrlimit
41144         check.
41145         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
41146         <sys/resource.h>.
41147
41148         Move c-stack test into testsuite.
41149         * modules/c-stack-tests: New file.
41150         * lib/c-stack.c [DEBUG]: Move test program...
41151         * tests/test-c-stack.c: ...into this new file.  Skip rather than
41152         fail test if sigaltstack is lacking.
41153         * tests/test-c-stack.sh: New driver file.
41154
41155 2008-06-16  Eric Blake  <ebb9@byu.net>
41156
41157         Use raise module consistently.
41158         * modules/fatal-signal (Depends-on): Add raise.
41159         * modules/sigprocmask (Depends-on): Likewise.
41160         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
41161         * lib/sigprocmask.c (sigprocmask): Likewise.
41162         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
41163         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
41164
41165         Fix compliance bug in sigpending.
41166         * lib/sigprocmask.c (sigpending): Return pending array via
41167         parameter, not return value.
41168
41169 2008-06-14  Eric Blake  <ebb9@byu.net>
41170
41171         Improve obstack-printf test code.
41172         * tests/test-obstack-printf.c (test_function): Fix comment, and
41173         simplify usage of obstack_* in macros.  Add a test for coverage.
41174         Reported by Bruno Haible.
41175
41176 2008-06-14  Bruno Haible  <bruno@clisp.org>
41177
41178         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
41179         array size as a constant, not as a const variable.
41180         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
41181         AC_USE_SYSTEM_EXTENSIONS.
41182         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
41183         Test whether the obstack_printf function actually exists.
41184         * modules/obstack-printf (Depends-on): Add extensions.
41185         (Include): Remove obstack.h.
41186         * modules/obstack-printf-posix (Depends-on): Add extensions.
41187         (Include): Remove obstack.h.
41188
41189 2008-06-13  Eric Blake  <ebb9@byu.net>
41190
41191         Add obstack-printf and obstack-printf-posix modules.
41192         * modules/obstack-printf: New file.
41193         * modules/obstack-printf-posix: Likewise.
41194         * MODULES.html.sh (Misc): Mention them.
41195         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
41196         Likewise.
41197         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
41198         Likewise.
41199         * modules/stdio (Makefile.am): Accomodate new modules.
41200         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41201         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
41202         Declare.
41203         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
41204         functions.
41205         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
41206         (gl_REPLACE_OBSTACK_PRINTF): New macros
41207         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
41208         * tests/test-obstack-printf.c: New file.
41209         * modules/obstack-printf-tests: Likewise.
41210         * modules/obstack-printf-posix-tests: Likewise.
41211
41212 2008-06-11  Bruno Haible  <bruno@clisp.org>
41213
41214         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
41215         * lib/open.c: Include errno.h.
41216         (open): Fail when attempting to write to a file that has a trailing
41217         slash.
41218         * tests/test-open.c (main): Test against trailing slash bug.
41219         * doc/posix-functions/open.texi: Mention the trailing slash bug.
41220
41221 2008-06-10  Bruno Haible  <bruno@clisp.org>
41222
41223         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
41224         for $? to work inside the trap command, with various /bin/sh-s.
41225         * tests/test-vc-list-files-cvs.sh: Likewise.
41226
41227 2008-06-10  Bruno Haible  <bruno@clisp.org>
41228
41229         * lib/acl-internal.h: Don't include gettext.h here.
41230         * lib/set-mode-acl.c: Include gettext.h here.
41231         * lib/copy-acl.c: Likewise.
41232
41233 2008-06-10  Bruno Haible  <bruno@clisp.org>
41234
41235         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
41236         * lib/wait-process.c (wait_subprocess): Likewise.
41237         * lib/execute.h (execute): Add termsigp argument.
41238         * lib/execute.c (execute): Likewise.
41239         * lib/csharpcomp.c (compile_csharp_using_pnet,
41240         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
41241         * lib/csharpexec.c (execute_csharp_using_pnet,
41242         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
41243         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
41244         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
41245         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
41246         is_jikes_present): Update.
41247         * lib/javaexec.c (execute_java_class): Update.
41248         * lib/javaversion.c (execute_and_read_line): Update.
41249         * NEWS: Document the changes.
41250         Reported by Eric Blake.
41251
41252 2008-06-10  Eric Blake  <ebb9@byu.net>
41253
41254         Add missing include.
41255         * tests/test-strstr.c (includes): Add <signal.h>.
41256         * tests/test-strcasestr.c (includes): Likewise.
41257         * tests/test-memmem.c (includes): Likewise.
41258
41259 2008-06-10  Bruno Haible  <bruno@clisp.org>
41260
41261         * lib/wait-process.c (wait_subprocess): Add an assertion.
41262
41263 2008-06-10  Bruno Haible  <bruno@clisp.org>
41264
41265         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
41266
41267 2008-06-10  Bruno Haible  <bruno@clisp.org>
41268
41269         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
41270         using alarm().
41271         * tests/test-strcasestr.c (main): Likewise.
41272         * tests/test-strstr.c (main): Likewise.
41273
41274 2008-06-09  Bruno Haible  <bruno@clisp.org>
41275
41276         Work around the Solaris 10 ACE ACLs ABI change.
41277         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
41278         declare if ACL_NO_TRIVIAL is present.
41279         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
41280         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
41281         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
41282         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
41283         define if ACL_NO_TRIVIAL is present.
41284         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
41285         and use the current ABI.
41286         (file_has_acl): Use same #if condition as elsewhere.
41287         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
41288         in use, and use the current ABI.
41289         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
41290         Reported by Jim Meyering.
41291
41292 2008-06-09  Eric Blake  <ebb9@byu.net>
41293
41294         Work around environments that (stupidly) ignore SIGALRM.
41295         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
41296         before using alarm().
41297         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
41298         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
41299         Reported by Ian Beckwith <ianb@erislabs.net>.
41300
41301         Produce autobuild blurb earlier in log.
41302         * modules/autobuild (configure.ac-early): Move AB_INIT here.
41303
41304 2008-06-09  Jim Meyering  <meyering@redhat.com>
41305         and OndÅ™ej Vašík  <ovasik@redhat.com>
41306
41307         utimens.c: correct kernel bug work-around
41308         OndÅ™ej Vašík found that the invalid return value of 280 indicates
41309         failure, not success, and the kernel bug we're trying to work
41310         around affects not just the utimensat call, but also the fallback
41311         futimens call.
41312         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
41313         not success.
41314         [HAVE_FUTIMENS]: Use the same work-around, here.
41315
41316 2008-06-09  Jim Meyering  <meyering@redhat.com>
41317
41318         add more guards around definition of ACE_-related code
41319         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
41320         ALLOW and ACE_OWNER are also defined.
41321
41322 2008-06-08  Bruno Haible  <bruno@clisp.org>
41323
41324         * lib/acl-internal.h: Add me as co-author.
41325         * lib/file-has-acl.c: Likewise.
41326         * lib/set-mode-acl.c: Likewise.
41327         * lib/copy-acl.c: Likewise.
41328
41329 2008-06-08  Bruno Haible  <bruno@clisp.org>
41330
41331         Add support for AIX ACLs.
41332         * lib/acl-internal.h (acl_nontrivial): New declaration.
41333         * lib/file-has-acl.c (acl_nontrivial): New function.
41334         (file_has_acl): Add implementation using AIX 4 ACL API.
41335         * lib/set-mode-acl.c (qset_acl): Likewise.
41336         * lib/copy-acl.c (qcopy_acl): Likewise.
41337
41338 2008-06-08  Bruno Haible  <bruno@clisp.org>
41339
41340         Add support for HP-UX ACLs.
41341         * lib/acl-internal.h (acl_nontrivial): New declaration.
41342         * lib/file-has-acl.c (acl_nontrivial): New function.
41343         (file_has_acl): Add implementation using HP-UX 11 ACL API.
41344         * lib/set-mode-acl.c (qset_acl): Likewise.
41345         * lib/copy-acl.c (qcopy_acl): Likewise.
41346
41347 2008-06-08  Bruno Haible  <bruno@clisp.org>
41348
41349         Add support for Cygwin ACLs.
41350         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
41351         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
41352         the chmod_or_fchmod call.
41353         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
41354
41355 2008-06-08  Bruno Haible  <bruno@clisp.org>
41356
41357         Fix bug with setuid modes in Solaris 10+ code.
41358         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
41359         succeeded, when the mode contains some special bits.
41360
41361 2008-06-08  Bruno Haible  <bruno@clisp.org>
41362
41363         Add support for Solaris 7..10 ACLs.
41364         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
41365         declarations.
41366         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
41367         functions.
41368         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
41369         * lib/set-mode-acl.c (qset_acl): Likewise.
41370         * lib/copy-acl.c (qcopy_acl): Likewise.
41371
41372 2008-06-08  Bruno Haible  <bruno@clisp.org>
41373
41374         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
41375         declaration.
41376         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
41377         (acl_access_nontrivial): Remove MacOS X case.
41378         (file_has_acl): Use acl_extended_nontrivial.
41379         * lib/copy-acl.c (qcopy_acl): Likewise.
41380
41381 2008-06-08  Bruno Haible  <bruno@clisp.org>
41382
41383         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
41384
41385 2008-06-08  Jim Meyering  <meyering@redhat.com>
41386
41387         * modules/acl (Maintainer): Add Bruno Haible.
41388
41389 2008-06-07  Bruno Haible  <bruno@clisp.org>
41390
41391         Improve support for Tru64 ACLs.
41392         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
41393         ACL on OSF/1.
41394
41395 2008-06-07  Bruno Haible  <bruno@clisp.org>
41396
41397         Add support for MacOS X ACLs.
41398         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
41399         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
41400         * lib/set-mode-acl.c (qset_acl): Likewise.
41401         * lib/copy-acl.c (qcopy_acl): Likewise.
41402
41403 2008-06-07  Bruno Haible  <bruno@clisp.org>
41404
41405         Fix memory leak introduced on 2008-05-22.
41406         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
41407         use.
41408
41409 2008-06-07  Bruno Haible  <bruno@clisp.org>
41410
41411         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
41412         to construct an empty ACL.
41413
41414 2008-06-07  Bruno Haible  <bruno@clisp.org>
41415
41416         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
41417         precisely.
41418         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
41419
41420 2008-06-07  Bruno Haible  <bruno@clisp.org>
41421
41422         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
41423         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
41424
41425 2008-06-07  Bruno Haible  <bruno@clisp.org>
41426
41427         * doc/posix-functions/_setjmp.texi: Explain the use of this function
41428         regardless of POSIX.
41429         * doc/posix-functions/_longjmp.texi: Likewise.
41430         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
41431         SystemV platform in this case.
41432
41433 2008-06-06  Eric Blake  <ebb9@byu.net>
41434
41435         Document abort() bugs.
41436         * doc/posix-functions/abort.texi (abort): Mention anomalies.
41437
41438         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
41439         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
41440         sigsetjmp.
41441         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
41442         siglongjmp, but only as a macro.
41443         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
41444         is obsolete.
41445         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
41446
41447         Tweak documentation to cover cygwin argz bugs.
41448         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
41449         argz bug fix; no code change needed since no cygwin releases
41450         occurred between the last fix and the bug being tested.
41451         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
41452         module and recently fixed cygwin bugs.
41453         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
41454         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
41455         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
41456         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
41457         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
41458         Likewise.
41459         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
41460         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
41461         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
41462         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
41463         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
41464         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
41465         Likewise.
41466
41467         Avoid gcc warning on cygwin.
41468         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
41469         !ACL_NO_TRIVIAL]: Avoid unused variable.
41470
41471 2008-06-05  Eric Blake  <ebb9@byu.net>
41472
41473         Be tolerant of UNKNOWN version in gnulib-tool test dir.
41474         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
41475         git-version-gen fails to come up with a version.
41476         Reported by Simon Josefsson.
41477
41478 2008-06-05  Jim Meyering  <meyering@redhat.com>
41479             Paul Eggert  <eggert@cs.ucla.edu>
41480
41481         utimens.c: work around a probable Linux kernel bug
41482         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
41483         appears to be a kernel bug that causes utimensat to return 280
41484         instead of 0, indicating success.
41485
41486 2008-06-04  Bruno Haible  <bruno@clisp.org>
41487
41488         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
41489         2008-06-01 commit.
41490
41491 2008-06-04  Bruno Haible  <bruno@clisp.org>
41492
41493         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
41494         * lib/file-has-acl.c (acl_access_nontrivial): New function.
41495         (file_has_acl): Use it. Save errno afterwards.
41496         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
41497
41498 2008-06-03  Bruno Haible  <bruno@clisp.org>
41499
41500         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
41501         draft code. Simplify #ifs.
41502         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
41503         Put Solaris code after POSIX-draft code. Fix comments regarding
41504         Solaris 10, HP-UX. Mention Cygwin.
41505         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
41506
41507 2008-06-03  Eric Blake  <ebb9@byu.net>
41508
41509         Provide fallback for older kernels.
41510         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
41511         Provide runtime fallback if kernel lacks support.
41512         Reported by Mike Frysinger.
41513
41514 2008-06-02  Bruno Haible  <bruno@clisp.org>
41515
41516         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
41517         it exists.
41518
41519 2008-06-02  Bruno Haible  <bruno@clisp.org>
41520
41521         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
41522         * lib/copy-acl.c (qcopy_acl): Update comment.
41523
41524 2008-06-02  Bruno Haible  <bruno@clisp.org>
41525
41526         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
41527         like ACL APIs.
41528
41529 2008-06-02  Bruno Haible  <bruno@clisp.org>
41530
41531         * tests/test-file-has-acl.sh: Use different code for Cygwin.
41532         * tests/test-set-mode-acl.sh: Likewise.
41533         * tests/test-copy-acl.sh: Likewise.
41534         * tests/test-copy-file.sh: Likewise.
41535
41536 2008-06-02  Bruno Haible  <bruno@clisp.org>
41537
41538         * tests/test-file-has-acl.sh: Remove unused code.
41539
41540 2008-06-01  Bruno Haible  <bruno@clisp.org>
41541
41542         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
41543         (copy_acl): Just a wrapper around qcopy_acl that emits the error
41544         messages.
41545         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
41546
41547 2008-06-01  Bruno Haible  <bruno@clisp.org>
41548
41549         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
41550         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
41551         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
41552         APIs.
41553         * modules/acl-tests (configure.ac): Remove tests now contained in
41554         m4/acl.m4.
41555
41556 2008-06-02  Jim Meyering  <meyering@redhat.com>
41557
41558         announce-gen: use a better key-server host name
41559         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
41560         it may be more consistently reliable.  Suggested by Werner Koch
41561         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
41562
41563 2008-06-01  Bruno Haible  <bruno@clisp.org>
41564
41565         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
41566         Reported by Voroskoi Andras <voroskoi@gmail.com>.
41567
41568 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
41569
41570         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
41571
41572 2008-06-01  Bruno Haible  <bruno@clisp.org>
41573
41574         New ACL tests.
41575         * tests/test-file-has-acl.sh: New file.
41576         * tests/test-file-has-acl.c: New file.
41577         * tests/test-set-mode-acl.sh: New file.
41578         * tests/test-set-mode-acl.c: New file.
41579         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
41580         * tests/test-copy-acl.c: New file.
41581         * modules/acl-tests: New file, based on modules/copy-file-tests.
41582         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
41583         (Depends-on): Add acl-tests.
41584         (configure.ac): Remove checks.
41585         (Makefile.am): Don't create test-sameacls program here any more.
41586
41587 2008-06-01  Bruno Haible  <bruno@clisp.org>
41588
41589         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
41590         * tests/test-sameacls.c: Include progname.h.
41591         (main): Invoke set_program_name. Portability fixes for MacOS X,
41592         Solaris, HP-UX.
41593
41594 2008-06-01  Bruno Haible  <bruno@clisp.org>
41595
41596         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
41597         function.
41598         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
41599
41600 2008-06-01  Bruno Haible  <bruno@clisp.org>
41601
41602         * modules/rpmatch (Depends-on): Add strdup.
41603
41604 2008-06-01  Bruno Haible  <bruno@clisp.org>
41605
41606         * lib/pipe.c: Include unistd-safer.h.
41607         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
41608         * modules/pipe (Depends-on): Add unistd-safer.
41609
41610 2008-05-30  Simon Josefsson  <simon@josefsson.org>
41611
41612         * modules/autobuild (configure.ac): Call AB_INIT.
41613
41614 2008-05-30  Simon Josefsson  <simon@josefsson.org>
41615
41616         * tests/test-getaddrinfo.c: Don't print debug messages by default.
41617         Suggested by Bruno Haible <bruno@clisp.org>.
41618
41619 2008-05-30  Simon Josefsson  <simon@josefsson.org>
41620
41621         * tests/test-base64.c: Cast size_t to unsigned long when invoking
41622         printf.  Use %lu instead of %d.  Reported by Bruno Haible
41623         <bruno@clisp.org>.
41624
41625 2008-05-29  Eric Blake  <ebb9@byu.net>
41626
41627         Prefer new POSIX 200x interfaces over futimesat.
41628         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
41629         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
41630         when available.
41631         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
41632
41633 2008-05-28  Bruno Haible  <bruno@clisp.org>
41634
41635         * modules/stpcpy (License): Change to LGPLv2+.
41636         Requested by David Lutterkort <dlutter@redhat.com>.
41637
41638 2008-05-27  Bruno Haible  <bruno@clisp.org>
41639
41640         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
41641         current mingw.
41642         Reported by Jose E. Marchesi <jemarch@gnu.org>.
41643
41644 2008-05-27  Bruno Haible  <bruno@clisp.org>
41645
41646         * modules/iconv_open (Link): New section, from module 'iconv'.
41647         * modules/striconv (Link): Likewise.
41648         * modules/striconveh (Link): Likewise.
41649         * modules/xstriconv (Link): Likewise.
41650         * modules/unicodeio (Link): Likewise.
41651         * modules/propername (Link): Likewise.
41652         Reported by Jim Meyering.
41653
41654 2008-05-26  Jim Meyering  <meyering@redhat.com>
41655
41656         sha256: do not artificially restrict buffer length to be < 2^32
41657         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
41658         uint32_t to size_t.
41659         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
41660         to match.
41661
41662         avoid unaligned access errors, e.g., on sparc
41663         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
41664         direct access through a possibly-unaligned uint64* pointer.
41665         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
41666         direct access through a possibly-unaligned uint32* pointer.
41667         Prompted by this patch from Tom "spot" Callaway:
41668         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
41669
41670         sha512.c: fix typo in comment
41671         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
41672
41673 2008-05-25  Bruno Haible  <bruno@clisp.org>
41674
41675         * lib/set-mode-acl.c: Renamed from lib/acl.c.
41676         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
41677         (Makefile.am): Update lib_SOURCES.
41678
41679 2008-05-25  Bruno Haible  <bruno@clisp.org>
41680
41681         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
41682
41683 2008-05-25  Jim Meyering  <meyering@redhat.com>
41684
41685         useless-if-before-free: freed expr may have white-space differences
41686         * build-aux/useless-if-before-free: Recognize cases in which the
41687         freed expression differs from the tested one in embedded white
41688         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
41689         $1 was used, so we can't make any regexp shy.  Improved tests now
41690         detect this.
41691
41692         useless-if-before-free: accept white space in the expression.
41693         * build-aux/useless-if-before-free: For now, any white space
41694         in the expression must be identical in the free argument.
41695
41696         useless-if-before-free: efficiency tweak
41697         * build-aux/useless-if-before-free: Make the expression-matching
41698         regexp "shy".
41699         Make the *outer* regexp shy, not the expr-matching one.
41700
41701         update code-in-comment to accept cast of free arg
41702         * build-aux/useless-if-before-free: Update regexp.
41703
41704 2008-05-25  Bruno Haible  <bruno@clisp.org>
41705
41706         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
41707         * modules/copy-file-tests (Files, Makefile.am): Update.
41708         * tests/test-copy-file.c (func_test_copy): Update.
41709
41710 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
41711
41712         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
41713
41714 2008-05-23  Bruno Haible  <bruno@clisp.org>
41715
41716         Improve support for ACLs on OSF/1.
41717         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
41718         Remove fallback for unknown flavors of ACLs.
41719
41720 2008-05-22  Bruno Haible  <bruno@clisp.org>
41721
41722         Add support for ACLs on OSF/1.
41723         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
41724         replacements.
41725         (acl_free_text): New macro fallback.
41726         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
41727         acl_free.
41728         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
41729         acl_free_text function. Require AC_C_INLINE.
41730
41731 2008-05-22  Bruno Haible  <bruno@clisp.org>
41732
41733         Make copy_acl work on MacOS X 10.5.
41734         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
41735         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
41736         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
41737         If MODE_INSIDE_ACL, don't assume that every system has the same text
41738         representation for ACLs as FreeBSD.
41739         * lib/copy-acl.c (copy_acl): Add support for platforms with
41740         !MODE_INSIDE_ACL.
41741         * lib/file-has-acl.c (file_has_acl): Likewise.
41742         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
41743         FreeBSD, MacOS X, or IRIX, respectively.
41744
41745 2008-05-22  Bruno Haible  <bruno@clisp.org>
41746
41747         * lib/acl.h: Don't include <sys/acl.h>.
41748         (GETACLCNT): Move fallback to lib/acl-internal.h.
41749         * lib/acl-internal.h: Include <sys/acl.h> here.
41750         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
41751
41752 2008-05-22  Bruno Haible  <bruno@clisp.org>
41753
41754         Split off copy_acl function to separate file.
41755         * lib/copy-acl.c: New file, extracted from lib/acl.c.
41756         * lib/acl.c (copy_acl): Moved function to separate file.
41757         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
41758         * modules/acl (Files): Add lib/copy-acl.c.
41759         (Makefiles.am): Augment lib_SOURCES.
41760
41761 2008-05-22  Bruno Haible  <bruno@clisp.org>
41762
41763         * modules/copy-file-tests: New file.
41764         * tests/test-copy-file.sh: New file.
41765         * tests/test-copy-file.c: New file.
41766         * tests/test-copy-file-sameacls.c: New file.
41767
41768 2008-05-22  Eric Blake  <ebb9@byu.net>
41769
41770         Avoid gcc warning.
41771         * tests/test-memcmp.c (main): Pass NULL indirectly.
41772
41773 2008-05-21  Bruno Haible  <bruno@clisp.org>
41774
41775         Add reference doc about ACLs.
41776         * doc/acl-resources.txt: New file.
41777         * doc/acl-cygwin.txt: New file.
41778
41779 2008-05-21  Bruno Haible  <bruno@clisp.org>
41780
41781         Avoid one more warning from gcc.
41782         * lib/vasnprintf.c (IF_LINT): Update comments.
41783         (VASNPRINTF): Use it also for the 'prefix' array initializer.
41784
41785 2008-05-21  Jim Meyering  <meyering@redhat.com>
41786
41787         avoid a warning from gcc
41788         * lib/vasnprintf.c (IF_LINT): Define.
41789         (scale10_round_decimal_long_double):
41790         Use it to avoid a "may be used uninitialized" warning.
41791         (scale10_round_decimal_double): Likewise.
41792
41793 2008-05-21  Simon Josefsson  <simon@josefsson.org>
41794
41795         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
41796         declared.
41797
41798 2008-05-20  Bruno Haible  <bruno@clisp.org>
41799
41800         * tests/test-memcmp.c (main): Test also the sign of the result. Test
41801         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
41802
41803 2008-05-20  Simon Josefsson  <simon@josefsson.org>
41804
41805         * modules/memcmp-tests: New file.
41806         * tests/test-memcmp.c: New file.
41807
41808 2008-05-19  Bruno Haible  <bruno@clisp.org>
41809
41810         * modules/propername (Notice, configure.ac): Put quoted "..." into
41811         --keyword option.
41812         * lib/propername.h: Update comments accordingly.
41813         Reported by Eric Blake.
41814
41815 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
41816
41817         * modules/getpass-gnu (Depends-on): Add fseeko.
41818
41819 2008-05-19  Simon Josefsson  <simon@josefsson.org>
41820
41821         * modules/base64-tests: New file.
41822
41823 2008-05-19  Bo Borgerson <gigabo@gmail.com>
41824
41825         * lib/base64.c (base64_decode_ctx): If a decode context structure
41826         was passed in use it to ignore newlines.  If a context structure
41827         was _not_ passed in, continue to treat newlines as garbage (this
41828         is the historical behavior).  Formerly base64_decode.
41829         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
41830         takes a decode context structure.
41831         * lib/base64.h (base64_decode): Macro for four-argument calls.
41832         (base64_decode_alloc): Likewise.
41833         * lib/base64.c (base64_decode_ctx): If a decode context structure
41834         was passed in use it to ignore newlines.  If a context structure
41835         was _not_ passed in, continue to treat newlines as garbage (this
41836         is the historical behavior).  Formerly base64_decode.
41837         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
41838         takes a decode context structure.
41839         * lib/base64.h (base64_decode): Macro for four-argument calls.
41840         (base64_decode_alloc): Likewise.
41841
41842 2008-05-19  Jim Meyering  <meyering@redhat.com>
41843
41844         avoid a warning from gcc
41845         * lib/trim.c (IF_LINT): Define.
41846         (trim2): Use it to avoid a "may be used uninitialized" warning.
41847
41848         Fix doc typo.
41849         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
41850
41851 2008-05-19  Bruno Haible  <bruno@clisp.org>
41852
41853         * doc/glibc-functions/getpass.texi: Document limits of other
41854         implementations.
41855
41856 2008-05-19  Simon Josefsson  <simon@josefsson.org>
41857             Bruno Haible <bruno@clisp.org>
41858
41859         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
41860
41861 2008-05-18  Bruno Haible  <bruno@clisp.org>
41862
41863         * modules/propername: New file, from GNU gettext.
41864         * lib/propername.h: New file, from GNU gettext.
41865         * lib/propername.c: New file, from GNU gettext.
41866         * MODULES.html.sh (Internationalization functions): Add propername.
41867
41868 2008-05-16  Jim Meyering  <meyering@redhat.com>
41869             Bruno Haible  <bruno@clisp.org>
41870
41871         Avoid some warnings from "gcc -Wshadow".
41872         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
41873
41874 2008-05-15  Eric Blake  <ebb9@byu.net>
41875
41876         Extend previous patch to cygwin 1.7.0.
41877         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
41878         fast implementation in cygwin >= 1.7.0.
41879         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
41880         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
41881
41882 2008-05-15  Bruno Haible  <bruno@clisp.org>
41883
41884         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
41885         implementation in glibc >= 2.9.
41886         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
41887         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
41888
41889 2008-05-15  Bruno Haible  <bruno@clisp.org>
41890
41891         * MODULES.html.sh (Internationalization functions): Remove linebreak.
41892         (Unicode string functions): Add unilbrk/*.
41893         Reported by Karl Berry.
41894
41895 2008-05-15  Eric Blake  <ebb9@byu.net>
41896
41897         Fix violation of <stdbool.h> replacement in regex.
41898         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
41899         * lib/regexec.c (re_search_internal): Likewise.
41900         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
41901
41902 2008-05-15  Jim Meyering  <meyering@redhat.com>
41903
41904         avoid distracting test output when git or cvs is not found
41905         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
41906         * tests/test-vc-list-files-git.sh: Likewise.
41907
41908 2008-05-15  Eric Blake  <ebb9@byu.net>
41909
41910         Glibc finally accepted the memmem speedup code, bugzilla #5514.
41911         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
41912         glibc version.
41913         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
41914         * doc/posix-functions/strstr.texi (strstr): Likewise.
41915         * lib/str-two-way.h (MAX): Sychronize with glibc.
41916
41917 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
41918
41919         * lib/regcomp.c (optimize_utf8): Add a note on why we test
41920         opr.ctx_type.
41921         (calc_first): Initialize constraint field.
41922         (duplicate_node_closure): Use it instead of special casing ANCHORS.
41923         Fix grammar.
41924         (duplicate_node): Merge constraint field for all node types.
41925         (calc_eclosure_iter): Look at constraint field for all node types.
41926         * lib/regex_internal.c (create_cd_newstate): Don't look at
41927         opr.ctx_type.
41928
41929 2008-05-14  Bruno Haible  <bruno@clisp.org>
41930
41931         Help GCC to do better code generation.
41932         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
41933         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
41934         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
41935         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
41936         Declare with attribute 'malloc' if supported.
41937
41938 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
41939
41940         use "echo STR|wc -c" rather than unportable "expr length STR"
41941         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
41942         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
41943
41944 2008-05-14  Jim Meyering  <meyering@redhat.com>
41945
41946         use dd ibs=$n count=1 ... rather than less-portable head -c$n
41947         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
41948         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
41949         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
41950         via Collin Lasse.
41951
41952 2008-05-14  Eric Blake  <ebb9@byu.net>
41953
41954         Avoid quadratic growth in gl_LIBSOURCES.
41955         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
41956         Suggested by Bruno Haible.
41957
41958         Test xmemdup0.
41959         * modules/xmemdup0-tests: New file.
41960         * tests/test-xmemdup0.c: Likewise.
41961
41962 2008-05-13  Eric Blake  <ebb9@byu.net>
41963
41964         Split xmemdup0 into its own module.
41965         * modules/xmemdup0: New file.
41966         * lib/xmemdup0.h: Likewise.
41967         * lib/xmemdup0.c: Likewise.
41968         * MODULES.html.sh (Memory management functions): Add xmemdup0.
41969         * lib/xalloc.h (xmemdup0): Remove.
41970         * lib/xmalloc.c (xmemdup0): Likewise.
41971
41972 2008-05-13  Eric Blake  <ebb9@byu.net>
41973             Bruno Haible  <bruno@clisp.org>
41974
41975         Reduce number of forks required during autoconf.
41976         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
41977         and gl_LIBSOURCES_DIR.
41978         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
41979         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
41980         m4_syscmd per file.
41981         <m4_foreach_w>: Move...
41982         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
41983
41984 2008-05-13  Eric Blake  <ebb9@byu.net>
41985
41986         * gnulib-tool: Fix various comment typos.
41987
41988 2008-05-12  Bruno Haible  <bruno@clisp.org>
41989
41990         Tailor the linebreaking algorithm.
41991         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
41992
41993 2008-05-12  Bruno Haible  <bruno@clisp.org>
41994
41995         Update to Unicode 5.0.0.
41996         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
41997         LBP_JV, LBP_JT. Redistribute values.
41998         (unilbrk_table): Change size.
41999         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
42000         Unicode TR#14 rev. 22.
42001         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
42002         LBP_JV, LBP_JT. Redistribute values.
42003         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
42004         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
42005         Update.
42006         * lib/unilbrk/lbrkprop1.h: Regenerated.
42007         * lib/unilbrk/lbrkprop2.h: Regenerated.
42008         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
42009         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
42010         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
42011         Likewise.
42012         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
42013         Likewise.
42014         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
42015         result.
42016         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
42017         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
42018         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
42019         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
42020         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
42021         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
42022
42023 2008-05-11  Bruno Haible  <bruno@clisp.org>
42024
42025         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
42026
42027 2008-05-11  Bruno Haible  <bruno@clisp.org>
42028
42029         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
42030         * modules/unilbrk/gen-lbrk: New file.
42031
42032 2008-05-11  Bruno Haible  <bruno@clisp.org>
42033
42034         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
42035         * m4/sha512.m4 (gl_SHA512): Likewise.
42036
42037 2008-05-11  Jim Meyering  <meyering@redhat.com>
42038
42039         New modules: crypto/sha256, crypto/sha512 (from coreutils)
42040         * modules/crypto/sha256: New file.
42041         * modules/crypto/sha512: Likewise.
42042         * lib/sha256.c: Likewise.
42043         * lib/sha256.h: Likewise.
42044         * lib/sha512.c: Likewise.
42045         * lib/sha512.h: Likewise.
42046         * lib/u64.h: Likewise.
42047         * m4/sha256.m4: Likewise.
42048         * m4/sha512.m4: Likewise.
42049         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
42050
42051 2008-05-10  Bruno Haible  <bruno@clisp.org>
42052
42053         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
42054         (Input/Output <stdio.h>): Add xprintf.
42055         (Signal handling <signal.h>): Add strsignal.
42056         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
42057         (Core language properties): Add func.
42058         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
42059         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
42060         strings.
42061         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
42062         (Input/output): New section.
42063         (File system functions): Add openat-die, stat-macros.
42064         (Networking functions): Add sockets.
42065         (Unicode string functions): Add unictype/*.
42066         (Support for building libraries and executables): Add gperf.
42067         (Support for building documentation): Add agpl-3.0.
42068         (Misc): Add nocrash.
42069
42070 2008-05-10  Bruno Haible  <bruno@clisp.org>
42071
42072         * modules/unictype/gen-ctype: New file.
42073
42074 2008-05-10  Jim Meyering  <meyering@redhat.com>
42075
42076         Make chdir-safer.c more efficient on a system with no symlinks.
42077         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
42078         also if ELOOP is zero.  Suggested by Bruno Haible.
42079
42080         Make chdir-safer.c slightly safer.
42081         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
42082         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
42083
42084         Avoid compile failure on systems without ELOOP (like mingw).
42085         * lib/chdir-safer.c (ELOOP): Define if not already defined.
42086         Reported by Bruno Haible.
42087
42088 2008-05-10  Bruno Haible  <bruno@clisp.org>
42089
42090         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
42091         (is_utf8_encoding): Use a case-insensitive comparison.
42092         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
42093         streq.
42094
42095 2008-05-10  Bruno Haible  <bruno@clisp.org>
42096
42097         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
42098         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
42099         * lib/unilbrk/ulc-common.h (iconv_string_length,
42100         iconv_string_keeping_offsets): Remove declarations.
42101         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
42102         Don't include <iconv.h>, streq.h, xsize.h.
42103         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
42104         conversion.
42105         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
42106         <iconv.h>, streq.h, xsize.h.
42107         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
42108         conversion.
42109         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
42110         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
42111         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
42112         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
42113
42114 2008-05-10  Bruno Haible  <bruno@clisp.org>
42115
42116         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
42117         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
42118
42119         * modules/unilbrk/u32-width-linebreaks-tests: New file.
42120         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
42121
42122         * modules/unilbrk/u16-width-linebreaks-tests: New file.
42123         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
42124
42125         * modules/unilbrk/u8-width-linebreaks-tests: New file.
42126         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
42127
42128         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
42129         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
42130
42131         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
42132         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
42133
42134         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
42135         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
42136
42137         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
42138         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
42139
42140 2008-05-10  Bruno Haible  <bruno@clisp.org>
42141
42142         Split up 'linebreak' module.
42143         * lib/unilbrk.h: New file, based on lib/linebreak.h.
42144         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
42145         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
42146         modifications.
42147         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
42148         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
42149         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
42150         lib/linebreak.c.
42151         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
42152         lib/linebreak.c.
42153         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
42154         lib/linebreak.c.
42155         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
42156         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
42157         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
42158         lib/linebreak.c.
42159         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
42160         lib/linebreak.c.
42161         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
42162         lib/linebreak.c.
42163         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
42164         lib/linebreak.c.
42165         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
42166         lib/linebreak.c.
42167         * modules/unilbrk/base: New file.
42168         * modules/unilbrk/tables: New file.
42169         * modules/unilbrk/u8-possible-linebreaks: New file.
42170         * modules/unilbrk/u16-possible-linebreaks: New file.
42171         * modules/unilbrk/u32-possible-linebreaks: New file.
42172         * modules/unilbrk/ulc-common: New file.
42173         * modules/unilbrk/ulc-possible-linebreaks: New file.
42174         * modules/unilbrk/u8-width-linebreaks: New file.
42175         * modules/unilbrk/u16-width-linebreaks: New file.
42176         * modules/unilbrk/u32-width-linebreaks: New file.
42177         * modules/unilbrk/ulc-width-linebreaks: New file.
42178         * lib/linebreak.h: Remove file.
42179         * lib/linebreak.c: Remove file.
42180         * m4/linebreak.m4: Remove file.
42181         * modules/linebreak: Remove file.
42182         * NEWS: Mention the changes.
42183
42184 2008-05-09  Eric Blake  <ebb9@byu.net>
42185
42186         Add xmemdup0.
42187         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
42188         implementation.
42189         * lib/xmalloc.c (xmemdup0): New C implementation.
42190
42191 2008-05-08  Bruno Haible  <bruno@clisp.org>
42192
42193         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
42194
42195 2008-05-07  Eric Blake  <ebb9@byu.net>
42196
42197         Support cross-compilation of <wctype.h>.
42198         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
42199         AC_CACHE_CHECK.
42200
42201 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
42202
42203         * build-aux/vc-list-files: Add support for bzr.
42204
42205 2008-05-03  Jim Meyering  <meyering@redhat.com>
42206
42207         avoid failed assertion with tight malloc
42208         * tests/test-getndelim2.c: Correct an off-by-one assertion.
42209
42210 2008-05-03  Simon Josefsson  <simon@josefsson.org>
42211
42212         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
42213         are needed from arpa/inet.h.
42214         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
42215         Reported by Bruno Haible.
42216
42217 2008-05-02  Jim Meyering  <meyering@redhat.com>
42218
42219         avoid compilation error on FreeBSD 6
42220         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
42221
42222 2008-05-01  Jim Meyering  <meyering@redhat.com>
42223
42224         useless-if-before-free: correct --help's exit status description
42225         * build-aux/useless-if-before-free (usage): Like grep, exit 0
42226         for one or more matches, etc.  Reported by Bruno Haible.
42227
42228         vc-list-files: make the stand-alone gnulib test work
42229         * modules/vc-list-files-tests (configure.ac):
42230         Define and AC_SUBST abs_aux_dir.
42231         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
42232         $(abs_top_srcdir) to each script and having each of them
42233         duplicate the work of setting PATH, set PATH here, using
42234         the new variable, abs_aux_dir instead.
42235         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
42236         * tests/test-vc-list-files-git.sh: Likewise.
42237         Reported by Bruno Haible.
42238
42239 2008-05-01  Bruno Haible  <bruno@clisp.org>
42240
42241         * lib/getndelim2.c (getndelim2): Fix newsize computation during
42242         reallocation. Rename 'done' to 'found_delimiter'.
42243
42244 2008-05-01  Jim Meyering  <meyering@redhat.com>
42245
42246         vc-list-files: accommodate /bin/sh like the one from Solaris 10
42247         * build-aux/vc-list-files: Use `...`, not $(...).
42248
42249 2008-04-30  Jim Meyering  <meyering@redhat.com>
42250
42251         add tests for vc-list-files
42252         * modules/vc-list-files-tests: New module.
42253         * tests/test-vc-list-files-cvs.sh: New file.
42254         * tests/test-vc-list-files-git.sh: New file.
42255
42256         avoid a warning from gcc
42257         * lib/getndelim2.c (IF_LINT): Define.
42258         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
42259
42260         vc-list-files: work properly with build-aux/cvsu, too
42261         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
42262         to all cvs-based clauses.
42263
42264         vc-list-files: work properly in the CVS+awk case, too
42265         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
42266
42267         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
42268         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
42269         take more than one file argument, so .  Add quotes, just in case $dir
42270         ever contains a shell meta-character.  Prompted by Soren Hansen in
42271         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
42272
42273 2008-04-29  Eric Blake  <ebb9@byu.net>
42274
42275         Optimize getndelim2 to use block operations when possible.
42276         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
42277         freadseek, and memchr2.
42278         * lib/getndelim2.c (getndelim2): Use them for block reads.
42279
42280 2008-04-29  Bruno Haible  <bruno@clisp.org>
42281
42282         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
42283         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42284         * modules/inet_ntop (Depends-on): Add extensions.
42285         * modules/inet_pton (Depends-on): Likewise.
42286         Reported by Simon Josefsson.
42287
42288 2008-04-29  Jim Meyering  <meyering@redhat.com>
42289
42290         When the is more than one match in a block, match all of them.
42291         * build-aux/useless-if-before-free: Iterate through each block
42292         until there are no more matches.
42293
42294         Fix broken useless-if-before-free script.
42295         * build-aux/useless-if-before-free: Fix typo: missing "?" after
42296         the expression to match cast of argument to free-like function.
42297
42298 2008-04-29  Eric Blake  <ebb9@byu.net>
42299
42300         Use new header.
42301         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
42302
42303 2008-04-29  Jim Meyering  <meyering@redhat.com>
42304
42305         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
42306         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
42307         by gnulib to exist and to declare e.g., inet_ntop.
42308         Don't include "inet_ntop.h", now removed.
42309
42310         * m4/arpa_inet_h.m4: Remove trailing blanks.
42311
42312 2008-04-29  Eric Blake  <ebb9@byu.net>
42313
42314         Silence valgrind on safe reads beyond potential array bounds.
42315         * lib/rawmemchr.valgrind: New file.
42316         * lib/strchrnul.valgrind: Likewise.
42317         * modules/rawmemchr (Files): Distribute new file.
42318         * modules/strchrnul (Files): Likewise.
42319         Suggested by Bruno Haible.
42320
42321 2008-04-29  Bruno Haible  <bruno@clisp.org>
42322
42323         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
42324         (inet_ntop, inet_pton): Change portability warning's wording.
42325         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
42326         Invoke gl_CHECK_NEXT_HEADERS.
42327         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
42328         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
42329         set ARPA_INET_H.
42330         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42331         * modules/arpa_inet (Description): No longer only for systems that
42332         lack it.
42333         (Depends-on): Add include_next.
42334         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
42335         HAVE_ARPA_INET_H.
42336
42337 2008-04-29  Jim Meyering  <meyering@redhat.com>
42338
42339         * modules/mkdir (License): Re-license as LGPLv2+.
42340
42341 2008-04-29  Bruno Haible  <bruno@clisp.org>
42342
42343         * modules/rawmemchr (Maintainer): Set to Eric.
42344         * modules/strchrnul (Maintainer): Likewise.
42345
42346 2008-04-29  Simon Josefsson  <simon@josefsson.org>
42347
42348         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
42349         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
42350
42351         * modules/arpa_inet (arpa/inet.h): Use them.
42352
42353 2008-04-28  Eric Blake  <ebb9@byu.net>
42354
42355         Test getndelim2.
42356         * modules/getndelim2-tests: New file.
42357         * tests/test-getndelim2.c: Likewise.
42358         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
42359         stream.
42360         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
42361
42362         * MODULES.html.sh: Document new module.
42363
42364 2008-04-20  Bruno Haible  <bruno@clisp.org>
42365
42366         * lib/c-stack.c (die): Use raise.
42367         * modules/c-stack (Depends-on): Add raise.
42368
42369 2008-04-28  Bruno Haible  <bruno@clisp.org>
42370
42371         Expect rpmatch to be declared.
42372         * lib/yesno.c (rpmatch): Remove declaration.
42373
42374         Declare rpmatch.
42375         * lib/stdlib.in.h (rpmatch): New declaration.
42376         * lib/rpmatch.c: Include <stdlib.h> first.
42377         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
42378         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
42379         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
42380         HAVE_RPMATCH.
42381         * modules/rpmatch (Depends-on): Add stdlib, extensions.
42382         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42383         (Include): Set to <stdlib.h>.
42384         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
42385         HAVE_RPMATCH.
42386         * NEWS: Document the change.
42387
42388 2008-04-28  Bruno Haible  <bruno@clisp.org>
42389
42390         Change rpmatch to use nl_langinfo when appropriate.
42391         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
42392         (N_): New macro.
42393         (localized_pattern): New function/macro.
42394         (try): Remove match, nomatch arguments. Copy the pattern into safe
42395         memory before caching it.
42396         (rpmatch): Use localized_pattern. Add translator comments.
42397         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
42398         Suggested by Eric Blake.
42399         * modules/rpmatch (Depends-on): Add stdbool.
42400
42401 2008-04-28  Eric Blake  <ebb9@byu.net>
42402
42403         Add rawmemchr module, matching glibc.
42404         * modules/string (Makefile.am): New indicator.
42405         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
42406         * lib/string.in.h (rawmemchr): Declare when appropriate.
42407         * modules/rawmemchr: New file.
42408         * m4/rawmemchr.m4: Likewise.
42409         * lib/rawmemchr.c: Likewise.
42410         * modules/rawmemchr-tests: Likewise.
42411         * tests/test-rawmemchr.c: Likewise.
42412         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
42413         module.
42414         * modules/strchrnul (Depends-on): Add rawmemchr.
42415         * lib/strchrnul.c (strchrnul): Optimize a corner case.
42416
42417         Whitespace cleanup.
42418         * tests/test-strchrnul.c: Reindent.
42419         * lib/strchrnul.c: Likewise.
42420
42421         Optimize and test strchrnul.
42422         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
42423         * modules/strchrnul-tests: New file.
42424         * tests/test-strchrnul.c: Likewise.
42425
42426         Remove intprops dependency.
42427         * modules/memchr (Depends-on): Remove intprops.
42428         * modules/memrchr (Depends-on): Likewise.
42429         * modules/memchr2 (Depends-on): Likewise.
42430         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
42431         * lib/memrchr.c (__memrchr): Likewise.
42432         * lib/memrchr2.c (memchr2): Likewise.
42433         Reported by Simon Josefsson.
42434
42435 2008-04-28  Simon Josefsson  <simon@josefsson.org>
42436
42437         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
42438         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42439
42440 2008-04-28  Simon Josefsson  <simon@josefsson.org>
42441
42442         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
42443
42444         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
42445
42446         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
42447
42448         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
42449         declarations.
42450         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
42451
42452         * m4/inet_pton.m4: Don't check for header files.
42453
42454         * m4/inet_ntop.m4: Don't check for header files.
42455
42456 2008-04-28  Simon Josefsson  <simon@josefsson.org>
42457
42458         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
42459         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
42460         trigger for cygwin).
42461         Reported by Bruno Haible  <bruno@clisp.org>.
42462
42463 2008-04-28  Bruno Haible  <bruno@clisp.org>
42464
42465         * doc/posix-functions/strdup.texi: Mention mingw problem.
42466
42467 2008-04-27  Bruno Haible  <bruno@clisp.org>
42468
42469         * modules/stat-time-tests (Depends-on): Add sleep.
42470         * tests/test-stat-time.c (force_unlink): New function.
42471         (cleanup): Use it.
42472         (test_mtime): Remove the ctime related tests.
42473         (test_ctime): New function, containing the ctime related tests.
42474         (main): Call test_ctime, except on native Windows platforms.
42475
42476 2008-04-27  Bruno Haible  <bruno@clisp.org>
42477
42478         * lib/rpmatch.c (rpmatch): Add some comments.
42479         Reported by James Youngman <jay@gnu.org>.
42480
42481 2008-04-27  Bruno Haible  <bruno@clisp.org>
42482
42483         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
42484         quiet NaNs.
42485
42486 2008-04-27  Bruno Haible  <bruno@clisp.org>
42487
42488         Make test-yesno.sh work on mingw.
42489         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
42490         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
42491         (main): Set stdin to binary mode.
42492         * modules/yesno-tests (Depends-on): Add binary-io.
42493
42494 2008-04-27  Bruno Haible  <bruno@clisp.org>
42495
42496         Fix 'isfinite' on x86, x86_64, ia64 platforms.
42497         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
42498         argument that lie outside the IEEE 854 domain.
42499         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
42500         (gl_ISFINITE): Use it.
42501         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
42502
42503 2008-04-27  Bruno Haible  <bruno@clisp.org>
42504
42505         Allow local renaming in config.h.
42506         * lib/memrchr.c (memrchr): Don't undefine outside libc.
42507
42508 2008-04-27  Bruno Haible  <bruno@clisp.org>
42509
42510         * lib/memchr.c (__memchr): Change type of 'i'.
42511         * lib/memchr2.c (memchr2): Likewise.
42512
42513 2008-04-26  Eric Blake  <ebb9@byu.net>
42514         and Bruno Haible  <bruno@clisp.org>
42515
42516         Optimize and test memrchr.
42517         * modules/memrchr (Depends-on): Add intprops.
42518         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
42519         * modules/memrchr-tests: New file.
42520         * tests/test-memrchr.c: New file.
42521
42522 2008-04-26  Bruno Haible  <bruno@clisp.org>
42523
42524         Add tentative support for DragonFly BSD.
42525         * lib/stdio-impl.h: Add macros for DragonFly BSD.
42526         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
42527         fp.
42528         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
42529         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
42530         * lib/fpurge.c (fpurge): Likewise.
42531         * lib/freadable.c (freaadable): Likewise.
42532         * lib/freadahead.c (freadahead): Likewise.
42533         * lib/freading.c (freading): Likewise.
42534         * lib/freadptr.c (freadptr): Likewise.
42535         * lib/freadseek.c (freadptrinc): Likewise.
42536         * lib/fseeko.c (fseeko): Likewise.
42537         * lib/fseterr.c (fseterr): Likewise.
42538         * lib/fwritable.c (fwritable): Likewise.
42539         * lib/fwriting.c (fwriting): Likewise.
42540
42541 2008-04-26  Bruno Haible  <bruno@clisp.org>
42542
42543         * lib/stdio-impl.h: New file.
42544         * lib/fbufmode.c: Include stdio-impl.h.
42545         (fbufmode): Use fp_, remove redundant #defines.
42546         * lib/fflush.c: Include stdio-impl.h.
42547         (clear_ungetc_buffer): Remove redundant #defines.
42548         * lib/fpurge.c: Include stdio-impl.h.
42549         (fpurge): Remove redundant #defines.
42550         * lib/freadable.c: Include stdio-impl.h.
42551         (freadable): Remove redundant #defines.
42552         * lib/freadahead.c: Include stdio-impl.h.
42553         (freadahead): Remove redundant #defines.
42554         * lib/freading.c: Include stdio-impl.h.
42555         (freading): Remove redundant #defines.
42556         * lib/freadptr.c: Include stdio-impl.h.
42557         (freadptr): Remove redundant #defines.
42558         * lib/freadseek.c: Include stdio-impl.h.
42559         (freadptrinc): Remove redundant #defines.
42560         * lib/fseeko.c: Include stdio-impl.h.
42561         (rpl_fseeko): Remove redundant #defines.
42562         * lib/fseterr.c: Include stdio-impl.h.
42563         (fseterr): Remove redundant #defines.
42564         * lib/fwritable.c: Include stdio-impl.h.
42565         (fwritable: Remove redundant #defines.
42566         * lib/fwriting.c: Include stdio-impl.h.
42567         (fwriting): Remove redundant #defines.
42568         * modules/fbufmode (Files): Add lib/stdio-impl.h.
42569         * modules/fflush (Files): Likewise.
42570         * modules/fpurge (Files): Likewise.
42571         * modules/freadable (Files): Likewise.
42572         * modules/freadahead (Files): Likewise.
42573         * modules/freading (Files): Likewise.
42574         * modules/freadptr (Files): Likewise.
42575         * modules/freadseek (Files): Likewise.
42576         * modules/fseeko (Files): Likewise.
42577         * modules/fseterr (Files): Likewise.
42578         * modules/fwritable (Files): Likewise.
42579         * modules/fwriting (Files): Likewise.
42580
42581 2008-04-26  Bruno Haible  <bruno@clisp.org>
42582
42583         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
42584         restore_seek_optimization, update_fpos_cache): New functions, extracted
42585         from rpl_fflush.
42586         (rpl_fflush): Use them.
42587         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
42588         (gl_REPLACE_FFLUSH): Use it.
42589
42590 2008-04-26  Bruno Haible  <bruno@clisp.org>
42591
42592         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
42593         on Solaris.
42594         * tests/test-xstrtoimax.sh: Likewise.
42595         * tests/test-xstrtoumax.sh: Likewise.
42596         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42597
42598 2008-04-26  Bruno Haible  <bruno@clisp.org>
42599
42600         * modules/memchr-tests: New file.
42601         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
42602
42603 2008-04-26  Eric Blake  <ebb9@byu.net>
42604             Bruno Haible  <bruno@clisp.org>
42605
42606         * lib/memchr.c: Include intprops.h.
42607         (__memchr): Optimize parallel detection of matching bytes. Rename local
42608         variables. Add explanatory comments.
42609
42610 2008-04-26  Bruno Haible  <bruno@clisp.org>
42611
42612         Fix module 'memchr', broken since 2000-10-28.
42613         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
42614
42615 2008-04-26  Bruno Haible  <bruno@clisp.org>
42616
42617         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
42618         comments.
42619
42620 2008-04-25  Eric Blake  <ebb9@byu.net>
42621
42622         Use native fstatat on cygwin 1.7.0.
42623         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
42624         first.
42625
42626 2008-04-23  Eric Blake  <ebb9@byu.net>
42627
42628         Improve memchr2 performance.
42629         * lib/memchr2.c (memchr2): Further optimize parallel detection of
42630         NUL bytes.
42631         * modules/memchr2 (Depends-on): Use intprops.h.
42632
42633 2008-04-23  Simon Josefsson  <simon@josefsson.org>
42634
42635         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
42636         an inline function instead of a CPP macro.  Patch by Ben Pfaff
42637         <blp@cs.stanford.edu>.
42638
42639 2008-04-23  Simon Josefsson  <simon@josefsson.org>
42640
42641         * lib/arpa_inet.in.h: New file.
42642
42643         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
42644         (Makefile.am): Sed in substitute header file.
42645
42646         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
42647         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
42648
42649         * modules/inet_ntop (configure.ac): Use
42650         gl_ARPA_INET_MODULE_INDICATOR.
42651
42652         * modules/inet_pton (configure.ac): Use
42653         gl_ARPA_INET_MODULE_INDICATOR.
42654
42655 2008-04-22  Jim Meyering  <meyering@redhat.com>
42656
42657         * modules/verify (License): Re-license as LGPLv2+.
42658
42659 2008-04-22  Simon Josefsson  <simon@josefsson.org>
42660
42661         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
42662         parameter to void* as per POSIX standard (MinGW uses char*).
42663
42664 2008-04-21  Bruno Haible  <bruno@clisp.org>
42665
42666         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
42667         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
42668         Define to replacements if REPLACE_ISWCNTRL is 1.
42669         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
42670         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
42671         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
42672         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
42673         what it fixes.
42674         * doc/posix-functions/iswalpha.texi: Likewise.
42675         * doc/posix-functions/iswblank.texi: Likewise.
42676         * doc/posix-functions/iswcntrl.texi: Likewise.
42677         * doc/posix-functions/iswdigit.texi: Likewise.
42678         * doc/posix-functions/iswgraph.texi: Likewise.
42679         * doc/posix-functions/iswlower.texi: Likewise.
42680         * doc/posix-functions/iswprint.texi: Likewise.
42681         * doc/posix-functions/iswpunct.texi: Likewise.
42682         * doc/posix-functions/iswspace.texi: Likewise.
42683         * doc/posix-functions/iswupper.texi: Likewise.
42684         * doc/posix-functions/iswxdigit.texi: Likewise.
42685         Reported by Alain Guibert.
42686
42687 2008-04-21  Bruno Haible  <bruno@clisp.org>
42688
42689         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
42690         Patch by Alain Guibert.
42691
42692 2008-04-21  Bruno Haible  <bruno@clisp.org>
42693
42694         Fix test failures on mingw.
42695         * tests/test-xstrtol.c (print_no_progname): New function.
42696         (main): Install it in error_print_progname hook.
42697         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
42698         * tests/test-xstrtoimax.sh: Likewise.
42699         * tests/test-xstrtoumax.sh: Likewise.
42700
42701 2008-04-21  Bruno Haible  <bruno@clisp.org>
42702
42703         Fix test failure on mingw.
42704         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
42705
42706 2008-04-21  Bruno Haible  <bruno@clisp.org>
42707
42708         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
42709         Actually assign a value.
42710
42711 2008-04-20  Bruno Haible  <bruno@clisp.org>
42712
42713         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
42714         take 2.
42715         * lib/canonicalize.c (canonicalize_file_name): Elide if the
42716         'canonicalize-lgpl' module is also used.
42717         * lib/canonicalize-lgpl.c: Undo last change.
42718         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
42719
42720 2008-04-20  Bruno Haible  <bruno@clisp.org>
42721
42722         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
42723         config.h. Provide _mkdir based fallback for mingw.
42724         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
42725         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
42726         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
42727         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
42728         rather than defining mkdir in config.h.
42729         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
42730         (gl_SYS_STAT_H_DEFAULTS): New macro.
42731         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
42732         HAVE_IO_H any more.
42733         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
42734         HAVE_DECL_MKDIR and HAVE_IO_H.
42735
42736 2008-04-20  Bruno Haible  <bruno@clisp.org>
42737
42738         * lib/isapipe.c: Port to native Windows platforms.
42739
42740 2008-04-20  Bruno Haible  <bruno@clisp.org>
42741
42742         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
42743
42744 2008-04-21  Eric Blake  <ebb9@byu.net>
42745
42746         Work around preprocessors that don't handle UINTMAX_MAX.
42747         * lib/memchr2.c (memchr2): Avoid embedded #if.
42748         Reported by Alain Guibert, fix suggested by Bruno Haible.
42749
42750 2008-04-21  Simon Josefsson  <simon@josefsson.org>
42751
42752         * doc/posix-functions/strftime.texi (strftime): Explain better
42753         Windows incompatibility.  Suggested by Micah Cowan
42754         <micah@cowan.name>.
42755
42756 2008-04-20  Bruno Haible  <bruno@clisp.org>
42757
42758         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
42759         unistr/u8-mblen.
42760
42761 2008-04-20  Bruno Haible  <bruno@clisp.org>
42762
42763         Fix test failure on platforms with non-GNU iconv.
42764         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
42765         (U_TO_U8): Use it, rather than u16_to_u8.
42766         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
42767         units at the end of the input string.
42768         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
42769
42770 2008-04-20  Bruno Haible  <bruno@clisp.org>
42771
42772         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
42773         when the resulting length is 0.
42774         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
42775
42776 2008-04-20  Bruno Haible  <bruno@clisp.org>
42777
42778         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
42779         works.
42780         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
42781
42782 2008-04-20  Bruno Haible  <bruno@clisp.org>
42783
42784         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
42785         * modules/tsearch-tests (configure.ac): Test for initstate function.
42786
42787 2008-04-20  Bruno Haible  <bruno@clisp.org>
42788
42789         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
42790         for nlink_t if missing.
42791         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
42792
42793 2008-04-19  Bruno Haible  <bruno@clisp.org>
42794
42795         Work around snprintf bug on Linux libc5.
42796         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
42797         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
42798         gl_SNPRINTF_SIZE1.
42799         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42800         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
42801         that test failed.
42802         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
42803         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
42804         * modules/snprintf (Files): Add m4/printf.m4.
42805         * modules/vsnprintf (Files): Likewise.
42806         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
42807         * doc/posix-functions/vsnprintf.texi: Likewise.
42808
42809 2008-04-19  Bruno Haible  <bruno@clisp.org>
42810
42811         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
42812         from 0.0058 to less than 10^-7.
42813
42814 2008-04-19  Bruno Haible  <bruno@clisp.org>
42815
42816         Fix rounding when a precision is given.
42817         * lib/vasnprintf.c (is_borderline): New function.
42818         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
42819         9...9x.
42820         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
42821         %e, %g.
42822         * tests/test-vasprintf-posix.c (test_function): Likewise.
42823         * tests/test-snprintf-posix.h (test_function): Likewise.
42824         * tests/test-sprintf-posix.h (test_function): Likewise.
42825         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
42826         * tests/test-printf-posix.h (test_function): Likewise.
42827         * tests/test-printf-posix.output: Update.
42828         Reported by John Darrington <john@darrington.wattle.id.au> via
42829         Ben Pfaff <blp@cs.stanford.edu>.
42830
42831 2008-04-18  Simon Josefsson  <simon@josefsson.org>
42832
42833         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
42834         Suggested by Bruno Haible <bruno@clisp.org>.
42835
42836 2008-04-17  Bruno Haible  <bruno@clisp.org>
42837
42838         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
42839         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
42840         implementation.
42841         Patch by Bruce Merry <bmerry@gmail.com>.
42842
42843 2008-04-17  Simon Josefsson  <simon@josefsson.org>
42844
42845         * doc/posix-functions/strftime.texi (strftime): Mention that %e
42846         doesn't work under Windows.
42847
42848 2008-04-16  Bruno Haible  <bruno@clisp.org>
42849
42850         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
42851         New macros.
42852         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
42853         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
42854         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
42855         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
42856         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
42857         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
42858         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
42859         macros.
42860         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
42861         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
42862         Northern Sotho, Uighur.
42863
42864 2008-04-16  Bruno Haible  <bruno@clisp.org>
42865
42866         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
42867         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
42868         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
42869         Reported by Daniel Bergström <daniel@octocode.com>.
42870
42871 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
42872             Bruno Haible  <bruno@clisp.org>
42873
42874         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
42875         function.
42876         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
42877         New functions, mostly extracted from gl_locale_name_default.
42878         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
42879
42880 2008-04-16  Eric Blake  <ebb9@byu.net>
42881
42882         Adjust strtod detection to catch glibc 2.7 bug.
42883         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
42884         Reported by John Gatewood Ham.
42885
42886 2008-04-16  Bruno Haible  <bruno@clisp.org>
42887
42888         Add tentative support for Linux libc5.
42889         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
42890         * lib/fpurge.c (fpurge): Likewise.
42891         * lib/freadable.c (freadable): Likewise.
42892         * lib/freadahead.c (freadahead): Likewise.
42893         * lib/freading.c (freading): Likewise.
42894         * lib/freadptr.c (freadptr): Likewise.
42895         * lib/freadseek.c (freadptrinc): Likewise.
42896         * lib/fseeko.c (rpl_fseeko): Likewise.
42897         * lib/fseterr.c (fseterr): Likewise.
42898         * lib/fwritable.c (fwritable): Likewise.
42899         * lib/fwriting.c (fwriting): Likewise.
42900         Reported by Alain Guibert <alguibert+bts@free.fr>.
42901
42902 2008-04-15  Bruno Haible  <bruno@clisp.org>
42903
42904         * modules/mathl (configure.ac): Define module indicator.
42905
42906 2008-04-15  Bruno Haible  <bruno@clisp.org>
42907
42908         * lib/logl.c (logl): Remove unused variables.
42909
42910 2008-04-15  Bruno Haible  <bruno@clisp.org>
42911
42912         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
42913         fails.
42914
42915 2008-04-15  Bruno Haible  <bruno@clisp.org>
42916
42917         * lib/trim.c (trim2): Fix argument of isspace() macro.
42918
42919 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
42920
42921         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
42922         to 0.
42923         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
42924
42925 2008-04-14  Bruno Haible  <bruno@clisp.org>
42926
42927         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
42928         AC_LANG_PROGRAM argument.
42929         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
42930         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
42931         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
42932         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
42933         * m4/math_h.m4 (gl_MATH_H): Likewise.
42934         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
42935         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
42936         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
42937         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
42938         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
42939         * m4/regex.m4 (gl_REGEX): Likewise.
42940         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
42941         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
42942         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
42943         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
42944         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
42945         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
42946         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
42947         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
42948
42949 2008-04-14  Jim Meyering  <meyering@redhat.com>
42950
42951         test-strtod: fix typos: s/abs/fabs/
42952         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
42953
42954 2008-04-13  Bruno Haible  <bruno@clisp.org>
42955
42956         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
42957         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
42958         module is also used and while not building the reloc-wrapper.
42959
42960 2008-04-13  Bruno Haible  <bruno@clisp.org>
42961
42962         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
42963
42964 2008-04-13  Bruno Haible  <bruno@clisp.org>
42965
42966         Fix AIX compilation failure introduced on 2008-04-02.
42967         * tests/test-frexp.c (exp): Undefine before redefining.
42968         * tests/test-frexpl.c (exp): Likewise.
42969
42970 2008-04-13  Bruno Haible  <bruno@clisp.org>
42971
42972         Work around a HP-UX stdio bug.
42973         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
42974         * tests/test-ftello.c (main): Likewise.
42975         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
42976         * doc/posix-functions/ftello.texi: Likewise.
42977
42978 2008-04-13  Bruno Haible  <bruno@clisp.org>
42979
42980         Make test-signbit pass on HP-UX/hppa.
42981         * tests/test-signbit.c (minus_zerol): New variable.
42982         (test_signbitl): Use it.
42983
42984 2008-04-13  Bruno Haible  <bruno@clisp.org>
42985
42986         Make truncl work on OSF/1 4.0.
42987         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
42988         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
42989         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
42990         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
42991         HAVE_DECL_TRUNCL.
42992         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
42993         HAVE_DECL_TRUNCL.
42994         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
42995
42996 2008-04-13  Bruno Haible  <bruno@clisp.org>
42997
42998         * lib/unictype.h: Remove trailing comma from enumeration definitions.
42999
43000 2008-04-13  Bruno Haible  <bruno@clisp.org>
43001
43002         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
43003         expression, so as to avoid HP-UX 11 cc compiler bug.
43004
43005 2008-04-13  Bruno Haible  <bruno@clisp.org>
43006
43007         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
43008
43009 2008-04-13  Bruno Haible  <bruno@clisp.org>
43010
43011         * lib/git-merge-changelog.c: Remove empty declaration outside of
43012         functions.
43013
43014 2008-04-13  Bruno Haible  <bruno@clisp.org>
43015
43016         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
43017
43018 2008-04-13  Bruno Haible  <bruno@clisp.org>
43019
43020         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
43021         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
43022         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
43023         also if it exists but lacks definitions of the SHUT_* macros.
43024         * modules/sys_socket (Description): Update.
43025         Reported by Elbert Pol <e.pol@chello.nl>.
43026
43027 2008-04-13  Bruno Haible  <bruno@clisp.org>
43028
43029         * lib/localcharset.c (OS2): Don't redefine if already defined.
43030         Reported by Elbert Pol <e.pol@chello.nl>.
43031
43032 2008-04-13  Bruno Haible  <bruno@clisp.org>
43033
43034         * lib/binary-io.h [__EMX__]: Include <io.h>.
43035         Reported by Elbert Pol <e.pol@chello.nl>.
43036
43037 2008-04-12  Bruno Haible  <bruno@clisp.org>
43038
43039         * lib/fpucw.h: Enable the definitions also for x86_64.
43040         Needed for NetBSD/x86_64.
43041         Reported by Thomas Klausner <tk@giga.or.at>.
43042
43043 2008-04-12  Bruno Haible  <bruno@clisp.org>
43044
43045         * tests/test-strtod.c: Include isnand.h.
43046         (main): Use isnand instead of isnan.
43047         Reported by Jim Meyering.
43048
43049 2008-04-12  Bruno Haible  <bruno@clisp.org>
43050
43051         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
43052         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
43053
43054 2008-04-12  Jim Meyering  <meyering@redhat.com>
43055
43056         * m4/math_h.m4 (gl_MATH_H): Fix typos.
43057
43058 2008-04-12  Bruno Haible  <bruno@clisp.org>
43059
43060         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
43061         Reported by Elbert Pol <e.pol@chello.nl>.
43062
43063 2008-04-12  Eric Blake  <ebb9@byu.net>
43064
43065         Work around Solaris 10 math.h bug.
43066         * m4/math_h.m4 (gl_MATH_H): Check for bug.
43067         (gl_MATH_H_DEFAULTS): Set up default.
43068         * modules/math (Makefile.am): Replace new indicators.
43069         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
43070         * tests/test-math.c (main): Test this.
43071         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
43072         * doc/posix-headers/math.texi (math.h): Mention bug.
43073         Reported by Nelson H. F. Beebe and Jim Meyering.
43074
43075 2008-04-11  Bruno Haible  <bruno@clisp.org>
43076
43077         Adapt to future versions of Apple GCC.
43078         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
43079         Reported by Peter O'Gorman <peter@pogma.com>.
43080
43081 2008-04-11  Bruno Haible  <bruno@clisp.org>
43082
43083         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
43084
43085 2008-04-11  Bruno Haible  <bruno@clisp.org>
43086
43087         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
43088
43089         * modules/getaddrinfo-tests (Makefile.am): Define
43090         test_getaddrinfo_LDADD.
43091
43092 2008-04-11  Bruno Haible  <bruno@clisp.org>
43093
43094         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
43095         (init): Fix syntax error.
43096         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
43097         is declared.
43098
43099 2008-04-11  Bruno Haible  <bruno@clisp.org>
43100
43101         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
43102         * modules/glob (Depends-on): Add stdbool.
43103
43104 2008-04-11  Bruno Haible  <bruno@clisp.org>
43105
43106         * lib/trim.c: Include <string.h>.
43107
43108 2008-04-11  Eric Blake  <ebb9@byu.net>
43109
43110         Avoid compile failure on OS/2.
43111         * lib/regex_internal.h (internal_function): Disable optimization
43112         on OS/2 (__EMX__), where it caused compiler error.
43113         Reported by Elbert Pol.
43114
43115 2008-04-11  Bruno Haible  <bruno@clisp.org>
43116
43117         Flush the standard error stream before aborting. Needed on mingw.
43118         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
43119         * tests/test-array_list.c (ASSERT): Likewise.
43120         * tests/test-array_oset.c (ASSERT): Likewise.
43121         * tests/test-avltree_list.c (ASSERT): Likewise.
43122         * tests/test-avltree_oset.c (ASSERT): Likewise.
43123         * tests/test-avltreehash_list.c (ASSERT): Likewise.
43124         * tests/test-binary-io.c (ASSERT): Likewise.
43125         * tests/test-byteswap.c (ASSERT): Likewise.
43126         * tests/test-c-ctype.c (ASSERT): Likewise.
43127         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
43128         * tests/test-c-strcasestr.c (ASSERT): Likewise.
43129         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
43130         * tests/test-c-strstr.c (ASSERT): Likewise.
43131         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
43132         * tests/test-canonicalize.c (ASSERT): Likewise.
43133         * tests/test-carray_list.c (ASSERT): Likewise.
43134         * tests/test-ceilf1.c (ASSERT): Likewise.
43135         * tests/test-ceilf2.c (ASSERT): Likewise.
43136         * tests/test-ceill.c (ASSERT): Likewise.
43137         * tests/test-count-one-bits.c (ASSERT): Likewise.
43138         * tests/test-fbufmode.c (ASSERT): Likewise.
43139         * tests/test-fflush2.c (ASSERT): Likewise.
43140         * tests/test-floorf1.c (ASSERT): Likewise.
43141         * tests/test-floorf2.c (ASSERT): Likewise.
43142         * tests/test-floorl.c (ASSERT): Likewise.
43143         * tests/test-fopen.c (ASSERT): Likewise.
43144         * tests/test-fpending.c (ASSERT): Likewise.
43145         * tests/test-fprintf-posix.c (ASSERT): Likewise.
43146         * tests/test-fpurge.c (ASSERT): Likewise.
43147         * tests/test-freadable.c (ASSERT): Likewise.
43148         * tests/test-freadahead.c (ASSERT): Likewise.
43149         * tests/test-freading.c (ASSERT): Likewise.
43150         * tests/test-freadptr.c (ASSERT): Likewise.
43151         * tests/test-freadptr2.c (ASSERT): Likewise.
43152         * tests/test-freadseek.c (ASSERT): Likewise.
43153         * tests/test-freopen.c (ASSERT): Likewise.
43154         * tests/test-frexp.c (ASSERT): Likewise.
43155         * tests/test-frexpl.c (ASSERT): Likewise.
43156         * tests/test-fseek.c (ASSERT): Likewise.
43157         * tests/test-fseeko.c (ASSERT): Likewise.
43158         * tests/test-fstrcmp.c (ASSERT): Likewise.
43159         * tests/test-ftell.c (ASSERT): Likewise.
43160         * tests/test-ftello.c (ASSERT): Likewise.
43161         * tests/test-func.c (ASSERT): Likewise.
43162         * tests/test-fwritable.c (ASSERT): Likewise.
43163         * tests/test-fwriting.c (ASSERT): Likewise.
43164         * tests/test-getdelim.c (ASSERT): Likewise.
43165         * tests/test-getline.c (ASSERT): Likewise.
43166         * tests/test-i-ring.c (ASSERT): Likewise.
43167         * tests/test-iconv-utf.c (ASSERT): Likewise.
43168         * tests/test-iconv.c (ASSERT): Likewise.
43169         * tests/test-isfinite.c (ASSERT): Likewise.
43170         * tests/test-isnand.c (ASSERT): Likewise.
43171         * tests/test-isnanf.c (ASSERT): Likewise.
43172         * tests/test-isnanl.h (ASSERT): Likewise.
43173         * tests/test-ldexpl.c (ASSERT): Likewise.
43174         * tests/test-linked_list.c (ASSERT): Likewise.
43175         * tests/test-linkedhash_list.c (ASSERT): Likewise.
43176         * tests/test-localename.c (ASSERT): Likewise.
43177         * tests/test-lseek.c (ASSERT): Likewise.
43178         * tests/test-mbscasecmp.c (ASSERT): Likewise.
43179         * tests/test-mbscasestr1.c (ASSERT): Likewise.
43180         * tests/test-mbscasestr2.c (ASSERT): Likewise.
43181         * tests/test-mbscasestr3.c (ASSERT): Likewise.
43182         * tests/test-mbscasestr4.c (ASSERT): Likewise.
43183         * tests/test-mbschr.c (ASSERT): Likewise.
43184         * tests/test-mbscspn.c (ASSERT): Likewise.
43185         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
43186         * tests/test-mbspbrk.c (ASSERT): Likewise.
43187         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
43188         * tests/test-mbsrchr.c (ASSERT): Likewise.
43189         * tests/test-mbsspn.c (ASSERT): Likewise.
43190         * tests/test-mbsstr1.c (ASSERT): Likewise.
43191         * tests/test-mbsstr2.c (ASSERT): Likewise.
43192         * tests/test-mbsstr3.c (ASSERT): Likewise.
43193         * tests/test-memchr2.c (ASSERT): Likewise.
43194         * tests/test-memmem.c (ASSERT): Likewise.
43195         * tests/test-open.c (ASSERT): Likewise.
43196         * tests/test-printf-frexp.c (ASSERT): Likewise.
43197         * tests/test-printf-frexpl.c (ASSERT): Likewise.
43198         * tests/test-printf-posix.c (ASSERT): Likewise.
43199         * tests/test-quotearg.c (ASSERT): Likewise.
43200         * tests/test-rbtree_list.c (ASSERT): Likewise.
43201         * tests/test-rbtree_oset.c (ASSERT): Likewise.
43202         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
43203         * tests/test-round1.c (ASSERT): Likewise.
43204         * tests/test-roundf1.c (ASSERT): Likewise.
43205         * tests/test-roundl.c (ASSERT): Likewise.
43206         * tests/test-signbit.c (ASSERT): Likewise.
43207         * tests/test-sleep.c (ASSERT): Likewise.
43208         * tests/test-snprintf-posix.c (ASSERT): Likewise.
43209         * tests/test-snprintf.c (ASSERT): Likewise.
43210         * tests/test-sprintf-posix.c (ASSERT): Likewise.
43211         * tests/test-stat-time.c (ASSERT): Likewise.
43212         * tests/test-strcasestr.c (ASSERT): Likewise.
43213         * tests/test-strerror.c (ASSERT): Likewise.
43214         * tests/test-striconv.c (ASSERT): Likewise.
43215         * tests/test-striconveh.c (ASSERT): Likewise.
43216         * tests/test-striconveha.c (ASSERT): Likewise.
43217         * tests/test-strsignal.c (ASSERT): Likewise.
43218         * tests/test-strstr.c (ASSERT): Likewise.
43219         * tests/test-strtod.c (ASSERT): Likewise.
43220         * tests/test-trunc1.c (ASSERT): Likewise.
43221         * tests/test-trunc2.c (ASSERT): Likewise.
43222         * tests/test-truncf1.c (ASSERT): Likewise.
43223         * tests/test-truncf2.c (ASSERT): Likewise.
43224         * tests/test-truncl.c (ASSERT): Likewise.
43225         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
43226         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
43227         * tests/test-vasnprintf.c (ASSERT): Likewise.
43228         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
43229         * tests/test-vasprintf.c (ASSERT): Likewise.
43230         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
43231         * tests/test-vprintf-posix.c (ASSERT): Likewise.
43232         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
43233         * tests/test-vsnprintf.c (ASSERT): Likewise.
43234         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
43235         * tests/test-wcwidth.c (ASSERT): Likewise.
43236         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
43237         * tests/test-xprintf-posix.c (ASSERT): Likewise.
43238         * tests/test-xvasprintf.c (ASSERT): Likewise.
43239         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
43240         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
43241         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
43242         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
43243         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
43244         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
43245         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
43246         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
43247         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
43248         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
43249         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
43250         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
43251         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
43252         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
43253         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
43254         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
43255         * tests/unictype/test-block_list.c (ASSERT): Likewise.
43256         * tests/unictype/test-block_of.c (ASSERT): Likewise.
43257         * tests/unictype/test-block_test.c (ASSERT): Likewise.
43258         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
43259         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
43260         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
43261         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
43262         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
43263         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
43264         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
43265         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
43266         * tests/unictype/test-combining.c (ASSERT): Likewise.
43267         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
43268         * tests/unictype/test-digit.c (ASSERT): Likewise.
43269         * tests/unictype/test-mirror.c (ASSERT): Likewise.
43270         * tests/unictype/test-numeric.c (ASSERT): Likewise.
43271         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
43272         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
43273         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
43274         * tests/unictype/test-scripts.c (ASSERT): Likewise.
43275         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
43276         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
43277         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
43278         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
43279         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
43280         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
43281         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
43282         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
43283         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
43284         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
43285         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
43286         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
43287         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
43288         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
43289         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
43290         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
43291         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
43292         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
43293         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
43294         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
43295         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
43296         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
43297         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
43298         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
43299         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
43300         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
43301         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
43302         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
43303         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
43304         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
43305         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
43306         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
43307         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
43308         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
43309         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
43310         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
43311         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
43312         Reported by Eric Blake.
43313
43314 2008-04-11  Bruno Haible  <bruno@clisp.org>
43315
43316         * lib/wchar.in.h: Tweak comment.
43317
43318 2008-04-11  Bruno Haible  <bruno@clisp.org>
43319
43320         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
43321         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
43322         gl_COMMON.
43323         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
43324
43325 2008-04-11  Bruno Haible  <bruno@clisp.org>
43326
43327         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
43328
43329 2008-04-11  Simon Josefsson  <simon@josefsson.org>
43330
43331         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
43332         of attempting to use non-existing /dev/*random.  Based on patch
43333         from Adam Strzelecki <ono@java.pl> in
43334         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
43335
43336 2008-04-08  Bruno Haible  <bruno@clisp.org>
43337
43338         Add tentative support for emx+gcc.
43339         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
43340         * lib/fpurge.c (fpurge): Likewise.
43341         * lib/freadable.c (freadable): Likewise.
43342         * lib/freadahead.c (freadahead): Likewise.
43343         * lib/freading.c (freading): Likewise.
43344         * lib/freadptr.c (freadptr): Likewise.
43345         * lib/freadseek.c (freadptrinc): Likewise.
43346         * lib/fseeko.c (rpl_fseeko): Likewise.
43347         * lib/fseterr.c (fseterr): Likewise.
43348         * lib/fwritable.c (fwritable): Likewise.
43349         * lib/fwriting.c (fwriting): Likewise.
43350         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
43351
43352 2008-04-09  Eric Blake  <ebb9@byu.net>
43353
43354         Avoid some autoconf warnings.
43355         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
43356         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
43357         * m4/afs.m4 (gl_AFS): Likewise.
43358         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
43359         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
43360         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43361         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
43362         (gl_INTEGER_TYPE_SUFFIX): Likewise.
43363         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
43364         (AC_CHECK_DECLS_ONCE): Likewise.
43365         Rename file...
43366         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
43367         gnulib-tool requires autoconf 2.59 or better.
43368         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
43369
43370 2008-04-08  Eric Blake  <ebb9@byu.net>
43371
43372         Use 'git describe --match' if present (added in git 1.5.5).
43373         * build-aux/git-version-gen: Limit result to tags that match 'v*'
43374         if possible.
43375
43376 2008-04-08  Bruno Haible  <bruno@clisp.org>
43377
43378         Add tentative support for OpenServer.
43379         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
43380         _ptr, _cnt.
43381         * lib/fpurge.c (fpurge): Likewise.
43382         * lib/freadable.c (freadable): Likewise.
43383         * lib/freadahead.c (freadahead): Likewise.
43384         * lib/freading.c (freading): Likewise.
43385         * lib/freadptr.c (freadptr): Likewise.
43386         * lib/freadseek.c (freadptrinc): Likewise.
43387         * lib/fseeko.c (rpl_fseeko): Likewise.
43388         * lib/fseterr.c (fseterr): Likewise.
43389         * lib/fwritable.c (fwritable): Likewise.
43390         * lib/fwriting.c (fwriting): Likewise.
43391         Reported by Roger Cornelius <rac@tenzing.org> and
43392         Brian K. White <brian@aljex.com>.
43393
43394 2008-04-06  Jim Meyering  <meyering@redhat.com>
43395
43396         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
43397
43398 2008-04-06  Bruno Haible  <bruno@clisp.org>
43399
43400         Avoid possible error with non-ASCII bytes in UTF-8 locales.
43401         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
43402         * tests/test-printf-posix.sh: Likewise.
43403         * tests/test-vfprintf-posix.sh: Likewise.
43404         * tests/test-vprintf-posix.sh: Likewise.
43405         * tests/test-xprintf-posix.sh: Likewise.
43406
43407 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43408
43409         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
43410         hide error from 'ls', needed on OS/2.
43411         Report by Elbert Pol <elbert.pol@gmail.com>.
43412
43413 2008-04-04  Eric Blake  <ebb9@byu.net>
43414
43415         Make test-fseeko.c failures meaningful.
43416         * tests/test-fseeko.c: Print line number on failure.
43417         * tests/test-fseek.c: Likewise.
43418         Reported by Nelson H. F. Beebe.
43419
43420         Improve strtod bug detection check.
43421         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
43422         required for Solaris 10.
43423         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
43424
43425 2008-04-04  Bruno Haible  <bruno@clisp.org>
43426
43427         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
43428         by m4/setenv.m4.
43429
43430 2008-04-03  Eric Blake  <ebb9@byu.net>
43431
43432         Ensure sane .version contents.
43433         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
43434         version string.
43435         * build-aux/git-version-gen: Improve documentation.
43436
43437         Make GNU make output nicer.
43438         * top/GNUmakefile [!_have-Makefile]: Add dependency on
43439         MAKECMDGOALS to enforce message for all command line targets.  Set
43440         srcdir for use in maint.mk.
43441
43442         Another maintainer tweak.
43443         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
43444         a target that regenerates version.
43445
43446 2008-04-03  Jim Meyering  <meyering@redhat.com>
43447
43448         vc-list-files: don't cause coreutils "make po-check" failure
43449         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
43450
43451 2008-04-03  Eric Blake  <ebb9@byu.net>
43452
43453         Allow VPATH usage of vc-list-files.
43454         * build-aux/vc-list-files (scriptversion): Add timestamp.
43455         (options): Add --help, --version, -C.
43456         (CVS): Support installed cvsu.
43457
43458 2008-04-02  Bruno Haible  <bruno@clisp.org>
43459
43460         Avoid some "statement with no effect" warnings from gcc.
43461         * tests/test-wctype.c (main): Explicitly ignore unused values.
43462         Reported by Jim Meyering.
43463
43464 2008-04-02  Jim Meyering  <meyering@redhat.com>
43465
43466         Avoid some warnings from "gcc -Wshadow".
43467         * tests/test-frexp.c (exp): Define to a different identifier.
43468         * tests/test-frexpl.c (exp): Likewise.
43469
43470 2008-04-03  Jim Meyering  <meyering@redhat.com>
43471
43472         bootstrap: remove dangling *.[ch] symlinks from lib
43473         * build-aux/bootstrap [dangling symlink removal]: Move find's
43474         -depth option to precede all others, to avoid a warning.
43475         Remove *.[ch] files too, and from "$source_base" (usually lib/).
43476
43477 2008-04-02  Bruno Haible  <bruno@clisp.org>
43478
43479         Avoid some warnings from "gcc -Wshadow".
43480         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
43481         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
43482         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
43483         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
43484         Reported by Jim Meyering.
43485
43486 2008-04-01  Bruno Haible  <bruno@clisp.org>
43487
43488         Fix test to work on IRIX 6.5 with cc.
43489         * tests/test-math.c (numeric_equal): New function.
43490         (main): Use it.
43491
43492 2008-04-01  Bruno Haible  <bruno@clisp.org>
43493
43494         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
43495
43496 2008-04-01  Bruno Haible  <bruno@clisp.org>
43497
43498         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
43499         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
43500         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
43501         (Depends-on): Remove math.
43502
43503         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
43504         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
43505         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
43506         (Depends-on): Remove math.
43507
43508         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
43509         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
43510         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
43511         (Depends-on): Remove math.
43512         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
43513         (Depends-on): Remove math.
43514
43515         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
43516         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
43517         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
43518         (Depends-on): Remove math.
43519         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
43520         (Depends-on): Remove math.
43521
43522         * tests/test-round1.c: Include nan.h.
43523         (main): Use NaNd instead of NAN.
43524         * modules/round-tests (Files): Add tests/nan.h.
43525
43526         * tests/test-trunc1.c: Include nan.h.
43527         (main): Use NaNd instead of NAN.
43528         * modules/trunc-tests (Files): Add tests/nan.h.
43529
43530         * tests/test-roundf1.c: Include nan.h.
43531         (main): Use NaNf instead of NAN.
43532         * modules/roundf-tests (Files): Add tests/nan.h.
43533
43534         * tests/test-truncf1.c: Include nan.h.
43535         (main): Use NaNf instead of NAN.
43536         * modules/truncf-tests (Files): Add tests/nan.h.
43537
43538         * tests/test-ceilf1.c: Include nan.h.
43539         (main): Use NaNf instead of NAN.
43540         * modules/ceilf-tests (Files): Add tests/nan.h.
43541
43542         * tests/test-floorf1.c: Include nan.h.
43543         (main): Use NaNf instead of NAN.
43544         * modules/floorf-tests (Files): Add tests/nan.h.
43545
43546         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
43547         (main): Use NaNf instead of NAN.
43548         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
43549
43550         * tests/test-isnand.c: Include nan.h instead of <math.h>.
43551         (main): Use NaNd instead of NAN.
43552         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
43553
43554         * tests/test-frexp.c: Include nan.h.
43555         (main): Use NaNd instead of NAN.
43556         * modules/frexp-tests (Files): Add tests/nan.h.
43557
43558         * lib/isnan.c: Don't include <math.h>.
43559         (FUNC): Don't use NAN macro.
43560         * modules/isnand-nolibm (Depends-on): Remove math.
43561         * modules/isnanf-nolibm (Depends-on): Remove math.
43562         * modules/isnanl (Depends-on): Remove math.
43563         * modules/isnanl-nolibm (Depends-on): Remove math.
43564
43565         * tests/nan.h: New file.
43566
43567 2008-04-01  Eric Blake  <ebb9@byu.net>
43568
43569         Fix typos.
43570         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
43571         values to be the right type.
43572
43573         For now, cater to gnulib strtod inaccuracies.
43574         * tests/test-strtod.c (main): Allow 1-ulp error on expected
43575         fractional results.  While not as nice from a QoI perspective, it
43576         is a quicker patch than correctly implementing decimal to binary
43577         rounding.
43578
43579 2008-03-31  Eric Blake  <ebb9@byu.net>
43580
43581         Guarantee a definition of NAN.
43582         * lib/math.in.h (NAN): Define if missing.
43583         * tests/test-math.c (main): Test it.
43584         * doc/posix-headers/math.texi (math.h): Document this.
43585         * lib/isnan.c (rpl_isnand): Use it.
43586         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
43587         * tests/test-floorf1.c (NaN): Likewise.
43588         * tests/test-frexp.c (NaN): Likewise.
43589         * tests/test-isnand.c (NaN): Likewise.
43590         * tests/test-isnanf.c (NaN): Likewise.
43591         * tests/test-round1.c (NaN): Likewise.
43592         * tests/test-roundf1.c (NaN): Likewise.
43593         * tests/test-snprintf-posix.h (NaN): Likewise.
43594         * tests/test-sprintf-posix.h (NaN): Likewise.
43595         * tests/test-trunc1.c (NaN): Likewise.
43596         * tests/test-truncf1.c (NaN): Likewise.
43597         * tests/test-vasnprintf-posix.c (NaN): Likewise.
43598         * tests/test-vasprintf-posix.c (NaN): Likewise.
43599         * modules/isnand-nolibm (Depends-on): Add math.
43600         * modules/isnanf-nolibm (Depends-on): Likewise.
43601         * modules/isnanl (Depends-on): Likewise.
43602         * modules/isnanl-nolibm (Depends-on): Likewise.
43603         * modules/snprintf-posix-tests (Depends-on): Likewise.
43604         * modules/sprintf-posix-tests (Depends-on): Likewise.
43605         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
43606         * modules/vsprintf-posix-tests (Depends-on): Likewise.
43607         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
43608         * modules/vasprintf-posix-tests (Depends-on): Likewise.
43609
43610 2008-03-31  Bruno Haible  <bruno@clisp.org>
43611
43612         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
43613         * doc/posix-functions/strtod.texi: Likewise.
43614
43615 2008-03-31  Bruno Haible  <bruno@clisp.org>
43616
43617         * tests/test-strtod.c (main): Don't use C99 syntax.
43618
43619 2008-03-31  Bruno Haible  <bruno@clisp.org>
43620
43621         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
43622         Reported by Eric Blake.
43623
43624 2008-03-31  Jim Meyering  <meyering@redhat.com>
43625
43626         Don't compare actual signbit return values.
43627         * tests/test-strtod.c (main): Rather, compare only their
43628         zero/non-zero nature.
43629
43630 2008-03-31  Eric Blake  <ebb9@byu.net>
43631
43632         More strtod documentation.
43633         * doc/posix-functions/strtod.texi (strtod): Interpret more test
43634         failures as distinct bugs.
43635
43636 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
43637
43638         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
43639         Problem reported by Erik Benada in
43640         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
43641
43642 2008-03-30  Bruno Haible  <bruno@clisp.org>
43643
43644         * tests/test-strtod.c: Add comments about which assertion fails on which
43645         platform.
43646         * doc/posix-functions/strtod.texi: Add info about many more platforms.
43647
43648 2008-03-30  Eric Blake  <ebb9@byu.net>
43649
43650         Test signbit behavior on zeros.
43651         * tests/test-signbit.c (test_signbitf): Add tests for zero.
43652         (test_signbitd, test_signbitl): Likewise.
43653
43654         More strtod touchups.
43655         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
43656         sign of negative underflow, for now.  Use .5, not .1.
43657         * doc/posix-functions/strtod.texi (strtod): Mention these
43658         limitations.
43659         Reported by Jim Meyering.
43660
43661 2008-03-30  Bruno Haible  <bruno@clisp.org>
43662
43663         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
43664         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
43665
43666 2008-03-30  Bruno Haible  <bruno@clisp.org>
43667
43668         Avoid failure when attempting to return empty iconv results on some
43669         platforms.
43670         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
43671         allocation, don't report ENOMEM when the resulting string is empty.
43672
43673 2008-03-30  Bruno Haible  <bruno@clisp.org>
43674
43675         Fix buffer overrun.
43676         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
43677         Don't consider the width for tmp_length. Check count against tmp_length
43678         before doing the padding. Ensure enough allocation during padding.
43679
43680 2008-03-30  Eric Blake  <ebb9@byu.net>
43681
43682         strtod touchups.
43683         * lib/strtod.c (strtod): Avoid compiler warnings.
43684         Reported by Jim Meyering.
43685
43686 2008-03-30  Bruno Haible  <bruno@clisp.org>
43687
43688         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
43689         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
43690         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
43691         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
43692         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
43693         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
43694         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
43695         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
43696
43697         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
43698         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
43699         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
43700         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
43701         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
43702         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
43703         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
43704         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
43705
43706         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
43707         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
43708         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
43709         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
43710         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
43711         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
43712         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
43713         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
43714
43715         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
43716         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
43717
43718         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
43719         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
43720
43721         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
43722         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
43723
43724         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
43725         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
43726         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
43727
43728         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
43729         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
43730         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
43731
43732         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
43733         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
43734         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
43735
43736         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
43737         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
43738         * modules/vasprintf (Depends-on): Add EOVERFLOW.
43739
43740         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
43741         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
43742         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
43743         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
43744         (Depends-on): Add EOVERFLOW.
43745         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
43746         (Depends-on): Add EOVERFLOW.
43747         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
43748         (Depends-on): Add EOVERFLOW.
43749         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
43750         (Depends-on): Add EOVERFLOW.
43751         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
43752         (Depends-on): Add EOVERFLOW.
43753         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
43754         (Depends-on): Add EOVERFLOW.
43755         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
43756         (Depends-on): Add EOVERFLOW.
43757         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
43758         (Depends-on): Add EOVERFLOW.
43759
43760         * lib/sprintf.c (EOVERFLOW): Remove fallback.
43761         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
43762         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
43763
43764         * lib/snprintf.c (EOVERFLOW): Remove fallback.
43765         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
43766         * modules/snprintf (Depends-on): Add EOVERFLOW.
43767
43768         * lib/poll.c (EOVERFLOW): Remove fallback.
43769         * modules/poll (Depends-on): Add EOVERFLOW.
43770
43771         * lib/getugroups.c (EOVERFLOW): Remove fallback.
43772         * modules/getugroups (Depends-on): Add EOVERFLOW.
43773
43774         * lib/getdelim.c (EOVERFLOW): Remove fallback.
43775         * modules/getdelim (Depends-on): Add EOVERFLOW.
43776
43777         * lib/ftell.c (EOVERFLOW): Remove fallback.
43778         * modules/ftell (Depends-on): Add EOVERFLOW.
43779
43780         * lib/fprintf.c (EOVERFLOW): Remove fallback.
43781         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
43782         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
43783
43784         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
43785
43786         * modules/EOVERFLOW-tests: New file.
43787         * tests/test-EOVERFLOW.c: New file.
43788
43789         * modules/EOVERFLOW: New file.
43790         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
43791
43792 2008-03-30  Bruno Haible  <bruno@clisp.org>
43793
43794         Fix bug introduced on 2007-06-10.
43795         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
43796         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
43797
43798 2008-03-30  Bruno Haible  <bruno@clisp.org>
43799
43800         Improve freadseek's efficiency after ungetc.
43801         * lib/freadseek.c: Include freadahead.h.
43802         (freadptrinc): New function, extracted from freadseek.
43803         (freadseek): Use it in a loop. Use freadahead to determine the number
43804         of loop iterations.
43805         * modules/freadseek (Depends-on): Add freadahead.
43806         (configure.ac): Require AC_C_INLINE.
43807
43808 2008-03-30  Bruno Haible  <bruno@clisp.org>
43809
43810         * lib/freadseek.c (freadseek): Don't ignore the return value of
43811         freadptr.
43812
43813 2008-03-29  Eric Blake  <ebb9@byu.net>
43814
43815         Add hex float support.
43816         * modules/strtod (Depends-on): Add c-ctype.
43817         (Link): Mention POW_LIB.
43818         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
43819         whitespace between 'e' and exponent.
43820         * tests/test-strtod.c (main): Enable hex float tests.
43821         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
43822         now provides.
43823
43824         Document various strtod bugs, with some fixes.
43825         * doc/posix-functions/strtod.texi (strtod): Document bugs with
43826         "-0x", "inf", "nan", and hex constants.
43827         * doc/posix-functions/atof.texi (atof): Likewise.
43828         * modules/stdlib (Makefile.am): Support strtod.
43829         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
43830         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
43831         detect additional strtod bugs.
43832         * lib/stdlib.in.h (rpl_strtod): Add declarations.
43833         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
43834         bool where appropriate.  Parse 'inf' and 'nan'.
43835         * tests/test-strtod.c: New file.
43836         * modules/strtod (Depends-on): Add stdbool, stdlib.
43837         (configure.ac): Turn on module indicator.
43838         * modules/strtod-tests: New module.
43839
43840 2008-03-29  Eric Blake  <ebb9@byu.net>
43841
43842         Fix ftell on mingw.
43843         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
43844         * modules/ftell-tests (Depends-on): Add binary-io.
43845         * modules/ftello-tests (Depends-on): Likewise.
43846         * tests/test-ftell.c (main): Enhance test to cover behavior after
43847         ungetc.  Enforce binary mode.
43848         * tests/test-ftello.c (main): Likewise.
43849
43850         Pass test-freadseek on cygwin.
43851         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
43852         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
43853         ungetc buffer.
43854
43855         * tests/test-fflush2.c (main): Fix typo.
43856
43857 2008-03-29  Bruno Haible  <bruno@clisp.org>
43858
43859         * tests/test-fflush2.c (main): Temporarily disable the contents of
43860         this test.
43861         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
43862         Reported by Eric Blake.
43863
43864 2008-03-28  Simon Josefsson  <simon@josefsson.org>
43865
43866         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
43867         (GC_SHA224_DIGEST_SIZE): Add.
43868
43869         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
43870         (gc_hash_digest_length): Likewise.
43871         (gc_hash_buffer): Likewise.
43872
43873 2008-03-25  Bruno Haible  <bruno@clisp.org>
43874
43875         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
43876         detail which gettext release to use.
43877         Reported by Simon Josefsson.
43878
43879 2008-03-26  Jim Meyering  <meyering@redhat.com>
43880
43881         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
43882         * modules/gnumakefile (clean-GNUmakefile): Also, use
43883         test ... && ... || : syntax rather than if-then ... fi.
43884
43885         gnumakefile: Don't double-quote-expand $(VPATH) value.
43886         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
43887
43888 2008-03-24  Eric Blake  <ebb9@byu.net>
43889
43890         Alter GNUmakefile to install into top directory.
43891         * modules/maintainer-makefile: Split, and add dependency...
43892         * modules/gnumakefile: to this new module.
43893         * build-aux/GNUmakefile: Move...
43894         * top/GNUmakefile: ...here.
43895         * build-aux/maint.mk: Move...
43896         * top/maint.mk: ...here.
43897         * MODULES.html.sh (Support for maintaining...): Document new
43898         module.
43899
43900 2008-03-23  Bruno Haible  <bruno@clisp.org>
43901
43902         * gnulib-tool: New options --vc-files, --no-vc-files.
43903         (func_usage): Document them.
43904         (vc_files): New variable.
43905         (func_import): Consider vc_files.
43906         (func_create_testdir): Set vc_files to empty.
43907         Suggested by Jim Meyering and Karl Berry.
43908
43909 2008-03-23  Bruno Haible  <bruno@clisp.org>
43910
43911         Fix regex compilation error on HP-UX 11.
43912         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
43913         * modules/regex (Files): Add m4/mbstate_t.m4.
43914         Reported by Ton Voon <ton.voon@altinity.com>.
43915
43916 2008-03-23  Bruno Haible  <bruno@clisp.org>
43917
43918         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
43919
43920 2008-03-23  Eric Blake  <ebb9@byu.net>
43921             Bruno Haible  <bruno@clisp.org>
43922
43923         Install files from top/ in the destination directory.
43924         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
43925         augmentation also for the files from top/.
43926         (func_import, func_create_testdir): Rewrite file names:
43927         top/filename -> filename.
43928
43929 2008-03-23  Bruno Haible  <bruno@clisp.org>
43930
43931         Tweak "gnulib --version" output.
43932         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
43933
43934 2008-03-23  Bruno Haible  <bruno@clisp.org>
43935
43936         Tweak "gnulib --version" output.
43937         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
43938         rather than contents of ChangeLog, when possible.
43939
43940 2008-03-21  Eric Blake  <ebb9@byu.net>
43941
43942         More --version tweaks.
43943         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
43944         date of last ChangeLog entry.
43945
43946 2008-03-21  Jim Meyering  <meyering@redhat.com>
43947
43948         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
43949
43950 2008-03-20  Eric Blake  <ebb9@byu.net>
43951
43952         VPATH fix.
43953         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
43954
43955 2008-03-20  Simon Josefsson  <simon@josefsson.org>
43956
43957         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
43958         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
43959
43960 2008-03-20  Eric Blake  <ebb9@byu.net>
43961
43962         Sync GNUmakefile with coreutils.
43963         * build-aux/GNUmakefile (have-Makefile): Rename...
43964         (_have-Makefile): ...to this, for namespace consideration.
43965         (GNUmakefile.cfg): Include, if present.
43966         (_autoreconf): Define a default.
43967         (_is-dist-target): New rule for rebuilds to pick up intra-release
43968         version.
43969         (maint-cfg.mk): Rename...
43970         (cfg.mk): ...to this.
43971
43972 2008-03-18  Jim Meyering  <meyering@redhat.com>
43973
43974         New script and module: mktempd
43975         * MODULES.html.sh (maint+release support): Add mktempd.
43976         * build-aux/mktempd: New file.
43977         * modules/mktempd: New file.
43978
43979 2008-03-15  Jim Meyering  <meyering@redhat.com>
43980
43981         Undo last change.
43982         * lib/sha1.c, lib/md5.c: 63 != ~63.
43983         Reported by Andreas Schwab.
43984
43985         sha1.c, md5.c: Hoist a redundant expression.
43986         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
43987         "ctx->buflen" only once, before calling *_process_block.
43988         * lib/md5.c (md5_process_bytes): Likewise.
43989
43990 2008-03-14  Eric Blake  <ebb9@byu.net>
43991
43992         Bump copyright year in files generated by gnulib-tool.
43993         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
43994         gnulib-tool, rather than hard-coding it.
43995
43996         Fix 'gnulib-tool --version' output to work with git.
43997         * gnulib-tool (func_gnulib_dir): New function, extracted from...
43998         (startup): ...here.
43999         (func_version): Use it to invoke git-version-gen, rather than
44000         relying on CVS keyword expansion.  Modernize wording.
44001         (cvsdatestamp, last_checkin_date, version): Kill unused
44002         variables.
44003
44004 2008-03-12  Jim Meyering  <meyering@redhat.com>
44005
44006         Recognize optional cast of the argument to free.
44007         * build-aux/useless-if-before-free: Update regexps.
44008
44009         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
44010
44011 2008-03-11  Bruno Haible  <bruno@clisp.org>
44012
44013         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
44014         by a single package.
44015         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
44016         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
44017         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
44018         Reported by Sam Steingold <sds@gnu.org>.
44019
44020 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
44021
44022         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
44023         repositories.
44024
44025 2008-03-11  Bruno Haible  <bruno@clisp.org>
44026
44027         Avoid conflicts between local macro definitions.
44028         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
44029         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
44030
44031 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
44032             Bruno Haible  <bruno@clisp.org>
44033
44034         Make va_copy work with some version of xlc on AIX 5.1.
44035         * lib/stdarg.in.h: New file.
44036         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
44037         On AIX, use a <stdarg.h> file substitute.
44038         * modules/stdarg (Files): Add lib/stdarg.in.h.
44039         (Depends-on): Add include_next.
44040         (Makefile.am): Build a stdarg.h substitute if requested.
44041         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
44042
44043 2008-03-10  Bruno Haible  <bruno@clisp.org>
44044
44045         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
44046         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44047         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
44048
44049 2008-03-10  Bruno Haible  <bruno@clisp.org>
44050
44051         * modules/stdlib (Depends-on): Add include_next, remove
44052         absolute-header.
44053
44054 2008-03-09  Bruno Haible  <bruno@clisp.org>
44055
44056         * lib/freadahead.h (freadahead): Document more precisely.
44057         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
44058         the sum of both buffer sizes.
44059         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
44060         * NEWS: Document the change.
44061
44062 2008-03-09  Bruno Haible  <bruno@clisp.org>
44063
44064         Extend freadptr to return also the buffer size.
44065         * lib/freadptr.h (freadptr): Add sizep argument.
44066         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
44067         (freadptr): Add sizep argument. Determine buffer size like freadahead
44068         does.
44069         * tests/test-freadptr.c: Don't include freadahead.h.
44070         (main): Adapt for new calling convention of freadptr.
44071         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
44072         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
44073         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
44074         tests/test-freadptr2.sh.
44075         (Depends): Remove freadahead.
44076         (TESTS): Add test-freadptr2.sh.
44077         (check_PROGRAMS): Add test-freadptr2.
44078
44079 2008-03-09  Bruno Haible  <bruno@clisp.org>
44080
44081         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
44082         Report and solution by Simon Josefsson.
44083
44084 2008-03-06  Bruno Haible  <bruno@clisp.org>
44085
44086         Make fflush after ungetc work on BSD platforms.
44087         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
44088         * tests/test-fflush2.c: New file.
44089         * tests/test-fflush2.sh: New file.
44090         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
44091         tests/test-fflush2.c.
44092         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
44093         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
44094
44095 2008-03-06  Eric Blake  <ebb9@byu.net>
44096
44097         Likewise for ftello.
44098         * modules/ftello (Dependencies): Add extensions.
44099         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
44100
44101 2008-03-06  Bruno Haible  <bruno@clisp.org>
44102
44103         * modules/fseeko (Dependencies): Add extensions.
44104         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
44105         Needed on glibc systems.
44106
44107 2008-03-06  Bruno Haible  <bruno@clisp.org>
44108
44109         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
44110         email address.
44111         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
44112
44113 2008-03-06  Bruno Haible  <bruno@clisp.org>
44114
44115         * users.txt: Add libgnupdf.
44116
44117 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
44118
44119         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
44120         (Header File Substitutes, Function Substitutes,
44121         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
44122         (Build robot for gnulib): Fix typo.
44123
44124 2008-03-06  Bruno Haible  <bruno@clisp.org>
44125
44126         * doc/gnulib-tool.texi (VCS Issues): Small updates.
44127         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
44128
44129 2008-03-06  Bruno Haible  <bruno@clisp.org>
44130
44131         * doc/func.texi: New file, extracted from doc/gnulib.texi.
44132         * doc/gnulib.texi: Include it.
44133
44134 2008-03-06  Simon Josefsson  <simon@josefsson.org>
44135
44136         * modules/func (License): Change license to unlimited; there was
44137         no LGPL parts in the module anyway.
44138
44139 2008-03-06  Simon Josefsson  <simon@josefsson.org>
44140
44141         * modules/__func__: Renamed to modules/func.
44142         * modules/__func__-tests: Renamed to modules/func-tests.
44143         * tests/test-__func__.c: Renamed to tests/test-func.c.
44144         * m4/__func__.m4: Renamed to m4/func.m4.
44145         * doc/gnulib.texi (__func__): Section renamed to func.
44146         Suggested by Eric Blake <ebb9@byu.net>.
44147
44148 2008-03-06  Simon Josefsson  <simon@josefsson.org>
44149
44150         * doc/gnulib.texi (__func__): Use C99 terminology when talking
44151         about __func__.  Make example self-contained.  Suggested by Eric
44152         Blake <ebb9@byu.net>.
44153
44154         * tests/test-__func__.c (main): Avoid extraneous () around __func.
44155         Suggested by Eric Blake <ebb9@byu.net>.
44156
44157 2008-03-06  Simon Josefsson  <simon@josefsson.org>
44158
44159         * modules/__func__: New file.
44160         * modules/__func__-tests: New file.
44161         * tests/test-__func__.c: New file.
44162         * m4/__func__.m4: New file.
44163         * doc/gnulib.texi (__func__): Document __func__ module.
44164
44165 2008-03-05  Simon Josefsson  <simon@josefsson.org>
44166
44167         * modules/byteswap (License): Re-license as LGPLv2+.
44168
44169 2008-03-05  Simon Josefsson  <simon@josefsson.org>
44170
44171         * doc/Makefile: Add pdf target.
44172
44173 2008-03-05  Simon Josefsson  <simon@josefsson.org>
44174
44175         * modules/inline (License): Use 'unlimited', since there are only
44176         *.m4 files in this module.
44177
44178 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
44179             Bruno Haible  <bruno@clisp.org>
44180
44181         Add support for HP C 7.1 on OpenVMS 8.3.
44182         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
44183
44184 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
44185
44186         Update VMS specifics.
44187         * lib/getopt.c [VMS]: Remove include of unixlib.h.
44188
44189 2008-03-02  Jim Meyering  <meyering@redhat.com>
44190
44191         Remove the last dependency on the "free" module.
44192         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
44193         Reported by Bob Proulx.
44194
44195         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
44196
44197         Remove useless "if" tests before free.  Deprecate "free" module.
44198         * doc/posix-functions/free.texi: Mention that this
44199         module is no longer useful.
44200         * modules/free (Notice): Say this module is obsolete.
44201         * modules/readutmp (Depends-on): Remove free.
44202         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
44203         * lib/putenv.c (putenv): Likewise.
44204         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
44205         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
44206         * tests/test-c-strcasestr.c (main): Likewise.
44207         * tests/test-c-strstr.c (main): Likewise.
44208         * tests/test-mbscasestr1.c (main): Likewise.
44209         * tests/test-mbscasestr2.c (main): Likewise.
44210         * tests/test-mbsstr1.c (main): Likewise.
44211         * tests/test-mbsstr2.c (main): Likewise.
44212         * tests/test-memmem.c (main): Likewise.
44213         * tests/test-strcasestr.c (main): Likewise.
44214         * tests/test-striconv.c (main): Likewise.
44215         * tests/test-striconveh.c (main): Likewise.
44216         * tests/test-striconveha.c (main): Likewise.
44217         * tests/test-strstr.c (main): Likewise.
44218
44219         * build-aux/git-version-gen: Adjust a comment and the Usage string.
44220
44221         bootstrap: sync from coreutils again
44222         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
44223
44224 2008-03-01  Jim Meyering  <meyering@redhat.com>
44225
44226         bootstrap: sync from coreutils
44227         * build-aux/bootstrap (update_po_files): Copy a .po file into place
44228         also when the target doesn't exist.
44229
44230 2008-03-01  Eric Blake  <ebb9@byu.net>
44231
44232         Fix bugs in last patch.
44233         * lib/memchr2.c (memchr2): Fix typo.
44234         * tests/test-memchr2.c: Test previous bug, and don't use GNU
44235         extension.
44236         Reported by Bruce Korb.
44237
44238         New module 'memchr2'.
44239         * modules/memchr2: New file.
44240         * modules/memchr2-tests: Likewise.
44241         * lib/memchr2.h: Likewise.
44242         * lib/memchr2.c: Likewise, based on memchr.c.
44243         * tests/test-memchr2.c: New test.
44244         * MODULES.html.sh (String handling): Add memchr2.
44245
44246 2008-02-29  Bruno Haible  <bruno@clisp.org>
44247
44248         * modules/freadseek-tests: New file.
44249         * tests/test-freadseek.sh: New file.
44250         * tests/test-freadseek.c: New file.
44251
44252         New module 'freadseek'.
44253         * modules/freadseek: New file.
44254         * lib/freadseek.h: New file.
44255         * lib/freadseek.c: New file.
44256         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
44257
44258 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
44259
44260         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
44261         wydawca.
44262
44263         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
44264         program_invocation_name and program_invocation_short_name are
44265         present.
44266
44267 2008-02-28  Bruno Haible  <bruno@clisp.org>
44268
44269         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
44270         * tests/test-freadptr.sh: Also test non-seekable stdin.
44271
44272 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
44273
44274         * build-aux/bootstrap (source_base, m4_base)
44275         (doc_base, tests_base): New variables.
44276         (gnulib_tool_options): Do not hardcode base directories, use
44277         the above variables instead.
44278
44279 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
44280
44281         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
44282
44283 2008-02-28  Bruno Haible  <bruno@clisp.org>
44284
44285         * modules/freadptr-tests: New file.
44286         * tests/test-freadptr.sh: New file.
44287         * tests/test-freadptr.c: New file.
44288
44289         New module 'freadptr'.
44290         * modules/freadptr: New file.
44291         * lib/freadptr.h: New file.
44292         * lib/freadptr.c: New file.
44293         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
44294
44295 2008-02-26  Karl Berry  <karl@freefriends.org>
44296
44297         Sync from Libtool:
44298         * libltdl/argz.c (argz_add, argz_count): New functions.
44299         * libltdl/argz.in.h: Declare them.
44300         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
44301
44302 2008-02-22  Bruno Haible  <bruno@clisp.org>
44303
44304         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
44305         is a pointer type.  Needed for HP-UX 10.
44306         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
44307         * doc/posix-functions/gmtime_r.texi: Likewise.
44308         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
44309
44310 2008-02-24  Bruno Haible  <bruno@clisp.org>
44311
44312         * modules/environ-tests: New file.
44313         * tests/test-environ.c: New file.
44314
44315         New module 'environ'.
44316         * modules/environ: New file.
44317         * lib/unistd.in.h (environ): New declaration.
44318         * m4/environ.m4: New file.
44319         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
44320         after use.
44321         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
44322         HAVE_DECL_ENVIRON.
44323         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
44324         HAVE_DECL_ENVIRON.
44325         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
44326         wrong claim that 'environ' is missing on some systems.
44327         * modules/execute (Depends-on): Add environ.
44328         * lib/execute.c (environ): Remove fallback declaration.
44329         * modules/pipe (Depends-on): Add environ.
44330         * lib/pipe.c (environ): Remove fallback declaration.
44331         * modules/setenv (Depends-on): Add environ.
44332         * lib/setenv.c (environ): Remove fallback declaration.
44333         * modules/unsetenv (Depends-on): Add environ.
44334         * lib/unsetenv.c (environ): Remove fallback declaration.
44335         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
44336         m4/environ.m4.
44337         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
44338         (gl_PREREQ_UNSETENV): Likewise.
44339
44340 2008-02-24  Bruno Haible  <bruno@clisp.org>
44341
44342         * doc/posix-functions/environ.texi: Document the MacOS X problem.
44343
44344 2008-02-20  Bob Proulx  <bob@proulx.com>
44345
44346         Enable use of older two part flavor 'git describe'.
44347         * build-aux/git-version-gen: If using the older two part flavor of
44348         git version then recreate the third part now present in the
44349         newer three part flavor of git describe.
44350
44351 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
44352
44353         * lib/fts.c (fts_build): Typo correction to comment.
44354
44355 2008-02-17  Bruno Haible  <bruno@clisp.org>
44356
44357         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
44358         generating no-op conflicts.
44359
44360 2008-02-17  Bruno Haible  <bruno@clisp.org>
44361
44362         Speed up by 10%.
44363         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
44364         result_entries, rather than an index-based loop.
44365
44366 2008-02-17  Bruno Haible  <bruno@clisp.org>
44367
44368         Speed up by 25%.
44369         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
44370         'hashcode_cached'.
44371         (entry_create): New function.
44372         (entry_hashcode): Use the cached hashcode if possible.
44373         (read_changelog_file, try_split_merged_entry): Use entry_create.
44374
44375 2008-02-17  Bruno Haible  <bruno@clisp.org>
44376
44377         Speed up from O(n^2) to O(n) for long ChangeLog files.
44378         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
44379         (read_changelog_file): Change implementation of entries_reversed list
44380         to rbtreehash.
44381         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
44382
44383 2008-02-17  Bruno Haible  <bruno@clisp.org>
44384
44385         New option --split-merged-entry.
44386         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
44387         (find_paragraph_end, try_split_merged_entry): New functions.
44388         (long_options): Add option --split-merged-entry.
44389         (usage): Document option --split-merged-entry.
44390         (main): Implement option --split-merged-entry.
44391         Reported by Eric Blake.
44392
44393 2008-02-17  Bruno Haible  <bruno@clisp.org>
44394
44395         * lib/git-merge-changelog.c: Include c-strstr.h.
44396         (main): Support the "git pull --rebase" situation.
44397         * modules/git-merge-changelog (Depends-on): Add c-strstr.
44398         Reported by Eric Blake.
44399
44400 2008-02-16  Eric Blake  <ebb9@byu.net>
44401
44402         Avoid doubling \ in common case of "c-maybe" quoting style.
44403         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
44404         eliding outer quotes.
44405         * lib/quotearg.h: Document this.
44406         * tests/test-quotearg.c (result_strings, inputs, results_g)
44407         (flag_results, locale_results): Test it by adding a new string to
44408         each test group.
44409         (compare_strings): Test new string.
44410
44411 2008-02-13  Eric Blake  <ebb9@byu.net>
44412
44413         Avoid trigraph quoting in default output.
44414         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
44415         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
44416         unless explicitly requested.
44417         * tests/test-quotearg.c (flag_results, main): Add additional tests.
44418
44419 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
44420
44421         Don't rely on signed integer overflowing to negative value.
44422         * lib/getugroups.c (getugroups): Include <limits.h>.
44423         Instead, compare against INT_MAX, and increment only if the test passes.
44424
44425 2008-02-13  Jim Meyering  <meyering@redhat.com>
44426         and Eric Blake  <ebb9@byu.net>
44427
44428         Avoid shadowing warning and compile errors on Linux.
44429         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
44430         forwarding macros on Linux.
44431         (dcgettext): Define a stub, for Linux.
44432         (results_g, main): Avoid warnings.
44433
44434 2008-02-12  Eric Blake  <ebb9@byu.net>
44435
44436         Silence warning in last patch.
44437         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
44438
44439         Quotearg part 4: add tests, fix c-maybe colon quoting.
44440         * lib/quotearg.h: Improve documentation.
44441         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
44442         escapes when adding outer quotes.  When quoting trigraphs, use
44443         valid C notation.  When quoting NUL, omit extra characters if next
44444         character is not digit.  Alter prototype.
44445         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
44446         callers.
44447         * modules/quotearg-tests: New module.
44448         * tests/test-quotearg.c: New test.
44449
44450 2008-02-07  Eric Blake  <ebb9@byu.net>
44451
44452         Quotearg part 3: add flag to control outer quote elision.
44453         * lib/quotearg.h (c_maybe_quoting_style): New style.
44454         (enum quoting_flags): Better documentation of flags.
44455         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
44456         c-maybe style.
44457         (quotearg_buffer_restyled): Handle new flag to elide outer
44458         quotes.
44459
44460         Quotearg part 2: add flag that can control NUL elision.
44461         * lib/quotearg.h (set_quoting_flags): New prototype.
44462         * lib/quotearg.c (struct quoting_options): Add flag field.
44463         (set_quoting_flags): New function.
44464         (quotearg_buffer_restyled): Add flags parameter.
44465         (quotearg_alloc_mem): Set the flag if length cannot be returned.
44466         (quotearg_n_options): Set the flag, since length cannot be
44467         returned.
44468         (quoting_options_from_style): Default flags correctly.
44469
44470         Quotearg part 1: more wrappers, restore quotearg_char state.
44471         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
44472         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
44473         (quotearg_colon_mem): New wrappers.
44474         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
44475         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
44476         functions.
44477         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
44478         (quotearg_colon_mem): New functions.
44479
44480 2008-02-11  Bruno Haible  <bruno@clisp.org>
44481
44482         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
44483         library in the current directory: it does not work with parallel make.
44484         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44485
44486 2008-02-11  Bruno Haible  <bruno@clisp.org>
44487
44488         * .gitattributes: New file.
44489
44490 2008-02-11  Jim Meyering  <meyering@redhat.com>
44491
44492         useless-if-before-free: Fix reversed exit values.
44493         * build-aux/useless-if-before-free: Use correct values
44494         for EXIT_MATCH and EXIT_NO_MATCH.
44495
44496         * build-aux/useless-if-before-free: Close stdout carefully.
44497
44498 2008-02-10  Bruno Haible  <bruno@clisp.org>
44499
44500         New module 'git-merge-changelog'.
44501         * modules/git-merge-changelog: New file.
44502         * lib/git-merge-changelog.c: New file.
44503
44504 2008-02-10  Jim Meyering  <meyering@redhat.com>
44505
44506         useless-if-before-free: New option: --list (-l).
44507
44508         useless-if-before-free: Don't exit immediately upon open failure.
44509         * build-aux/useless-if-before-free: Exit 2 for errors.
44510         Upon failure to open a file, don't exit immediately.
44511         Rather, just warn and continue with any remaining files.
44512
44513 2008-02-10  Bruno Haible  <bruno@clisp.org>
44514
44515         New abstract list operation 'node_set_value'.
44516         * lib/gl_list.h (gl_list_node_set_value): New function.
44517         (struct gl_list_implementation): New field node_set_value.
44518         * lib/gl_list.c (gl_list_node_set_value): New function.
44519         * lib/gl_array_list.c (gl_array_node_set_value): New function.
44520         (gl_array_list_implementation): Update.
44521         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
44522         (gl_carray_list_implementation): Update.
44523         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
44524         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
44525         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
44526         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
44527         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
44528         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
44529         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
44530         Update.
44531         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
44532         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
44533         (gl_sublist_list_implementation): Update.
44534
44535 2008-02-10  Bruno Haible  <bruno@clisp.org>
44536
44537         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
44538         Needed when ELEMENT is #defined to 'some_type *'.
44539
44540 2008-02-10  Jim Meyering  <meyering@redhat.com>
44541
44542         New script and module: useless-if-before-free
44543         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
44544         * build-aux/useless-if-before-free: New file.
44545         * modules/useless-if-before-free: New file.
44546
44547         * build-aux/gitlog-to-changelog: Use committer date, not author date.
44548
44549         xstrtol_error: Fix typo.
44550         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
44551         s/exit_failure/exit_status/.
44552
44553 2008-02-09  Jim Meyering  <meyering@redhat.com>
44554
44555         New script and module: gitlog-to-changelog
44556         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
44557         * modules/gitlog-to-changelog: New file.
44558         * build-aux/gitlog-to-changelog: New file.
44559
44560 2008-02-08  Jim Meyering  <meyering@redhat.com>
44561
44562         Avoid two "parameter unused" warnings.
44563         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
44564         Mark "st" as used.
44565
44566         Use "git COMMAND", not "git-COMMAND".
44567         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
44568         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
44569         * build-aux/git-version-gen: Use "git status", not "git-status".
44570
44571 2008-02-07  Bruno Haible  <bruno@clisp.org>
44572
44573         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
44574         Avoids a crash on Windows Vista.
44575         Reported by Adam Strzelecki <ono@java.pl> via
44576         Simon Josefsson <simon@josefsson.org>.
44577
44578 2008-02-06  Bruno Haible  <bruno@clisp.org>
44579
44580         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
44581         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
44582         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
44583         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
44584         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
44585         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44586         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
44587         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
44588         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44589         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44590         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44591         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44592         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44593         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44594         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44595         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
44596         left-adjust flag.
44597         * tests/test-snprintf-posix.h (test_function): Likewise.
44598         * tests/test-sprintf-posix.h (test_function): Likewise.
44599         * tests/test-vasprintf-posix.c (test_function): Likewise.
44600         * doc/posix-functions/fprintf.texi: Update.
44601         * doc/posix-functions/printf.texi: Update.
44602         * doc/posix-functions/snprintf.texi: Update.
44603         * doc/posix-functions/sprintf.texi: Update.
44604         * doc/posix-functions/vfprintf.texi: Update.
44605         * doc/posix-functions/vprintf.texi: Update.
44606         * doc/posix-functions/vsnprintf.texi: Update.
44607         * doc/posix-functions/vsprintf.texi: Update.
44608         Reported by Peter Fales <psfales@alcatel-lucent.com>.
44609
44610 2008-02-06  Bruno Haible  <bruno@clisp.org>
44611
44612         Fix bug introduced on 2008-01-26.
44613         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
44614
44615 2008-02-06  Bruno Haible  <bruno@clisp.org>
44616
44617         Fix bug introduced on 2007-06-10.
44618         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
44619         !NEED_PRINTF_FLAG_ZERO.
44620
44621 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
44622
44623         getloadavg: use libperfstat on AIX5
44624         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
44625
44626 2008-02-03  Bruno Haible  <bruno@clisp.org>
44627
44628         * lib/diffseq.h: Add comments about required #includes.
44629         Reported by Michael Biggs <gnulib@doubleplum.net>.
44630
44631 2008-02-01  Bruno Haible  <bruno@clisp.org>
44632
44633         * users.txt: Add gnuit.
44634
44635 2008-01-31  Bruno Haible  <bruno@clisp.org>
44636
44637         * lib/md4.c (set_uint32): Mark as inline.
44638         * lib/md5.c (set_uint32): Likewise.
44639         * lib/sha1.c (set_uint32): Likewise.
44640         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
44641         * m4/md5.m4 (gl_MD5): Likewise.
44642         * m4/sha1.m4 (gl_SHA1): Likewise.
44643
44644 2008-01-31  Jim Meyering  <meyering@redhat.com>
44645
44646         Use "sizeof VAR", rather than a literal "4".
44647         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
44648         * lib/md4.c (md4_read_ctx): Likewise.
44649         * lib/sha1.c (sha1_read_ctx): Likewise.
44650
44651 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44652
44653         * tests/test-sha1.c: New file, based on test-md5.c.
44654
44655         * modules/crypto/sha1-tests: New file.
44656
44657 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44658
44659         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
44660
44661 2008-01-31  Jim Meyering  <meyering@redhat.com>
44662
44663         Prefer "sizeof v" over the equivalent "4".
44664         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
44665         * lib/md5.c (set_uint32): Likewise.
44666         * lib/sha1.c (set_uint32): Likewise.
44667
44668 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44669
44670         * lib/sha1.c (set_uint32): Mark function as static.
44671
44672 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44673
44674         md2: clarify comments to say that alignment is not required.
44675         * lib/md2.h: Remove warning about alignment in comment.
44676         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
44677         never been required.
44678
44679 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44680
44681         md4: adapt alignment constraint fix from sha1.
44682         * lib/md4.c (set_uint32): New function, from sha1.c
44683         (md4_read_ctx): Use it.
44684         (md4_finish_ctx): Doc fix.
44685         * lib/md4.h: Doc fix.
44686
44687 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44688
44689         md5: adapt alignment constraint fix from sha1.
44690         * lib/md5.c (set_uint32): New function, from sha1.c
44691         (md5_read_ctx): Use it.
44692         (md5_finish_ctx): Doc fix.
44693         * lib/md5.h: Doc fix.
44694
44695 2008-01-30  Peter Palfrader  <weasel@debian.org>
44696
44697         sha1: remove the result buffer alignment constraint
44698         * lib/sha1.c (set_uint32): New function.
44699         (sha1_read_ctx): Rewrite to remove the result buffer alignment
44700         constraint.
44701         (sha1_finish_ctx): Remove comment warning about alignment constraint.
44702         * lib/sha1.h: Likewise.
44703
44704 2008-01-30  Andreas Schwab  <schwab@suse.de>
44705             Bruno Haible  <bruno@clisp.org>
44706
44707         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
44708         correct definition of LDBL_MIN_EXP.
44709
44710 2008-01-30  Karl Berry  <karl@gnu.org>
44711
44712         * config/srclist-update: try to preserve x bit on updates.
44713         * config/srclistvars.sh: update for karl.
44714
44715 2008-01-29  Jim Meyering  <meyering@redhat.com>
44716
44717         vasnprintf.c: Avoid warning about unused label
44718         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
44719         "overflow" label definition and associated code with the
44720         same cpp condition that guards the sole use of that label.
44721
44722 2008-01-26  Bruno Haible  <bruno@clisp.org>
44723
44724         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
44725         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
44726         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
44727         * lib/isnanl-nolibm.h (isnanl): Likewise.
44728         Reported by Paul Eggert <eggert@cs.ucla.edu>.
44729
44730 2008-01-26  Bruno Haible  <bruno@clisp.org>
44731
44732         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
44733         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
44734
44735 2008-01-26  Bruno Haible  <bruno@clisp.org>
44736
44737         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
44738         GCC >= 4.0 built-in.
44739         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
44740
44741 2008-01-26  Bruno Haible  <bruno@clisp.org>
44742
44743         Rename isnan, applicable to 'double' only, to isnand.
44744         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
44745         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
44746         (configure.ac): Update.
44747         (Include): Replace "isnan.h" with "isnand.h".
44748         * m4/isnand.m4: Renamed from m4/isnan.m4.
44749         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
44750         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
44751         instead of isnan.c.
44752         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
44753         instead of HAVE_ISNAN_IN_LIBC.
44754         (isnand): Renamed from isnan.
44755         * lib/isnand.c: New file.
44756         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
44757         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
44758         (Makefile.am): Update.
44759         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
44760         Include isnand.h instead of isnan.h.
44761         (main): Test isnand instead of isnan.
44762         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
44763         isnan-nolibm.
44764         * modules/frexp (Depends-on): Likewise.
44765         * modules/frexp-tests (Depends-on): Likewise.
44766         * modules/frexp-nolibm (Depends-on): Likewise.
44767         * modules/frexp-nolibm-tests (Depends-on): Likewise.
44768         * modules/isfinite (Depends-on): Likewise.
44769         * modules/round-tests (Depends-on): Likewise.
44770         * modules/signbit (Depends-on): Likewise.
44771         * modules/signbit-tests (Depends-on): Likewise.
44772         * modules/snprintf-posix (Depends-on): Likewise.
44773         * modules/sprintf-posix (Depends-on): Likewise.
44774         * modules/trunc-tests (Depends-on): Likewise.
44775         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
44776         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44777         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44778         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44779         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44780         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44781         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44782         * modules/vasnprintf-posix (Depends-on): Likewise.
44783         * modules/vasprintf-posix (Depends-on): Likewise.
44784         * modules/vfprintf-posix (Depends-on): Likewise.
44785         * modules/vsnprintf-posix (Depends-on): Likewise.
44786         * modules/vsprintf-posix (Depends-on): Likewise.
44787         * lib/frexp.c: Include isnand.h instead of isnan.h.
44788         (ISNAN): Set to isnand instead of isnan.
44789         * lib/isfinite.c: Include isnand.h instead of isnan.h.
44790         (gl_isfinited): Use isnand instead of isnan.
44791         * lib/signbitd.c: Include isnand.h instead of isnan.h.
44792         (gl_signbitd): Use isnand instead of isnan.
44793         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
44794         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
44795         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
44796         (main): Use isnand instead of isnan.
44797         * tests/test-round1.c: Include isnand.h.
44798         (main): Use isnand instead of isnan.
44799         * tests/test-round2.c: Include isnand.h instead of isnan.h.
44800         (ISNAN): Set to isnand instead of isnan.
44801         * tests/test-trunc1.c: Include isnand.h.
44802         (main): Use isnand instead of isnan.
44803         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
44804         (equal): Use isnand instead of isnan.
44805         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
44806         isnand-nolibm.
44807         * NEWS: Mention the change.
44808
44809 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
44810             Bruno Haible  <bruno@clisp.org>
44811
44812         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
44813         the GCC builtins for signbits are present and set
44814         REPLACE_SIGNBIT_USING_GCC if so.
44815         * lib/math.in.h (signbit): Define using GCC builtins if
44816         REPLACE_SIGNBIT_USING_GCC is set.
44817         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
44818         REPLACE_SIGNBIT_USING_GCC.
44819         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
44820
44821 2008-01-25  Jim Meyering  <meyering@redhat.com>
44822
44823         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
44824         * lib/poll.c: Include <config.h>, not "config.h".
44825         * tests/test-getaddrinfo.c: Likewise.
44826
44827 2008-01-25  Simon Josefsson  <simon@josefsson.org>
44828
44829         * modules/sockets-tests: New file.
44830
44831 2008-01-24  Simon Josefsson  <simon@josefsson.org>
44832
44833         * modules/sockets: New module, can be used to call WSA_Startup and
44834         WSA_Cleanup when needed.
44835
44836         * lib/sockets.h, lib/sockets.c: New files.
44837
44838         * m4/sockets.m4: New file.
44839
44840         * tests/test-sockets.c: New file.
44841
44842 2008-01-19  Bruno Haible  <bruno@clisp.org>
44843
44844         * doc/posix-headers: Renamed from doc/headers.
44845         * doc/posix-functions: Renamed from doc/functions.
44846         * doc/gnulib.texi: Update.
44847
44848 2008-01-19  Bruno Haible  <bruno@clisp.org>
44849
44850         * doc/glibc-functions/strcasestr.texi: Include contents of
44851         doc/functions/strcasestr.texi, fixing the list of platforms.
44852         * doc/functions/strcasestr.texi: Remove file.
44853
44854 2008-01-19  Bruno Haible  <bruno@clisp.org>
44855
44856         * doc/glibc-functions/memmem.texi: Include contents of
44857         doc/functions/memmem.texi.
44858         * doc/functions/memmem.texi: Remove file.
44859
44860 2008-01-18  Bruno Haible  <bruno@clisp.org>
44861
44862         * doc/glibc-functions/*.texi: New files.
44863         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
44864         to use the new files.
44865
44866 2008-01-17  Bruno Haible  <bruno@clisp.org>
44867
44868         * tests/test-gethostname.c (main): Fix printf statement.
44869
44870 2008-01-17  Simon Josefsson  <simon@josefsson.org>
44871
44872         * modules/gethostname-tests: New file.
44873
44874         * tests/test-gethostname.c: New file.
44875
44876 2008-01-17  Simon Josefsson  <simon@josefsson.org>
44877
44878         * lib/gethostname.c: Include string.h unconditionally, strncpy is
44879         used by the UNAME case.  Reported by Bruno Haible
44880         <bruno@clisp.org>.
44881
44882 2008-01-17  Eric Blake  <ebb9@byu.net>
44883
44884         Convert c-strcasestr to be more efficient.
44885         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
44886         (Depends-on): Add c-strcase, remove malloca, strnlen.
44887         * tests/test-c-strcasestr.c (main): Enhance test.
44888         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
44889
44890 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
44891
44892         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
44893         Use it in creating po/Makevars.
44894
44895 2008-01-15  Simon Josefsson  <simon@josefsson.org>
44896
44897         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
44898         Applications that requires it should initialize libgcrypt
44899         manually.
44900
44901 2008-01-16  Simon Josefsson  <simon@josefsson.org>
44902
44903         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
44904
44905 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
44906
44907         Fix problem with getdate on mingw32 reported by Simon Josefsson
44908         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
44909         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
44910         tzname", when deciding whether to declare tzname.
44911         * lib/strftime.c (tzname): Likewise.
44912
44913 2008-01-15  Bruno Haible  <bruno@clisp.org>
44914
44915         Work around a MacOS X 10.5 bug in frexpl().
44916         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
44917         * doc/functions/frexpl.texi: Document the bug.
44918         Reported by Elias Pipping <pipping@gentoo.org>.
44919
44920 2008-01-14  Eric Blake  <ebb9@byu.net>
44921
44922         Touch up previous patch.
44923         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
44924         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
44925
44926         Convert strcasestr module to use Two-Way algorithm.
44927         * modules/strcasestr-simple: New module, based on the old
44928         strcasestr, but with Two-Way rather than KMP.
44929         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
44930         * lib/string.in.h (rpl_strcasestr): Declare.
44931         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
44932         performance.
44933         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
44934         * modules/string (Makefile.am): Support strcasestr.
44935         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
44936         * modules/strcasestr-tests (Depends-on): Check for alarm.
44937         * tests/test-strcasestr.c: Augment test.
44938         * lib/str-two-way.h: Clean up stray macro.
44939         * NEWS: Document new module.
44940         * MODULES.html.sh (string handling): Likewise.
44941         * doc/functions/strcasestr.texi: New file.
44942         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
44943         here, since it is not a POSIX function.
44944
44945 2008-01-14  Colin Watson  <cjwatson@debian.org>
44946             Bruno Haible  <bruno@clisp.org>
44947
44948         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
44949         works fine; if not, set REPLACE_STRSIGNAL.
44950         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
44951         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
44952         REPLACE_STRSIGNAL.
44953         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
44954         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
44955         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
44956
44957 2008-01-14  Bruno Haible  <bruno@clisp.org>
44958
44959         * modules/strsignal (Include): Change to <string.h>.
44960
44961 2008-01-14  Colin Watson  <cjwatson@debian.org>
44962
44963         * modules/argp (Notice): Add a notice recommending to change
44964         XGETTEXT_OPTIONS.
44965         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
44966
44967 2008-01-13  Colin Watson  <cjwatson@debian.org>
44968
44969         * modules/strsignal-tests: New file.
44970         * tests/test-strsignal.c: New file.
44971
44972         * lib/strsignal.c: New file, from glibc with modifications.
44973         * lib/siglist.h: New file, from glibc with modifications.
44974         * lib/string.in.h (strsignal): New declaration.
44975         * m4/strsignal.m4: New file.
44976         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
44977         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
44978         * modules/strsignal: New file.
44979         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
44980         HAVE_DECL_STRSIGNAL.
44981
44982 2008-01-13  Bruno Haible  <bruno@clisp.org>
44983
44984         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
44985         locale encoding is not ASCII. Needed for OpenBSD 4.0.
44986         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
44987         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
44988
44989 2008-01-13  Bruno Haible  <bruno@clisp.org>
44990
44991         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
44992         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
44993         * lib/argp.h (__attribute__): Likewise.
44994         * lib/c-stack.c (__attribute__): Likewise.
44995         * lib/error.h (__attribute__): Likewise.
44996         * lib/fts.c (__attribute__): Likewise.
44997         * lib/openat.h (__attribute__): Likewise.
44998         * lib/stdio.in.h (__attribute__): Likewise.
44999         * lib/string.in.h (__attribute__): Likewise.
45000         * lib/utimens.c (__attribute__): Likewise.
45001         * lib/vasnprintf.h (__attribute__): Likewise.
45002         * lib/xalloc.h (__attribute__): Likewise.
45003         * lib/xprintf.h (__attribute__): Likewise.
45004         * lib/xstrtol.h (__attribute__): Likewise.
45005         * lib/xvasprintf.h (__attribute__): Likewise.
45006
45007 2008-01-12  Bruno Haible  <bruno@clisp.org>
45008
45009         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
45010         * doc/glibc-headers/a.out.texi: New file.
45011         * doc/glibc-headers/aliases.texi: New file.
45012         * doc/glibc-headers/alloca.texi: New file.
45013         * doc/glibc-headers/ar.texi: New file.
45014         * doc/glibc-headers/argp.texi: New file.
45015         * doc/glibc-headers/argz.texi: New file.
45016         * doc/glibc-headers/byteswap.texi: New file.
45017         * doc/glibc-headers/crypt.texi: New file.
45018         * doc/glibc-headers/endian.texi: New file.
45019         * doc/glibc-headers/envz.texi: New file.
45020         * doc/glibc-headers/err.texi: New file.
45021         * doc/glibc-headers/error.texi: New file.
45022         * doc/glibc-headers/execinfo.texi: New file.
45023         * doc/glibc-headers/fpu_control.texi: New file.
45024         * doc/glibc-headers/fstab.texi: New file.
45025         * doc/glibc-headers/fts.texi: New file.
45026         * doc/glibc-headers/getopt.texi: New file.
45027         * doc/glibc-headers/ieee754.texi: New file.
45028         * doc/glibc-headers/ifaddrs.texi: New file.
45029         * doc/glibc-headers/libintl.texi: New file.
45030         * doc/glibc-headers/mcheck.texi: New file.
45031         * doc/glibc-headers/mntent.texi: New file.
45032         * doc/glibc-headers/obstack.texi: New file.
45033         * doc/glibc-headers/paths.texi: New file.
45034         * doc/glibc-headers/printf.texi: New file.
45035         * doc/glibc-headers/pty.texi: New file.
45036         * doc/glibc-headers/resolv.texi: New file.
45037         * doc/glibc-headers/shadow.texi: New file.
45038         * doc/glibc-headers/sysexits.texi: New file.
45039         * doc/glibc-headers/ttyent.texi: New file.
45040
45041 2008-01-12  Jim Meyering  <meyering@redhat.com>
45042
45043         announce-gen: emit Gnulib's git-based version string.
45044         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
45045         New option --gnulib-version=V, where V is expected to be
45046         the output of running git describe in the gnulib directory.
45047         (get_tool_versions): Request feedback on xdelta.  I suspect it's
45048         not useful, and plan to stop publishing an xdelta file with each
45049         coreutils release.
45050
45051         * build-aux/announce-gen: Also check for lzma-compressed files.
45052
45053 2008-01-11  Bruno Haible  <bruno@clisp.org>
45054
45055         * tests/test-memmem.c (main): Increase maximum allowed time.
45056         * tests/test-strstr.c (main): Likewise.
45057
45058 2008-01-11  Bruno Haible  <bruno@clisp.org>
45059
45060         * doc/functions/memmem.texi: Add more precisions about platforms.
45061         * doc/functions/strstr.texi: Likewise.
45062
45063 2008-01-10  Eric Blake  <ebb9@byu.net>
45064
45065         * m4/strstr.m4: Delete cruft from copy-n-paste.
45066         Reported by Bruno Haible.
45067
45068 2008-01-10  Bruno Haible  <bruno@clisp.org>
45069
45070         Make c-strstr rely on strstr.
45071         * lib/c-strstr.c: Don't include str-kmp.h.
45072         (c_strstr): Define in terms of strstr.
45073         * modules/c-strstr (Files): Remove lib/str-kmp.h.
45074         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
45075
45076 2008-01-10  Bruno Haible  <bruno@clisp.org>
45077
45078         * doc/gnulib.texi (String Functions in C Locale): New section.
45079         * doc/c-ctype.texi: New file.
45080         * doc/c-strcase.texi: New file.
45081         * doc/c-strcaseeq.texi: New file.
45082         * doc/c-strcasestr.texi: New file.
45083         * doc/c-strstr.texi: New file.
45084         * doc/c-strtod.texi: New file.
45085         * doc/c-strtold.texi: New file.
45086
45087 2008-01-10  Eric Blake  <ebb9@byu.net>
45088
45089         * lib/relocatable.h: Fix a comment.
45090
45091 2008-01-10  Eric Blake  <ebb9@byu.net>
45092
45093         Share two-way algorithm.
45094         * lib/str-two-way.h: New file, merged from...
45095         * lib/memmem.c: ...here...
45096         * lib/strstr.c: ...and here.
45097         * modules/memmem (Files): Use it.
45098         * modules/strstr (Files): Likewise.
45099
45100         Avoid quadratic strstr implementations.
45101         * lib/strstr.c: New file.
45102         * m4/strstr.m4: Likewise.
45103         * modules/strstr: Likewise.
45104         * modules/strstr-tests: Likewise.
45105         * tests/test-strstr.c: Likewise.
45106         * lib/string.in.h (rpl_strstr): Declare.
45107         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
45108         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
45109         * modules/string (Makefile.am): Likewise.
45110         * MODULES.html.sh (string handling): Mention new module.
45111         * doc/functions/strstr.texi (strstr): Document the bug.
45112
45113 2008-01-10  Bruno Haible  <bruno@clisp.org>
45114
45115         * lib/relocatable.h (relocate): State whether result is freshly
45116         allocated or not.
45117         * lib/relocatable.c (relocate): Return a freshly allocated string
45118         instead of a pointer to a privately held string.
45119         Reported by Sylvain Beucler <beuc@gnu.org>.
45120
45121 2008-01-10  Colin Watson  <cjwatson@debian.org>
45122
45123         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
45124         s/S_ISNLK/S_ISLNK/.
45125
45126 2008-01-09  Bruno Haible  <bruno@clisp.org>
45127
45128         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
45129         and other files.
45130         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
45131         if it's only a guess.
45132         * modules/memmem: Simplify by depending on memmem-simple.
45133
45134 2008-01-09  Bruno Haible  <bruno@clisp.org>
45135
45136         Work around OpenBSD 4.0 tdelete() bug.
45137         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
45138         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
45139         macros and don't redefine the enum values.
45140         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
45141         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
45142         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
45143
45144 2008-01-09  Bruno Haible  <bruno@clisp.org>
45145
45146         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
45147         (main): Don't perform the tests if setlocale did not install a UTF-8
45148         locale. Needed on OpenBSD 4.0.
45149         * modules/wcwidth-tests (Depends-on): Add localcharset.
45150
45151 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
45152
45153         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
45154         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
45155         * NEWS: announce this.
45156         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
45157
45158 2008-01-09  Simon Josefsson  <simon@josefsson.org>
45159         and Eric Blake  <ebb9@byu.net>
45160
45161         Add memmem-simple module.
45162         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
45163         (gl_FUNC_MEMMEM): Separate performance from presence checks.
45164         * modules/memmem-simple: New file.
45165         * modules/memmem (Description): Tweak.
45166         * MODULES.html.sh (string handling): Mention new module.
45167         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
45168         addressed by memmem-simple.
45169         * NEWS: Document the difference.
45170
45171 2008-01-09  Eric Blake  <ebb9@byu.net>
45172
45173         Give gcc some memmem optimization hints.
45174         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
45175         (strcasestr): Declare as pure.
45176         * modules/memmem (Maintainer): Claim my implementation.
45177
45178 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45179
45180         Support AIX 6.1 and higher.
45181         * build-aux/config.libpath: Likewise.
45182         * build-aux/config.rpath: Likewise.
45183
45184 2008-01-08  Jim Meyering  <meyering@redhat.com>
45185             Bruno Haible  <bruno@clisp.org>
45186
45187         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
45188         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
45189         Reported by Peter Fales in
45190         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
45191
45192 2008-01-08  Bruno Haible  <bruno@clisp.org>
45193
45194         * modules/unictype/category-of (Depends-on): Add
45195         unictype/category-none.
45196         * modules/unictype/category-and-tests (Depends-on): Add
45197         unictype/category-{L,N,Lu,Nd}.
45198         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
45199         * modules/unictype/category-or-tests (Depends-on): Add
45200         unictype/category-{L,N}.
45201         * modules/unictype/category-name-tests (Depends-on): Add
45202         unictype/category-{Z,Nl}.
45203         Reported by Simon Josefsson.
45204
45205 2008-01-08  Bruno Haible  <bruno@clisp.org>
45206
45207         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
45208         convention better.
45209         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
45210         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
45211         Reported by Peter Miller <millerp@canb.auug.org.au>.
45212
45213 2008-01-08  Eric Blake  <ebb9@byu.net>
45214
45215         Rewrite memmem to guarantee linear complexity without malloc.
45216         * lib/memmem.c (memmem): Use Two-Way rather than
45217         Knuth-Morris-Pratt, to allow O(1) space usage.
45218         (critical_factorization, two_way_short_needle)
45219         (two_way_long_needle): New functions.
45220         (knuth_morris_pratt): Delete.
45221         * modules/memmem (Depends-on): No longer need malloca or stdbool.
45222         Add stdint.
45223         * tests/test-memmem.c (main): Add tests for periodic needle and
45224         sublinear performance.
45225         * doc/functions/memmem.texi (memmem): Document other deficiencies
45226         in cygwin and older glibc.
45227
45228 2008-01-08  Bruno Haible  <bruno@clisp.org>
45229
45230         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
45231         augmentation.
45232
45233 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
45234
45235         Add a configure time option: --disable-acl.
45236         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
45237         AC_ARG_ENABLE(acl).
45238
45239 2008-01-06  Simon Josefsson  <simon@josefsson.org>
45240
45241         * tests/test-localename.c: Don't include obsolete "setenv.h".
45242
45243         * modules/localename-tests (Depends-on): Need unsetenv.
45244
45245 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45246
45247         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
45248
45249 2008-01-06  Colin Watson  <cjwatson@debian.org>
45250
45251         * users.txt: Add man-db.
45252
45253 2008-01-07  Bruno Haible  <bruno@clisp.org>
45254
45255         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
45256         previous section name.
45257
45258 2008-01-07  Bruno Haible  <bruno@clisp.org>
45259
45260         * lib/progname.c (set_program_name): Don't strip off a leading
45261         "lt-" prefix outside a .libs directory.
45262         Suggested by Paul Eggert.
45263
45264 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
45265             Bruno Haible  <bruno@clisp.org>
45266
45267         Improve memory cleanup in 'relocatable' module.
45268         * lib/relocatable.h (compute_curr_prefix): Change return type to
45269         'char *'.
45270         * lib/relocatable.c (compute_curr_prefix): Change return type to
45271         'char *'. Free curr_installdir after use.
45272         (relocate): Free curr_prefix_better after use.
45273         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
45274
45275 2008-01-01  Bruno Haible  <bruno@clisp.org>
45276
45277         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
45278         failure on older glibc systems.
45279         Reported by Peter Fales <psfales@alcatel-lucent.com>.
45280
45281 2008-01-05  Eric Blake  <ebb9@byu.net>
45282
45283         Avoid quadratic system memmem.
45284         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
45285         Reported by Ralf Wildenhues.
45286
45287         Fix memmem test for mingw.
45288         * modules/memmem-tests (configure.ac): Check for alarm.
45289         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
45290         it.
45291         * doc/functions/memmem.texi: New file.
45292         * doc/gnulib.texi (Function Substitutes): Add memmem.
45293         Reported by Bruno Haible.
45294
45295 2008-01-04  Bruno Haible  <bruno@clisp.org>
45296
45297         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
45298         Require gl_HEADER_STRINGS_H_DEFAULTS, not
45299         gl_HEADER_STRING_H_DEFAULTS.
45300
45301 2008-01-04  Eric Blake  <ebb9@byu.net>
45302
45303         Shorten duration of memmem test.
45304         * tests/test-memmem.c (main): Use alarm to declare failure if test
45305         is taking too long.
45306         Reported by Ralf Wildenhues.
45307
45308 2007-12-21  Simon Josefsson  <simon@josefsson.org>
45309
45310         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
45311         string, needed by strerror.
45312
45313 2008-01-03  Colin Watson  <cjwatson@debian.org>
45314             Bruno Haible  <bruno@clisp.org>
45315
45316         * doc/gnulib-tool.texi (Localization): New section.
45317
45318 2008-01-02  Bruno Haible  <bruno@clisp.org>
45319
45320         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
45321         variables to 'unsigned char *' type.
45322         Reported by Paul Eggert.
45323
45324 2008-01-02  Jim Meyering  <jim@meyering.net>
45325
45326         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
45327
45328 2007-12-31  Jim Meyering  <jim@meyering.net>
45329
45330         Avoid use of private FTS type name.
45331         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
45332
45333 2007-12-30  Karl Berry  <karl@gnu.org>
45334
45335         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
45336         work around defect in Texinfo and/or the standalone Info browser.
45337
45338 2007-12-30  Bruno Haible  <bruno@clisp.org>
45339
45340         Unify 5 copies of the KMP code.
45341         * lib/str-kmp.h: New file.
45342         * lib/c-strcasestr.c: Include str-kmp.h.
45343         (knuth_morris_pratt): Remove function.
45344         (c_strcasestr): Update.
45345         * lib/c-strstr.c: Include str-kmp.h.
45346         (knuth_morris_pratt): Remove function.
45347         (c_strcasestr): Update.
45348         * lib/mbscasestr.c: Include str-kmp.h.
45349         (knuth_morris_pratt_unibyte): Remove function.
45350         * lib/mbsstr.c: Include str-kmp.h.
45351         (knuth_morris_pratt_unibyte): Remove function.
45352         * lib/strcasestr.c: Include str-kmp.h.
45353         (knuth_morris_pratt): Remove function.
45354         (strcasestr): Update.
45355         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
45356         * modules/c-strstr (Files): Likewise.
45357         * modules/mbscasestr (Files): Likewise.
45358         * modules/mbsstr (Files): Likewise.
45359         * modules/strcasestr (Files): Likewise.
45360         Suggested by Paul Eggert.
45361
45362 2007-12-30  Bruno Haible  <bruno@clisp.org>
45363
45364         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
45365         defined.
45366
45367 2007-12-30  Bruno Haible  <bruno@clisp.org>
45368
45369         * lib/xmalloca.h: Include xalloc.h.
45370         (xnmalloca): New macro.
45371
45372 2007-12-30  Bruno Haible  <bruno@clisp.org>
45373
45374         * lib/malloca.h (nmalloca): New macro.
45375         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
45376         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
45377         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
45378         knuth_morris_pratt_multibyte): Likewise.
45379         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
45380         knuth_morris_pratt_multibyte): Likewise.
45381         * lib/memmem.c (knuth_morris_pratt): Likewise.
45382         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
45383
45384 2007-12-25  Bruno Haible  <bruno@clisp.org>
45385
45386         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
45387         * lib/glob.c: Don't include openat.h.
45388         (link_exists2_p): Add back the code that deals with the
45389         !GLOB_ALTDIRFUNC case.
45390         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
45391         let it do the filename concatenation.
45392         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
45393         * modules/glob (Depends-on): Remove openat.
45394
45395 2007-12-31  Bruno Haible  <bruno@clisp.org>
45396
45397         * modules/dirfd (License): Change to LGPLv2+.
45398         Approved by Jim Meyering.
45399
45400 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
45401
45402         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
45403         when multiplying M by sizeof (size_t).
45404
45405 2007-12-10  Martin Lambers  <marlam@marlam.de>
45406
45407         Override getpagesize on mingw.
45408         * lib/getpagesize.c: New file.
45409         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
45410         * modules/getpagesize (Files): Add lib/getpagesize.c.
45411         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
45412         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45413         REPLACE_GETPAGESIZE.
45414         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
45415
45416 2007-12-25  Bruno Haible  <bruno@clisp.org>
45417
45418         * modules/localcharset (Notice): New field.
45419         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
45420         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
45421
45422 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
45423             Bruno Haible  <bruno@clisp.org>
45424
45425         Avoid using the syntax symbol() in formatted documentation.
45426         * MODULES.html.sh (func_module): When replacing symbol() with a
45427         hyperlink, remove the parentheses. Show an error if some remain.
45428         Recognize and render the '...' syntax.
45429         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
45430         Rework. Add paragraph about GCC's inlining.
45431         * doc/alloca.texi: Likewise.
45432         * doc/error.texi: Remove parentheses from symbol reference.
45433         * doc/gnulib-intro.texi: Likewise.
45434         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
45435         * modules/fnmatch (Description): Reword to say "the ... function".
45436         * modules/full-read (Description): Likewise.
45437         * modules/full-write (Description): Likewise.
45438         * modules/safe-read (Description): Likewise.
45439         * modules/safe-write (Description): Likewise.
45440         * modules/strchrnul (Description): Likewise.
45441         * modules/trim (Description): Likewise.
45442         * modules/error (Description): Remove parentheses from symbol
45443         references.
45444         * modules/verror (Description): Likewise.
45445         Reported by Karl Berry.
45446
45447 2007-12-25  Bruno Haible  <bruno@clisp.org>
45448
45449         Fixup after 2007-10-16 commit.
45450         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
45451
45452 2007-12-24  Bruno Haible  <bruno@clisp.org>
45453
45454         Make --enable-relocatable work with DESTDIR.
45455         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
45456         to compute installdir from destprog.
45457         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
45458         also set the RELOC_DESTDIR variable.
45459         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
45460
45461 2007-12-24  Bruno Haible  <bruno@clisp.org>
45462
45463         Fix link error due to xalloc_die().
45464         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
45465         of xreadlink.
45466         * lib/relocwrapper.c: Update comments.
45467         * build-aux/install-reloc: Remove xreadlink.c from file list.
45468         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
45469         xreadlink.c.
45470         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
45471
45472 2007-12-24  Bruno Haible  <bruno@clisp.org>
45473
45474         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
45475         * lib/setenv.h: Remove file.
45476         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
45477         lib/setenv.h.
45478         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
45479         (Depends-on): Add stdlib.
45480         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
45481         gl_FUNC_UNSETENV.
45482         (Include): Replace setenv.h with <stdlib.h>.
45483         * modules/unsetenv: New file.
45484         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
45485         * lib/unsetenv.c: Include <stdlib.h> first.
45486         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
45487         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
45488         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
45489         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
45490         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
45491         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
45492         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
45493         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
45494         * doc/functions/unsetenv.texi: Update.
45495         * modules/xsetenv (Depends-on): Add unsetenv.
45496         * modules/getdate (Depends-on): Likewise.
45497         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
45498         * lib/xsetenv.c: Don't include setenv.h.
45499         * lib/getdate.y: Likewise.
45500         * lib/relocwrapper.c: Likewise.
45501         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
45502         (Depends-on): Add stdlib.
45503         * NEWS: Mention the changes.
45504         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
45505
45506 2007-12-23  Bruno Haible  <bruno@clisp.org>
45507
45508         * lib/memmem.c (memmem): Use lowercase variable names. Tab
45509         indentation.
45510
45511 2007-12-23  Bruno Haible  <bruno@clisp.org>
45512
45513         * lib/c-strcasestr.c: Add more comments.
45514         * lib/c-strstr.c: Likewise.
45515         * lib/mbscasestr.c: Likewise.
45516         * lib/mbsstr.c: Likewise.
45517         * lib/strcasestr.c: Likewise.
45518         * lib/memmem.c: Likewise.
45519
45520 2007-12-23  Bruno Haible  <bruno@clisp.org>
45521
45522         * tests/test-memmem.c: Include <string.h> first.
45523
45524 2007-12-22  Bruno Haible  <bruno@clisp.org>
45525
45526         * gnulib-tool (func_create_testdir): Change $auxdir while generating
45527         the contents of $testsbase.
45528         Reported by Ralf Wildenhues.
45529
45530 2007-12-22  Bruno Haible  <bruno@clisp.org>
45531
45532         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
45533         two variables local_ldadd_before, local_ldadd_last.
45534
45535 2007-12-20  Eric Blake  <ebb9@byu.net>
45536
45537         Work around circular library issue when cross-compiling.
45538         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
45539         that progname.o does not need to pull in rpl_memcmp.
45540
45541 2007-12-19  Eric Blake  <ebb9@byu.net>
45542
45543         Fix memmem to avoid O(n^2) worst-case complexity.
45544         * lib/memmem.c (knuth_morris_pratt): New function.
45545         (memmem): Use it if first few naive iterations fail.
45546         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
45547         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
45548         * modules/memchr (License): Likewise.
45549         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
45550         malloca.
45551         * tests/test-memmem.c: Rewrite, borrowing ideas from
45552         test-mbsstr1.c; the old version wouldn't even compile!
45553         * modules/memmem-tests: New file.
45554         * lib/string.in.h (rpl_memmem): Add declaration.
45555         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
45556         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
45557         REPLACE_MEMMEM.
45558
45559 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
45560
45561         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
45562         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
45563         before any system include files, and undef after them all.  This
45564         should fix a problem on VMS reported by John E. Malmberg in
45565         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
45566
45567 2007-12-17  Eric Blake  <ebb9@byu.net>
45568
45569         Revert addition of verify, for BSD/OS.
45570         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
45571         can't handle large files, for the sake of obsolete platforms.
45572         * modules/fseeko (Depends-on): Remove verify.
45573         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
45574         * doc/functions/ftello.texi (ftello): Likewise.
45575         * doc/functions/fgetpos.texi (fgetpos): Likewise.
45576         Reported by Larry Jones.
45577
45578 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
45579
45580         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
45581         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
45582
45583 2007-12-17  Jim Meyering  <meyering@redhat.com>
45584
45585         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
45586         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
45587         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
45588         * modules/getcwd (Depends-on): Add openat.
45589         Reported by Petr Salinger.
45590
45591 2007-12-17  Bruno Haible  <bruno@clisp.org>
45592
45593         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
45594         avoid a segmentation fault of the configure test on x86_64 systems.
45595
45596 2007-12-15  Jim Meyering  <meyering@redhat.com>
45597
45598         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
45599
45600 2007-12-13  Eric Blake  <ebb9@byu.net>
45601
45602         Another fseek test.
45603         * tests/test-fseek.c (main): Also test ungetc handling.
45604         * tests/test-fseeko.c (main): Likewise.
45605         * modules/fseeko (Depends-on): Add verify.
45606         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
45607         large.
45608         Reported by Larry Jones.
45609
45610         Fix fseeko on mingw.
45611         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
45612         seek.
45613
45614         Beef up fseek tests.
45615         * tests/test-fseek.c (main): Also test eof handling.
45616         * tests/test-fseeko.c (main): Likewise.
45617         Reported by Larry Jones.
45618
45619 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
45620
45621         Fix fseeko on BSD-based platforms.
45622         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
45623         successful seek.
45624
45625 2007-12-12  Eric Blake  <ebb9@byu.net>
45626
45627         Allow circular dependency of separate libtests.a
45628         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
45629         when use_libtests.
45630
45631 2007-12-11  Eric Blake  <ebb9@byu.net>
45632
45633         Fix bug with -0.0L in previous patch.
45634         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
45635         * tests/test-isnan.c (main): Also test on zeroes.
45636         * tests/test-isnanf.c (main): Likewise.
45637         * tests/test-isnanl.h (main): Likewise.
45638
45639         Detect pseudo-denormals on x86 even when cross-compiling.
45640         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
45641         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
45642         invalid bit patterns that happen to satisfy ==.
45643
45644         Avoid link failures with separate libtests.a.
45645         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
45646         last, to satisfy circular dependencies.
45647
45648 2007-12-11  Eric Blake  <ebb9@byu.net>
45649         and Bruno Haible  <bruno@clisp.org>
45650
45651         Fix OpenBSD 4.0 <float.h> handling of long double.
45652         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
45653         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
45654         * doc/headers/float.texi (float.h): Document OpenBSD bug.
45655
45656 2007-12-11  Jim Meyering  <meyering@redhat.com>
45657
45658         * users.txt: Add libvirt.
45659
45660         Support versions of autoconf prior to 2.59c.
45661         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
45662         if it is not already defined.
45663
45664 2007-12-09  Bruno Haible  <bruno@clisp.org>
45665
45666         Let 'gnulib-tool --import' collect sources needed for the tests in
45667         tests/ rather than in lib/.
45668         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
45669         argument. If true, add rules to generate libtests.a, and put libtests.a
45670         into $(LDADD). Consider source files in subdirectories and set
45671         uses_subdirs.
45672         (func_emit_initmacro_start, func_emit_initmacro_end,
45673         func_emit_initmacro_done): Pass all arguments explicitly.
45674         (func_import): Determine two module lists main_modules,
45675         testsrelated_modules. Determine use_libtests. Determine two variables
45676         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
45677         instead of just sed_transform_lib_file. Determine two variables
45678         main_files and testsrelated_files. Compute 'files' as the union of
45679         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
45680         func_add_or_update. In the generated gnulib-comp.m4, collect the
45681         object files for tests/ in different variables than those for lib/.
45682         Substitute LIBTESTS_LIBDEPS.
45683         (func_create_testdir): Combine the uses_subdirs results from
45684         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
45685
45686 2007-12-09  Bruno Haible  <bruno@clisp.org>
45687
45688         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
45689         the build-aux directory.
45690
45691 2007-12-09  Bruno Haible  <bruno@clisp.org>
45692
45693         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
45694         introduced on 2006-09-09.
45695
45696 2007-12-07  Jim Meyering  <meyering@redhat.com>
45697
45698         Let these macros work also with autoconf-2.59.
45699         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
45700         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
45701         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
45702
45703 2007-12-06  Jim Meyering  <meyering@redhat.com>
45704
45705         Avoid a configure-time syntax error in gl_FUNC_ACL.
45706         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
45707         function in each branch, before testing the cache variable.
45708
45709 2007-12-04  Eric Blake  <ebb9@byu.net>
45710
45711         Make scripts executable.
45712         * build-aux/config.guess: Add execute permissions.
45713         * build-aux/config.sub: Likewise.
45714         * build-aux/gendocs.sh: Likewise.
45715
45716         Fix frexp on mingw.
45717         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
45718         cross-compiling.
45719         * doc/functions/frexp.texi (frexp): Document the bug.
45720
45721         Make cygwin fseeko check more reliable.
45722         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
45723         version numbers, rather than unrelated feature check.
45724         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
45725         * doc/functions/ftello.texi (ftello): Likewise.
45726         Reported by Bruno Haible.
45727
45728         * m4/strerror.m4: Bump version number.
45729
45730 2007-12-03  Bruno Haible  <bruno@clisp.org>
45731
45732         * doc/functions/mprotect.texi: Mention the mingw problem.
45733
45734 2007-12-03  Eric Blake  <ebb9@byu.net>
45735
45736         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
45737         REPLACE_STRERROR is initialized before this macro.
45738
45739 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
45740
45741         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
45742         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
45743         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
45744         put -lsec in even for programs other than 'ls'.  This fixes a problem
45745         for gettext reported by Bruno Haible in
45746         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
45747         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
45748         Add support for Solaris 10.  This isn't efficient, but should get the
45749         job done for now.
45750
45751 2007-12-03  James Youngman  <jay@gnu.org>
45752
45753         * doc/regexprops-generic.texi: change "an close-group" to "a
45754         close-group" and "illegal" to "not allowed".
45755
45756 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45757
45758         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
45759         pr_byname.h. Needed for the rare case when the maintainer has done
45760         "make maintainer-clean" in the source directory and then attempts a
45761         build outside the source directory.
45762         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
45763         scripts_byname.h.
45764
45765 2007-12-02  Martin Lambers <marlam@marlam.de>
45766             Bruno Haible  <bruno@clisp.org>
45767
45768         * lib/getpagesize.h: Remove file.
45769         * lib/unistd.in.h: Include declaration of getpagesize here.
45770         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
45771         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
45772         HAVE_SYS_PARAM_H.
45773         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
45774         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
45775         * modules/getpagesize (Files): Remove lib/getpagesize.h.
45776         (Depends-on): Add unistd.
45777         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45778         (Include): Use <unistd.h> instead of getpagesize.h.
45779         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
45780         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
45781         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
45782         gl_GETPAGESIZE invocation, already handled by module dependency.
45783         * lib/pagealign_alloc.c: Don't include getpagesize.h.
45784
45785 2007-12-02  Bruno Haible  <bruno@clisp.org>
45786
45787         * modules/strings-tests: New file.
45788         * tests/test-strings.c: New file.
45789
45790         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
45791         * lib/strings.in.h: New file.
45792         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
45793         * m4/strings_h.m4: New file.
45794         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
45795         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
45796         * modules/strings: New file.
45797         * modules/string (Makefile.am): Update.
45798         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
45799         Reported by Karl Berry.
45800
45801 2007-12-01  Eric Blake  <ebb9@byu.net>
45802
45803         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
45804         accomodate fix in cygwin 1.5.25.
45805
45806 2007-12-01  Jim Meyering  <meyering@redhat.com>
45807
45808         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
45809         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
45810         that would inhibit utf8-optimization of a regexp containing line-
45811         or buffer-anchors, e.g., `^', `$'.
45812
45813 2007-11-30  Bruno Haible  <bruno@clisp.org>
45814
45815         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
45816         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
45817         glthread_recursive_lock_init.
45818         * lib/lock.c (glthread_recursive_lock_init)
45819         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
45820         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45821
45822 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
45823
45824         New function qset_acl, like set_acl but with syscall semantics.
45825         * lib/acl.h (qset_acl): New decl.
45826         * lib/acl.c (qset_acl): New function.
45827         (set_acl): Use new function.  Use more-consistent diagnostics.
45828
45829 2007-11-28  Jim Meyering  <meyering@redhat.com>
45830
45831         * modules/physmem (License): Change from GPL to LGPLv2+.
45832
45833 2007-11-26  Bruno Haible  <bruno@clisp.org>
45834
45835         * lib/vasnprintf.c (decode_long_double): Don't abort if the
45836         'long double' type has excess precision.
45837         Reported by Jim Meyering in
45838         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
45839
45840 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45841
45842         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
45843         Sync from <http://gnu.org/licenses>.
45844         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
45845         with license text from same location.
45846         * doc/maintain.texi, doc/standards.texi:  Sync from
45847         <http://savannah.gnu.org/projects/gnustandards>.
45848
45849 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
45850         and Jim Meyering  <meyering@redhat.com>
45851
45852         Adjust getdate' grammar to accept a slightly more regular language.
45853         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
45854         Before, the former was rejected.
45855         * lib/getdate.y (digits_to_date_time): New function, factored
45856         out of ...
45857         (number): ...here.  Just call digits_to_date_time.
45858         (hybrid): New non-terminal to handle an <unsigned number,
45859         signed relative offset> sequence consistently.
45860
45861 2007-11-18  Jim Meyering  <meyering@redhat.com>
45862
45863         Pull my changes from coreutils:
45864         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
45865         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
45866         use of $gnulib_tool_option_extras, so that it's separated from the
45867         preceding argument.
45868
45869         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
45870         * build-aux/bootstrap (cp_mark_as_generated): Create any required
45871         parent destination directories before copying a file into place.
45872
45873 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
45874
45875         bootstrap: work also with 4-argument variant of AC_INIT
45876         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
45877
45878 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
45879
45880         Port test-getaddrinfo to Solaris.
45881         Problem reported by Bruno Haible in
45882         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
45883         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
45884         explanation of setting 'hints'.
45885         Don't reject an implementation merely because it returns EAI_SERVICE.
45886         (EAI_SERVICE): Define to 0 if not defined.
45887
45888 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
45889
45890         The license of gnu-make and posix-shell is now "GPLed build tool".
45891         * modules/gnu-make (License): Likewise.
45892         * modules/posix-shell (License): Likewise.
45893
45894         New module posix-shell, for determining a POSIX shell
45895         or perhaps something that is close enough to a POSIX shell.
45896         * m4/posix-shell.m4: New file.
45897         * modules/posix-shell: New file.
45898
45899         * MODULES.html.sh: Mention new module.
45900
45901         New module gnu-make, for determining whether we're using GNU Make.
45902         * m4/gnu-make.m4: New file.
45903         * modules/gnu-make: New file.
45904         * MODULES.html.sh: Mention new module.
45905
45906 2007-11-14  Jim Meyering  <meyering@redhat.com>
45907
45908         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
45909         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
45910         use this macro to create a function _definition_.
45911         Remove useless "#undef ARGMATCH_DIE".
45912
45913 2007-11-14  Bruno Haible  <bruno@clisp.org>
45914
45915         * lib/config.charset: Update for OpenBSD 4.1.
45916         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
45917
45918 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
45919
45920         Document 64-bit #if problems in stdint.texi.
45921         * doc/headers/stdint.texi (stdint.h): Mention problems with
45922         64-bit-#if, and how to work around them.
45923
45924         Don't insist on 'long long int' support in the preprocessor.  It
45925         breaks too many things.  For example, PRIdMAX still uses a 'long
45926         long int' format with the latest Sun compiler, even though
45927         HAVE_LONG_LONG_INT isn't defined due to that compiler's
45928         preprocessor problem.  This causes the latest coreutils to dump
45929         core on Solaris 10 sparc with the Sun C compiler.
45930         Instead, fix the 2007-10-16 problem in a different way, by evaluating
45931         the troublesome expressions at configure-time, not at #if-time.
45932         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
45933         preprocessor.
45934         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
45935         compile-time C checks, done at 'configure'-time.
45936         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
45937         * modules/inttypes (Makefile): Substitute the new symbols that
45938         gl_INTTYPES_H now generates.
45939         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
45940
45941 2007-11-12  Bruno Haible  <bruno@clisp.org>
45942
45943         Tests for Unicode character classification functions.
45944
45945         * modules/unictype/bidicategory-byname-tests: New file.
45946         * modules/unictype/bidicategory-name-tests: New file.
45947         * modules/unictype/bidicategory-of-tests: New file.
45948         * modules/unictype/bidicategory-test-tests: New file.
45949         * modules/unictype/block-list-tests: New file.
45950         * modules/unictype/block-of-tests: New file.
45951         * modules/unictype/block-test-tests: New file.
45952         * modules/unictype/category-C-tests: New file.
45953         * modules/unictype/category-Cc-tests: New file.
45954         * modules/unictype/category-Cf-tests: New file.
45955         * modules/unictype/category-Cn-tests: New file.
45956         * modules/unictype/category-Co-tests: New file.
45957         * modules/unictype/category-Cs-tests: New file.
45958         * modules/unictype/category-L-tests: New file.
45959         * modules/unictype/category-Ll-tests: New file.
45960         * modules/unictype/category-Lm-tests: New file.
45961         * modules/unictype/category-Lo-tests: New file.
45962         * modules/unictype/category-Lt-tests: New file.
45963         * modules/unictype/category-Lu-tests: New file.
45964         * modules/unictype/category-M-tests: New file.
45965         * modules/unictype/category-Mc-tests: New file.
45966         * modules/unictype/category-Me-tests: New file.
45967         * modules/unictype/category-Mn-tests: New file.
45968         * modules/unictype/category-N-tests: New file.
45969         * modules/unictype/category-Nd-tests: New file.
45970         * modules/unictype/category-Nl-tests: New file.
45971         * modules/unictype/category-No-tests: New file.
45972         * modules/unictype/category-P-tests: New file.
45973         * modules/unictype/category-Pc-tests: New file.
45974         * modules/unictype/category-Pd-tests: New file.
45975         * modules/unictype/category-Pe-tests: New file.
45976         * modules/unictype/category-Pf-tests: New file.
45977         * modules/unictype/category-Pi-tests: New file.
45978         * modules/unictype/category-Po-tests: New file.
45979         * modules/unictype/category-Ps-tests: New file.
45980         * modules/unictype/category-S-tests: New file.
45981         * modules/unictype/category-Sc-tests: New file.
45982         * modules/unictype/category-Sk-tests: New file.
45983         * modules/unictype/category-Sm-tests: New file.
45984         * modules/unictype/category-So-tests: New file.
45985         * modules/unictype/category-Z-tests: New file.
45986         * modules/unictype/category-Zl-tests: New file.
45987         * modules/unictype/category-Zp-tests: New file.
45988         * modules/unictype/category-Zs-tests: New file.
45989         * modules/unictype/category-and-not-tests: New file.
45990         * modules/unictype/category-and-tests: New file.
45991         * modules/unictype/category-byname-tests: New file.
45992         * modules/unictype/category-name-tests: New file.
45993         * modules/unictype/category-none-tests: New file.
45994         * modules/unictype/category-of-tests: New file.
45995         * modules/unictype/category-or-tests: New file.
45996         * modules/unictype/category-test-withtable-tests: New file.
45997         * modules/unictype/combining-class-tests: New file.
45998         * modules/unictype/ctype-alnum-tests: New file.
45999         * modules/unictype/ctype-alpha-tests: New file.
46000         * modules/unictype/ctype-blank-tests: New file.
46001         * modules/unictype/ctype-cntrl-tests: New file.
46002         * modules/unictype/ctype-digit-tests: New file.
46003         * modules/unictype/ctype-graph-tests: New file.
46004         * modules/unictype/ctype-lower-tests: New file.
46005         * modules/unictype/ctype-print-tests: New file.
46006         * modules/unictype/ctype-punct-tests: New file.
46007         * modules/unictype/ctype-space-tests: New file.
46008         * modules/unictype/ctype-upper-tests: New file.
46009         * modules/unictype/ctype-xdigit-tests: New file.
46010         * modules/unictype/decimal-digit-tests: New file.
46011         * modules/unictype/digit-tests: New file.
46012         * modules/unictype/mirror-tests: New file.
46013         * modules/unictype/numeric-tests: New file.
46014         * modules/unictype/property-alphabetic-tests: New file.
46015         * modules/unictype/property-ascii-hex-digit-tests: New file.
46016         * modules/unictype/property-bidi-arabic-digit-tests: New file.
46017         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
46018         * modules/unictype/property-bidi-block-separator-tests: New file.
46019         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
46020         * modules/unictype/property-bidi-common-separator-tests: New file.
46021         * modules/unictype/property-bidi-control-tests: New file.
46022         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
46023         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
46024         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
46025         * modules/unictype/property-bidi-european-digit-tests: New file.
46026         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
46027         * modules/unictype/property-bidi-left-to-right-tests: New file.
46028         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
46029         * modules/unictype/property-bidi-other-neutral-tests: New file.
46030         * modules/unictype/property-bidi-pdf-tests: New file.
46031         * modules/unictype/property-bidi-segment-separator-tests: New file.
46032         * modules/unictype/property-bidi-whitespace-tests: New file.
46033         * modules/unictype/property-byname-tests: New file.
46034         * modules/unictype/property-combining-tests: New file.
46035         * modules/unictype/property-composite-tests: New file.
46036         * modules/unictype/property-currency-symbol-tests: New file.
46037         * modules/unictype/property-dash-tests: New file.
46038         * modules/unictype/property-decimal-digit-tests: New file.
46039         * modules/unictype/property-default-ignorable-code-point-tests: New file.
46040         * modules/unictype/property-deprecated-tests: New file.
46041         * modules/unictype/property-diacritic-tests: New file.
46042         * modules/unictype/property-extender-tests: New file.
46043         * modules/unictype/property-format-control-tests: New file.
46044         * modules/unictype/property-grapheme-base-tests: New file.
46045         * modules/unictype/property-grapheme-extend-tests: New file.
46046         * modules/unictype/property-grapheme-link-tests: New file.
46047         * modules/unictype/property-hex-digit-tests: New file.
46048         * modules/unictype/property-hyphen-tests: New file.
46049         * modules/unictype/property-id-continue-tests: New file.
46050         * modules/unictype/property-id-start-tests: New file.
46051         * modules/unictype/property-ideographic-tests: New file.
46052         * modules/unictype/property-ids-binary-operator-tests: New file.
46053         * modules/unictype/property-ids-trinary-operator-tests: New file.
46054         * modules/unictype/property-ignorable-control-tests: New file.
46055         * modules/unictype/property-iso-control-tests: New file.
46056         * modules/unictype/property-join-control-tests: New file.
46057         * modules/unictype/property-left-of-pair-tests: New file.
46058         * modules/unictype/property-line-separator-tests: New file.
46059         * modules/unictype/property-logical-order-exception-tests: New file.
46060         * modules/unictype/property-lowercase-tests: New file.
46061         * modules/unictype/property-math-tests: New file.
46062         * modules/unictype/property-non-break-tests: New file.
46063         * modules/unictype/property-not-a-character-tests: New file.
46064         * modules/unictype/property-numeric-tests: New file.
46065         * modules/unictype/property-other-alphabetic-tests: New file.
46066         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
46067         * modules/unictype/property-other-grapheme-extend-tests: New file.
46068         * modules/unictype/property-other-id-continue-tests: New file.
46069         * modules/unictype/property-other-id-start-tests: New file.
46070         * modules/unictype/property-other-lowercase-tests: New file.
46071         * modules/unictype/property-other-math-tests: New file.
46072         * modules/unictype/property-other-uppercase-tests: New file.
46073         * modules/unictype/property-paired-punctuation-tests: New file.
46074         * modules/unictype/property-paragraph-separator-tests: New file.
46075         * modules/unictype/property-pattern-syntax-tests: New file.
46076         * modules/unictype/property-pattern-white-space-tests: New file.
46077         * modules/unictype/property-private-use-tests: New file.
46078         * modules/unictype/property-punctuation-tests: New file.
46079         * modules/unictype/property-quotation-mark-tests: New file.
46080         * modules/unictype/property-radical-tests: New file.
46081         * modules/unictype/property-sentence-terminal-tests: New file.
46082         * modules/unictype/property-soft-dotted-tests: New file.
46083         * modules/unictype/property-space-tests: New file.
46084         * modules/unictype/property-terminal-punctuation-tests: New file.
46085         * modules/unictype/property-test-tests: New file.
46086         * modules/unictype/property-titlecase-tests: New file.
46087         * modules/unictype/property-unassigned-code-value-tests: New file.
46088         * modules/unictype/property-unified-ideograph-tests: New file.
46089         * modules/unictype/property-uppercase-tests: New file.
46090         * modules/unictype/property-variation-selector-tests: New file.
46091         * modules/unictype/property-white-space-tests: New file.
46092         * modules/unictype/property-xid-continue-tests: New file.
46093         * modules/unictype/property-xid-start-tests: New file.
46094         * modules/unictype/property-zero-width-tests: New file.
46095         * modules/unictype/scripts-tests: New file.
46096         * modules/unictype/syntax-c-ident-tests: New file.
46097         * modules/unictype/syntax-c-whitespace-tests: New file.
46098         * modules/unictype/syntax-java-ident-tests: New file.
46099         * modules/unictype/syntax-java-whitespace-tests: New file.
46100         * tests/unictype/test-bidi_byname.c: New file.
46101         * tests/unictype/test-bidi_name.c: New file.
46102         * tests/unictype/test-bidi_of.c: New file.
46103         * tests/unictype/test-bidi_test.c: New file.
46104         * tests/unictype/test-block_list.c: New file.
46105         * tests/unictype/test-block_of.c: New file.
46106         * tests/unictype/test-block_test.c: New file.
46107         * tests/unictype/test-categ_and.c: New file.
46108         * tests/unictype/test-categ_and_not.c: New file.
46109         * tests/unictype/test-categ_byname.c: New file.
46110         * tests/unictype/test-categ_name.c: New file.
46111         * tests/unictype/test-categ_none.c: New file.
46112         * tests/unictype/test-categ_of.c: New file.
46113         * tests/unictype/test-categ_or.c: New file.
46114         * tests/unictype/test-categ_test_withtable.c: New file.
46115         * tests/unictype/test-combining.c: New file.
46116         * tests/unictype/test-decdigit.c: New file.
46117         * tests/unictype/test-digit.c: New file.
46118         * tests/unictype/test-mirror.c: New file.
46119         * tests/unictype/test-numeric.c: New file.
46120         * tests/unictype/test-pr_byname.c: New file.
46121         * tests/unictype/test-pr_test.c: New file.
46122         * tests/unictype/test-predicate-part1.h: New file.
46123         * tests/unictype/test-predicate-part2.h: New file.
46124         * tests/unictype/test-scripts.c: New file.
46125         * tests/unictype/test-sy_c_ident.c: New file.
46126         * tests/unictype/test-sy_java_ident.c: New file.
46127
46128         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
46129         for Unicode 5.0.0.
46130         * tests/unictype/test-categ_Cc.c: Likewise.
46131         * tests/unictype/test-categ_Cf.c: Likewise.
46132         * tests/unictype/test-categ_Cn.c: Likewise.
46133         * tests/unictype/test-categ_Co.c: Likewise.
46134         * tests/unictype/test-categ_Cs.c: Likewise.
46135         * tests/unictype/test-categ_L.c: Likewise.
46136         * tests/unictype/test-categ_Ll.c: Likewise.
46137         * tests/unictype/test-categ_Lm.c: Likewise.
46138         * tests/unictype/test-categ_Lo.c: Likewise.
46139         * tests/unictype/test-categ_Lt.c: Likewise.
46140         * tests/unictype/test-categ_Lu.c: Likewise.
46141         * tests/unictype/test-categ_M.c: Likewise.
46142         * tests/unictype/test-categ_Mc.c: Likewise.
46143         * tests/unictype/test-categ_Me.c: Likewise.
46144         * tests/unictype/test-categ_Mn.c: Likewise.
46145         * tests/unictype/test-categ_N.c: Likewise.
46146         * tests/unictype/test-categ_Nd.c: Likewise.
46147         * tests/unictype/test-categ_Nl.c: Likewise.
46148         * tests/unictype/test-categ_No.c: Likewise.
46149         * tests/unictype/test-categ_P.c: Likewise.
46150         * tests/unictype/test-categ_Pc.c: Likewise.
46151         * tests/unictype/test-categ_Pd.c: Likewise.
46152         * tests/unictype/test-categ_Pe.c: Likewise.
46153         * tests/unictype/test-categ_Pf.c: Likewise.
46154         * tests/unictype/test-categ_Pi.c: Likewise.
46155         * tests/unictype/test-categ_Po.c: Likewise.
46156         * tests/unictype/test-categ_Ps.c: Likewise.
46157         * tests/unictype/test-categ_S.c: Likewise.
46158         * tests/unictype/test-categ_Sc.c: Likewise.
46159         * tests/unictype/test-categ_Sk.c: Likewise.
46160         * tests/unictype/test-categ_Sm.c: Likewise.
46161         * tests/unictype/test-categ_So.c: Likewise.
46162         * tests/unictype/test-categ_Z.c: Likewise.
46163         * tests/unictype/test-categ_Zl.c: Likewise.
46164         * tests/unictype/test-categ_Zp.c: Likewise.
46165         * tests/unictype/test-categ_Zs.c: Likewise.
46166         * tests/unictype/test-ctype_alnum.c: Likewise.
46167         * tests/unictype/test-ctype_alpha.c: Likewise.
46168         * tests/unictype/test-ctype_blank.c: Likewise.
46169         * tests/unictype/test-ctype_cntrl.c: Likewise.
46170         * tests/unictype/test-ctype_digit.c: Likewise.
46171         * tests/unictype/test-ctype_graph.c: Likewise.
46172         * tests/unictype/test-ctype_lower.c: Likewise.
46173         * tests/unictype/test-ctype_print.c: Likewise.
46174         * tests/unictype/test-ctype_punct.c: Likewise.
46175         * tests/unictype/test-ctype_space.c: Likewise.
46176         * tests/unictype/test-ctype_upper.c: Likewise.
46177         * tests/unictype/test-ctype_xdigit.c: Likewise.
46178         * tests/unictype/test-decdigit.h: Likewise.
46179         * tests/unictype/test-digit.h: Likewise.
46180         * tests/unictype/test-numeric.h: Likewise.
46181         * tests/unictype/test-pr_alphabetic.c: Likewise.
46182         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
46183         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
46184         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
46185         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
46186         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
46187         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
46188         * tests/unictype/test-pr_bidi_control.c: Likewise.
46189         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
46190         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
46191         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
46192         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
46193         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
46194         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
46195         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
46196         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
46197         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
46198         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
46199         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
46200         * tests/unictype/test-pr_combining.c: Likewise.
46201         * tests/unictype/test-pr_composite.c: Likewise.
46202         * tests/unictype/test-pr_currency_symbol.c: Likewise.
46203         * tests/unictype/test-pr_dash.c: Likewise.
46204         * tests/unictype/test-pr_decimal_digit.c: Likewise.
46205         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
46206         * tests/unictype/test-pr_deprecated.c: Likewise.
46207         * tests/unictype/test-pr_diacritic.c: Likewise.
46208         * tests/unictype/test-pr_extender.c: Likewise.
46209         * tests/unictype/test-pr_format_control.c: Likewise.
46210         * tests/unictype/test-pr_grapheme_base.c: Likewise.
46211         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
46212         * tests/unictype/test-pr_grapheme_link.c: Likewise.
46213         * tests/unictype/test-pr_hex_digit.c: Likewise.
46214         * tests/unictype/test-pr_hyphen.c: Likewise.
46215         * tests/unictype/test-pr_id_continue.c: Likewise.
46216         * tests/unictype/test-pr_id_start.c: Likewise.
46217         * tests/unictype/test-pr_ideographic.c: Likewise.
46218         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
46219         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
46220         * tests/unictype/test-pr_ignorable_control.c: Likewise.
46221         * tests/unictype/test-pr_iso_control.c: Likewise.
46222         * tests/unictype/test-pr_join_control.c: Likewise.
46223         * tests/unictype/test-pr_left_of_pair.c: Likewise.
46224         * tests/unictype/test-pr_line_separator.c: Likewise.
46225         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
46226         * tests/unictype/test-pr_lowercase.c: Likewise.
46227         * tests/unictype/test-pr_math.c: Likewise.
46228         * tests/unictype/test-pr_non_break.c: Likewise.
46229         * tests/unictype/test-pr_not_a_character.c: Likewise.
46230         * tests/unictype/test-pr_numeric.c: Likewise.
46231         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
46232         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
46233         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
46234         * tests/unictype/test-pr_other_id_continue.c: Likewise.
46235         * tests/unictype/test-pr_other_id_start.c: Likewise.
46236         * tests/unictype/test-pr_other_lowercase.c: Likewise.
46237         * tests/unictype/test-pr_other_math.c: Likewise.
46238         * tests/unictype/test-pr_other_uppercase.c: Likewise.
46239         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
46240         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
46241         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
46242         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
46243         * tests/unictype/test-pr_private_use.c: Likewise.
46244         * tests/unictype/test-pr_punctuation.c: Likewise.
46245         * tests/unictype/test-pr_quotation_mark.c: Likewise.
46246         * tests/unictype/test-pr_radical.c: Likewise.
46247         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
46248         * tests/unictype/test-pr_soft_dotted.c: Likewise.
46249         * tests/unictype/test-pr_space.c: Likewise.
46250         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
46251         * tests/unictype/test-pr_titlecase.c: Likewise.
46252         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
46253         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
46254         * tests/unictype/test-pr_uppercase.c: Likewise.
46255         * tests/unictype/test-pr_variation_selector.c: Likewise.
46256         * tests/unictype/test-pr_white_space.c: Likewise.
46257         * tests/unictype/test-pr_xid_continue.c: Likewise.
46258         * tests/unictype/test-pr_xid_start.c: Likewise.
46259         * tests/unictype/test-pr_zero_width.c: Likewise.
46260         * tests/unictype/test-sy_c_whitespace.c: Likewise.
46261         * tests/unictype/test-sy_java_whitespace.c: Likewise.
46262
46263 2007-11-12  Bruno Haible  <bruno@clisp.org>
46264
46265         Unicode character classification functions.
46266         * lib/unictype.h: New file.
46267         * modules/unictype/base: New file.
46268         * modules/unictype/category-L: New file.
46269         * modules/unictype/category-Lu: New file.
46270         * modules/unictype/category-Ll: New file.
46271         * modules/unictype/category-Lt: New file.
46272         * modules/unictype/category-Lm: New file.
46273         * modules/unictype/category-Lo: New file.
46274         * modules/unictype/category-M: New file.
46275         * modules/unictype/category-Mn: New file.
46276         * modules/unictype/category-Mc: New file.
46277         * modules/unictype/category-Me: New file.
46278         * modules/unictype/category-N: New file.
46279         * modules/unictype/category-Nd: New file.
46280         * modules/unictype/category-Nl: New file.
46281         * modules/unictype/category-No: New file.
46282         * modules/unictype/category-P: New file.
46283         * modules/unictype/category-Pc: New file.
46284         * modules/unictype/category-Pd: New file.
46285         * modules/unictype/category-Ps: New file.
46286         * modules/unictype/category-Pe: New file.
46287         * modules/unictype/category-Pi: New file.
46288         * modules/unictype/category-Pf: New file.
46289         * modules/unictype/category-Po: New file.
46290         * modules/unictype/category-S: New file.
46291         * modules/unictype/category-Sm: New file.
46292         * modules/unictype/category-Sc: New file.
46293         * modules/unictype/category-Sk: New file.
46294         * modules/unictype/category-So: New file.
46295         * modules/unictype/category-Z: New file.
46296         * modules/unictype/category-Zs: New file.
46297         * modules/unictype/category-Zl: New file.
46298         * modules/unictype/category-Zp: New file.
46299         * modules/unictype/category-C: New file.
46300         * modules/unictype/category-Cc: New file.
46301         * modules/unictype/category-Cf: New file.
46302         * modules/unictype/category-Cs: New file.
46303         * modules/unictype/category-Co: New file.
46304         * modules/unictype/category-Cn: New file.
46305         * modules/unictype/category-or: New file.
46306         * modules/unictype/category-of: New file.
46307         * modules/unictype/category-test: New file.
46308         * modules/unictype/category-test-withtable: New file.
46309         * modules/unictype/category-byname: New file.
46310         * modules/unictype/category-none: New file.
46311         * modules/unictype/category-and: New file.
46312         * modules/unictype/category-and-not: New file.
46313         * modules/unictype/category-name: New file.
46314         * modules/unictype/combining-class: New file.
46315         * modules/unictype/category-all: New file.
46316         * modules/unictype/bidicategory-all: New file.
46317         * modules/unictype/bidicategory-byname: New file.
46318         * modules/unictype/bidicategory-name: New file.
46319         * modules/unictype/bidicategory-of: New file.
46320         * modules/unictype/bidicategory-test: New file.
46321         * modules/unictype/decimal-digit: New file.
46322         * modules/unictype/digit: New file.
46323         * modules/unictype/numeric: New file.
46324         * modules/unictype/mirror: New file.
46325         * modules/unictype/property-white-space: New file.
46326         * modules/unictype/property-alphabetic: New file.
46327         * modules/unictype/property-other-alphabetic: New file.
46328         * modules/unictype/property-not-a-character: New file.
46329         * modules/unictype/property-default-ignorable-code-point: New file.
46330         * modules/unictype/property-other-default-ignorable-code-point: New
46331         file.
46332         * modules/unictype/property-deprecated: New file.
46333         * modules/unictype/property-logical-order-exception: New file.
46334         * modules/unictype/property-variation-selector: New file.
46335         * modules/unictype/property-private-use: New file.
46336         * modules/unictype/property-unassigned-code-value: New file.
46337         * modules/unictype/property-uppercase: New file.
46338         * modules/unictype/property-other-uppercase: New file.
46339         * modules/unictype/property-lowercase: New file.
46340         * modules/unictype/property-other-lowercase: New file.
46341         * modules/unictype/property-titlecase: New file.
46342         * modules/unictype/property-soft-dotted: New file.
46343         * modules/unictype/property-id-start: New file.
46344         * modules/unictype/property-other-id-start: New file.
46345         * modules/unictype/property-id-continue: New file.
46346         * modules/unictype/property-other-id-continue: New file.
46347         * modules/unictype/property-xid-start: New file.
46348         * modules/unictype/property-xid-continue: New file.
46349         * modules/unictype/property-pattern-white-space: New file.
46350         * modules/unictype/property-pattern-syntax: New file.
46351         * modules/unictype/property-join-control: New file.
46352         * modules/unictype/property-grapheme-base: New file.
46353         * modules/unictype/property-grapheme-extend: New file.
46354         * modules/unictype/property-other-grapheme-extend: New file.
46355         * modules/unictype/property-grapheme-link: New file.
46356         * modules/unictype/property-bidi-control: New file.
46357         * modules/unictype/property-bidi-left-to-right: New file.
46358         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
46359         * modules/unictype/property-bidi-arabic-right-to-left: New file.
46360         * modules/unictype/property-bidi-european-digit: New file.
46361         * modules/unictype/property-bidi-eur-num-separator: New file.
46362         * modules/unictype/property-bidi-eur-num-terminator: New file.
46363         * modules/unictype/property-bidi-arabic-digit: New file.
46364         * modules/unictype/property-bidi-common-separator: New file.
46365         * modules/unictype/property-bidi-block-separator: New file.
46366         * modules/unictype/property-bidi-segment-separator: New file.
46367         * modules/unictype/property-bidi-whitespace: New file.
46368         * modules/unictype/property-bidi-non-spacing-mark: New file.
46369         * modules/unictype/property-bidi-boundary-neutral: New file.
46370         * modules/unictype/property-bidi-pdf: New file.
46371         * modules/unictype/property-bidi-embedding-or-override: New file.
46372         * modules/unictype/property-bidi-other-neutral: New file.
46373         * modules/unictype/property-hex-digit: New file.
46374         * modules/unictype/property-ascii-hex-digit: New file.
46375         * modules/unictype/property-ideographic: New file.
46376         * modules/unictype/property-unified-ideograph: New file.
46377         * modules/unictype/property-radical: New file.
46378         * modules/unictype/property-ids-binary-operator: New file.
46379         * modules/unictype/property-ids-trinary-operator: New file.
46380         * modules/unictype/property-zero-width: New file.
46381         * modules/unictype/property-space: New file.
46382         * modules/unictype/property-non-break: New file.
46383         * modules/unictype/property-iso-control: New file.
46384         * modules/unictype/property-format-control: New file.
46385         * modules/unictype/property-dash: New file.
46386         * modules/unictype/property-hyphen: New file.
46387         * modules/unictype/property-punctuation: New file.
46388         * modules/unictype/property-line-separator: New file.
46389         * modules/unictype/property-paragraph-separator: New file.
46390         * modules/unictype/property-quotation-mark: New file.
46391         * modules/unictype/property-sentence-terminal: New file.
46392         * modules/unictype/property-terminal-punctuation: New file.
46393         * modules/unictype/property-currency-symbol: New file.
46394         * modules/unictype/property-math: New file.
46395         * modules/unictype/property-other-math: New file.
46396         * modules/unictype/property-paired-punctuation: New file.
46397         * modules/unictype/property-left-of-pair: New file.
46398         * modules/unictype/property-combining: New file.
46399         * modules/unictype/property-composite: New file.
46400         * modules/unictype/property-decimal-digit: New file.
46401         * modules/unictype/property-numeric: New file.
46402         * modules/unictype/property-diacritic: New file.
46403         * modules/unictype/property-extender: New file.
46404         * modules/unictype/property-ignorable-control: New file.
46405         * modules/unictype/property-test: New file.
46406         * modules/unictype/property-byname: New file.
46407         * modules/unictype/property-all: New file.
46408         * modules/unictype/scripts: New file.
46409         * modules/unictype/scripts-all: New file.
46410         * modules/unictype/block-of: New file.
46411         * modules/unictype/block-test: New file.
46412         * modules/unictype/block-list: New file.
46413         * modules/unictype/block-all: New file.
46414         * modules/unictype/syntax-c-whitespace: New file.
46415         * modules/unictype/syntax-java-whitespace: New file.
46416         * modules/unictype/syntax-c-ident: New file.
46417         * modules/unictype/syntax-java-ident: New file.
46418         * modules/unictype/ctype-alnum: New file.
46419         * modules/unictype/ctype-alpha: New file.
46420         * modules/unictype/ctype-cntrl: New file.
46421         * modules/unictype/ctype-digit: New file.
46422         * modules/unictype/ctype-graph: New file.
46423         * modules/unictype/ctype-lower: New file.
46424         * modules/unictype/ctype-print: New file.
46425         * modules/unictype/ctype-punct: New file.
46426         * modules/unictype/ctype-space: New file.
46427         * modules/unictype/ctype-upper: New file.
46428         * modules/unictype/ctype-xdigit: New file.
46429         * modules/unictype/ctype-blank: New file.
46430         * lib/unictype/bidi_byname.c: New file.
46431         * lib/unictype/bidi_name.c: New file.
46432         * lib/unictype/bidi_of.c: New file.
46433         * lib/unictype/bidi_test.c: New file.
46434         * lib/unictype/bitmap.h: New file.
46435         * lib/unictype/block_test.c: New file.
46436         * lib/unictype/blocks.c: New file.
46437         * lib/unictype/categ_C.c: New file.
46438         * lib/unictype/categ_Cc.c: New file.
46439         * lib/unictype/categ_Cf.c: New file.
46440         * lib/unictype/categ_Cn.c: New file.
46441         * lib/unictype/categ_Co.c: New file.
46442         * lib/unictype/categ_Cs.c: New file.
46443         * lib/unictype/categ_L.c: New file.
46444         * lib/unictype/categ_Ll.c: New file.
46445         * lib/unictype/categ_Lm.c: New file.
46446         * lib/unictype/categ_Lo.c: New file.
46447         * lib/unictype/categ_Lt.c: New file.
46448         * lib/unictype/categ_Lu.c: New file.
46449         * lib/unictype/categ_M.c: New file.
46450         * lib/unictype/categ_Mc.c: New file.
46451         * lib/unictype/categ_Me.c: New file.
46452         * lib/unictype/categ_Mn.c: New file.
46453         * lib/unictype/categ_N.c: New file.
46454         * lib/unictype/categ_Nd.c: New file.
46455         * lib/unictype/categ_Nl.c: New file.
46456         * lib/unictype/categ_No.c: New file.
46457         * lib/unictype/categ_P.c: New file.
46458         * lib/unictype/categ_Pc.c: New file.
46459         * lib/unictype/categ_Pd.c: New file.
46460         * lib/unictype/categ_Pe.c: New file.
46461         * lib/unictype/categ_Pf.c: New file.
46462         * lib/unictype/categ_Pi.c: New file.
46463         * lib/unictype/categ_Po.c: New file.
46464         * lib/unictype/categ_Ps.c: New file.
46465         * lib/unictype/categ_S.c: New file.
46466         * lib/unictype/categ_Sc.c: New file.
46467         * lib/unictype/categ_Sk.c: New file.
46468         * lib/unictype/categ_Sm.c: New file.
46469         * lib/unictype/categ_So.c: New file.
46470         * lib/unictype/categ_Z.c: New file.
46471         * lib/unictype/categ_Zl.c: New file.
46472         * lib/unictype/categ_Zp.c: New file.
46473         * lib/unictype/categ_Zs.c: New file.
46474         * lib/unictype/categ_and.c: New file.
46475         * lib/unictype/categ_and_not.c: New file.
46476         * lib/unictype/categ_byname.c: New file.
46477         * lib/unictype/categ_name.c: New file.
46478         * lib/unictype/categ_none.c: New file.
46479         * lib/unictype/categ_of.c: New file.
46480         * lib/unictype/categ_or.c: New file.
46481         * lib/unictype/categ_test.c: New file.
46482         * lib/unictype/combining.c: New file.
46483         * lib/unictype/ctype_alnum.c: New file.
46484         * lib/unictype/ctype_alpha.c: New file.
46485         * lib/unictype/ctype_blank.c: New file.
46486         * lib/unictype/ctype_cntrl.c: New file.
46487         * lib/unictype/ctype_digit.c: New file.
46488         * lib/unictype/ctype_graph.c: New file.
46489         * lib/unictype/ctype_lower.c: New file.
46490         * lib/unictype/ctype_print.c: New file.
46491         * lib/unictype/ctype_punct.c: New file.
46492         * lib/unictype/ctype_space.c: New file.
46493         * lib/unictype/ctype_upper.c: New file.
46494         * lib/unictype/ctype_xdigit.c: New file.
46495         * lib/unictype/decdigit.c: New file.
46496         * lib/unictype/digit.c: New file.
46497         * lib/unictype/identsyntaxmap.h: New file.
46498         * lib/unictype/mirror.c: New file.
46499         * lib/unictype/numeric.c: New file.
46500         * lib/unictype/pr_alphabetic.c: New file.
46501         * lib/unictype/pr_ascii_hex_digit.c: New file.
46502         * lib/unictype/pr_bidi_arabic_digit.c: New file.
46503         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
46504         * lib/unictype/pr_bidi_block_separator.c: New file.
46505         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
46506         * lib/unictype/pr_bidi_common_separator.c: New file.
46507         * lib/unictype/pr_bidi_control.c: New file.
46508         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
46509         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
46510         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
46511         * lib/unictype/pr_bidi_european_digit.c: New file.
46512         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
46513         * lib/unictype/pr_bidi_left_to_right.c: New file.
46514         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
46515         * lib/unictype/pr_bidi_other_neutral.c: New file.
46516         * lib/unictype/pr_bidi_pdf.c: New file.
46517         * lib/unictype/pr_bidi_segment_separator.c: New file.
46518         * lib/unictype/pr_bidi_whitespace.c: New file.
46519         * lib/unictype/pr_byname.c: New file.
46520         * lib/unictype/pr_byname.gperf: New file.
46521         * lib/unictype/pr_combining.c: New file.
46522         * lib/unictype/pr_composite.c: New file.
46523         * lib/unictype/pr_currency_symbol.c: New file.
46524         * lib/unictype/pr_dash.c: New file.
46525         * lib/unictype/pr_decimal_digit.c: New file.
46526         * lib/unictype/pr_default_ignorable_code_point.c: New file.
46527         * lib/unictype/pr_deprecated.c: New file.
46528         * lib/unictype/pr_diacritic.c: New file.
46529         * lib/unictype/pr_extender.c: New file.
46530         * lib/unictype/pr_format_control.c: New file.
46531         * lib/unictype/pr_grapheme_base.c: New file.
46532         * lib/unictype/pr_grapheme_extend.c: New file.
46533         * lib/unictype/pr_grapheme_link.c: New file.
46534         * lib/unictype/pr_hex_digit.c: New file.
46535         * lib/unictype/pr_hyphen.c: New file.
46536         * lib/unictype/pr_id_continue.c: New file.
46537         * lib/unictype/pr_id_start.c: New file.
46538         * lib/unictype/pr_ideographic.c: New file.
46539         * lib/unictype/pr_ids_binary_operator.c: New file.
46540         * lib/unictype/pr_ids_trinary_operator.c: New file.
46541         * lib/unictype/pr_ignorable_control.c: New file.
46542         * lib/unictype/pr_iso_control.c: New file.
46543         * lib/unictype/pr_join_control.c: New file.
46544         * lib/unictype/pr_left_of_pair.c: New file.
46545         * lib/unictype/pr_line_separator.c: New file.
46546         * lib/unictype/pr_logical_order_exception.c: New file.
46547         * lib/unictype/pr_lowercase.c: New file.
46548         * lib/unictype/pr_math.c: New file.
46549         * lib/unictype/pr_non_break.c: New file.
46550         * lib/unictype/pr_not_a_character.c: New file.
46551         * lib/unictype/pr_numeric.c: New file.
46552         * lib/unictype/pr_other_alphabetic.c: New file.
46553         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
46554         * lib/unictype/pr_other_grapheme_extend.c: New file.
46555         * lib/unictype/pr_other_id_continue.c: New file.
46556         * lib/unictype/pr_other_id_start.c: New file.
46557         * lib/unictype/pr_other_lowercase.c: New file.
46558         * lib/unictype/pr_other_math.c: New file.
46559         * lib/unictype/pr_other_uppercase.c: New file.
46560         * lib/unictype/pr_paired_punctuation.c: New file.
46561         * lib/unictype/pr_paragraph_separator.c: New file.
46562         * lib/unictype/pr_pattern_syntax.c: New file.
46563         * lib/unictype/pr_pattern_white_space.c: New file.
46564         * lib/unictype/pr_private_use.c: New file.
46565         * lib/unictype/pr_punctuation.c: New file.
46566         * lib/unictype/pr_quotation_mark.c: New file.
46567         * lib/unictype/pr_radical.c: New file.
46568         * lib/unictype/pr_sentence_terminal.c: New file.
46569         * lib/unictype/pr_soft_dotted.c: New file.
46570         * lib/unictype/pr_space.c: New file.
46571         * lib/unictype/pr_terminal_punctuation.c: New file.
46572         * lib/unictype/pr_test.c: New file.
46573         * lib/unictype/pr_titlecase.c: New file.
46574         * lib/unictype/pr_unassigned_code_value.c: New file.
46575         * lib/unictype/pr_unified_ideograph.c: New file.
46576         * lib/unictype/pr_uppercase.c: New file.
46577         * lib/unictype/pr_variation_selector.c: New file.
46578         * lib/unictype/pr_white_space.c: New file.
46579         * lib/unictype/pr_xid_continue.c: New file.
46580         * lib/unictype/pr_xid_start.c: New file.
46581         * lib/unictype/pr_zero_width.c: New file.
46582         * lib/unictype/scripts.c: New file.
46583         * lib/unictype/sy_c_ident.c: New file.
46584         * lib/unictype/sy_c_whitespace.c: New file.
46585         * lib/unictype/sy_java_ident.c: New file.
46586         * lib/unictype/sy_java_whitespace.c: New file.
46587
46588         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
46589         Unicode 5.0.0.
46590         * lib/unictype/blocks.h: Likewise.
46591         * lib/unictype/categ_C.h: Likewise.
46592         * lib/unictype/categ_Cc.h: Likewise.
46593         * lib/unictype/categ_Cf.h: Likewise.
46594         * lib/unictype/categ_Cn.h: Likewise.
46595         * lib/unictype/categ_Co.h: Likewise.
46596         * lib/unictype/categ_Cs.h: Likewise.
46597         * lib/unictype/categ_L.h: Likewise.
46598         * lib/unictype/categ_Ll.h: Likewise.
46599         * lib/unictype/categ_Lm.h: Likewise.
46600         * lib/unictype/categ_Lo.h: Likewise.
46601         * lib/unictype/categ_Lt.h: Likewise.
46602         * lib/unictype/categ_Lu.h: Likewise.
46603         * lib/unictype/categ_M.h: Likewise.
46604         * lib/unictype/categ_Mc.h: Likewise.
46605         * lib/unictype/categ_Me.h: Likewise.
46606         * lib/unictype/categ_Mn.h: Likewise.
46607         * lib/unictype/categ_N.h: Likewise.
46608         * lib/unictype/categ_Nd.h: Likewise.
46609         * lib/unictype/categ_Nl.h: Likewise.
46610         * lib/unictype/categ_No.h: Likewise.
46611         * lib/unictype/categ_P.h: Likewise.
46612         * lib/unictype/categ_Pc.h: Likewise.
46613         * lib/unictype/categ_Pd.h: Likewise.
46614         * lib/unictype/categ_Pe.h: Likewise.
46615         * lib/unictype/categ_Pf.h: Likewise.
46616         * lib/unictype/categ_Pi.h: Likewise.
46617         * lib/unictype/categ_Po.h: Likewise.
46618         * lib/unictype/categ_Ps.h: Likewise.
46619         * lib/unictype/categ_S.h: Likewise.
46620         * lib/unictype/categ_Sc.h: Likewise.
46621         * lib/unictype/categ_Sk.h: Likewise.
46622         * lib/unictype/categ_Sm.h: Likewise.
46623         * lib/unictype/categ_So.h: Likewise.
46624         * lib/unictype/categ_Z.h: Likewise.
46625         * lib/unictype/categ_Zl.h: Likewise.
46626         * lib/unictype/categ_Zp.h: Likewise.
46627         * lib/unictype/categ_Zs.h: Likewise.
46628         * lib/unictype/categ_of.h: Likewise.
46629         * lib/unictype/combining.h: Likewise.
46630         * lib/unictype/ctype_alnum.h: Likewise.
46631         * lib/unictype/ctype_alpha.h: Likewise.
46632         * lib/unictype/ctype_blank.h: Likewise.
46633         * lib/unictype/ctype_cntrl.h: Likewise.
46634         * lib/unictype/ctype_digit.h: Likewise.
46635         * lib/unictype/ctype_graph.h: Likewise.
46636         * lib/unictype/ctype_lower.h: Likewise.
46637         * lib/unictype/ctype_print.h: Likewise.
46638         * lib/unictype/ctype_punct.h: Likewise.
46639         * lib/unictype/ctype_space.h: Likewise.
46640         * lib/unictype/ctype_upper.h: Likewise.
46641         * lib/unictype/ctype_xdigit.h: Likewise.
46642         * lib/unictype/decdigit.h: Likewise.
46643         * lib/unictype/digit.h: Likewise.
46644         * lib/unictype/mirror.h: Likewise.
46645         * lib/unictype/numeric.h: Likewise.
46646         * lib/unictype/pr_alphabetic.h: Likewise.
46647         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
46648         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
46649         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
46650         * lib/unictype/pr_bidi_block_separator.h: Likewise.
46651         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
46652         * lib/unictype/pr_bidi_common_separator.h: Likewise.
46653         * lib/unictype/pr_bidi_control.h: Likewise.
46654         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
46655         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
46656         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
46657         * lib/unictype/pr_bidi_european_digit.h: Likewise.
46658         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
46659         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
46660         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
46661         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
46662         * lib/unictype/pr_bidi_pdf.h: Likewise.
46663         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
46664         * lib/unictype/pr_bidi_whitespace.h: Likewise.
46665         * lib/unictype/pr_combining.h: Likewise.
46666         * lib/unictype/pr_composite.h: Likewise.
46667         * lib/unictype/pr_currency_symbol.h: Likewise.
46668         * lib/unictype/pr_dash.h: Likewise.
46669         * lib/unictype/pr_decimal_digit.h: Likewise.
46670         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
46671         * lib/unictype/pr_deprecated.h: Likewise.
46672         * lib/unictype/pr_diacritic.h: Likewise.
46673         * lib/unictype/pr_extender.h: Likewise.
46674         * lib/unictype/pr_format_control.h: Likewise.
46675         * lib/unictype/pr_grapheme_base.h: Likewise.
46676         * lib/unictype/pr_grapheme_extend.h: Likewise.
46677         * lib/unictype/pr_grapheme_link.h: Likewise.
46678         * lib/unictype/pr_hex_digit.h: Likewise.
46679         * lib/unictype/pr_hyphen.h: Likewise.
46680         * lib/unictype/pr_id_continue.h: Likewise.
46681         * lib/unictype/pr_id_start.h: Likewise.
46682         * lib/unictype/pr_ideographic.h: Likewise.
46683         * lib/unictype/pr_ids_binary_operator.h: Likewise.
46684         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
46685         * lib/unictype/pr_ignorable_control.h: Likewise.
46686         * lib/unictype/pr_iso_control.h: Likewise.
46687         * lib/unictype/pr_join_control.h: Likewise.
46688         * lib/unictype/pr_left_of_pair.h: Likewise.
46689         * lib/unictype/pr_line_separator.h: Likewise.
46690         * lib/unictype/pr_logical_order_exception.h: Likewise.
46691         * lib/unictype/pr_lowercase.h: Likewise.
46692         * lib/unictype/pr_math.h: Likewise.
46693         * lib/unictype/pr_non_break.h: Likewise.
46694         * lib/unictype/pr_not_a_character.h: Likewise.
46695         * lib/unictype/pr_numeric.h: Likewise.
46696         * lib/unictype/pr_other_alphabetic.h: Likewise.
46697         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
46698         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
46699         * lib/unictype/pr_other_id_continue.h: Likewise.
46700         * lib/unictype/pr_other_id_start.h: Likewise.
46701         * lib/unictype/pr_other_lowercase.h: Likewise.
46702         * lib/unictype/pr_other_math.h: Likewise.
46703         * lib/unictype/pr_other_uppercase.h: Likewise.
46704         * lib/unictype/pr_paired_punctuation.h: Likewise.
46705         * lib/unictype/pr_paragraph_separator.h: Likewise.
46706         * lib/unictype/pr_pattern_syntax.h: Likewise.
46707         * lib/unictype/pr_pattern_white_space.h: Likewise.
46708         * lib/unictype/pr_private_use.h: Likewise.
46709         * lib/unictype/pr_punctuation.h: Likewise.
46710         * lib/unictype/pr_quotation_mark.h: Likewise.
46711         * lib/unictype/pr_radical.h: Likewise.
46712         * lib/unictype/pr_sentence_terminal.h: Likewise.
46713         * lib/unictype/pr_soft_dotted.h: Likewise.
46714         * lib/unictype/pr_space.h: Likewise.
46715         * lib/unictype/pr_terminal_punctuation.h: Likewise.
46716         * lib/unictype/pr_titlecase.h: Likewise.
46717         * lib/unictype/pr_unassigned_code_value.h: Likewise.
46718         * lib/unictype/pr_unified_ideograph.h: Likewise.
46719         * lib/unictype/pr_uppercase.h: Likewise.
46720         * lib/unictype/pr_variation_selector.h: Likewise.
46721         * lib/unictype/pr_white_space.h: Likewise.
46722         * lib/unictype/pr_xid_continue.h: Likewise.
46723         * lib/unictype/pr_xid_start.h: Likewise.
46724         * lib/unictype/pr_zero_width.h: Likewise.
46725         * lib/unictype/scripts.h: Likewise.
46726         * lib/unictype/scripts_byname.gperf: Likewise.
46727         * lib/unictype/sy_c_ident.h: Likewise.
46728         * lib/unictype/sy_c_whitespace.h: Likewise.
46729         * lib/unictype/sy_java_ident.h: Likewise.
46730         * lib/unictype/sy_java_whitespace.h: Likewise.
46731
46732         * lib/unictype/Makefile: New file.
46733         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
46734         glibc.
46735         * lib/unictype/3level.h: New file, copied from glibc.
46736         * lib/unictype/3levelbit.h: New file.
46737
46738 2007-11-11  Bruno Haible  <bruno@clisp.org>
46739
46740         * modules/gperf: New file.
46741         * modules/iconv_open (Depends-on): Add it.
46742         (Makefile.am): Remove the GPERF definition.
46743
46744 2007-11-11  Bruno Haible  <bruno@clisp.org>
46745
46746         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
46747         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
46748
46749 2007-11-11  Bruno Haible  <bruno@clisp.org>
46750
46751         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
46752         (usage): Remove function.
46753
46754 2007-11-11  Bruno Haible  <bruno@clisp.org>
46755
46756         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
46757         gl_FUNC_CEILF_LIBS.
46758         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
46759         gl_FUNC_CEIL_LIBS.
46760         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
46761         gl_FUNC_CEILL_LIBS.
46762         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
46763         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
46764         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
46765
46766 2007-11-11  Bruno Haible  <bruno@clisp.org>
46767
46768         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
46769         roundf were declared but do not exist on functions.
46770         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
46771         roundl were declared but do not exist on functions.
46772         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
46773         HAVE_FLOORL_AND_CEILL, respectively.
46774         Needed for Sun C on Solaris 10.
46775
46776 2007-11-11  Bruno Haible  <bruno@clisp.org>
46777
46778         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
46779         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
46780         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
46781         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
46782         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
46783         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
46784         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
46785         HAVE_DECL_ROUNDF.
46786         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
46787         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
46788         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
46789         of HAVE_DECL_ROUND*.
46790         * modules/math (Makefile.am): Update.
46791
46792 2007-11-10  Bruno Haible  <bruno@clisp.org>
46793
46794         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
46795         ptrdiff_t as m4/intl.m4.
46796
46797 2007-11-10  Jim Meyering  <meyering@redhat.com>
46798
46799         Avoid link failure for the argmatch test.
46800         * tests/test-argmatch.c (usage): Define function to avoid a link
46801         failure: argmatch_die requires a usage function.
46802
46803 2007-11-09  Bruno Haible  <bruno@clisp.org>
46804
46805         * doc/functions/snprintf.texi: Mention BeOS deficiency.
46806         * doc/functions/vsnprintf.texi: Likewise.
46807         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
46808         with a size argument < 2.
46809
46810 2007-11-09  Bruno Haible  <bruno@clisp.org>
46811
46812         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
46813         buffer. Fixes an inefficiency introduced on 2007-11-03.
46814
46815 2007-11-09  Bruno Haible  <bruno@clisp.org>
46816
46817         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
46818         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
46819
46820 2007-11-08  Jim Meyering  <meyering@redhat.com>
46821
46822         Change cache variable name prefix "jm_" to "gl_" everywhere.
46823         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
46824         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
46825         * m4/uptime.m4: s/gl_/jm_/
46826
46827 2007-11-07  Bruno Haible  <bruno@clisp.org>
46828
46829         Update to GNU gettext 0.17.
46830         * m4/intl.m4: Update to GNU gettext 0.17.
46831         * m4/po.m4: Likewise.
46832         * modules/gettext (Files): Remove m4/ulonglong.m4.
46833         (configure.ac): Require gettext infrastructure from version 0.17.
46834
46835 2007-11-06  Bruno Haible  <bruno@clisp.org>
46836
46837         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
46838         symbolic values are not defined in a public header.
46839         * lib/freadable.c (freadable) [QNX]: Likewise.
46840         * lib/freadahead.c (freadahead) [QNX]: Likewise.
46841         * lib/freading.c (freading) [QNX]: Likewise.
46842         * lib/fseterr.c (fseterr) [QNX]: Likewise.
46843         * lib/fwritable.c (fwritable) [QNX]: Likewise.
46844         * lib/fwriting.c (fwriting) [QNX]: Likewise.
46845         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
46846         Reported by Alain Magloire.
46847
46848         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
46849
46850 2007-11-05  Bruno Haible  <bruno@clisp.org>
46851
46852         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
46853         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
46854         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
46855         Reported by Eric Blake.
46856
46857 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46858             Bruno Haible  <bruno@clisp.org>
46859
46860         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
46861         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
46862         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
46863         (malloc): Undefine also before including <stdlib.h>.
46864         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
46865         Needed on OSF/1 4.0.
46866
46867 2007-11-05  Jim Meyering  <meyering@redhat.com>
46868
46869         git-version-gen: sync from coreutils.
46870         * build-aux/git-version-gen: Add comments.
46871         Change the first '-' to '.' in the snapshot version string,
46872         e.g., 6.9-377-08144 -> 6.9.377-08144
46873         Remove first parameter.
46874         Don't declare a version "-dirty" merely because a time
46875         stamp has changed.
46876
46877 2007-11-04  Bruno Haible  <bruno@clisp.org>
46878
46879         * lib/lock.h: Protect all macro definitions containing an 'if'
46880         statement through a "do { ... } while (0)".
46881         * lib/tls.h: Likewise.
46882
46883 2007-11-04  Bruno Haible  <bruno@clisp.org>
46884
46885         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
46886
46887 2007-11-04  Bruno Haible  <bruno@clisp.org>
46888
46889         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
46890         * modules/fprintf-posix (Depends-on): Add nocrash.
46891         * modules/snprintf-posix (Depends-on): Likewise.
46892         * modules/sprintf-posix (Depends-on): Likewise.
46893         * modules/vasnprintf-posix (Depends-on): Likewise.
46894         * modules/vasprintf-posix (Depends-on): Likewise.
46895         * modules/vfprintf-posix (Depends-on): Likewise.
46896         * modules/vsnprintf-posix (Depends-on): Likewise.
46897         * modules/vsprintf-posix (Depends-on): Likewise.
46898         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
46899         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46900         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46901         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46902         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46903         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46904         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46905
46906 2007-11-04  Bruno Haible  <bruno@clisp.org>
46907
46908         * modules/nocrash: New file.
46909         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
46910         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
46911
46912 2007-11-04  Bruno Haible  <bruno@clisp.org>
46913
46914         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
46915         precision handling.
46916         * tests/test-vasprintf-posix.c (test_function): Likewise.
46917         * tests/test-snprintf-posix.h (test_function): Likewise.
46918         * tests/test-sprintf-posix.h (test_function): Likewise.
46919
46920         Fix *printf behaviour for large precisions on mingw and BeOS.
46921         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
46922         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
46923         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
46924         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46925         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46926         gl_PRINTF_PRECISION and test its result. Invoke
46927         gl_PREREQ_VASNPRINTF_PRECISION.
46928         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46929         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46930         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46931         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46932         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46933         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46934         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46935         * doc/functions/fprintf.texi: Update.
46936         * doc/functions/printf.texi: Update.
46937         * doc/functions/snprintf.texi: Update.
46938         * doc/functions/sprintf.texi: Update.
46939         * doc/functions/vfprintf.texi: Update.
46940         * doc/functions/vprintf.texi: Update.
46941         * doc/functions/vsnprintf.texi: Update.
46942         * doc/functions/vsprintf.texi: Update.
46943
46944 2007-11-04  Bruno Haible  <bruno@clisp.org>
46945
46946         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
46947
46948 2007-11-04  Bruno Haible  <bruno@clisp.org>
46949
46950         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
46951         Reported by Sylvain Beucler <beuc@gnu.org>.
46952
46953 2007-11-03  Bruno Haible  <bruno@clisp.org>
46954
46955         * tests/test-fprintf-posix2.sh: New file.
46956         * tests/test-fprintf-posix2.c: New file.
46957         * modules/fprintf-posix-tests (Files): Add them.
46958         (TESTS): Add test-fprintf-posix2.sh.
46959         (configure.ac): Check for getrlimit and setrlimit.
46960         (check_PROGRAMS): Add test-fprintf-posix2.
46961
46962         * tests/test-printf-posix2.sh: New file.
46963         * tests/test-printf-posix2.c: New file.
46964         * modules/printf-posix-tests (Files): Add them.
46965         (TESTS): Add test-printf-posix2.sh.
46966         (configure.ac): Check for getrlimit and setrlimit.
46967         (check_PROGRAMS): Add test-printf-posix2.
46968
46969         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
46970         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
46971         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
46972         (decode_double): New function, copied from decode_long_double.
46973         (scale10_round_decimal_decoded): New function, extracted from
46974         scale10_round_decimal_long_double.
46975         (scale10_round_decimal_long_double): Use it.
46976         (scale10_round_decimal_double): New function.
46977         (floorlog10): New function.
46978         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
46979         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
46980         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46981         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46982         gl_PRINTF_ENOMEM and test its result. Invoke
46983         gl_PREREQ_VASNPRINTF_ENOMEM.
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         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
46992         * modules/snprintf-posix (Depends-on): Likewise.
46993         * modules/sprintf-posix (Depends-on): Likewise.
46994         * modules/vasnprintf-posix (Depends-on): Likewise.
46995         * modules/vasprintf-posix (Depends-on): Likewise.
46996         * modules/vfprintf-posix (Depends-on): Likewise.
46997         * modules/vsnprintf-posix (Depends-on): Likewise.
46998         * modules/vsprintf-posix (Depends-on): Likewise.
46999         * doc/functions/fprintf.texi: Update.
47000         * doc/functions/printf.texi: Update.
47001         * doc/functions/snprintf.texi: Update.
47002         * doc/functions/sprintf.texi: Update.
47003         * doc/functions/vfprintf.texi: Update.
47004         * doc/functions/vprintf.texi: Update.
47005         * doc/functions/vsnprintf.texi: Update.
47006         * doc/functions/vsprintf.texi: Update.
47007
47008 2007-11-03  Bruno Haible  <bruno@clisp.org>
47009
47010         * modules/frexp-nolibm-tests: New file.
47011
47012         * modules/frexp-nolibm: New file.
47013         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
47014
47015 2007-11-03  Bruno Haible  <bruno@clisp.org>
47016
47017         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
47018         value is C99 compliant.
47019         Needed for OSF/1 5.1.
47020
47021 2007-11-03  Bruno Haible  <bruno@clisp.org>
47022
47023         Fix out-of-memory handling of vasnprintf.
47024         * lib/printf-parse.c: Include <errno.h>.
47025         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
47026         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
47027         is already set.
47028
47029 2007-11-02  Eric Blake  <ebb9@byu.net>
47030
47031         Fix tests on cygwin.
47032         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
47033
47034 2007-11-01  Bruno Haible  <bruno@clisp.org>
47035
47036         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
47037         warning.
47038         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
47039         needed for POSIX compatibility.
47040
47041 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
47042
47043         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
47044         for compatibility with GNU.
47045
47046 2007-11-01  Bruno Haible  <bruno@clisp.org>
47047
47048         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
47049         (putenv): Renamed from rpl_putenv. Change argument type from
47050         'const char *' to 'char *'.
47051         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
47052         of defining putenv in config.h, just set REPLACE_PUTENV.
47053         * modules/putenv (Depends-on): Add stdlib.
47054         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47055         (Include): Use <stdlib.h>.
47056         * lib/stdlib.in.h (putenv): New declaration.
47057         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
47058         REPLACE_PUTENV.
47059         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
47060         REPLACE_PUTENV.
47061         Needed for MacOS X 10.5.0.
47062         Reported by Peter O'Gorman <peter@pogma.com>.
47063
47064 2007-11-01  Jim Meyering  <meyering@redhat.com>
47065
47066         Treat an empty date string exactly like "0".
47067         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
47068         if the remaining date string (to be parsed) is empty, use "0".
47069         Reported by Mischa Molhoek and discussed in this thread:
47070         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
47071
47072 2007-10-31  Bruno Haible  <bruno@clisp.org>
47073
47074         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
47075         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
47076         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
47077         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
47078         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
47079         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
47080
47081 2007-10-31  Bruno Haible  <bruno@clisp.org>
47082
47083         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
47084         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
47085         (AC_TYPE_LONG_LONG_INT): Use it.
47086         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
47087         it as well.
47088         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
47089         to m4/longlong.m4.
47090         * modules/stdint (Files): Remove m4/ulonglong.m4.
47091         * modules/strtoull (Files): Use m4/longlong.m4 instead of
47092         m4/ulonglong.m4.
47093         * modules/strtoumax (Files): Likewise.
47094
47095 2007-10-30  Bruno Haible  <bruno@clisp.org>
47096
47097         * modules/xvasprintf-posix: New file.
47098         Suggested by Eric Blake.
47099
47100 2007-10-30  Bruno Haible  <bruno@clisp.org>
47101
47102         * modules/xprintf-posix-tests: New file.
47103         * tests/test-xprintf-posix.sh: New file.
47104         * tests/test-xprintf-posix.c: New file.
47105         * tests/test-xfprintf-posix.c: New file.
47106
47107         * modules/xprintf-posix: New file.
47108
47109 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47110
47111         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
47112         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
47113         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
47114
47115 2007-10-29  Bruno Haible  <bruno@clisp.org>
47116
47117         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
47118         contain the special marker '_cv_'.
47119         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
47120         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
47121         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
47122         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
47123         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
47124         Reported by Ralf Wildenhues.
47125
47126 2007-10-29  Bruno Haible  <bruno@clisp.org>
47127
47128         * gnulib-tool (func_import): When --lgpl is not specified, set
47129         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
47130         GPLv3.
47131         Reported by Simon Josefsson.
47132
47133 2007-10-28  Bruno Haible  <bruno@clisp.org>
47134
47135         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
47136         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
47137         HAVE_DECL_ISFINITE.
47138         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
47139         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
47140         HAVE_DECL_ISFINITE.
47141
47142 2007-10-28  Bruno Haible  <bruno@clisp.org>
47143
47144         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
47145         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
47146
47147 2007-10-28  Bruno Haible  <bruno@clisp.org>
47148
47149         Fix link errors with Sun C 5.0 on Solaris 10.
47150         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
47151         function is declared but not present in the compiler's libm.
47152         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
47153         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
47154         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
47155         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
47156         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
47157         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
47158         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
47159         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
47160         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
47161         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
47162         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
47163         HAVE_DECL_FLOORL.
47164
47165 2007-10-28  Bruno Haible  <bruno@clisp.org>
47166
47167         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
47168         gl_FUNC_FLOORL. Cache the result.
47169         (gl_FUNC_FLOORL): Use it.
47170         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
47171         gl_FUNC_CEILL. Cache the result.
47172         (gl_FUNC_CEILL): Use it.
47173
47174         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
47175         gl_FUNC_FLOOR. Cache the result.
47176         (gl_FUNC_FLOOR): Use it.
47177         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
47178         gl_FUNC_CEIL. Cache the result.
47179         (gl_FUNC_CEIL): Use it.
47180
47181         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
47182         gl_FUNC_FLOORF. Cache the result.
47183         (gl_FUNC_FLOORF): Use it.
47184         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
47185         gl_FUNC_CEILF. Cache the result.
47186         (gl_FUNC_CEILF): Use it.
47187
47188 2007-10-28  Bruno Haible  <bruno@clisp.org>
47189
47190         * gnulib-tool: Allow specifying the LGPL version number through
47191         --lgpl=2 or --lgpl=3.
47192         (func_usage): Document --lgpl with argument.
47193         Handle --lgpl=... arguments.
47194         (func_import): Recognize also gl_LGPL calls with an argument. When
47195         --lgpl=2 is used and the module's license is just LGPL, report an
47196         error. Set sed_transform_lib_file according to the lgpl variable. In
47197         the generated files, use --lgpl or gl_LGPL invocations with argument,
47198         if necessary.
47199         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
47200         an LGPv2+ license.
47201         * doc/gnulib-tool.texi (Modified imports): Update explanation of
47202         gl_LGPL macro.
47203
47204 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47205             Bruno Haible  <bruno@clisp.org>
47206
47207         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
47208         (u16_uctomb_aux): Likewise.
47209         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
47210         !HAVE_INLINE.
47211         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
47212
47213 2007-10-28  Bruno Haible  <bruno@clisp.org>
47214
47215         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
47216         Invoke AM_GETTEXT_OPTION if it exists.
47217         * modules/vasprintf: Likewise.
47218         * modules/verror: Likewise.
47219         * modules/xprintf: Likewise.
47220         * modules/xvasprintf: Likewise.
47221
47222 2007-10-27  Ben Pfaff  <blp@gnu.org>
47223
47224         * lib/math.in.h: Define isfinite macro and prototypes for
47225         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
47226         implementations.
47227         * m4/math_h.m4: New substitutions for isfinite module.
47228         * lib/isfinite.c: New file.
47229         * m4/isfinite.m4: New file.
47230         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
47231         * modules/isfinite: New file.
47232         * modules/isfinite-tests: New file.
47233         * tests/tests-isfinite.c: New file.
47234         * doc/functions/isfinite.texi: Mention isfinite module.
47235         * MODULES.html.sh: Mention new module.
47236
47237 2007-10-27  Ben Pfaff  <blp@gnu.org>
47238
47239         Ralf Wildenhues reported that Tru64 4.0D declares the round
47240         functions but does not have definitions.
47241         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
47242         cannot be found in any library, set the output variable to
47243         "missing" instead of "".
47244         * m4/round.m4: Also use our substitute if we cannot find round in
47245         any library, even if it is declared.
47246         * m4/roundf.m4: Likewise for roundf.
47247         * m4/roundl.m4: Likewise for roundl.
47248         * lib/math.in.h: Undefine roundf, round, roundl before defining
47249         their replacements, to allow for hypothetical systems where these
47250         may be defined as macros but not available in libraries.
47251
47252 2007-10-27  Bruno Haible  <bruno@clisp.org>
47253
47254         * doc/gnulib.texi: Invoke @firstparagraphindent.
47255         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
47256         changes in gnulib.
47257         (Source changes): New section.
47258
47259 2007-10-26  Bruno Haible  <bruno@clisp.org>
47260
47261         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
47262         borrowed from autoconf.
47263
47264 2007-10-26  Bruno Haible  <bruno@clisp.org>
47265
47266         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
47267         strerror returned the empty string. Needed on HP-UX 11.00.
47268
47269 2007-10-24  Micah Cowan  <micah@cowan.name>
47270
47271         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
47272         * build-aux/bootstrap: Remove support for now-unnecessary option,
47273         --cvs-user, and envvars CVS_USER, CVS_RSH.
47274
47275 2007-10-24  Jim Meyering  <meyering@redhat.com>
47276
47277         Avoid diagnostics from sha1sum when there is no cached checksum.
47278         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
47279         if the po.s1 file hasn't been created yet.
47280
47281         * build-aux/bootstrap: Sync from coreutils:
47282         2007-10-24  Jim Meyering  <meyering@redhat.com>
47283         Get gnulib from the git repository, not from an obsolete cvs one.
47284         * build-aux/bootstrap: Suggestion from Micah Cowan.
47285         2007-10-04  Jim Meyering  <jim@meyering.net>
47286         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
47287         (update_po_files): Work also when there are no .po files in po/.
47288
47289 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
47290
47291         * README: Append ".git" to git and cg examples.
47292         Problem reported by Benoit Sigoure.
47293
47294 2007-10-23  Micah Cowan  <micah@cowan.name>
47295
47296         * users.txt: Add wget.
47297
47298 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47299
47300         Fix linking of some unistdio tests on FreeBSD.
47301         * modules/unistdio/u16-vsnprintf-tests
47302         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
47303         * modules/unistdio/u16-vsprintf-tests
47304         (test_u16_vsnprintf1_LDADD): Likewise.
47305         * modules/unistdio/u32-vsnprintf-tests
47306         (test_u32_vsnprintf1_LDADD): Likewise.
47307         * modules/unistdio/u32-vsprintf-tests
47308         (test_u32_vsprintf1_LDADD): Likewise.
47309         * modules/unistdio/u8-vsnprintf-tests
47310         (test_u8_vsnprintf1_LDADD): Likewise.
47311         * modules/unistdio/u8-vsprintf-tests
47312         (test_u8_vsprintf1_LDADD): Likewise.
47313         * modules/unistdio/ulc-vsnprintf-tests
47314         (test_ulc_vsnprintf1_LDADD): Likewise.
47315         * modules/unistdio/ulc-vsprintf-tests
47316         (test_ulc_vsprintf1_LDADD): Likewise.
47317
47318         Fix linking of some uniconv tests on FreeBSD.
47319         * modules/uniconv/u16-conv-from-enc-tests
47320         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
47321         * modules/uniconv/u16-conv-to-enc-tests
47322         (test_u16_conv_to_enc_LDADD): Likewise.
47323         * modules/uniconv/u16-strconv-from-enc-tests
47324         (test_u16_strconv_from_enc_LDADD): Likewise.
47325         * modules/uniconv/u16-strconv-to-enc-tests
47326         (test_u16_strconv_to_enc_LDADD): Likewise.
47327         * modules/uniconv/u32-conv-from-enc-tests
47328         (test_u32_conv_from_enc_LDADD): Likewise.
47329         * modules/uniconv/u32-conv-to-enc-tests
47330         (test_u32_conv_to_enc_LDADD): Likewise.
47331         * modules/uniconv/u32-strconv-from-enc-tests
47332         (test_u32_strconv_from_enc_LDADD): Likewise.
47333         * modules/uniconv/u32-strconv-to-enc-tests
47334         (test_u32_strconv_to_enc_LDADD): Likewise.
47335         * modules/uniconv/u8-conv-from-enc-tests
47336         (test_u8_conv_from_enc_LDADD): Likewise.
47337         * modules/uniconv/u8-conv-to-enc-tests
47338         (test_u8_conv_to_enc_LDADD): Likewise.
47339         * modules/uniconv/u8-strconv-from-enc-tests
47340         (test_u8_strconv_from_enc_LDADD): Likewise.
47341         * modules/uniconv/u8-strconv-to-enc-tests
47342         (test_u8_strconv_to_enc_LDADD): Likewise.
47343
47344 2007-10-22  Bruno Haible  <bruno@clisp.org>
47345
47346         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
47347         size.
47348
47349 2007-10-22  Eric Blake  <ebb9@byu.net>
47350
47351         Tweak x*printf documentation.
47352         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
47353         variable name and comments.
47354         Suggested by Bruno Haible.
47355
47356 2007-10-22  Bruno Haible  <bruno@clisp.org>
47357
47358         * lib/acl.c (copy_acl): Fix file name in comment.
47359
47360 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
47361
47362         Fix Tru64 problem with stdbool.h.
47363         * lib/stdbool.in.h (false, true):
47364         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
47365         Don't declare as an enum in this situation; it runs afoul of Tru64.
47366         Problem reported by Steven M. Schweda in
47367         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
47368
47369 2007-10-22  Eric Blake  <ebb9@byu.net>
47370
47371         Also wrap vf?printf.
47372         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
47373         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
47374         (xvprintf, xvfprintf): New functions.
47375
47376 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47377
47378         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
47379         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
47380
47381         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
47382         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
47383
47384 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
47385
47386         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
47387         by Bruno Haible.
47388
47389 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47390
47391         * lib/getloadavg.c
47392         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
47393         Undef `sys' after including sys/table.h, for Tru64 4.0D.
47394
47395         * tests/test-i-ring.c: Work for C89.
47396
47397 2007-10-22  Bruno Haible  <bruno@clisp.org>
47398
47399         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
47400         -1u, in preprocessor expression, so that we don't test for the bug
47401         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
47402         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
47403
47404 2007-10-22  Eric Blake  <ebb9@byu.net>
47405
47406         * tests/test-yesno.sh: Silence stderr during test.
47407
47408 2007-10-22  Simon Josefsson  <simon@josefsson.org>
47409
47410         * modules/crypto/gc-camellia: New file.
47411
47412         * m4/gc-camellia.m4: New file.
47413
47414         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
47415
47416         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
47417
47418 2007-10-22  Simon Josefsson  <simon@josefsson.org>
47419
47420         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
47421         --help to stdout.  Reported by sms@antinode.org (Steven
47422         M. Schweda).
47423
47424 2007-10-22  Simon Josefsson  <simon@josefsson.org>
47425
47426         * users.txt: Fix link to libksba.
47427
47428 2007-10-21  Ben Pfaff  <blp@gnu.org>
47429
47430         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
47431         round.c roundf implementation that depends on floorf and ceilf to
47432         be tested unconditionally.
47433
47434 2007-10-21  Ben Pfaff  <blp@gnu.org>
47435
47436         * m4/check-libm-func.m4: Removed.
47437         * m4/check-math-lib.m4: New file.
47438         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
47439         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
47440         definition and lack of AC_LIBOBJ([roundf]).
47441         * m4/roundl.m4: Ditto, and similarly for roundl.
47442         * modules/round: Reference new m4 file.
47443         * modules/roundf: Ditto.
47444         * modules/roundl: Ditto.
47445         * tests/test-round2.c (main): Use ROUND instead of round.
47446         Bug report from Bruno Haible.
47447
47448 2007-10-21  Bruno Haible  <bruno@clisp.org>
47449
47450         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
47451         context.
47452
47453 2007-10-21  Bruno Haible  <bruno@clisp.org>
47454
47455         * tests/test-wcwidth.c (main): Allow negative result for some control
47456         characters.
47457
47458         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
47459         Needed on OSF/1 5.1.
47460
47461 2007-10-21  Bruno Haible  <bruno@clisp.org>
47462
47463         * tests/test-floorf1.c: Include isnanf.h.
47464         (main): Use isnanf() instead of isnan().
47465         * tests/test-ceilf1.c: Include isnanf.h.
47466         (main): Use isnanf() instead of isnan().
47467         * tests/test-truncf1.c: Include isnanf.h.
47468         (main): Use isnanf() instead of isnan().
47469         * tests/test-roundf1.c: Include isnanf.h.
47470         (main): Use isnanf() instead of isnan().
47471
47472 2007-10-21  Eric Blake  <ebb9@byu.net>
47473
47474         * users.txt: Update URL for m4.
47475
47476 2007-10-21  Bruno Haible  <bruno@clisp.org>
47477
47478         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
47479
47480 2007-10-21  Bruno Haible  <bruno@clisp.org>
47481
47482         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
47483         Git's management files if the CVS files are not present.
47484
47485 2007-10-20  Bruno Haible  <bruno@clisp.org>
47486
47487         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
47488         gcc-3.4.x.
47489
47490 2007-10-20  Ben Pfaff  <blp@gnu.org>
47491
47492         * lib/math.in.h: Declare round, roundf, roundl if we are providing
47493         implementations.
47494         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
47495         * lib/round.c: New file.
47496         * lib/roundf.c: New file.
47497         * lib/roundl.c: New file.
47498         * m4/round.m4: New file.
47499         * m4/roundf.m4: New file.
47500         * m4/roundl.m4: New file.
47501         * m4/check-libm-func-m4: New file.
47502         * modules/math: Replace round, roundf, roundl related @VARS@ in
47503         math.in.h.
47504         * modules/round: New file.
47505         * modules/round-tests: New file.
47506         * modules/roundf: New file.
47507         * modules/roundf-tests: New file.
47508         * modules/roundl: New file.
47509         * modules/roundl-tests: New file.
47510         * tests/test-round1.c: New file.
47511         * tests/test-round2.c: New file.
47512         * tests/test-roundf1.c: New file.
47513         * tests/test-roundf2.c: New file.
47514         * tests/test-roundl.c: New file.
47515         * doc/functions/round.texi: Mention round module.
47516         * doc/functions/roundf.texi: Mention roundf module.
47517         * doc/functions/roundl.texi: Mention roundl module.
47518         * MODULES.html.sh: Mention new modules.
47519         Thanks to Bruno Haible for suggestions.
47520
47521 2007-10-20  Jim Meyering  <meyering@redhat.com>
47522
47523         * lib/xprintf.c: Include <config.h> unconditionally.
47524
47525         Change xprintf's license to GPL.
47526         * modules/xprintf (License): s/LGPL/GPL/, since this module
47527         depends on modules (exit and exitfail) which are GPL.
47528         Suggestion from Bruno Haible.
47529
47530         xprintf fixes.
47531         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
47532         Use a clearer diagnostic.
47533         Patch from Bruno Haible.
47534
47535 2007-10-20  Bruno Haible  <bruno@clisp.org>
47536
47537         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
47538         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
47539         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47540
47541 2007-10-20  Bruno Haible  <bruno@clisp.org>
47542
47543         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
47544         precision in the comparison result > x - 1 or similar.
47545         * tests/test-ceilf2.c (correct_result_p): Likewise.
47546         * tests/test-truncf2.c (correct_result_p): Likewise.
47547         * tests/test-trunc2.c (correct_result_p): Likewise.
47548         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47549
47550 2007-10-20  Bruno Haible  <bruno@clisp.org>
47551
47552         * modules/ceil: New file.
47553         * m4/ceil.m4: New file.
47554         * doc/functions/ceil.texi: Mention the 'ceil' module.
47555
47556 2007-10-20  Bruno Haible  <bruno@clisp.org>
47557
47558         * modules/floor: New file.
47559         * m4/floor.m4: New file.
47560         * doc/functions/floor.texi: Mention the 'floor' module.
47561
47562 2007-10-20  Bruno Haible  <bruno@clisp.org>
47563
47564         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
47565         of %a.
47566         * modules/floorf-tests (Depends-on): Likewise.
47567         * modules/truncf-tests (Depends-on): Likewise.
47568         * modules/trunc-tests (Depends-on): Likewise.
47569         Reported by Ben Pfaff.
47570
47571 2007-10-19  Jim Meyering  <meyering@redhat.com>
47572
47573         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
47574         Don't bother testing specific errno values.  Just test ferror.
47575
47576         New module: xprintf
47577         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
47578
47579 2007-10-19  Bruno Haible  <bruno@clisp.org>
47580
47581         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
47582         syntax.
47583         * modules/javaexec (Makefile.am): Likewise.
47584         * modules/relocatable-prog (Makefile.am): Likewise.
47585         Suggested by Jim Meyering.
47586
47587 2007-10-18  Bruno Haible  <bruno@clisp.org>
47588
47589         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
47590         Reported by Jim Meyering.
47591
47592 2007-10-18  Eric Blake  <ebb9@byu.net>
47593
47594         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
47595
47596 2007-10-18  Bruno Haible  <bruno@clisp.org>
47597
47598         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
47599         the format string into writable memory. Needed in Fortify conditions.
47600
47601 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
47602             Bruno Haible  <bruno@clisp.org>
47603
47604         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
47605         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
47606         * modules/trim (Depends-on): Add mbchar.
47607         (configure.ac): Add gl_FUNC_MBRTOWC.
47608         (Makefile.am): Augment lib_SOURCES.
47609
47610 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
47611
47612         Modify glob.c to use fstatat and dirfd, to simplify it.
47613         Suggested by Eric Blake.
47614         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
47615         Don't include <stdbool.h>; not used.
47616         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
47617         (link_exists_p): Simplify implementation, since we can now assume
47618         dirfd and fstatat.
47619         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
47620
47621 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47622
47623         * gnulib-tool (func_get_dependencies): Fix sed script to
47624         match only tests.
47625
47626 2007-10-17  Bruno Haible  <bruno@clisp.org>
47627
47628         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
47629         allow locale names without encoding suffix.
47630         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
47631         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
47632
47633 2007-10-16  Bruno Haible  <bruno@clisp.org>
47634
47635         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
47636         * lib/getgroups.c (getgroups): Likewise.
47637         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
47638
47639 2007-10-16  Bruno Haible  <bruno@clisp.org>
47640
47641         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
47642         * modules/malloc-posix (License): Likewise.
47643         * modules/realloc-posix (License): Likewise.
47644         * modules/calloc-posix (License): Likewise.
47645         * modules/intprops (License): Change from GPL to LGPL, with
47646         Paul Eggert's approval.
47647
47648 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
47649
47650         Merge glibc changes into lib/glob.c.
47651
47652         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
47653         2007-10-15 04:59:03 UTC.  Here are the changes:
47654
47655         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
47656
47657         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
47658
47659         * lib/glob.c: Add some branch prediction throughout.
47660
47661         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
47662
47663         [BZ #5103]
47664         * lib/glob.c (glob): Recognize patterns starting \/.
47665
47666         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
47667
47668         [BZ #3996]
47669         * lib/glob.c (attribute_hidden): Define if not defined.
47670         (glob): Unescape dirname, filename or username when needed and not
47671         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
47672         is NULL.  Handle unescaped [ in pattern without closing ].
47673         Don't pass GLOB_CHECK down to recursive glob for directories.
47674         (__glob_pattern_type): New function.
47675         (__glob_pattern_p): Implement using __glob_pattern_type.
47676         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
47677         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
47678         Remove unreachable code.
47679
47680         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
47681
47682         * lib/glob.c (glob_in_dir): Add some comments and asserts to
47683         explain why there are no leaks.
47684
47685         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
47686
47687         [BZ #3253]
47688         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
47689         time, rather allocate increasingly bigger arrays of pointers, if
47690         possible with alloca, if too large with malloc.
47691
47692 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
47693
47694         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
47695         Problem reported by H.Merijn Brand in
47696         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
47697         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
47698         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
47699
47700 2007-10-15  Bruno Haible  <bruno@clisp.org>
47701
47702         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
47703         with explicit rpl_ prefix.
47704         * lib/fopen.c (fopen): Likewise.
47705         * lib/freopen.c (freopen): Likewise.
47706         * lib/iconv.c (iconv): Likewise.
47707         * lib/iconv_close.c (iconv_close): Likewise.
47708
47709 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47710
47711         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
47712
47713 2007-10-15  Bruno Haible  <bruno@clisp.org>
47714
47715         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
47716         <stddef.h> instead of <stdlib.h> since we only need NULL.
47717         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47718
47719 2007-10-15  Bruno Haible  <bruno@clisp.org>
47720
47721         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
47722         Replace paragraph talking about LIBOBJS.
47723         Reported by Colin Watson <cjwatson@debian.org>.
47724
47725 2007-10-15  Bruno Haible  <bruno@clisp.org>
47726
47727         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
47728         <stdlib.h> before using NULL.
47729
47730 2007-10-15  Simon Josefsson  <simon@josefsson.org>
47731
47732         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
47733         Reported by Albert Chin <china@thewrittenword.com>.
47734
47735 2007-10-14  Bruno Haible  <bruno@clisp.org>
47736
47737         * modules/iconv_open-utf-tests: New file.
47738         * tests/test-iconv-utf.c: New file.
47739
47740         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
47741         * modules/iconv_open-utf: New file.
47742         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
47743         (iconv, iconv_close): New declarations.
47744         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
47745         be defined.
47746         (iconv_open): Add special handling of conversion between UTF-8 and
47747         UTF-{16,32}{BE,LE}.
47748         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
47749         * lib/iconv_close.c: New file.
47750         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
47751         gl_FUNC_ICONV_OPEN.
47752         (gl_FUNC_ICONV_OPEN): Use it.
47753         (gl_FUNC_ICONV_OPEN_UTF): New macro.
47754         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
47755         and REPLACE_ICONV_UTF.
47756         * modules/iconv_open (Depends-on): Add c-strcase.
47757         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
47758         ICONV_CONST.
47759         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
47760
47761 2007-10-13  Albert Chin  <china@thewrittenword.com>
47762             Bruno Haible  <bruno@clisp.org>
47763
47764         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
47765         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
47766
47767 2007-10-13  Bruno Haible  <bruno@clisp.org>
47768
47769         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
47770         defined, use the ISO C99 inline semantics.
47771         * lib/argp.h (ARGP_EI): Likewise.
47772
47773 2007-10-13  Bruno Haible  <bruno@clisp.org>
47774
47775         Handle 'inline' change in gcc 4.3.0.
47776         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
47777         argp_fmtstream_write, argp_fmtstream_set_lmargin,
47778         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
47779         argp_fmtstream_point): Disable 'extern' declaration if the function
47780         definition is going to be provided inline.
47781         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
47782         semantics, not the ISO C99 inline semantics.
47783         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
47784         'extern' declaration if the function definition is going to be provided
47785         inline.
47786         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
47787         the GNU C inline semantics, not the ISO C99 inline semantics. With
47788         GCC 4.2, avoid a warning.
47789
47790 2007-10-13  Bruno Haible  <bruno@clisp.org>
47791
47792         * lib/freading.h (freading): Enable the use of __freading for
47793         glibc >= 2.7.
47794         * lib/freading.c (freading): Likewise.
47795
47796 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
47797
47798         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
47799         "warning: C99 inline functions are not supported; using GNU89".
47800
47801 2007-10-12  Bruno Haible  <bruno@clisp.org>
47802
47803         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
47804         of 2.
47805         * tests/test-ceilf2.c: New file.
47806         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
47807
47808         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
47809         * modules/ceilf-tests: Update.
47810
47811 2007-10-12  Bruno Haible  <bruno@clisp.org>
47812
47813         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
47814         of 2.
47815         * tests/test-floorf2.c: New file.
47816         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
47817
47818         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
47819         * modules/floorf-tests: Update.
47820
47821 2007-10-12  Bruno Haible  <bruno@clisp.org>
47822
47823         * tests/test-trunc2.c: New file.
47824         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
47825
47826         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
47827         * modules/trunc-tests: Update.
47828
47829 2007-10-12  Bruno Haible  <bruno@clisp.org>
47830
47831         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
47832         of 2.
47833         * tests/test-truncf2.c: New file.
47834         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
47835
47836         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
47837         * modules/truncf-tests: Update.
47838
47839 2007-10-11  Eric Blake  <ebb9@byu.net>
47840
47841         Don't claim strerror is broken on Interix.
47842         * doc/functions/strerror.texi (strerror): Known broken systems are
47843         now Solaris 8, and not Interix.
47844         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
47845         Interix on cross-compile.
47846         Reported by Martin Koeppe in
47847         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
47848
47849 2007-10-11  Bruno Haible  <bruno@clisp.org>
47850
47851         * modules/i-ring-tests: New file.
47852         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
47853         instead of assert.
47854
47855 2007-10-11  Bruno Haible  <bruno@clisp.org>
47856
47857         * modules/filenamecat-tests: New file.
47858         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
47859         * lib/filenamecat.c: Remove test code.
47860
47861 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
47862
47863         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
47864
47865         * lib/strerror.c: Include <string.h> always, to test interface,
47866         and to remove the need for the dummy.
47867         Include intprops.h to compute width instead of doing it ourselves
47868         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
47869         (strerror): Define it to return NULL if there's no system strerror.
47870         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
47871         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
47872         ancient pre-strerror Unix systems well any more.  Saying "unknown
47873         system error" is enough.
47874         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
47875         simpler strerror.c implementation.
47876         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
47877         Simplify the tests to reflect the simpler strerror implementation.
47878         * modules/strerror (Depends-on): Add intprops.
47879
47880 2007-10-09  Eric Blake  <ebb9@byu.net>
47881
47882         Silence test-fpending.
47883         * modules/fpending-tests (Files): Add wrapper script.
47884         * tests/test-fpending.sh: New file.
47885
47886 2007-10-09  Bruno Haible  <bruno@clisp.org>
47887
47888         * MODULES.html.sh (func_module): Don't create a hyperlink for
47889         function names like 'printf_frexp'.
47890         (Misc): Add crc, memxor.
47891         (Characteristics of floating types): New section.
47892         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
47893         isnanf-nolibm, signbit, trunc, truncf, truncl.
47894         (Enhancements for ISO C 99 functions): New subsection Input/output.
47895         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
47896         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
47897         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
47898         (Compatibility checks for POSIX:2001 functions): Add clock-time.
47899         (Enhancements for POSIX:2001 functions): Add chdir-long.
47900         (File system functions): Add areadlink, chdir-safer, read-file.
47901         Remove cycle-check.
47902         (File system as inode set): New section.
47903         (Date and time): Add gethrxtime.
47904         (Multithreading): Add openmp.
47905         (Internationalization functions): Add localename.
47906         (Unicode string functions): Add unistr/u*-mbsnlen.
47907         (Support for maintaining and releasing projects): Add git-version-gen.
47908         (Lone files): Remove directories.
47909
47910 2007-10-08  Ben Pfaff  <blp@gnu.org>
47911
47912         * lib/xmalloca.h: Fix typo in comment.
47913
47914 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
47915
47916         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
47917         when avoiding problems with integer overflow.  Use a portable test
47918         instead.
47919
47920 2007-10-08  Simon Josefsson  <simon@josefsson.org>
47921
47922         * modules/dummy (License): Change to LGPLv2+.
47923         * modules/float (License): Likewise
47924         * modules/realloc (License): Likewise
47925         * modules/stdlib (License): Likewise
47926
47927 2007-10-07  Bruno Haible  <bruno@clisp.org>
47928
47929         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
47930         * floor.c (TWO_MANT_DIG): Likewise.
47931         * ceil.c (TWO_MANT_DIG): Likewise.
47932         Reported by Ben Pfaff.
47933
47934 2007-10-07  Bruno Haible  <bruno@clisp.org>
47935
47936         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
47937         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
47938         * lib/frexp.c (FUNC): Likewise.
47939         * lib/printf-frexp.h (printf_frexp): Likewise.
47940         * lib/printf-frexpl.h (printf_frexpl): Likewise.
47941         * lib/printf-frexp.c (FUNC): Likewise.
47942         Suggested by Jim Meyering.
47943
47944 2007-10-07  Jim Meyering  <meyering@redhat.com>
47945
47946         Make xnanosleep's integer overflow test more robust.
47947         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
47948         so that gcc-4.3.0 doesn't optimize away this test for overflow.
47949
47950 2007-10-07  Bruno Haible  <bruno@clisp.org>
47951
47952         * NEWS: Mention the license change.
47953
47954         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
47955         abbreviations in the modules files.
47956
47957         Change copyright notice from GPLv2+ to GPLv3+.
47958         * README: Change copyright notice.
47959         * MODULES.html.sh: Likewise.
47960         * build-aux/bootstrap.conf: Likewise.
47961         * build-aux/config.libpath: Likewise.
47962         * build-aux/csharpcomp.sh.in: Likewise.
47963         * build-aux/csharpexec.sh.in: Likewise.
47964         * build-aux/install-reloc: Likewise.
47965         * build-aux/javacomp.sh.in: Likewise.
47966         * build-aux/javaexec.sh.in: Likewise.
47967         * build-aux/ldd.sh.in: Likewise.
47968         * build-aux/reloc-ldflags: Likewise.
47969         * build-aux/relocatable.sh.in: Likewise.
47970         * build-aux/x-to-1.in: Likewise.
47971         * check-module: Likewise.
47972         * config/srclistvars.sh: Likewise.
47973         * gnulib-tool: Likewise.
47974         * lib/acl-internal.h: Likewise.
47975         * lib/acl.c: Likewise.
47976         * lib/acl.h: Likewise.
47977         * lib/acl_entries.c: Likewise.
47978         * lib/areadlink-with-size.c: Likewise.
47979         * lib/areadlink.c: Likewise.
47980         * lib/areadlink.h: Likewise.
47981         * lib/argmatch.c: Likewise.
47982         * lib/argmatch.h: Likewise.
47983         * lib/argp-ba.c: Likewise.
47984         * lib/argp-eexst.c: Likewise.
47985         * lib/argp-fmtstream.c: Likewise.
47986         * lib/argp-fmtstream.h: Likewise.
47987         * lib/argp-fs-xinl.c: Likewise.
47988         * lib/argp-help.c: Likewise.
47989         * lib/argp-namefrob.h: Likewise.
47990         * lib/argp-parse.c: Likewise.
47991         * lib/argp-pin.c: Likewise.
47992         * lib/argp-pv.c: Likewise.
47993         * lib/argp-pvh.c: Likewise.
47994         * lib/argp-xinl.c: Likewise.
47995         * lib/argp.h: Likewise.
47996         * lib/at-func.c: Likewise.
47997         * lib/atanl.c: Likewise.
47998         * lib/backupfile.c: Likewise.
47999         * lib/backupfile.h: Likewise.
48000         * lib/basename.c: Likewise.
48001         * lib/binary-io.h: Likewise.
48002         * lib/byteswap.in.h: Likewise.
48003         * lib/c-stack.c: Likewise.
48004         * lib/c-stack.h: Likewise.
48005         * lib/c-strcasestr.c: Likewise.
48006         * lib/c-strcasestr.h: Likewise.
48007         * lib/c-strstr.c: Likewise.
48008         * lib/c-strstr.h: Likewise.
48009         * lib/c-strtod.c: Likewise.
48010         * lib/calloc.c: Likewise.
48011         * lib/canon-host.c: Likewise.
48012         * lib/canon-host.h: Likewise.
48013         * lib/canonicalize-lgpl.c: Likewise.
48014         * lib/canonicalize.c: Likewise.
48015         * lib/canonicalize.h: Likewise.
48016         * lib/ceil.c: Likewise.
48017         * lib/ceilf.c: Likewise.
48018         * lib/ceill.c: Likewise.
48019         * lib/chdir-long.c: Likewise.
48020         * lib/chdir-long.h: Likewise.
48021         * lib/chdir-safer.c: Likewise.
48022         * lib/chdir-safer.h: Likewise.
48023         * lib/chown.c: Likewise.
48024         * lib/classpath.c: Likewise.
48025         * lib/classpath.h: Likewise.
48026         * lib/clean-temp.c: Likewise.
48027         * lib/clean-temp.h: Likewise.
48028         * lib/cloexec.c: Likewise.
48029         * lib/close-stream.c: Likewise.
48030         * lib/closein.c: Likewise.
48031         * lib/closein.h: Likewise.
48032         * lib/closeout.c: Likewise.
48033         * lib/closeout.h: Likewise.
48034         * lib/concat-filename.c: Likewise.
48035         * lib/copy-file.c: Likewise.
48036         * lib/copy-file.h: Likewise.
48037         * lib/count-one-bits.h: Likewise.
48038         * lib/crc.c: Likewise.
48039         * lib/crc.h: Likewise.
48040         * lib/creat-safer.c: Likewise.
48041         * lib/csharpcomp.c: Likewise.
48042         * lib/csharpcomp.h: Likewise.
48043         * lib/csharpexec.c: Likewise.
48044         * lib/csharpexec.h: Likewise.
48045         * lib/cycle-check.c: Likewise.
48046         * lib/cycle-check.h: Likewise.
48047         * lib/diacrit.c: Likewise.
48048         * lib/diacrit.h: Likewise.
48049         * lib/diffseq.h: Likewise.
48050         * lib/dirchownmod.c: Likewise.
48051         * lib/dirent.in.h: Likewise.
48052         * lib/dirfd.c: Likewise.
48053         * lib/dirfd.h: Likewise.
48054         * lib/dirname.c: Likewise.
48055         * lib/dirname.h: Likewise.
48056         * lib/dummy.c: Likewise.
48057         * lib/dup-safer.c: Likewise.
48058         * lib/dup2.c: Likewise.
48059         * lib/eealloc.h: Likewise.
48060         * lib/error.c: Likewise.
48061         * lib/error.h: Likewise.
48062         * lib/euidaccess.c: Likewise.
48063         * lib/exclude.c: Likewise.
48064         * lib/exclude.h: Likewise.
48065         * lib/execute.c: Likewise.
48066         * lib/execute.h: Likewise.
48067         * lib/exitfail.c: Likewise.
48068         * lib/exitfail.h: Likewise.
48069         * lib/expl.c: Likewise.
48070         * lib/fatal-signal.c: Likewise.
48071         * lib/fatal-signal.h: Likewise.
48072         * lib/fbufmode.c: Likewise.
48073         * lib/fbufmode.h: Likewise.
48074         * lib/fchdir.c: Likewise.
48075         * lib/fchmodat.c: Likewise.
48076         * lib/fchownat.c: Likewise.
48077         * lib/fcntl--.h: Likewise.
48078         * lib/fcntl-safer.h: Likewise.
48079         * lib/fcntl.in.h: Likewise.
48080         * lib/fd-safer.c: Likewise.
48081         * lib/fflush.c: Likewise.
48082         * lib/file-has-acl.c: Likewise.
48083         * lib/file-set.c: Likewise.
48084         * lib/file-type.c: Likewise.
48085         * lib/file-type.h: Likewise.
48086         * lib/fileblocks.c: Likewise.
48087         * lib/filemode.c: Likewise.
48088         * lib/filemode.h: Likewise.
48089         * lib/filename.h: Likewise.
48090         * lib/filenamecat.c: Likewise.
48091         * lib/filenamecat.h: Likewise.
48092         * lib/findprog.c: Likewise.
48093         * lib/findprog.h: Likewise.
48094         * lib/float.in.h: Likewise.
48095         * lib/floor.c: Likewise.
48096         * lib/floorf.c: Likewise.
48097         * lib/floorl.c: Likewise.
48098         * lib/fopen-safer.c: Likewise.
48099         * lib/fopen.c: Likewise.
48100         * lib/fpending.c: Likewise.
48101         * lib/fpending.h: Likewise.
48102         * lib/fprintf.c: Likewise.
48103         * lib/fprintftime.h: Likewise.
48104         * lib/fpucw.h: Likewise.
48105         * lib/fpurge.c: Likewise.
48106         * lib/fpurge.h: Likewise.
48107         * lib/freadable.c: Likewise.
48108         * lib/freadable.h: Likewise.
48109         * lib/freadahead.c: Likewise.
48110         * lib/freadahead.h: Likewise.
48111         * lib/freading.c: Likewise.
48112         * lib/freading.h: Likewise.
48113         * lib/free.c: Likewise.
48114         * lib/freopen.c: Likewise.
48115         * lib/frexp.c: Likewise.
48116         * lib/frexpl.c: Likewise.
48117         * lib/fseek.c: Likewise.
48118         * lib/fseterr.c: Likewise.
48119         * lib/fseterr.h: Likewise.
48120         * lib/fstatat.c: Likewise.
48121         * lib/fstrcmp.c: Likewise.
48122         * lib/fstrcmp.h: Likewise.
48123         * lib/fsusage.c: Likewise.
48124         * lib/fsusage.h: Likewise.
48125         * lib/ftell.c: Likewise.
48126         * lib/ftello.c: Likewise.
48127         * lib/fts-cycle.c: Likewise.
48128         * lib/fts.c: Likewise.
48129         * lib/fts_.h: Likewise.
48130         * lib/full-read.c: Likewise.
48131         * lib/full-read.h: Likewise.
48132         * lib/full-write.c: Likewise.
48133         * lib/full-write.h: Likewise.
48134         * lib/fwritable.c: Likewise.
48135         * lib/fwritable.h: Likewise.
48136         * lib/fwriteerror.c: Likewise.
48137         * lib/fwriteerror.h: Likewise.
48138         * lib/fwriting.c: Likewise.
48139         * lib/fwriting.h: Likewise.
48140         * lib/gcd.c: Likewise.
48141         * lib/gcd.h: Likewise.
48142         * lib/getcwd.c: Likewise.
48143         * lib/getdate.h: Likewise.
48144         * lib/getdate.y: Likewise.
48145         * lib/getdomainname.c: Likewise.
48146         * lib/getdomainname.h: Likewise.
48147         * lib/getgroups.c: Likewise.
48148         * lib/gethostname.c: Likewise.
48149         * lib/gethrxtime.c: Likewise.
48150         * lib/gethrxtime.h: Likewise.
48151         * lib/getloadavg.c: Likewise.
48152         * lib/getndelim2.c: Likewise.
48153         * lib/getndelim2.h: Likewise.
48154         * lib/getnline.c: Likewise.
48155         * lib/getnline.h: Likewise.
48156         * lib/getopt.c: Likewise.
48157         * lib/getopt.in.h: Likewise.
48158         * lib/getopt1.c: Likewise.
48159         * lib/getopt_int.h: Likewise.
48160         * lib/getpagesize.h: Likewise.
48161         * lib/getsubopt.c: Likewise.
48162         * lib/gettime.c: Likewise.
48163         * lib/getugroups.c: Likewise.
48164         * lib/getugroups.h: Likewise.
48165         * lib/getusershell.c: Likewise.
48166         * lib/gl_anyavltree_list1.h: Likewise.
48167         * lib/gl_anyavltree_list2.h: Likewise.
48168         * lib/gl_anyhash_list1.h: Likewise.
48169         * lib/gl_anyhash_list2.h: Likewise.
48170         * lib/gl_anylinked_list1.h: Likewise.
48171         * lib/gl_anylinked_list2.h: Likewise.
48172         * lib/gl_anyrbtree_list1.h: Likewise.
48173         * lib/gl_anyrbtree_list2.h: Likewise.
48174         * lib/gl_anytree_list1.h: Likewise.
48175         * lib/gl_anytree_list2.h: Likewise.
48176         * lib/gl_anytree_oset.h: Likewise.
48177         * lib/gl_anytreehash_list1.h: Likewise.
48178         * lib/gl_anytreehash_list2.h: Likewise.
48179         * lib/gl_array_list.c: Likewise.
48180         * lib/gl_array_list.h: Likewise.
48181         * lib/gl_array_oset.c: Likewise.
48182         * lib/gl_array_oset.h: Likewise.
48183         * lib/gl_avltree_list.c: Likewise.
48184         * lib/gl_avltree_list.h: Likewise.
48185         * lib/gl_avltree_oset.c: Likewise.
48186         * lib/gl_avltree_oset.h: Likewise.
48187         * lib/gl_avltreehash_list.c: Likewise.
48188         * lib/gl_avltreehash_list.h: Likewise.
48189         * lib/gl_carray_list.c: Likewise.
48190         * lib/gl_carray_list.h: Likewise.
48191         * lib/gl_linked_list.c: Likewise.
48192         * lib/gl_linked_list.h: Likewise.
48193         * lib/gl_linkedhash_list.c: Likewise.
48194         * lib/gl_linkedhash_list.h: Likewise.
48195         * lib/gl_list.c: Likewise.
48196         * lib/gl_list.h: Likewise.
48197         * lib/gl_oset.c: Likewise.
48198         * lib/gl_oset.h: Likewise.
48199         * lib/gl_rbtree_list.c: Likewise.
48200         * lib/gl_rbtree_list.h: Likewise.
48201         * lib/gl_rbtree_oset.c: Likewise.
48202         * lib/gl_rbtree_oset.h: Likewise.
48203         * lib/gl_rbtreehash_list.c: Likewise.
48204         * lib/gl_rbtreehash_list.h: Likewise.
48205         * lib/gl_sublist.c: Likewise.
48206         * lib/gl_sublist.h: Likewise.
48207         * lib/group-member.c: Likewise.
48208         * lib/group-member.h: Likewise.
48209         * lib/hard-locale.c: Likewise.
48210         * lib/hard-locale.h: Likewise.
48211         * lib/hash-pjw.c: Likewise.
48212         * lib/hash-pjw.h: Likewise.
48213         * lib/hash-triple.c: Likewise.
48214         * lib/hash.c: Likewise.
48215         * lib/hash.h: Likewise.
48216         * lib/human.c: Likewise.
48217         * lib/human.h: Likewise.
48218         * lib/i-ring.c: Likewise.
48219         * lib/i-ring.h: Likewise.
48220         * lib/idcache.c: Likewise.
48221         * lib/imaxabs.c: Likewise.
48222         * lib/imaxdiv.c: Likewise.
48223         * lib/inet_pton.c: Likewise.
48224         * lib/inet_pton.h: Likewise.
48225         * lib/intprops.h: Likewise.
48226         * lib/inttostr.c: Likewise.
48227         * lib/inttostr.h: Likewise.
48228         * lib/inttypes.in.h: Likewise.
48229         * lib/isapipe.c: Likewise.
48230         * lib/isdir.c: Likewise.
48231         * lib/isnan.c: Likewise.
48232         * lib/isnan.h: Likewise.
48233         * lib/isnanf.c: Likewise.
48234         * lib/isnanf.h: Likewise.
48235         * lib/isnanl-nolibm.h: Likewise.
48236         * lib/isnanl.c: Likewise.
48237         * lib/isnanl.h: Likewise.
48238         * lib/javacomp.c: Likewise.
48239         * lib/javacomp.h: Likewise.
48240         * lib/javaexec.c: Likewise.
48241         * lib/javaexec.h: Likewise.
48242         * lib/javaversion.c: Likewise.
48243         * lib/javaversion.h: Likewise.
48244         * lib/javaversion.java: Likewise.
48245         * lib/lbrkprop.h: Likewise.
48246         * lib/lchmod.h: Likewise.
48247         * lib/lchown.c: Likewise.
48248         * lib/ldexpl.c: Likewise.
48249         * lib/linebreak.c: Likewise.
48250         * lib/linebreak.h: Likewise.
48251         * lib/linebuffer.c: Likewise.
48252         * lib/linebuffer.h: Likewise.
48253         * lib/locale.in.h: Likewise.
48254         * lib/logl.c: Likewise.
48255         * lib/long-options.c: Likewise.
48256         * lib/long-options.h: Likewise.
48257         * lib/lstat.c: Likewise.
48258         * lib/lstat.h: Likewise.
48259         * lib/math.in.h: Likewise.
48260         * lib/mbchar.c: Likewise.
48261         * lib/mbchar.h: Likewise.
48262         * lib/mbfile.h: Likewise.
48263         * lib/mbiter.h: Likewise.
48264         * lib/mbscasecmp.c: Likewise.
48265         * lib/mbscasestr.c: Likewise.
48266         * lib/mbschr.c: Likewise.
48267         * lib/mbscspn.c: Likewise.
48268         * lib/mbslen.c: Likewise.
48269         * lib/mbsncasecmp.c: Likewise.
48270         * lib/mbsnlen.c: Likewise.
48271         * lib/mbspbrk.c: Likewise.
48272         * lib/mbspcasecmp.c: Likewise.
48273         * lib/mbsrchr.c: Likewise.
48274         * lib/mbssep.c: Likewise.
48275         * lib/mbsspn.c: Likewise.
48276         * lib/mbsstr.c: Likewise.
48277         * lib/mbstok_r.c: Likewise.
48278         * lib/mbswidth.c: Likewise.
48279         * lib/mbswidth.h: Likewise.
48280         * lib/mbuiter.h: Likewise.
48281         * lib/memcasecmp.c: Likewise.
48282         * lib/memcasecmp.h: Likewise.
48283         * lib/memchr.c: Likewise.
48284         * lib/memcmp.c: Likewise.
48285         * lib/memcoll.c: Likewise.
48286         * lib/memcoll.h: Likewise.
48287         * lib/memcpy.c: Likewise.
48288         * lib/memrchr.c: Likewise.
48289         * lib/mkancesdirs.c: Likewise.
48290         * lib/mkdir-p.c: Likewise.
48291         * lib/mkdir-p.h: Likewise.
48292         * lib/mkdir.c: Likewise.
48293         * lib/mkdirat.c: Likewise.
48294         * lib/mkdtemp.c: Likewise.
48295         * lib/mkstemp-safer.c: Likewise.
48296         * lib/mkstemp.c: Likewise.
48297         * lib/modechange.c: Likewise.
48298         * lib/modechange.h: Likewise.
48299         * lib/mountlist.c: Likewise.
48300         * lib/mountlist.h: Likewise.
48301         * lib/mpsort.c: Likewise.
48302         * lib/nanosleep.c: Likewise.
48303         * lib/obstack.c: Likewise.
48304         * lib/obstack.h: Likewise.
48305         * lib/open-safer.c: Likewise.
48306         * lib/open.c: Likewise.
48307         * lib/openat-die.c: Likewise.
48308         * lib/openat-priv.h: Likewise.
48309         * lib/openat-proc.c: Likewise.
48310         * lib/openat.c: Likewise.
48311         * lib/openat.h: Likewise.
48312         * lib/pagealign_alloc.c: Likewise.
48313         * lib/pagealign_alloc.h: Likewise.
48314         * lib/physmem.c: Likewise.
48315         * lib/physmem.h: Likewise.
48316         * lib/pipe-safer.c: Likewise.
48317         * lib/pipe.c: Likewise.
48318         * lib/pipe.h: Likewise.
48319         * lib/posixtm.c: Likewise.
48320         * lib/posixtm.h: Likewise.
48321         * lib/posixver.c: Likewise.
48322         * lib/printf-frexp.c: Likewise.
48323         * lib/printf-frexp.h: Likewise.
48324         * lib/printf-frexpl.c: Likewise.
48325         * lib/printf-frexpl.h: Likewise.
48326         * lib/printf.c: Likewise.
48327         * lib/progname.c: Likewise.
48328         * lib/progname.h: Likewise.
48329         * lib/progreloc.c: Likewise.
48330         * lib/putenv.c: Likewise.
48331         * lib/quote.c: Likewise.
48332         * lib/quote.h: Likewise.
48333         * lib/quotearg.c: Likewise.
48334         * lib/quotearg.h: Likewise.
48335         * lib/raise.c: Likewise.
48336         * lib/readline.c: Likewise.
48337         * lib/readline.h: Likewise.
48338         * lib/readlink.c: Likewise.
48339         * lib/readtokens.c: Likewise.
48340         * lib/readtokens.h: Likewise.
48341         * lib/readtokens0.c: Likewise.
48342         * lib/readtokens0.h: Likewise.
48343         * lib/readutmp.c: Likewise.
48344         * lib/readutmp.h: Likewise.
48345         * lib/realloc.c: Likewise.
48346         * lib/relocwrapper.c: Likewise.
48347         * lib/rename-dest-slash.c: Likewise.
48348         * lib/rename.c: Likewise.
48349         * lib/rmdir.c: Likewise.
48350         * lib/rpmatch.c: Likewise.
48351         * lib/safe-read.c: Likewise.
48352         * lib/safe-read.h: Likewise.
48353         * lib/safe-write.c: Likewise.
48354         * lib/safe-write.h: Likewise.
48355         * lib/same-inode.h: Likewise.
48356         * lib/same.c: Likewise.
48357         * lib/same.h: Likewise.
48358         * lib/save-cwd.c: Likewise.
48359         * lib/save-cwd.h: Likewise.
48360         * lib/savedir.c: Likewise.
48361         * lib/savedir.h: Likewise.
48362         * lib/savewd.c: Likewise.
48363         * lib/savewd.h: Likewise.
48364         * lib/search.in.h: Likewise.
48365         * lib/setenv.c: Likewise.
48366         * lib/setenv.h: Likewise.
48367         * lib/settime.c: Likewise.
48368         * lib/sh-quote.c: Likewise.
48369         * lib/sh-quote.h: Likewise.
48370         * lib/sig2str.c: Likewise.
48371         * lib/sig2str.h: Likewise.
48372         * lib/signal.in.h: Likewise.
48373         * lib/signbitd.c: Likewise.
48374         * lib/signbitf.c: Likewise.
48375         * lib/signbitl.c: Likewise.
48376         * lib/sigprocmask.c: Likewise.
48377         * lib/sincosl.c: Likewise.
48378         * lib/sleep.c: Likewise.
48379         * lib/sprintf.c: Likewise.
48380         * lib/sqrtl.c: Likewise.
48381         * lib/stat-time.h: Likewise.
48382         * lib/stdio--.h: Likewise.
48383         * lib/stdio-safer.h: Likewise.
48384         * lib/stdlib--.h: Likewise.
48385         * lib/stdlib-safer.h: Likewise.
48386         * lib/stdlib.in.h: Likewise.
48387         * lib/stpcpy.c: Likewise.
48388         * lib/stpncpy.c: Likewise.
48389         * lib/strchrnul.c: Likewise.
48390         * lib/strcspn.c: Likewise.
48391         * lib/strerror.c: Likewise.
48392         * lib/strftime.c: Likewise.
48393         * lib/strftime.h: Likewise.
48394         * lib/striconveh.c: Likewise.
48395         * lib/striconveh.h: Likewise.
48396         * lib/striconveha.c: Likewise.
48397         * lib/striconveha.h: Likewise.
48398         * lib/stripslash.c: Likewise.
48399         * lib/strnlen1.c: Likewise.
48400         * lib/strnlen1.h: Likewise.
48401         * lib/strtod.c: Likewise.
48402         * lib/strtoimax.c: Likewise.
48403         * lib/strtok_r.c: Likewise.
48404         * lib/strtol.c: Likewise.
48405         * lib/strtoll.c: Likewise.
48406         * lib/strtoul.c: Likewise.
48407         * lib/strtoull.c: Likewise.
48408         * lib/sysexits.in.h: Likewise.
48409         * lib/tempname.c: Likewise.
48410         * lib/tempname.h: Likewise.
48411         * lib/timespec.h: Likewise.
48412         * lib/tls.c: Likewise.
48413         * lib/tls.h: Likewise.
48414         * lib/tmpdir.c: Likewise.
48415         * lib/tmpdir.h: Likewise.
48416         * lib/tmpfile-safer.c: Likewise.
48417         * lib/tmpfile.c: Likewise.
48418         * lib/trigl.c: Likewise.
48419         * lib/trigl.h: Likewise.
48420         * lib/trim.c: Likewise.
48421         * lib/trim.h: Likewise.
48422         * lib/trunc.c: Likewise.
48423         * lib/truncf.c: Likewise.
48424         * lib/truncl.c: Likewise.
48425         * lib/tsearch.c: Likewise.
48426         * lib/unicodeio.c: Likewise.
48427         * lib/unicodeio.h: Likewise.
48428         * lib/unistd--.h: Likewise.
48429         * lib/unistd-safer.h: Likewise.
48430         * lib/unistdio/ulc-fprintf.c: Likewise.
48431         * lib/unistdio/ulc-vfprintf.c: Likewise.
48432         * lib/unlinkdir.c: Likewise.
48433         * lib/unlinkdir.h: Likewise.
48434         * lib/unlocked-io.h: Likewise.
48435         * lib/unsetenv.c: Likewise.
48436         * lib/userspec.c: Likewise.
48437         * lib/utime.c: Likewise.
48438         * lib/utimecmp.c: Likewise.
48439         * lib/utimecmp.h: Likewise.
48440         * lib/utimens.c: Likewise.
48441         * lib/verify.h: Likewise.
48442         * lib/verror.c: Likewise.
48443         * lib/verror.h: Likewise.
48444         * lib/version-etc-fsf.c: Likewise.
48445         * lib/version-etc.c: Likewise.
48446         * lib/version-etc.h: Likewise.
48447         * lib/vfprintf.c: Likewise.
48448         * lib/vprintf.c: Likewise.
48449         * lib/vsprintf.c: Likewise.
48450         * lib/w32spawn.h: Likewise.
48451         * lib/wait-process.c: Likewise.
48452         * lib/wait-process.h: Likewise.
48453         * lib/wcwidth.c: Likewise.
48454         * lib/write-any-file.c: Likewise.
48455         * lib/xalloc-die.c: Likewise.
48456         * lib/xalloc.h: Likewise.
48457         * lib/xasprintf.c: Likewise.
48458         * lib/xgetcwd.c: Likewise.
48459         * lib/xgetcwd.h: Likewise.
48460         * lib/xgetdomainname.c: Likewise.
48461         * lib/xgetdomainname.h: Likewise.
48462         * lib/xgethostname.c: Likewise.
48463         * lib/xmalloc.c: Likewise.
48464         * lib/xmalloca.c: Likewise.
48465         * lib/xmalloca.h: Likewise.
48466         * lib/xmemcoll.c: Likewise.
48467         * lib/xnanosleep.c: Likewise.
48468         * lib/xreadlink.c: Likewise.
48469         * lib/xreadlink.h: Likewise.
48470         * lib/xsetenv.c: Likewise.
48471         * lib/xsetenv.h: Likewise.
48472         * lib/xstriconv.c: Likewise.
48473         * lib/xstriconv.h: Likewise.
48474         * lib/xstrndup.c: Likewise.
48475         * lib/xstrndup.h: Likewise.
48476         * lib/xstrtod.c: Likewise.
48477         * lib/xstrtod.h: Likewise.
48478         * lib/xstrtol-error.c: Likewise.
48479         * lib/xstrtol.c: Likewise.
48480         * lib/xstrtol.h: Likewise.
48481         * lib/xtime.h: Likewise.
48482         * lib/xvasprintf.c: Likewise.
48483         * lib/xvasprintf.h: Likewise.
48484         * lib/yesno.c: Likewise.
48485         * lib/yesno.h: Likewise.
48486         * posix-modules: Likewise.
48487         * tests/test-alloca-opt.c: Likewise.
48488         * tests/test-arcfour.c: Likewise.
48489         * tests/test-arctwo.c: Likewise.
48490         * tests/test-argmatch.c: Likewise.
48491         * tests/test-argp-2.sh: Likewise.
48492         * tests/test-argp.c: Likewise.
48493         * tests/test-arpa_inet.c: Likewise.
48494         * tests/test-array_list.c: Likewise.
48495         * tests/test-array_oset.c: Likewise.
48496         * tests/test-atexit.c: Likewise.
48497         * tests/test-avltree_list.c: Likewise.
48498         * tests/test-avltree_oset.c: Likewise.
48499         * tests/test-avltreehash_list.c: Likewise.
48500         * tests/test-base64.c: Likewise.
48501         * tests/test-binary-io.c: Likewise.
48502         * tests/test-byteswap.c: Likewise.
48503         * tests/test-c-ctype.c: Likewise.
48504         * tests/test-c-strcasecmp.c: Likewise.
48505         * tests/test-c-strcasestr.c: Likewise.
48506         * tests/test-c-strncasecmp.c: Likewise.
48507         * tests/test-c-strstr.c: Likewise.
48508         * tests/test-canonicalize-lgpl.c: Likewise.
48509         * tests/test-canonicalize.c: Likewise.
48510         * tests/test-carray_list.c: Likewise.
48511         * tests/test-ceilf.c: Likewise.
48512         * tests/test-ceill.c: Likewise.
48513         * tests/test-count-one-bits.c: Likewise.
48514         * tests/test-crc.c: Likewise.
48515         * tests/test-dirname.c: Likewise.
48516         * tests/test-fbufmode.c: Likewise.
48517         * tests/test-fcntl.c: Likewise.
48518         * tests/test-fflush.c: Likewise.
48519         * tests/test-floorf.c: Likewise.
48520         * tests/test-floorl.c: Likewise.
48521         * tests/test-fopen.c: Likewise.
48522         * tests/test-fprintf-posix.c: Likewise.
48523         * tests/test-fprintf-posix.h: Likewise.
48524         * tests/test-fpurge.c: Likewise.
48525         * tests/test-freadable.c: Likewise.
48526         * tests/test-freadahead.c: Likewise.
48527         * tests/test-freading.c: Likewise.
48528         * tests/test-freopen.c: Likewise.
48529         * tests/test-frexp.c: Likewise.
48530         * tests/test-frexpl.c: Likewise.
48531         * tests/test-fseek.c: Likewise.
48532         * tests/test-fseeko.c: Likewise.
48533         * tests/test-fseterr.c: Likewise.
48534         * tests/test-fstrcmp.c: Likewise.
48535         * tests/test-ftell.c: Likewise.
48536         * tests/test-ftello.c: Likewise.
48537         * tests/test-fwritable.c: Likewise.
48538         * tests/test-fwriting.c: Likewise.
48539         * tests/test-getaddrinfo.c: Likewise.
48540         * tests/test-getpass.c: Likewise.
48541         * tests/test-gettimeofday.c: Likewise.
48542         * tests/test-hmac-md5.c: Likewise.
48543         * tests/test-hmac-sha1.c: Likewise.
48544         * tests/test-iconv.c: Likewise.
48545         * tests/test-iconvme.c: Likewise.
48546         * tests/test-inttypes.c: Likewise.
48547         * tests/test-isnan.c: Likewise.
48548         * tests/test-isnanf.c: Likewise.
48549         * tests/test-isnanl-nolibm.c: Likewise.
48550         * tests/test-isnanl.c: Likewise.
48551         * tests/test-isnanl.h: Likewise.
48552         * tests/test-ldexpl.c: Likewise.
48553         * tests/test-linked_list.c: Likewise.
48554         * tests/test-linkedhash_list.c: Likewise.
48555         * tests/test-locale.c: Likewise.
48556         * tests/test-localename.c: Likewise.
48557         * tests/test-lock.c: Likewise.
48558         * tests/test-lseek.c: Likewise.
48559         * tests/test-malloca.c: Likewise.
48560         * tests/test-math.c: Likewise.
48561         * tests/test-mbscasecmp.c: Likewise.
48562         * tests/test-mbscasestr1.c: Likewise.
48563         * tests/test-mbscasestr2.c: Likewise.
48564         * tests/test-mbscasestr3.c: Likewise.
48565         * tests/test-mbscasestr4.c: Likewise.
48566         * tests/test-mbschr.c: Likewise.
48567         * tests/test-mbscspn.c: Likewise.
48568         * tests/test-mbsncasecmp.c: Likewise.
48569         * tests/test-mbspbrk.c: Likewise.
48570         * tests/test-mbspcasecmp.c: Likewise.
48571         * tests/test-mbsrchr.c: Likewise.
48572         * tests/test-mbsspn.c: Likewise.
48573         * tests/test-mbsstr1.c: Likewise.
48574         * tests/test-mbsstr2.c: Likewise.
48575         * tests/test-mbsstr3.c: Likewise.
48576         * tests/test-md5.c: Likewise.
48577         * tests/test-memmem.c: Likewise.
48578         * tests/test-netinet_in.c: Likewise.
48579         * tests/test-open.c: Likewise.
48580         * tests/test-printf-frexp.c: Likewise.
48581         * tests/test-printf-frexpl.c: Likewise.
48582         * tests/test-printf-posix.c: Likewise.
48583         * tests/test-printf-posix.h: Likewise.
48584         * tests/test-rbtree_list.c: Likewise.
48585         * tests/test-rbtree_oset.c: Likewise.
48586         * tests/test-rbtreehash_list.c: Likewise.
48587         * tests/test-read-file.c: Likewise.
48588         * tests/test-rijndael.c: Likewise.
48589         * tests/test-search.c: Likewise.
48590         * tests/test-signbit.c: Likewise.
48591         * tests/test-sleep.c: Likewise.
48592         * tests/test-snprintf-posix.c: Likewise.
48593         * tests/test-snprintf-posix.h: Likewise.
48594         * tests/test-snprintf.c: Likewise.
48595         * tests/test-sprintf-posix.c: Likewise.
48596         * tests/test-sprintf-posix.h: Likewise.
48597         * tests/test-stat-time.c: Likewise.
48598         * tests/test-stdbool.c: Likewise.
48599         * tests/test-stdint.c: Likewise.
48600         * tests/test-stdio.c: Likewise.
48601         * tests/test-stdlib.c: Likewise.
48602         * tests/test-stpncpy.c: Likewise.
48603         * tests/test-strcasestr.c: Likewise.
48604         * tests/test-striconv.c: Likewise.
48605         * tests/test-striconveh.c: Likewise.
48606         * tests/test-striconveha.c: Likewise.
48607         * tests/test-string.c: Likewise.
48608         * tests/test-sys_select.c: Likewise.
48609         * tests/test-sys_socket.c: Likewise.
48610         * tests/test-sys_stat.c: Likewise.
48611         * tests/test-sys_time.c: Likewise.
48612         * tests/test-sysexits.c: Likewise.
48613         * tests/test-time.c: Likewise.
48614         * tests/test-tls.c: Likewise.
48615         * tests/test-trunc.c: Likewise.
48616         * tests/test-truncf.c: Likewise.
48617         * tests/test-truncl.c: Likewise.
48618         * tests/test-unistd.c: Likewise.
48619         * tests/test-vasnprintf-posix.c: Likewise.
48620         * tests/test-vasnprintf-posix2.c: Likewise.
48621         * tests/test-vasnprintf.c: Likewise.
48622         * tests/test-vasprintf-posix.c: Likewise.
48623         * tests/test-vasprintf.c: Likewise.
48624         * tests/test-verify.c: Likewise.
48625         * tests/test-vfprintf-posix.c: Likewise.
48626         * tests/test-vprintf-posix.c: Likewise.
48627         * tests/test-vsnprintf-posix.c: Likewise.
48628         * tests/test-vsnprintf.c: Likewise.
48629         * tests/test-vsprintf-posix.c: Likewise.
48630         * tests/test-wchar.c: Likewise.
48631         * tests/test-wctype.c: Likewise.
48632         * tests/test-wcwidth.c: Likewise.
48633         * tests/test-xstrtol.c: Likewise.
48634         * tests/test-xvasprintf.c: Likewise.
48635         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
48636         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
48637         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
48638         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
48639         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
48640         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
48641         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
48642         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
48643         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
48644         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
48645         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
48646         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
48647         * tests/uniname/test-uninames.c: Likewise.
48648         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
48649         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
48650         * tests/unistdio/test-u16-printf1.h: Likewise.
48651         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
48652         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
48653         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
48654         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
48655         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
48656         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
48657         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
48658         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
48659         * tests/unistdio/test-u32-printf1.h: Likewise.
48660         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
48661         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
48662         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
48663         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
48664         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
48665         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
48666         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
48667         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
48668         * tests/unistdio/test-u8-printf1.h: Likewise.
48669         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
48670         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
48671         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
48672         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
48673         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
48674         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
48675         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
48676         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
48677         * tests/unistdio/test-ulc-printf1.h: Likewise.
48678         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
48679         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
48680         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
48681         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
48682         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
48683         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
48684         * tests/uniwidth/test-u16-strwidth.c: Likewise.
48685         * tests/uniwidth/test-u16-width.c: Likewise.
48686         * tests/uniwidth/test-u32-strwidth.c: Likewise.
48687         * tests/uniwidth/test-u32-width.c: Likewise.
48688         * tests/uniwidth/test-u8-strwidth.c: Likewise.
48689         * tests/uniwidth/test-u8-width.c: Likewise.
48690         * tests/uniwidth/test-uc_width.c: Likewise.
48691         * config/srclist-update: Likewise.
48692         (fixlicense): Update to GPLv3+.
48693
48694         Change copyright notice from LGPLv2.1+ to LGPLv3+.
48695         * tests/test-tsearch.c: Change copyright notice.
48696
48697         Change copyright notice from LGPLv2.0+ to LGPLv3+.
48698         * lib/c-strcaseeq.h: Change copyright notice.
48699         * lib/streq.h: Likewise.
48700         * lib/uniconv.h: Likewise.
48701         * lib/uniconv/u-conv-from-enc.h: Likewise.
48702         * lib/uniconv/u-conv-to-enc.h: Likewise.
48703         * lib/uniconv/u-strconv-from-enc.h: Likewise.
48704         * lib/uniconv/u-strconv-to-enc.h: Likewise.
48705         * lib/uniconv/u16-conv-from-enc.c: Likewise.
48706         * lib/uniconv/u16-conv-to-enc.c: Likewise.
48707         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
48708         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
48709         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
48710         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
48711         * lib/uniconv/u32-conv-from-enc.c: Likewise.
48712         * lib/uniconv/u32-conv-to-enc.c: Likewise.
48713         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
48714         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
48715         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
48716         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
48717         * lib/uniconv/u8-conv-from-enc.c: Likewise.
48718         * lib/uniconv/u8-conv-to-enc.c: Likewise.
48719         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
48720         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
48721         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
48722         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
48723         * lib/uniname.h: Likewise.
48724         * lib/uniname/uniname.c: Likewise.
48725         * lib/unistdio.h: Likewise.
48726         * lib/unistdio/u-asnprintf.h: Likewise.
48727         * lib/unistdio/u-asprintf.h: Likewise.
48728         * lib/unistdio/u-printf-args.c: Likewise.
48729         * lib/unistdio/u-printf-args.h: Likewise.
48730         * lib/unistdio/u-printf-parse.h: Likewise.
48731         * lib/unistdio/u-snprintf.h: Likewise.
48732         * lib/unistdio/u-sprintf.h: Likewise.
48733         * lib/unistdio/u-vasprintf.h: Likewise.
48734         * lib/unistdio/u-vsnprintf.h: Likewise.
48735         * lib/unistdio/u-vsprintf.h: Likewise.
48736         * lib/unistdio/u16-asnprintf.c: Likewise.
48737         * lib/unistdio/u16-asprintf.c: Likewise.
48738         * lib/unistdio/u16-printf-parse.c: Likewise.
48739         * lib/unistdio/u16-snprintf.c: Likewise.
48740         * lib/unistdio/u16-sprintf.c: Likewise.
48741         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
48742         * lib/unistdio/u16-u16-asprintf.c: Likewise.
48743         * lib/unistdio/u16-u16-snprintf.c: Likewise.
48744         * lib/unistdio/u16-u16-sprintf.c: Likewise.
48745         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
48746         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
48747         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
48748         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
48749         * lib/unistdio/u16-vasnprintf.c: Likewise.
48750         * lib/unistdio/u16-vasprintf.c: Likewise.
48751         * lib/unistdio/u16-vsnprintf.c: Likewise.
48752         * lib/unistdio/u16-vsprintf.c: Likewise.
48753         * lib/unistdio/u32-asnprintf.c: Likewise.
48754         * lib/unistdio/u32-asprintf.c: Likewise.
48755         * lib/unistdio/u32-printf-parse.c: Likewise.
48756         * lib/unistdio/u32-snprintf.c: Likewise.
48757         * lib/unistdio/u32-sprintf.c: Likewise.
48758         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
48759         * lib/unistdio/u32-u32-asprintf.c: Likewise.
48760         * lib/unistdio/u32-u32-snprintf.c: Likewise.
48761         * lib/unistdio/u32-u32-sprintf.c: Likewise.
48762         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
48763         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
48764         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
48765         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
48766         * lib/unistdio/u32-vasnprintf.c: Likewise.
48767         * lib/unistdio/u32-vasprintf.c: Likewise.
48768         * lib/unistdio/u32-vsnprintf.c: Likewise.
48769         * lib/unistdio/u32-vsprintf.c: Likewise.
48770         * lib/unistdio/u8-asnprintf.c: Likewise.
48771         * lib/unistdio/u8-asprintf.c: Likewise.
48772         * lib/unistdio/u8-printf-parse.c: Likewise.
48773         * lib/unistdio/u8-snprintf.c: Likewise.
48774         * lib/unistdio/u8-sprintf.c: Likewise.
48775         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
48776         * lib/unistdio/u8-u8-asprintf.c: Likewise.
48777         * lib/unistdio/u8-u8-snprintf.c: Likewise.
48778         * lib/unistdio/u8-u8-sprintf.c: Likewise.
48779         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
48780         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
48781         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
48782         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
48783         * lib/unistdio/u8-vasnprintf.c: Likewise.
48784         * lib/unistdio/u8-vasprintf.c: Likewise.
48785         * lib/unistdio/u8-vsnprintf.c: Likewise.
48786         * lib/unistdio/u8-vsprintf.c: Likewise.
48787         * lib/unistdio/ulc-asnprintf.c: Likewise.
48788         * lib/unistdio/ulc-asprintf.c: Likewise.
48789         * lib/unistdio/ulc-printf-parse.c: Likewise.
48790         * lib/unistdio/ulc-snprintf.c: Likewise.
48791         * lib/unistdio/ulc-sprintf.c: Likewise.
48792         * lib/unistdio/ulc-vasnprintf.c: Likewise.
48793         * lib/unistdio/ulc-vasprintf.c: Likewise.
48794         * lib/unistdio/ulc-vsnprintf.c: Likewise.
48795         * lib/unistdio/ulc-vsprintf.c: Likewise.
48796         * lib/unistr.h: Likewise.
48797         * lib/unistr/u-cpy-alloc.h: Likewise.
48798         * lib/unistr/u-cpy.h: Likewise.
48799         * lib/unistr/u-endswith.h: Likewise.
48800         * lib/unistr/u-move.h: Likewise.
48801         * lib/unistr/u-set.h: Likewise.
48802         * lib/unistr/u-startswith.h: Likewise.
48803         * lib/unistr/u-stpcpy.h: Likewise.
48804         * lib/unistr/u-stpncpy.h: Likewise.
48805         * lib/unistr/u-strcat.h: Likewise.
48806         * lib/unistr/u-strcpy.h: Likewise.
48807         * lib/unistr/u-strcspn.h: Likewise.
48808         * lib/unistr/u-strdup.h: Likewise.
48809         * lib/unistr/u-strlen.h: Likewise.
48810         * lib/unistr/u-strncat.h: Likewise.
48811         * lib/unistr/u-strncpy.h: Likewise.
48812         * lib/unistr/u-strnlen.h: Likewise.
48813         * lib/unistr/u-strpbrk.h: Likewise.
48814         * lib/unistr/u-strspn.h: Likewise.
48815         * lib/unistr/u-strstr.h: Likewise.
48816         * lib/unistr/u-strtok.h: Likewise.
48817         * lib/unistr/u16-check.c: Likewise.
48818         * lib/unistr/u16-chr.c: Likewise.
48819         * lib/unistr/u16-cmp.c: Likewise.
48820         * lib/unistr/u16-cpy-alloc.c: Likewise.
48821         * lib/unistr/u16-cpy.c: Likewise.
48822         * lib/unistr/u16-endswith.c: Likewise.
48823         * lib/unistr/u16-mblen.c: Likewise.
48824         * lib/unistr/u16-mbsnlen.c: Likewise.
48825         * lib/unistr/u16-mbtouc-aux.c: Likewise.
48826         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
48827         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
48828         * lib/unistr/u16-mbtouc.c: Likewise.
48829         * lib/unistr/u16-mbtoucr.c: Likewise.
48830         * lib/unistr/u16-move.c: Likewise.
48831         * lib/unistr/u16-next.c: Likewise.
48832         * lib/unistr/u16-prev.c: Likewise.
48833         * lib/unistr/u16-set.c: Likewise.
48834         * lib/unistr/u16-startswith.c: Likewise.
48835         * lib/unistr/u16-stpcpy.c: Likewise.
48836         * lib/unistr/u16-stpncpy.c: Likewise.
48837         * lib/unistr/u16-strcat.c: Likewise.
48838         * lib/unistr/u16-strchr.c: Likewise.
48839         * lib/unistr/u16-strcmp.c: Likewise.
48840         * lib/unistr/u16-strcpy.c: Likewise.
48841         * lib/unistr/u16-strcspn.c: Likewise.
48842         * lib/unistr/u16-strdup.c: Likewise.
48843         * lib/unistr/u16-strlen.c: Likewise.
48844         * lib/unistr/u16-strmblen.c: Likewise.
48845         * lib/unistr/u16-strmbtouc.c: Likewise.
48846         * lib/unistr/u16-strncat.c: Likewise.
48847         * lib/unistr/u16-strncmp.c: Likewise.
48848         * lib/unistr/u16-strncpy.c: Likewise.
48849         * lib/unistr/u16-strnlen.c: Likewise.
48850         * lib/unistr/u16-strpbrk.c: Likewise.
48851         * lib/unistr/u16-strrchr.c: Likewise.
48852         * lib/unistr/u16-strspn.c: Likewise.
48853         * lib/unistr/u16-strstr.c: Likewise.
48854         * lib/unistr/u16-strtok.c: Likewise.
48855         * lib/unistr/u16-to-u32.c: Likewise.
48856         * lib/unistr/u16-to-u8.c: Likewise.
48857         * lib/unistr/u16-uctomb-aux.c: Likewise.
48858         * lib/unistr/u16-uctomb.c: Likewise.
48859         * lib/unistr/u32-check.c: Likewise.
48860         * lib/unistr/u32-chr.c: Likewise.
48861         * lib/unistr/u32-cmp.c: Likewise.
48862         * lib/unistr/u32-cpy-alloc.c: Likewise.
48863         * lib/unistr/u32-cpy.c: Likewise.
48864         * lib/unistr/u32-endswith.c: Likewise.
48865         * lib/unistr/u32-mblen.c: Likewise.
48866         * lib/unistr/u32-mbsnlen.c: Likewise.
48867         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
48868         * lib/unistr/u32-mbtouc.c: Likewise.
48869         * lib/unistr/u32-mbtoucr.c: Likewise.
48870         * lib/unistr/u32-move.c: Likewise.
48871         * lib/unistr/u32-next.c: Likewise.
48872         * lib/unistr/u32-prev.c: Likewise.
48873         * lib/unistr/u32-set.c: Likewise.
48874         * lib/unistr/u32-startswith.c: Likewise.
48875         * lib/unistr/u32-stpcpy.c: Likewise.
48876         * lib/unistr/u32-stpncpy.c: Likewise.
48877         * lib/unistr/u32-strcat.c: Likewise.
48878         * lib/unistr/u32-strchr.c: Likewise.
48879         * lib/unistr/u32-strcmp.c: Likewise.
48880         * lib/unistr/u32-strcpy.c: Likewise.
48881         * lib/unistr/u32-strcspn.c: Likewise.
48882         * lib/unistr/u32-strdup.c: Likewise.
48883         * lib/unistr/u32-strlen.c: Likewise.
48884         * lib/unistr/u32-strmblen.c: Likewise.
48885         * lib/unistr/u32-strmbtouc.c: Likewise.
48886         * lib/unistr/u32-strncat.c: Likewise.
48887         * lib/unistr/u32-strncmp.c: Likewise.
48888         * lib/unistr/u32-strncpy.c: Likewise.
48889         * lib/unistr/u32-strnlen.c: Likewise.
48890         * lib/unistr/u32-strpbrk.c: Likewise.
48891         * lib/unistr/u32-strrchr.c: Likewise.
48892         * lib/unistr/u32-strspn.c: Likewise.
48893         * lib/unistr/u32-strstr.c: Likewise.
48894         * lib/unistr/u32-strtok.c: Likewise.
48895         * lib/unistr/u32-to-u16.c: Likewise.
48896         * lib/unistr/u32-to-u8.c: Likewise.
48897         * lib/unistr/u32-uctomb.c: Likewise.
48898         * lib/unistr/u8-check.c: Likewise.
48899         * lib/unistr/u8-chr.c: Likewise.
48900         * lib/unistr/u8-cmp.c: Likewise.
48901         * lib/unistr/u8-cpy-alloc.c: Likewise.
48902         * lib/unistr/u8-cpy.c: Likewise.
48903         * lib/unistr/u8-endswith.c: Likewise.
48904         * lib/unistr/u8-mblen.c: Likewise.
48905         * lib/unistr/u8-mbsnlen.c: Likewise.
48906         * lib/unistr/u8-mbtouc-aux.c: Likewise.
48907         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
48908         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
48909         * lib/unistr/u8-mbtouc.c: Likewise.
48910         * lib/unistr/u8-mbtoucr.c: Likewise.
48911         * lib/unistr/u8-move.c: Likewise.
48912         * lib/unistr/u8-next.c: Likewise.
48913         * lib/unistr/u8-prev.c: Likewise.
48914         * lib/unistr/u8-set.c: Likewise.
48915         * lib/unistr/u8-startswith.c: Likewise.
48916         * lib/unistr/u8-stpcpy.c: Likewise.
48917         * lib/unistr/u8-stpncpy.c: Likewise.
48918         * lib/unistr/u8-strcat.c: Likewise.
48919         * lib/unistr/u8-strchr.c: Likewise.
48920         * lib/unistr/u8-strcmp.c: Likewise.
48921         * lib/unistr/u8-strcpy.c: Likewise.
48922         * lib/unistr/u8-strcspn.c: Likewise.
48923         * lib/unistr/u8-strdup.c: Likewise.
48924         * lib/unistr/u8-strlen.c: Likewise.
48925         * lib/unistr/u8-strmblen.c: Likewise.
48926         * lib/unistr/u8-strmbtouc.c: Likewise.
48927         * lib/unistr/u8-strncat.c: Likewise.
48928         * lib/unistr/u8-strncmp.c: Likewise.
48929         * lib/unistr/u8-strncpy.c: Likewise.
48930         * lib/unistr/u8-strnlen.c: Likewise.
48931         * lib/unistr/u8-strpbrk.c: Likewise.
48932         * lib/unistr/u8-strrchr.c: Likewise.
48933         * lib/unistr/u8-strspn.c: Likewise.
48934         * lib/unistr/u8-strstr.c: Likewise.
48935         * lib/unistr/u8-strtok.c: Likewise.
48936         * lib/unistr/u8-to-u16.c: Likewise.
48937         * lib/unistr/u8-to-u32.c: Likewise.
48938         * lib/unistr/u8-uctomb-aux.c: Likewise.
48939         * lib/unistr/u8-uctomb.c: Likewise.
48940         * lib/unitypes.h: Likewise.
48941         * lib/uniwidth.h: Likewise.
48942         * lib/uniwidth/cjk.h: Likewise.
48943         * lib/uniwidth/u16-strwidth.c: Likewise.
48944         * lib/uniwidth/u16-width.c: Likewise.
48945         * lib/uniwidth/u32-strwidth.c: Likewise.
48946         * lib/uniwidth/u32-width.c: Likewise.
48947         * lib/uniwidth/u8-strwidth.c: Likewise.
48948         * lib/uniwidth/u8-width.c: Likewise.
48949         * lib/uniwidth/width.c: Likewise.
48950
48951 2007-10-07  Bruno Haible  <bruno@clisp.org>
48952
48953         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
48954         The file is still under LGPL (see modules/inttypes).
48955
48956 2007-10-06  Bruno Haible  <bruno@clisp.org>
48957
48958         * modules/trunc (Dependencies): Add 'extensions'.
48959         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
48960         Reported by Ben Pfaff <blp@gnu.org>.
48961
48962 2007-10-06  Bruno Haible  <bruno@clisp.org>
48963
48964         * modules/freopen-tests: New file.
48965         * tests/test-freopen.c: New file.
48966
48967         * modules/fopen-tests: New file.
48968         * tests/test-fopen.c: New file.
48969
48970         * modules/fopen: New file.
48971         * lib/fopen.c: New file.
48972         * m4/fopen.m4: New file.
48973         * modules/freopen: New file.
48974         * lib/freopen.c: New file.
48975         * m4/freopen.m4: New file.
48976         * lib/stdio.in.h (fopen, freopen): New declarations.
48977         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
48978         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
48979         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
48980         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
48981         * doc/functions/fopen.texi: Mention the 'fopen' module.
48982         * doc/functions/freopen.texi: Mention the 'freopen' module.
48983
48984 2007-10-06  Bruno Haible  <bruno@clisp.org>
48985
48986         * modules/open-tests: New file.
48987         * tests/test-open.c: New file.
48988
48989         * modules/open: New file.
48990         * lib/open.c: New file.
48991         * m4/open.m4: New file.
48992         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
48993         lib/open.c does.
48994         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
48995         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
48996         macros.
48997         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
48998         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
48999         REPLACE_OPEN.
49000         * doc/functions/open.texi: Mention the 'open' module.
49001
49002 2007-10-04  Bruno Haible  <bruno@clisp.org>
49003
49004         * modules/ceill-tests: New file.
49005         * tests/test-ceill.c: New file.
49006
49007         * modules/ceill: New file.
49008         * lib/ceill.c: Replace entire file.
49009         * m4/ceill.m4: New file.
49010         * lib/math.in.h (ceill): Replace declaration.
49011         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
49012         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
49013         * doc/functions/ceill.texi: Mention the 'ceill' module.
49014         * modules/mathl (Files): Remove lib/ceill.c.
49015         (Depends-on): Add ceill.
49016
49017 2007-10-04  Bruno Haible  <bruno@clisp.org>
49018
49019         * modules/ceilf-tests: New file.
49020         * tests/test-ceilf.c: New file.
49021
49022         * modules/ceilf: New file.
49023         * lib/ceil.c: New file.
49024         * lib/ceilf.c: New file.
49025         * m4/ceilf.m4: New file.
49026         * lib/math.in.h (ceilf): New declaration.
49027         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
49028         HAVE_DECL_CEILF.
49029         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
49030         HAVE_DECL_CEILF.
49031         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
49032
49033 2007-10-04  Bruno Haible  <bruno@clisp.org>
49034
49035         * modules/floorl-tests: New file.
49036         * tests/test-floorl.c: New file.
49037
49038         * modules/floorl: New file.
49039         * lib/floorl.c: Replace entire file.
49040         * m4/floorl.m4: New file.
49041         * lib/math.in.h (floorl): Replace declaration.
49042         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
49043         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
49044         * doc/functions/floorl.texi: Mention the 'floorl' module.
49045         * modules/mathl (Files): Remove lib/floorl.c.
49046         (Depends-on): Add floorl.
49047
49048 2007-10-04  Bruno Haible  <bruno@clisp.org>
49049
49050         * modules/floorf-tests: New file.
49051         * tests/test-floorf.c: New file.
49052
49053         * modules/floorf: New file.
49054         * lib/floor.c: New file.
49055         * lib/floorf.c: New file.
49056         * m4/floorf.m4: New file.
49057         * lib/math.in.h (floorf): New declaration.
49058         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
49059         HAVE_DECL_FLOORF.
49060         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
49061         HAVE_DECL_FLOORF.
49062         * doc/functions/floorf.texi: Mention the 'floorf' module.
49063
49064 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
49065             Bruno Haible  <bruno@clisp.org>
49066
49067         Advertise for the Git server instead of the CVS server.
49068         * doc/gnulib-intro.texi (Steady Development): Mention the Git
49069         repository instead of the CVS one.
49070         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
49071         about all VCS systems generically.
49072         * doc/gnulib.texi (Introduction): Capitalize `Git'.
49073
49074 2007-10-04  Bruno Haible  <bruno@clisp.org>
49075
49076         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
49077         means.
49078         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
49079
49080 2007-10-04  Bruno Haible  <bruno@clisp.org>
49081
49082         * modules/truncl-tests: New file.
49083         * tests/test-truncl.c: New file.
49084
49085         * modules/truncl: New file.
49086         * lib/truncl.c: New file.
49087         * m4/truncl.m4: New file.
49088         * lib/math.in.h (truncl): New declaration.
49089         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
49090         HAVE_DECL_TRUNCL.
49091         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
49092         HAVE_DECL_TRUNCL.
49093         * doc/functions/truncl.texi: Mention the 'truncl' module.
49094
49095 2007-10-04  Bruno Haible  <bruno@clisp.org>
49096
49097         * modules/truncf-tests: New file.
49098         * tests/test-truncf.c: New file.
49099
49100         * modules/truncf: New file.
49101         * lib/trunc.c: Make paramerizable through USE_* macros.
49102         * lib/truncf.c: New file.
49103         * m4/truncf.m4: New file.
49104         * lib/math.in.h (truncf): New declaration.
49105         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
49106         HAVE_DECL_TRUNCF.
49107         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
49108         HAVE_DECL_TRUNCF.
49109         * doc/functions/truncf.texi: Mention the 'truncf' module.
49110
49111 2007-10-03  Bruno Haible  <bruno@clisp.org>
49112
49113         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
49114         augmentation also for tests modules.
49115         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
49116         * modules/atexit-tests (Makefile.am): Likewise.
49117         * modules/binary-io-tests (Makefile.am): Likewise.
49118         * modules/c-strcase-tests (Makefile.am): Likewise.
49119         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
49120         * modules/canonicalize-tests (Makefile.am): Likewise.
49121         * modules/closein-tests (Makefile.am): Likewise.
49122         * modules/fprintf-posix-tests (Makefile.am): Likewise.
49123         * modules/freadahead-tests (Makefile.am): Likewise.
49124         * modules/fseek-tests (Makefile.am): Likewise.
49125         * modules/fseeko-tests (Makefile.am): Likewise.
49126         * modules/ftell-tests (Makefile.am): Likewise.
49127         * modules/ftello-tests (Makefile.am): Likewise.
49128         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
49129         * modules/isnanl-tests (Makefile.am): Likewise.
49130         * modules/lseek-tests (Makefile.am): Likewise.
49131         * modules/mbscasecmp-tests (Makefile.am): Likewise.
49132         * modules/mbscasestr-tests (Makefile.am): Likewise.
49133         * modules/mbschr-tests (Makefile.am): Likewise.
49134         * modules/mbscspn-tests (Makefile.am): Likewise.
49135         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
49136         * modules/mbspbrk-tests (Makefile.am): Likewise.
49137         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
49138         * modules/mbsrchr-tests (Makefile.am): Likewise.
49139         * modules/mbsspn-tests (Makefile.am): Likewise.
49140         * modules/mbsstr-tests (Makefile.am): Likewise.
49141         * modules/printf-posix-tests (Makefile.am): Likewise.
49142         * modules/snprintf-posix-tests (Makefile.am): Likewise.
49143         * modules/sprintf-posix-tests (Makefile.am): Likewise.
49144         * modules/tsearch-tests (Makefile.am): Likewise.
49145         * modules/uniname/uniname-tests (Makefile.am): Likewise.
49146         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
49147         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
49148         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
49149         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
49150         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
49151         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
49152         * modules/vprintf-posix-tests (Makefile.am): Likewise.
49153         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
49154         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
49155         * modules/xstrtoimax-tests (Makefile.am): Likewise.
49156         * modules/xstrtol-tests (Makefile.am): Likewise.
49157         * modules/xstrtoumax-tests (Makefile.am): Likewise.
49158         * modules/yesno-tests (Makefile.am): Likewise.
49159
49160 2007-10-03  Bruno Haible  <bruno@clisp.org>
49161
49162         * modules/trunc-tests: New file.
49163         * tests/test-trunc.c: New file.
49164
49165         * modules/trunc: New file.
49166         * lib/trunc.c: New file.
49167         * m4/trunc.m4: New file.
49168         * lib/math.in.h (trunc): New declaration.
49169         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
49170         HAVE_DECL_TRUNC.
49171         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
49172         HAVE_DECL_TRUNC.
49173         * doc/functions/trunc.texi: Mention the 'trunc' module.
49174
49175 2007-10-03  Bruno Haible  <bruno@clisp.org>
49176
49177         * tests/test-fpending.c: New file, mostly copied
49178         from coreutils/lib/t-fpending.c.
49179         * modules/fpending-tests: New file.
49180
49181 2007-10-03  Bruno Haible  <bruno@clisp.org>
49182
49183         Port the stdio extensions to QNX (untested).
49184         * lib/fseterr.c (fseterr): Add support for QNX.
49185         * lib/fbufmode.c (fbufmode): Likewise.
49186         * lib/freadable.c (freadable): Likewise.
49187         * lib/fwritable.c (fwritable): Likewise.
49188         * lib/freading.c (freading): Likewise.
49189         * lib/fwriting.c (fwriting): Likewise.
49190         * lib/freadahead.c (freadahed): Likewise.
49191         * lib/fpurge.c (fpurge): Likewise.
49192         * lib/fseeko.c (rpl_fseeko): Likewise.
49193
49194 2007-10-03  Bruno Haible  <bruno@clisp.org>
49195             Jim Meyering  <jim@meyering.net>
49196             Eric Blake  <ebb9@byu.net>
49197
49198         * doc/relocatable.texi: Use @command instead of @program.
49199
49200 2007-10-02  Jim Meyering  <jim@meyering.net>
49201
49202         Perform one more "_.h" -> ".in.h" substitution.
49203         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
49204         instead of unistd_.h here, too.
49205
49206 2007-10-01  Bruno Haible  <bruno@clisp.org>
49207
49208         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
49209         Needed for the alloca-opt module.
49210
49211 2007-09-30  Bruno Haible  <bruno@clisp.org>
49212
49213         * lib/alloca.in.h: Renamed from lib/alloca_.h.
49214         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
49215         alloca_.h.
49216         * lib/argz.in.h: Renamed from lib/argz_.h.
49217         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
49218         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
49219         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
49220         byteswap_.h.
49221         * lib/dirent.in.h: Renamed from lib/dirent_.h.
49222         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
49223         dirent_.h.
49224         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
49225         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
49226         fcntl_.h.
49227         * lib/float.in.h: Renamed from lib/float_.h.
49228         * modules/float (Files, Makefile.am): Use float.in.h instead of
49229         float_.h.
49230         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
49231         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
49232         fnmatch_.h.
49233         * lib/getopt.in.h: Renamed from lib/getopt_.h.
49234         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
49235         getopt_.h.
49236         * lib/glob.in.h: Renamed from lib/glob_.h.
49237         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
49238         * lib/iconv.in.h: Renamed from lib/iconv_.h.
49239         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
49240         iconv_.h.
49241         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
49242         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
49243         inttypes_.h.
49244         * lib/locale.in.h: Renamed from lib/locale_.h.
49245         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
49246         locale_.h.
49247         * lib/math.in.h: Renamed from lib/math_.h.
49248         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
49249         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
49250         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
49251         of netinet_in_.h. Add dependency.
49252         * lib/poll.in.h: Renamed from lib/poll_.h.
49253         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
49254         * lib/search.in.h: Renamed from lib/search_.h.
49255         * modules/search (Files, Makefile.am): Use search.in.h instead of
49256         search_.h.
49257         * lib/signal.in.h: Renamed from lib/signal_.h.
49258         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
49259         _signal.h.
49260         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
49261         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
49262         stdbool_.h.
49263         * lib/stdint.in.h: Renamed from lib/stdint_.h.
49264         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
49265         stdint_.h.
49266         * lib/stdio.in.h: Renamed from lib/stdio_.h.
49267         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
49268         stdio_.h.
49269         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
49270         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
49271         stdlib_.h.
49272         * lib/string.in.h: Renamed from lib/string_.h.
49273         * modules/string (Files, Makefile.am): Use string.in.h instead of
49274         string_.h.
49275         * doc/gnulib-tool.texi (Initial import): Update.
49276         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
49277         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
49278         of sys_select_.h. Add dependency.
49279         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
49280         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
49281         of sys_socket_.h.
49282         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
49283         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
49284         sys_stat_.h.
49285         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
49286         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
49287         sys_time_.h.
49288         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
49289         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
49290         sysexits_.h.
49291         * lib/time.in.h: Renamed from lib/time_.h.
49292         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
49293         * lib/unistd.in.h: Renamed from lib/unistd_.h.
49294         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
49295         unistd_.h.
49296         * lib/wchar.in.h: Renamed from lib/wchar_.h.
49297         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
49298         wchar_.h.
49299         * lib/wctype.in.h: Renamed from lib/wctype_.h.
49300         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
49301         wctype_.h.
49302         * build-aux/bootstrap (slurp): Update.
49303         * lib/.cppi-disable: Update.
49304
49305 2007-09-30  Bruno Haible  <bruno@clisp.org>
49306
49307         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
49308         Needed on BeOS.
49309
49310 2007-09-30  Bruno Haible  <bruno@clisp.org>
49311
49312         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
49313
49314 2007-09-29  Bruno Haible  <bruno@clisp.org>
49315
49316         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
49317
49318 2007-09-29  Bruno Haible  <bruno@clisp.org>
49319
49320         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
49321         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
49322         * build-aux/install-reloc: Compile also areadlink.c.
49323         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
49324
49325 2007-09-29  Bruno Haible  <bruno@clisp.org>
49326
49327         * gnulib-tool (func_emit_initmacro_done): Indentation.
49328
49329 2007-09-29  Bruno Haible  <bruno@clisp.org>
49330
49331         * README: Add CVS checkout update instructions.
49332         Info from Bob Proulx <bob@proulx.com>.
49333
49334 2007-09-28  Eric Blake  <ebb9@byu.net>
49335
49336         Provide move-if-change.
49337         * build-aux/move-if-change: New file, based on best practice
49338         rather than any canonical upstream location.
49339
49340 2007-09-28  Jim Meyering  <jim@meyering.net>
49341
49342         Fix canonicalize loop-detection corner case.
49343         Do not attempt to stat the symlink values stored via seen_triple.
49344         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
49345         on linux-2.6.18, (but not 2.6.22).
49346         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
49347         triple_compare.  The former compares dev,ino,filename, while the latter
49348         would actually stat dirname(filename) when dev and ino were equal.
49349         * lib/hash-triple.c: Install <string.h>.
49350         (STREQ): Define.
49351         (triple_compare_ino_str): New function.
49352         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
49353
49354 2007-09-28  Eric Blake  <ebb9@byu.net>
49355
49356         Enforce that AC_REPLACE_FUNCS files exist.
49357         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
49358         override check for typos.
49359
49360         Fix test-closein on Solaris 10.
49361         * tests/test-closein.c (main): Don't assume stdin can be inherited
49362         closed on all systems.
49363         * tests/test-closein.sh: Likewise.
49364         Reported by Piotr Tarnowski.
49365
49366 2007-09-28  Jim Meyering  <jim@meyering.net>
49367
49368         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
49369
49370 2007-09-27  Jim Meyering  <jim@meyering.net>
49371
49372         canonicalize: Avoid a false-positive cycle failure.
49373         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
49374         Sort.  Remove cycle-check.
49375         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
49376         not cycle-check.h.
49377         (seen_triple): New function.
49378         (canonicalize_filename_mode): Use it instead of cycle-check.
49379         * tests/test-canonicalize.c: Add a test for this bug.
49380         * tests/test-canonicalize.sh: Set up and run the test.
49381
49382         New module, file-set, from coreutils.
49383         * modules/file-set: Define it.
49384         * lib/file-set.c, lib/file-set.h: Implement.
49385
49386         New module, hash-triple, from coreutils.
49387         * modules/hash-triple: Define it.
49388         * lib/hash-triple.c, lib/hash-triple.h: Implement.
49389
49390 2007-09-25  Eric Blake  <ebb9@byu.net>
49391
49392         Fix strerror on Interix.
49393         * lib/string_.h (strerror): Declare replacement.
49394         * doc/functions/strerror.texi (strerror): Document the Interix
49395         shortcoming.
49396         * modules/string (Makefile.am): Support new hooks.
49397         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
49398         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
49399         gl_FUNC_STRERROR_SEPARATE.
49400         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
49401         * lib/strerror.c (rpl_strerror): Provide replacement.
49402         * modules/strerror (Depends-on): Add string.
49403         (configure.ac): Detect use of module.
49404         * tests/test-strerror.c: New file.
49405         * modules/strerror-tests: New test module.
49406         * modules/argp (Depends-on): Add strerror.
49407         * modules/error (Depends-on): Likewise.
49408         Reported by Martin Koeppe.
49409
49410 2007-09-24  Bruno Haible  <bruno@clisp.org>
49411
49412         * README: Update git instructions.
49413
49414 2007-09-24  Eric Blake  <ebb9@byu.net>
49415
49416         Revert fpending breakage from 2007-09-08.
49417         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
49418         __fpending.c.
49419
49420 2007-09-24  Jim Meyering  <jim@meyering.net>
49421
49422         filenamecat.c: Add a test.
49423         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
49424         showing how the function works when DIR is the empty string.
49425
49426 2007-09-21  Simon Josefsson  <simon@josefsson.org>
49427
49428         * tests/test-canonicalize.sh: Turn on executable bit.
49429
49430 2007-09-19  Eric Blake  <ebb9@byu.net>
49431
49432         * README: Update CVS instructions.
49433
49434 2007-09-18  Bruno Haible  <bruno@clisp.org>
49435
49436         * modules/areadlink: New file.
49437         * lib/areadlink.h (areadlink): New declaration.
49438         * lib/areadlink.c: New file, based on lib/xreadlink.c.
49439
49440 2007-09-17  Jim Meyering  <jim@meyering.net>
49441
49442         * lib/savewd.c (ESTALE) [!defined]: Define.
49443         Reported to be required on Interix by Martin Koeppe.
49444
49445 2007-09-17  Bruno Haible  <bruno@clisp.org>
49446
49447         * gnulib-tool (func_version): Use $version.
49448
49449 2007-09-16  Bruno Haible  <bruno@clisp.org>
49450
49451         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
49452         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
49453         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
49454         Reported by Greg Schafer <gschafer@zip.com.au>.
49455
49456 2007-09-15  Bruno Haible  <bruno@clisp.org>
49457
49458         * gnulib-tool (sed): Try a little harder to make bash understand the
49459         alias.
49460         Reported by Bruce Korb <bruce.korb@gmail.com>.
49461
49462 2007-09-13  Eric Blake  <ebb9@byu.net>
49463
49464         * ChangeLog: Remove conflict markers.
49465
49466 2007-09-13  Simon Josefsson  <simon@josefsson.org>
49467
49468         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
49469         Reported by Bruno Haible <bruno@clisp.org>.
49470
49471 2007-09-12  Bruno Haible  <bruno@clisp.org>
49472
49473         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
49474         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
49475         is not defined.
49476
49477 2007-09-12  Eric Blake  <ebb9@byu.net>
49478
49479         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
49480         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
49481         Autoconf definition.
49482         * modules/euidaccess (Depends-on): Add extensions, for
49483         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
49484         * modules/fnmatch (Depends-on): Likewise.
49485         * modules/getaddrinfo (Depends-on): Likewise.
49486         * modules/getdelim (Depends-on): Likewise.
49487         * modules/getline (Depends-on): Likewise.
49488         * modules/getsubopt (Depends-on): Likewise.
49489         * modules/gettext (Depends-on): Likewise.
49490         * modules/group-member (Depends-on): Likewise.
49491         * modules/mbchar (Depends-on): Likewise.
49492         * modules/memmem (Depends-on): Likewise.
49493         * modules/mempcpy (Depends-on): Likewise.
49494         * modules/memrchr (Depends-on): Likewise.
49495         * modules/pagealign_alloc (Depends-on): Likewise.
49496         * modules/readutmp (Depends-on): Likewise.
49497         * modules/stpcpy (Depends-on): Likewise.
49498         * modules/stpncpy (Depends-on): Likewise.
49499         * modules/strchrnul (Depends-on): Likewise.
49500         * modules/strndup (Depends-on): Likewise.
49501         * modules/strsep (Depends-on): Likewise.
49502         * modules/strverscmp (Depends-on): Likewise.
49503         * modules/vasprintf (Depends-on): Likewise.
49504         * modules/wcwidth (Depends-on): Likewise.
49505         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
49506         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
49507         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
49508         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
49509         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
49510         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
49511         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
49512         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
49513         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
49514         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
49515         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
49516         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
49517         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
49518         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
49519         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
49520         * m4/readutmp.m4 (gl_READUTMP): Likewise.
49521         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
49522         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
49523         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
49524         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
49525         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
49526         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
49527         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
49528         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
49529         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
49530         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
49531         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
49532         so that lock.m4 can be used in gettext without extensions module.
49533
49534 2007-09-11  Bruno Haible  <bruno@clisp.org>
49535
49536         * m4/isc-posix.m4: Remove file.
49537         Suggested by Eric Blake.
49538
49539 2007-09-11  Eric Blake  <ebb9@byu.net>
49540
49541         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
49542
49543 2007-09-10  Bruno Haible  <bruno@clisp.org>
49544
49545         * posix-modules: Fix typo in error message.
49546         Reported by Matt <mkraai@beckman.com>.
49547
49548 2007-09-09  Bruno Haible  <bruno@clisp.org>
49549
49550         * doc/functions/getdelim.texi: Update list of platforms lacking the
49551         function.
49552         * doc/functions/getline.texi: Likewise.
49553
49554 2007-09-09  Jim Meyering  <jim@meyering.net>
49555
49556         * lib/hash.c (hash_initialize): Detect calloc failure.
49557         Reported by Bruno Haible.
49558
49559 2007-09-09  Bruno Haible  <bruno@clisp.org>
49560
49561         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
49562         malloc or realloc fails.
49563
49564 2007-09-09  Bruno Haible  <bruno@clisp.org>
49565
49566         * modules/getcwd (Depends-on): Add malloc-posix.
49567         * modules/glob (Depends-on): Likewise.
49568         * modules/putenv (Depends-on): Likewise.
49569         * modules/strdup (Depends-on): Likewise.
49570         * modules/getdelim (Depends-on): Add realloc-posix.
49571         * modules/read-file (Depends-on): Likewise.
49572
49573 2007-09-09  Bruno Haible  <bruno@clisp.org>
49574
49575         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
49576         (gl_FUNC_MALLOC_POSIX): Require it.
49577         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
49578         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
49579         * modules/realloc (Files): Add m4/malloc.m4.
49580         * modules/calloc (Files): Likewise.
49581
49582 2007-09-09  Bruno Haible  <bruno@clisp.org>
49583
49584         * modules/malloc-posix: New file.
49585         * modules/malloc (Depends-on): Add malloc-posix.
49586         * lib/malloc.c: Include errno.h.
49587         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
49588         and a POSIX-compatible malloc into a single function. Set ENOMEM
49589         when returning NULL.
49590         * m4/malloc.m4: New file.
49591         * doc/functions/malloc.texi: Mention the malloc-posix module.
49592         * lib/stdlib_.h (malloc): New declaration.
49593         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
49594         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
49595         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
49596         and HAVE_MALLOC_POSIX.
49597
49598 2007-09-09  Bruno Haible  <bruno@clisp.org>
49599
49600         * modules/realloc-posix: New file.
49601         * modules/realloc (Depends-on): Add realloc-posix.
49602         * lib/realloc.c: Include errno.h.
49603         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
49604         and a POSIX-compatible realloc into a single function. Set ENOMEM
49605         when returning NULL.
49606         * m4/realloc.m4: New file.
49607         * doc/functions/realloc.texi: Mention the realloc-posix module.
49608         * lib/stdlib_.h (realloc): New declaration.
49609         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
49610         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
49611         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
49612         and HAVE_REALLOC_POSIX.
49613
49614 2007-09-09  Bruno Haible  <bruno@clisp.org>
49615
49616         * modules/calloc-posix: New file.
49617         * modules/calloc (Depends-on): Add calloc-posix.
49618         * lib/calloc.c: Include errno.h.
49619         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
49620         and a POSIX-compatible calloc into a single function. Set ENOMEM
49621         when returning NULL.
49622         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
49623         * doc/functions/calloc.texi: Mention the calloc-posix module.
49624         * lib/stdlib_.h (calloc): New declaration.
49625         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
49626         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
49627         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
49628         and HAVE_CALLOC_POSIX.
49629
49630 2007-09-09  Bruno Haible  <bruno@clisp.org>
49631
49632         Allow for modules to show an arbitrary notice.
49633         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
49634         * gnulib-tool: New option --extract-notice.
49635         (func_usage): Document it.
49636         (sed_extract_prog): Update.
49637         (func_get_notice): New function.
49638         (func_modules_notice): New function.
49639         (func_import, func_create_testdir): Invoke it.
49640         Suggested by Jim Meyering.
49641
49642 2007-09-09  Bruno Haible  <bruno@clisp.org>
49643
49644         * gnulib-tool: New options --verbose, --quiet.
49645         (func_usage): Document them.
49646         (verbose): New variable.
49647         (func_execute_command): New function.
49648         (func_import): Don't show the module list and the file list if
49649         $verbose < 0.
49650         (func_create_testdir): Likewise. Use func_execute_command.
49651         (func_create_megatestdir): Use func_execute_command.
49652
49653 2007-09-08  Bruno Haible  <bruno@clisp.org>
49654
49655         * gnulib-tool (func_import): Prefer rsync over wget when available,
49656         for fetching the PO files.
49657
49658 2007-09-08  Bruno Haible  <bruno@clisp.org>
49659
49660         * posix-modules: New file. Portions copied from gnulib-tool.
49661         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
49662
49663 2007-09-08  Jim Meyering  <jim@meyering.net>
49664
49665         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
49666         * lib/fpending.h: Rename from __fpending.h.
49667         * lib/fpending.c: Rename from __fpending.c.
49668         Include "fpending.h", not "__fpending.h".
49669         * lib/__fpending.h, lib/__fpending.c: Remove files.
49670         * modules/fpending (Files): Reflect new file names.
49671         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
49672
49673 2007-09-08  Bruno Haible  <bruno@clisp.org>
49674
49675         * m4/inttypes-h.m4: Remove stub file.
49676
49677 2007-09-07  Simon Josefsson  <simon@josefsson.org>
49678
49679         * doc/headers/stdint.texi: Discuss #include_next issue.
49680
49681 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
49682
49683         * build-aux/bootstrap: Remove obsolete comment about wget --help.
49684
49685 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49686
49687         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
49688         in variable name.
49689
49690 2007-09-03  Jim Meyering  <jim@meyering.net>
49691
49692         New module: git-version-gen.
49693         * modules/git-version-gen: New file.
49694
49695         Import changes from coreutils for bootstrap script.
49696
49697         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
49698
49699         bootstrap: uses rsync to download the .po files
49700         * build-aux/bootstrap (po_download_command_format): New global.
49701         (download_po_files): Use rsync.
49702         (update_po_files): Don't remove .po files after download,
49703         so future rsync runs can take advantage of the copies.
49704
49705         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
49706
49707         Solve the unnecessary-.po-file-regeneration problem once and for all.
49708         * build-aux/bootstrap (download_po_files): New function, renamed from
49709         get_translations.  Now, downloads, but doesn't update LINGUAS.
49710         (update_po_files): New function.
49711
49712         bootstrap: Ignore more.
49713         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
49714         uniwidth to e.g., lib/.gitignore.
49715         (slurp): Handle the sys_stat_.h -> sys mapping, too.
49716
49717         * build-aux/bootstrap: New setting: vc_ignore.
49718         (insert_sorted_if_absent): Create $file if absent.
49719         Adapt to new, possibly empty, list: $vc_ignore.
49720
49721         bootstrap: generate more ignorable names
49722         * build-aux/bootstrap (slurp): When generating ignorable names,
49723         also map .sin to .sed, .gperf to .c, and .y to .c.
49724
49725 2007-09-03  Jim Meyering  <jim@meyering.net>
49726
49727         * build-aux/git-version-gen: New file, from coreutils.  For details, see
49728         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
49729
49730 2007-09-02  Bruno Haible  <bruno@clisp.org>
49731
49732         Fix mis-recognition of 'mcs' on QNX 6.
49733         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
49734         output contains the string "Mono".
49735         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
49736         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
49737
49738 2007-09-01  Bruno Haible  <bruno@clisp.org>
49739
49740         Fix collision between uniwidth/* and linebreak modules.
49741         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
49742         u32_width): Remove declarations.
49743         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
49744         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
49745         streq3, streq2, streq1, streq0): Remove functions.
49746         (STREQ): Remove macro.
49747         (is_cjk_encoding): Remove function.
49748         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
49749         (uc_width, u8_width, u16_width, u32_width): Remove functions.
49750         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
49751         * NEWS: Document the change.
49752
49753 2007-09-01  Bruno Haible  <bruno@clisp.org>
49754
49755         * lib/streq.h: Add double-inclusion guard.
49756
49757 2007-09-01  Karl Berry  <karl@gnu.org>
49758
49759         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
49760
49761 2007-08-28  Jim Meyering  <jim@meyering.net>
49762
49763         Rename mreadlink_with_size to areadlink_with_size.
49764         * NEWS: Document the change.
49765         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
49766         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
49767         * lib/mreadlink.h: Rename this to...
49768         * lib/areadlink.h: ...this.
49769         * modules/mreadlink-with-size: Rename this to...
49770         * modules/areadlink-with-size: ...this.
49771         * lib/canonicalize.c: Reflect the renaming.
49772         * modules/canonicalize: Likewise.
49773
49774 2007-08-26  Bruno Haible  <bruno@clisp.org>
49775
49776         * gnulib-tool (func_import): When deciding which files to remove,
49777         consider also dangling symbolic links.
49778         Reported by Eric Blake.
49779
49780 2007-08-26  Bruno Haible  <bruno@clisp.org>
49781
49782         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
49783
49784 2007-08-23  Simon Josefsson  <simon@josefsson.org>
49785
49786         * lib/readline.c: Don't include getline.h, the prototype is now
49787         found in stdio.h.
49788
49789 2007-08-23  Jim Meyering  <jim@meyering.net>
49790
49791         Getdelim touchup.
49792         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
49793         around the funlockfile call, since funlockfile never sets errno.
49794         Don't set errno upon failed realloc.
49795
49796 2007-08-22  Eric Blake  <ebb9@byu.net>
49797
49798         Getline touchups.
49799         * lib/getdelim.c (getdelim): Revert regression that required *n to
49800         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
49801         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
49802         getdelim, rather than whether implementation is missing.
49803         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
49804         * lib/stdio_.h (getline): Also declare if replacement is
49805         required.
49806         * doc/functions/getdelim.texi: New file.
49807         * doc/functions/getline.texi: Likewise.
49808         * doc/gnulib.texi (Function Substitutes): Add new files.
49809         Reported by Bruno Haible.
49810
49811 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
49812
49813         * users.txt: Add Guile.
49814
49815 2007-08-22  Eric Blake  <ebb9@byu.net>
49816
49817         * tests/test-getdelim.c (main): Use remove, not unlink.
49818         * tests/test-getline.c (main): Likewise.
49819
49820         Move getline and getdelim into stdio.h, per POSIX 200x.
49821         * modules/getline (Files): Remove getline.h.
49822         (Depends-on): Add stdio.
49823         (configure.ac): Add module indicator.
49824         * modules/getdelim (Files): Remove getdelim.h.
49825         (Depends-on): Add stdio.
49826         (configure.ac): Add module indicator.
49827         * modules/stdio (Makefile.am): Work with new indicators.
49828         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
49829         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
49830         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
49831         * lib/getdelim.h: Delete.
49832         * lib/getline.h: Delete.
49833         * lib/stdio_.h (getdelim, getline): Declare.
49834         * modules/getdelim-tests: New module.
49835         * modules/getline-tests: Likewise.
49836         * tests/test-getdelim.c: New file.
49837         * tests/test-getline.c: Likewise.
49838         * NEWS: Document the change.
49839         * lib/getline.c: Update choice of header.
49840         * lib/csharpcomp.c: Likewise.
49841         * lib/getpass.c: Likewise.
49842         * lib/javacomp.c: Likewise.
49843         * lib/javaversion.c: Likewise.
49844         * lib/yesno.c: Likewise.
49845         * lib/getdelim.c: Likewise.
49846         (getdelim): Set errno on failure, and avoid memory leak.
49847
49848 2007-08-19  Bruno Haible  <bruno@clisp.org>
49849
49850         * modules/closein (Depends-on): Add freadahead.
49851         * lib/closein.c: Include freadahead.h.
49852         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
49853         is zero.
49854
49855 2007-08-19  Bruno Haible  <bruno@clisp.org>
49856
49857         * modules/freadahead-tests: New file.
49858         * tests/test-freadahead.sh: New file.
49859         * tests/test-freadahead.c: New file.
49860
49861         * modules/freadahead: New file.
49862         * lib/freadahead.h: New file.
49863         * lib/freadahead.c: New file.
49864         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
49865         fbufmode, fpurge, freadable, fwritable.
49866
49867 2007-08-19  Eric Blake  <ebb9@byu.net>
49868
49869         Test yesno in combination with closein.
49870         * lib/yesno.c (yesno): Document use of stdin.
49871         * modules/yesno-tests (Files): New module.
49872         * tests/test-yesno.c (main): New file.
49873         * tests/test-yesno.sh: Likewise.
49874
49875 2007-08-19  Bruno Haible  <bruno@clisp.org>
49876
49877         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
49878         * lib/fseeko.c (rpl_fseeko): Likewise.
49879         * lib/fseterr.c (fseterr): Likewise.
49880
49881 2007-08-19  Bruno Haible  <bruno@clisp.org>
49882
49883         * tests/test-lseek.c (main): Disable a test for BeOS.
49884         * doc/functions/lseek.texi: Document the BeOS bug.
49885
49886 2007-08-19  Bruno Haible  <bruno@clisp.org>
49887             Eric Blake  <ebb9@byu.net>
49888
49889         * lib/lseek.c: Include <sys/stat.h>.
49890         (rpl_lseek): Add workaround code also for Unix platforms.
49891         Needed for BeOS.
49892         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
49893         * doc/functions/lseek.texi: Document BeOS definiency.
49894
49895 2007-08-18  Bruno Haible  <bruno@clisp.org>
49896
49897         * modules/fstrcmp-tests: New file.
49898         * tests/test-fstrcmp.c: New file.
49899
49900 2007-08-18  Bruno Haible  <bruno@clisp.org>
49901
49902         * modules/fstrcmp: New file, from GNU gettext with modifications.
49903         * lib/fstrcmp.h: New file, from GNU gettext.
49904         * lib/fstrcmp.c: New file, from GNU gettext.
49905         * MODULES.html.sh (String handling): Add fstrcmp.
49906
49907 2007-08-18  Bruno Haible  <bruno@clisp.org>
49908
49909         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
49910         'bool'.
49911         (diag, compareseq): Remove const from the ctxt argument.
49912         (USE_HEURISTIC): Undefine at the end.
49913
49914 2007-08-18  Jim Meyering  <jim@meyering.net>
49915
49916         New file: lib/idcache.h
49917         * NEWS: Mention the addition.
49918         * modules/idcache (Files): Add lib/idcache.h
49919         * lib/idcache.c: Include "idcache.h".
49920         Don't include <sys/types.h>.
49921         Add a FIXME comment.
49922         Move file-scoped "static" declarations to the top.
49923         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
49924
49925 2007-08-17  Bruno Haible  <bruno@clisp.org>
49926         and Paul Eggert  <eggert@cs.ucla.edu>
49927
49928         * MODULES.html.sh: Add diffseq.
49929         * modules/diffseq: New file.
49930         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
49931         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
49932
49933 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49934
49935         Import changes from coreutils for bootstrap script.
49936
49937         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
49938
49939         * build-aux/bootstrap (slurp): Work even in environments where
49940         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
49941         current code does not slurp files whose names start with ".", and
49942         this looks like it might be a troublesome area.
49943
49944         2007-07-11  Jim Meyering  <jim@meyering.net>
49945
49946         If there's a GPL vN copyright comment, require that N == 3.
49947
49948         2007-07-08  Jim Meyering  <jim@meyering.net>
49949
49950         Run the coreutils-specific code only if tests/Makefile.am.in exists.
49951         * build-aux/bootstrap (mam_template): Move definition out of loop.
49952
49953         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
49954
49955         * build-aux/bootstrap (symlink_to_dir): Rename function from
49956         symlink_to_gnulib.  Add a directory parameter.  Update all
49957         callers.
49958         (cp_mark_as_generated): Also check for -- and link to -- files in
49959         gl/.
49960
49961         2007-07-08  Jim Meyering  <jim@meyering.net>
49962
49963         Adapt to deeper hierarchy in gnulib.
49964         * build-aux/bootstrap (symlink_to_dir): If the destination
49965         directory doesn't exist, create it. This is required at least for
49966         "lib/uniwidth/cjk.h".
49967
49968         2007-05-15  Jim Meyering  <jim@meyering.net>
49969
49970         * build-aux/bootstrap: Now that generated Makefile.am files
49971         are no longer under version control, they must be created at
49972         bootstrap time.
49973
49974 2007-08-14  Ben Pfaff  <blp@gnu.org>
49975
49976         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
49977
49978 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49979
49980         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
49981         given the changes below.
49982         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
49983         even on hosts that have padding bits beyond the supported 64.
49984
49985 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
49986
49987         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
49988         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
49989         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
49990         depends on it.
49991         (xstrtol_error): Remove.
49992         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
49993         but with a different signature.
49994         (ATTRIBUTE_NORETURN, __attribute__): New macros.
49995         * lib/xstrtol-error.c: Include exitfail.h.
49996         (xstrtol_fatal): New function, with a different signature from the
49997         old xstrtol_error, so that the caller need not worry about passing
49998         in an exit status, or about storage management of the option argument.
49999         (xstrtol_error): Now a static function.  Redo signature to
50000         implement xstrtol_fatal.  Output the correct number of hyphens in
50001         front of the option so that the caller need not worry about
50002         storage management.
50003         (N_): New macro.
50004         (_): Remove; not used now.
50005         * modules/xstrtol: Depend on getopt.
50006         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
50007         of old STRTOL_FATAL_ERROR macro.
50008         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
50009         of test program.
50010         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
50011         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
50012
50013 2007-08-08  Eric Blake  <ebb9@byu.net>
50014
50015         * lib/xstrtol-error.c: Add missing include.
50016
50017         Move xstrtol messages into gnulib domain, when --pobase is used.
50018         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
50019         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
50020         * modules/xstrtol (Files): Distribute new file.
50021         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
50022         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
50023         * tests/test-xstrtol.c: ...into new file.
50024         * tests/test-xstrtoul.c: Also test xstrtoul.
50025         * tests/test-xstrtoimax.c: Also test xstrtoimax.
50026         * tests/test-xstrtoumax.c: Also test xstrtoumax.
50027         * tests/test-xstrtol.sh: Drive the tests.
50028         * tests/test-xstrtoimax.sh: Likewise.
50029         * tests/test-xstrtoumax.sh: Likewise.
50030         * modules/xstrtol-tests: New module.
50031         * modules/xstrtoimax-tests: Likewise.
50032         * modules/xstrtoumax-tests: Likewise.
50033
50034 2007-08-08  Jim Meyering  <jim@meyering.net>
50035
50036         New function: mfile_name_concat.
50037         * lib/filenamecat.c (mfile_name_concat): New function, just like
50038         file_name_concat, but return NULL upon failure rather than exiting
50039         with a diagnostic.
50040         * lib/filenamecat.h: Declare it.
50041
50042 2007-08-07  Bruno Haible  <bruno@clisp.org>
50043
50044         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
50045         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
50046         warning from gcc.
50047         Reported by Eric Blake.
50048
50049 2007-08-07  Simon Josefsson  <simon@josefsson.org>
50050
50051         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
50052         * modules/crypto/arcfour (License): Likewise.
50053         * modules/crypto/des-tests (License): Likewise.
50054         * modules/crypto/gc-arctwo-tests (License): Likewise.
50055         * modules/crypto/gc-des-tests (License): Likewise.
50056         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
50057         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
50058         * modules/crypto/gc-md2-tests (License): Likewise.
50059         * modules/crypto/gc-md4-tests (License): Likewise.
50060         * modules/crypto/gc-md5-tests (License): Likewise.
50061         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
50062         * modules/crypto/gc-rijndael-tests (License): Likewise.
50063         * modules/crypto/gc-sha1-tests (License): Likewise.
50064         * modules/crypto/gc-tests (License): Likewise.
50065         * modules/crypto/hmac-md5 (License): Likewise.
50066         * modules/crypto/hmac-sha1 (License): Likewise.
50067         * modules/crypto/md2-tests (License): Likewise.
50068         * modules/crypto/md4-tests (License): Likewise.
50069         * modules/crypto/md5 (License): Likewise.
50070         * modules/crypto/rijndael (License): Likewise.
50071         * modules/crypto/sha1 (License): Likewise.
50072         * modules/memxor (License): Likewise.
50073
50074 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
50075         and Bruno Haible  <bruno@clisp.org>
50076
50077         * NEWS: Describe interface changes to human, xstrtol.
50078         * lib/human.h: Include <xstrtol.h>.
50079         (human_options): Return enum strtol_error, not int.  Remove
50080         bool arg; take int * instead.
50081         * lib/human.c: Don't include "gettext.h".
50082         (_): Remove; no longer used.
50083         Don't include <xstrtol.h>, since human.h does it.
50084         (human_options): Adjust to abovementioned interface changes.
50085         Do not report error to stderr; that's now the caller's
50086         responsibility.
50087         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
50088         interface change.
50089         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
50090         Str, Argument_type_string.  All uses changed.  Put " argument"
50091         in diagnostics to make them clearer.  Change wording of suffix
50092         message for clarity.
50093         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
50094         Argument_type_string.
50095         (STRTOL_FATAL_WARN): Remove; no longer used.
50096         * modules/human (Depends-on): Remove gettext-h.
50097
50098 2007-08-06  Simon Josefsson  <simon@josefsson.org>
50099
50100         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
50101
50102 2007-07-31  Bruno Haible  <bruno@clisp.org>
50103
50104         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
50105         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
50106         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
50107
50108 2007-07-31  Bruno Haible  <bruno@clisp.org>
50109
50110         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
50111         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
50112
50113 2007-07-30  Bruno Haible  <bruno@clisp.org>
50114
50115         * modules/base64 (License): Use the synonymous term "LGPLv2+".
50116         * modules/c-ctype (License): Likewise.
50117         * modules/c-strcase (License): Likewise.
50118         * modules/check-version (License): Likewise.
50119         * modules/iconv (License): Likewise.
50120         * modules/iconv_open (License): Likewise.
50121         * modules/read-file (License): Likewise.
50122         * modules/striconv (License): Likewise.
50123         * modules/strverscmp (License): Likewise.
50124         * modules/vasprintf (License): Likewise.
50125         * modules/crypto/des (License): Likewise.
50126         * modules/crypto/gc (License): Likewise.
50127         * modules/crypto/gc-arcfour (License): Likewise.
50128         * modules/crypto/gc-arctwo (License): Likewise.
50129         * modules/crypto/gc-des (License): Likewise.
50130         * modules/crypto/gc-hmac-md5 (License): Likewise.
50131         * modules/crypto/gc-hmac-sha1 (License): Likewise.
50132         * modules/crypto/gc-md2 (License): Likewise.
50133         * modules/crypto/gc-md4 (License): Likewise.
50134         * modules/crypto/gc-md5 (License): Likewise.
50135         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
50136         * modules/crypto/gc-random (License): Likewise.
50137         * modules/crypto/gc-rijndael (License): Likewise.
50138         * modules/crypto/gc-sha1 (License): Likewise.
50139         * modules/crypto/md2 (License): Likewise.
50140         * modules/crypto/md4 (License): Likewise.
50141
50142 2007-07-30  Jim Meyering  <jim@meyering.net>
50143
50144         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
50145         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
50146         it has valid stat data.  This bug would cause du not to count the
50147         sizes of inaccessible directories.
50148         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
50149         in <http://bugzilla.redhat.com/250077>.
50150
50151 2007-07-25  Peter O'Gorman  <peter@pogma.com>
50152             Bruno Haible  <bruno@clisp.org>
50153
50154         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
50155         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
50156         #include_next, gives a diagnostic about it, but reports no error in
50157         the exit code.
50158         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
50159
50160 2007-07-24  Ben Pfaff  <blp@gnu.org>
50161
50162         Improve name: "count-one-bits" is better than "popcount".
50163         * MODULES.html.sh: Update name.
50164         * lib/popcount.h: Renamed lib/count-one-bits.h.
50165         (popcount): Renamed count_one_bits.
50166         (popcountl): Renamed count_one_bits_l.
50167         (popcountll): Renamed count_one_bits_ll.
50168         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
50169         * modules/popcount: Renamed module/count-one-bits.
50170         * modules/popcount-tests: Renamed module/count-one-bits-tests.
50171         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
50172
50173 2007-07-23  Ben Pfaff  <blp@gnu.org>
50174
50175         * lib/popcount.h (popcount32): Reduce size of constants, to allow
50176         better code generation, and add U to large constants to avoid
50177         warnings, in non-GCC case.
50178         Suggested by Bruno Haible.
50179
50180 2007-07-23  Ben Pfaff  <blp@gnu.org>
50181
50182         * lib/popcount.h: Use verify_true instead of if...abort.
50183         * modules/popcount: Depend on verify module.
50184         Suggested by Jim Meyering.
50185
50186 2007-07-23  Bruno Haible  <bruno@clisp.org>
50187
50188         * gnulib-tool (func_import): Create a .cvsignore file also when the
50189         directory is not yet in CVS but the toplevel directory is. When
50190         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
50191         Reported by Karl Berry.
50192
50193 2007-07-22  Ben Pfaff  <blp@gnu.org>
50194
50195         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
50196         case.
50197         Suggested by Eric Blake.
50198
50199 2007-07-22  Ben Pfaff  <blp@gnu.org>
50200
50201         New module: popcount.
50202         * MODULES.html.sh: Add popcount.
50203         * modules/popcount: New file.
50204         * modules/popcount-tests: New file.
50205         * tests/test-popcount.c: New file.
50206         * lib/popcount.h: New file.
50207         * m4/popcount.m4: New file.
50208
50209 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
50210
50211         * build-aux/announce-gen: Update to GPLv3.
50212
50213         * build-aux/config.guess: Update from config.
50214
50215 2007-07-21  Bruno Haible  <bruno@clisp.org>
50216
50217         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
50218         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
50219
50220 2007-07-20  Jim Meyering  <jim@meyering.net>
50221
50222         * check-module: Diagnose a self-dependency.
50223
50224 2007-07-19  Bruno Haible  <bruno@clisp.org>
50225
50226         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
50227         empty.
50228         Reported by Eric Blake.
50229
50230 2007-07-18  Bruno Haible  <bruno@clisp.org>
50231
50232         * gnulib-tool: New options --po-base, --po-domain.
50233         (func_usage): Document them.
50234         (pobase, po_domain): New variables.
50235         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
50236         DEFAULT_TEXT_DOMAIN.
50237         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
50238         (func_import): Consider pobase and po_domain. Create a po/ directory.
50239         (func_create_testdir): Set pobase and po_domain to empty.
50240         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
50241         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
50242
50243 2007-07-18  Bruno Haible  <bruno@clisp.org>
50244
50245         * gnulib-tool (func_get_automake_snippet): Synthesize also an
50246         EXTRA_DIST augmentation for files in build-aux/.
50247
50248 2007-07-16  Bruno Haible  <bruno@clisp.org>
50249
50250         * modules/lseek (License): Use the synonymous term "LGPLv2+".
50251         * modules/getdelim (License): Likewise.
50252
50253 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50254
50255         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
50256         * modules/d-type (License): Likewise.
50257         * modules/extensions (License): Likewise.
50258         * modules/fnmatch (License): Likewise.
50259         * modules/fseeko (License): Likewise.
50260         * modules/getaddrinfo (License): Likewise.
50261         * modules/getline (License): Likewise.
50262         * modules/getlogin_r (License): Likewise.
50263         * modules/getpass (License): Likewise.
50264         * modules/gettimeofday (License): Likewise.
50265         * modules/glob (License): Likewise.
50266         * modules/inet_ntop (License): Likewise.
50267         * modules/malloc (License): Likewise.
50268         * modules/malloca (License): Likewise.
50269         * modules/memmem (License): Likewise.
50270         * modules/mempcpy (License): Likewise.
50271         * modules/memset (License): Likewise.
50272         * modules/minmax (License): Likewise.
50273         * modules/mktime (License): Likewise.
50274         * modules/netinet_in (License): Likewise.
50275         * modules/pathmax (License): Likewise.
50276         * modules/poll (License): Likewise.
50277         * modules/regex (License): Likewise.
50278         * modules/snprintf (License): Likewise.
50279         * modules/stdbool (License): Likewise.
50280         * modules/stdint (License): Likewise.
50281         * modules/stdio (License): Likewise.
50282         * modules/strcase (License): Likewise.
50283         * modules/strcasestr (License): Likewise.
50284         * modules/strdup (License): Likewise.
50285         * modules/string (License): Likewise.
50286         * modules/strndup (License): Likewise.
50287         * modules/strnlen (License): Likewise.
50288         * modules/strpbrk (License): Likewise.
50289         * modules/strptime (License): Likewise.
50290         * modules/strsep (License): Likewise.
50291         * modules/sys_select (License): Likewise.
50292         * modules/sys_socket (License): Likewise.
50293         * modules/sys_stat (License): Likewise.
50294         * modules/sys_time (License): Likewise.
50295         * modules/time (License): Likewise.
50296         * modules/time_r (License): Likewise.
50297         * modules/timegm (License): Likewise.
50298         * modules/unistd (License): Likewise.
50299         * modules/vsnprintf (License): Likewise.
50300         * modules/wctype (License): Likewise.
50301
50302 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50303
50304         * modules/argz (License): LGPLv2+.
50305
50306 2007-07-15  Karl Berry  <karl@gnu.org>
50307
50308         * doc/gnulib.texi: revise node structure per new fdl.texi.
50309
50310 2007-07-14  Bruno Haible  <bruno@clisp.org>
50311
50312         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
50313         the output file.
50314         * lib/uniname/uninames.h: Regenerated.
50315
50316 2007-07-14  Karl Berry  <karl@gnu.org>
50317
50318         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
50319         omitting sectioning and index commands.
50320
50321 2007-07-13  Bruno Haible  <bruno@clisp.org>
50322
50323         New gnulib-tool option --more-symlinks.
50324         * gnulib-tool (func_usage): Document --more-symlinks.
50325         (do_copyrights): New variable.
50326         Recognize option --more-symlinks.
50327         (func_import): Don't add a copyright notice transform to
50328         sed_transform_lib_file if do_copyrights is empty.
50329
50330 2007-07-13  Bruno Haible  <bruno@clisp.org>
50331
50332         * lib/vasnprintf.c (decimal_point_char): Define also if
50333         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
50334         && !NEED_PRINTF_DIRECTIVE_A.
50335         Reported by Clemens Koller <clemens.koller@anagramm.de> via
50336         Gary V. Vaughan <gary@gnu.org>.
50337
50338 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
50339
50340         * lib/inttypes_.h: Undo previous change, since it was fixed
50341         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
50342
50343 2007-07-13  Bruno Haible  <bruno@clisp.org>
50344
50345         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
50346         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
50347
50348 2007-07-13  Jim Meyering  <jim@meyering.net>
50349
50350         df: Don't fail for Tru64's "file-on-file mount".
50351         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
50352         so we fall through and use statfs instead.  Details here:
50353         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
50354         Reported by Albert Chin.
50355
50356 2007-07-13  Bruno Haible  <bruno@clisp.org>
50357
50358         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
50359         * modules/configmake (License): Likewise.
50360         * modules/gettext (License): Likewise.
50361         * modules/gettext-h (License): Likewise.
50362         * modules/include_next (License): Likewise.
50363         * modules/link-warning (License): Likewise.
50364         * modules/localcharset (License): Likewise.
50365         * modules/localename (License): Likewise.
50366         * modules/lock (License): Likewise.
50367         * modules/relocatable-lib-lgpl (License): Likewise.
50368         * modules/size_max (License): Likewise.
50369         * modules/vasnprintf (License): Likewise.
50370         * modules/wchar (License): Likewise.
50371         * modules/xsize (License): Likewise.
50372
50373 2007-07-13  Bruno Haible  <bruno@clisp.org>
50374
50375         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
50376         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
50377
50378 2007-07-12  Bruno Haible  <bruno@clisp.org>
50379
50380         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
50381         in the modules files.
50382
50383 2007-07-11  Karl Berry  <karl@gnu.org>
50384
50385         * MODULES.html.sh (func_module): use
50386          sed -e '\|^'"${includefile}"'$|d'
50387          instead of /.../d, to avoid errors on $includefile's containing /.
50388
50389 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
50390
50391         * gnulib-tool (func_import): Avoid duplication of --avoid
50392         statements
50393         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
50394         names to `_' in variable names.
50395
50396 2007-07-10  Eric Blake  <ebb9@byu.net>
50397
50398         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
50399         * NEWS: Document this change.
50400
50401 2007-07-08  Bruno Haible  <bruno@clisp.org>
50402
50403         Update to Unicode 5.0.
50404         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
50405         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
50406         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
50407         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
50408         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
50409         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
50410         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
50411         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
50412         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
50413         U+10A3F, U+1D242..U+1D244.
50414         (nonspacing_table_ind): Update.
50415         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
50416         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
50417
50418 2007-07-08  Bruno Haible  <bruno@clisp.org>
50419
50420         Update to Unicode 5.0.
50421         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
50422         code transform. Extend the name index field of unicode_name_to_code and
50423         unicode_code_to_name from 16 to 24 bits.
50424         * lib/uniname/uniname.c (unicode_character_name,
50425         unicode_name_character): Add the range 0x12xxx to the code transform.
50426         * lib/uniname/uninames.h: Regenerated.
50427         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
50428
50429 2007-07-07  Bruno Haible  <bruno@clisp.org>
50430
50431         * modules/wcwidth-tests: New file.
50432         * tests/test-wcwidth.c: New file.
50433
50434         Work around MacOS X wcwidth() bug.
50435         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
50436         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
50437         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
50438         original wcwidth in non-UTF-8 locales.
50439         * modules/wcwidth (Depends-on): Add localcharset, streq,
50440         uniwidth/width.
50441         * doc/functions/wcwidth.texi: Update.
50442
50443 2007-07-07  Bruno Haible  <bruno@clisp.org>
50444
50445         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
50446         (wcwidth): New declaration.
50447         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
50448         macros.
50449         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
50450         here. Prepare for creating <wchar.h> unconditionally.
50451         * modules/wchar (Depends-on): Add link-warning.
50452         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
50453         REPLACE_WCWIDTH, and GL_LINK_WARNING.
50454         * lib/wcwidth.h: Remove file.
50455         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
50456         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
50457         * modules/wcwidth (Files): Remove lib/wcwidth.h.
50458         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
50459         (Include): Replace wcwidth.h with <wchar.h>.
50460         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
50461         * lib/mbchar.h: Don't include wcwidth.h.
50462         * lib/mbswidth.c: Likewise.
50463         * NEWS: Mention the change.
50464
50465 2007-07-07  Bruno Haible  <bruno@clisp.org>
50466
50467         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
50468         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
50469         definition with an external declaration.
50470         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
50471         defined as a function. Remove AC_C_INLINE requirement.
50472         * modules/wcwidth (Files): Add lib/wcwidth.c.
50473         (Makefile.am): Remove redundant statement.
50474
50475 2007-07-07  Bruno Haible  <bruno@clisp.org>
50476
50477         * MODULES.html.sh (Unicode string functions): Add the new modules.
50478
50479         * tests/uniwidth/test-u32-strwidth.c: New file.
50480         * modules/uniwidth/u32-strwidth-tests: New file.
50481
50482         * lib/uniwidth/u32-strwidth.c: New file.
50483         * modules/uniwidth/u32-strwidth: New file.
50484
50485         * tests/uniwidth/test-u16-strwidth.c: New file.
50486         * modules/uniwidth/u16-strwidth-tests: New file.
50487
50488         * lib/uniwidth/u16-strwidth.c: New file.
50489         * modules/uniwidth/u16-strwidth: New file.
50490
50491         * tests/uniwidth/test-u8-strwidth.c: New file.
50492         * modules/uniwidth/u8-strwidth-tests: New file.
50493
50494         * lib/uniwidth/u8-strwidth.c: New file.
50495         * modules/uniwidth/u8-strwidth: New file.
50496
50497         * tests/uniwidth/test-u32-width.c: New file.
50498         * modules/uniwidth/u32-width-tests: New file.
50499
50500         * lib/uniwidth/u32-width.c: New file.
50501         * modules/uniwidth/u32-width: New file.
50502
50503         * tests/uniwidth/test-u16-width.c: New file.
50504         * modules/uniwidth/u16-width-tests: New file.
50505
50506         * lib/uniwidth/u16-width.c: New file.
50507         * modules/uniwidth/u16-width: New file.
50508
50509         * tests/uniwidth/test-u8-width.c: New file.
50510         * modules/uniwidth/u8-width-tests: New file.
50511
50512         * lib/uniwidth/u8-width.c: New file.
50513         * modules/uniwidth/u8-width: New file.
50514
50515         * tests/uniwidth/test-uc_width.c: New file.
50516         * modules/uniwidth/width-tests: New file.
50517
50518         * lib/uniwidth/width.c: New file, from GNU libiconv.
50519         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
50520         * modules/uniwidth/width: New file.
50521
50522         * lib/uniwidth.h: New file, from GNU libiconv.
50523         * modules/uniwidth/base: New file.
50524
50525 2007-07-07  Bruno Haible  <bruno@clisp.org>
50526
50527         * lib/uniname.h: New file, from GNU gettext.
50528         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
50529         * lib/uniname/uninames.h: New file, from GNU gettext.
50530         * lib/uniname/uniname.c: New file, from GNU gettext.
50531         * tests/uniname/test-uninames.sh: New file.
50532         * tests/uniname/test-uninames.c: New file, from GNU gettext.
50533         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
50534         * modules/uniname/base: New file.
50535         * modules/uniname/uniname: New file.
50536         * modules/uniname/uniname-tests: New file.
50537         * MODULES.html.sh (Unicode string functions): Add the new modules.
50538
50539 2007-07-06  Bruno Haible  <bruno@clisp.org>
50540
50541         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
50542
50543 2007-07-06  Bruno Haible  <bruno@clisp.org>
50544
50545         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
50546         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
50547         includes <cygwin/sys_time.h> which includes <sys/select.h> which
50548         include <sys/time.h>.
50549         Reported by Eric Blake.
50550
50551 2007-07-06  Eric Blake  <ebb9@byu.net>
50552
50553         Fix testing canonicalize on cygwin.
50554         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
50555         Revert patch from 2007-06-19.
50556         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
50557         canonicalize module is also in use.
50558         * tests/test-canonicalize.c: New file.
50559         * tests/test-canonicalize.sh: Likewise.
50560         * modules/canonicalize-tests: Likewise.
50561
50562 2007-07-06  Jim Meyering  <jim@meyering.net>
50563
50564         * lib/getugroups.c (getugroups): Detect getgrent failure.
50565         Adjust comment to reflect reality: this function may return -1.
50566
50567 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
50568
50569         * build-aux/bootstrap (TP_URL,get_translations): Update to use
50570         the new TP address.
50571         (usage): Fix typo
50572         (gnulib_mk): New variable.
50573
50574 2007-07-05  Jim Meyering  <jim@meyering.net>
50575
50576         Don't let endgrent clobber errno, no matter how improbable.
50577         * lib/getugroups.c (getugroups): Save and restore errno around
50578         endgrent call.
50579
50580         Close the group DB even when failing with 2^31 or more members.
50581         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
50582
50583 2007-07-04  Jim Meyering  <jim@meyering.net>
50584
50585         * lib/getugroups.h: New file.
50586         * lib/getugroups.c: Include "getugroups.h".
50587         Remove uses of "register" keyword.
50588         Move local variable, "cp", down into scope where used.
50589         Give "username" parameter the "const" attribute.
50590         * modules/getugroups (Files): Add lib/getugroups.h
50591
50592 2007-07-04  Karl Berry  <karl@gnu.org>
50593
50594         * MODULES.html.sh (func_all_modules): Complete rename of
50595         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
50596
50597 2007-07-02  Bruno Haible  <bruno@clisp.org>
50598
50599         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
50600         mode, when inttypes.h comes from gnulib.
50601         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
50602
50603 2007-07-02  Simon Josefsson  <simon@josefsson.org>
50604
50605         * NEWS: Mention lgpl module name change.
50606
50607         * modules/lgpl-2.1: Renamed from lgpl.
50608
50609         * NEWS: Mention gpl module name change.
50610
50611         * modules/gpl-3.0: New file, based on gpl-2.0.
50612
50613         * modules/gpl-2.0: Renamed from gpl.
50614
50615         * modules/gpl: Fix filename, doc/gpl.texi is now found at
50616         doc/gpl-2.0.texi.
50617
50618 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
50619
50620         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
50621         #define __STDC_LIMIT_MACROS temporarily while including
50622         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
50623         Problem reported by Joel E. Denny in
50624         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
50625
50626 2007-07-01  Bruno Haible  <bruno@clisp.org>
50627
50628         * lib/unistdio.h: New file.
50629         * lib/unistdio/u-asnprintf.h: New file.
50630         * lib/unistdio/u-asprintf.h: New file.
50631         * lib/unistdio/u-printf-args.c: New file.
50632         * lib/unistdio/u-printf-args.h: New file.
50633         * lib/unistdio/u-printf-parse.h: New file.
50634         * lib/unistdio/u-snprintf.h: New file.
50635         * lib/unistdio/u-sprintf.h: New file.
50636         * lib/unistdio/u-vasprintf.h: New file.
50637         * lib/unistdio/u-vsnprintf.h: New file.
50638         * lib/unistdio/u-vsprintf.h: New file.
50639         * lib/unistdio/ulc-asnprintf.c: New file.
50640         * lib/unistdio/ulc-asprintf.c: New file.
50641         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
50642         * lib/unistdio/ulc-printf-parse.c: New file.
50643         * lib/unistdio/ulc-snprintf.c: New file.
50644         * lib/unistdio/ulc-sprintf.c: New file.
50645         * lib/unistdio/ulc-vasnprintf.c: New file.
50646         * lib/unistdio/ulc-vasprintf.c: New file.
50647         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
50648         * lib/unistdio/ulc-vsnprintf.c: New file.
50649         * lib/unistdio/ulc-vsprintf.c: New file.
50650         * lib/unistdio/u8-asnprintf.c: New file.
50651         * lib/unistdio/u8-asprintf.c: New file.
50652         * lib/unistdio/u8-printf-parse.c: New file.
50653         * lib/unistdio/u8-snprintf.c: New file.
50654         * lib/unistdio/u8-sprintf.c: New file.
50655         * lib/unistdio/u8-vasnprintf.c: New file.
50656         * lib/unistdio/u8-vasprintf.c: New file.
50657         * lib/unistdio/u8-vsnprintf.c: New file.
50658         * lib/unistdio/u8-vsprintf.c: New file.
50659         * lib/unistdio/u8-u8-asnprintf.c: New file.
50660         * lib/unistdio/u8-u8-asprintf.c: New file.
50661         * lib/unistdio/u8-u8-snprintf.c: New file.
50662         * lib/unistdio/u8-u8-sprintf.c: New file.
50663         * lib/unistdio/u8-u8-vasnprintf.c: New file.
50664         * lib/unistdio/u8-u8-vasprintf.c: New file.
50665         * lib/unistdio/u8-u8-vsnprintf.c: New file.
50666         * lib/unistdio/u8-u8-vsprintf.c: New file.
50667         * lib/unistdio/u16-asnprintf.c: New file.
50668         * lib/unistdio/u16-asprintf.c: New file.
50669         * lib/unistdio/u16-printf-parse.c: New file.
50670         * lib/unistdio/u16-snprintf.c: New file.
50671         * lib/unistdio/u16-sprintf.c: New file.
50672         * lib/unistdio/u16-vasnprintf.c: New file.
50673         * lib/unistdio/u16-vasprintf.c: New file.
50674         * lib/unistdio/u16-vsnprintf.c: New file.
50675         * lib/unistdio/u16-vsprintf.c: New file.
50676         * lib/unistdio/u16-u16-asnprintf.c: New file.
50677         * lib/unistdio/u16-u16-asprintf.c: New file.
50678         * lib/unistdio/u16-u16-snprintf.c: New file.
50679         * lib/unistdio/u16-u16-sprintf.c: New file.
50680         * lib/unistdio/u16-u16-vasnprintf.c: New file.
50681         * lib/unistdio/u16-u16-vasprintf.c: New file.
50682         * lib/unistdio/u16-u16-vsnprintf.c: New file.
50683         * lib/unistdio/u16-u16-vsprintf.c: New file.
50684         * lib/unistdio/u32-asnprintf.c: New file.
50685         * lib/unistdio/u32-asprintf.c: New file.
50686         * lib/unistdio/u32-printf-parse.c: New file.
50687         * lib/unistdio/u32-snprintf.c: New file.
50688         * lib/unistdio/u32-sprintf.c: New file.
50689         * lib/unistdio/u32-vasnprintf.c: New file.
50690         * lib/unistdio/u32-vasprintf.c: New file.
50691         * lib/unistdio/u32-vsnprintf.c: New file.
50692         * lib/unistdio/u32-vsprintf.c: New file.
50693         * lib/unistdio/u32-u32-asnprintf.c: New file.
50694         * lib/unistdio/u32-u32-asprintf.c: New file.
50695         * lib/unistdio/u32-u32-snprintf.c: New file.
50696         * lib/unistdio/u32-u32-sprintf.c: New file.
50697         * lib/unistdio/u32-u32-vasnprintf.c: New file.
50698         * lib/unistdio/u32-u32-vasprintf.c: New file.
50699         * lib/unistdio/u32-u32-vsnprintf.c: New file.
50700         * lib/unistdio/u32-u32-vsprintf.c: New file.
50701         * tests/unistdio/test-ulc-asnprintf1.c: New file.
50702         * tests/unistdio/test-ulc-asnprintf1.h: New file.
50703         * tests/unistdio/test-ulc-printf1.h: New file.
50704         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
50705         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
50706         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
50707         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
50708         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
50709         * tests/unistdio/test-ulc-vasprintf1.c: New file.
50710         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
50711         * tests/unistdio/test-ulc-vsprintf1.c: New file.
50712         * tests/unistdio/test-u8-asnprintf1.c: New file.
50713         * tests/unistdio/test-u8-asnprintf1.h: New file.
50714         * tests/unistdio/test-u8-printf1.h: New file.
50715         * tests/unistdio/test-u8-vasnprintf1.c: New file.
50716         * tests/unistdio/test-u8-vasnprintf2.c: New file.
50717         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
50718         * tests/unistdio/test-u8-vasnprintf3.c: New file.
50719         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
50720         * tests/unistdio/test-u8-vasprintf1.c: New file.
50721         * tests/unistdio/test-u8-vsnprintf1.c: New file.
50722         * tests/unistdio/test-u8-vsprintf1.c: New file.
50723         * tests/unistdio/test-u16-asnprintf1.c: New file.
50724         * tests/unistdio/test-u16-asnprintf1.h: New file.
50725         * tests/unistdio/test-u16-printf1.h: New file.
50726         * tests/unistdio/test-u16-vasnprintf1.c: New file.
50727         * tests/unistdio/test-u16-vasnprintf2.c: New file.
50728         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
50729         * tests/unistdio/test-u16-vasnprintf3.c: New file.
50730         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
50731         * tests/unistdio/test-u16-vasprintf1.c: New file.
50732         * tests/unistdio/test-u16-vsnprintf1.c: New file.
50733         * tests/unistdio/test-u16-vsprintf1.c: New file.
50734         * tests/unistdio/test-u32-asnprintf1.c: New file.
50735         * tests/unistdio/test-u32-asnprintf1.h: New file.
50736         * tests/unistdio/test-u32-printf1.h: New file.
50737         * tests/unistdio/test-u32-vasnprintf1.c: New file.
50738         * tests/unistdio/test-u32-vasnprintf2.c: New file.
50739         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
50740         * tests/unistdio/test-u32-vasnprintf3.c: New file.
50741         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
50742         * tests/unistdio/test-u32-vasprintf1.c: New file.
50743         * tests/unistdio/test-u32-vsnprintf1.c: New file.
50744         * tests/unistdio/test-u32-vsprintf1.c: New file.
50745         * modules/unistdio/base: New file.
50746         * modules/unistdio/u-printf-args: New file.
50747         * modules/unistdio/ulc-asnprintf: New file.
50748         * modules/unistdio/ulc-asprintf: New file.
50749         * modules/unistdio/ulc-fprintf: New file.
50750         * modules/unistdio/ulc-printf-parse: New file.
50751         * modules/unistdio/ulc-snprintf: New file.
50752         * modules/unistdio/ulc-sprintf: New file.
50753         * modules/unistdio/ulc-vasnprintf: New file.
50754         * modules/unistdio/ulc-vasprintf: New file.
50755         * modules/unistdio/ulc-vfprintf: New file.
50756         * modules/unistdio/ulc-vsnprintf: New file.
50757         * modules/unistdio/ulc-vsprintf: New file.
50758         * modules/unistdio/u8-asnprintf: New file.
50759         * modules/unistdio/u8-asprintf: New file.
50760         * modules/unistdio/u8-printf-parse: New file.
50761         * modules/unistdio/u8-snprintf: New file.
50762         * modules/unistdio/u8-sprintf: New file.
50763         * modules/unistdio/u8-vasnprintf: New file.
50764         * modules/unistdio/u8-vasprintf: New file.
50765         * modules/unistdio/u8-vsnprintf: New file.
50766         * modules/unistdio/u8-vsprintf: New file.
50767         * modules/unistdio/u8-u8-asnprintf: New file.
50768         * modules/unistdio/u8-u8-asprintf: New file.
50769         * modules/unistdio/u8-u8-snprintf: New file.
50770         * modules/unistdio/u8-u8-sprintf: New file.
50771         * modules/unistdio/u8-u8-vasnprintf: New file.
50772         * modules/unistdio/u8-u8-vasprintf: New file.
50773         * modules/unistdio/u8-u8-vsnprintf: New file.
50774         * modules/unistdio/u8-u8-vsprintf: New file.
50775         * modules/unistdio/u16-asnprintf: New file.
50776         * modules/unistdio/u16-asprintf: New file.
50777         * modules/unistdio/u16-printf-parse: New file.
50778         * modules/unistdio/u16-snprintf: New file.
50779         * modules/unistdio/u16-sprintf: New file.
50780         * modules/unistdio/u16-vasnprintf: New file.
50781         * modules/unistdio/u16-vasprintf: New file.
50782         * modules/unistdio/u16-vsnprintf: New file.
50783         * modules/unistdio/u16-vsprintf: New file.
50784         * modules/unistdio/u16-u16-asnprintf: New file.
50785         * modules/unistdio/u16-u16-asprintf: New file.
50786         * modules/unistdio/u16-u16-snprintf: New file.
50787         * modules/unistdio/u16-u16-sprintf: New file.
50788         * modules/unistdio/u16-u16-vasnprintf: New file.
50789         * modules/unistdio/u16-u16-vasprintf: New file.
50790         * modules/unistdio/u16-u16-vsnprintf: New file.
50791         * modules/unistdio/u16-u16-vsprintf: New file.
50792         * modules/unistdio/u32-asnprintf: New file.
50793         * modules/unistdio/u32-asprintf: New file.
50794         * modules/unistdio/u32-printf-parse: New file.
50795         * modules/unistdio/u32-snprintf: New file.
50796         * modules/unistdio/u32-sprintf: New file.
50797         * modules/unistdio/u32-vasnprintf: New file.
50798         * modules/unistdio/u32-vasprintf: New file.
50799         * modules/unistdio/u32-vsnprintf: New file.
50800         * modules/unistdio/u32-vsprintf: New file.
50801         * modules/unistdio/u32-u32-asnprintf: New file.
50802         * modules/unistdio/u32-u32-asprintf: New file.
50803         * modules/unistdio/u32-u32-snprintf: New file.
50804         * modules/unistdio/u32-u32-sprintf: New file.
50805         * modules/unistdio/u32-u32-vasnprintf: New file.
50806         * modules/unistdio/u32-u32-vasprintf: New file.
50807         * modules/unistdio/u32-u32-vsnprintf: New file.
50808         * modules/unistdio/u32-u32-vsprintf: New file.
50809         * modules/unistdio/ulc-asnprintf-tests: New file.
50810         * modules/unistdio/ulc-vasnprintf-tests: New file.
50811         * modules/unistdio/ulc-vasprintf-tests: New file.
50812         * modules/unistdio/ulc-vsnprintf-tests: New file.
50813         * modules/unistdio/ulc-vsprintf-tests: New file.
50814         * modules/unistdio/u8-asnprintf-tests: New file.
50815         * modules/unistdio/u8-vasnprintf-tests: New file.
50816         * modules/unistdio/u8-vasprintf-tests: New file.
50817         * modules/unistdio/u8-vsnprintf-tests: New file.
50818         * modules/unistdio/u8-vsprintf-tests: New file.
50819         * modules/unistdio/u16-asnprintf-tests: New file.
50820         * modules/unistdio/u16-vasnprintf-tests: New file.
50821         * modules/unistdio/u16-vasprintf-tests: New file.
50822         * modules/unistdio/u16-vsnprintf-tests: New file.
50823         * modules/unistdio/u16-vsprintf-tests: New file.
50824         * modules/unistdio/u32-asnprintf-tests: New file.
50825         * modules/unistdio/u32-vasnprintf-tests: New file.
50826         * modules/unistdio/u32-vasprintf-tests: New file.
50827         * modules/unistdio/u32-vsnprintf-tests: New file.
50828         * modules/unistdio/u32-vsprintf-tests: New file.
50829         * MODULES.html.sh (Unicode string functions): Add the new modules.
50830
50831 2007-07-01  Bruno Haible  <bruno@clisp.org>
50832
50833         * lib/sprintf.c (sprintf): Limit the available length estimation,
50834         to avoid address wraparound.
50835         * lib/vsprintf.c (vsprintf): Likewise.
50836         * modules/sprintf-posix (Dependencies): Add stdint.
50837         * modules/vsprintf-posix (Dependencies): Likewise.
50838
50839 2007-07-01  Bruno Haible  <bruno@clisp.org>
50840
50841         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
50842         Windows PATH as well. Conservative double-quoting. Comments.
50843
50844 2007-07-01  Bruno Haible  <bruno@clisp.org>
50845             Eric Blake  <ebb9@byu.net>
50846             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50847
50848         * gnulib-tool (self_abspathname): Fix algorithm to cope with
50849         empty components in $PATH, denoting '.'.
50850
50851 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50852
50853         * gnulib-tool: Fix indentation.
50854         (func_create_megatestdir): Likewise.
50855         Report by Bruno Haible.
50856
50857 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50858
50859         Sync from Automake.
50860         * build-aux/gnupload: Fix shell portability issues with for loops.
50861         Report by Karl Berry.
50862
50863 2007-06-29  Simon Josefsson  <simon@josefsson.org>
50864
50865         * build-aux/maint.mk (POURL): Use translationproject.org.
50866
50867 2007-06-27  Simon Josefsson  <simon@josefsson.org>
50868             Bruno Haible  <bruno@clisp.org>
50869
50870         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
50871         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
50872         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
50873         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
50874         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
50875
50876 2007-06-27  Bruno Haible  <bruno@clisp.org>
50877
50878         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
50879         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
50880
50881 2007-06-26  Karl Berry  <karl@gnu.org>
50882
50883         * MODULES.html.sh: remove xreadlink-with-size.
50884
50885 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
50886
50887         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
50888         method that I hope also handles the double-include problem noted
50889         by Bruno Haible in
50890         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
50891
50892 2007-06-23  Bruno Haible  <bruno@clisp.org>
50893
50894         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50895         Don't let the 'mostlyclean' target fail if the last subdirectory could
50896         not be removed.
50897         Reported by Karl Berry.
50898
50899 2007-06-23  Bruno Haible  <bruno@clisp.org>
50900
50901         * gnulib-tool (echo): Add a speedier workaround for ksh.
50902         * tests/test-echo.sh: Likewise.
50903
50904 2007-06-23  Bruno Haible  <bruno@clisp.org>
50905
50906         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
50907         * tests/test-echo.sh: Likewise.
50908
50909 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50910
50911         * gnulib-tool (IFS): Initialize early, so we don't set it to
50912         empty later.
50913         (self_abspathname): Rewrite algorithm to set it, reindent.
50914         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
50915         (func_create_megatestdir): Merge some sed scripts.
50916
50917 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
50918
50919         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
50920         exposed by Sun Studio 11 cc on Solaris 8.
50921
50922 2007-06-22  Bruno Haible  <bruno@clisp.org>
50923
50924         * gnulib-tool (echo): Ensure the echo primitive does not interpret
50925         backslashes.
50926         * tests/test-echo.sh: New file.
50927
50928 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50929
50930         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
50931         simplify `sed_replace_build_aux' scripts, they are portable but
50932         echoing them with `echo' is not.
50933         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
50934
50935 2007-06-21  Karl Berry  <karl@gnu.org>
50936
50937         * config/srclist.txt: guess we can't handle the licenses via
50938         srclist at the moment.
50939
50940 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
50941
50942         * MODULES.html.sh: Add include_next.
50943         * modules/include_next: New file.
50944
50945 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
50946
50947         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
50948         INCLUDE_NEXT.
50949         (gl_CHECK_NEXT_HEADERS): New macro.
50950         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
50951         the obsolescent gl_ABSOLUTE_HEADER.
50952         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
50953         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
50954         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
50955         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
50956         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
50957         * m4/math_h.m4 (gl_MATH_H): Likewise.
50958         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
50959         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
50960         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
50961         * m4/stdint.m4 (gl_STDINT_H): Likewise.
50962         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
50963         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
50964         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
50965         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
50966         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
50967         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
50968         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
50969         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
50970         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
50971         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
50972         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
50973         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
50974         * m4/inttypes.m4 (gl_INTTYPES_H): Define
50975         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
50976         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
50977         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
50978         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
50979         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
50980         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
50981         * lib/float_.h: Likewise.
50982         * lib/inttypes_.h: Likewise.
50983         * lib/math_.h: Likewise.
50984         * lib/search_.h: Likewise.
50985         * lib/signal_.h: Likewise.
50986         * lib/stdint_.h: Likewise.
50987         * lib/stdio_.h: Likewise.
50988         * lib/stdlib_.h: Likewise.
50989         * lib/string_.h: Likewise.
50990         * lib/sys_stat_.h: Likewise.
50991         * lib/sys_time_.h: Likewise.
50992         * lib/time_.h: Likewise.
50993         * lib/unistd_.h: Likewise.
50994         * lib/wchar_.h: Likewise.
50995         * lib/wctype_.h: Likewise.
50996         * lib/dirent_.h: Likewise.
50997         * lib/iconv_.h: Likewise.
50998         * lib/locale_.h: Likewise.
50999         * lib/netinet_in_.h: Likewise.
51000         * lib/sys_select_.h: Likewise.
51001         * lib/sys_socket_.h: Likewise.
51002         * lib/sysexits_.h: Likewise.
51003         * modules/fcntl (Depends-on): Depend on include_next, not
51004         absolute_header.
51005         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
51006         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
51007         * modules/fchdir: Likewise.
51008         * modules/float: Likewise.
51009         * modules/iconv_open: Likewise.
51010         * modules/inttypes: Likewise.
51011         * modules/locale: Likewise.
51012         * modules/math: Likewise.
51013         * modules/netinet_in: Likewise.
51014         * modules/search: Likewise.
51015         * modules/signal: Likewise.
51016         * modules/stdint: Likewise.
51017         * modules/stdio: Likewise.
51018         * modules/stdlib: Likewise.
51019         * modules/string: Likewise.
51020         * modules/sys_select: Likewise.
51021         * modules/sys_socket: Likewise.
51022         * modules/sys_stat: Likewise.
51023         * modules/sys_time: Likewise.
51024         * modules/sysexits: Likewise.
51025         * modules/time: Likewise.
51026         * modules/unistd: Likewise.
51027         * modules/wchar: Likewise.
51028         * modules/wctype: Likewise.
51029         * modules/sys_stat: Change maintainer to "all".
51030         * modules/unistd: Likewise.
51031
51032 2007-06-20  Karl Berry  <karl@gnu.org>
51033
51034         * config/srclist.txt: track www changes in license files.
51035
51036 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
51037
51038         * build-aux/bootstrap: Remove stray dot.
51039         Make sure build_aux settings are honored when linking
51040         gnulib_extra_files.
51041
51042 2007-06-19  Eric Blake  <ebb9@byu.net>
51043
51044         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
51045         Allow compilation on cygwin.
51046
51047 2007-06-19  Jim Meyering  <jim@meyering.net>
51048
51049         xreadlink-with-size: Remove module.  No longer used.
51050         Ex-callers now use xreadlink or mreadlink-with-size.
51051         * modules/xreadlink-with-size: Remove module.
51052         * lib/xreadlink-with-size.c: Remove file.
51053         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
51054         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
51055         just before the function definition *is* accurate.
51056
51057         Eliminate one way canonicalize_filename_mode could exit.
51058         * lib/canonicalize.c (canonicalize_filename_mode):
51059         Use mreadlink_with_size, not xreadlink_with_size.
51060
51061 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
51062
51063         Detect porting problems to FreeBSD/arm, which has time_t wider than
51064         long int.  Original problem reported for GNU diff by Xin Li in
51065         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
51066         * modules/getdate (Depends-on): Add intprops, verify.
51067         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
51068         is an integer type no wider than long int.
51069
51070 2007-06-18  Jim Meyering  <jim@meyering.net>
51071
51072         New module: mreadlink-with-size.
51073         * MODULES.html.sh: Add mreadlink-with-size.
51074         * modules/mreadlink-with-size: New module
51075         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
51076         not xreadlink-with-size.
51077         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
51078
51079 2007-06-16  Bruno Haible  <bruno@clisp.org>
51080
51081         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
51082         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
51083         Reported by Gary V. Vaughan <gary@gnu.org>.
51084
51085 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
51086
51087         Revamp lchown so that it lives in unistd.h where it belongs.
51088         * lib/lchown.h: Remove.
51089         * lib/dirchownmod.c: Don't include lib/lchown.h.
51090         * lib/fchownat.c: Likewise.
51091         * lib/openat.c: Likewise.
51092         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
51093         does not follow symlinks.
51094         (EOPNOTSUPP): Define if not defined.
51095         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
51096         is defined to 0.
51097         (lchown): New decl.
51098         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
51099         Do not check for lchown decl.
51100         Set REPLACE_LCHOWN.
51101         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
51102         REPLACE_LCHOWN.
51103         * modules/chown: Make it clear it follows symlinks.
51104         * modules/lchown: Make it clear it doesn't follow symlinks.
51105         (Files): Remove lib/lchown.h
51106         (Depends-on): Add unistd.
51107         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
51108         (Include): Include <unistd.h>, not "lchown.h".
51109         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
51110         REPLACE_LCHOWN.
51111
51112 2007-06-15  Jim Meyering  <jim@meyering.net>
51113
51114         Change license (GPL to LGPL) of fsusage and dependents.
51115         * modules/fsusage (License): Change to LGPL.
51116         * modules/full-read (License): Likewise.
51117         * modules/full-write (License): Likewise.
51118         * modules/safe-read (License): Likewise.
51119         * modules/safe-write (License): Likewise.
51120
51121 2007-06-14  Ben Pfaff  <blp@gnu.org>
51122
51123         Missing part of allocsa -> malloca transition.
51124         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
51125         gl_MALLOCA.
51126
51127 2007-06-12  Bruno Haible  <bruno@clisp.org>
51128
51129         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
51130         to ia64, x86_64, i386.
51131         Reported by Eric Blake.
51132
51133 2007-06-12  Bruno Haible  <bruno@clisp.org>
51134
51135         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
51136         cross-compiling to x86_64.
51137
51138 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
51139
51140         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
51141         glitch reported by Ralf Wildenhues in
51142         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
51143
51144         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
51145         Vin Shelton.
51146
51147 2007-06-11  Bruno Haible  <bruno@clisp.org>
51148
51149         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
51150         replacement string.
51151         Reported by Eric Blake.
51152
51153 2007-06-10  Bruno Haible  <bruno@clisp.org>
51154
51155         Prepare vasnprintf code for use with Unicode strings.
51156         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
51157         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
51158         TYPE_U32_STRING.
51159         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
51160         a_u32_string variants.
51161         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
51162         * lib/printf-args.c: Don't include config.h and the specification
51163         header if PRINTF_FETCHARGS is already defined.
51164         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
51165         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
51166         TYPE_U16_STRING, TYPE_U32_STRING.
51167         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
51168         u16_directive, u16_directives, u32_directive, u32_directives): New
51169         types.
51170         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
51171         New declarations.
51172         * lib/printf-parse.c: Don't include config.h and the specification
51173         header if PRINTF_PARSE is already defined. Eliminate the set of
51174         parameters for WIDE_CHAR_VERSION; the user of this file must provide
51175         them now. Include c-ctype.h.
51176         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
51177         directive and CHAR_T_ONLY_ASCII.
51178         * lib/vasnprintf.c: Don't include config.h and the specification header
51179         if VASNPRINTF is already defined.
51180         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
51181         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
51182         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
51183         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
51184         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
51185         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
51186         code accordingly.
51187         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
51188         pad_ourselves also in this case, with the 'c' and 's' directives, and
51189         with a different notion of "width".
51190         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
51191
51192 2007-06-10  Bruno Haible  <bruno@clisp.org>
51193
51194         * modules/unistr/u32-mbsnlen: New file.
51195         * lib/unistr/u32-mbsnlen.c: New file.
51196
51197         * modules/unistr/u16-mbsnlen: New file.
51198         * lib/unistr/u16-mbsnlen.c: New file.
51199
51200         * modules/unistr/u8-mbsnlen: New file.
51201         * lib/unistr/u8-mbsnlen.c: New file.
51202
51203         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
51204         declarations.
51205
51206 2007-06-10  Bruno Haible  <bruno@clisp.org>
51207
51208         * lib/string_.h (mbsnlen): New declaration.
51209         * lib/mbsnlen.c: New file.
51210         * m4/mbsnlen.m4: New file.
51211         * modules/mbsnlen: New file.
51212         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
51213         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
51214         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
51215
51216 2007-06-10  Bruno Haible  <bruno@clisp.org>
51217
51218         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
51219
51220 2007-06-10  Bruno Haible  <bruno@clisp.org>
51221
51222         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
51223         * lib/mbuiter.h: Likewise.
51224
51225 2007-06-10  Bruno Haible  <bruno@clisp.org>
51226
51227         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
51228         declaration.
51229
51230 2007-06-10  Karl Berry  <karl@gnu.org>
51231
51232         * config/srclist.txt: remove gettext entries, Bruno prefers
51233         to update individually.
51234
51235 2007-06-10  Bruno Haible  <bruno@clisp.org>
51236
51237         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
51238         'maxlen'. Ensure only length + width bytes are allocated, not
51239         length + 1 + width.
51240
51241 2007-06-09  Bruno Haible  <bruno@clisp.org>
51242
51243         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
51244         (CHAR_T): Remove macro.
51245         (VASNPRINTF): Update.
51246
51247 2007-06-09  Bruno Haible  <bruno@clisp.org>
51248
51249         * MODULES.html.sh (Unicode string functions): Add the new modules.
51250
51251         * modules/uniconv/u32-conv-to-enc: New file.
51252         * lib/uniconv/u32-conv-to-enc.c: New file.
51253         * modules/uniconv/u32-conv-to-enc-tests: New file.
51254         * tests/uniconv/test-u32-conv-to-enc.c: New file.
51255
51256         * modules/uniconv/u16-conv-to-enc: New file.
51257         * lib/uniconv/u16-conv-to-enc.c: New file.
51258         * lib/uniconv/u-conv-to-enc.h: New file.
51259         * modules/uniconv/u16-conv-to-enc-tests: New file.
51260         * tests/uniconv/test-u16-conv-to-enc.c: New file.
51261
51262         * modules/uniconv/u8-conv-to-enc: New file.
51263         * lib/uniconv/u8-conv-to-enc.c: New file.
51264         * modules/uniconv/u8-conv-to-enc-tests: New file.
51265         * tests/uniconv/test-u8-conv-to-enc.c: New file.
51266
51267         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
51268         u32_conv_to_encoding): New declarations.
51269
51270 2007-06-09  Bruno Haible  <bruno@clisp.org>
51271
51272         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
51273
51274 2007-06-09  Bruno Haible  <bruno@clisp.org>
51275
51276         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
51277         * modules/malloca: Renamed from modules/allocsa, updated.
51278         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
51279         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
51280         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
51281         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
51282         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
51283         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
51284         * modules/xmalloca: Renamed from modules/xallocsa, updated.
51285         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
51286         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
51287         * modules/c-strcasestr (Depends-on): Update.
51288         * lib/c-strcasestr.c: Update.
51289         * modules/c-strstr (Depends-on): Update.
51290         * lib/c-strstr.c: Update.
51291         * modules/canonicalize-lgpl (Depends-on): Update.
51292         * lib/canonicalize-lgpl.c: Update.
51293         * modules/clean-temp (Depends-on): Update.
51294         * lib/clean-temp.c: Update.
51295         * modules/csharpcomp (Depends-on): Update.
51296         * lib/csharpcomp.c: Update.
51297         * modules/csharpexec (Depends-on): Update.
51298         * lib/csharpexec.c: Update.
51299         * modules/javacomp (Depends-on): Update.
51300         * lib/javacomp.c: Update.
51301         * modules/javaexec (Depends-on): Update.
51302         * lib/javaexec.c: Update.
51303         * modules/mbscasestr (Depends-on): Update.
51304         * lib/mbscasestr.c: Update.
51305         * modules/mbsstr (Depends-on): Update.
51306         * lib/mbsstr.c: Update.
51307         * modules/setenv (Depends-on): Update.
51308         * lib/setenv.c: Update.
51309         * modules/strcasestr (Depends-on): Update.
51310         * lib/strcasestr.c: Update.
51311         * modules/striconveha (Depends-on): Update.
51312         * lib/striconveha.c: Update.
51313         * modules/relocatable-prog-wrapper (Files): Update.
51314         * lib/relocwrapper.c: Update.
51315         * build-aux/install-reloc: Update.
51316         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
51317
51318 2007-06-08  Bruno Haible  <bruno@clisp.org>
51319
51320         Port to uClibc.
51321         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
51322         * lib/fpurge.c (fpurge): Likewise.
51323         * lib/freading.c (freading): Likewise.
51324         * lib/fseeko.c (rpl_fseeko): Likewise.
51325         * lib/fseterr.c (fseterr): Likewise.
51326         * lib/fwriting.c (fwriting): Likewise.
51327         * tests/test-fflush.c (main): Avoid a failure on uClibc.
51328
51329 2007-06-08  Bruno Haible  <bruno@clisp.org>
51330
51331         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
51332         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
51333         * modules/gettext (Files): Add m4/intlmacosx.m4.
51334
51335 2007-06-07  Bruno Haible  <bruno@clisp.org>
51336
51337         * modules/localename-tests: New file.
51338         * tests/test-localename.c: New file.
51339
51340         New module 'localename'.
51341         * lib/localename.h: New file.
51342         * lib/localename.c: New file, from GNU gettext.
51343         * m4/localename.m4: New file.
51344         * modules/localename: New file.
51345
51346 2007-06-07  Bruno Haible  <bruno@clisp.org>
51347
51348         Work around the lack of <wchar.h> on some builds of uClibc.
51349         * doc/headers/wchar.texi: Update.
51350         * lib/wchar_.h: Include <wchar.h> only if it exists.
51351         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
51352         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
51353         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
51354         doesn't exist.
51355         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
51356         * modules/mbfile (Depends-on): Add wchar.
51357         * modules/mbiter (Depends-on): Likewise.
51358         * modules/mbuiter (Depends-on): Likewise.
51359         Reported by Simon Josefsson.
51360
51361 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
51362
51363         Work around problem reported by Steven M. Schweda in
51364         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
51365         Tru64 5.1B with the Compaq compiler environment installed declares
51366         an 'isblank' function but does not define it in the C library.
51367         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
51368         * lib/regex_internal.h (isblank): Likewise.
51369         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
51370         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
51371
51372 2007-06-05  Bruno Haible  <bruno@clisp.org>
51373
51374         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
51375         ia64.
51376         * modules/printf-safe: New file.
51377         * modules/fprintf-posix (Depends-on): Add printf-safe.
51378         * modules/printf-posix (Depends-on): Likewise.
51379         * modules/snprintf-posix (Depends-on): Likewise.
51380         * modules/sprintf-posix (Depends-on): Likewise.
51381         * modules/vasnprintf-posix (Depends-on): Likewise.
51382         * modules/vasprintf-posix (Depends-on): Likewise.
51383         * modules/vfprintf-posix (Depends-on): Likewise.
51384         * modules/vprintf-posix (Depends-on): Likewise.
51385         * modules/vsnprintf-posix (Depends-on): Likewise.
51386         * modules/vsprintf-posix (Depends-on): Likewise.
51387         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
51388         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
51389         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
51390         "no" on i386, x86_64, ia64.
51391         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
51392         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
51393         on i386, x86_64, ia64.
51394         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
51395         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
51396         on i386, x86_64, ia64.
51397         * tests/test-vasnprintf-posix.c: Include float.h.
51398         (LDBL80_WORDS): New macro.
51399         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
51400         on i386, x86_64, ia64.
51401         * tests/test-vasprintf-posix.c: Include float.h.
51402         (LDBL80_WORDS): New macro.
51403         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
51404         on i386, x86_64, ia64.
51405         * tests/test-snprintf-posix.c: Include float.h.
51406         * tests/test-sprintf-posix.c: Likewise.
51407         * tests/test-vsnprintf-posix.c: Likewise.
51408         * tests/test-vsprintf-posix.c: Likewise.
51409
51410 2007-06-05  Bruno Haible  <bruno@clisp.org>
51411
51412         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
51413         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
51414         non-IEEE numbers on i386, x86_64, ia64.
51415         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
51416         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
51417         * tests/test-isnanl.h: Include float.h.
51418         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
51419
51420 2007-06-05  Bruno Haible  <bruno@clisp.org>
51421
51422         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
51423         also the %a / %A. Handle the %a / %A code before this extra handling.
51424
51425 2007-06-05  Bruno Haible  <bruno@clisp.org>
51426
51427         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
51428         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
51429
51430 2007-06-05  Bruno Haible  <bruno@clisp.org>
51431
51432         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
51433         typo in variable name.
51434
51435 2007-06-05  Eric Blake  <ebb9@byu.net>
51436
51437         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
51438         Reported by Simon Josefsson.
51439
51440 2007-06-04  Bruno Haible  <bruno@clisp.org>
51441
51442         Avoid test failures on some PowerPC platforms.
51443         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
51444         Define differently for PowerPC.
51445         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
51446         Reported by Gary V. Vaughan <gary@gnu.org>.
51447
51448 2007-06-02  Bruno Haible  <bruno@clisp.org>
51449
51450         Fix test-stdint failure on FreeBSD/ia64.
51451         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
51452         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
51453         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
51454         * doc/headers/stdint.texi: Update.
51455
51456 2007-06-01  Bruno Haible  <bruno@clisp.org>
51457
51458         * tests/test-binary-io.c (main): Pass a third argument to open().
51459         Reported by Gary V. Vaughan <gary@gnu.org>.
51460
51461 2007-06-01  Bruno Haible  <bruno@clisp.org>
51462
51463         * doc/functions/frexpl.texi: Update for mingw.
51464
51465 2007-06-01  Bruno Haible  <bruno@clisp.org>
51466
51467         * tests/test-lseek.c (main): Disable test of errno for invalid third
51468         argument.
51469         * doc/functions/lseek.texi: Update.
51470         Reported by Gary V. Vaughan <gary@gnu.org>.
51471
51472 2007-05-28  Bruno Haible  <bruno@clisp.org>
51473
51474         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
51475
51476 2007-05-31  Eric Blake  <ebb9@byu.net>
51477
51478         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
51479         cross compiling.
51480
51481 2007-05-30  Eric Blake  <ebb9@byu.net>
51482         and Bruno Haible  <bruno@clisp.org>
51483
51484         Work around mingw test failures exposed by m4-1.4.9b.
51485         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
51486         * tests/test-unistd.c: Disable uid_t and git_t tests for the
51487         moment.
51488
51489 2007-05-30  Bruno Haible  <bruno@clisp.org>
51490
51491         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
51492         assuming that they are closed. Needed on HP-UX 11.
51493
51494 2007-05-29  Bruno Haible  <bruno@clisp.org>
51495
51496         Fix a problem with #include_next.
51497         * lib/dirent_.h: Split the double-inclusion guard.
51498         * lib/fcntl_.h: Likewise.
51499         * lib/float_.h: Likewise.
51500         * lib/iconv_.h: Likewise.
51501         * lib/inttypes_.h: Likewise.
51502         * lib/locale_.h: Likewise.
51503         * lib/math_.h: Likewise.
51504         * lib/netinet_in_.h: Likewise.
51505         * lib/search_.h: Likewise.
51506         * lib/signal_.h: Likewise.
51507         * lib/stdint_.h: Likewise.
51508         * lib/stdio_.h: Likewise.
51509         * lib/stdlib_.h: Likewise.
51510         * lib/string_.h: Likewise.
51511         * lib/sys_select_.h: Likewise.
51512         * lib/sys_socket_.h: Likewise.
51513         * lib/sys_stat_.h: Likewise.
51514         * lib/sys_time_.h: Likewise.
51515         * lib/sysexits_.h: Likewise.
51516         * lib/time_.h: Likewise.
51517         * lib/unistd_.h: Likewise.
51518         * lib/wchar_.h: Likewise.
51519         * lib/wctype_.h: Likewise.
51520
51521 2007-05-29  Bruno Haible  <bruno@clisp.org>
51522
51523         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
51524         for the moment.
51525
51526 2007-05-29  Bruno Haible  <bruno@clisp.org>
51527
51528         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
51529         invocation.
51530         Reported by Eric Blake.
51531
51532 2007-05-29  Bruno Haible  <bruno@clisp.org>
51533
51534         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
51535         compiling case.
51536
51537 2007-05-29  Eric Blake  <ebb9@byu.net>
51538             Bruno Haible  <bruno@clisp.org>
51539
51540         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
51541         cross compiles.
51542
51543 2007-05-28  Eric Blake  <ebb9@byu.net>
51544
51545         * modules/closein-tests (test_closein_LDADD): Support test on
51546         cygwin with libtool.
51547
51548 2007-05-28  Bruno Haible  <bruno@clisp.org>
51549
51550         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
51551         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
51552         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
51553         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
51554         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
51555         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
51556         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
51557         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
51558         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
51559
51560 2007-05-28  Eric Blake  <ebb9@byu.net>
51561
51562         Unconditionally include <config.h> in unit tests.
51563         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
51564         * tests/test-allocsa.c, tests/test-arcfour.c,
51565         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
51566         tests/test-array_list.c, tests/test-array_oset.c,
51567         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
51568         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
51569         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
51570         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
51571         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
51572         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
51573         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
51574         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
51575         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
51576         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
51577         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
51578         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
51579         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
51580         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
51581         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
51582         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
51583         test-md5.c, test-memmem.c, test-printf-posix.c,
51584         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
51585         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
51586         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
51587         test-strcasestr.c, test-striconv.c, test-striconveh.c,
51588         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
51589         test-vasnprintf-posix2.c, test-vasnprintf.c,
51590         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
51591         test-vfprintf-posix.c, test-vprintf-posix.c,
51592         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
51593         test-xvasprintf.c: Likewise.
51594
51595 2007-05-28  Bruno Haible  <bruno@clisp.org>
51596
51597         * gnulib-tool (func_import): Remember the --with-tests command-line
51598         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
51599         Reported by Eric Blake.
51600
51601 2007-05-28  Bruno Haible  <bruno@clisp.org>
51602
51603         * modules/ftell-tests: New file.
51604         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
51605         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
51606
51607         * lib/ftell.c: New file.
51608         * modules/ftell: New file.
51609         * m4/ftell.m4: New file.
51610         * doc/functions/ftell.texi: Update.
51611         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
51612         REPLACE_FTELL.
51613         * lib/stdio_.h (rpl_ftell): New declaration.
51614         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
51615         REPLACE_FTELL.
51616
51617 2007-05-28  Eric Blake  <ebb9@byu.net>
51618
51619         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
51620
51621 2007-05-28  Bruno Haible  <bruno@clisp.org>
51622
51623         * modules/fseek-tests: New file.
51624         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
51625         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
51626
51627         * lib/fseek.c: New file.
51628         * modules/fseek: New file.
51629         * m4/fseek.m4: New file.
51630         * doc/functions/fseek.texi: Update.
51631         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
51632         REPLACE_FSEEK.
51633         * lib/stdio_.h (rpl_fseek): New declaration.
51634         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
51635         REPLACE_FSEEK.
51636
51637 2007-05-28  Bruno Haible  <bruno@clisp.org>
51638
51639         * lib/stdio_.h (fflush): More comments.
51640
51641 2007-05-28  Bruno Haible  <bruno@clisp.org>
51642
51643         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
51644         runtime test.
51645
51646 2007-05-28  Eric Blake  <ebb9@byu.net>
51647
51648         Improve lseek module.
51649         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
51650         * lib/unistd_.h (lseek): Scale back link warning message.
51651         * tests/test-lseek.c: Beef up test.
51652         * tests/test-lseek.sh: Exercise more facets of lseek.
51653         Reported by Bruno Haible.
51654
51655 2007-05-28  Bruno Haible  <bruno@clisp.org>
51656
51657         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
51658         to define.
51659
51660 2007-05-27  Bruno Haible  <bruno@clisp.org>
51661
51662         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
51663
51664 2007-05-27  Bruno Haible  <bruno@clisp.org>
51665
51666         * modules/openmp: New file.
51667         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
51668         Noah Misch.
51669
51670 2007-05-26  Bruno Haible  <bruno@clisp.org>
51671
51672         * modules/chdir-long (Depends-on): Add fchdir.
51673         * modules/chdir-safer (Depends-on): Likewise.
51674         * modules/fts (Depends-on): Likewise.
51675         * modules/fts-lgpl (Depends-on): Likewise.
51676         * modules/openat (Depends-on): Likewise.
51677         * modules/savewd (Depends-on): Likewise.
51678
51679 2007-05-24  Eric Blake  <ebb9@byu.net>
51680
51681         Fix lseek on mingw.
51682         * modules/lseek: New module.
51683         * m4/lseek.m4: New file.
51684         * lib/lseek.c: New file.
51685         * modules/lseek-tests: New file.
51686         * tests/test-lseek.c: New file.
51687         * tests/test-lseek.sh: New file.
51688         * MODULES.html.sh: Document lseek module.
51689         * modules/fflush (Depends-on): Add lseek, fseeko.
51690         * modules/fseeko (Depends-on): Likewise.
51691         * modules/ftello (Depends-on): Likewise.
51692         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
51693         broken.
51694         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
51695         broken.
51696         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
51697         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
51698         * lib/ftello.c (rpl_ftello): Likewise.
51699         * tests/test-fseeko.c (main): Test this.
51700         * tests/test-fseeko.sh: Likewise.
51701         * tests/test-ftello.c (main): Likewise.
51702         * tests/test-ftello.sh: Likewise.
51703         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
51704         implies replacing fseek.
51705         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
51706         HAVE_FTELLO.
51707         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
51708         * modules/unistd (Makefile.am): Likewise.
51709         * lib/unistd_.h (lseek): Declare a replacement.
51710         * doc/functions/lseek.texi (lseek): Document this fix.
51711         * doc/functions/fseek.texi (fseek): Likewise.
51712         * doc/functions/ftell.texi (ftell): Likewise.
51713
51714 2007-05-24  Bruno Haible  <bruno@clisp.org>
51715
51716         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
51717         in the printed representation of a NaN.
51718         * tests/test-vasprintf-posix.c (test_function): Likewise.
51719         * tests/test-snprintf-posix.h (test_function): Likewise.
51720         * tests/test-sprintf-posix.h (test_function): Likewise.
51721         Reported by Eric Blake.
51722
51723 2007-05-23  Eric Blake  <ebb9@byu.net>
51724
51725         Fix fseeko/ftello on cygwin 1.5.24.
51726         * doc/functions/fseeko.texi (fseeko): Document the fix.
51727         * doc/functions/ftello.texi (ftello): Document the fix.
51728         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
51729         * doc/functions/stdout.text (stdout): New file.
51730         * doc/functions/stderr.text (stderr): New file.
51731         * doc/gnulib.texi (Function Substitutes): Use new files.
51732         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
51733         prior to 1.7.0.
51734         * tests/test-ftello.c (main): Likewise for ftello.
51735         * tests/test-fseeko.sh: New file.
51736         * tests/test-ftello.sh: New file.
51737         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
51738         with seekable stdin.
51739         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
51740         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
51741         (gl_REPLACE_FSEEKO): New macro.
51742         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
51743         * modules/fseeko (Files): Distribute fseeko.c.
51744         * modules/ftello (Files): Distribute ftello.c.
51745         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
51746         mode.
51747         * lib/ftello.c (rpl_ftello): New file.
51748         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
51749         fseeko, ftello.
51750         (gl_STDIN_LARGE_OFFSET): New macro.
51751         * modules/stdio (Makefile.am): Perform the replacement.
51752         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
51753
51754 2007-05-23  Bruno Haible  <bruno@clisp.org>
51755
51756         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
51757         GNULIB_POSIXCHECK is defined.
51758
51759 2007-05-21  Bruno Haible  <bruno@clisp.org>
51760
51761         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
51762         Check also the output for NaN arguments. When cross-compiling, guess
51763         no on IRIX.
51764         * lib/vasnprintf.c: Update comments.
51765         * tests/test-vasnprintf-posix.c (strisnan): New function.
51766         (test_function): Use it.
51767         * tests/test-vasprintf-posix.c (strisnan): New function.
51768         (test_function): Use it.
51769         * tests/test-snprintf-posix.h (strisnan): New function.
51770         (test_function): Use it.
51771         * tests/test-sprintf-posix.h (strisnan): New function.
51772         (test_function): Use it.
51773         Reported by Eric Blake.
51774
51775 2007-05-20  Bruno Haible  <bruno@clisp.org>
51776
51777         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
51778         numbers that fails on BeOS.
51779         * doc/functions/frexpl.texi: Update.
51780
51781 2007-05-20  Jim Meyering  <jim@meyering.net>
51782
51783         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
51784         forced upon us by glibc-2.6.
51785
51786 2007-05-20  Bruno Haible  <bruno@clisp.org>
51787
51788         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
51789         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
51790         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
51791         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
51792         NEED_PRINTF_INFINITE.
51793         (is_infinitel): New function.
51794         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
51795         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
51796         gl_PREREQ_VASNPRINTF_INFINITE.
51797         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
51798         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51799         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
51800         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
51801         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
51802         gl_PREREQ_VASNPRINTF_INFINITE.
51803         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51804         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51805         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51806         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51807         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51808         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51809         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51810         * doc/functions/fprintf.texi: Update.
51811         * doc/functions/printf.texi: Update.
51812         * doc/functions/snprintf.texi: Update.
51813         * doc/functions/sprintf.texi: Update.
51814         * doc/functions/vfprintf.texi: Update.
51815         * doc/functions/vprintf.texi: Update.
51816         * doc/functions/vsnprintf.texi: Update.
51817         * doc/functions/vsprintf.texi: Update.
51818
51819 2007-05-20  Bruno Haible  <bruno@clisp.org>
51820
51821         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
51822         was not found in libc.
51823         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
51824
51825 2007-05-20  Bruno Haible  <bruno@clisp.org>
51826
51827         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
51828         printed as "-nan" instead of "nan".
51829         * tests/test-vasprintf-posix.c (test_function): Likewise.
51830         * tests/test-snprintf-posix.h (test_function): Likewise.
51831         * tests/test-sprintf-posix.h (test_function): Likewise.
51832         Needed for HP-UX 11.
51833
51834 2007-05-20  Jim Meyering  <jim@meyering.net>
51835
51836         Fix buggy test for the fchownat-deref bug.
51837         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
51838         symlink required for the run-test.  Without it, this test would
51839         always declare that fchownat doesn't work, and client code would
51840         unnecessarily use the replacement function with fixed libc.
51841         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
51842         Reported by Greg Schafer.
51843
51844 2007-05-19  Bruno Haible  <bruno@clisp.org>
51845
51846         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
51847         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
51848         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
51849         Needed for IRIX 6.5 and Solaris 2.5.1.
51850
51851 2007-05-19  Bruno Haible  <bruno@clisp.org>
51852
51853         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
51854         (test_function): Skip tests involving -0.0 on platforms where
51855         -0.0 = 0.0.
51856         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
51857         (test_function): Skip tests involving -0.0 on platforms where
51858         -0.0 = 0.0.
51859         * tests/test-snprintf-posix.h (have_minus_zero): New function.
51860         (test_function): Skip tests involving -0.0 on platforms where
51861         -0.0 = 0.0.
51862         * tests/test-sprintf-posix.h (have_minus_zero): New function.
51863         (test_function): Skip tests involving -0.0 on platforms where
51864         -0.0 = 0.0.
51865         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
51866         tests.
51867         * tests/test-printf-posix.h (test_function): Likewise.
51868         * tests/test-printf-posix.output: Remove all -0.0 related results.
51869         Needed for IRIX 6.5.
51870
51871 2007-05-19  Bruno Haible  <bruno@clisp.org>
51872
51873         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
51874         printed as "nan0x7fffffff" instead of "nan".
51875         * tests/test-vasprintf-posix.c (test_function): Likewise.
51876         * tests/test-snprintf-posix.h (test_function): Likewise.
51877         * tests/test-sprintf-posix.h (test_function): Likewise.
51878         * tests/test-fprintf-posix.h (NaN): Remove macro.
51879         (test_function): Remove all NaN related tests.
51880         * tests/test-printf-posix.h (NaN): Remove macro.
51881         (test_function): Remove all NaN related tests.
51882         * tests/test-printf-posix.output: Remove all NaN related results.
51883         Needed for IRIX 6.5.
51884
51885 2007-05-19  Bruno Haible  <bruno@clisp.org>
51886
51887         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
51888         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
51889
51890 2007-05-19  Bruno Haible  <bruno@clisp.org>
51891
51892         * lib/float_.h: New file.
51893         * m4/float_h.m4: New file.
51894         * modules/float: New file.
51895         * modules/isnanl (Dependencies): Add float.
51896         * modules/isnanl-nolibm (Dependencies): Likewise.
51897         * modules/mathl (Dependencies): Likewise.
51898         * modules/printf-frexpl (Dependencies): Likewise.
51899         * modules/signbit (Dependencies): Likewise.
51900         * modules/vasnprintf (Dependencies): Likewise.
51901         * doc/headers/float.texi: Update.
51902
51903 2007-05-19  Jim Meyering  <jim@meyering.net>
51904
51905         * lib/utimens.c (gl_futimens): Rename from futimens,
51906         now that glibc-2.6 declares futimens.
51907         * lib/utimens.h: Likewise.
51908
51909 2007-05-19  Bruno Haible  <bruno@clisp.org>
51910
51911         Avoid test failures on mingw.
51912         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
51913         * tests/test-printf-posix.sh: Likewise.
51914         * tests/test-vfprintf-posix.sh: Likewise.
51915         * tests/test-vprintf-posix.sh: Likewise.
51916
51917 2007-05-19  Bruno Haible  <bruno@clisp.org>
51918
51919         Fix *printf result for NaN, Inf, -0.0 on mingw.
51920         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
51921         * lib/vasnprintf.c: Include math.h and isnan.h.
51922         (is_infinite_or_zero): New function.
51923         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
51924         values in the %f, %F, %e, %E, %g, %G directives.
51925         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
51926         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51927         gl_PRINTF_INFINITE and test its result. Invoke
51928         gl_PREREQ_VASNPRINTF_INFINITE.
51929         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51930         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51931         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51932         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51933         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51934         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51935         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51936         * doc/functions/fprintf.texi: Update.
51937         * doc/functions/printf.texi: Update.
51938         * doc/functions/snprintf.texi: Update.
51939         * doc/functions/sprintf.texi: Update.
51940         * doc/functions/vfprintf.texi: Update.
51941         * doc/functions/vprintf.texi: Update.
51942         * doc/functions/vsnprintf.texi: Update.
51943         * doc/functions/vsprintf.texi: Update.
51944
51945 2007-05-19  Bruno Haible  <bruno@clisp.org>
51946
51947         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
51948         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
51949         Instead of multiplying with 10^k, set extra_zeroes to k.
51950         (scale10_round_long_double): Remove function.
51951
51952 2007-05-18  Bruno Haible  <bruno@clisp.org>
51953
51954         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
51955         introduced on 2007-05-06.
51956
51957 2007-05-18  Bruno Haible  <bruno@clisp.org>
51958
51959         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
51960         %g directives.
51961         * tests/test-vasprintf-posix.c (test_function): Likewise.
51962         * tests/test-snprintf-posix.h (test_function): Likewise.
51963         * tests/test-sprintf-posix.h (test_function): Likewise.
51964
51965 2007-05-18  Bruno Haible  <bruno@clisp.org>
51966
51967         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
51968         (strmatch): New function.
51969         (test_function): Test the %f directive on numbers of various exponents.
51970         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
51971         (strmatch): New function.
51972         (test_function): Test the %f directive on numbers of various exponents.
51973         * tests/test-snprintf-posix.h (strmatch): New function.
51974         (test_function): Test the %f directive on numbers of various exponents.
51975         * tests/test-sprintf-posix.h (strmatch): New function.
51976         (test_function): Test the %f directive on numbers of various exponents.
51977         * tests/test-snprintf-posix.c (SIZEOF): New macro.
51978         * tests/test-sprintf-posix.c (SIZEOF): New macro.
51979         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
51980         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
51981
51982 2007-05-18  Bruno Haible  <bruno@clisp.org>
51983
51984         Add support for 'long double' number output.
51985         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
51986         * lib/vasnprintf.c: Include math.h and float+.h.
51987         (mp_limb_t): New type.
51988         (GMP_LIMB_BITS): New macro.
51989         (mp_twolimb_t): New type.
51990         (GMP_TWOLIMB_BITS): New macro.
51991         (mpn_t): New type.
51992         (multiply, divide, convert_to_decimal, decode_long_double,
51993         scale10_round_long_double, scale10_round_decimal_long_double,
51994         floorlog10l): New functions.
51995         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
51996         for the %f, %F, %e, %E, %g, %G directives.
51997         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
51998         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51999         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
52000         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
52001         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52002         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52003         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52004         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52005         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52006         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52007         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52008         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
52009         * modules/snprintf-posix (Depends-on): Likewise.
52010         * modules/sprintf-posix (Depends-on): Likewise.
52011         * modules/vasnprintf-posix (Depends-on): Likewise.
52012         * modules/vasprintf-posix (Depends-on): Likewise.
52013         * modules/vfprintf-posix (Depends-on): Likewise.
52014         * modules/vsnprintf-posix (Depends-on): Likewise.
52015         * modules/vsprintf-posix (Depends-on): Likewise.
52016         * modules/vasnprintf (Files): Add lib/float+.h.
52017         * doc/functions/fprintf.texi: Update.
52018         * doc/functions/printf.texi: Update.
52019         * doc/functions/snprintf.texi: Update.
52020         * doc/functions/sprintf.texi: Update.
52021         * doc/functions/vfprintf.texi: Update.
52022         * doc/functions/vprintf.texi: Update.
52023         * doc/functions/vsnprintf.texi: Update.
52024         * doc/functions/vsprintf.texi: Update.
52025
52026 2007-05-18  Bruno Haible  <bruno@clisp.org>
52027
52028         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
52029
52030 2007-05-18  Bruno Haible  <bruno@clisp.org>
52031
52032         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
52033         for printing 64-bit integers. Needed for mingw.
52034
52035 2007-05-18  Bruno Haible  <bruno@clisp.org>
52036
52037         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
52038         gl_FUNC_FREXPL_WORKS.
52039         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
52040
52041 2007-05-18  Bruno Haible  <bruno@clisp.org>
52042
52043         * modules/frexpl-nolibm-tests: New file.
52044
52045         * modules/frexpl-nolibm: New file.
52046         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
52047
52048 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
52049
52050         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
52051         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
52052         GCC 4.2, which otherwise issues a lot of warnings.
52053         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
52054         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
52055         Likewise.
52056         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
52057         * modules/iconv_open (iconv.h): Likewise.
52058         * modules/locale (locale.h): Likewise.
52059         * modules/netinet_in (netinet/in.h): Likewise.
52060         * modules/sys_select (sys_select.h): Likewise.
52061         * modules/sys_socket (sys/socket.h): Likewise.
52062         * modules/sys_stat (sys/stat.h): Likewise.
52063         * modules/sysexits (sysexits.h): Likewise.
52064         * modules/unistd (unistd.h): Likewise.
52065
52066 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52067
52068         * modules/closein-tests (Makefile.am): Distribute
52069         `test-closein.sh'.
52070
52071 2007-05-17  Bruno Haible  <bruno@clisp.org>
52072
52073         * tests/test-printf-posix.output: Renamed from
52074         tests/test-fprintf-posix.out.
52075         * modules/fprintf-posix-tests: Update.
52076         * modules/printf-posix-tests: Update.
52077         * modules/vfprintf-posix-tests: Update.
52078         * modules/vprintf-posix-tests: Update.
52079         * tests/test-fprintf-posix.sh: Update.
52080         * tests/test-printf-posix.sh: Update.
52081         * tests/test-vfprintf-posix.sh: Update.
52082         * tests/test-vprintf-posix.sh: Update.
52083         Reported by Ralf Wildenhues.
52084
52085 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
52086
52087         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
52088         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
52089         GCC 4.2, which otherwise issues a lot of warnings.
52090         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
52091         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
52092         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
52093         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
52094         it should no longer be needed.
52095         * lib/string_.h: Likewise.
52096         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
52097         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
52098         * modules/inttypes (inttypes.h): Likewise.
52099         * modules/math (math.h): Likewise.
52100         * modules/search (search.h): Likewise.
52101         * modules/signal (signal.h): Likewise.
52102         * modules/stdint (stdint.h): Likewise.
52103         * modules/stdio (stdio.h): Likewise.
52104         * modules/stdlib (stdlib.h): Likewise.
52105         * modules/string (string.h): Likewise.
52106         * modules/sys_time (sys/time.h): Likewise.
52107         * modules/time (time.h): Likewise.
52108         * modules/wchar (wchar.h): Likewise.
52109         * modules/wctype (wtype.h): Likewise.
52110
52111 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
52112
52113         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
52114
52115 2007-05-13  Bruno Haible  <bruno@clisp.org>
52116
52117         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
52118         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
52119         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
52120         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
52121         (gl_PREREQ_STRTOK_R): Don't require it here.
52122
52123 2007-05-13  Bruno Haible  <bruno@clisp.org>
52124
52125         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
52126         when used in C++ mode.
52127
52128 2007-05-12  Bruno Haible  <bruno@clisp.org>
52129
52130         * lib/linebuffer.h: Tweak doc.
52131         * lib/linebuffer.c: Likewise.
52132
52133 2007-05-12  James Youngman  <jay@gnu.org>
52134
52135         * lib/linebuffer.c (readlinebuffer_delim): New function,
52136         like readlinebuffer, but use a caller-specified delimiter.
52137         (readlinebuffer): Just call readlinebuffer_delim with '\n'
52138         as the delimiter.
52139         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
52140
52141 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
52142
52143         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
52144         * modules/openat (Files): Remove openat-die.c.
52145         (Depends-on): Add openat-die.
52146         * modules/openat-die: New module.
52147
52148 2007-05-06  Bruno Haible  <bruno@clisp.org>
52149
52150         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
52151         Update with info about Cygwin.
52152         * doc/functions/fprintf.texi: Update.
52153         * doc/functions/printf.texi: Update.
52154         * doc/functions/snprintf.texi: Update.
52155         * doc/functions/sprintf.texi: Update.
52156         * doc/functions/vfprintf.texi: Update.
52157         * doc/functions/vprintf.texi: Update.
52158         * doc/functions/vsnprintf.texi: Update.
52159         * doc/functions/vsprintf.texi: Update.
52160         Reported by Eric Blake.
52161
52162 2007-05-06  Bruno Haible  <bruno@clisp.org>
52163
52164         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
52165         padding ourselves for the floating-point directives.
52166         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
52167         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
52168         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52169         gl_PRINTF_FLAG_ZERO and test its result. Invoke
52170         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
52171         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52172         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
52173         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52174         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52175         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52176         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52177         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52178         * tests/test-snprintf-posix.h (test_function): Also check the width
52179         and some flags in the %f directive.
52180         * tests/test-sprintf-posix.h (test_function): Likewise.
52181         * tests/test-vasnprintf-posix.c (test_function): Likewise.
52182         * tests/test-vasprintf-posix.c (test_function): Likewise.
52183         * doc/functions/fprintf.texi: Update.
52184         * doc/functions/printf.texi: Update.
52185         * doc/functions/snprintf.texi: Update.
52186         * doc/functions/sprintf.texi: Update.
52187         * doc/functions/vfprintf.texi: Update.
52188         * doc/functions/vprintf.texi: Update.
52189         * doc/functions/vsnprintf.texi: Update.
52190         * doc/functions/vsprintf.texi: Update.
52191
52192 2007-05-06  Bruno Haible  <bruno@clisp.org>
52193
52194         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
52195         pass the ' flag character to sprintf or snprintf.
52196         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
52197         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
52198         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52199         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
52200         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
52201         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52202         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
52203         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52204         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52205         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52206         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52207         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52208         * tests/test-snprintf-posix.h (test_function): Also check the grouping
52209         flag.
52210         * tests/test-sprintf-posix.h (test_function): Likewise.
52211         * tests/test-vasnprintf-posix.c (test_function): Likewise.
52212         * tests/test-vasprintf-posix.c (test_function): Likewise.
52213         * doc/functions/fprintf.texi: Update.
52214         * doc/functions/printf.texi: Update.
52215         * doc/functions/snprintf.texi: Update.
52216         * doc/functions/sprintf.texi: Update.
52217         * doc/functions/vfprintf.texi: Update.
52218         * doc/functions/vprintf.texi: Update.
52219         * doc/functions/vsnprintf.texi: Update.
52220         * doc/functions/vsprintf.texi: Update.
52221
52222 2007-05-01  Bruno Haible  <bruno@clisp.org>
52223
52224         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
52225
52226 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
52227
52228         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
52229         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
52230
52231 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
52232
52233         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
52234         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
52235         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
52236
52237 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
52238
52239         * lib/argp-help.c (struct hol_entry): New member `ord'.
52240         (HOL_ENTRY_PTRCMP): Use ord for comparison
52241         (hol_sort): Initialize ord.
52242
52243 2007-05-01  Bruno Haible  <bruno@clisp.org>
52244
52245         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
52246         Reported by Eric Blake.
52247         * doc/gnulib.texi (Function Substitutes): Update.
52248
52249 2007-05-01  Bruno Haible  <bruno@clisp.org>
52250
52251         * doc/functions.texi: Remove file, now redundant through
52252         doc/functions/*.texi.
52253
52254 2007-05-01  Bruno Haible  <bruno@clisp.org>
52255
52256         * modules/argp (Depends-on): Add sleep.
52257
52258 2007-05-01  Bruno Haible  <bruno@clisp.org>
52259
52260         * modules/sleep-tests: New file.
52261         * tests/test-sleep.c: New file.
52262
52263         * modules/sleep: New file.
52264         * lib/sleep.c: New file.
52265         * m4/sleep.m4: New file.
52266         * lib/unistd_.h (sleep): New declaration.
52267         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
52268         HAVE_SLEEP.
52269         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
52270         * doc/functions/sleep.texi: Document the sleep module.
52271
52272 2007-05-01  Bruno Haible  <bruno@clisp.org>
52273
52274         * lib/sigprocmask.h: Remove file.
52275         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
52276         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
52277         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
52278         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
52279         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
52280         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
52281         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
52282         HAVE_SIGSET_T as a shell variable.
52283         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
52284         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
52285         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
52286         (Depends-on): Add signal. Remove verify.
52287         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
52288         (Include): Mention <signal.h> instead of sigprocmask.h.
52289         * NEWS: Mention the change.
52290         * lib/fatal-signal.c: Don't include sigprocmask.h.
52291
52292 2007-05-01  Bruno Haible  <bruno@clisp.org>
52293
52294         * modules/signal: New file.
52295         * lib/signal_.h: New file.
52296         * m4/signal_h.m4: New file.
52297
52298 2007-05-01  Bruno Haible  <bruno@clisp.org>
52299
52300         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
52301         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
52302         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
52303         HAVE_WCTYPE_CTMP_BUG into wctype.h.
52304
52305 2007-05-01  Bruno Haible  <bruno@clisp.org>
52306
52307         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
52308         configure time.
52309         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
52310         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
52311         * modules/sys_stat (Makefile.am): Substitute their values into
52312         sys/stat.h.
52313
52314 2007-05-01  Bruno Haible  <bruno@clisp.org>
52315
52316         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
52317         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
52318         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
52319
52320 2007-05-01  Bruno Haible  <bruno@clisp.org>
52321
52322         * doc/header/assert.texi: Undo last change: don't mention the gnulib
52323         'assert' module here.
52324
52325 2007-05-01  Bruno Haible  <bruno@clisp.org>
52326
52327         * doc/functions/*.texi: New files.
52328         * doc/functions/google-ranking.txt: New file.
52329         * doc/gnulib.texi (Function Substitutes): New chapter.
52330         (ctime, inet_ntoa): Remove sections.
52331         * doc/ctime.texi: Remove file.
52332         * doc/inet_ntoa.texi: Remove file.
52333         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
52334         dependencies.
52335         (%.info): New rule, specifying a --reference-limit.
52336
52337 2007-05-01  Bruno Haible  <bruno@clisp.org>
52338
52339         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
52340
52341 2007-05-01  Bruno Haible  <bruno@clisp.org>
52342
52343         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
52344         the portability of 'mkdir' to mingw systems.
52345
52346 2007-05-01  Bruno Haible  <bruno@clisp.org>
52347
52348         * doc/headers/google-ranking.txt: New file.
52349
52350 2007-04-30  Eric Blake  <ebb9@byu.net>
52351
52352         Prefer fseeko to fseek.
52353         * modules/getpass (Depends-on): Add fseeko.
52354         * lib/getpass.c (getpass): Use fseeko, not fseek.
52355
52356 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
52357
52358         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
52359         assumes the sorting is stable, while most qsort implementations
52360         are not.  Use argument addresses to ensure they never compare as
52361         equal.
52362
52363         * tests/test-argp-2.sh (usage-indent test): Fix output
52364         (func_compare): Restore diff options
52365         * tests/test-argp.c: Restore #include "progname.h"
52366
52367 2007-04-29  Bruno Haible  <bruno@clisp.org>
52368
52369         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
52370         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52371         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
52372         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52373         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
52374         (configure.ac): Define CHECK_SNPRINTF_POSIX.
52375         (TESTS, check_PROGRAMS): Add test-snprintf.
52376         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
52377         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
52378         (TESTS, check_PROGRAMS): Add test-vsnprintf.
52379         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
52380         assertions that fail on HP-UX, OSF/1, or IRIX.
52381         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
52382
52383 2007-04-29  Bruno Haible  <bruno@clisp.org>
52384
52385         * MODULES.html.sh (posix_functions): Remove 'contents'.
52386
52387 2007-04-29  Karl Berry  <karl@gnu.org>
52388
52389         * config/srclist.txt (gendocs_template_min): new entry.
52390
52391 2007-04-29  Bruno Haible  <bruno@clisp.org>
52392
52393         Work around fpurge bug on BSD systems.
52394         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
52395         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
52396         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
52397         fpurge to rpl_fpurge if the system already has this function.
52398         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
52399         the case where the system already has this function. Correct invariants
52400         on BSD systems.
52401         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
52402         BSD systems.
52403
52404 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
52405
52406         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
52407         proposed by Sven Verdoolaege.
52408
52409         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
52410         options.
52411         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
52412         (usage and help tests): Update
52413
52414 2007-04-29  Bruno Haible  <bruno@clisp.org>
52415
52416         * tests/test-fflush.c (main): Use a file of size 17, not 10.
52417         Print more information in case of failure. Disable a test on BeOS.
52418
52419 2007-04-29  Bruno Haible  <bruno@clisp.org>
52420
52421         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
52422         This helps debugging on systems on which no gdb is available.
52423
52424 2007-04-29  Bruno Haible  <bruno@clisp.org>
52425
52426         * lib/freading.h: Improve comments.
52427         * lib/fwriting.h: Likewise.
52428         * tests/test-freading.c (main): Don't check freading immediately after
52429         repositioning. Needed for glibc.
52430
52431 2007-04-29  Bruno Haible  <bruno@clisp.org>
52432
52433         * lib/freading.c (freading): Trivial simplification.
52434
52435 2007-04-28  Bruno Haible  <bruno@clisp.org>
52436
52437         * tests/test-fwriting.c (main): Also test the interaction between
52438         fflush and fwriting.
52439         * modules/fwriting-tests (Depends-on): Add fflush.
52440
52441         * tests/test-freading.c (main): Also test the interaction between
52442         fflush and freading.
52443         * modules/freading-tests (Depends-on): Add fflush.
52444
52445 2007-04-28  Bruno Haible  <bruno@clisp.org>
52446
52447         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
52448         fseeko and ftello.
52449         Suggested by Eric Blake.
52450
52451 2007-04-28  Jim Meyering  <jim@meyering.net>
52452
52453         Avoid false-negative in gl_STDINT_H's C99 conformance test.
52454         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
52455         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
52456
52457 2007-04-27  Eric Blake  <ebb9@byu.net>
52458
52459         * doc/headers/assert.texi (assert.h): Document assert module use.
52460
52461 2007-04-27  Bruno Haible  <bruno@clisp.org>
52462
52463         * doc/headers/*.texi: New files.
52464         * doc/gnulib.texi (Header File Substitutes): New chapter.
52465         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
52466         dependencies.
52467         (standards.info ,standards.html, standards.dvi): Update dependencies.
52468         (mostlyclean, clean): New targets.
52469
52470 2007-04-27  Bruno Haible  <bruno@clisp.org>
52471
52472         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
52473         * modules/sysexits (Files, Makefile.am): Update.
52474
52475         * lib/sys_socket_.h: Renamed from lib/socket_.h.
52476         * modules/sys_socket (Files, Makefile.am): Update.
52477
52478         * lib/sys_stat_.h: Renamed from lib/stat_.h.
52479         * modules/sys_stat (Files, Makefile.am): Update.
52480
52481 2007-04-27  Eric Blake  <ebb9@byu.net>
52482
52483         * lib/freading.h: Improve comments.
52484         * lib/fwriting.h: Likewise.
52485         * lib/fflush.c: Likewise.
52486
52487         Fix closein for mingw.
52488         * modules/closein-tests: Add tests for closein.
52489         * tests/test-closein.c: New file.
52490         * tests/test-closein.sh: Likewise.
52491         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
52492         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
52493
52494 2007-04-27  Bruno Haible  <bruno@clisp.org>
52495
52496         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
52497         version is < 6.
52498         * lib/math_.h [__DECC]: Likewise.
52499         * lib/stdio_.h [__DECC]: Likewise.
52500         * lib/stdlib_.h [__DECC]: Likewise.
52501         * lib/string_.h [__DECC]: Likewise.
52502         * lib/time_.h [__DECC]: Likewise.
52503         * lib/wchar_.h [__DECC]: Likewise.
52504         * lib/wctype_.h [__DECC]: Likewise.
52505
52506 2007-04-27  Bruno Haible  <bruno@clisp.org>
52507
52508         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
52509
52510 2007-04-27  Bruno Haible  <bruno@clisp.org>
52511
52512         * lib/fflush.c: Add comments.
52513         * modules/fpurge-tests (Depends-on): Add fflush.
52514         * modules/freadable-tests (Depends-on): Likewise.
52515         * modules/fwritable-tests (Depends-on): Likewise.
52516
52517 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
52518
52519         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
52520         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
52521         Report by Bruno Haible <bruno@clisp.org>.
52522
52523 2007-04-26  Eric Blake  <ebb9@byu.net>
52524
52525         Fix fflush on mingw.
52526         * modules/fflush (Depends-on): Add freading.
52527         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
52528         but unread data.
52529
52530 2007-04-26  Eric Blake  <ebb9@byu.net>
52531         and Bruno Haible  <bruno@clisp.org>
52532
52533         Implement freading and fwriting.
52534         * lib/freading.c: New file.
52535         * lib/freading.h: Likewise.
52536         * m4/freading.m4: Likewise.
52537         * modules/freading: Likewise.
52538         * modules/freading-tests: Likewise.
52539         * tests/test-freading.c: Likewise.
52540         * lib/fwriting.c: New file.
52541         * lib/fwriting.h: Likewise.
52542         * m4/fwriting.m4: Likewise.
52543         * modules/fwriting: Likewise.
52544         * modules/fwriting-tests: Likewise.
52545         * tests/test-fwriting.c: Likewise.
52546         * MODULES.html.sh (File stream based Input/Output): Mention them.
52547
52548 2007-04-26  Bruno Haible  <bruno@clisp.org>
52549
52550         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
52551         'long' when we assume it.
52552         Suggested by Eric Blake.
52553
52554 2007-04-26  Bruno Haible  <bruno@clisp.org>
52555
52556         Ensure fseeko, ftello are declared on glibc systems.
52557         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
52558         * modules/fseeko (configure.ac-early): Likewise.
52559         * modules/ftello (configure.ac-early): Likewise.
52560         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
52561         AC_FUNC_FSEEKO for this.
52562         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
52563         (gl_CHECK_FSEEKO): Remove macro.
52564
52565 2007-04-26  Bruno Haible  <bruno@clisp.org>
52566
52567         * tests/test-fflush.c (main): Also check the ftell result after
52568         fflush and fseek/fseeko.
52569         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
52570         file descriptor position cache in the stream.
52571         * lib/fseeko.c (rpl_fseeko): Likewise.
52572
52573 2007-04-26  Bruno Haible  <bruno@clisp.org>
52574
52575         * modules/fflush-tests (Depends-on): Add fseeko.
52576
52577 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
52578             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52579
52580         * lib/argz_.h: ensure error_t definition is obtained in same
52581         mechanism system argz.h would have.
52582         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
52583         argz facilities are known bad.  Err on the side of caution if
52584         cross-compiling.
52585
52586 2007-04-25  Eric Blake  <ebb9@byu.net>
52587
52588         * lib/fpurge.c (includes): Use stdlib.h for free.
52589         * tests/test-fflush.c (main): Also test fflush-fseeko.
52590
52591 2007-04-25  Bruno Haible  <bruno@clisp.org>
52592
52593         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
52594         * lib/fseeko.c: New file.
52595         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
52596         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
52597         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
52598         gl_FUNC_FSEEKO.
52599         (gl_FUNC_FSEEKO): Invoke it.
52600         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
52601         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
52602         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
52603
52604 2007-04-25  Bruno Haible  <bruno@clisp.org>
52605
52606         * modules/fflush (Depends-on): Add ftello.
52607
52608 2007-04-25  Bruno Haible  <bruno@clisp.org>
52609
52610         * modules/ftello-tests: New file.
52611         * tests/test-ftello.c: New file.
52612
52613         * modules/ftello: New file.
52614         * m4/ftello.m4: New file.
52615         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
52616         HAVE_FTELLO.
52617         * lib/stdio_.h (ftello): New declaration.
52618         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
52619         HAVE_FTELLO.
52620
52621 2007-04-25  Bruno Haible  <bruno@clisp.org>
52622
52623         * modules/fseeko-tests: New file.
52624         * tests/test-fseeko.c: New file.
52625
52626         * modules/fseeko: New file.
52627         * m4/fseeko.m4: New file.
52628         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
52629         HAVE_FSEEKO.
52630         * lib/stdio_.h (fseeko): New declaration.
52631         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
52632         HAVE_FSEEKO.
52633
52634 2007-04-25  Bruno Haible  <bruno@clisp.org>
52635
52636         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
52637
52638 2007-04-25  Bruno Haible  <bruno@clisp.org>
52639
52640         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
52641         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
52642         * tests/test-unistd.c: Likewise.
52643         * tests/test-fcntl.c: Likewise.
52644
52645 2007-04-23  Eric Blake  <ebb9@byu.net>
52646
52647         * lib/fflush.c: Fix missing include.
52648         Reported by Bruno Haible.
52649
52650 2007-04-23  Bruno Haible  <bruno@clisp.org>
52651
52652         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
52653         Reported by Eric Blake.
52654
52655 2007-04-23  Bruno Haible  <bruno@clisp.org>
52656
52657         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
52658
52659 2007-04-23  Bruno Haible  <bruno@clisp.org>
52660
52661         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
52662
52663 2007-04-23  Bruno Haible  <bruno@clisp.org>
52664
52665         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
52666         Needed on HP-UX 11.
52667
52668 2007-04-16  Eric Blake  <ebb9@byu.net>
52669
52670         Make fflush rely on fpurge.
52671         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
52672         open coding all variants.
52673         * modules/fflush (Depends-on): Add fpurge and unistd.
52674         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
52675         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
52676
52677         Fix --with-tests compilation on cygwin.
52678         * modules/argmatch-tests (Makefile.am): List gnulib library first
52679         in LDADD.
52680         * modules/argp-tests (Makefile.am): Likewise.
52681         * modules/array-list-tests (Makefile.am): Likewise.
52682         * modules/array-oset-tests (Makefile.am): Likewise.
52683         * modules/avltree-list-tests (Makefile.am): Likewise.
52684         * modules/avltree-oset-tests (Makefile.am): Likewise.
52685         * modules/avltreehash-list-tests (Makefile.am): Likewise.
52686         * modules/carray-list-tests (Makefile.am): Likewise.
52687         * modules/dirname-tests (Makefile.am): Likewise.
52688         * modules/frexp-tests (Makefile.am): Likewise.
52689         * modules/isnanl-tests (Makefile.am): Likewise.
52690         * modules/linked-list-tests (Makefile.am): Likewise.
52691         * modules/linkedhash-list-tests (Makefile.am): Likewise.
52692         * modules/lock-tests (Makefile.am): Likewise.
52693         * modules/rbtree-list-tests (Makefile.am): Likewise.
52694         * modules/rbtree-oset-tests (Makefile.am): Likewise.
52695         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
52696         * modules/tls-tests (Makefile.am): Likewise.
52697         * modules/tsearch-tests (Makefile.am): Likewise.
52698         * modules/xvasprintf-tests (Makefile.am): Likewise.
52699
52700         Fix fpurge for cygwin.
52701         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
52702         value.
52703         * modules/fpurge-tests (Depends-on): Clean up trash.
52704
52705 2007-04-16  Simon Josefsson  <simon@josefsson.org>
52706
52707         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
52708
52709         * m4/autobuild.m4: Re-indent.
52710
52711 2007-04-13  Bruno Haible  <bruno@clisp.org>
52712
52713         * modules/fpurge-tests: New file.
52714         * tests/test-fpurge.c: New file.
52715
52716         * modules/fpurge: New file.
52717         * lib/fpurge.h: New file.
52718         * lib/fpurge.c: New file.
52719         * m4/fpurge.m4: New file.
52720
52721 2007-04-13  Bruno Haible  <bruno@clisp.org>
52722
52723         * modules/fbufmode-tests: New file.
52724         * tests/test-fbufmode.c: New file.
52725
52726         * modules/fbufmode: New file.
52727         * lib/fbufmode.h: New file.
52728         * lib/fbufmode.c: New file.
52729         * m4/fbufmode.m4: New file.
52730
52731 2007-04-13  Bruno Haible  <bruno@clisp.org>
52732
52733         * modules/fwritable-tests: New file.
52734         * tests/test-fwritable.c: New file.
52735
52736         * modules/fwritable: New file.
52737         * lib/fwritable.h: New file.
52738         * lib/fwritable.c: New file.
52739         * m4/fwritable.m4: New file.
52740
52741 2007-04-13  Bruno Haible  <bruno@clisp.org>
52742
52743         * modules/freadable-tests: New file.
52744         * tests/test-freadable.c: New file.
52745
52746         * modules/freadable: New file.
52747         * lib/freadable.h: New file.
52748         * lib/freadable.c: New file.
52749         * m4/freadable.m4: New file.
52750
52751 2007-04-13  Bruno Haible  <bruno@clisp.org>
52752
52753         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
52754         MOSTLYCLEANFILES.
52755
52756 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
52757
52758         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
52759         gzip bootstrap.conf to avoid dragging in i18n machinery.
52760         (gnulib_tool_option): Use it.
52761
52762 2007-04-13  Bruno Haible  <bruno@clisp.org>
52763
52764         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
52765         %F directives.
52766         * tests/test-vasprintf-posix.c (test_function): Likewise.
52767         * tests/test-snprintf-posix.h (test_function): Likewise.
52768         * tests/test-sprintf-posix.h (test_function): Likewise.
52769         * tests/test-fprintf-posix.h (test_function): Likewise.
52770         * tests/test-printf-posix.h (test_function): Likewise.
52771         * tests/test-fprintf-posix.out: Likewise.
52772
52773 2007-04-13  Bruno Haible  <bruno@clisp.org>
52774
52775         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
52776         * modules/tls-tests (configure.ac): Likewise.
52777         Reported by Arto C. Nirkko <anirkko@insel.ch>.
52778
52779 2007-04-13  Bruno Haible  <bruno@clisp.org>
52780
52781         * lib/tls.c (glthread_tls_get): Fix return type.
52782         Patch by Arto C. Nirkko <anirkko@insel.ch>.
52783
52784 2007-04-12  Eric Blake  <ebb9@byu.net>
52785
52786         * modules/gettime (Depends-on): Remove gettime.
52787         Reported by Dmitry V. Levin.
52788
52789 2007-04-12  Bruno Haible  <bruno@clisp.org>
52790
52791         * modules/fflush (Include): Mention <stdio.h>.
52792         * modules/strtoimax (Include): Mention <inttypes.h>.
52793         * modules/strtoumax (Include): Likewise.
52794
52795 2007-04-12  Eric Blake  <ebb9@byu.net>
52796
52797         * .cvsignore: New file.
52798         * .gitignore: Likewise.
52799
52800 2007-04-12  Bruno Haible  <bruno@clisp.org>
52801
52802         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
52803         not before, since $(LDADD) often contains libgnu.a.
52804         * modules/striconv-tests (test_striconv_LDADD): Likewise.
52805         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
52806         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
52807         Needed on Cygwin.
52808
52809 2007-04-12  Eric Blake  <ebb9@byu.net>
52810
52811         Work around glibc's failure to flush stdin on fclose.
52812         * lib/closein.c (close_stdin): Flush stdin before closing.
52813
52814         Work around glibc's failure to reset seekable stdin on exit.
52815         * modules/closein: New module.
52816         * lib/closein.c: New file.
52817         * lib/closein.h: Likewise.
52818         * m4/closein.m4: Likewise.
52819         * MODULES.html.sh (File stream based Input/Output): Document it.
52820
52821 2007-04-12  Simon Josefsson  <simon@josefsson.org>
52822
52823         * gnulib-tool: Rename generated 'autobuild' script to
52824         'do-autobuild' in --create-megatestdir output.
52825
52826         * doc/gnulib.texi (Build robot for gnulib): Fix.
52827
52828 2007-04-12  Simon Josefsson  <simon@josefsson.org>
52829
52830         * modules/sysexits (Depends-on): Add absolute-header.
52831
52832 2007-04-12  Eric Blake  <ebb9@byu.net>
52833
52834         No need to preserve errno on success.
52835         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
52836         Reported by Bruno Haible.
52837
52838 2007-04-12  Simon Josefsson  <simon@josefsson.org>
52839
52840         * MODULES.html.sh (Support for maintaining and releasing
52841         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
52842
52843 2007-04-12  Simon Josefsson  <simon@josefsson.org>
52844
52845         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
52846
52847 2007-04-12  Simon Josefsson  <simon@josefsson.org>
52848
52849         * modules/autobuild: New module.
52850
52851         * m4/autobuild.m4: New file.
52852
52853 2007-04-11  Bruno Haible  <bruno@clisp.org>
52854
52855         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
52856         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
52857         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
52858         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
52859         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52860         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52861         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52862         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52863         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52864         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52865         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
52866         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52867         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52868         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
52869         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52870         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52871         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
52872         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52873         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52874         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
52875         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52876         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52877         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
52878         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52879         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52880         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
52881         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52882         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52883         Reported by Eric Blake.
52884
52885 2007-04-11  Bruno Haible  <bruno@clisp.org>
52886
52887         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
52888
52889 2007-04-10  Bruno Haible  <bruno@clisp.org>
52890
52891         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
52892         for NaN and Infinity. Needed on FreeBSD 6.1.
52893         * tests/test-vasnprintf-posix.c (test_function): Undo last change
52894         regarding results for "%010a" of Infinity and NaN.
52895         * tests/test-vasprintf-posix.c (test_function): Likewise.
52896         * tests/test-snprintf-posix.h (test_function): Likewise.
52897         * tests/test-sprintf-posix.h (test_function): Likewise.
52898         * tests/test-fprintf-posix.h (test_function): Likewise.
52899         * tests/test-printf-posix.h (test_function): Likewise.
52900         * tests/test-fprintf-posix.out: Likewise.
52901
52902 2007-04-10  Bruno Haible  <bruno@clisp.org>
52903
52904         * modules/locale-tests: New file.
52905         * tests/test-locale.c: New file.
52906
52907         * modules/locale: New file.
52908         * lib/locale_.h: New file.
52909         * m4/locale_h.m4: New file.
52910
52911 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
52912             Bruno Haible  <bruno@clisp.org>
52913
52914         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
52915         be determined, test for availability of the copysignf, copysign,
52916         copysignl functions.
52917         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
52918         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
52919         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
52920
52921 2007-04-09  Eric Blake  <ebb9@byu.net>
52922
52923         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
52924         * modules/stdio (Makefile.am): Support fflush.
52925         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
52926         * modules/fflush: New file.
52927         * lib/fflush.c: Likewise.
52928         * m4/fflush.m4: Likewise.
52929         * modules/fflush-tests: New test.
52930         * tests/test-fflush.c: Likewise.
52931         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
52932
52933 2007-04-06  Bruno Haible  <bruno@clisp.org>
52934
52935         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
52936         (VASNPRINTF): Use signbit for faster determination whether to print a
52937         minus sign.
52938         * modules/vasnprintf (Files): Remove lib/float+.h.
52939         * modules/fprintf-posix (Depends-on): Add signbit.
52940         * modules/snprintf-posix (Depends-on): Likewise.
52941         * modules/sprintf-posix (Depends-on): Likewise.
52942         * modules/vasnprintf-posix (Depends-on): Likewise.
52943         * modules/vasprintf-posix (Depends-on): Likewise.
52944         * modules/vfprintf-posix (Depends-on): Likewise.
52945         * modules/vsnprintf-posix (Depends-on): Likewise.
52946         * modules/vsprintf-posix (Depends-on): Likewise.
52947
52948 2007-04-06  Bruno Haible  <bruno@clisp.org>
52949
52950         * tests/test-frexp.c (main): Test also the sign bit of zero results.
52951         * tests/test-frexpl.c (main): Likewise.
52952         * tests/test-ldexpl.c (main): Likewise.
52953         * modules/frexp-tests (Depends-on): Add signbit.
52954         * modules/frexpl-tests (Depdends-on): Likewise.
52955         * modules/ldexpl-tests (Depdends-on): Likewise.
52956
52957 2007-04-06  Bruno Haible  <bruno@clisp.org>
52958
52959         * modules/signbit-tests: New file.
52960         * tests/test-signbit.c: New file.
52961
52962         * modules/signbit: New file.
52963         * lib/signbitf.c: New file.
52964         * lib/signbitd.c: New file.
52965         * lib/signbitl.c: New file.
52966         * m4/signbit.m4: New file.
52967         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
52968         (signbit): New macro.
52969         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
52970         REPLACE_SIGNBIT.
52971         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
52972         REPLACE_FREXPL into math.h.
52973
52974 2007-04-06  Bruno Haible  <bruno@clisp.org>
52975
52976         * modules/isnanf-nolibm-tests: New file.
52977         * tests/test-isnanf.c: New file.
52978
52979         * modules/isnanf-nolibm: New file.
52980         * lib/isnanf.h: New file.
52981         * lib/isnanf.c: New file.
52982         * lib/isnan.c: Consider the USE_FLOAT macro.
52983         * m4/isnanf.m4: New file.
52984
52985 2007-04-06  Bruno Haible  <bruno@clisp.org>
52986
52987         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
52988         (Link): New section.
52989
52990         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
52991
52992 2007-04-06  Bruno Haible  <bruno@clisp.org>
52993
52994         Assume the 'long double' type.
52995         * m4/longdouble.m4: Remove file.
52996         * config/srclist.txt: Don't mention longdouble.m4.
52997         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
52998         * lib/float+.h: Likewise.
52999         * lib/frexp.c: Likewise.
53000         * lib/printf-args.h: Likewise.
53001         * lib/printf-args.c: Likewise.
53002         * lib/printf-frexp.c: Likewise.
53003         * lib/printf-parse.c: Likewise.
53004         * lib/vasnprintf.c: Likewise.
53005         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
53006         * m4/intl.m4: Likewise.
53007         * m4/isnanl.m4: Likewise.
53008         * m4/printf.m4: Likewise.
53009         * m4/printf-frexpl.m4: Likewise.
53010         * m4/vasnprintf.m4: Likewise.
53011         * modules/allocsa (Files): Remove m4/longdouble.m4.
53012         * modules/gettext (Files): Likewise.
53013         * modules/relocatable-prog-wrapper (Files): Likewise.
53014         * modules/vasnprintf (Files): Likewise.
53015         * modules/isnanl (Files): Likewise.
53016         (Include): Simplify.
53017         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
53018         (Include): Simplify.
53019         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
53020         (Include): Simplify.
53021         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
53022         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53023         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
53024         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53025         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
53026         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53027         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
53028         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53029         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
53030         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53031         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
53032         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53033         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
53034         * tests/test-isnanl.c: Likewise.
53035         * tests/test-snprintf-posix.h: Likewise.
53036         * tests/test-sprintf-posix.h: Likewise.
53037         * tests/test-vasnprintf-posix.c: Likewise.
53038         * tests/test-vasnprintf-posix2.c: Likewise.
53039         * tests/test-vasprintf-posix.c: Likewise.
53040
53041 2007-04-06  Bruno Haible  <bruno@clisp.org>
53042
53043         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
53044         * lib/math_.h [__DECC]: Include the overridden include file through
53045         #include_next, outside the double-inclusion guard.
53046         * lib/stdio_.h [__DECC]: Likewise.
53047         * lib/stdlib_.h [__DECC]: Likewise.
53048         * lib/string_.h [__DECC]: Likewise.
53049         * lib/time_.h [__DECC]: Likewise.
53050         * lib/wchar_.h [__DECC]: Likewise.
53051         * lib/wctype_.h [__DECC]: Likewise.
53052         * lib/inttypes_.h [__DECC]: Likewise.
53053         Reported by Albert Chin <china@thewrittenword.com> in
53054         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
53055
53056 2007-04-04  Eric Blake  <ebb9@byu.net>
53057
53058         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
53059         1.5.x.
53060
53061 2007-04-04  Bruno Haible  <bruno@clisp.org>
53062
53063         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
53064         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
53065
53066 2007-04-04  Bruno Haible  <bruno@clisp.org>
53067
53068         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
53069         results for "%010a" of Infinity and NaN.
53070         * tests/test-vasprintf-posix.c (test_function): Likewise.
53071         * tests/test-snprintf-posix.h (test_function): Likewise.
53072         * tests/test-sprintf-posix.h (test_function): Likewise.
53073         * tests/test-fprintf-posix.h (test_function): Remove these tests.
53074         * tests/test-printf-posix.h (test_function): Likewise.
53075         * tests/test-fprintf-posix.out: Update.
53076         Needed for FreeBSD 6.1.
53077
53078 2007-04-04  Bruno Haible  <bruno@clisp.org>
53079
53080         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
53081         directly used by the gnulib modules nor by gnulib-tool.
53082
53083 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
53084
53085         * DEPENDENCIES: Give overall description of version dependency
53086         desirability.  Use more-typical names for apps.
53087         Add shell, coreutils, diffutils, grep, tar, gzip.
53088
53089 2007-04-04  Simon Josefsson  <simon@josefsson.org>
53090
53091         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
53092
53093 2007-04-04  Karl Berry  <karl@gnu.org>
53094
53095         * MODULES.html.sh (func_module): missing '.
53096
53097 2007-04-03  Bruno Haible  <bruno@clisp.org>
53098
53099         * modules/argmatch-tests (Makefile.am): New variable
53100         test_argmatch_LDADD.
53101         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
53102         * modules/array-list-tests (Makefile.am): New variable
53103         test_array_list_LDADD.
53104         * modules/array-oset-tests (Makefile.am): New variable
53105         test_array_oset_LDADD.
53106         * modules/avltree-list-tests (Makefile.am): New variable
53107         test_avltree_list_LDADD.
53108         * modules/avltree-oset-tests (Makefile.am): New variable
53109         test_avltree_oset_LDADD.
53110         * modules/avltreehash-list-tests (Makefile.am): New variable
53111         test_avltreehash_list_LDADD.
53112         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
53113         test_canonicalize_lgpl_LDADD.
53114         * modules/carray-list-tests (Makefile.am): New variable
53115         test_carray_list_LDADD.
53116         * modules/dirname-tests (Makefile.am): New variable
53117         test_dirname_LDADD.
53118         * modules/linked-list-tests (Makefile.am): New variable
53119         test_linked_list_LDADD.
53120         * modules/linkedhash-list-tests (Makefile.am): New variable
53121         test_linkedhash_list_LDADD.
53122         * modules/rbtree-list-tests (Makefile.am): New variable
53123         test_rbtree_list_LDADD.
53124         * modules/rbtree-oset-tests (Makefile.am): New variable
53125         test_rbtree_oset_LDADD.
53126         * modules/rbtreehash-list-tests (Makefile.am): New variable
53127         test_rbtreehash_list_LDADD.
53128         * modules/xvasprintf-tests (Makefile.am): New variable
53129         test_xvasprintf_LDADD.
53130         Reported by Eric Blake.
53131
53132 2007-04-03  Eric Blake  <ebb9@byu.net>
53133
53134         * DEPENDENCIES: Weaken m4 requirements.
53135
53136 2007-04-03  Bruno Haible  <bruno@clisp.org>
53137
53138         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
53139         * modules/isnanl-tests (configure.ac): Likewise.
53140
53141 2007-04-03  Ben Pfaff  <blp@gnu.org>
53142
53143         * modules/iconv_open: Add $(srcdir)/ to source directory
53144         references in Makefile fragments that call gperf, to fix VPATH
53145         builds.
53146
53147 2007-04-03  Bruno Haible  <bruno@clisp.org>
53148
53149         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
53150         * lib/ldexpl.c: Undo last change.
53151
53152 2007-04-03  Bruno Haible  <bruno@clisp.org>
53153
53154         * modules/printf-frexpl (Depends-on): Undo last change.
53155         (Files): Add m4/ldexpl.m4.
53156
53157 2007-04-03  Bruno Haible  <bruno@clisp.org>
53158
53159         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
53160         * modules/isnanl (Link): New section.
53161
53162         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
53163         * modules/frexp (Link): New section.
53164
53165         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
53166         * modules/frexpl (Link): New section.
53167
53168         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
53169         * modules/ldexpl (Link): New section.
53170
53171 2007-04-03  Bruno Haible  <bruno@clisp.org>
53172
53173         * modules/TEMPLATE-EXTENDED: New file.
53174         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
53175
53176 2007-04-03  Bruno Haible  <bruno@clisp.org>
53177
53178         * DEPENDENCIES: New file.
53179         Suggested by Simon Josefsson.
53180
53181 2007-04-03  Bruno Haible  <bruno@clisp.org>
53182
53183         * doc/gnulib.texi: Escape @.
53184
53185 2007-04-03  James Youngman  <jay@gnu.org>
53186         and Paul Eggert  <eggert@cs.ucla.edu>
53187
53188         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
53189         birthtime on all systems that have birthtime, not just those which
53190         use st_birthtimensec rather than st_birthtim.  Putting zero in
53191         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
53192         that the birth time is not available for files on an NFS mount.
53193
53194 2007-04-03  Simon Josefsson  <simon@josefsson.org>
53195
53196         * modules/memxor: Move back from crypto/, suggested by Bruno.
53197         * modules/crypto/hmac-sha1: Fix memxor dependency.
53198
53199         * modules/crypto/gc: Moved from ../.
53200
53201 2007-04-02  Eric Blake  <ebb9@byu.net>
53202
53203         * lib/ldexpl.c (includes): Avoid libm.
53204
53205         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
53206
53207 2007-04-02  Bruno Haible  <bruno@clisp.org>
53208
53209         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
53210         on IRIX.
53211
53212 2007-04-02  Bruno Haible  <bruno@clisp.org>
53213
53214         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
53215         x86 or x86_64 platforms running MacOS X.
53216         Reported by Ryan Schmidt <@ryandesign.com>.
53217
53218 2007-04-02  Bruno Haible  <bruno@clisp.org>
53219
53220         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
53221         i386.
53222
53223 2007-04-01  Simon Josefsson  <simon@josefsson.org>
53224
53225         * modules/crypto/arcfour: Moved from ../.
53226         * modules/crypto/arcfour-tests: Moved from ../.
53227         * modules/crypto/arctwo: Moved from ../.
53228         * modules/crypto/arctwo-tests: Moved from ../.
53229         * modules/crypto/des: Moved from ../.
53230         * modules/crypto/des-tests: Moved from ../.
53231         * modules/crypto/gc-arcfour: Moved from ../.
53232         * modules/crypto/gc-arcfour-tests: Moved from ../.
53233         * modules/crypto/gc-arctwo: Moved from ../.
53234         * modules/crypto/gc-arctwo-tests: Moved from ../.
53235         * modules/crypto/gc-des: Moved from ../.
53236         * modules/crypto/gc-des-tests: Moved from ../.
53237         * modules/crypto/gc-hmac-md5: Moved from ../.
53238         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
53239         * modules/crypto/gc-hmac-sha1: Moved from ../.
53240         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
53241         * modules/crypto/gc-md2: Moved from ../.
53242         * modules/crypto/gc-md2-tests: Moved from ../.
53243         * modules/crypto/gc-md4: Moved from ../.
53244         * modules/crypto/gc-md4-tests: Moved from ../.
53245         * modules/crypto/gc-md5: Moved from ../.
53246         * modules/crypto/gc-md5-tests: Moved from ../.
53247         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
53248         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
53249         * modules/crypto/gc-random: Moved from ../.
53250         * modules/crypto/gc-rijndael: Moved from ../.
53251         * modules/crypto/gc-rijndael-tests: Moved from ../.
53252         * modules/crypto/gc-sha1: Moved from ../.
53253         * modules/crypto/gc-sha1-tests: Moved from ../.
53254         * modules/crypto/gc-tests: Moved from ../.
53255         * modules/crypto/hmac-md5: Moved from ../.
53256         * modules/crypto/hmac-md5-tests: Moved from ../.
53257         * modules/crypto/hmac-sha1: Moved from ../.
53258         * modules/crypto/hmac-sha1-tests: Moved from ../.
53259         * modules/crypto/md2: Moved from ../.
53260         * modules/crypto/md2-tests: Moved from ../.
53261         * modules/crypto/md4: Moved from ../.
53262         * modules/crypto/md4-tests: Moved from ../.
53263         * modules/crypto/md5: Moved from ../.
53264         * modules/crypto/md5-tests: Moved from ../.
53265         * modules/crypto/memxor: Moved from ../.
53266         * modules/crypto/rijndael: Moved from ../.
53267         * modules/crypto/rijndael-tests: Moved from ../.
53268         * modules/crypto/sha1: Moved from ../.
53269
53270 2007-03-30  James Youngman  <jay@gnu.org>
53271
53272         * tests/test-stat-time.c (prepare_test): use chmod() rather than
53273         rename() to change the ctime of a file (because ctime is unaffected
53274         by rename on jfs2 on AIX 5.1).
53275         (main): Start by doing cleanup, in case a previous run failed leaving
53276         test files behind.
53277
53278 2007-03-31  Bruno Haible  <bruno@clisp.org>
53279
53280         Support old proprietary implementations of iconv.
53281         * modules/iconv_open: New file.
53282         * lib/iconv_.h: New file.
53283         * m4/iconv_h.m4: New file.
53284         * lib/iconv_open.c: New file.
53285         * lib/iconv_open-aix.gperf: New file.
53286         * lib/iconv_open-hpux.gperf: New file.
53287         * lib/iconv_open-irix.gperf: New file.
53288         * lib/iconv_open-osf.gperf: New file.
53289         * m4/iconv_open.m4: New file.
53290         * modules/linebreak (Depends-on): Add iconv_open.
53291         * modules/striconv (Depends-on): Likewise.
53292         * modules/striconveh (Depends-on): Likewise.
53293         * modules/unicodeio (Depends-on): Likewise.
53294         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
53295         (iconv_t)(-1).
53296         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
53297         conversion if cd is (iconv_t)(-1).
53298         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
53299         is not possible.
53300
53301 2007-03-31  Bruno Haible  <bruno@clisp.org>
53302
53303         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
53304         work on Solaris either. Protect also second use of "autodetect_jp".
53305
53306 2007-03-31  Bruno Haible  <bruno@clisp.org>
53307
53308         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
53309         the function is not present.
53310
53311 2007-03-31  Bruno Haible  <bruno@clisp.org>
53312
53313         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
53314         the function is not present.
53315
53316 2007-03-31  Bruno Haible  <bruno@clisp.org>
53317
53318         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
53319         a bug in HP-UX iconv_open().
53320
53321 2007-03-31  Bruno Haible  <bruno@clisp.org>
53322
53323         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
53324         (Mathematics <math.h>): New section, add fpieee.
53325         (Input/output <stdio.h>): Add fseterr.
53326         (Mathematics <math.h>): New section, add printf-frexp.
53327         (Container data structures): Add sublist.
53328         (Core language properties): Add fpucw, inline.
53329         (Functions for greatest-width integer types <inttypes.h>): Add
53330         imaxabs, imaxdiv, inttypes.
53331         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
53332         isnanl-nolibm, ldexp.
53333         (Mathematics <math.h>): New section, add printf-frexpl.
53334         (Support for systems lacking POSIX:2001): Add fprintf-posix,
53335         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
53336         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
53337         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
53338         (Unicode string functions): Add unistr/u*-mbtoucr.
53339         (Java): Add javacomp-script, javaexec-script.
53340         (C#): Add csharpcomp-script, csharpexec-script.
53341         (Support for building libraries and executables): Add havelib,
53342         relocatable-*.
53343         (Support for maintaining and releasing projects): Renamed from
53344         'Support for maintaining and release projects'. Add announce-gen.
53345
53346 2007-03-31  Bruno Haible  <bruno@clisp.org>
53347
53348         * README: Talk primarily about git.
53349         (git and CVS): Renamed from CVS.
53350         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
53351         gnulib is available through git.
53352         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
53353
53354 2007-03-30  Bruno Haible  <bruno@clisp.org>
53355
53356         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
53357         * lib/poll_.h: Likewise.
53358         * lib/stat_.h: Likewise.
53359         * lib/sys_time_.h: Likewise.
53360         * lib/sysexit_.h: Likewise.
53361         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
53362         * lib/stdbool_.h: Likewise.
53363         * lib/byteswap_.h: Add double-inclusion guard.
53364
53365 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
53366
53367         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
53368
53369 2007-03-30  Karl Berry  <karl@gnu.org>
53370
53371         * config/srclist-update: double space after USA in the license
53372         substitution, since that's how it's usually (?) written.
53373
53374 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
53375
53376         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
53377         reported by Bruno Haible.
53378
53379 2007-03-29  Bruno Haible  <bruno@clisp.org>
53380
53381         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
53382         a bug in AIX iconv().
53383
53384 2007-03-29  Bruno Haible  <bruno@clisp.org>
53385
53386         * modules/ldexpl-tests: New file.
53387         * tests/test-ldexpl.c: New file.
53388
53389 2007-03-29  Bruno Haible  <bruno@clisp.org>
53390
53391         * lib/ldexpl.c: Include fpucw.h.
53392         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
53393         multiplication.
53394         * modules/ldexpl (Depends-on): Add fpucw.
53395
53396 2007-03-29  Bruno Haible  <bruno@clisp.org>
53397
53398         * modules/ldexpl: New file.
53399         * m4/ldexpl.m4: New file.
53400         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
53401         set.
53402         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
53403         REPLACE_LDEXPL.
53404         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
53405         REPLACE_LDEXPL.
53406         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
53407         gl_FUNC_LDEXPL_WORKS.
53408         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
53409         * modules/mathl (Files): Remove lib/ldexpl.c.
53410         (Depends-on): Add ldexpl.
53411
53412 2007-03-29  Bruno Haible  <bruno@clisp.org>
53413
53414         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
53415
53416 2007-03-29  Bruno Haible  <bruno@clisp.org>
53417
53418         * tests/test-striconveh.c (main): Don't assume that a direct conversion
53419         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
53420         and possibly also HP-UX.
53421         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
53422         work on AIX, IRIX, HP-UX, OSF/1.
53423         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
53424         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
53425         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
53426         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
53427         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
53428         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
53429
53430 2007-03-29  Bruno Haible  <bruno@clisp.org>
53431
53432         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
53433
53434 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
53435
53436         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
53437         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
53438
53439 2007-03-29  Eric Blake  <ebb9@byu.net>
53440
53441         * lib/acl-internal.h: Remove redundant include.
53442         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
53443         Cygwin when a file is locked.
53444
53445 2007-03-29  Bruno Haible  <bruno@clisp.org>
53446
53447         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
53448         file.
53449         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
53450
53451 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
53452
53453         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
53454         try to remove a parent directory if the child couldn't be removed
53455         (except for the first rmdir, which could fail because the child
53456         doesn't exist).  Problem reported by Jeff Blaine in
53457         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
53458
53459 2007-03-28  Bruno Haible  <bruno@clisp.org>
53460
53461         * lib/striconveh.c (utf8conv_carefully): New function.
53462         (mem_cd_iconveh_internal): Invoke it.
53463
53464 2007-03-28  Bruno Haible  <bruno@clisp.org>
53465
53466         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
53467         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
53468         input.
53469         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
53470         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
53471         unistr/u8-uctomb.
53472
53473 2007-03-28  Bruno Haible  <bruno@clisp.org>
53474
53475         * modules/unistr/u8-mbtoucr: New file.
53476         * lib/unistr/u8-mbtoucr.c: New file.
53477         * modules/unistr/u16-mbtoucr: New file.
53478         * lib/unistr/u16-mbtoucr.c: New file.
53479         * modules/unistr/u16-mbtoucr: New file.
53480         * lib/unistr/u16-mbtoucr.c: New file.
53481         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
53482
53483 2007-03-27  Simon Josefsson  <simon@josefsson.org>
53484             Bruno Haible  <bruno@clisp.org>
53485
53486         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
53487         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
53488         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
53489
53490         * m4/stdio_h.m4: Add stubs for vasprintf too.
53491
53492         * modules/stdio: Support vasprintf in sed command.
53493
53494         * modules/vasprintf: Depend on stdio for prototypes.  Remove
53495         vasprintf.h.  Add stdio module indicator.
53496
53497         * lib/stdio_.h: Declare asprintf and vasprintf, based on
53498         vasprintf.h.
53499
53500         * lib/vasprintf.h: File removed.
53501
53502         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
53503         * lib/vasprintf.c: Ditto.
53504         * lib/xvasprintf.c: Ditto.
53505         * tests/test-vasprintf-posix.c: Ditto.
53506         * tests/test-vasprintf.c: Ditto.
53507
53508 2007-03-27  Bruno Haible  <bruno@clisp.org>
53509
53510         Make vasnprintf multithread-safe.
53511         * lib/vasnprintf.c (decimal_point_char): New function.
53512         (VASNPRINTF): Use it.
53513         Suggested by Simon Josefsson.
53514
53515 2007-03-27  Eric Blake  <ebb9@byu.net>
53516
53517         Support sub-second birthtime on cygwin.
53518         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
53519         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
53520         (get_stat_birthtime): Also work with st_birthtim.
53521
53522 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
53523
53524         * lib/stat-time.h (USE_BIRTHTIME): Remove.
53525         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
53526         (get_stat_birthtime_ns): Do not try to use "spare" fields.
53527         (get_stat_birthtime_ns): Simplify compile-time tests.
53528         (get_stat_birthtime): Change the API to look like
53529         get_stat_mtime etc., except return a negative tv_nsec on error.
53530         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
53531         Don't check for "spare" fields.
53532         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
53533         or for struct stat.st_birthtime, as these tests aren't used.
53534         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
53535
53536 2007-03-27  Bruno Haible  <bruno@clisp.org>
53537
53538         * lib/stat-time.h: Include <sys/stat.h>.
53539
53540 2007-03-27  James Youngman  <jay@gnu.org>
53541
53542         * lib/stat-time.h (get_stat_birthtime): New function for
53543           retrieving st_birthtime as provided by UFS2 (hence *BSD).
53544         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
53545           and its variants.
53546         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
53547         * modules/stat-time-test: New file.
53548         * tests/test-stat-time.c: New test, devised by Bruno Haible.
53549
53550 2007-03-26  Bruno Haible  <bruno@clisp.org>
53551
53552         Better support of signalling NaNs.
53553         * lib/atanl.c: Include isnanl.h.
53554         (atanl): Perform test for NaN at the beginning of the function and
53555         through a call to isnanl.
53556         * lib/cosl.c: Include isnanl.h.
53557         (cosl): Perform test for NaN at the beginning of the function and
53558         through a call to isnanl.
53559         * lib/ldexpl.c: Include isnanl.h.
53560         (ldexpl): Perform test for NaN through a call to isnanl.
53561         * lib/logl.c: Include isnanl.h.
53562         (logl): Perform test for NaN at the beginning of the function and
53563         through a call to isnanl.
53564         * lib/sinl.c: Include isnanl.h.
53565         (sinl): Perform test for NaN at the beginning of the function and
53566         through a call to isnanl.
53567         * lib/sqrtl.c: Include isnanl.h.
53568         (sqrtl): Perform test for NaN at the beginning of the function and
53569         through a call to isnanl.
53570         * lib/tanl.c: Include isnanl.h.
53571         (tanl): Perform test for NaN at the beginning of the function and
53572         through a call to isnanl.
53573         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
53574         * modules/mathl (Depends-on): Add isnanl.
53575
53576 2007-03-26  Eric Blake  <ebb9@byu.net>
53577
53578         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
53579         regression in logic sense of previous patch.
53580
53581 2007-03-26  Bruno Haible  <bruno@clisp.org>
53582
53583         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
53584         unportable shell command "if ! ...".
53585         Reported by Ralf Wildenhues.
53586
53587 2007-03-25  Bruno Haible  <bruno@clisp.org>
53588
53589         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
53590         <sysexits.h> file, and only add EX_CONFIG.
53591         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
53592         absolute file name and whether it is sufficient. Substitute also
53593         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
53594         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
53595         ABSOLUTE_SYSEXITS_H into sysexits.h.
53596
53597 2007-03-25  Bruno Haible  <bruno@clisp.org>
53598
53599         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
53600         hints is NULL.
53601
53602 2007-03-25  Bruno Haible  <bruno@clisp.org>
53603
53604         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
53605         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
53606
53607 2007-03-25  Bruno Haible  <bruno@clisp.org>
53608
53609         * lib/vasnprintf.c: Include langinfo.h.
53610         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
53611         multithread-safe.
53612         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
53613         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
53614         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53615         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53616         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53617         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53618         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53619         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
53620         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53621         Reported by Simon Josefsson.
53622
53623 2007-03-25  Bruno Haible  <bruno@clisp.org>
53624
53625         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
53626         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
53627         * modules/vasnprintf (Depends-on): Add stdint.
53628
53629 2007-03-25  Bruno Haible  <bruno@clisp.org>
53630
53631         * modules/fpieee: New file.
53632         * m4/fpieee.m4: New file.
53633         * modules/isnan-nolibm (Depends-on): Add fpieee.
53634         * modules/isnanl-nolibm (Depends-on): Add fpieee.
53635         * modules/isnanl (Depends-on): Add fpieee.
53636
53637 2007-03-25  Bruno Haible  <bruno@clisp.org>
53638
53639         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
53640
53641 2007-03-25  Bruno Haible  <bruno@clisp.org>
53642
53643         Avoid test failures on IRIX 6.5.
53644         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
53645         (main): Use it.
53646         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
53647         macros.
53648         (main): Use them.
53649
53650 2007-03-25  Bruno Haible  <bruno@clisp.org>
53651
53652         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
53653         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
53654         exists but doesn't work.
53655         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
53656         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
53657         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
53658         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
53659         math.h.
53660
53661 2007-03-25  Bruno Haible  <bruno@clisp.org>
53662
53663         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
53664         returns inf. Needed on IRIX 6.5.
53665
53666 2007-03-25  Bruno Haible  <bruno@clisp.org>
53667
53668         * tests/test-frexpl.c: Include isnanl-nolibm.h.
53669         (main): Use isnanl instead of x != x idiom.
53670         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
53671
53672         * tests/test-frexp.c: Include isnan.h.
53673         (main): Use isnan instead of x != x idiom.
53674         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
53675
53676 2007-03-25  Bruno Haible  <bruno@clisp.org>
53677
53678         * tests/test-frexp.c (NaN): New function/macro.
53679         (main): Use it instead of 0.0 / 0.0.
53680         * tests/test-isnan.c (NaN): New function/macro.
53681         (main): Use it instead of 0.0 / 0.0.
53682         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
53683         (test_function): Use it instead of 0.0 / 0.0.
53684         * tests/test-vasprintf-posix.c (NaN): New function/macro.
53685         (test_function): Use it instead of 0.0 / 0.0.
53686         * tests/test-snprintf-posix.h (NaN): New function/macro.
53687         (test_function): Use it instead of 0.0 / 0.0.
53688         * tests/test-sprintf-posix.h (NaN): New function/macro.
53689         (test_function): Use it instead of 0.0 / 0.0.
53690         * tests/test-fprintf-posix.h (NaN): New function/macro.
53691         (test_function): Use it instead of 0.0 / 0.0.
53692         * tests/test-printf-posix.h (NaN): New function/macro.
53693         (test_function): Use it instead of 0.0 / 0.0.
53694
53695         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
53696
53697 2007-03-25  Bruno Haible  <bruno@clisp.org>
53698
53699         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
53700
53701 2007-03-25  Bruno Haible  <bruno@clisp.org>
53702
53703         * lib/regexec.c (merge_state_with_log): Make static.
53704
53705 2007-03-25  Bruno Haible  <bruno@clisp.org>
53706
53707         * lib/trigl.c (kernel_rem_pio2): Make static.
53708
53709 2007-03-25  Bruno Haible  <bruno@clisp.org>
53710
53711         * lib/sincosl.c (sincosl_table): Make static.
53712
53713 2007-03-25  Bruno Haible  <bruno@clisp.org>
53714
53715         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
53716         if the compiler does not support C99.
53717
53718 2007-03-25  Bruno Haible  <bruno@clisp.org>
53719
53720         * modules/time (Makefile.am): Ensure all rule action lines start with a
53721         tab.
53722
53723 2007-03-24  Bruno Haible  <bruno@clisp.org>
53724
53725         * modules/tsearch-tests: New file.
53726         * tests/test-tsearch.sh: New file.
53727         * tests/test-tsearch.c: New file, mostly copied from glibc.
53728
53729         * modules/search-tests: New file.
53730         * tests/test-search.c: New file.
53731
53732         * modules/search: New file.
53733         * lib/search_.h: New file, incorporating lib/tsearch.h.
53734         * m4/search_h.m4: New file.
53735         * lib/tsearch.h: Remove file.
53736         * lib/tsearch.c: Include search.h instead of tsearch.h.
53737         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
53738         HAVE_TSEARCH.
53739         * modules/tsearch (Files): Remove lib/tsearch.h.
53740         (Depends-on): Add search.
53741         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
53742         (Include): Change tsearch.h into search.h.
53743
53744 2007-03-24  Bruno Haible  <bruno@clisp.org>
53745
53746         * modules/fpucw: New file.
53747         * lib/fpucw.h: New file.
53748         * lib/frexp.c: Include fpucw.h.
53749         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
53750         (FUNC): Use them.
53751         * lib/printf-frexp.c: Include fpucw.h.
53752         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
53753         (FUNC): Use them.
53754         * lib/vasnprintf.c: Include fpucw.h.
53755         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
53756         'long double' calculations.
53757         * tests/test-frexpl.c: Include fpucw.h.
53758         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
53759         * tests/test-printf-frexpl.c: Include fpucw.h.
53760         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
53761         * modules/frexpl (Depends-on): Add fpucw.
53762         * modules/printf-frexpl (Depends-on): Likewise.
53763         * modules/fprintf-posix (Depends-on): Likewise.
53764         * modules/snprintf-posix (Depends-on): Likewise.
53765         * modules/sprintf-posix (Depends-on): Likewise.
53766         * modules/vasnprintf-posix (Depends-on): Likewise.
53767         * modules/vasprintf-posix (Depends-on): Likewise.
53768         * modules/vfprintf-posix (Depends-on): Likewise.
53769         * modules/vsnprintf-posix (Depends-on): Likewise.
53770         * modules/vsprintf-posix (Depends-on): Likewise.
53771         * modules/frexpl-tests (Depends-on): Likewise.
53772         * modules/printf-frexpl-tests (Depends-on): Likewise.
53773
53774 2007-03-24  Bruno Haible  <bruno@clisp.org>
53775
53776         * lib/float+.h: New file.
53777         * lib/isnan.c: Include float+.h.
53778         (SIZE): New macro.
53779         (FUNC): Compare only SIZE bytes of the value.
53780         * lib/vasnprintf.c: Include float+.h.
53781         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
53782         SIZEOF_LDBL or SIZEOF_DBL bytes.
53783         * modules/isnan-nolibm (Files): Add lib/float+.h.
53784         * modules/isnanl-nolibm (Files): Add lib/float+.h.
53785         * modules/isnanl (Files): Add lib/float+.h.
53786         * modules/vasnprintf (Files): Add lib/float+.h.
53787
53788 2007-03-24  Bruno Haible  <bruno@clisp.org>
53789
53790         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
53791         include isnanl-nolibm.h.
53792
53793 2007-03-24  Bruno Haible  <bruno@clisp.org>
53794
53795         * tests/test-read-file.c (main): Don't produce spurious output for
53796         expected situations. Make the test fail if it encountered unexpected
53797         results.
53798
53799 2007-03-24  Bruno Haible  <bruno@clisp.org>
53800
53801         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
53802         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
53803
53804 2007-03-24  Bruno Haible  <bruno@clisp.org>
53805
53806         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
53807
53808 2007-03-24  Bruno Haible  <bruno@clisp.org>
53809
53810         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
53811         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
53812
53813         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
53814         * modules/utf8-ucs4: Turn into a symbolic link to module
53815         unistr/u8-mbtouc.
53816
53817         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
53818         utf8-ucs4-unsafe.
53819         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
53820         unistr/u8-mbtouc-unsafe.
53821
53822         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
53823         * modules/utf16-ucs4: Turn into a symbolic link to module
53824         unistr/u16-mbtouc.
53825
53826         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
53827         utf16-ucs4-unsafe.
53828         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
53829         unistr/u16-mbtouc-unsafe.
53830
53831         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
53832         * modules/ucs4-utf8: Turn into a symbolic link to module
53833         unistr/u8-ubtomb.
53834
53835         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
53836         * modules/ucs4-utf16: Turn into a symbolic link to module
53837         unistr/u16-ubtomb.
53838
53839 2007-03-24  Bruno Haible  <bruno@clisp.org>
53840
53841         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
53842         Enable the function only if HAVE_INLINE.
53843         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
53844         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
53845         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
53846         Enable the function only if HAVE_INLINE.
53847         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
53848         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
53849         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
53850         Enable the function only if HAVE_INLINE.
53851         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
53852         Enable the function only if HAVE_INLINE.
53853         * modules/utf8-ucs4: Update.
53854         * modules/utf8-ucs4-unsafe: Update.
53855         * modules/utf16-ucs4: Update.
53856         * modules/utf16-ucs4-unsafe: Update.
53857         * modules/ucs4-utf8: Update.
53858         * modules/ucs4-utf16: Update.
53859
53860 2007-03-24  Bruno Haible  <bruno@clisp.org>
53861
53862         * lib/utf8-ucs4.h: Remove file.
53863         * lib/utf8-ucs4-unsafe.h: Remove file.
53864         * lib/utf16-ucs4.h: Remove file.
53865         * lib/utf16-ucs4-unsafe.h: Remove file.
53866         * lib/ucs4-utf8.h: Remove file.
53867         * lib/ucs4-utf16.h: Remove file.
53868         * lib/unistr.h: Include their previous contents.
53869         * m4/utf-ucs4.m4: Remove file.
53870         * m4/ucs4-utf.m4: Remove file.
53871         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
53872         (Depends-on): Add unistr/base.
53873         (configure.ac): Remove gl_UTF_UCS4.
53874         (Makefile.am): Update.
53875         (Include): Change to unistr.h.
53876         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
53877         (Depends-on): Add unistr/base.
53878         (configure.ac): Remove gl_UTF_UCS4.
53879         (Makefile.am): Update.
53880         (Include): Change to unistr.h.
53881         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
53882         (Depends-on): Add unistr/base.
53883         (configure.ac): Remove gl_UTF_UCS4.
53884         (Makefile.am): Update.
53885         (Include): Change to unistr.h.
53886         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
53887         (Depends-on): Add unistr/base.
53888         (configure.ac): Remove gl_UTF_UCS4.
53889         (Makefile.am): Update.
53890         (Include): Change to unistr.h.
53891         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
53892         (Depends-on): Add unistr/base.
53893         (configure.ac): Remove gl_UCS4_UTF.
53894         (Makefile.am): Update.
53895         (Include): Change to unistr.h.
53896         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
53897         (Depends-on): Add unistr/base.
53898         (configure.ac): Remove gl_UCS4_UTF.
53899         (Makefile.am): Update.
53900         (Include): Change to unistr.h.
53901         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
53902         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
53903         utf8-ucs4-unsafe.h.
53904         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
53905         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
53906         utf16-ucs4-unsafe.h.
53907         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
53908         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
53909         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
53910         * lib/unistr/u8-strchr.c: Likewise.
53911         * lib/unistr/u8-strrchr.c: Likewise.
53912         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
53913         * lib/unistr/u16-strchr.c: Likewise.
53914         * lib/unistr/u16-strrchr.c: Likewise.
53915         * lib/striconveh.c: Update.
53916         * lib/linebreak.c: Update.
53917
53918 2007-03-24  Bruno Haible  <bruno@clisp.org>
53919
53920         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
53921         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
53922
53923 2007-03-22  Bruno Haible  <bruno@clisp.org>
53924
53925         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
53926
53927 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
53928
53929         * MODULES.html.sh (File system functions): New module write-any-file.
53930         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
53931         * m4/write-any-file.m4: New files.
53932
53933 2007-03-23  Eric Blake  <ebb9@byu.net>
53934
53935         * gnulib-tool: Rearrange space-tab sequences, since some editors
53936         like to eat them.
53937
53938 2007-03-23  Eric Blake  <ebb9@byu.net>
53939
53940         * lib/version-etc.c (version_etc_va): Update license wording to
53941         be more concise.  Recommended by Richard Stallman.
53942
53943 2007-03-22  Bruno Haible  <bruno@clisp.org>
53944
53945         * lib/poll.c (MSG_PEEK): New fallback definition.
53946
53947 2007-03-22  Bruno Haible  <bruno@clisp.org>
53948
53949         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
53950         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
53951         (main): Update.
53952         Fixes a compilation error on BeOS.
53953
53954 2007-03-22  Bruno Haible  <bruno@clisp.org>
53955
53956         * modules/frexpl-tests: New file.
53957         * tests/test-frexpl.c: New file.
53958
53959         * modules/frexpl: New file.
53960         * m4/frexpl.m4: New file.
53961         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
53962         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
53963         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
53964         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
53965         (Depends-on): Add frexpl. Remove isnanl-nolibm.
53966         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
53967
53968 2007-03-22  Bruno Haible  <bruno@clisp.org>
53969
53970         * lib/frexpl.c: Share code with lib/frexp.c.
53971         * modules/mathl (Files): Add lib/frexp.c.
53972         (Depends-on): Add isnanl-nolibm.
53973
53974 2007-03-22  Bruno Haible  <bruno@clisp.org>
53975
53976         * modules/printf-frexp (Files): Add m4/frexp.m4.
53977         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
53978         only if the found frexp function actually works.
53979
53980 2007-03-22  Bruno Haible  <bruno@clisp.org>
53981
53982         * lib/frexp.c: Remove older implementation that uses divisions.
53983
53984 2007-03-21  Bruno Haible  <bruno@clisp.org>
53985
53986         * modules/frexp-tests: New file.
53987         * tests/test-frexp.c: New file.
53988
53989         * modules/frexp: New file.
53990         * lib/frexp.c: New file.
53991         * m4/frexp.m4: New file.
53992         * lib/math_.h (frexp): New declaration.
53993         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
53994         REPLACE_FREXP.
53995         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
53996
53997 2007-03-21  Bruno Haible  <bruno@clisp.org>
53998
53999         * modules/isnanl-tests: New file.
54000         * tests/test-isnanl.c: New file.
54001
54002         * modules/isnanl: New file.
54003         * lib/isnanl.h: New file.
54004         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
54005         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
54006         gl_FUNC_ISNANL_WORKS.
54007         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
54008         New macros.
54009
54010 2007-03-21  Bruno Haible  <bruno@clisp.org>
54011
54012         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
54013         lib/isnanl.h.
54014         (Include): Update.
54015         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
54016         * lib/vasnprintf.c: Update.
54017         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
54018         tests/test-isnanl.h, remove tests/test-isnanl.c.
54019         (Makefile.am): Update.
54020         * tests/test-isnanl-nolibm.c: New file.
54021         * tests/test-isnanl.h: New file.
54022         * tests/test-isnanl.c: Remove file.
54023
54024 2007-03-21  Jim Meyering  <jim@meyering.net>
54025
54026         When trying to open ".", treat ESTALE like EACCES.
54027         * lib/savewd.c (savewd_save): Resort to forking not just upon
54028         failure with EACCES, but also when errno is ESTALE.
54029
54030 2007-03-20  Bruno Haible  <bruno@clisp.org>
54031
54032         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
54033         Needed on AIX 5.1. Reported by Matthew Woehlke.
54034
54035 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
54036
54037         Suggestions by Bruno Haible:
54038         * lib/acl-internal.h: Include "gettext.h" rather than rolling
54039         our own.
54040         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
54041         * modules/acl (Depends-on): Add gettext.
54042
54043 2007-03-19  Bruno Haible  <bruno@clisp.org>
54044
54045         * modules/iconvme: Remove file.
54046         * lib/iconvme.h: Remove file.
54047         * lib/iconvme.c: Remove file.
54048         * m4/iconvme.m4: Remove file.
54049
54050 2007-03-19  Bruno Haible  <bruno@clisp.org>
54051
54052         * doc/relocatable-maint.texi: Break long shell script line.
54053         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
54054
54055 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
54056
54057         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
54058         handle file_has_acl.
54059         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
54060         * lib/acl.c: Move header inclusions and related macro defns into
54061         lib/acl-internal.h.
54062         (S_ISLNK): Remove defn, since that's now done for us.
54063         (file_has_acl): Move to lib/file-has-acl.c.
54064         Call acl_trivial if available.  This is the crucial part of the fix.
54065         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
54066         shared within the library.  Rewrite a bit, partly to make it compatible
54067         with the GNU coding style.
54068         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
54069         Remove unnecessary double-quotes.
54070         Don't test for acl_to_text; the build will catch that.
54071         Replace acl_entries if it doesn't exist and it is needed.
54072         Check for -lsec and acl_trivial (as used on Solaris 10).
54073         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
54074         lib/file-has-acl.c.
54075         (Depends-on): Add sys_stat, for S_ISLNK.
54076
54077 2007-03-19  Ben Pfaff  <blp@gnu.org>
54078
54079         * doc/gnulib.texi: Fix typos.
54080         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
54081
54082 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
54083
54084         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
54085         If size is zero here, buf must be zero.
54086
54087 2007-03-19  Simon Josefsson  <simon@josefsson.org>
54088
54089         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
54090         <bruno@clisp.org>.
54091
54092 2007-03-18  Bruno Haible  <bruno@clisp.org>
54093
54094         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
54095         Suggested by Eric Blake.
54096
54097 2007-03-18  Ben Pfaff  <blp@gnu.org>
54098
54099         * doc/relocatable.texi: Recommend using as prefix a directory
54100         that does not exist and will never be created.  Based on
54101         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
54102         and others.
54103
54104 2007-03-17  Bruno Haible  <bruno@clisp.org>
54105
54106         * lib/fchownat.c: Include lchown.h.
54107
54108 2007-03-17  Bruno Haible  <bruno@clisp.org>
54109
54110         Fix endless loop when the given allocated size was > INT_MAX.
54111         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
54112         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
54113         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
54114         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
54115         * lib/sprintf.c (sprintf): Likewise.
54116
54117 2007-03-17  Bruno Haible  <bruno@clisp.org>
54118
54119         * tests/test-argp-2.sh (func_compare): Output a context diff.
54120
54121 2007-03-17  Bruno Haible  <bruno@clisp.org>
54122
54123         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
54124         locale's decimal-point character.
54125
54126 2007-03-17  Bruno Haible  <bruno@clisp.org>
54127
54128         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
54129         before comparing it. Needed because on some platforms (e.g. x86) a
54130         'long double' occupies less bytes than sizeof (long double).
54131
54132 2007-03-17  Bruno Haible  <bruno@clisp.org>
54133
54134         * tests/test-crc.c (main): Make printf statements 64-bit clean.
54135         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
54136         * tests/test-getaddrinfo.c (simple): Likewise.
54137         * tests/test-read-file.c (main): Likewise.
54138
54139 2007-03-17  Bruno Haible  <bruno@clisp.org>
54140
54141         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
54142
54143 2007-03-17  Bruno Haible  <bruno@clisp.org>
54144
54145         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
54146         unused variable.
54147
54148 2007-03-17  Bruno Haible  <bruno@clisp.org>
54149
54150         * tests/test-c-strcasecmp.c: Include c-strcase.h.
54151         * tests/test-c-strncasecmp.c: Likewise.
54152
54153 2007-03-17  Bruno Haible  <bruno@clisp.org>
54154
54155         * modules/stdlib (Depends-on): Add unistd.
54156         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
54157         Needed for MacOS X 10.3.
54158
54159 2007-03-17  Bruno Haible  <bruno@clisp.org>
54160
54161         * lib/unistr/u-strdup.h: Include <stdlib.h>.
54162
54163 2007-03-17  Bruno Haible  <bruno@clisp.org>
54164
54165         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
54166
54167 2007-03-17  Bruno Haible  <bruno@clisp.org>
54168
54169         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
54170         to reflect files copied from gnulib (with or without modifications).
54171         Suggested by Jim Meyering.
54172
54173 2007-03-17  Eric Blake  <ebb9@byu.net>
54174
54175         * NEWS: Document stdlib change from 2007-02-18.
54176
54177 2007-03-17  Jim Meyering  <jim@meyering.net>
54178
54179         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
54180         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
54181         someone uses a name containing shell meta-characters.
54182         Reported by Alfred M. Szmidt.
54183
54184         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
54185
54186 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
54187
54188         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
54189         and copy gettext configuration files only if configure.ac contains
54190         a use of AM_GNU_GETTEXT_VERSION.
54191
54192 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
54193
54194         * build-aux/bootstrap (gnulib_name): New variable.
54195         (gnulib_tool_options): Use it.
54196
54197 2007-03-13  Simon Josefsson  <simon@josefsson.org>
54198
54199         * tests/test-des.c: Use new namespace.
54200
54201 2007-03-15  Bruno Haible  <bruno@clisp.org>
54202
54203         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
54204         Reported by James Youngman <jay@gnu.org>.
54205
54206 2007-03-15  Bruno Haible  <bruno@clisp.org>
54207
54208         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
54209         declared prototype. Needed with cc on OSF/1 5.1.
54210
54211 2007-03-15  Bruno Haible  <bruno@clisp.org>
54212
54213         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
54214         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
54215         (struct gl_list_implementation): Add dispose_fn argument to the
54216         'create_empty', 'create' methods.
54217         (struct gl_list_impl_base): Add field 'dispose_fn'.
54218         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
54219         argument.
54220         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
54221         dispose_fn argument.
54222         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
54223         dispose_fn on the dropped values.
54224         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
54225         dispose_fn argument.
54226         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
54227         dropped values.
54228         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
54229         (gl_tree_remove_node): Call dispose_fn on the dropped value.
54230         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
54231         (gl_tree_remove_node): Call dispose_fn on the dropped value.
54232         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
54233         argument.
54234         (gl_tree_list_free): Call dispose_fn on the dropped values.
54235         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
54236         the dropped values.
54237         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
54238         Add dispose_fn argument.
54239         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
54240         Call dispose_fn on the dropped values.
54241         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
54242         Add dispose_fn argument.
54243         (gl_sublist_create): Initialize the 'dispose_fn' field.
54244         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
54245         * tests/test-array_list.c (main): Update.
54246         * tests/test-carray_list.c (main): Update.
54247         * tests/test-avltree_list.c (main): Update.
54248         * tests/test-rbtree_list.c (main): Update.
54249         * tests/test-avltreehash_list.c (main): Update.
54250         * tests/test-rbtreehash_list.c (main): Update.
54251         * tests/test-linked_list.c (main): Update.
54252         * tests/test-linkedhash_list.c (main): Update.
54253         * tests/test-array_oset.c (main): Update.
54254
54255 2007-03-15  Bruno Haible  <bruno@clisp.org>
54256
54257         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
54258         (gl_oset_create_empty): Add dispose_fn argument.
54259         (struct gl_oset_implementation): Add dispose_fn argument to
54260         'create_empty' method.
54261         (struct gl_oset_impl_base): Add dispose_fn field.
54262         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
54263         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
54264         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
54265         values.
54266         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
54267         (gl_tree_oset_free): Call dispose_fn on the dropped values.
54268         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
54269         dropped value.
54270         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
54271         dropped value.
54272         * tests/test-array_oset.c (main): Update.
54273         * tests/test-avltree_oset.c (main): Update.
54274         * tests/test-rbtree_oset.c (main): Update.
54275         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
54276
54277 2007-03-13  Bruno Haible  <bruno@clisp.org>
54278
54279         * tests/test-stdbool.c (i): Update after last patch.
54280
54281 2007-03-12  Bruno Haible  <bruno@clisp.org>
54282
54283         * lib/quotearg.c: Include <wctype.h> early, before the definition of
54284         the iswprint macro. Needed on Solaris 2.5.1.
54285
54286 2007-03-12  Bruno Haible  <bruno@clisp.org>
54287
54288         * tests/test-printf-frexp.c (main): Declare x as volatile.
54289
54290 2007-03-12  Simon Josefsson  <simon@josefsson.org>
54291
54292         * doc/gnulib.texi (Build robot for gnulib): New section.
54293
54294 2007-03-12  Jim Meyering  <jim@meyering.net>
54295
54296         * build-aux/bootstrap: New file.
54297         * build-aux/bootstrap.conf: New file, from coreutils.
54298
54299 2007-03-11  Bruno Haible  <bruno@clisp.org>
54300
54301         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
54302
54303 2007-03-12  Simon Josefsson  <simon@josefsson.org>
54304
54305         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
54306         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
54307         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
54308
54309 2007-03-11  Bruno Haible  <bruno@clisp.org>
54310
54311         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
54312         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
54313
54314 2007-03-11  Bruno Haible  <bruno@clisp.org>
54315
54316         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
54317         formula. Needed for SunPRO C 5.0.
54318
54319 2007-03-11  Bruno Haible  <bruno@clisp.org>
54320
54321         * modules/long-options (Depends-on): Add getopt.
54322
54323 2007-03-11  Bruno Haible  <bruno@clisp.org>
54324
54325         * modules/modechange (Depends-on): Add stdbool.
54326
54327 2007-03-11  Bruno Haible  <bruno@clisp.org>
54328
54329         * modules/i-ring (Depends-on): Add stdbool.
54330
54331 2007-03-11  Bruno Haible  <bruno@clisp.org>
54332
54333         * modules/gc-des (Depends-on): Add stdbool.
54334
54335 2007-03-11  Bruno Haible  <bruno@clisp.org>
54336
54337         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
54338
54339 2007-03-11  Bruno Haible  <bruno@clisp.org>
54340
54341         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
54342
54343 2007-03-11  Bruno Haible  <bruno@clisp.org>
54344
54345         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
54346
54347 2007-03-11  Bruno Haible  <bruno@clisp.org>
54348
54349         * lib/vasnprintf.c (sprintf): Undefine.
54350
54351 2007-03-11  Bruno Haible  <bruno@clisp.org>
54352
54353         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
54354         initializers in SunPRO C and Compaq C compilers.
54355
54356 2007-03-11  Bruno Haible  <bruno@clisp.org>
54357
54358         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
54359         decrementing code ANSI C compliant.
54360
54361 2007-03-11  Bruno Haible  <bruno@clisp.org>
54362
54363         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
54364         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
54365
54366 2007-03-11  Bruno Haible  <bruno@clisp.org>
54367
54368         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
54369         <stdbool.h> substitute doesn't pass.
54370
54371 2007-03-11  Bruno Haible  <bruno@clisp.org>
54372
54373         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
54374
54375 2007-03-11  Bruno Haible  <bruno@clisp.org>
54376
54377         * gnulib-tool (func_create_megatestdir): Create also an autobuild
54378         script, for submission to autobuild.josefsson.org.
54379
54380 2007-03-10  Bruno Haible  <bruno@clisp.org>
54381
54382         * modules/canonicalize-lgpl-tests: New file.
54383         * tests/test-canonicalize-lgpl.sh: New file.
54384         * tests/test-canonicalize-lgpl.c: New file.
54385
54386         * modules/c-strcase-tests: New file.
54387         * tests/test-c-strcase.sh: New file.
54388         * tests/test-c-strcasecmp.c: New file.
54389         * tests/test-c-strncasecmp.c: New file.
54390
54391         * modules/atexit-tests: New file.
54392         * tests/test-atexit.sh: New file.
54393         * tests/test-atexit.c: New file.
54394
54395 2007-03-10  Bruno Haible  <bruno@clisp.org>
54396
54397         * tests/test-binary-io.sh: Use temporary filenames that are not so
54398         likely to clash with those of other tests (in a parallel make).
54399         * tests/test-binary-io.c: Likewise.
54400
54401 2007-03-10  Bruno Haible  <bruno@clisp.org>
54402
54403         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
54404         fallback; use #error instead.
54405         Suggested by Simon Josefsson.
54406
54407 2007-03-10  Bruno Haible  <bruno@clisp.org>
54408
54409         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
54410         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
54411         first and the last.
54412
54413 2007-03-10  Bruno Haible  <bruno@clisp.org>
54414
54415         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
54416
54417 2007-03-10  Bruno Haible  <bruno@clisp.org>
54418
54419         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
54420         "make distcheck".
54421         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
54422         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
54423         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
54424
54425 2007-03-10  Bruno Haible  <bruno@clisp.org>
54426
54427         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
54428         variable.
54429         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
54430         variable.
54431
54432 2007-03-09  Eric Blake  <ebb9@byu.net>
54433         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
54434
54435         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
54436         types are not being provided by gnulib.
54437         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
54438         types are supported.
54439
54440 2007-03-10  Bruno Haible  <bruno@clisp.org>
54441
54442         * lib/stdio_.h (__attribute__): New macro.
54443         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
54444         vsprintf): Specify __attribute__ __format__ for GCC.
54445         Suggested by Eric Blake.
54446
54447 2007-03-09  Bruno Haible  <bruno@clisp.org>
54448
54449         * modules/printf-posix-tests: New file.
54450         * tests/test-printf-posix.sh: New file.
54451         * tests/test-printf-posix.c: New file.
54452
54453         * modules/printf-posix: New file.
54454         * lib/printf.c: New file.
54455         * m4/printf-posix-rpl.m4: New file.
54456         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
54457         REPLACE_PRINTF.
54458         * lib/stdio_.h (printf): New declaration.
54459         (format, __format__, ____printf____, ____scanf____, ____strftime____,
54460         ____strfmon____): New macros.
54461         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
54462         REPLACE_PRINTF.
54463
54464 2007-03-09  Bruno Haible  <bruno@clisp.org>
54465
54466         * tests/test-vasnprintf-posix2.sh: New file.
54467         * tests/test-vasnprintf-posix2.c: New file.
54468         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
54469         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
54470         (Makefile.am): Activate test-vasnprintf-posix2.sh.
54471
54472         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
54473         a locale dependent decimal point, rather than always '.'.
54474
54475 2007-03-09  Eric Blake  <ebb9@byu.net>
54476
54477         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
54478         spite of platforms like Tandem/NSK that define it to -1.
54479
54480 2007-03-08  Bruno Haible  <bruno@clisp.org>
54481
54482         * modules/vprintf-posix-tests: New file.
54483         * tests/test-vprintf-posix.sh: New file.
54484         * tests/test-vprintf-posix.c: New file.
54485         * tests/test-printf-posix.h: New file.
54486
54487         * modules/vprintf-posix: New file.
54488         * lib/vprintf.c: New file.
54489         * m4/vprintf-posix.m4: New file.
54490         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
54491         REPLACE_VPRINTF.
54492         * lib/stdio_.h (vprintf): New declaration.
54493         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
54494         REPLACE_VPRINTF.
54495
54496 2007-03-08  Bruno Haible  <bruno@clisp.org>
54497
54498         * modules/fprintf-posix-tests: New file.
54499         * tests/test-fprintf-posix.sh: New file.
54500         * tests/test-fprintf-posix.c: New file.
54501
54502         * modules/fprintf-posix: New file.
54503         * lib/fprintf.c: New file.
54504         * m4/fprintf-posix.m4: New file.
54505         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
54506         REPLACE_FPRINTF.
54507         * lib/stdio_.h (fprintf): New declaration.
54508         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
54509         REPLACE_FPRINTF.
54510
54511 2007-03-08  Bruno Haible  <bruno@clisp.org>
54512
54513         * modules/vfprintf-posix-tests: New file.
54514         * tests/test-vfprintf-posix.sh: New file.
54515         * tests/test-vfprintf-posix.c: New file.
54516         * tests/test-fprintf-posix.h: New file.
54517         * tests/test-fprintf-posix.out: New file.
54518
54519         * modules/vfprintf-posix: New file.
54520         * lib/vfprintf.c: New file.
54521         * m4/vfprintf-posix.m4: New file.
54522         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
54523         REPLACE_VFPRINTF.
54524         * lib/stdio_.h (vfprintf): New declaration.
54525         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
54526         REPLACE_VFPRINTF.
54527
54528 2007-03-08  Bruno Haible  <bruno@clisp.org>
54529
54530         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
54531
54532 2007-03-08  Bruno Haible  <bruno@clisp.org>
54533
54534         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
54535         instead of 'expr' invocations.
54536         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54537         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54538         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54539         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54540         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54541         Suggested by Paul Eggert.
54542
54543 2007-03-08  Bruno Haible  <bruno@clisp.org>
54544
54545         * modules/fseterr-tests: New file.
54546         * tests/test-fseterr.c: New file.
54547
54548         * modules/fseterr: New file.
54549         * lib/fseterr.h: New file.
54550         * lib/fseterr.c: New file.
54551
54552 2007-03-08  Bruno Haible  <bruno@clisp.org>
54553
54554         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
54555         * lib/getopt_.h: Likewise.
54556         * lib/mbswidth.h: Likewise.
54557         * lib/setenv.h: Likewise.
54558         * lib/vasnprintf.h: Likewise.
54559         * lib/vasprintf.h: Likewise.
54560         * lib/verror.h: Likewise.
54561         * lib/xsetenv.h: Likewise.
54562         * lib/xvasprintf.h: Likewise.
54563
54564 2007-03-08  Jim Meyering  <jim@meyering.net>
54565
54566         * users.txt: Add parted.
54567
54568         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
54569
54570 2007-03-07  Bruno Haible  <bruno@clisp.org>
54571
54572         * m4/printf.m4: Make the shell script snippets copy&pastable.
54573
54574 2007-03-02  Bruno Haible  <bruno@clisp.org>
54575
54576         * lib/netinet_in_.h: New file.
54577         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
54578         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
54579         * modules/netinet_in (Files): Add lib/netinet_in_.h.
54580         (Depends-on): Add absolute-header.
54581         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
54582         into netinet/in.h.
54583
54584 2007-03-03  Bruno Haible  <bruno@clisp.org>
54585
54586         * lib/sys_select_.h: New file.
54587         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
54588         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
54589         * modules/sys_select (Files): Add lib/sys_select_.h.
54590         (Depends-on): Add absolute-header.
54591         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
54592         into sys/select.h.
54593
54594 2007-03-02  Bruno Haible  <bruno@clisp.org>
54595
54596         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
54597         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
54598         values.
54599         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
54600         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
54601         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
54602         * modules/sys_socket (Depends-on): Add absolute-header.
54603         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
54604         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
54605         (Include): Remove requirement of inclusion of <sys/types.h>.
54606
54607 2007-03-02  Bruno Haible  <bruno@clisp.org>
54608
54609         * lib/byteswap_.h (bswap_32): Fix formula.
54610
54611 2007-03-06  Bruno Haible  <bruno@clisp.org>
54612
54613         * modules/sprintf-posix-tests: New file.
54614         * tests/test-sprintf-posix.c: New file.
54615
54616         * modules/sprintf-posix: New file.
54617         * lib/sprintf.c: New file.
54618         * m4/sprintf-posix.m4: New file.
54619         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
54620         REPLACE_SPRINTF.
54621         * lib/stdio_.h (sprintf): New declaration.
54622         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
54623         REPLACE_SPRINTF.
54624
54625 2007-03-06  Bruno Haible  <bruno@clisp.org>
54626
54627         * modules/vsprintf-posix-tests: New file.
54628         * tests/test-vsprintf-posix.c: New file.
54629         * tests/test-sprintf-posix.h: New file.
54630
54631         * modules/vsprintf-posix: New file.
54632         * lib/vsprintf.c: New file.
54633         * m4/vsprintf-posix.m4: New file.
54634         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
54635         REPLACE_VSPRINTF.
54636         * lib/stdio_.h (vsprintf): New declaration.
54637         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
54638         REPLACE_VSPRINTF.
54639
54640 2007-03-06  Bruno Haible  <bruno@clisp.org>
54641
54642         * modules/vsnprintf (Depend-on): Remove minmax.
54643
54644 2007-03-06  Bruno Haible  <bruno@clisp.org>
54645
54646         * modules/snprintf-posix-tests: New file.
54647         * tests/test-snprintf-posix.c: New file.
54648
54649         * modules/snprintf-posix: New file.
54650         * m4/snprintf-posix.m4: New file.
54651         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
54652         gl_FUNC_SNPRINTF.
54653         (gl_FUNC_SNPRINTF): Invoke it.
54654         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
54655         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
54656         is set.
54657         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
54658
54659 2007-03-06  Bruno Haible  <bruno@clisp.org>
54660
54661         * modules/vsnprintf-posix-tests: New file.
54662         * tests/test-vsnprintf-posix.c: New file.
54663         * tests/test-snprintf-posix.h: New file.
54664
54665         * modules/vsnprintf-posix: New file.
54666         * m4/vsnprintf-posix.m4: New file.
54667         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
54668         gl_FUNC_VSNPRINTF.
54669         (gl_FUNC_VSNPRINTF): Invoke it.
54670         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
54671         * lib/stdio_.h (vsnprintf): Define as a replacement if
54672         REPLACE_VSNPRINTF is set.
54673         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
54674
54675 2007-03-06  Bruno Haible  <bruno@clisp.org>
54676
54677         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
54678         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
54679
54680 2007-03-06  Bruno Haible  <bruno@clisp.org>
54681
54682         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
54683         (asinl): Declare also if HAVE_DECL_ASINL is set.
54684         (atanl): Declare also if HAVE_DECL_ATANL is set.
54685         (ceill): Declare also if HAVE_DECL_CEILL is set.
54686         (cosl): Declare also if HAVE_DECL_COSL is set.
54687         (expl): Declare also if HAVE_DECL_EXPL is set.
54688         (floorl): Declare also if HAVE_DECL_FLOORL is set.
54689         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
54690         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
54691         (logl): Declare also if HAVE_DECL_LOGL is set.
54692         (sinl): Declare also if HAVE_DECL_SINL is set.
54693         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
54694         (tanl): Declare also if HAVE_DECL_TANL is set.
54695         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
54696         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
54697         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
54698         declaration of frexpl, ldexpl.
54699         * modules/printf-frexpl (Depends-on): Add math.
54700         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
54701
54702 2007-03-05  Bruno Haible  <bruno@clisp.org>
54703
54704         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
54705         frexpl and ldexpl are declared.
54706         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
54707
54708 2007-03-05  Bruno Haible  <bruno@clisp.org>
54709
54710         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
54711         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
54712
54713 2007-03-05  Bruno Haible  <bruno@clisp.org>
54714
54715         * lib/stdio_.h: Include <stddef.h>.
54716
54717 2007-03-05  Bruno Haible  <bruno@clisp.org>
54718
54719         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
54720
54721 2007-03-05  Bruno Haible  <bruno@clisp.org>
54722
54723         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
54724         NetBSD 4, from Ralf Wildenhues.
54725
54726 2007-03-04  Bruno Haible  <bruno@clisp.org>
54727
54728         * lib/vasprintf.h: Update #if logic for the case when the functions
54729         exist but are overridden.
54730
54731 2007-03-04  Bruno Haible  <bruno@clisp.org>
54732
54733         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
54734         implementations: glibc-2.4 and MacOS X 10.3.
54735         * tests/test-vasnprintf-posix.c (test_function): Test also the case
54736         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
54737         * tests/test-vasprintf-posix.c (test_function): Likewise.
54738
54739 2007-03-04  Bruno Haible  <bruno@clisp.org>
54740
54741         * modules/vasprintf-posix-tests: New file.
54742         * tests/test-vasprintf-posix.c: New file.
54743
54744         * modules/vasprintf-posix: New file.
54745         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
54746         defined.
54747         * m4/vasprintf-posix.m4: New file.
54748         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
54749         gl_FUNC_VASPRINTF.
54750         (gl_FUNC_VASPRINTF): Invoke it.
54751         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
54752         here.
54753         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
54754
54755 2007-03-04  Bruno Haible  <bruno@clisp.org>
54756
54757         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
54758         REPLACE_GETTIMEOFDAY.
54759         * modules/sys_time (Makefile.am): Likewise.
54760         * m4/sys_time_h.m4: Likewise.
54761         * m4/gettimeofday.m4: Likewise.
54762
54763 2007-03-04  Bruno Haible  <bruno@clisp.org>
54764
54765         * modules/vasnprintf-posix-tests: New file.
54766         * tests/test-vasnprintf-posix.c: New file.
54767
54768         * modules/vasnprintf-posix: New file.
54769         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
54770         printf-frexpl.h.
54771         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
54772         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
54773         REPLACE_VASNPRINTF is defined.
54774         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
54775         gl_FUNC_VASNPRINTF.
54776         (gl_FUNC_VASNPRINTF): Invoke it.
54777         * m4/vasnprintf-posix.m4: New file.
54778         * m4/printf.m4: New file.
54779
54780 2007-03-04  Bruno Haible  <bruno@clisp.org>
54781
54782         Compile progreloc.c only if --enable-relocatable is specified.
54783         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
54784         if --enable-relocatable was specified.
54785         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
54786         lib_SOURCES.
54787
54788 2007-03-04  Jim Meyering  <jim@meyering.net>
54789
54790         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
54791         Use it consistently, rather than enumerating errno constants.
54792
54793 2007-03-04  Bruno Haible  <bruno@clisp.org>
54794
54795         * modules/xvasprintf-tests: New file.
54796         * tests/test-xvasprintf.c: New file.
54797
54798         * modules/vasprintf-tests: New file.
54799         * tests/test-vasprintf.c: New file.
54800
54801         * modules/vasnprintf-tests: New file.
54802         * tests/test-vasnprintf.c: New file.
54803
54804         * modules/vsnprintf-tests: New file.
54805         * tests/test-vsnprintf.c: New file.
54806
54807         * modules/snprintf-tests: New file.
54808         * tests/test-snprintf.c: New file.
54809
54810 2007-03-04  Bruno Haible  <bruno@clisp.org>
54811
54812         Compile relocatable.c only if --enable-relocatable is specified.
54813         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
54814         gl_RELOCATABLE_LIBRARY.
54815         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
54816         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
54817         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
54818         gl_RELOCATABLE_LIBRARY.
54819         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
54820         (Makefile.am): Remove lib_SOURCES.
54821         * modules/relocatable-lib-lgpl (configure.ac): Invoke
54822         gl_RELOCATABLE_LIBRARY.
54823         (Makefile.am): Remove lib_SOURCES.
54824         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
54825         always.
54826         * modules/relocatable-prog-wrapper (configure.ac): Invoke
54827         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
54828
54829 2007-03-04  Bruno Haible  <bruno@clisp.org>
54830
54831         * modules/argmatch-tests: New file.
54832         * tests/test-argmatch.c: New file.
54833
54834         * tests/test-allocsa.c (main): Halve the number of loop runs.
54835
54836         * modules/alloca-opt-tests: New file.
54837         * tests/test-alloca-opt.c: New file.
54838
54839 2007-03-04  Jim Meyering  <jim@meyering.net>
54840
54841         Work around difference between Linux ACLs and Solaris 10 ZFS.
54842         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
54843         for EINVAL.
54844
54845 2007-03-03  Bruno Haible  <bruno@clisp.org>
54846
54847         * modules/relocatable-prog (Depends-on): Add back progreloc's
54848         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
54849
54850 2007-03-03  Bruno Haible  <bruno@clisp.org>
54851
54852         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
54853         * modules/relocatable-lib: New file.
54854
54855 2007-03-03  Bruno Haible  <bruno@clisp.org>
54856
54857         * modules/relocatable-prog: Renamed from modules/relocatable.
54858         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
54859
54860 2007-03-03  Bruno Haible  <bruno@clisp.org>
54861
54862         * modules/relocatable-script (Files): Add doc/relocatable.texi,
54863         m4/relocatable-lib.m4.
54864         (Depends-on): Remove 'relocatable'.
54865         (configure.ac): Add gl_RELOCATABLE_NOP.
54866
54867 2007-03-03  Bruno Haible  <bruno@clisp.org>
54868
54869         * modules/relocatable-prog-wrapper: New file.
54870         * modules/relocatable (Depends-on): Add it. Remove all other
54871         dependencies except progname.
54872         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
54873
54874         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
54875         (gl_FUNC_STRERROR): Nop.
54876         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
54877
54878         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
54879         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
54880
54881         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
54882         (gl_FUNC_READLINK): Update.
54883
54884         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
54885
54886 2007-03-03  Bruno Haible  <bruno@clisp.org>
54887
54888         * lib/xreadlink.c: Include <unistd.h> unconditionally.
54889         * modules/xreadlink (Depends-on): Add unistd.
54890         * modules/xreadlink-with-size (Depends-on): Likewise.
54891
54892 2007-03-03  Bruno Haible  <bruno@clisp.org>
54893
54894         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
54895         extracted from gt_FUNC_SETENV.
54896         (gt_FUNC_SETENV): Remove macro.
54897         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
54898         remove gt_FUNC_SETENV.
54899
54900 2007-03-03  Bruno Haible  <bruno@clisp.org>
54901
54902         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
54903         ENABLE_RELOCATABLE here.
54904         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
54905
54906 2007-03-03  Bruno Haible  <bruno@clisp.org>
54907
54908         * modules/rbtreehash-list-tests (Depends-on): Add progname.
54909         * tests/test-rbtreehash_list.c: Include progname.h.
54910         (main): Call set_program_name.
54911
54912         * modules/rbtree-oset-tests (Depends-on): Add progname.
54913         * tests/test-rbtree_oset.c: Include progname.h.
54914         (main): Call set_program_name.
54915
54916         * modules/rbtree-list-tests (Depends-on): Add progname.
54917         * tests/test-rbtree_list.c: Include progname.h.
54918         (main): Call set_program_name.
54919
54920         * modules/linked-list-tests (Depends-on): Add progname.
54921         * tests/test-linked_list.c: Include progname.h.
54922         (main): Call set_program_name.
54923
54924 2007-03-03  Bruno Haible  <bruno@clisp.org>
54925
54926         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
54927         All uses of __restrict changed to _Restrict_.
54928         * lib/glob_.h (__restrict): Remove macro.
54929
54930 2007-03-02  Bruno Haible  <bruno@clisp.org>
54931
54932         * modules/gettext (configure.ac): Require gettext infrastructure
54933         from version 0.16.1.
54934
54935 2007-03-02  Bruno Haible  <bruno@clisp.org>
54936
54937         * modules/linkedhash-list-tests (Depends-on): Add progname.
54938         * tests/test-linkedhash_list.c: Include progname.h.
54939         (main): Call set_program_name.
54940
54941         * modules/carray-list-tests (Depends-on): Add progname.
54942         * tests/test-carray_list.c: Include progname.h.
54943         (main): Call set_program_name.
54944
54945         * modules/avltreehash-list-tests (Depends-on): Add progname.
54946         * tests/test-avltreehash_list.c: Include progname.h.
54947         (main): Call set_program_name.
54948
54949         * modules/avltree-oset-tests (Depends-on): Add progname.
54950         * tests/test-avltree_oset.c: Include progname.h.
54951         (main): Call set_program_name.
54952
54953         * modules/avltree-list-tests (Depends-on): Add progname.
54954         * tests/test-avltree_list.c: Include progname.h.
54955         (main): Call set_program_name.
54956
54957         * modules/array-oset-tests (Depends-on): Add progname.
54958         * tests/test-array_oset.c: Include progname.h.
54959         (main): Call set_program_name.
54960
54961         * modules/array-list-tests (Depends-on): Add progname.
54962         * tests/test-array_list.c: Include progname.h.
54963         (main): Call set_program_name.
54964
54965         * modules/argp-tests (Depends-on): Add progname.
54966         * tests/test-argp.c: Include argp.h first. Include progname.h.
54967         (main): Call set_program_name.
54968
54969 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
54970
54971         * doc/gnulib-tool.texi (Initial import): Reword description of
54972         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
54973         limited effect even if defined after the first system include.
54974
54975 2007-03-01  Bruno Haible  <bruno@clisp.org>
54976
54977         * build-aux/config.libpath: Update to libtool-1.5.22.
54978         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54979
54980 2007-03-01  Bruno Haible  <bruno@clisp.org>
54981
54982         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
54983         foo_CFLAGS.
54984         Reported by Ralf Wildenhues.
54985
54986 2007-03-01  Bruno Haible  <bruno@clisp.org>
54987
54988         * build-aux/install-reloc: Remove object files left over by some
54989         compilers.
54990         Reported by Ralf Wildenhues.
54991
54992 2007-03-01  Bruno Haible  <bruno@clisp.org>
54993
54994         * build-aux/install-reloc: Break long lines.
54995
54996 2007-03-01  Bruno Haible  <bruno@clisp.org>
54997
54998         * doc/relocatable.texi: Document that it may not work on OpenBSD.
54999         Reported by Ralf Wildenhues.
55000
55001 2007-03-01  Bruno Haible  <bruno@clisp.org>
55002
55003         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
55004         include ordering constraints.
55005
55006 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
55007
55008         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
55009         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
55010         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
55011         as another example.
55012         * lib/time_.h: Fix misspelling.
55013         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
55014         Require gl_HEADER_TIME_H_DEFAULTS.
55015         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
55016         * m4/time_r.m4 (gl_TIME_R): Likewise.
55017         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
55018
55019 2007-03-01  Bruno Haible  <bruno@clisp.org>
55020
55021         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
55022         * m4/utimens.m4 (gl_UTIMENS): Likewise.
55023
55024 2007-03-01  Jim Meyering  <jim@meyering.net>
55025
55026         * modules/xreadlink (Maintainer): Add my name.
55027         * modules/xreadlink-with-size (Depends-on): Alphabetize.
55028
55029 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
55030             Bruno Haible  <bruno@clisp.org>
55031
55032         * build-aux/install-reloc: Compile also c-ctype.c.
55033         * build-aux/relocatable.sh.in: New file.
55034         * doc/relocatable.texi: New file.
55035         * doc/relocatable-maint.texi: New file.
55036         * doc/gnulib.texi: Include relocatable-maint.texi.
55037         * lib/progreloc.c: Include unistd.h unconditionally.
55038         * lib/relocwrapper.c: Include unistd.h unconditionally.
55039         Include c-ctype.h.
55040         (add_dotbin): Use c_tolower.
55041         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
55042         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
55043         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
55044         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
55045         to m4/relocatable-lib.m4.
55046         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
55047         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
55048         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
55049         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
55050         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
55051         * modules/relocatable: New file.
55052         * modules/relocatable-lib: New file.
55053         * modules/relocatable-script: New file.
55054
55055 2007-02-28  Bruno Haible  <bruno@clisp.org>
55056
55057         Import --enable-relocatable infrastructure.
55058         * build-aux/config.libpath: New file, from GNU gettext.
55059         * build-aux/install-reloc: New file, from GNU gettext.
55060         * build-aux/reloc-ldflags: New file, from GNU gettext.
55061         * lib/relocatable.h: New file, from GNU gettext.
55062         * lib/relocatable.c: New file, from GNU gettext.
55063         * lib/relocwrapper.c: New file, from GNU gettext.
55064         * m4/relocatable.m4: New file, from GNU gettext.
55065
55066 2007-02-28  Bruno Haible  <bruno@clisp.org>
55067
55068         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
55069
55070         * modules/xreadlink: New file, from GNU gettext with modifications.
55071         * lib/xreadlink.c: New file, from GNU gettext.
55072         * lib/xreadlink.h: Add comments.
55073         (xreadlink): New declaration.
55074
55075         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
55076         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
55077         lib/xreadlink-with-size.c.
55078         (configure.ac): Remove gl_XREADLINK invocation.
55079         (Makefile.am): Augment lib_SOURCES.
55080         * m4/xreadlink.m4: Remove file.
55081         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
55082         (xreadlink_with_size): Renamed from xreadink.
55083         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
55084         * modules/canonicalize (Depends-on): Replace xreadlink with
55085         xreadlink-with-size.
55086         * lib/canonicalize.c (canonicalize_filename_mode): Update.
55087
55088 2007-02-25  Jim Meyering  <jim@meyering.net>
55089
55090         * build-aux/announce-gen: When complaining about excess arguments,
55091         list them.
55092
55093 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
55094
55095         * README: Document signed integer overflow situation more
55096         accurately.
55097
55098 2007-02-25  Bruno Haible  <bruno@clisp.org>
55099
55100         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
55101         'a' or 'A' conversion.
55102
55103 2007-02-25  Bruno Haible  <bruno@clisp.org>
55104
55105         * modules/filename: Renamed from modules/pathname.
55106         (Files): Replace lib/pathname.h with lib/filename.h. Replace
55107         lib/concatpath.c with lib/concat-filename.c.
55108         (Makefile.am): Update.
55109         (Include): Replace pathname.h with filename.h.
55110         * lib/filename.h: Renamed from lib/pathname.h.
55111         (concatenated_filename): Renamed from concatenated_pathname.
55112         * lib/concat-filename.c: Renamed from lib/concatpath.c.
55113         (concatenated_filename): Renamed from concatenated_pathname.
55114         * lib/findprog.c: Include filename.h instead of pathname.h.
55115         (find_in_path): Update.
55116         * lib/javacomp.c: Include filename.h instead of pathname.h.
55117         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
55118         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
55119         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
55120         is_oldgcj_14_13_usable, is_javac_usable): Update.
55121         * lib/javaexec.c: Include filename.h instead of pathname.h.
55122         (execute_java_class): Update.
55123         * modules/findprog: Update.
55124         * modules/javacomp: Update.
55125         * modules/javaexec: Update.
55126         * MODULES.html.sh (File system functions): Add 'filename', remove
55127         'pathname'.
55128
55129 2007-02-25  Bruno Haible  <bruno@clisp.org>
55130
55131         * modules/printf-frexpl-tests: New file.
55132         * tests/test-printf-frexpl.c: New file.
55133
55134         * modules/printf-frexpl: New file.
55135         * lib/printf-frexpl.h: New file.
55136         * lib/printf-frexpl.c: New file.
55137         * m4/printf-frexpl.m4: New file.
55138
55139 2007-02-25  Bruno Haible  <bruno@clisp.org>
55140
55141         * modules/printf-frexp-tests: New file.
55142         * tests/test-printf-frexp.c: New file.
55143
55144         * modules/printf-frexp: New file.
55145         * lib/printf-frexp.h: New file.
55146         * lib/printf-frexp.c: New file.
55147         * m4/printf-frexp.m4: New file.
55148
55149 2007-02-25  Bruno Haible  <bruno@clisp.org>
55150
55151         Assume automake >= 1.10 for the tests.
55152         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
55153         * modules/arctwo-tests: Likewise.
55154         * modules/argp-tests: Likewise.
55155         * modules/avltree-list-tests: Likewise.
55156         * modules/avltree-oset-tests: Likewise.
55157         * modules/avltreehash-list-tests: Likewise.
55158         * modules/carray-list-tests: Likewise.
55159         * modules/crc-tests: Likewise.
55160         * modules/des-tests: Likewise.
55161         * modules/gc-arcfour-tests: Likewise.
55162         * modules/gc-arctwo-tests: Likewise.
55163         * modules/gc-des-tests: Likewise.
55164         * modules/gc-hmac-md5-tests: Likewise.
55165         * modules/gc-hmac-sha1-tests: Likewise.
55166         * modules/gc-md2-tests: Likewise.
55167         * modules/gc-md4-tests: Likewise.
55168         * modules/gc-md5-tests: Likewise.
55169         * modules/gc-pbkdf2-sha1-tests: Likewise.
55170         * modules/gc-rijndael-tests: Likewise.
55171         * modules/gc-sha1-tests: Likewise.
55172         * modules/gc-tests: Likewise.
55173         * modules/getaddrinfo-tests: Likewise.
55174         * modules/hmac-md5-tests: Likewise.
55175         * modules/hmac-sha1-tests: Likewise.
55176         * modules/linked-list-tests: Likewise.
55177         * modules/linkedhash-list-tests: Likewise.
55178         * modules/lock-tests: Likewise.
55179         * modules/md2-tests: Likewise.
55180         * modules/md4-tests: Likewise.
55181         * modules/md5-tests: Likewise.
55182         * modules/rbtree-list-tests: Likewise.
55183         * modules/rbtree-oset-tests: Likewise.
55184         * modules/rbtreehash-list-tests: Likewise.
55185         * modules/read-file-tests: Likewise.
55186         * modules/rijndael-tests: Likewise.
55187         * modules/stdint-tests: Likewise.
55188         * modules/tls-tests: Likewise.
55189
55190 2007-02-24  Bruno Haible  <bruno@clisp.org>
55191
55192         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
55193         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
55194         function; instead check whether isnan with a double argument links.
55195         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
55196         function; instead check whether isnan with a 'long double' argument
55197         links.
55198         Reported by Eric Blake <ebb9@byu.net>.
55199
55200 2007-02-24  Bruno Haible  <bruno@clisp.org>
55201
55202         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
55203         defined.
55204         * lib/isnanl.c: Remove all code. Just include isnan.c.
55205         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
55206
55207 2007-02-25  Jim Meyering  <jim@meyering.net>
55208
55209         Avoid conflicting types for 'unsetenv' on FreeBSD.
55210         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
55211         conflicting with FreeBSD's (5.0 and 6.1) function declaration
55212         in stdlib.h.
55213
55214 2007-02-24  Bruno Haible  <bruno@clisp.org>
55215
55216         * modules/isnanl-nolibm-tests: New file.
55217         * tests/test-isnanl.c: New file.
55218
55219         * modules/isnanl-nolibm: New file.
55220         * lib/isnanl.h: New file.
55221         * lib/isnanl.c: New file.
55222         * m4/isnanl.m4: New file.
55223
55224 2007-02-24  Bruno Haible  <bruno@clisp.org>
55225
55226         * modules/isnan-nolibm-tests: New file.
55227         * tests/test-isnan.c: New file.
55228
55229         * modules/isnan-nolibm: New file.
55230         * lib/isnan.h: New file.
55231         * lib/isnan.c: New file.
55232         * m4/isnan.m4: New file.
55233
55234 2007-02-24  Bruno Haible  <bruno@clisp.org>
55235
55236         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
55237         assume that an exponent fits in 20 bits.
55238
55239 2007-02-24  Jim Meyering  <jim@meyering.net>
55240
55241         * m4/regex.m4: Update the description of the configure-time option,
55242         --without-included-regex, to state accurately what the defaults are,
55243         and perhaps to give people an idea why using this option is risky.
55244
55245 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
55246
55247         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
55248         loops on small arguments.  This attempts to avoid the problem
55249         Bruno Haible reported for AIX 4.3.2 in
55250         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
55251
55252 2007-02-23  Bruno Haible  <bruno@clisp.org>
55253
55254         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
55255         Needed for help2man.
55256
55257 2007-02-23  Karl Berry  <karl@gnu.org>
55258
55259         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
55260         exists, foo.h should be cvs-ignored, not committed.
55261
55262 2007-02-23  Eric Blake  <ebb9@byu.net>
55263
55264         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
55265         * lib/stat-time.h (includes): Likewise.
55266         * lib/utimecmp.c (includes): Likewise.
55267         * lib/utimens.h (includes): Likewise.
55268         * lib/getdate.y (includes): Also include "timespec.h" for use
55269         internal to the module.
55270         * modules/utimens (Depends-on): Revert yesterday's patch.
55271         * modules/nanosleep (Depends-on): Add missing dependency.
55272
55273 2007-02-22  Bruno Haible  <bruno@clisp.org>
55274
55275         * lib/glob.c: Don't include getlogin_r.h.
55276
55277 2007-02-22  Jim Meyering  <jim@meyering.net>
55278
55279         * modules/utimens (Depends-on): Add timespec, required for
55280         utimens.h's inclusion of timespec.h.
55281
55282 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
55283
55284         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
55285         long unreadable paths in GNU/Linux.  Problem reported by Andreas
55286         Schwab in
55287         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
55288         I'll try to think of a better way to fix the Solaris problem.
55289
55290         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
55291         like glibc; on Solaris 10, it fails with errno == EINVAL.
55292         POSIX says the behavior is unspecified if the first argument is NULL,
55293         so play it safe and never pass NULL to the system getcwd.
55294
55295 2007-02-21  Jim Meyering  <jim@meyering.net>
55296
55297         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
55298         of gettimeofday.  It would conflict with the one now always
55299         provided via sys_time_.h.  Reported by Matthew Woehlke, as
55300         an IRIX 6.5 build failure.
55301
55302 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
55303
55304         Minor fixups to port to Solaris 10 with Sun C 5.8.
55305         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
55306         * modules/getcwd (Depends-on): Add dirfd.
55307         * lib/putenv.c (putenv): #undef it.
55308         (rpl_putenv): New decl.
55309         (malloc, free): Include <stdlib.h> rather than prototyping separately.
55310
55311 2007-02-20  Bruno Haible  <bruno@clisp.org>
55312
55313         * modules/stdio-tests: New file.
55314         * tests/test-stdio.c: New file.
55315
55316         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
55317         (Depends-on): Add stdio.
55318         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
55319         (Include): Use <stdio.h> instead of vsnprintf.h.
55320         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
55321         HAVE_DECL_VSNPRINTF.
55322         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
55323
55324         * modules/snprintf (Files): Remove lib/snprintf.h.
55325         (Depends-on): Add stdio.
55326         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
55327         (Include): Use <stdio.h> instead of snprintf.h.
55328         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
55329         HAVE_DECL_SNPRINTF.
55330         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
55331         * lib/getaddrinfo.c: Likewise.
55332
55333         * modules/stdio: New file.
55334         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
55335         * lib/snprintf.h: Remove file.
55336         * lib/vsnprintf.h: Remove file.
55337         * lib/.cppi-disable: Remove snprintf.h.
55338         * m4/stdio_h.m4: New file.
55339         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
55340
55341 2007-02-20  Jim Meyering  <jim@meyering.net>
55342
55343         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
55344         used by e.g., mingw.  From Bruno Haible.
55345
55346 2007-02-19  Bruno Haible  <bruno@clisp.org>
55347
55348         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
55349         warnings.
55350         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55351
55352 2007-02-19  Bruno Haible  <bruno@clisp.org>
55353
55354         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
55355         from mingw users.
55356
55357 2007-02-19  Bruno Haible  <bruno@clisp.org>
55358
55359         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
55360         warnings.
55361         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
55362
55363 2007-02-19  Jim Meyering  <jim@meyering.net>
55364
55365         Don't use FD after a successful "fdopendir (fd)".
55366         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
55367         Reset it by calling dirfd on the just-obtained DIR*.
55368
55369         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
55370         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
55371
55372 2007-02-18  Bruno Haible  <bruno@clisp.org>
55373
55374         * lib/readlink.c: Include <unistd.h>.
55375         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
55376         HAVE_READLINK.
55377         * modules/readlink (Depends-on): Add unistd.
55378         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55379         (Include): Add <unistd.h>.
55380
55381         * lib/getlogin_r.h: Remove file.
55382         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
55383         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
55384         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
55385         HAVE_DECL_GETLOGIN_R.
55386         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
55387         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55388         (Include): Use <unistd.h> instead of getlogin_r.h.
55389
55390         * lib/getcwd.h: Remove file.
55391         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
55392         * lib/xgetcwd.c: Likewise.
55393         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
55394         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
55395         * modules/getcwd (Files): Remove lib/getcwd.h.
55396         (Depends-on): Add unistd.
55397         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55398         (Include): Use <unistd.h> instad of getcwd.h.
55399
55400         * lib/ftruncate.c: Include <unistd.h> first.
55401         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
55402         Set HAVE_FTRUNCATE.
55403         * modules/ftruncate (Depends-on): Add unistd.
55404         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55405
55406         * lib/fchdir.c: Include <unistd.h> first.
55407         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
55408         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
55409         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
55410         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55411         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
55412
55413         * lib/dup2.c: Include <unistd.h> first.
55414         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
55415         HAVE_DUP2.
55416         * modules/dup2 (Depends-on): Add unistd.
55417         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55418
55419         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
55420         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
55421         REPLACE_CHOWN. Don't define chown as a macro here.
55422         * modules/chown (Depends-on): Add unistd.
55423         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55424
55425         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
55426         Add definition for GL_LINK_WARNING.
55427         (chown, dup2): New declarations.
55428         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
55429         link warning.
55430         (ftruncate): New declaration.
55431         (getcwd): New declaration, taken from old getcwd.h.
55432         (getlogin_r): New declaration, taken from old getlogin_r.h.
55433         (readlink): New declaration.
55434         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
55435         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
55436         (gl_PREREQ_UNISTD): Remove macro.
55437         (gl_UNISTD_MODULE_INDICATOR): New macro.
55438         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
55439         many new variables. Don't set UNISTD_H.
55440         * modules/unistd (Description): Change.
55441         (Depends-on): Add link-warning.
55442         (configure.ac): Update.
55443         (Makefile.am): Create unistd.h always. Substitute many new variables
55444         into it.
55445
55446 2007-02-18  Bruno Haible  <bruno@clisp.org>
55447
55448         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
55449         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
55450         HAVE_GETSUBOPT.
55451         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
55452         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
55453         * lib/getsubopt.h: Remove file.
55454         * modules/getsubopt (Files): Remove lib/getsubopt.h.
55455         (Depends-on): Add stdlib.
55456         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55457         (Includes): Use <stdlib.h> instead of getsubopt.h.
55458         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
55459         Set HAVE_GETSUBOPT.
55460         * lib/getsubopt.c: Don't include getsubopt.h.
55461
55462 2007-02-18  Bruno Haible  <bruno@clisp.org>
55463
55464         * modules/fchdir (Depends-on): Add dup2.
55465
55466 2007-02-18  Bruno Haible  <bruno@clisp.org>
55467
55468         * lib/stdlib_.h: Handle glibc's special invocation convention
55469         specially.
55470
55471 2007-02-18  Bruno Haible  <bruno@clisp.org>
55472
55473         * modules/stdlib-tests: New file.
55474         * tests/test-stdlib.c: New file.
55475
55476         * modules/mkstemp (Files): Remove lib/mkstemp.h.
55477         (Depends-on): Add stdlib.
55478         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55479         (Includes): Use <stdlib.h> instead of mkstemp.h.
55480         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
55481         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
55482         * lib/mkstemp.c: Don't include mkstemp.h.
55483         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
55484         * lib/stdlib--.h: Don't include mkstemp.h.
55485
55486         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
55487         (Depends-on): Add stdlib.
55488         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55489         (Includes): Use <stdlib.h> instead of mkdtemp.h.
55490         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
55491         HAVE_MKDTEMP.
55492         * lib/mkdtemp.c: Don't include mkdtemp.h.
55493         * lib/clean-temp.c: Don't include mkdtemp.h.
55494
55495         * modules/exit (Files): Remove lib/exit.h.
55496         (Depends-on): Add stdlib.
55497         (Makefile.am): Remove lib_SOURCES.
55498         (Include): Use <stdlib.h> instead of exit.h.
55499         * lib/argmatch.c: Don't include exit.h.
55500         * lib/execute.c: Likewise.
55501         * lib/pagealign_alloc.c: Likewise.
55502         * lib/pipe.c: Likewise.
55503         * lib/wait-process.c: Likewise.
55504         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
55505         * lib/exitfail.c: Likewise.
55506         * lib/savewd.c: Likewise.
55507         * lib/xsetenv.c: Likewise.
55508
55509         * modules/stdlib: New file.
55510         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
55511         and extra comments about mkstemp().
55512         * lib/exit.h: Remove file.
55513         * lib/mkdtemp.h: Remove file.
55514         * lib/mkstemp.h: Remove file.
55515         * m4/stdlib_h.m4: New file.
55516         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
55517
55518 2007-02-18  Bruno Haible  <bruno@clisp.org>
55519
55520         * modules/math-tests: New file.
55521         * tests/test-math.c: New file.
55522
55523         * modules/math: New file.
55524         * modules/mathl (Files): Remove lib/mathl.h.
55525         (Depends-on): Add math.
55526         (Makefile.am): Don't mention mathl.h.
55527         (Include): Use <math.h> instead of mathl.h.
55528         * lib/math_.h: New file.
55529         * lib/mathl.h: Remove file.
55530         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
55531         mathl.h.
55532         * lib/asinl.c: Likewise.
55533         * lib/atanl.c: Likewise.
55534         * lib/ceill.c: Likewise.
55535         * lib/cosl.c: Likewise.
55536         * lib/expl.c: Likewise.
55537         * lib/floorl.c: Likewise.
55538         * lib/frexpl.c: Likewise.
55539         * lib/ldexpl.c: Likewise.
55540         * lib/logl.c: Likewise.
55541         * lib/sincosl.c: Likewise.
55542         * lib/sinl.c: Likewise.
55543         * lib/sqrtl.c: Likewise.
55544         * lib/tanl.c: Likewise.
55545         * lib/trigl.c: Likewise.
55546         * m4/math_h.m4: New file.
55547         * MODULES.html.sh (Mathematics): Add math.
55548
55549 2007-02-17  Bruno Haible  <bruno@clisp.org>
55550
55551         * modules/wctype-tests: New file.
55552         * tests/test-wctype.c: New file.
55553
55554         * modules/wchar-tests: New file.
55555         * tests/test-wchar.c: New file.
55556
55557         * modules/unistd-tests: New file.
55558         * tests/test-unistd.c: New file.
55559
55560         * modules/time-tests: New file.
55561         * tests/test-time.c: New file.
55562
55563         * modules/sysexits-tests: New file.
55564         * tests/test-sysexits.c: New file.
55565
55566         * modules/sys_time-tests: New file.
55567         * tests/test-sys_time.c: New file.
55568
55569         * modules/sys_stat-tests: New file.
55570         * tests/test-sys_stat.c: New file.
55571
55572         * modules/sys_socket-tests: New file.
55573         * tests/test-sys_socket.c: New file.
55574
55575         * modules/sys_select-tests: New file.
55576         * tests/test-sys_select.c: New file.
55577
55578         * modules/string-tests: New file.
55579         * tests/test-string.c: New file.
55580
55581         * modules/stdbool-tests: New file.
55582         * tests/test-stdbool.c: New file.
55583
55584         * modules/netinet_in-tests: New file.
55585         * tests/test-netinet_in.c: New file.
55586
55587         * modules/inttypes-tests: New file.
55588         * tests/test-inttypes.c: New file.
55589
55590         * modules/fcntl-tests: New file.
55591         * tests/test-fcntl.c: New file.
55592
55593         * modules/byteswap-tests: New file.
55594         * tests/test-byteswap.c: New file.
55595
55596         * modules/arpa_inet-tests: New file.
55597         * tests/test-arpa_inet.c: New file.
55598
55599 2007-02-17  Bruno Haible  <bruno@clisp.org>
55600
55601         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
55602         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
55603         if the corresponding module is not enabled. Emit link warnings if
55604         the function is used nevertheless.
55605         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
55606         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
55607         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
55608         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
55609         * modules/inttypes (Depends-on): Add link-warning.
55610         (Makefile.am): Copy the contents of build-aux/link-warning.h into
55611         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
55612         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
55613         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
55614         * modules/imaxdiv (configure.ac): Likewise.
55615         * modules/strtoimax (configure.ac): Likewise.
55616         * modules/strtoumax (configure.ac): Likewise.
55617
55618 2007-02-17  Bruno Haible  <bruno@clisp.org>
55619
55620         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
55621         gl_STRING_MODULE_INDICATOR_DEFAULTS.
55622         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
55623         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
55624
55625 2007-02-17  Bruno Haible  <bruno@clisp.org>
55626
55627         * modules/link-warning: New file.
55628         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
55629         * lib/string_.h (GL_LINK_WARNING): Remove definition.
55630         * modules/string (Depends-on): Add link-warning.
55631         (Makefile.am): Copy the contents of build-aux/link-warning.h into
55632         string.h.
55633         * MODULES.html.sh (Support for building libraries and executables): Add
55634         link-warning.
55635
55636 2007-02-17  Bruno Haible  <bruno@clisp.org>
55637
55638         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
55639         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
55640         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
55641         long lines.
55642
55643 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
55644             Bruno Haible  <bruno@clisp.org>
55645
55646         * modules/tmpfile: New file.
55647         * lib/tmpfile.c: New file.
55648         * m4/tmpfile.m4: New file.
55649         * MODULES.html.sh (func_all_modules): New section "Input/output".
55650
55651 2007-02-15  Bruno Haible  <bruno@clisp.org>
55652
55653         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
55654         (supports_delete_on_close): New function.
55655         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
55656
55657 2007-02-14  Bruno Haible  <bruno@clisp.org>
55658
55659         * modules/mbspcasecmp-tests: New file.
55660         * tests/test-mbspcasecmp.sh: New file.
55661         * tests/test-mbspcasecmp.c: New file.
55662
55663         New module mbspcasecmp.
55664         * modules/mbspcasecmp: New file.
55665         * lib/mbspcasecmp.c: New file.
55666         * lib/string_.h (strncasecmp): Change warning message.
55667         (mbspcasecmp): New declaration.
55668         * m4/mbspcasecmp.m4: New file.
55669         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55670         GNULIB_MBSPCASECMP.
55671         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
55672         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
55673
55674 2007-02-14  Bruno Haible  <bruno@clisp.org>
55675
55676         * modules/mbsncasecmp-tests: New file.
55677         * tests/test-mbsncasecmp.sh: New file.
55678         * tests/test-mbsncasecmp.c: New file.
55679
55680         New module mbsncasecmp.
55681         * modules/mbsncasecmp: New file.
55682         * lib/mbsncasecmp.c: New file.
55683         * lib/string_.h (mbsncasecmp): New declaration.
55684         * m4/mbsncasecmp.m4: New file.
55685         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55686         GNULIB_MBSNCASECMP.
55687         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
55688         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
55689
55690 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
55691
55692         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
55693         Verify that it doesn't overlap with our flags.
55694         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
55695         do not have the desired effect in multibyte locales; instead, use
55696         mbscasecmp.
55697         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
55698         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
55699         we don't require GNU fnmatch ourselves (if our users require it, they
55700         should do so explicitly).
55701
55702         Fix regex code so it doesn't rely on strcasecmp.
55703         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
55704         Otherwise, include gnulib's langinfo.h.
55705         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
55706         undesirable behavior in non-C locales.  Instead, rely on localecharset.
55707         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
55708         * modules/regex (FILES): Remove m4/codeset.m4.
55709         (Depends-on): Add localcharset.  Remove strcase.
55710
55711 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55712
55713         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
55714         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
55715
55716 2007-02-13  Bruno Haible  <bruno@clisp.org>
55717
55718         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
55719         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55720
55721 2007-02-12  Bruno Haible  <bruno@clisp.org>
55722
55723         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
55724         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
55725         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
55726         time warning rather than a link error.
55727
55728 2007-02-12  Bruno Haible  <bruno@clisp.org>
55729
55730         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
55731         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
55732         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55733
55734 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
55735
55736         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
55737         args, not 2.
55738
55739 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
55740
55741         New module 'time', so that apps can include <time.h> as per
55742         POSIX and GNU instead of separate include files like time_r.h
55743         and timegm.h.  This implementation tries out a simpler approach
55744         for replacing decls in standard include files (as compared to
55745         the string module), somewhat as an experiment.
55746
55747         * config/srclist.txt: Comment out mktime.c for now.
55748         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
55749         since it doesn't apply any more.  Use generic wording instead.
55750         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
55751         'time'.
55752         * lib/time_.h, m4/time_h.m4, modules/time: New files.
55753         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
55754         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
55755         Don't include <sys/types.h>; no longer needed since we assume C89.
55756         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
55757         * lib/strftime.c: Likewise.
55758         * lib/time_r.c: Likewise.
55759         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
55760         * lib/nanosleep.c: Include <time.h> first, to check interface.
55761         * lib/strptime.c: Likewise.
55762         * lib/time_r.c: Likewise.
55763         * lib/timegm.c: Likewise.
55764         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
55765         needed.
55766         * lib/timegm.c: Don't include timegm.h; no longer needed.
55767         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
55768         time.h now handles any problems in that area.
55769         (struct timespec, nanosleep): Remove; time.h now arranges for these.
55770         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
55771         that time.h defines struct timespec.
55772         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
55773         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
55774         handles that.
55775         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
55776         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
55777         needed.  Set REPLACE_LOCALTIME.
55778         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
55779         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
55780         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
55781         nanosleep; time_h.m4 now does that.  Don't require
55782         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
55783         module handles this now.
55784         * modules/getdate (Depends-on): Remove timespec.  Add time.
55785         * modules/nanosleep (Depends-on): Likewise.
55786         * modules/stat-time (Depends-on): Likewise.
55787         * modules/nanosleep (Include): Include time.h, not timespec.h.
55788         * modules/strptime (Files): Remove lib/strptime.h.
55789         (Depends-on): Add extensions, time.
55790         (Include): Include time.h, not strptime.h.
55791         * modules/time_r (Files): Remove lib/time_r.h.
55792         (Depends-on): Add time.
55793         (Include): Include time.h, not time_r.h.
55794         * modules/timegm: Likewise.
55795         * modules/timespec (Description): Now does timespec-related decls
55796         of our own, instead of struct timespec itself.
55797         (Depends-on): Add time; remove extensions.
55798         (Maintainer): Add self.
55799         * modules/utimecmp (Depends-on): Add time; remove timespec.
55800         * modules/utimens (Depends-on): Likewise.
55801         * modules/xnanosleep (Depends-on): Likewise.
55802
55803 2007-02-11  Bruno Haible  <bruno@clisp.org>
55804
55805         * lib/c-strstr.c: Include allocsa.h.
55806         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
55807         * lib/c-strcasestr.c: Include allocsa.h.
55808         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
55809         * lib/strcasestr.c: Include allocsa.h.
55810         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
55811         * lib/mbsstr.c: Include allocsa.h.
55812         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
55813         allocsa/freesa instead of malloc/free.
55814         * lib/mbscasestr.c: Include allocsa.h.
55815         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
55816         allocsa/freesa instead of malloc/free.
55817         * modules/c-strstr (Depends-on): Add allocsa.
55818         * modules/c-strcasestr (Depends-on): Likewise.
55819         * modules/strcasestr (Depends-on): Likewise.
55820         * modules/mbsstr (Depends-on): Likewise.
55821         * modules/mbscasestr (Depends-on): Likewise.
55822
55823 2007-02-11  Bruno Haible  <bruno@clisp.org>
55824
55825         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
55826
55827         * modules/mbsspn-tests: New file.
55828         * tests/test-mbsspn.sh: New file.
55829         * tests/test-mbsspn.c: New file.
55830
55831 2007-02-11  Bruno Haible  <bruno@clisp.org>
55832
55833         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
55834
55835         * modules/mbspbrk-tests: New file.
55836         * tests/test-mbspbrk.sh: New file.
55837         * tests/test-mbspbrk.c: New file.
55838
55839 2007-02-11  Bruno Haible  <bruno@clisp.org>
55840
55841         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
55842         unneeded cast.
55843
55844         * modules/mbscspn-tests: New file.
55845         * tests/test-mbscspn.sh: New file.
55846         * tests/test-mbscspn.c: New file.
55847
55848 2007-02-11  Bruno Haible  <bruno@clisp.org>
55849
55850         * modules/mbscasecmp-tests: New file.
55851         * tests/test-mbscasecmp.sh: New file.
55852         * tests/test-mbscasecmp.c: New file.
55853
55854 2007-02-11  Bruno Haible  <bruno@clisp.org>
55855
55856         Ensure O(n) worst-case complexity of mbscasestr.
55857         * lib/mbscasestr.c: Include stdbool.h.
55858         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
55859         functions.
55860         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
55861         the bookkeeping indicates that it's worth it.
55862         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
55863
55864         * modules/mbscasestr-tests: New file.
55865         * tests/test-mbscasestr1.c: New file.
55866         * tests/test-mbscasestr2.sh: New file.
55867         * tests/test-mbscasestr2.c: New file.
55868         * tests/test-mbscasestr3.sh: New file.
55869         * tests/test-mbscasestr3.c: New file.
55870         * tests/test-mbscasestr4.sh: New file.
55871         * tests/test-mbscasestr4.c: New file.
55872         * m4/locale-tr.m4: New file.
55873
55874 2007-02-11  Bruno Haible  <bruno@clisp.org>
55875
55876         Ensure O(n) worst-case complexity of mbsstr.
55877         * lib/mbsstr.c: Include stdbool.h.
55878         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
55879         functions.
55880         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
55881         bookkeeping indicates that it's worth it.
55882         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
55883
55884         * modules/mbsstr-tests: New file.
55885         * tests/test-mbsstr1.c: New file.
55886         * tests/test-mbsstr2.sh: New file.
55887         * tests/test-mbsstr2.c: New file.
55888         * tests/test-mbsstr3.sh: New file.
55889         * tests/test-mbsstr3.c: New file.
55890         * m4/locale-fr.m4: New file.
55891
55892 2007-02-11  Bruno Haible  <bruno@clisp.org>
55893
55894         * lib/mbsrchr.c (mbsrchr): Fix bug.
55895
55896         * modules/mbsrchr-tests: New file.
55897         * tests/test-mbsrchr.sh: New file.
55898         * tests/test-mbsrchr.c: New file.
55899
55900 2007-02-11  Bruno Haible  <bruno@clisp.org>
55901
55902         * lib/mbschr.c (mbschr): Fix bug.
55903
55904         * modules/mbschr-tests: New file.
55905         * tests/test-mbschr.sh: New file.
55906         * tests/test-mbschr.c: New file.
55907         * m4/locale-zh.m4: New file.
55908
55909 2007-02-11  Bruno Haible  <bruno@clisp.org>
55910
55911         Support for copying multibyte string iterators.
55912         * lib/mbiter.h: Include <string.h>.
55913         (mbiter_multi_copy): New function.
55914         (mbi_copy): New macro.
55915         * lib/mbuiter.h: Include <string.h>.
55916         (mbuiter_multi_copy): New function.
55917         (mbui_copy): New macro.
55918
55919 2007-02-11  Bruno Haible  <bruno@clisp.org>
55920
55921         New module mbslen.
55922         * modules/mbslen: New file.
55923         * lib/mbslen.c: New file.
55924         * lib/string_.h (mbslen): New declaration.
55925         * m4/mbslen.m4: New file.
55926         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55927         GNULIB_MBSLEN.
55928         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
55929         * MODULES.html.sh (Internationalization functions): Add mbslen.
55930
55931 2007-02-11  Bruno Haible  <bruno@clisp.org>
55932
55933         Ensure O(n) worst-case complexity of strcasestr substitute.
55934         * lib/strcasestr.c: Include stdbool.h.
55935         (knuth_morris_pratt): New function.
55936         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
55937         bookkeeping indicates that it's worth it.
55938         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
55939
55940         * modules/strcasestr-tests: New file.
55941         * tests/test-strcasestr.c: New file.
55942
55943 2007-02-11  Bruno Haible  <bruno@clisp.org>
55944
55945         Ensure O(n) worst-case complexity of c_strcasestr.
55946         * lib/c-strcasestr.c: Include stdbool.h, string.h.
55947         (knuth_morris_pratt): New function.
55948         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
55949         the bookkeeping indicates that it's worth it.
55950         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
55951
55952         * modules/c-strcasestr-tests: New file.
55953         * tests/test-c-strcasestr.c: New file.
55954
55955 2007-02-11  Bruno Haible  <bruno@clisp.org>
55956
55957         Ensure O(n) worst-case complexity of c_strstr.
55958         * lib/c-strstr.c: Include stdbool.h, string.h.
55959         (knuth_morris_pratt): New function.
55960         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
55961         bookkeeping indicates that it's worth it.
55962         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
55963
55964         * lib/c-strstr.c: Complete rewrite for maintainability.
55965
55966         * modules/c-strstr-tests: New file.
55967         * tests/test-c-strstr.c: New file.
55968
55969 2007-02-11  Bruno Haible  <bruno@clisp.org>
55970
55971         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
55972         5.2.1 and earlier, whereby \055 was treated just like the range
55973         delimiter '-'.
55974         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
55975
55976 2007-02-08  Bruno Haible  <bruno@clisp.org>
55977
55978         * modules/regex (Depends-on): Add stdbool.
55979         Reported by Dalibor Topic <robilad@kaffe.org>.
55980
55981 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
55982
55983         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
55984         Prefer returning from main to exiting from it.
55985         Remove unnecessary parens after sizeof.
55986
55987 2007-02-05  Bruno Haible  <bruno@clisp.org>
55988
55989         New module mbssep.
55990         * modules/mbssep: New file.
55991         * lib/mbssep.c: New file.
55992         * lib/string_.h (strsep): Add a conditional link warning.
55993         (mbssep): New declaration.
55994         * m4/mbssep.m4: New file.
55995         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55996         GNULIB_MBSSEP.
55997         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
55998         * MODULES.html.sh (Internationalization functions): Add mbssep.
55999
56000 2007-02-05  Bruno Haible  <bruno@clisp.org>
56001
56002         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
56003         Optimize search in case of 1 delimiter.
56004
56005 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
56006
56007         * lib/acl.h: Include sys/types.h before sys/acl.h.
56008
56009 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
56010
56011         Merge upstream fix for glibc bugzilla #3957:
56012
56013         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
56014
56015         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
56016         bit for RE_HAT_LISTS_NOT_NEWLINE.
56017         (build_charclass_op): Remove bogus comment.
56018
56019 2007-02-05  Simon Josefsson  <simon@josefsson.org>
56020
56021         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
56022
56023 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
56024
56025         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
56026         * lib/memmem.c [!defined _LIBC]: Include config.h.
56027
56028 2007-02-04  Bruno Haible  <bruno@clisp.org>
56029
56030         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
56031         warning message.
56032
56033 2007-02-04  Bruno Haible  <bruno@clisp.org>
56034
56035         New module mbstok_r.
56036         * modules/mbstok_r: New file.
56037         * lib/mbstok_r.c: New file.
56038         * lib/string_.h (strtok_r): Change argument names to match the
56039         comments. Add a conditional link warning.
56040         (mbstok_r): New declaration.
56041         * m4/mbstok_r.m4: New file.
56042         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56043         GNULIB_MBSTOK_R.
56044         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
56045         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
56046
56047 2007-02-04  Bruno Haible  <bruno@clisp.org>
56048
56049         New module mbsspn.
56050         * modules/mbsspn: New file.
56051         * lib/mbsspn.c: New file.
56052         * lib/string_.h (strspn): Add a conditional link warning.
56053         (mbsspn): New declaration.
56054         * m4/mbsspn.m4: New file.
56055         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56056         GNULIB_MBSSPN.
56057         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
56058         * MODULES.html.sh (Internationalization functions): Add mbsspn.
56059
56060 2007-02-04  Bruno Haible  <bruno@clisp.org>
56061
56062         New module mbspbrk.
56063         * modules/mbspbrk: New file.
56064         * lib/mbspbrk.c: New file.
56065         * lib/string_.h (strpbrk): Add a conditional link warning.
56066         (mbspbrk): New declaration.
56067         * m4/mbspbrk.m4: New file.
56068         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56069         GNULIB_MBSPBRK.
56070         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
56071         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
56072
56073 2007-02-04  Bruno Haible  <bruno@clisp.org>
56074
56075         New module mbscspn.
56076         * modules/mbscspn: New file.
56077         * lib/mbscspn.c: New file.
56078         * lib/string_.h (strcspn): Add a conditional link warning.
56079         (mbscspn): New declaration.
56080         * m4/mbscspn.m4: New file.
56081         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56082         GNULIB_MBSCSPN.
56083         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
56084         * MODULES.html.sh (Internationalization functions): Add mbscspn.
56085
56086 2007-02-04  Bruno Haible  <bruno@clisp.org>
56087
56088         New module mbscasestr, reduced goal of strcasestr.
56089         * modules/mbscasestr: New file.
56090         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
56091         (mbscasestr): Renamed from strcasestr.
56092         * lib/strcasestr.c: Don't include mbuiter.h.
56093         (strcasestr): Remove support for multibyte locales.
56094         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
56095         Change the conditional link warning.
56096         (mbscasestr): New declaration.
56097         * m4/mbscasestr.m4: New file.
56098         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
56099         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
56100         REPLACE_STRCASESTR.
56101         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
56102         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
56103         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
56104         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
56105         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
56106         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
56107         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
56108         (Depends-on): Remove mbuiter.
56109         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
56110
56111 2007-02-04  Bruno Haible  <bruno@clisp.org>
56112
56113         Simplify handling of strncasecmp.
56114         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
56115         the conditional link warning.
56116         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
56117         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
56118         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
56119         * modules/strcase (configure.ac): Don't invoke
56120         gl_STRING_MODULE_INDICATOR.
56121         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
56122
56123 2007-02-04  Bruno Haible  <bruno@clisp.org>
56124
56125         New module mbscasecmp, reduced goal of strcasecmp.
56126         * modules/mbscasecmp: New file.
56127         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
56128         (mbscasecmp): Renamed from strcasecmp.
56129         * lib/strcasecmp.c: Don't include mbuiter.h.
56130         (strcasecmp): Remove support for multibyte locales.
56131         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
56132         Change the conditional link warning.
56133         (mbscasecmp): New declaration.
56134         * m4/mbscasecmp.m4: New file.
56135         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
56136         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
56137         REPLACE_STRCASECMP.
56138         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
56139         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56140         GNULIB_MBSCASECMP.
56141         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
56142         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
56143         * modules/strcase (Files): Remove m4/mbrtowc.m4.
56144         (Depends-on): Remove mbuiter.
56145         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
56146
56147 2007-02-04  Bruno Haible  <bruno@clisp.org>
56148
56149         New module mbsstr. Remove module strstr.
56150         * modules/mbsstr: New file.
56151         * modules/strstr: Remove file.
56152         * lib/mbsstr.c: Renamed from lib/strstr.c.
56153         (mbsstr): Renamed from strstr.
56154         * lib/string_.h (strstr): Remove declaration. Change the conditional
56155         link warning.
56156         (mbsstr): New declaration.
56157         * m4/mbsstr.m4: New file.
56158         * m4/strstr.m4: Remove file.
56159         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
56160         REPLACE_STRSTR.
56161         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
56162         Don't initialize GNULIB_STRSTR.
56163         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
56164         substitute GNULIB_STRSTR and REPLACE_STRSTR.
56165         * MODULES.html.sh (Internationalization functions): Add mbsstr.
56166         (Support for systems lacking ANSI C 89): Remove strstr.
56167
56168 2007-02-04  Bruno Haible  <bruno@clisp.org>
56169
56170         New module mbsrchr.
56171         * modules/mbsrchr: New file.
56172         * lib/mbsrchr.c: New file.
56173         * lib/string_.h (strrchr): Add a conditional link warning.
56174         (mbsrchr): New declaration.
56175         * m4/mbsrchr.m4: New file.
56176         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56177         GNULIB_MBSRCHR.
56178         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
56179         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
56180
56181 2007-02-04  Bruno Haible  <bruno@clisp.org>
56182
56183         New module mbschr.
56184         * modules/mbschr: New file.
56185         * lib/mbschr.c: New file.
56186         * lib/string_.h (strchr): Add a conditional link warning.
56187         (mbschr): New declaration.
56188         * m4/mbschr.m4: New file.
56189         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56190         GNULIB_MBSCHR.
56191         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
56192         * MODULES.html.sh (Internationalization functions): Add mbschr.
56193
56194 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
56195
56196         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
56197
56198         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
56199
56200 2007-02-04  Bruno Haible  <bruno@clisp.org>
56201
56202         New module description section 'configure.ac-early'.
56203         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
56204         (func_get_autoconf_early_snippet): New function.
56205         (func_import, func_create_testdir): Use it. Remove special cases for
56206         modules 'extensions' and 'lock'.
56207         * modules/extensions (configure.ac-early): Require
56208         gl_USE_SYSTEM_EXTENSIONS.
56209         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
56210
56211 2007-02-04  Bruno Haible  <bruno@clisp.org>
56212
56213         Make use of gcj-4.3's -fsource and -ftarget option.
56214         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
56215         and if so try the options -fsource and -ftarget.
56216         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
56217         source_version, ftarget_option, target_version arguments.
56218         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
56219         (is_envjavac_oldgcj_14_14_usable): Renamed from
56220         is_envjavac_gcj_14_14_usable.
56221         (is_envjavac_oldgcj_14_13_usable): Renamed from
56222         is_envjavac_gcj_14_13_usable.
56223         (is_gcj_present): Update.
56224         (is_gcj_43, is_gcj43_usable): New functions.
56225         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
56226         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
56227         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
56228         try the options -fsource and -ftarget.
56229
56230 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
56231
56232         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
56233         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
56234         larger value.
56235
56236 2007-02-03  Jim Meyering  <jim@meyering.net>
56237
56238         Give tools a better chance to allocate space for very large buffers.
56239         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
56240
56241         Make pwd and readlink work also when run with an unreadable parent dir
56242         on systems with openat support.
56243         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
56244         provided getcwd function, even when we have openat support.
56245         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
56246
56247 2007-02-02  Bruno Haible  <bruno@clisp.org>
56248
56249         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
56250         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
56251         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
56252         portability problems if one of these functions is only used on specific
56253         platforms.
56254         Reported by Paul Eggert.
56255
56256 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
56257
56258         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
56259         is causing more trouble than it's curing.
56260         * lib/regex_internal.h (__mempcpy): Remove.
56261         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
56262         (and make the code a tad smaller to boot).
56263         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
56264
56265 2007-02-02  Jim Meyering  <jim@meyering.net>
56266
56267         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
56268         section, not in the Makefile.am: one.
56269
56270 2007-02-02  Eric Blake  <ebb9@byu.net>
56271
56272         * lib/strchrnul.c: Always include config.h first.
56273
56274         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
56275         gnulib strstr is not necessary here.
56276
56277 2007-02-02  Simon Josefsson  <simon@josefsson.org>
56278
56279         * m4/socklen.m4: Fix typo.
56280
56281 2007-02-02  Eric Blake  <ebb9@byu.net>
56282
56283         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
56284         * modules/netinet_in (Makefile.am): Likewise.
56285
56286 2007-02-01  Bruno Haible  <bruno@clisp.org>
56287
56288         * lib/string_.h (GL_LINK_WARNING): New macro.
56289         (strcasecmp, strstr, strcasestr): If provided by the system,
56290         conditionally define as a macro that leads to a warning instead of to
56291         an error.
56292         (strncasecmp): Conditionally define as a macro that leads to a warning.
56293
56294 2007-02-01  Karl Berry  <karl@gnu.org>
56295
56296         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
56297
56298 2007-02-01  Bruno Haible  <bruno@clisp.org>
56299
56300         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
56301         renamings.
56302
56303 2007-02-01  Eric Blake  <ebb9@byu.net>
56304
56305         * modules/regex (Depends-on): Revert dependence on mempcpy.
56306         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
56307         module's definition of mempcpy.
56308         Reported by Paul Eggert.
56309
56310 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
56311
56312         * lib/string_.h: If the gnulib module XYZ is not present, undefine
56313         the symbol XYZ before redefining it.  This fixes a problem with
56314         programs that don't use XYZ, when compiled on systems that define
56315         XYZ to something else.
56316
56317 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
56318
56319         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
56320         occurs when "mkdir -m foo" creates a setgid directory that is (1)
56321         writeable to group or other and (2) is intended to have a special
56322         mode bit that is set or cleared.  In such a case, the directory
56323         should be neither group- nor other-writeable until the special
56324         mode bits are right.
56325
56326 2007-01-31  Eric Blake  <ebb9@byu.net>
56327
56328         * modules/mountlist (Depends-on): Add strstr.
56329
56330         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
56331         bug.
56332         * modules/string (Makefile.am): Remove redundant replacement.
56333         * modules/regex (Depends-on): Add mempcpy.
56334
56335 2007-01-31  Bruno Haible  <bruno@clisp.org>
56336
56337         New module description field 'Link'.
56338         * gnulib-tool (func_usage): Document --extract-link-directive.
56339         (sed_extract_prog): Recognize 'Link' directive.
56340         (func_get_link_directive): New function.
56341         (func_import): Show summary of link directives.
56342         Handle --extract-link-directive option.
56343         * modules/acl (Link): New section.
56344         * modules/clock-time (Link): New section.
56345         * modules/euidaccess (Link): New section.
56346         * modules/gettext (Link): New section.
56347         * modules/iconv (Link): New section.
56348         * modules/lock (Link): New section.
56349         * modules/nanosleep (Link): New section.
56350         * modules/readline (Link): New section.
56351
56352 2007-01-27  Bruno Haible  <bruno@clisp.org>
56353
56354         Enforce the use of gnulib modules for unportable <string.h> functions.
56355         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
56356         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
56357         (gl_HEADER_STRING_H_BODY): Require it.
56358         * lib/string_.h: If the gnulib module XYZ is not present, redefine
56359         the symbol XYZ to one that gives a link error.
56360         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
56361         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
56362         * modules/mempcpy (configure.ac): Likewise.
56363         * modules/memrchr (configure.ac): Likewise.
56364         * modules/stpcpy (configure.ac): Likewise.
56365         * modules/stpncpy (configure.ac): Likewise.
56366         * modules/strcase (configure.ac): Likewise.
56367         * modules/strcasestr (configure.ac): Likewise.
56368         * modules/strchrnul (configure.ac): Likewise.
56369         * modules/strdup (configure.ac): Likewise.
56370         * modules/strndup (configure.ac): Likewise.
56371         * modules/strnlen (configure.ac): Likewise.
56372         * modules/strpbrk (configure.ac): Likewise.
56373         * modules/strsep (configure.ac): Likewise.
56374         * modules/strstr (configure.ac): Likewise.
56375         * modules/strtok_r (configure.ac): Likewise.
56376
56377 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
56378
56379         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
56380
56381 2007-01-30  Jim Meyering  <jim@meyering.net>
56382
56383         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
56384
56385 2007-01-29  Bruno Haible  <bruno@clisp.org>
56386
56387         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
56388         * lib/execute.c: Likewise.
56389         * lib/pipe.c: Likewise.
56390         * lib/printf-args.h: Likewise.
56391         * lib/printf-args.c: Likewise.
56392         * lib/printf-parse.c: Likewise.
56393         * lib/vasnprintf.c: Likewise.
56394
56395 2007-01-29  Eric Blake  <ebb9@byu.net>
56396
56397         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
56398         declaration.
56399
56400 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
56401
56402         * lib/strptime.h (strptime): Use 'restrict' for args where
56403         POSIX requires this.
56404         * lib/strptime.c (strptime): Likewise.
56405         Change license notice from LGPL to GPL, since gnulib-tool will
56406         change this as needed.
56407         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
56408         defined.
56409         Include "strptime.h" first, to check interface.
56410         Do not #undef _LIBC and _NL_CURRENT.
56411         Do not include <stdlib.h>; no longer needed.
56412         Include "time_r.h" and declare ptime_locale_status
56413         only if _LIBC is not defined.
56414         (__P): Remove unused macro.
56415         (match_string): Bring back glibc version, but use it only if _LIBC
56416         is defined.
56417         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
56418         Remove unnecessary assertion and abort() call.
56419         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
56420         * m4/strptime.m4: Fix serial number comment.
56421         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
56422         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
56423         (Depends-on): Add time_r.
56424
56425 2007-01-29  Bruno Haible  <bruno@clisp.org>
56426
56427         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56428         strptime.
56429         * modules/strptime (Depends-on): Add stdbool.
56430         * lib/strptime.h: Include <time.h> always. Add comments.
56431
56432 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
56433
56434         * modules/strptime: New file.
56435         * lib/strptime.h: New file.
56436         * lib/strptime.c: New file.
56437         * m4/strptime.m4: New file.
56438
56439 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
56440
56441         * MODULES.html.sh: New module mpsort.
56442         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
56443
56444         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
56445         a circularity problem with HP-UX ia64 reported by Bob Proulx in
56446         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
56447         All uses changed.
56448         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
56449         All uses changed.
56450         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
56451         to _Restrict_.
56452         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
56453         the parameter matches the prototype.
56454
56455 2007-01-28  Jim Meyering  <jim@meyering.net>
56456
56457         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
56458         sys/time.h here, reverting that part of the previous patch:
56459         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
56460
56461 2007-01-28  Bruno Haible  <bruno@clisp.org>
56462
56463         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
56464         value of $(SYS_TIME_H).
56465         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
56466         remove it conditionally, too. [added by Jim Meyering]
56467         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
56468         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
56469         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
56470         GETTIMEOFDAY_REPLACEMENT to 1.
56471
56472 2007-01-28  Bruno Haible  <bruno@clisp.org>
56473
56474         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
56475         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
56476         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
56477         Set UNISTD_H instead of UNISTD_H2.
56478         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
56479
56480 2007-01-28  Bruno Haible  <bruno@clisp.org>
56481
56482         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
56483         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
56484
56485 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56486
56487         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
56488         (func_create_testdir): Ensure C locale for `grep' and `tr'
56489         character ranges.
56490         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
56491         ACLOCAL_AMFLAGS parsing state machine.
56492
56493 2007-01-27  Bruno Haible  <bruno@clisp.org>
56494
56495         * modules/unistr/base: Update.
56496
56497 2007-01-27  Bruno Haible  <bruno@clisp.org>
56498
56499         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
56500         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
56501         * modules/unistr/u32-mbtouc-unsafe: Renamed from
56502         modules/unistr/u32-mbtouc.
56503         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
56504         * lib/unistr.h: Update.
56505         * lib/linebreak.c: Update.
56506         * modules/unistr/u32-mbtouc: Renamed from
56507         modules/unistr/u32-mbtouc-safe.
56508         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
56509         * lib/unistr.h: Update.
56510         * lib/unistr/u32-to-u8.c: Update.
56511         * lib/unistr/u32-to-u16.c: Update.
56512
56513 2007-01-27  Bruno Haible  <bruno@clisp.org>
56514
56515         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
56516         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
56517         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
56518         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
56519         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
56520         * modules/unistr/u16-mbtouc-unsafe: Renamed from
56521         modules/unistr/u16-mbtouc.
56522         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
56523         * lib/unistr.h: Update.
56524         * lib/linebreak.c: Update.
56525         * modules/linebreak: Update.
56526         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
56527         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
56528         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
56529         * modules/unistr/u16-mbtouc: Renamed from
56530         modules/unistr/u16-mbtouc-safe.
56531         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
56532         * lib/unistr.h: Update.
56533         * lib/unistr/u16-to-u8.c: Update.
56534         * modules/unistr/u16-to-u8: Update.
56535         * lib/unistr/u16-to-u32.c: Update.
56536         * modules/unistr/u16-to-u32: Update.
56537
56538 2007-01-27  Bruno Haible  <bruno@clisp.org>
56539
56540         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
56541         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
56542         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
56543         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
56544         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
56545         * modules/unistr/u8-mbtouc-unsafe: Renamed from
56546         modules/unistr/u8-mbtouc.
56547         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
56548         * lib/unistr.h: Update.
56549         * lib/striconveh.c: Update.
56550         * modules/striconveh: Update.
56551         * lib/linebreak.c: Update.
56552         * modules/linebreak: Update.
56553         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
56554         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
56555         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
56556         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
56557         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
56558         * lib/unistr.h: Update.
56559         * lib/striconveh.c: Update.
56560         * modules/striconveh: Update.
56561         * lib/unistr/u8-to-u16.c: Update.
56562         * modules/unistr/u8-to-u16: Update.
56563         * lib/unistr/u8-to-u32.c: Update.
56564         * modules/unistr/u8-to-u32: Update.
56565
56566 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56567
56568         Sync from Libtool.
56569         * lib/argz.c: Do not include strings.h nor memory.h, include
56570         string.h unconditionally.  Patch by Simon Josefsson.
56571
56572 2007-01-27  Bruno Haible  <bruno@clisp.org>
56573
56574         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
56575         from gl_HEADER_STRING_H_BODY.
56576         (gl_HEADER_STRING_H_BODY): Require it.
56577         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
56578         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
56579         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
56580         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
56581         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
56582         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
56583         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56584         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
56585         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
56586         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
56587         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
56588         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
56589         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
56590         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56591         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
56592
56593 2007-01-27  Bruno Haible  <bruno@clisp.org>
56594
56595         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
56596         check_PROGRAMS into noinst_PROGRAMS.
56597         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
56598         check_PROGRAMS in this case.
56599         (func_import): Set for_test to false.
56600         (func_create_testdir): Set for_test to true.
56601
56602 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
56603             Bruno Haible  <bruno@clisp.org>
56604
56605         * modules/strcasestr (Files): Remove lib/strcasestr.h.
56606         (Depends-on): Add string.
56607         (Includes): Use <string.h> instead of strcasestr.h.
56608         * modules/string (Makefile.am): Also substitute the value of
56609         REPLACE_STRCASESTR.
56610         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
56611         assume strcasestr is declared in <string.h> not <strings.h>. Also
56612         set REPLACE_STRCASESTR.
56613         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
56614         REPLACE_STRCASESTR.
56615         * lib/strcasestr.h: Remove file.
56616         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
56617         * lib/string_.h (strcasestr): New declaration.
56618
56619 2007-01-27  Bruno Haible  <bruno@clisp.org>
56620
56621         * lib/string_.h: Use 'extern'.
56622
56623 2007-01-27  Jim Meyering  <jim@meyering.net>
56624
56625         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
56626         of set-but-not-used local, "q".
56627
56628         * lib/mempcpy.c: Include <config.h> before <string.h>.
56629         This fixes a compilation error on HP-UX, due to the system's
56630         "restrict"-using mempcpy prototype.
56631
56632 2007-01-26  Bruno Haible  <bruno@clisp.org>
56633
56634         Small optimization.
56635         * lib/javacomp.c: Include c-strstr.h.
56636          (is_envjavac_gcj): Use c_strstr instead of strstr.
56637         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
56638
56639 2007-01-26  Bruno Haible  <bruno@clisp.org>
56640
56641         * MODULES.html.sh (Unicode string functions): Add the new modules.
56642
56643         * modules/uniconv/u32-strconv-to-locale: New file.
56644         * lib/uniconv/u32-strconv-to-locale.c: New file.
56645
56646         * modules/uniconv/u16-strconv-to-locale: New file.
56647         * lib/uniconv/u16-strconv-to-locale.c: New file.
56648
56649         * modules/uniconv/u8-strconv-to-locale: New file.
56650         * lib/uniconv/u8-strconv-to-locale.c: New file.
56651
56652         * modules/uniconv/u32-strconv-from-locale: New file.
56653         * lib/uniconv/u32-strconv-from-locale.c: New file.
56654
56655         * modules/uniconv/u16-strconv-from-locale: New file.
56656         * lib/uniconv/u16-strconv-from-locale.c: New file.
56657
56658         * modules/uniconv/u8-strconv-from-locale: New file.
56659         * lib/uniconv/u8-strconv-from-locale.c: New file.
56660
56661         * modules/uniconv/u32-strconv-to-enc: New file.
56662         * lib/uniconv/u32-strconv-to-enc.c: New file.
56663         * modules/uniconv/u32-strconv-to-enc-tests: New file.
56664         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
56665
56666         * modules/uniconv/u16-strconv-to-enc: New file.
56667         * lib/uniconv/u16-strconv-to-enc.c: New file.
56668         * lib/uniconv/u-strconv-to-enc.h: New file.
56669         * modules/uniconv/u16-strconv-to-enc-tests: New file.
56670         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
56671
56672         * modules/uniconv/u8-strconv-to-enc: New file.
56673         * lib/uniconv/u8-strconv-to-enc.c: New file.
56674         * modules/uniconv/u8-strconv-to-enc-tests: New file.
56675         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
56676
56677         * modules/uniconv/u32-strconv-from-enc: New file.
56678         * lib/uniconv/u32-strconv-from-enc.c: New file.
56679         * modules/uniconv/u32-strconv-from-enc-tests: New file.
56680         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
56681
56682         * modules/uniconv/u16-strconv-from-enc: New file.
56683         * lib/uniconv/u16-strconv-from-enc.c: New file.
56684         * modules/uniconv/u16-strconv-from-enc-tests: New file.
56685         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
56686
56687         * modules/uniconv/u8-strconv-from-enc: New file.
56688         * lib/uniconv/u8-strconv-from-enc.c: New file.
56689         * lib/uniconv/u-strconv-from-enc.h: New file.
56690         * modules/uniconv/u8-strconv-from-enc-tests: New file.
56691         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
56692
56693         * modules/uniconv/u32-conv-from-enc: New file.
56694         * lib/uniconv/u32-conv-from-enc.c: New file.
56695         * modules/uniconv/u32-conv-from-enc-tests: New file.
56696         * tests/uniconv/test-u32-conv-from-enc.c: New file.
56697
56698         * modules/uniconv/u16-conv-from-enc: New file.
56699         * lib/uniconv/u16-conv-from-enc.c: New file.
56700         * lib/uniconv/u-conv-from-enc.h: New file.
56701         * modules/uniconv/u16-conv-from-enc-tests: New file.
56702         * tests/uniconv/test-u16-conv-from-enc.c: New file.
56703
56704         * modules/uniconv/u8-conv-from-enc: New file.
56705         * lib/uniconv/u8-conv-from-enc.c: New file.
56706         * modules/uniconv/u8-conv-from-enc-tests: New file.
56707         * tests/uniconv/test-u8-conv-from-enc.c: New file.
56708
56709         * modules/uniconv/base: New file.
56710         * lib/uniconv.h: New file.
56711
56712 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
56713
56714         * doc/gnulib-tool.texi (Initial import): Update to match current
56715         behavior with strdup module.
56716         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
56717         * lib/memmem.h: Remove; all uses removed.  This is now done
56718         by <string.h>.
56719         * lib/mempcpy.h: Likewise.
56720         * lib/memrchr.h: Likewise.
56721         * lib/stpcpy.h: Likewise.
56722         * lib/stpncpy.h: Likewise.
56723         * lib/strcase.h: Likewise.
56724         * lib/strchrnul.h: Likewise.
56725         * lib/strdup.h: Likewise.
56726         * lib/strndup.h: Likewise.
56727         * lib/strnlen.h: Likewise.
56728         * lib/strpbrk.h: Likewise.
56729         * lib/strsep.h: Likewise.
56730         * lib/strstr.h: Likewise.
56731         * lib/strtok_r.h: Likewise.
56732         * lib/string_.h: New file.
56733         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
56734         Rely on <string.h> instead.
56735         * lib/canon-host.c: Likewise.
56736         * lib/chdir-long.c: Likewise.
56737         * lib/concatpath.c: Likewise.
56738         * lib/exclude.c: Likewise.
56739         * lib/fchdir.c: Likewise.
56740         * lib/getaddrinfo.c: Likewise.
56741         * lib/getcwd.c: Likewise.
56742         * lib/getsubopt.c: Likewise.
56743         * lib/glob.c: Likewise.
56744         * lib/hard-locale.c: Likewise.
56745         * lib/iconvme.c: Likewise.
56746         * lib/javacomp.c: Likewise.
56747         * lib/mempcpy.c: Likewise.
56748         * lib/memrchr.c: Likewise.
56749         * lib/regex_internal.h: Likewise.
56750         * lib/stpncpy.c: Likewise.
56751         * lib/strcasecmp.c: Likewise.
56752         * lib/strchrnul.c: Likewise.
56753         * lib/strdup.c: Likewise.
56754         * lib/striconv.c: Likewise.
56755         * lib/striconveh.c: Likewise.
56756         * lib/striconveha.c: Likewise.
56757         * lib/strncasecmp.c: Likewise.
56758         * lib/strndup.c: Likewise.
56759         * lib/strnlen.c: Likewise.
56760         * lib/strsep.c: Likewise.
56761         * lib/strstr.c: Likewise.
56762         * lib/strtok_r.c: Likewise.
56763         * lib/userspec.c: Likewise.
56764         * lib/w32spawn.h: Likewise.
56765         * lib/xstrndup.c: Likewise.
56766         * lib/mountlist.c (strstr): Remove decl.
56767         * m4/string_h.m4: New file.
56768         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
56769         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
56770         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
56771         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
56772         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
56773         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
56774         Set REPLACE_STRCASECMP if necessary.
56775         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
56776         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
56777         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
56778         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
56779         HAVE_DECL_STRDUP if necessary.
56780         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
56781         since gl_FUNC_STRNDUP does that now.
56782         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
56783         Check for decl here...
56784         (gl_PREREQ_STRNLEN): ... not here.
56785         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
56786         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
56787         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
56788         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
56789         necessary.
56790         * modules/string: New file.
56791         * modules/memmem (Files): Remove special-purpose include file.
56792         (Depends-on): Add string.
56793         (Include): Include <string.h>, not the removed file.
56794         * modules/mempcpy: Likewise.
56795         * modules/memrchr: Likewise.
56796         * modules/stpcpy: Likewise.
56797         * modules/stpncpy: Likewise.
56798         * modules/strcase: Likewise.
56799         * modules/strchrnul: Likewise.
56800         * modules/strdup: Likewise.
56801         * modules/strndup: Likewise.
56802         * modules/strnlen: Likewise.
56803         * modules/strpbrk: Likewise.
56804         * modules/strsep: Likewise.
56805         * modules/strstr: Likewise.
56806         * modules/strtok_r: Likewise.
56807         * tests/test-dirname.c: Don't include "strdup.h", since
56808         <string.h> now suffices.
56809         * tests/test-memmem.c: Don't include "memmem.h", since
56810         <string.h> now suffices.
56811
56812 2007-01-25  Bruno Haible  <bruno@clisp.org>
56813
56814         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
56815         *resultp is 0.
56816
56817         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
56818         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
56819         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
56820         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
56821
56822         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
56823         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
56824         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
56825         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
56826         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
56827         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
56828
56829 2007-01-24  Bruno Haible  <bruno@clisp.org>
56830
56831         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
56832         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
56833         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
56834         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
56835         gl_FUNC_FTS_CORE.
56836         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
56837         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
56838         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
56839         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
56840         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
56841         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
56842         gl_FUNC_FCHOWNAT.
56843         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
56844         gl_FUNC_STRFTIME.
56845         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
56846         Reported by Ralf Wildenhues.
56847
56848 2007-01-24  Bruno Haible  <bruno@clisp.org>
56849
56850         Drop AC_REQUIRE calls that are redundant with the module dependencies.
56851         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
56852         gl_GETADDRINFO.
56853         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
56854         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
56855         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
56856
56857 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
56858
56859         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
56860         Don't use 'exit'; just return from 'main'.
56861         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
56862
56863         * lib/fnmatch_.h: Readjust white space and comments to match
56864         glibc, to avoid spurious diffs.
56865
56866 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
56867
56868         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
56869         2004-12-01 change by Jakub Jelinek, since this code won't compile
56870         if !LIBC.  Problem reported by Bob Proulx.
56871
56872 2007-01-23  Bruno Haible  <bruno@clisp.org>
56873
56874         * lib/striconveh.c: Include c-strcaseeq.h.
56875         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
56876         * modules/striconveh (Depends-on): Add c-strcaseeq.
56877
56878 2007-01-23  Bruno Haible  <bruno@clisp.org>
56879
56880         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
56881
56882         * modules/c-strcaseeq: New file.
56883         * lib/c-strcaseeq.h: New file.
56884
56885         * modules/streq: New file.
56886         * lib/streq.h: New file.
56887
56888 2007-01-23  Bruno Haible  <bruno@clisp.org>
56889
56890         * modules/striconveha-tests: New file.
56891         * tests/test-striconveha.c: New file.
56892
56893         * lib/striconveha.h: Include <stdbool.h>.
56894         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
56895         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
56896         (mem_iconveha_notranslit): Renamed from mem_iconveha.
56897         (mem_iconveha): New function.
56898         (str_iconveha_notranslit): Renamed from str_iconveha.
56899         (str_iconveha): New function.
56900         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
56901         c-strcase.
56902
56903 2007-01-23  Bruno Haible  <bruno@clisp.org>
56904
56905         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
56906         encodings without forgiving before trying any encoding with handler.
56907         (str_iconveha): Try all encodings without forgiving before trying any
56908         encoding with handler.
56909
56910 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
56911
56912         Import the following changes from libc.
56913
56914         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
56915
56916         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
56917
56918         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
56919
56920         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
56921         normal_bracket label.
56922
56923         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
56924
56925         [BZ #361]
56926         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
56927         to normal_bracket after fetching the next character.
56928
56929 2007-01-22  Bruno Haible  <bruno@clisp.org>
56930
56931         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
56932         argument.
56933         * lib/striconveh.c (iconv_carefully_1): New function.
56934         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
56935         argument.
56936         (str_cd_iconveh): Update.
56937         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
56938         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
56939         * tests/test-striconveh.c (MAGIC): New macro.
56940         (new_offsets): New function.
56941         (main): Test call with and without offsets.
56942
56943 2007-01-22  Bruno Haible  <bruno@clisp.org>
56944
56945         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
56946         * modules/sys_select (Makefile.am): Likewise.
56947         * modules/sys_socket (Makefile.am): Likewise.
56948         * modules/sys_time (Makefile.am): Likewise.
56949
56950 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
56951
56952         * modules/gettimeofday (License): Change from GPL to LGPL, since
56953         gettimeofday is a library function.
56954
56955 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56956
56957         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
56958
56959 2007-01-21  Bruno Haible  <bruno@clisp.org>
56960
56961         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
56962
56963 2007-01-21  Bruno Haible  <bruno@clisp.org>
56964
56965         * modules/striconveha: New file.
56966         * lib/striconveha.h: New file.
56967         * lib/striconveha.c: New file.
56968         * MODULES.html.sh (Internationalization functions): Add striconveha.
56969         * lib/striconv.c (str_iconv): Optimize the case of an empty input
56970         string.
56971         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
56972
56973 2007-01-21  Bruno Haible  <bruno@clisp.org>
56974
56975         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
56976         * lib/striconveh.c (str_iconveh): Likewise.
56977
56978 2007-01-21  Bruno Haible  <bruno@clisp.org>
56979
56980         * lib/striconveh.h (mem_iconveh): New declaration.
56981         * lib/striconveh.c (mem_iconveh): New function.
56982         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
56983
56984 2007-01-21  Bruno Haible  <bruno@clisp.org>
56985
56986         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
56987
56988         * lib/striconveh.h (mem_cd_iconveh): Change specification.
56989         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
56990         original result buffer.
56991         (str_cd_iconveh): Update.
56992         * tests/test-striconveh.c (main): Update.
56993
56994         * lib/striconv.h (mem_cd_iconv): Change specification.
56995         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
56996         result buffer.
56997         (str_cd_iconv): Update.
56998         * tests/test-striconv.c (main): Update.
56999
57000 2007-01-21  Bruno Haible  <bruno@clisp.org>
57001
57002         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
57003
57004 2007-01-20  Jim Meyering  <jim@meyering.net>
57005
57006         * lib/userspec.c (parse_with_separator): If a user or group string
57007         starts with "+", skip the corresponding name-to-ID look-up, since
57008         such a look-up must fail: user and group names may not include "+".
57009
57010 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
57011
57012         * lib/poll.c: Include sys/time.h and time.h unconditionally,
57013         since we now assume the sys_time module.
57014         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
57015         check for sys/time.h; no longer needed.
57016         * modules/poll (Depends-on): Depend on sys_time.
57017
57018 2007-01-18  Bruno Haible  <bruno@clisp.org>
57019
57020         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
57021         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
57022
57023         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
57024         gettimeofday.
57025
57026         * tests/test-gettimeofday.c: Include <time.h>.
57027         (dummy): Remove variable.
57028
57029         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
57030         gl_HEADER_SYS_TIME_H.
57031         (gl_HEADER_SYS_TIME_H): New macro.
57032
57033         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
57034         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57035         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
57036         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
57037         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57038         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
57039         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
57040         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57041         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
57042         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
57043         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57044
57045         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
57046         last change; it caused a compilation error when cross-compiling to
57047         Cygwin.
57048
57049 2007-01-18  Jim Meyering  <jim@meyering.net>
57050
57051         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
57052         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
57053         than the race-prone "test -d sys || mkdir sys".
57054         (configure.ac): Use AC_PROG_MKDIR_P.
57055         * modules/sys_select: Likewise.
57056         * modules/sys_socket: Likewise.
57057         * modules/sys_time: Likewise.
57058
57059 2007-01-18  Eric Blake  <ebb9@byu.net>
57060
57061         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
57062         replace gettimeofday.
57063         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
57064         name, to avoid infinite recursion.
57065
57066 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
57067
57068         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
57069         module sys_time.
57070         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
57071         assume timespec.h defines struct timeval.
57072         * lib/settime.c: Likewise.
57073         * lib/utimens.c: Likewise.
57074         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
57075         since we now assume the gettimeofday module.
57076         * lib/tempname.c (__gen_tempname): Likewise.
57077         * lib/gettimeofday.h: Remove.
57078         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
57079         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
57080         Include <time.h>, for 'time()'.
57081         (localtime_buffer_addr): Also use this workaround if
57082         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
57083         to simplify the uses.  All uses changed.
57084         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
57085         that #undef is inside {}, and 'const' follows type name consistently.
57086         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
57087         (gettimeofday): Do not use the maximum possible value for
57088         tv->tv_usec, since that might break usages other than ls.c.
57089         Instead, we'll leave ls.c alone.  This undoes today's patch
57090         by Bruno.  Add a compile-time warning for 1s-clock resolution;
57091         we've never observed the problem but might as well keep the
57092         canary.
57093         * lib/nanosleep.c: Include timespec.h first, for interface check.
57094         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
57095         now assume the sys_time module.
57096         * lib/tempname.c: Likewise.
57097         * lib/timespec.h: Likewise.
57098         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
57099         needed.
57100         * lib/strftime.c: Likewise.
57101         * lib/timespec.h: Likewise.
57102         * lib/posixtm.c: Include posixtm.h first, for interface check.
57103         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
57104         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
57105         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
57106         * lib/sys_time_.h: New file.
57107         * lib/timespec.h (struct timespec): Use long int, not long.
57108         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
57109         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
57110         Remove obsolescent call to AC_HEADER_TIME.
57111         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
57112         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
57113         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
57114         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
57115         Likewise.
57116         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
57117         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
57118         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
57119         into the sys_time module.  Check for gettimeofday just once.
57120         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
57121         for gettimeofday signature to just check the signature.  Merely
57122         compile it, since linking doesn't test signature.  Improve test for
57123         whether gettimeofday.o is actually needed.
57124         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
57125         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
57126         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
57127         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57128         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
57129         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
57130         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
57131         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
57132         than worrying about sys/time.h.
57133         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
57134         Don't bother worrying about TIME_WITH_SYS_TIME.
57135         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
57136         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
57137         * m4/sys_time_h.m4: New file.
57138         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
57139         Don't include sys/time.h.  Return from main rather than exiting.
57140         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
57141         all uses changed.
57142         * modules/gethrxtime (Depends-on): Add sys_time.
57143         * modules/gettime (Depends-on): Likewise.
57144         * modules/gettimeofday (Depends-on): Likewise.
57145         * modules/nanosleep (Depends-on): Likewise.
57146         * modules/settime (Depends-on): Likewise.
57147         * modules/tempname (Depends-on): Likewise.
57148         * modules/utimens (Depends-on): Likewise.
57149         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
57150         (Include): Change back to <sys/time.h>.
57151         (Maintainer): Add self.
57152         * modules/sys_time: New file.
57153         * modules/tempname (Depends-on): Add gettimeofday.
57154         * tests/test-gettimeofday.c: Include <sys/time.h>
57155         rather than gettimeofday.h.
57156
57157 2007-01-17  Bruno Haible  <bruno@clisp.org>
57158
57159         * gnulib-tool (func_get_license): Revert last patch. Instead, let
57160         the license default to GPL.
57161         (func_create_testdir): Don't complain if a module is LGPL and its
57162         tests module depends on GPLed modules.
57163
57164 2007-01-17  Bruno Haible  <bruno@clisp.org>
57165
57166         * lib/gettimeofday.c (gettimeofday): Add code for the case
57167         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
57168         maximum possible value for tv->tv_usec, rather than the minimum one.
57169
57170 2005-10-08  Martin Lambers  <marlam@marlam.de>
57171 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
57172 2007-01-16  Bruno Haible  <bruno@clisp.org>
57173
57174         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
57175         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
57176         gl_FUNC_GETTIMEOFDAY.
57177         (Include): Add gettimeofday.h.
57178         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
57179         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
57180         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
57181         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
57182         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
57183         * lib/gettimeofday.h: New file.
57184         * lib/gettimeofday.c: Include <sys/timeb.h>.
57185         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
57186         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57187         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
57188         fall back on time().
57189
57190         * tests/test-gettimeofday.c: New file.
57191         * modules/gettimeofday-tests: New file.
57192
57193 2007-01-16  Eric Blake  <ebb9@byu.net>
57194
57195         * modules/fnmatch (Depends-on): Depend on wchar.
57196         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
57197         * m4/fnmatch.m4: Likewise.
57198         * modules/mbchar (Makefile.am): Assume <wchar.h>.
57199         * m4/mbchar.m4: Likewise.
57200         * modules/mbswidth (Depends-on): Depend on wchar.
57201         * lib/mbswidth.c: Assume <wchar.h>.
57202         * m4/mbswidth.m4: Likewise.
57203         * modules/quotearg (Depends-on): Depend on wchar.
57204         * lib/quotearg.c: Assume <wchar.h>.
57205         * m4/quotearg.m4: Likewise.
57206         * modules/regex (Depends-on): Depend on wchar.
57207         * lib/regex_internal.h: Assume <wchar.h>.
57208         * m4/regex.m4: Likewise.
57209         * modules/stdint (Depends-on): Depend on wchar.
57210         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
57211         * m4/stdint.m4: Likewise.
57212         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
57213         * modules/strftime (Depends-on): Depend on wchar.
57214         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
57215         * modules/strtol (Depends-on): Depend on wchar.
57216         * lib/strtol.c: Assume <wchar.h>.
57217         * modules/wcwidth (Depends-on): Depend on wchar.
57218         * lib/wcwidth.h: Assume <wchar.h>.
57219         * m4/wcwidth.m4: Likewise.
57220
57221 2007-01-16  Bruno Haible  <bruno@clisp.org>
57222
57223         * modules/csharpexec-script: New, created from...
57224         * modules/csharpexec: ... this.
57225
57226 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
57227
57228         * modules/javaexec-script: New, created from...
57229         * modules/javaexec: ... this.
57230
57231 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57232
57233         * modules/poll (Dependencies): Add sys_select.
57234
57235 2007-01-15  Jim Meyering  <jim@meyering.net>
57236
57237         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
57238         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
57239         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
57240         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
57241
57242 2007-01-15  Bruno Haible  <bruno@clisp.org>
57243
57244         * modules/striconveh: New file.
57245         * lib/striconveh.h: New file.
57246         * lib/striconveh.c: New file.
57247         * MODULES.html.sh (Internationalization functions): Add striconveh.
57248
57249         * modules/striconveh-tests: New file.
57250         * tests/test-striconveh.c: New file.
57251
57252 2007-01-15  Bruno Haible  <bruno@clisp.org>
57253
57254         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
57255         not from GNU libiconv or GNU libc.
57256
57257 2007-01-15  Bruno Haible  <bruno@clisp.org>
57258
57259         * doc/gnulib-intro.texi (Copyright): Explain the different license
57260         terms for module descriptions, autoconf macros, tests, documentation.
57261
57262 2007-01-14  Bruno Haible  <bruno@clisp.org>
57263
57264         * modules/striconv-tests: New file.
57265         * tests/test-striconv.c: New file.
57266
57267 2007-01-14  Bruno Haible  <bruno@clisp.org>
57268
57269         * modules/iconv-tests: New file.
57270         * tests/test-iconv.c: New file.
57271
57272 2007-01-14  Bruno Haible  <bruno@clisp.org>
57273
57274         * gnulib-tool (func_get_license): For test modules, use the license of
57275         the main module.
57276
57277 2007-01-14  Bruno Haible  <bruno@clisp.org>
57278
57279         * modules/iconv (Include): Clarify that <iconv.h> can only be included
57280         if iconv is found to exist.
57281
57282 2007-01-14  Bruno Haible  <bruno@clisp.org>
57283
57284         * modules/c-ctype-tests: New file.
57285         * tests/test-c-ctype.c: New file.
57286
57287 2007-01-14  Bruno Haible  <bruno@clisp.org>
57288
57289         * modules/binary-io-tests: New file.
57290         * tests/test-binary-io.sh: New file.
57291         * tests/test-binary-io.c: New file.
57292
57293 2007-01-14  Bruno Haible  <bruno@clisp.org>
57294
57295         * modules/array-oset-tests: New file.
57296         * tests/test-array_oset.c: New file.
57297
57298 2007-01-14  Bruno Haible  <bruno@clisp.org>
57299
57300         * modules/array-list-tests: New file.
57301         * tests/test-array_list.c: New file.
57302
57303 2007-01-14  Bruno Haible  <bruno@clisp.org>
57304
57305         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
57306         and make.
57307         Reported by Simon Josefsson in
57308         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
57309
57310 2007-01-14  Bruno Haible  <bruno@clisp.org>
57311
57312         * modules/allocsa-tests: New file.
57313         * tests/test-allocsa.c: New file.
57314
57315 2007-01-14  Bruno Haible  <bruno@clisp.org>
57316
57317         * modules/fchdir (Depends-on): Add absolute-header.
57318         * modules/unistd (Depends-on): Likewise.
57319
57320 2006-12-30  Bruno Haible  <bruno@clisp.org>
57321
57322         * modules/fchdir: New file.
57323         * modules/unistd (Files): Add lib/unistd_.h.
57324         (Makefile.am): Generate unistd.h from unistd_.h.
57325         * lib/fchdir.c: New file.
57326         * lib/dirent_.h: New file.
57327         * lib/unistd_.h: New file.
57328         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
57329         * m4/fchdir.m4: New file.
57330         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
57331         (gl_HEADER_UNISTD): Invoke it.
57332         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
57333         function.
57334         * lib/backupfile.c (opendir, closedir): Undefine.
57335         * lib/chown.c (open, close): Undefine.
57336         * lib/clean-temp.c (open, close): Undefine.
57337         * lib/copy-file.c (open, close): Undefine.
57338         * lib/execute.c (open, close): Undefine.
57339         * lib/fsusage.c (open, close): Undefine.
57340         * lib/gc-gnulib.c (open, close): Undefine.
57341         * lib/getcwd.c (opendir, closedir): Undefine.
57342         * lib/glob.c (opendir, closedir): Undefine.
57343         * lib/javacomp.c (open, close): Undefine.
57344         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
57345         * lib/openat-proc.c (open, close): Undefine.
57346         * lib/pagealign_alloc.c (open, close): Undefine.
57347         * lib/pipe.c (open, close): Undefine.
57348         * lib/progreloc.c (open, close): Undefine.
57349         * lib/savedir.c (opendir, closedir): Undefine.
57350         * lib/utime.c (open, close): Undefine.
57351         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
57352
57353 2007-01-10  Bruno Haible  <bruno@clisp.org>
57354
57355         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
57356
57357 2007-01-12  Eric Blake  <ebb9@byu.net>
57358
57359         Provide a robust <wchar.h>.  Further simplifications are now
57360         possible in other modules, but not included here.
57361         * modules/wchar: New module.
57362         * m4/wchar.m4: New file.
57363         * lib/wchar_.h: Likewise.
57364         * modules/mbchar (Depends-on): Depend on wchar, as the first use
57365         of the new module.
57366         * MODULES.html.sh (Extended multibyte and wide character utilities):
57367         New section.
57368
57369 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
57370
57371         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
57372         to a reasonable default for memory allocation.
57373         (xreadlink): Don't allocate a huge buffer, to work around a buggy
57374         file system that reports garbage st_size values for symlinks.
57375         Problem reported by Liyang Hu.
57376
57377 2007-01-11  Simon Josefsson  <simon@josefsson.org>
57378
57379         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
57380         Emacs .#* auto-save files).
57381
57382 2007-01-11  Bruno Haible  <bruno@clisp.org>
57383
57384         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
57385         directory.
57386
57387 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
57388
57389         Use @...@ consistently in lib/wctype_.h.
57390         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
57391         on it being set to 1 or 0.
57392         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
57393         go back to AC_SUBSTing it.
57394         * modules/wctype (Makefile.am): Undo previous change.
57395
57396 2007-01-10  Eric Blake  <ebb9@byu.net>
57397
57398         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
57399         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
57400         * modules/wctype (Makefile.am): Likewise.
57401         Reported by Chris McGuire.
57402
57403 2007-01-10  Jim Meyering  <jim@meyering.net>
57404
57405         fts.c: a small readability/maintainability improvement
57406         * lib/fts.c (fts_read): Make this code slightly more readable and
57407         maintainable by hoisting the "sp->fts_cur = p" assignments to
57408         immediately follow the statements that set P.  Derived from
57409         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
57410
57411 2007-01-10  Eric Blake  <ebb9@byu.net>
57412
57413         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
57414         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
57415         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
57416         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
57417         Reported by Chris McGuire.
57418
57419 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57420
57421         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
57422         in sed script.
57423
57424 2007-01-09  Bruno Haible  <bruno@clisp.org>
57425
57426         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
57427         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
57428         variables.
57429         (func_module): Use them.
57430
57431 2007-01-09  Bruno Haible  <bruno@clisp.org>
57432
57433         * modules/unistr/base: New file.
57434         * lib/unistr.h: New file.
57435
57436         * modules/unistr/u8-to-u16: New file.
57437         * lib/unistr/u8-to-u16.c: New file.
57438
57439         * modules/unistr/u8-to-u32: New file.
57440         * lib/unistr/u8-to-u32.c: New file.
57441
57442         * modules/unistr/u16-to-u8: New file.
57443         * lib/unistr/u16-to-u8.c: New file.
57444
57445         * modules/unistr/u16-to-u32: New file.
57446         * lib/unistr/u16-to-u32.c: New file.
57447
57448         * modules/unistr/u32-to-u8: New file.
57449         * lib/unistr/u32-to-u8.c: New file.
57450
57451         * modules/unistr/u32-to-u16: New file.
57452         * lib/unistr/u32-to-u16.c: New file.
57453
57454         * modules/unistr/u8-check: New file.
57455         * modules/unistr/u16-check: New file.
57456         * modules/unistr/u32-check: New file.
57457         * lib/unistr/u8-check.c: New file.
57458         * lib/unistr/u16-check.c: New file.
57459         * lib/unistr/u32-check.c: New file.
57460
57461         * modules/unistr/u8-chr: New file.
57462         * modules/unistr/u16-chr: New file.
57463         * modules/unistr/u32-chr: New file.
57464         * lib/unistr/u8-chr.c: New file.
57465         * lib/unistr/u16-chr.c: New file.
57466         * lib/unistr/u32-chr.c: New file.
57467
57468         * modules/unistr/u8-cmp: New file.
57469         * modules/unistr/u16-cmp: New file.
57470         * modules/unistr/u32-cmp: New file.
57471         * lib/unistr/u8-cmp.c: New file.
57472         * lib/unistr/u16-cmp.c: New file.
57473         * lib/unistr/u32-cmp.c: New file.
57474
57475         * modules/unistr/u8-cpy: New file.
57476         * modules/unistr/u16-cpy: New file.
57477         * modules/unistr/u32-cpy: New file.
57478         * lib/unistr/u8-cpy.c: New file.
57479         * lib/unistr/u16-cpy.c: New file.
57480         * lib/unistr/u32-cpy.c: New file.
57481         * lib/unistr/u-cpy.h: New file.
57482
57483         * modules/unistr/u8-cpy-alloc: New file.
57484         * modules/unistr/u16-cpy-alloc: New file.
57485         * modules/unistr/u32-cpy-alloc: New file.
57486         * lib/unistr/u8-cpy-alloc.c: New file.
57487         * lib/unistr/u16-cpy-alloc.c: New file.
57488         * lib/unistr/u32-cpy-alloc.c: New file.
57489         * lib/unistr/u-cpy-alloc.h: New file.
57490
57491         * modules/unistr/u8-endswith: New file.
57492         * modules/unistr/u16-endswith: New file.
57493         * modules/unistr/u32-endswith: New file.
57494         * lib/unistr/u8-endswith.c: New file.
57495         * lib/unistr/u16-endswith.c: New file.
57496         * lib/unistr/u32-endswith.c: New file.
57497         * lib/unistr/u-endswith.h: New file.
57498
57499         * modules/unistr/u8-mblen: New file.
57500         * modules/unistr/u16-mblen: New file.
57501         * modules/unistr/u32-mblen: New file.
57502         * lib/unistr/u8-mblen.c: New file.
57503         * lib/unistr/u16-mblen.c: New file.
57504         * lib/unistr/u32-mblen.c: New file.
57505
57506         * modules/unistr/u8-mbtouc: New file.
57507         * modules/unistr/u16-mbtouc: New file.
57508         * modules/unistr/u32-mbtouc: New file.
57509         * lib/unistr/u8-mbtouc.c: New file.
57510         * lib/unistr/u16-mbtouc.c: New file.
57511         * lib/unistr/u32-mbtouc.c: New file.
57512
57513         * modules/unistr/u8-mbtouc-safe: New file.
57514         * modules/unistr/u16-mbtouc-safe: New file.
57515         * modules/unistr/u32-mbtouc-safe: New file.
57516         * lib/unistr/u8-mbtouc-safe.c: New file.
57517         * lib/unistr/u16-mbtouc-safe.c: New file.
57518         * lib/unistr/u32-mbtouc-safe.c: New file.
57519
57520         * modules/unistr/u8-move: New file.
57521         * modules/unistr/u16-move: New file.
57522         * modules/unistr/u32-move: New file.
57523         * lib/unistr/u8-move.c: New file.
57524         * lib/unistr/u16-move.c: New file.
57525         * lib/unistr/u32-move.c: New file.
57526         * lib/unistr/u-move.h: New file.
57527
57528         * modules/unistr/u8-next: New file.
57529         * modules/unistr/u16-next: New file.
57530         * modules/unistr/u32-next: New file.
57531         * lib/unistr/u8-next.c: New file.
57532         * lib/unistr/u16-next.c: New file.
57533         * lib/unistr/u32-next.c: New file.
57534
57535         * modules/unistr/u8-prev: New file.
57536         * modules/unistr/u16-prev: New file.
57537         * modules/unistr/u32-prev: New file.
57538         * lib/unistr/u8-prev.c: New file.
57539         * lib/unistr/u16-prev.c: New file.
57540         * lib/unistr/u32-prev.c: New file.
57541
57542         * modules/unistr/u8-set: New file.
57543         * modules/unistr/u16-set: New file.
57544         * modules/unistr/u32-set: New file.
57545         * lib/unistr/u8-set.c: New file.
57546         * lib/unistr/u16-set.c: New file.
57547         * lib/unistr/u32-set.c: New file.
57548         * lib/unistr/u-set.h: New file.
57549
57550         * modules/unistr/u8-startswith: New file.
57551         * modules/unistr/u16-startswith: New file.
57552         * modules/unistr/u32-startswith: New file.
57553         * lib/unistr/u8-startswith.c: New file.
57554         * lib/unistr/u16-startswith.c: New file.
57555         * lib/unistr/u32-startswith.c: New file.
57556         * lib/unistr/u-startswith.h: New file.
57557
57558         * modules/unistr/u8-stpcpy: New file.
57559         * modules/unistr/u16-stpcpy: New file.
57560         * modules/unistr/u32-stpcpy: New file.
57561         * lib/unistr/u8-stpcpy.c: New file.
57562         * lib/unistr/u16-stpcpy.c: New file.
57563         * lib/unistr/u32-stpcpy.c: New file.
57564         * lib/unistr/u-stpcpy.h: New file.
57565
57566         * modules/unistr/u8-stpncpy: New file.
57567         * modules/unistr/u16-stpncpy: New file.
57568         * modules/unistr/u32-stpncpy: New file.
57569         * lib/unistr/u8-stpncpy.c: New file.
57570         * lib/unistr/u16-stpncpy.c: New file.
57571         * lib/unistr/u32-stpncpy.c: New file.
57572         * lib/unistr/u-stpncpy.h: New file.
57573
57574         * modules/unistr/u8-strcat: New file.
57575         * modules/unistr/u16-strcat: New file.
57576         * modules/unistr/u32-strcat: New file.
57577         * lib/unistr/u8-strcat.c: New file.
57578         * lib/unistr/u16-strcat.c: New file.
57579         * lib/unistr/u32-strcat.c: New file.
57580         * lib/unistr/u-strcat.h: New file.
57581
57582         * modules/unistr/u8-strchr: New file.
57583         * modules/unistr/u16-strchr: New file.
57584         * modules/unistr/u32-strchr: New file.
57585         * lib/unistr/u8-strchr.c: New file.
57586         * lib/unistr/u16-strchr.c: New file.
57587         * lib/unistr/u32-strchr.c: New file.
57588
57589         * modules/unistr/u8-strcmp: New file.
57590         * modules/unistr/u16-strcmp: New file.
57591         * modules/unistr/u32-strcmp: New file.
57592         * lib/unistr/u8-strcmp.c: New file.
57593         * lib/unistr/u16-strcmp.c: New file.
57594         * lib/unistr/u32-strcmp.c: New file.
57595
57596         * modules/unistr/u8-strcpy: New file.
57597         * modules/unistr/u16-strcpy: New file.
57598         * modules/unistr/u32-strcpy: New file.
57599         * lib/unistr/u8-strcpy.c: New file.
57600         * lib/unistr/u16-strcpy.c: New file.
57601         * lib/unistr/u32-strcpy.c: New file.
57602         * lib/unistr/u-strcpy.h: New file.
57603
57604         * modules/unistr/u8-strcspn: New file.
57605         * modules/unistr/u16-strcspn: New file.
57606         * modules/unistr/u32-strcspn: New file.
57607         * lib/unistr/u8-strcspn.c: New file.
57608         * lib/unistr/u16-strcspn.c: New file.
57609         * lib/unistr/u32-strcspn.c: New file.
57610         * lib/unistr/u-strcspn.h: New file.
57611
57612         * modules/unistr/u8-strdup: New file.
57613         * modules/unistr/u16-strdup: New file.
57614         * modules/unistr/u32-strdup: New file.
57615         * lib/unistr/u8-strdup.c: New file.
57616         * lib/unistr/u16-strdup.c: New file.
57617         * lib/unistr/u32-strdup.c: New file.
57618         * lib/unistr/u-strdup.h: New file.
57619
57620         * modules/unistr/u8-strlen: New file.
57621         * modules/unistr/u16-strlen: New file.
57622         * modules/unistr/u32-strlen: New file.
57623         * lib/unistr/u8-strlen.c: New file.
57624         * lib/unistr/u16-strlen.c: New file.
57625         * lib/unistr/u32-strlen.c: New file.
57626         * lib/unistr/u-strlen.h: New file.
57627
57628         * modules/unistr/u8-strmblen: New file.
57629         * modules/unistr/u16-strmblen: New file.
57630         * modules/unistr/u32-strmblen: New file.
57631         * lib/unistr/u8-strmblen.c: New file.
57632         * lib/unistr/u16-strmblen.c: New file.
57633         * lib/unistr/u32-strmblen.c: New file.
57634
57635         * modules/unistr/u8-strmbtouc: New file.
57636         * modules/unistr/u16-strmbtouc: New file.
57637         * modules/unistr/u32-strmbtouc: New file.
57638         * lib/unistr/u8-strmbtouc.c: New file.
57639         * lib/unistr/u16-strmbtouc.c: New file.
57640         * lib/unistr/u32-strmbtouc.c: New file.
57641
57642         * modules/unistr/u8-strncat: New file.
57643         * modules/unistr/u16-strncat: New file.
57644         * modules/unistr/u32-strncat: New file.
57645         * lib/unistr/u8-strncat.c: New file.
57646         * lib/unistr/u16-strncat.c: New file.
57647         * lib/unistr/u32-strncat.c: New file.
57648         * lib/unistr/u-strncat.h: New file.
57649
57650         * modules/unistr/u8-strncmp: New file.
57651         * modules/unistr/u16-strncmp: New file.
57652         * modules/unistr/u32-strncmp: New file.
57653         * lib/unistr/u8-strncmp.c: New file.
57654         * lib/unistr/u16-strncmp.c: New file.
57655         * lib/unistr/u32-strncmp.c: New file.
57656
57657         * modules/unistr/u8-strncpy: New file.
57658         * modules/unistr/u16-strncpy: New file.
57659         * modules/unistr/u32-strncpy: New file.
57660         * lib/unistr/u8-strncpy.c: New file.
57661         * lib/unistr/u16-strncpy.c: New file.
57662         * lib/unistr/u32-strncpy.c: New file.
57663         * lib/unistr/u-strncpy.h: New file.
57664
57665         * modules/unistr/u8-strnlen: New file.
57666         * modules/unistr/u16-strnlen: New file.
57667         * modules/unistr/u32-strnlen: New file.
57668         * lib/unistr/u8-strnlen.c: New file.
57669         * lib/unistr/u16-strnlen.c: New file.
57670         * lib/unistr/u32-strnlen.c: New file.
57671         * lib/unistr/u-strnlen.h: New file.
57672
57673         * modules/unistr/u8-strpbrk: New file.
57674         * modules/unistr/u16-strpbrk: New file.
57675         * modules/unistr/u32-strpbrk: New file.
57676         * lib/unistr/u8-strpbrk.c: New file.
57677         * lib/unistr/u16-strpbrk.c: New file.
57678         * lib/unistr/u32-strpbrk.c: New file.
57679         * lib/unistr/u-strpbrk.h: New file.
57680
57681         * modules/unistr/u8-strrchr: New file.
57682         * modules/unistr/u16-strrchr: New file.
57683         * modules/unistr/u32-strrchr: New file.
57684         * lib/unistr/u8-strrchr.c: New file.
57685         * lib/unistr/u16-strrchr.c: New file.
57686         * lib/unistr/u32-strrchr.c: New file.
57687
57688         * modules/unistr/u8-strspn: New file.
57689         * modules/unistr/u16-strspn: New file.
57690         * modules/unistr/u32-strspn: New file.
57691         * lib/unistr/u8-strspn.c: New file.
57692         * lib/unistr/u16-strspn.c: New file.
57693         * lib/unistr/u32-strspn.c: New file.
57694         * lib/unistr/u-strspn.h: New file.
57695
57696         * modules/unistr/u8-strstr: New file.
57697         * modules/unistr/u16-strstr: New file.
57698         * modules/unistr/u32-strstr: New file.
57699         * lib/unistr/u8-strstr.c: New file.
57700         * lib/unistr/u16-strstr.c: New file.
57701         * lib/unistr/u32-strstr.c: New file.
57702         * lib/unistr/u-strstr.h: New file.
57703
57704         * modules/unistr/u8-strtok: New file.
57705         * modules/unistr/u16-strtok: New file.
57706         * modules/unistr/u32-strtok: New file.
57707         * lib/unistr/u8-strtok.c: New file.
57708         * lib/unistr/u16-strtok.c: New file.
57709         * lib/unistr/u32-strtok.c: New file.
57710         * lib/unistr/u-strtok.h: New file.
57711
57712         * modules/unistr/u8-uctomb: New file.
57713         * modules/unistr/u16-uctomb: New file.
57714         * modules/unistr/u32-uctomb: New file.
57715         * lib/unistr/u8-uctomb.c: New file.
57716         * lib/unistr/u16-uctomb.c: New file.
57717         * lib/unistr/u32-uctomb.c: New file.
57718
57719         * MODULES.html.sh (Unicode string functions): Add the new modules.
57720
57721 2007-01-08  Bruno Haible  <bruno@clisp.org>
57722
57723         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
57724         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
57725         subdirectories.
57726
57727 2007-01-08  Karl Berry  <karl@gnu.org>
57728
57729         * doc/error.texi: mention that main() fns must set program_name
57730         when progname is used.
57731
57732 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
57733
57734         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
57735         WCTYPE_H is empty, for the benefit of builds from non-distclean
57736         directories.  Problem reported by Eric Blake in
57737         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
57738
57739 2007-01-08  Bruno Haible  <bruno@clisp.org>
57740
57741         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
57742         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
57743         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
57744         PROVIDE_CANONICALIZE_FILENAME_MODE.
57745         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
57746
57747 2007-01-08  Bruno Haible  <bruno@clisp.org>
57748
57749         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
57750         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
57751         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
57752         * lib/fts.c: Likewise.
57753         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
57754
57755 2006-12-25  Bruno Haible  <bruno@clisp.org>
57756
57757         * modules/utf8-ucs4-safe: New file.
57758         * lib/utf8-ucs4-safe.h: New file.
57759         * lib/unistr/utf8-ucs4-safe.c: New file.
57760
57761         * modules/utf16-ucs4-safe: New file.
57762         * lib/utf16-ucs4-safe.h: New file.
57763         * lib/unistr/utf16-ucs4-safe.c: New file.
57764
57765         * MODULES.html.sh (Unicode string functions): Add the new modules.
57766
57767 2007-01-08  Bruno Haible  <bruno@clisp.org>
57768
57769         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
57770         (Depends-on): Add unitypes.
57771         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
57772         (u8_mbtouc_aux): Move out to separate file.
57773         (u8_mbtouc): Use ucs4_t, uint8_t types.
57774         * lib/unistr/utf8-ucs4.c: New file.
57775
57776         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
57777         (Depends-on): Add unitypes.
57778         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
57779         (u16_mbtouc_aux): Move out to separate file.
57780         (u16_mbtouc): Use ucs4_t, uint16_t types.
57781         * lib/unistr/utf16-ucs4.c: New file.
57782
57783         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
57784         (Depends-on): Add unitypes.
57785         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
57786         (u8_uctomb_aux): Move out to separate file.
57787         (u8_uctomb): Use ucs4_t, uint8_t types.
57788         * lib/unistr/ucs4-utf8.c: New file.
57789
57790         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
57791         (Depends-on): Add unitypes.
57792         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
57793         (u16_uctomb_aux): Move out to separate file.
57794         (u16_uctomb): Use ucs4_t, uint16_t types.
57795         * lib/unistr/ucs4-utf16.c: New file.
57796
57797 2006-12-25  Bruno Haible  <bruno@clisp.org>
57798
57799         * modules/unitypes: New file.
57800         * lib/unitypes.h: New file.
57801         * MODULES.html.sh (func_all_modules): New section "Unicode string
57802         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
57803         this section. Add unitypes.
57804
57805 2007-01-08  Bruno Haible  <bruno@clisp.org>
57806
57807         Avoid variable names that conflict with those from libtool.
57808         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
57809         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
57810         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
57811         library_names_spec to acl_library_names_spec, hardcode_* to
57812         acl_hardcode_*.
57813         Reported by Ralf Wildenhues.
57814
57815 2007-01-08  Bruno Haible  <bruno@clisp.org>
57816
57817         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
57818         definition.
57819         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
57820         definition.
57821         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
57822         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
57823         definition.
57824         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
57825         definition.
57826         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
57827         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
57828         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
57829         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
57830         definition.
57831         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
57832         definition.
57833         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
57834         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
57835         GC_USE_<algorithm>.
57836         * lib/gc-libgcrypt.c: Likewise.
57837         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
57838         * modules/gc-arctwo (configure.ac): Likewise.
57839         * modules/gc-des (configure.ac): Likewise.
57840         * modules/gc-hmac-md5 (configure.ac): Likewise.
57841         * modules/gc-hmac-sha1 (configure.ac): Likewise.
57842         * modules/gc-md2 (configure.ac): Likewise.
57843         * modules/gc-md4 (configure.ac): Likewise.
57844         * modules/gc-md5 (configure.ac): Likewise.
57845         * modules/gc-random (configure.ac): Likewise.
57846         * modules/gc-rijndael (configure.ac): Likewise.
57847         * modules/gc-sha1 (configure.ac): Likewise.
57848
57849 2007-01-08  Bruno Haible  <bruno@clisp.org>
57850
57851         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
57852         macro definition.
57853         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
57854         definition.
57855         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
57856         definition.
57857         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
57858         * modules/fcntl-safer (configure.ac): Likewise.
57859         * modules/fopen-safer (configure.ac): Likewise.
57860         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
57861         GNULIB_FWRITEERROR macro definition.
57862
57863 2007-01-08  Bruno Haible  <bruno@clisp.org>
57864
57865         * m4/gnulib-common.m4: New file.
57866         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
57867         (func_get_filelist): Add m4/gnulib-common.m4.
57868
57869 2007-01-08  Bruno Haible  <bruno@clisp.org>
57870
57871         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
57872         command.
57873
57874 2007-01-08  Jim Meyering  <jim@meyering.net>
57875
57876         Use a more robust test for a "can't happen" condition.
57877         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
57878         narrowed the st_size value.  Presuming the "can't happen" condition
57879         is true, that narrowing could conceivably convert an invalid st_size
57880         value into a valid one.  Instead, use a change based on Matthew
57881         Woehlke's original patch.
57882
57883         Slight readability improvement: use an assert-like macro
57884         in place of literal "abort ()" uses.
57885         * lib/fts.c (fts_assert): Define.
57886         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
57887         Use this macro instead of a bare 'abort'.
57888
57889 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
57890
57891         Don't worry about using IRIX 5.3's wctype.h broken definitions;
57892         simply work around them.
57893         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
57894         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
57895         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
57896         declaring.
57897         Don't bother to define as macros, since the standard doesn't require it.
57898         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
57899         longer worry about IRIX 5.3.
57900         (HAVE_WCTYPE_CTMP_BUG): Remove.
57901
57902 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
57903
57904         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
57905         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
57906         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
57907         Problems reported by Georg Schwarz for IRIX 5.3.
57908
57909         * gnulib-tool (autoconf_minversion): Take the maximum version number
57910         found, not the minimum.  Problem reported by James Youngman.
57911
57912 2007-01-03  Karl Berry  <karl@gnu.org>
57913
57914         * doc/error.texi: new file, explaining interaction with progname.
57915         * doc/gnulib.texi: include it.  Update copyright.
57916
57917 2007-01-03  Simon Josefsson  <simon@josefsson.org>
57918
57919         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
57920         AC_CANONICAL_HOST, to improve autobuild outputs.
57921
57922 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
57923             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
57924
57925         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
57926         sockets, server sockets, and other file descriptors.  Count errors
57927         to compute the return value.  Reorder the code a bit to be easier
57928         to follow.  Don't set event bits that were not requested (except
57929         POLLERR and POLLHUP).
57930
57931 2007-01-01  Bruno Haible  <bruno@clisp.org>
57932
57933         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
57934
57935 2007-01-03  Jim Meyering  <jim@meyering.net>
57936
57937         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
57938
57939 2007-01-02  Bruno Haible  <bruno@clisp.org>
57940
57941         * modules/settime (Include): Require timespec.h.
57942         * modules/nanosleep (Include): Likewise.
57943
57944 2007-01-01  Bruno Haible  <bruno@clisp.org>
57945
57946         * gnulib-tool (func_emit_copyright_notice): Bump year.
57947         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
57948
57949 2007-01-01  Bruno Haible  <bruno@clisp.org>
57950
57951         Improve support for OpenBSD.
57952         * build-aux/config.rpath (libname_spec): Export.
57953         (library_names_spec): New variable. Export.
57954         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
57955         library_names_spec from the config.rpath output. Locate shared library
57956         through the name pattern in library_names_spec.
57957
57958 2007-01-01  Eric Blake  <ebb9@byu.net>
57959
57960         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
57961
57962 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
57963
57964         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
57965         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
57966         assume the C locale, and avoid an "eval" that could cause trouble.
57967         Problem with SORT reported by Bob Proulx.
57968
57969         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
57970         Define.  Trivial patch from Henning Nielsen Lund, originally
57971         sent to bug-grep@gnu.org today.
57972
57973 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
57974
57975         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
57976         struct stat.  Problem reported by Henning Nielsen Lund.
57977         * lib/acl.c: Include acl.h first, to check interface.  Don't
57978         bother to include sys/types.h and sys/stat.h again.
57979
57980 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
57981
57982         Import the following change from libc; problem reported by
57983         Sven Verdoolaege.
57984
57985         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
57986
57987         [BZ #1373]
57988         * lib/argp.h: Remove __NTH for __argp_usage inline function.
57989
57990 2006-12-28  Jim Meyering  <jim@meyering.net>
57991
57992         * build-aux/announce-gen: Do not assume that the package
57993         builds any of tar.gz, tar.bz2, and .xdelta files.
57994         Suggestion from Simon Josefsson.
57995
57996 2006-12-28  Simon Josefsson  <simon@josefsson.org>
57997
57998         * modules/announce-gen: New file.
57999
58000 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
58001
58002         * lib/mbchar.h: Just include <wctype.h>; the wctype module
58003         handles its gotchas now.
58004         * lib/mbswidth.c: Likewise.
58005         * lib/wcwidth.h: Likewise.
58006         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
58007         and iswcntrl; the wctype module does this stuff now.
58008         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
58009         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
58010         * modules/mbchar (Depends-on): Add wctype.
58011         * modules/mbswidth (Depends-on): Likewise.
58012         * modules/wcwidth (Depends-on): Likewise.
58013
58014 2006-12-27  Eric Blake  <ebb9@byu.net>
58015
58016         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
58017         module uses more than what <wctype.h> is required to provide.
58018
58019 2006-12-26  Eric Blake  <ebb9@byu.net>
58020
58021         * gnulib-tool (sed_extract_prog): Avoid space-tab.
58022
58023 2006-12-26  Eric Blake  <ebb9@byu.net>
58024
58025         * modules/absolute-header: New module.
58026         * modules/fcntl (Depends-on): Depend on it.
58027         * modules/inttypes (Depends-on): Likewise.
58028         * modules/stdint (Depends-on): Likewise.
58029         * modules/sys_stat (Depends-on): Likewise.
58030         * modules/wctype (Depends-on): Likewise.
58031         * MODULES.html.sh (Support for building libraries and
58032         executables): Document it.
58033
58034 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
58035
58036         * gnulib-tool (SED): Remove, undoing previous change.
58037         The problem was that it broke coreutils on Solaris, because
58038         "sed --posix" leaked into a makefile.
58039         (sed): New alias, if 'alias' and GNU sed.
58040
58041 2006-12-24  Jim Meyering  <jim@meyering.net>
58042
58043         Work around an fchownat bug in glibc-2.4:
58044         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
58045         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
58046         in spite of the -P option.
58047         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
58048         New macros.
58049         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
58050         * modules/openat (Files): Add lib/fchownat.c.
58051         * lib/openat.c (fchownat): Don't define here.  Move to...
58052         * lib/fchownat.c: ...this new file.
58053
58054 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58055
58056         Fix bug reported by Bruno Haible in
58057         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
58058         where quotearg.c didn't compile on Mac OS X 10.2 because it
58059         lacks <wchar.h> and wint_t.
58060         * lib/wctype_.h (__wctype_wint_t): New type.
58061         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
58062         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
58063         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
58064         Arg is now of type __wctype_wint_t, not wint_t.
58065         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
58066         substitute HAVE_WINT_T.
58067         * modules/wctype (Files): Add m4/wint_t.m4.
58068         (wctype.h): Substitute HAVE_WINT_T.
58069
58070 2006-12-23  Bruno Haible  <bruno@clisp.org>
58071
58072         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
58073
58074 2006-12-23  Bruno Haible  <bruno@clisp.org>
58075
58076         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
58077         S_ISLNK.
58078         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
58079         mingw.
58080
58081 2006-12-22  Bruno Haible  <bruno@clisp.org>
58082
58083         * lib/copy-file.c: Include acl.h.
58084         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
58085         Close the file descriptors only after being done with copy_acl.
58086         * modules/copy-file (Depends-on): Add acl.
58087
58088 2006-12-22  Bruno Haible  <bruno@clisp.org>
58089
58090         * gnulib-tool (SED): New variable.
58091         Use $SED instead of sed everywhere.
58092
58093 2006-12-22  Bruno Haible  <bruno@clisp.org>
58094
58095         * modules/no-c++: New file.
58096         * m4/no-c++.m4: New file.
58097         * MODULES.html.sh (Support for building libraries and executables):
58098         Add no-c++.
58099
58100 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
58101
58102         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
58103         Include <limits.h>, and use its INT_MAX to rewrite the
58104         j loop so that it does not overflow 'int'.  Problem reported by
58105         Ralf Wildenhues in
58106         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
58107         Play it safe by shifting left by 1 rather than multiplying by 2,
58108         as GCC is less likely to optimize this away when the value
58109         is signed (when it assumes overflow leads to undefined behavior).
58110         Also, don't assume time_t uses two's complement.
58111
58112 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
58113
58114         * MODULES.html.sh: New module wctype.
58115         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
58116         * lib/fnmatch.c: Don't bother to include <wchar.h> before
58117         <wctype.h>, since the new wctype module should fix this.
58118         * lib/quotearg.c: Include <wctype.h> unconditionally, since
58119         the wctype module should arrange for it.
58120         * lib/regex_internal.h: Likewise.
58121         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
58122         since the wctype module should handle this now.
58123         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
58124         * modules/fnmatch (Depends-on): Add wctype.
58125         * modules/quotearg (Depends-on): Likewise.
58126         * modules/regex (Depends-on): Likewise.
58127
58128 2006-12-19  Bruno Haible  <bruno@clisp.org>
58129
58130         * lib/strdup.h [C++]: Wrap definitions in extern "C".
58131         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
58132
58133 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58134
58135         * modules/savewd (Depends-on): Fix dependency on fcntl.
58136
58137 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58138
58139         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
58140         conforms to C99, rather than relying on the user's environment
58141         setting of STDINT_H.
58142
58143 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58144         and Eric Blake  <ebb9@byu.net>
58145
58146         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
58147         This is more consistent with the other defines here.
58148         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
58149         Port to z/OS.  Problem reported by Paul Gilmartin.
58150         Change local vars to use gl_ prefix rather than ac_.
58151         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
58152         with other defines.
58153         * modules/double-slash-root: New module.
58154         * modules/dirname (Files): Remove m4/double-slash-root.m4.
58155         (Depends-on): Add double-slash-root.
58156         * MODULES.html.sh (File system functions): Mention new module.
58157
58158 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
58159
58160         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
58161         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
58162         This is for the benefit of gzip, which doesn't do i18n.
58163
58164 2006-12-12  Jim Meyering  <jim@meyering.net>
58165
58166         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
58167         Reported by Andreas Schwab <schwab@suse.de>.
58168
58169 2006-12-12  Bruno Haible  <bruno@clisp.org>
58170
58171         Merge these changes.
58172         2006-09-05  Bruno Haible  <bruno@clisp.org>
58173         * lib/iconvme.c (iconv_string): No need to save and restore errno when
58174         iconv_alloc succeeded.
58175         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
58176         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
58177         test for " && dest " at the end - dest is always != NULL there. Call
58178         iconv with 4xNULL arguments initially, to reset the state. Call iconv
58179         with 2xNULL arguments, also to flush the state storage. Handle the
58180         IRIX iconv behaviour. Realloc the final result, to throw away unused
58181         memory.
58182
58183 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
58184
58185         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
58186         and fchmodat unconditionally, since glibc 2.4 has them.
58187         Problem reported by Arkadiusz Miskiewicz.
58188
58189 2006-12-10  Bruno Haible  <bruno@clisp.org>
58190
58191         * gnulib-tool (func_import): Show the include files only for those
58192         modules that are copied and specified.
58193         Reported by Karl Berry.
58194
58195 2006-12-08  Jim Meyering  <jim@meyering.net>
58196
58197         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
58198         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
58199
58200         * build-aux/announce-gen: Add two new options, both optional:
58201         --bootstrap-tools=TOOL_LIST
58202               a comma-separated list of tools, e.g.,
58203               autoconf,automake,bison,gnulib
58204         --gnulib-snapshot-date=DATE
58205               if gnulib is in the bootstrap tool list,
58206               then report this as the snapshot date.
58207               If not specified, use the current date/time.
58208               If you specify a date here, be sure it's UTC.
58209
58210 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58211
58212         * tests/test-argp-2.sh: Fix test to match actual output.
58213         (func_compare): Fix sed script to be portable.
58214
58215 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
58216
58217         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
58218         workaround for this case.  It is not autoconfigured now; offhand
58219         it's hard to see how to autoconfigure it.
58220
58221 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
58222
58223         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
58224         a directory that is about to be chowned.  Such a directory's
58225         initial file permissions should permit the owner only and this
58226         should not be changed until after the chown, since the group and
58227         other bits would be incorrect if they granted permission before
58228         the chown.
58229
58230         Fix porting problem for iswctype reported by Georg Schwarz in:
58231         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
58232         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
58233         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
58234         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
58235         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58236
58237 2006-12-03  Jim Meyering  <jim@meyering.net>
58238
58239         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
58240         p->fts_statp may not yet be defined.
58241         (fts_read): Instead, set it in the caller, once p->fts_statp is
58242         sure to be defined, and corresponds to a top-level directory.
58243         This bug made du -x fail.  Here's the coreutils test case:
58244         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
58245         Reported by Mike Frysinger.
58246
58247 2006-12-01  Jim Meyering  <jim@meyering.net>
58248
58249         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
58250         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
58251         Reported by Simon Josefsson.
58252
58253 2006-11-30  Jim Meyering  <jim@meyering.net>
58254
58255         * m4/warning.m4: Use the all-permissive copyright notice
58256         recommended by RMS (rather than LGPL).
58257         * m4/vararrays.m4: Likewise.
58258         * m4/flexmember.m4: Likewise.
58259
58260 2006-11-29  Bruno Haible  <bruno@clisp.org>
58261
58262         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
58263         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
58264         using +=.
58265         Reported by Simon Josefsson <simon@josefsson.org>.
58266
58267 2006-11-28  James Youngman <jay@gnu.org>
58268
58269         * README: Advise users that they might find the bug-gnulib@gnu.org
58270         and autotools-announce@gnu.org mailing lists useful.
58271
58272 2006-11-28  Bruno Haible  <bruno@clisp.org>
58273
58274         * m4/ptrdiff_max.m4: Remove file.
58275
58276 2006-11-21  Bruno Haible  <bruno@clisp.org>
58277
58278         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
58279         _AC_COMPUTE_INT.
58280         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
58281         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
58282         _AC_COMPUTE_INT.
58283         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
58284         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
58285         _AC_COMPUTE_INT.
58286         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
58287
58288 2006-11-28  Jim Meyering  <jim@meyering.net>
58289
58290         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
58291         warning from "gcc -Wshadow" about shadowing the builtin.
58292
58293 2006-11-27  Bruno Haible  <bruno@clisp.org>
58294
58295         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
58296         _AC_COMPUTE_INT.
58297         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
58298
58299 2006-11-27  Bruno Haible  <bruno@clisp.org>
58300             Paul Eggert  <eggert@cs.ucla.edu>
58301
58302         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
58303
58304 2006-11-26  Bruno Haible  <bruno@clisp.org>
58305
58306         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
58307         noinst_LTLIBRARIES.
58308
58309 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
58310             Bruno Haible  <bruno@clisp.org>
58311
58312         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
58313         if compiling with "gcc -ansi".
58314
58315 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
58316
58317         Fix some incompatibilities with gcc -ansi -pedantic.
58318         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
58319         if compiling pedantically with GCC, unless it's C99 or later.
58320         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
58321         it mishandles gcc -ansi -pedantic as well.
58322         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
58323         if gcc -pedantic.
58324         * lib/regexec.c (check_node_accept_bytes): Don't use auto
58325         initializers for struct if -pedantic, unless it's C99 or later.
58326
58327 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
58328
58329         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
58330         Don't close an fd more than once. Identical atimes indicate
58331         success, not failure.
58332
58333 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
58334
58335         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
58336
58337 2006-11-23  Jim Meyering  <jim@meyering.net>
58338
58339         * build-aux/announce-gen: New file.  From coreutils.
58340
58341 2006-11-22  Jim Meyering  <jim@meyering.net>
58342
58343         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
58344         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
58345         (fts_read): Use a temporary to narrow the overused st_size member
58346         before using it in a switch statement.  Reported by Matthew Woehlke.
58347
58348         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
58349         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
58350
58351 2006-11-20  Bruno Haible  <bruno@clisp.org>
58352
58353         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
58354         changequote instead of pairs of brackets.
58355         Reported by Andreas Schwab <schwab@suse.de>.
58356
58357 2006-11-21  Jim Meyering  <jim@meyering.net>
58358
58359         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
58360         so as to remain compatible with older compilers.
58361         Patch from Michael Deutschmann.
58362
58363 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
58364
58365         * MODULES.html.sh (File system functions): Add openat.
58366
58367         * lib/openat.h (rpl_fstatat): New macro, if
58368         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
58369         (fstatat): Define to rpl_fstatat under the same conditions,
58370         unless COMPILING_FSTATAT.
58371         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
58372         seems to have the bug.
58373         * lib/fstatat.c: New file.
58374         * modules/openat (Files): Add it.
58375
58376 2006-11-20  Bruno Haible  <bruno@clisp.org>
58377
58378         * Makefile: New file.
58379
58380 2006-11-20  Jim Meyering  <jim@meyering.net>
58381
58382         The beginnings of syntax-related checks for gnulib.
58383         * lib/Makefile: New file.
58384         * lib/t-idcache: New script.  Ensure that the two halves of
58385         idcache.c stay in sync.
58386
58387         * lib/idcache.c: Adjust comments in user- and group- portions to
58388         be more accurate, and to be consistent with one another.
58389
58390 2006-11-20  Jim Meyering  <jim@meyering.net>
58391
58392         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
58393         continue using the flexible array member (thus, this module performs
58394         half as many malloc calls), with the addition that...
58395         (getgroup, getuser): Consistently record a non-match via an empty
58396         "name" string, and map an empty string match to a NULL return value.
58397         * modules/idcache (Depends-on): Re-add flexmember.
58398
58399         * lib/idcache.c (getuser): Remove all uses of the register keyword.
58400         (getuidbyname, getgroup, getgidbyname): Likewise.
58401
58402         Use cleaner syntax: NULL rather than 0.
58403         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
58404
58405 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
58406
58407         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
58408         It mishandled the case where the group was missing.
58409         Problem reported by Greg Schafer.
58410         * modules/idcache: Likewise.
58411
58412 2006-11-18  Jim Meyering  <jim@meyering.net>
58413
58414         * check-module (%exempt_header): Add exception for some
58415         conditionally-included headers.
58416
58417         * modules/i-ring (Depends-on): Add verify.
58418         (License): Change to LGPL.
58419
58420 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58421
58422         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
58423         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
58424         and inttostr.h.  Use snprintf rather than uinttostr, so that
58425         LGPLed code doesn't depend on GPLed.
58426
58427 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
58428
58429         * modules/inline (License): Change from GPL to LGPL.
58430
58431 2006-11-17  Jim Meyering  <jim@meyering.net>
58432
58433         * modules/d-type (License): Switch to LGPL.
58434
58435 2006-11-15  Bruno Haible  <bruno@clisp.org>
58436
58437         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
58438
58439 2006-11-15  Eric Blake  <ebb9@byu.net>
58440
58441         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
58442         the module dependency.
58443
58444 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58445             Bruno Haible  <bruno@clisp.org>
58446
58447         * gnulib-tool (func_create_testdir): Add license consistency check.
58448
58449 2006-11-15  Eric Blake  <ebb9@byu.net>
58450
58451         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
58452         random "(cached)" in configure output.
58453
58454 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58455
58456         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
58457         test for conforming inttypes.h is both announced and cached.
58458
58459         * MODULES.html.sh (seen_modules, seen_files): New variables.
58460         (func_module): Rewrite to use a few less gnulib-tool and sed
58461         invocations.  Avoid a couple of quadratic algorithms for ...
58462         (missed_modules, missed_files): ... these, with ...
58463         (func_append, func_tmpdir): ... these new functions, from
58464         gnulib-tool.  Analogously, install traps for cleanup.
58465
58466         * tests/test-gc.c (main): Remove unused variables.
58467         * tests/test-read-file.c: Include stdlib.h, for 'free'.
58468
58469 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
58470
58471         * modules/inttostr (License): Change to LGPL.
58472
58473 2006-11-14  Eric Blake  <ebb9@byu.net>
58474
58475         * modules/tempname (License): Change to LGPL.
58476
58477 2006-11-14  Eric Blake  <ebb9@byu.net>
58478
58479         * doc/functions.texi (Function Portability): *printf functions on
58480         Cygwin now understand all POSIX size specifiers.
58481
58482 2006-11-14  Bruno Haible  <bruno@clisp.org>
58483
58484         * modules/c-ctype (License): Change to LGPL.
58485
58486 2006-11-12  Bruno Haible  <bruno@clisp.org>
58487
58488         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
58489         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
58490         for GNOME libraries, for which the include files are installed in
58491         subdirectories of $prefix/include.
58492
58493 2006-11-12  Bruno Haible  <bruno@clisp.org>
58494
58495         * m4/lib-link.m4: Require at least autoconf-2.54.
58496         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
58497         name to underscores for the --with option.
58498
58499 2006-11-13  Bruno Haible  <bruno@clisp.org>
58500
58501         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
58502         the tests directory.
58503         Reported by Ralf Wildenhues.
58504
58505 2006-11-13  Bruno Haible  <bruno@clisp.org>
58506
58507         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
58508         (func_emit_initmacro_end): Undo the override here.
58509         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
58510         Works around the famous automake error in coreutils.
58511
58512 2006-11-13  Eric Blake  <ebb9@byu.net>
58513
58514         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
58515         element, not its node.
58516
58517 2006-11-12  Bruno Haible  <bruno@clisp.org>
58518
58519         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
58520         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
58521
58522 2006-11-12  Bruno Haible  <bruno@clisp.org>
58523
58524         * gnulib-tool: New option --local-symlink.
58525         (func_usage): Document it.
58526         (lsymbolic): New variable.
58527         (func_import, func_create_testdir): If --symlink was not specified,
58528         test whether --local-symlink was specified and the file comes from
58529         the local_gnulib_dir.
58530
58531 2006-11-12  Bruno Haible  <bruno@clisp.org>
58532
58533         * gnulib-tool (func_ln): New function.
58534         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
58535
58536 2006-11-12  Bruno Haible  <bruno@clisp.org>
58537
58538         Finish support for source files in subdirectories.
58539         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
58540         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
58541         AUTOMAKE_OPTIONS.
58542         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
58543
58544 2006-11-12  Bruno Haible  <bruno@clisp.org>
58545
58546         * gnulib-tool (func_get_automake_snippet): Synthesize also an
58547         EXTRA_lib_SOURCES augmentation.
58548         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
58549
58550 2006-11-12  Jim Meyering  <jim@meyering.net>
58551
58552         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
58553         file descriptors.  This also averts a failure on systems with
58554         native openat support when a traversed directory lacks "x" access.
58555         * lib/fts_.h: Include "i-ring.h"
58556         (struct FTS) [fts_fd_ring]: New member.
58557         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
58558         (FCHDIR): Add parentheses.
58559         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
58560         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
58561         When descending, rather than simply closing the previous
58562         fts_cwd_fd value, push that file descriptor onto the ring.
58563         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
58564         (fts_open): Initialize the new fd_ring member.
58565         (fts_close): Clear the ring.
58566         (fts_safe_changedir): When possible, use our new fd_ring to skip
58567         the diropen and fstat and dev/ino comparison that would normally
58568         accompany a virtual `chdir ("..")'.
58569
58570         * modules/fts (Depends-on): Add i-ring.
58571         * modules/i-ring: New module.
58572         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
58573         * m4/i-ring.m4: New file.
58574
58575 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58576
58577         * gnulib-tool (func_create_testdir): Fix replacement of
58578         `build-aux' in configure.ac.  Run autotools in gltests
58579         subdirectory.
58580         (func_create_testdir, func_create_megatestdir, test): There is
58581         no need for '--force' in most autotool invocations in a new
58582         tree.  Actually fail the whole test if any of the tools, or the
58583         configure or make stages fail.
58584
58585         Sync from Automake.
58586         * build-aux/gnupload: Revert last change.  Add pointer to upload
58587         instructions of the GNU Maintenance Instructions.
58588         Suggestion by Karl Berry.
58589
58590 2006-11-10  Jim Meyering  <jim@meyering.net>
58591
58592         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
58593
58594 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
58595
58596         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
58597         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
58598         (bind_textdomain_codeset) [! ENABLE_NLS]:
58599         Evaluate all the arguments.  That way, callers get compatible behavior
58600         if the arguments have side effects.  Also, it avoids some GCC
58601         diagnostics in some cases; Joel E. Denny reported problems when Bison
58602         was configured with --enable-gcc-warnigs.
58603
58604 2006-11-10  Jim Meyering  <jim@meyering.net>
58605
58606         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
58607         relevant options in CFLAGS (like -O, -fno-inline) are taken into
58608         account.
58609
58610 2006-11-10  Jim Meyering  <jim@meyering.net>
58611
58612         * modules/inline: New file/module.
58613         * modules/xalloc (Files): Remove m4/inline.m4.
58614         (Depends-on): Add inline, instead.
58615         * modules/oset: Likewise.
58616         * modules/list: Likewise.
58617
58618 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
58619
58620         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
58621         Problem reported by Matthew Woehlke.
58622
58623 2006-11-09  Bruno Haible  <bruno@clisp.org>
58624
58625         * lib/tempname.c (gen_tempname): Remove variant that invokes
58626         __gen_tempname.
58627         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
58628         __gen_tempname.
58629
58630 2006-11-08  Bruno Haible  <bruno@clisp.org>
58631
58632         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
58633         to 'yes' instead of 'cross-compiling'.
58634
58635 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
58636
58637         * lib/quotearg.h (quotearg_free): New decl.
58638         * lib/quotearg.c (quotearg_free): New function.
58639         (slot0, nslots, slotvec0, slotvec):
58640         Now file-scope so that quotearg_free can get at them.
58641
58642 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58643
58644         Sync from Automake.
58645         * build-aux/gnupload: Add missing 'gnu' to example URL.
58646         Report by Karl Berry.
58647
58648 2006-11-08  Bruno Haible  <bruno@clisp.org>
58649
58650         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
58651         Suggested by Paul Eggert.
58652
58653 2006-11-08  Jim Meyering  <jim@meyering.net>
58654
58655         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
58656         It's already included if !_LIBC.
58657         (fts_safe_changedir): Add a comment.
58658
58659 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
58660
58661         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
58662         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
58663         Matthew Woehlke.
58664
58665         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
58666         definitions up, to avoid colliding with change below.
58667         (static_inline) [HAVE_INLINE]: New macro.
58668         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
58669         Provide extern decls when !HAVE_INLINE.  Do not define unless
58670         static_inline is defined, either by us or by xmalloc.c.  Use
58671         static_inline rather than static inline.
58672         (XCALLOC): Optimize sizeof(T) = 1 case.
58673         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
58674
58675 2006-11-07  Bruno Haible  <bruno@clisp.org>
58676
58677         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
58678         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
58679         AC_C_INLINE.
58680         * modules/xalloc (Files): Add m4/inline.m4.
58681
58682 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58683
58684         * README: Fix typo.
58685         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
58686         (Miscellanous Notes): ...from this.
58687
58688 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
58689
58690         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
58691         Mention that offsetof should be used instead of sizeof.
58692         From Bruno Haible.
58693
58694 2006-11-07  Bruno Haible  <bruno@clisp.org>
58695
58696         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
58697
58698 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
58699
58700         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
58701         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
58702         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
58703         (gl_tree_add_before, gl_tree_add_after):
58704         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
58705         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
58706         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
58707         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
58708         (gl_linked_add_after, gl_linked_add_at): Likewise.
58709         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
58710         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
58711         (gl_tree_add_before, gl_tree_add_after): Likewise.
58712         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
58713         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
58714         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
58715
58716 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58717
58718         * lib/gl_oset.h: Use C comment style, not C++ comment style.
58719
58720 2006-11-06  Bruno Haible  <bruno@clisp.org>
58721
58722         * m4/inline.m4: New file.
58723         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
58724         * modules/list (Files): Add m4/inline.m4.
58725         * modules/oset (Files): Likewise.
58726
58727 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
58728
58729         * lib/idcache.c: Include <stddef.h>, for offsetof.
58730         (struct userid.name): Change from char * to a flexible array member.
58731         All uses changed.
58732         * modules/idcache (Depends-on): Add flexmember.
58733
58734         * MODULES.html.sh (Core language properties): New module flexmember.
58735         * modules/flexmember, m4/flexmember.m4: New files.
58736
58737         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
58738         inline functions that are identical with the old xnmalloc_inline,
58739         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
58740         that we can avoid some unnecessary integer multiplications and
58741         divisions in the common case where the element size is known at
58742         compile time.
58743         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
58744         needed.
58745         (xnboundedmalloc): Remove.
58746         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
58747         arguments, for consistency with rest of this header.
58748         (xcharalloc): Rewrite using XNMALLOC.
58749         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
58750         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
58751         versions have been moved to lib/xalloc.h and renamed to be the
58752         non-*_inline versions.
58753         (xmalloc, xrealloc): Implement without reference to the xnmalloc
58754         and xnrealloc functions, since those functions are now inline and
58755         now call us.
58756         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
58757         renaming described above.
58758         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
58759         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
58760         captures the dependency in AC_C_INLINE.
58761
58762         New module canonicalize-lgpl, proposed by Charles Wilson in
58763         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
58764         with a few small changes afterwards.
58765         * MODULES.html.sh (File system functions): New module
58766         canonicalize-lgpl.
58767         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
58768         and canonicalize_file_name.
58769         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
58770         * modules/canonicalize-lgpl: New files.
58771
58772 2006-11-05  Bruno Haible  <bruno@clisp.org>
58773
58774         * gnulib-tool (func_import, func_create_testdir): Create directories
58775         also for files in subdirectories of lib/.
58776
58777 2006-11-05  Bruno Haible  <bruno@clisp.org>
58778
58779         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
58780         ANSI C compliant.
58781
58782 2006-11-03  Bruno Haible  <bruno@clisp.org>
58783
58784         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
58785         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
58786         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
58787         (xnboundedmalloc): New inline function.
58788         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
58789         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
58790         xmalloc.
58791         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
58792         xmalloc.
58793         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
58794         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
58795         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
58796         xmalloc.
58797         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
58798         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
58799         xmalloc.
58800         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
58801         gl_tree_add_after): Use XMALLOC instead of xmalloc.
58802         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
58803         xmalloc.
58804         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
58805         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
58806         gl_tree_add_after): Use XMALLOC instead of xmalloc.
58807         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
58808         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
58809         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
58810         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
58811
58812 2006-11-03  Bruno Haible  <bruno@clisp.org>
58813
58814         * lib/c-ctype.h [C++]: Define functions without name mangling.
58815         * lib/fwriteerror.h [C++]: Likewise.
58816         * lib/gcd.h [C++]: Likewise.
58817         * lib/linebreak.h [C++]: Likewise.
58818
58819 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
58820
58821         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
58822         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
58823         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
58824         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
58825         Check for functions and headers just once.
58826         Check for declaration of canonicalize_file_name.
58827         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
58828
58829 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
58830
58831         * gnulib-tool (func_import): Fix typo in actioncmd.
58832
58833 2006-11-02  Bruno Haible  <bruno@clisp.org>
58834
58835         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
58836         newline sequence in the Makefile.am snippet as a space, like "make"
58837         does.
58838         Reported by Roger Persson <perrog@gmail.com>.
58839
58840 2006-11-01  Bruno Haible  <bruno@clisp.org>
58841
58842         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
58843         already declared in <string.h>.
58844         * lib/strcase.h (strncasecmp): Don't declare it if yes.
58845
58846 2006-11-01  Bruno Haible  <bruno@clisp.org>
58847
58848         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
58849         * lib/strcase.h: Include <string.h>.
58850         (strcasecmp): Define to rpl_strcasecmp here.
58851
58852 2006-11-01  Bruno Haible  <bruno@clisp.org>
58853
58854         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
58855
58856 2006-11-01  Eric Blake  <ebb9@byu.net>
58857
58858         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
58859
58860         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
58861
58862 2006-10-29  Bruno Haible  <bruno@clisp.org>
58863
58864         Make it compile in C++ mode.
58865         * lib/full-write.c (full_rw): Add a cast.
58866
58867 2006-11-01  Bruno Haible  <bruno@clisp.org>
58868
58869         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
58870         be POSIX compliant.
58871         Reported by Roger Persson <perrog@gmail.com>.
58872
58873 2006-11-01  Eric Blake  <ebb9@byu.net>
58874
58875         * lib/getopt_.h: Fix comments.
58876
58877 2006-10-31  Eric Blake  <ebb9@byu.net>
58878
58879         * modules/tmpdir (Depends-on): Add sys_stat.
58880         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
58881         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
58882         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
58883         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
58884         tempname.
58885
58886 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
58887
58888         Avoid some C++ diagnostics reported by Bruno Haible.
58889         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
58890         xmalloc.
58891         (quotearg_alloc): Use xcharalloc rather than xmalloc.
58892         (struct slotvec): Move to top level.
58893         (quotearg_n_options): Rewrite to avoid xmalloc.
58894         * lib/xalloc.h (xcharalloc): New function.
58895         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
58896         [defined __cplusplus]: Add function template that provides result
58897         type propagation.  This part of the change is from Bruno Haible.
58898
58899 2006-10-29  Bruno Haible  <bruno@clisp.org>
58900
58901         Make it compile in C++ mode.
58902         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
58903         * lib/strnlen1.c (strnlen1): Cast memchr result.
58904         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
58905         * lib/clean-temp.c (string_equals, string_hash): Add casts.
58906         (create_temp_dir): Rename local variable 'template'.
58907         (compile_csharp_using_sscli): Add cast.
58908         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
58909         * lib/findprog.c (find_in_path): Likewise.
58910         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
58911         * lib/wait-process.c (register_slave_subprocess): Likewise.
58912
58913 2006-10-22  Bruno Haible  <bruno@clisp.org>
58914
58915         * modules/tsearch: New file.
58916         * lib/tsearch.h: New file.
58917         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
58918         * m4/tsearch.m4: New file.
58919         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
58920
58921 2006-10-29  Eric Blake  <ebb9@byu.net>
58922
58923         * lib/arcfour.c: Assume config.h.
58924         * lib/arctwo.c: Likewise.
58925         * lib/base64.c: Likewise.
58926         * lib/check-version.c: Likewise.
58927         * lib/crc.c: Likewise.
58928         * lib/des.c: Likewise.
58929         * lib/gc-gnulib.c: Likewise.
58930         * lib/gc-libgcrypt.c: Likewise.
58931         * lib/gc-pbkdf2-sha1.c: Likewise.
58932         * lib/getaddrinfo.c: Likewise.
58933         * lib/getdelim.c: Likewise.
58934         * lib/getline.c: Likewise.
58935         * lib/hmac-md5.c: Likewise.
58936         * lib/hmac-sha1.c: Likewise.
58937         * lib/iconvme.c: Likewise.
58938         * lib/md2.c: Likewise.
58939         * lib/md4.c: Likewise.
58940         * lib/memxor.c: Likewise.
58941         * lib/read-file.c: Likewise.
58942         * lib/readline.c: Likewise.
58943         * lib/rijndael-alg-fst.c: Likewise.
58944         * lib/rijndael-api-fst.c: Likewise.
58945         * lib/xgetdomainname.c: Likewise.
58946
58947 2006-10-28  Eric Blake  <ebb9@byu.net>
58948
58949         * lib/xstrndup.c: Assume config.h.
58950
58951 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
58952
58953         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
58954         stat-macros.h is now for our own macros, whereas stat_h is for
58955         macros in the <sys/stat.h> name space.
58956         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
58957         (STAT_MACROS_H): Remove.
58958         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
58959         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
58960         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
58961         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
58962         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
58963         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
58964         Move these macros to ...
58965         * lib/stat_.h: here.  Don't include stat-macros.h.
58966         * lib/canonicalize.c: Don't include stat-macros.h.
58967         * lib/chown.c: Likewise.
58968         * lib/euidaccess.c: Likewise.
58969         * lib/file-type.c: Likewise.
58970         * lib/filemode.c: Likewise.
58971         * lib/glob.c: Likewise.
58972         * lib/isapipe.c: Likewise.
58973         * lib/lchown.c: Likewise.
58974         * lib/lstat.c: Likewise.
58975         * lib/mkdir-p.c: Likewise.
58976         * lib/rmdir.c: Likewise.
58977         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
58978         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
58979         unless mkdir isn't declared, to speed up 'configure'.
58980         Always create sys/stat.h, since it's unlikely any real sys/stat.h
58981         would define all the S_* symbols.
58982         * modules/canonicalize (Depends-on):
58983         Depend on sys_stat, not stat-macros.
58984         * modules/chown: Likewise.
58985         * modules/euidaccess: Likewise.
58986         * modules/filemode: Likewise.
58987         * modules/file-type: Likewise.
58988         * modules/glob: Likewise.
58989         * modules/isapipe: Likewise.
58990         * modules/lchown: Likewise.
58991         * modules/lstat: Likewise.
58992         * modules/mkancesdirs: Likewise.
58993         * modules/rmdir: Likewise.
58994         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
58995         * modules/modechange: Likewise.
58996         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
58997         (configure.ac): Remove gl_STAT_MACROS.
58998         * modules/sys_stat (Depends-on): Remove stat-macros.
58999
59000 2006-10-27  Bruno Haible  <bruno@clisp.org>
59001
59002         * m4/signed.m4: Remove file.
59003         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
59004         invocation.
59005         * modules/vasnprintf (Files): Remove m4/signed.m4.
59006
59007 2006-10-27  Bruno Haible  <bruno@clisp.org>
59008
59009         Update to GNU gettext 0.16.
59010         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
59011         m4/inttypes-h.m4, m4/signed.m4.
59012         * m4/gettext.m4: Update to GNU gettext 0.16.
59013         * m4/intl.m4: New file, from GNU gettext.
59014         * m4/intldir.m4: New file, from GNU gettext.
59015         * config/srclist.txt: Update
59016
59017 2006-10-27  Eric Blake  <ebb9@byu.net>
59018
59019         * MODULES.html.sh: Document tempname.
59020         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
59021         dependencies.
59022         (Files): Move lib/tempname.c...
59023         * modules/tempname: ...to this new module.
59024         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
59025         (gl_PREREQ_TEMPNAME): Move...
59026         * m4/tempname.m4: ...to this new file.
59027         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
59028         * modules/sys_stat (Depends-on): Add stat-macros.
59029         * lib/stat_.h (includes): Pick up stat macros.
59030         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
59031         if stat macros are broken.
59032         * lib/tempname.c (includes): No need to include "stat-macros.h".
59033         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
59034         (direxists, __path_search) [!_LIBC]: Don't compile these in
59035         gnulib; the tmpdir module covers that.
59036         * lib/tempname.h: New file.
59037
59038 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
59039
59040         * COPYING: Explain how gnulib-tool converts licence headers.
59041         Almost all wording by Eric Blake.
59042
59043 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
59044
59045         * lib/mbchar.h (is_basic_table): Make read-only.
59046         * lib/mbchar.c (is_basic_table): Likewise.
59047         Reported by John Darrington.
59048
59049 2006-10-25  Bruno Haible  <bruno@clisp.org>
59050
59051         * lib/progname.h (set_program_name): Undefine before defining.
59052
59053 2006-10-25  Bruno Haible  <bruno@clisp.org>
59054
59055         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
59056         false for non-gcc C++ compilers.
59057         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
59058
59059 2006-10-24  Bruno Haible  <bruno@clisp.org>
59060
59061         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
59062         iconv implementations like Irix iconv.
59063
59064 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59065
59066         * modules/vararrays: New file.
59067         * m4/vararrays.m4: New file, taken from diffutils.
59068         * MODULES.html.sh: New module vararrays.
59069
59070 2006-10-24  Karl Berry  <karl@gnu.org>
59071
59072         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
59073         Don't call GNU Unix.
59074
59075 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59076
59077         * users.txt: Add Libtool.
59078
59079         Sync from Libtool:
59080
59081         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59082
59083         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
59084         to gnulib's policy of including config.h unconditionally.
59085
59086 2006-10-24  Bruno Haible  <bruno@clisp.org>
59087
59088         * modules/wcwidth (Files): Add m4/wint_t.m4.
59089         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
59090         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
59091
59092 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59093
59094         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
59095         to pacify GCC with some -W flags enabled.  Problem reported by
59096         Bruno Haible.
59097
59098 2006-10-24  Jim Meyering  <jim@meyering.net>
59099
59100         * MODULES.html.sh: Remove uinttostr.  It's not a module.
59101         Reported by Karl Berry.
59102
59103 2006-10-23  Bruno Haible  <bruno@clisp.org>
59104
59105         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
59106
59107 2006-10-24  Bruno Haible  <bruno@clisp.org>
59108
59109         * lib/gl_list.h: Use C comment style, not C++ comment style.
59110
59111 2006-10-23  Eric Blake  <ebb9@byu.net>
59112
59113         * lib/getaddrinfo.c (includes): Add missing include.
59114
59115 2006-10-23  Bruno Haible  <bruno@clisp.org>
59116             Paul Eggert  <eggert@cs.ucla.edu>
59117
59118         Ability to rename obstack_free.
59119         * lib/obstack.h (__obstack_free): New macro. Declare instead of
59120         obstack_free.
59121         (obstack_free): Invoke the __obstack_free macro.
59122         * lib/obstack.c (obstack_free): Use __obstack_free macro.
59123
59124 2006-10-23  Bruno Haible  <bruno@clisp.org>
59125             Paul Eggert  <eggert@cs.ucla.edu>
59126
59127         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
59128         __argc, __argv from the declaration. (They are defined as macros on
59129         mingw.)
59130
59131 2006-10-22  Bruno Haible  <bruno@clisp.org>
59132
59133         * doc/gnulib-intro.texi: New file.
59134         * doc/gnulib.texi: Include it.
59135
59136 2006-10-21  Bruno Haible  <bruno@clisp.org>
59137
59138         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
59139         "Introduction", "Miscellanous Notes", "Particular Modules".
59140
59141 2006-10-21  Bruno Haible  <bruno@clisp.org>
59142
59143         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59144         Change mostlyclean-local rule to avoid sh syntax error from bash
59145         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
59146
59147 2006-10-23  Jim Meyering  <jim@meyering.net>
59148
59149         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
59150         in place of snprintf.
59151
59152         * modules/inttostr (Files): Add lib/uinttostr.c.
59153         * lib/uinttostr.c (inttostr): New file/function.
59154         * lib/inttostr.h (uinttostr): Declare.
59155         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
59156         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
59157         Add uinttostr.
59158         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
59159
59160 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
59161
59162         * lib/canonicalize.c (ELOOP): Define if not already defined.
59163         Problem reported by Bruno Haible in
59164         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
59165
59166 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
59167
59168         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
59169         Problem reported by Perry Smith and Ville Laurikari.
59170
59171         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
59172         uses.
59173
59174 2006-10-19  Bruno Haible  <bruno@clisp.org>
59175
59176         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
59177         for mingw.
59178
59179 2006-10-19  Bruno Haible  <bruno@clisp.org>
59180
59181         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
59182         Needed for mingw.
59183
59184 2006-10-19  Bruno Haible  <bruno@clisp.org>
59185
59186         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
59187
59188 2006-10-19  Bruno Haible  <bruno@clisp.org>
59189
59190         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
59191         it.
59192
59193 2006-10-19  Bruno Haible  <bruno@clisp.org>
59194
59195         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
59196         invocation.
59197
59198 2006-10-19  Bruno Haible  <bruno@clisp.org>
59199
59200         * gnulib-tool (func_create_testdir): Don't include ftruncate and
59201         mountlist by default.
59202
59203 2006-10-16  Bruno Haible  <bruno@clisp.org>
59204
59205         * lib/c-strstr.c: Include c-strstr.h.
59206
59207 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
59208
59209         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
59210         in a slash.
59211
59212 2006-10-18  Bruno Haible  <bruno@clisp.org>
59213
59214         * lib/lock.h [C++]: Wrap definitions in extern "C".
59215
59216 2006-10-18  Bruno Haible  <bruno@clisp.org>
59217
59218         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
59219         gl_LIBOBJS list.
59220
59221 2006-10-18  Bruno Haible  <bruno@clisp.org>
59222
59223         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
59224
59225 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
59226
59227         * lib/xstrtol.h: Include gettext.h.
59228         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
59229         Problem reported by Eric Blake.
59230         * modules/xstrtol (Depends-on): Add gettext-h.
59231
59232 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
59233
59234         * lib/strftime.c (advance): New macro.
59235         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
59236         incomplete type, so you can't add 0 to it.  Problem and patch
59237         reported by Eelco Dolstra for dietlibc.
59238
59239 2006-10-18  Jim Meyering  <jim@meyering.net>
59240
59241         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
59242         type for a local, and rename it: s/up/user_proc/.
59243
59244 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
59245
59246         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
59247         READ_UTMP_USER_PROCESS.
59248         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
59249
59250 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
59251
59252         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
59253         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
59254
59255 2006-10-17  Eric Blake  <ebb9@byu.net>
59256
59257         * lib/sigprocmask.c (sigprocmask): Fix typo.
59258
59259         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
59260
59261         * modules/clean-temp (Makefile.am): Don't add to make output...
59262         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
59263         config.h.
59264
59265 2006-10-17  Bruno Haible  <bruno@clisp.org>
59266
59267         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
59268         differently if DEFAULT_TEXT_DOMAIN is set.
59269
59270 2006-10-16  Bruno Haible  <bruno@clisp.org>
59271
59272         * lib/clean-temp.c: Include fwriteerror.h.
59273
59274 2006-10-16  Bruno Haible  <bruno@clisp.org>
59275
59276         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
59277
59278 2006-10-16  Bruno Haible  <bruno@clisp.org>
59279
59280         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
59281         * lib/sigprocmask.h: Include <sys/types.h>.
59282         (sigset_t): Use the system's definition if present.
59283
59284 2006-10-17  Eric Blake  <ebb9@byu.net>
59285
59286         * lib/xvasprintf.c (includes): Assume config.h.
59287         * lib/xasprintf.c (includes): Likewise.
59288
59289 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
59290
59291         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
59292         at least as wide as intmax_t.
59293
59294 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
59295
59296         (Imported from Automake.)
59297         * build-aux/gnupload: Update to version 1.1 of directive file.
59298
59299 2006-10-16  Eric Blake  <ebb9@byu.net>
59300
59301         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
59302         match Automake 1.10a.
59303
59304 2006-10-14  Bruno Haible  <bruno@clisp.org>
59305
59306         * modules/sigprocmask: New file.
59307         * lib/sigprocmask.h: New file.
59308         * lib/sigprocmask.c: New file.
59309         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
59310         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
59311         request sigprocmask.o.
59312         (gl_PREREQ_SIGPROCMASK): New macro.
59313         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
59314         (Depends-on): Add sigprocmask.
59315         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
59316         gt_SIGNALBLOCKING. Test for 'raise' only once.
59317         * lib/fatal-signal.c: Include sigprocmask.h.
59318         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
59319         unblock_fatal_signals): Define always.
59320         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59321         sigprocmask.
59322
59323 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
59324
59325         Sync from Automake.
59326         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
59327         which incorrectly sets the mode of an existing destination
59328         directory.  In some cases the unpatched install-sh could do the
59329         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
59330         system.  We hope this is rare in practice, but it's clearly worth
59331         fixing.  Problem reported by Alex Unleashed in
59332         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
59333         Also, don't bother to check for -m bugs unless we're using -m;
59334         suggested by Stepan Kasal.
59335
59336 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59337
59338         Sync from Automake.
59339         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
59340         `-c' flag, so they appear at the same position as in %FASTDEP%
59341         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
59342         which ignores unknown options only after the first non-option.
59343         Bug report against M4 by Nelson H. F. Beebe.
59344
59345 2006-10-13  Jim Meyering  <jim@meyering.net>
59346
59347         Fix a bug in yesterday's change.
59348         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
59349         p->fts_statp->st_dev would be used uninitialized.
59350         Ensures that we always call fts_stat on the very first entry.
59351         Miklos Szeredi reported that find -xdev stopped working.
59352
59353 2006-10-12  Bruno Haible  <bruno@clisp.org>
59354
59355         * gnulib-tool (func_get_automake_snippet): Append an automatically
59356         computed EXTRA_DIST augmentation.
59357         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
59358         * modules/alloca-opt (Makefile.am): Likewise.
59359         * modules/allocsa (Makefile.am): Likewise.
59360         * modules/arcfour (Makefile.am): Likewise.
59361         * modules/arctwo (Makefile.am): Likewise.
59362         * modules/argmatch (Makefile.am): Likewise.
59363         * modules/argz (Makefile.am): Likewise.
59364         * modules/atexit (Makefile.am): Likewise.
59365         * modules/backupfile (Makefile.am): Likewise.
59366         * modules/byteswap (Makefile.am): Likewise.
59367         * modules/c-strtod (Makefile.am): Likewise.
59368         * modules/c-strtold (Makefile.am): Likewise.
59369         * modules/calloc (Makefile.am): Likewise.
59370         * modules/canon-host (Makefile.am): Likewise.
59371         * modules/canonicalize (Makefile.am): Likewise.
59372         * modules/chdir-long (Makefile.am): Likewise.
59373         * modules/chdir-safer (Makefile.am): Likewise.
59374         * modules/check-version (Makefile.am): Likewise.
59375         * modules/chown (Makefile.am): Likewise.
59376         * modules/cloexec (Makefile.am): Likewise.
59377         * modules/close-stream (Makefile.am): Likewise.
59378         * modules/closeout (Makefile.am): Likewise.
59379         * modules/crc (Makefile.am): Likewise.
59380         * modules/csharpexec (Makefile.am): Likewise.
59381         * modules/cycle-check (Makefile.am): Likewise.
59382         * modules/des (Makefile.am): Likewise.
59383         * modules/dev-ino (Makefile.am): Likewise.
59384         * modules/dirfd (Makefile.am): Likewise.
59385         * modules/dirname (Makefile.am): Likewise.
59386         * modules/dup2 (Makefile.am): Likewise.
59387         * modules/eealloc (Makefile.am): Likewise.
59388         * modules/error (Makefile.am): Likewise.
59389         * modules/euidaccess (Makefile.am): Likewise.
59390         * modules/exclude (Makefile.am): Likewise.
59391         * modules/exitfail (Makefile.am): Likewise.
59392         * modules/fcntl-safer (Makefile.am): Likewise.
59393         * modules/fcntl (Makefile.am): Likewise.
59394         * modules/file-type (Makefile.am): Likewise.
59395         * modules/fileblocks (Makefile.am): Likewise.
59396         * modules/filemode (Makefile.am): Likewise.
59397         * modules/filenamecat (Makefile.am): Likewise.
59398         * modules/fnmatch (Makefile.am): Likewise.
59399         * modules/fopen-safer (Makefile.am): Likewise.
59400         * modules/fpending (Makefile.am): Likewise.
59401         * modules/fprintftime (Makefile.am): Likewise.
59402         * modules/free (Makefile.am): Likewise.
59403         * modules/fsusage (Makefile.am): Likewise.
59404         * modules/ftruncate (Makefile.am): Likewise.
59405         * modules/fts (Makefile.am): Likewise.
59406         * modules/gc-arcfour (Makefile.am): Likewise.
59407         * modules/gc-des (Makefile.am): Likewise.
59408         * modules/gc-hmac-md5 (Makefile.am): Likewise.
59409         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
59410         * modules/gc-md4 (Makefile.am): Likewise.
59411         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
59412         * modules/gc-sha1 (Makefile.am): Likewise.
59413         * modules/gc (Makefile.am): Likewise.
59414         * modules/getaddrinfo (Makefile.am): Likewise.
59415         * modules/getcwd (Makefile.am): Likewise.
59416         * modules/getdelim (Makefile.am): Likewise.
59417         * modules/getdomainname (Makefile.am): Likewise.
59418         * modules/getgroups (Makefile.am): Likewise.
59419         * modules/gethostname (Makefile.am): Likewise.
59420         * modules/gethrxtime (Makefile.am): Likewise.
59421         * modules/getline (Makefile.am): Likewise.
59422         * modules/getloadavg (Makefile.am): Likewise.
59423         * modules/getlogin_r (Makefile.am): Likewise.
59424         * modules/getndelim2 (Makefile.am): Likewise.
59425         * modules/getopt (Makefile.am): Likewise.
59426         * modules/getpagesize (Makefile.am): Likewise.
59427         * modules/getpass-gnu (Makefile.am): Likewise.
59428         * modules/getpass (Makefile.am): Likewise.
59429         * modules/getsubopt (Makefile.am): Likewise.
59430         * modules/gettime (Makefile.am): Likewise.
59431         * modules/gettimeofday (Makefile.am): Likewise.
59432         * modules/getugroups (Makefile.am): Likewise.
59433         * modules/getusershell (Makefile.am): Likewise.
59434         * modules/glob (Makefile.am): Likewise.
59435         * modules/group-member (Makefile.am): Likewise.
59436         * modules/hard-locale (Makefile.am): Likewise.
59437         * modules/hash (Makefile.am): Likewise.
59438         * modules/hmac-md5 (Makefile.am): Likewise.
59439         * modules/hmac-sha1 (Makefile.am): Likewise.
59440         * modules/human (Makefile.am): Likewise.
59441         * modules/idcache (Makefile.am): Likewise.
59442         * modules/imaxabs (Makefile.am): Likewise.
59443         * modules/imaxdiv (Makefile.am): Likewise.
59444         * modules/inet_ntop (Makefile.am): Likewise.
59445         * modules/inet_pton (Makefile.am): Likewise.
59446         * modules/intprops (Makefile.am): Likewise.
59447         * modules/inttostr (Makefile.am): Likewise.
59448         * modules/inttypes (Makefile.am): Likewise.
59449         * modules/isapipe (Makefile.am): Likewise.
59450         * modules/javaversion (Makefile.am): Likewise.
59451         * modules/lchmod (Makefile.am): Likewise.
59452         * modules/lchown (Makefile.am): Likewise.
59453         * modules/localcharset (Makefile.am): Likewise.
59454         * modules/long-options (Makefile.am): Likewise.
59455         * modules/lstat (Makefile.am): Likewise.
59456         * modules/malloc (Makefile.am): Likewise.
59457         * modules/mathl (Makefile.am): Likewise.
59458         * modules/mbchar (Makefile.am): Likewise.
59459         * modules/md2 (Makefile.am): Likewise.
59460         * modules/md4 (Makefile.am): Likewise.
59461         * modules/md5 (Makefile.am): Likewise.
59462         * modules/memcasecmp (Makefile.am): Likewise.
59463         * modules/memchr (Makefile.am): Likewise.
59464         * modules/memcmp (Makefile.am): Likewise.
59465         * modules/memcoll (Makefile.am): Likewise.
59466         * modules/memcpy (Makefile.am): Likewise.
59467         * modules/memmem (Makefile.am): Likewise.
59468         * modules/memmove (Makefile.am): Likewise.
59469         * modules/mempcpy (Makefile.am): Likewise.
59470         * modules/memrchr (Makefile.am): Likewise.
59471         * modules/memset (Makefile.am): Likewise.
59472         * modules/memxor (Makefile.am): Likewise.
59473         * modules/mkancesdirs (Makefile.am): Likewise.
59474         * modules/mkdir-p (Makefile.am): Likewise.
59475         * modules/mkdir (Makefile.am): Likewise.
59476         * modules/mkdtemp (Makefile.am): Likewise.
59477         * modules/mkstemp (Makefile.am): Likewise.
59478         * modules/mktime (Makefile.am): Likewise.
59479         * modules/modechange (Makefile.am): Likewise.
59480         * modules/mountlist (Makefile.am): Likewise.
59481         * modules/nanosleep (Makefile.am): Likewise.
59482         * modules/obstack (Makefile.am): Likewise.
59483         * modules/openat (Makefile.am): Likewise.
59484         * modules/pagealign_alloc (Makefile.am): Likewise.
59485         * modules/pathmax (Makefile.am): Likewise.
59486         * modules/physmem (Makefile.am): Likewise.
59487         * modules/poll (Makefile.am): Likewise.
59488         * modules/posixtm (Makefile.am): Likewise.
59489         * modules/posixver (Makefile.am): Likewise.
59490         * modules/putenv (Makefile.am): Likewise.
59491         * modules/quote (Makefile.am): Likewise.
59492         * modules/quotearg (Makefile.am): Likewise.
59493         * modules/raise (Makefile.am): Likewise.
59494         * modules/read-file (Makefile.am): Likewise.
59495         * modules/readline (Makefile.am): Likewise.
59496         * modules/readlink (Makefile.am): Likewise.
59497         * modules/readtokens (Makefile.am): Likewise.
59498         * modules/readutmp (Makefile.am): Likewise.
59499         * modules/realloc (Makefile.am): Likewise.
59500         * modules/regex (Makefile.am): Likewise.
59501         * modules/rename-dest-slash (Makefile.am): Likewise.
59502         * modules/rename (Makefile.am): Likewise.
59503         * modules/rijndael (Makefile.am): Likewise.
59504         * modules/rmdir (Makefile.am): Likewise.
59505         * modules/rpmatch (Makefile.am): Likewise.
59506         * modules/safe-read (Makefile.am): Likewise.
59507         * modules/safe-write (Makefile.am): Likewise.
59508         * modules/same-inode (Makefile.am): Likewise.
59509         * modules/same (Makefile.am): Likewise.
59510         * modules/save-cwd (Makefile.am): Likewise.
59511         * modules/savedir (Makefile.am): Likewise.
59512         * modules/setenv (Makefile.am): Likewise.
59513         * modules/settime (Makefile.am): Likewise.
59514         * modules/sha1 (Makefile.am): Likewise.
59515         * modules/sig2str (Makefile.am): Likewise.
59516         * modules/snprintf (Makefile.am): Likewise.
59517         * modules/stat-macros (Makefile.am): Likewise.
59518         * modules/stat-time (Makefile.am): Likewise.
59519         * modules/stdbool (Makefile.am): Likewise.
59520         * modules/stdint (Makefile.am): Likewise.
59521         * modules/stdlib-safer (Makefile.am): Likewise.
59522         * modules/stpcpy (Makefile.am): Likewise.
59523         * modules/stpncpy (Makefile.am): Likewise.
59524         * modules/strcase (Makefile.am): Likewise.
59525         * modules/strcasestr (Makefile.am): Likewise.
59526         * modules/strchrnul (Makefile.am): Likewise.
59527         * modules/strcspn (Makefile.am): Likewise.
59528         * modules/strdup (Makefile.am): Likewise.
59529         * modules/strerror (Makefile.am): Likewise.
59530         * modules/strftime (Makefile.am): Likewise.
59531         * modules/strndup (Makefile.am): Likewise.
59532         * modules/strnlen (Makefile.am): Likewise.
59533         * modules/strpbrk (Makefile.am): Likewise.
59534         * modules/strsep (Makefile.am): Likewise.
59535         * modules/strstr (Makefile.am): Likewise.
59536         * modules/strtod (Makefile.am): Likewise.
59537         * modules/strtoimax (Makefile.am): Likewise.
59538         * modules/strtok_r (Makefile.am): Likewise.
59539         * modules/strtol (Makefile.am): Likewise.
59540         * modules/strtoll (Makefile.am): Likewise.
59541         * modules/strtoul (Makefile.am): Likewise.
59542         * modules/strtoull (Makefile.am): Likewise.
59543         * modules/strtoumax (Makefile.am): Likewise.
59544         * modules/strverscmp (Makefile.am): Likewise.
59545         * modules/sys_socket (Makefile.am): Likewise.
59546         * modules/sys_stat (Makefile.am): Likewise.
59547         * modules/sysexits (Makefile.am): Likewise.
59548         * modules/time_r (Makefile.am): Likewise.
59549         * modules/timegm (Makefile.am): Likewise.
59550         * modules/timespec (Makefile.am): Likewise.
59551         * modules/tmpfile-safer (Makefile.am): Likewise.
59552         * modules/trim (Makefile.am): Likewise.
59553         * modules/unistd-safer (Makefile.am): Likewise.
59554         * modules/unlinkdir (Makefile.am): Likewise.
59555         * modules/unlocked-io (Makefile.am): Likewise.
59556         * modules/userspec (Makefile.am): Likewise.
59557         * modules/utime (Makefile.am): Likewise.
59558         * modules/utimecmp (Makefile.am): Likewise.
59559         * modules/utimens (Makefile.am): Likewise.
59560         * modules/vasnprintf (Makefile.am): Likewise.
59561         * modules/vasprintf (Makefile.am): Likewise.
59562         * modules/vsnprintf (Makefile.am): Likewise.
59563         * modules/xalloc (Makefile.am): Likewise.
59564         * modules/xgetcwd (Makefile.am): Likewise.
59565         * modules/xnanosleep (Makefile.am): Likewise.
59566         * modules/xreadlink (Makefile.am): Likewise.
59567         * modules/xstrtod (Makefile.am): Likewise.
59568         * modules/xstrtol (Makefile.am): Likewise.
59569         * modules/xstrtold (Makefile.am): Likewise.
59570         * modules/yesno (Makefile.am): Likewise.
59571         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
59572
59573 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
59574
59575         * modules/error (Makefile.am): Distribute files through
59576         EXTRA_DIST, not lib_SOURCES.
59577
59578 2006-10-12  Eric Blake  <ebb9@byu.net>
59579
59580         * modules/error (Makefile.am): Distribute files in /lib.
59581         * modules/obstack (Makefile.am): Likewise.
59582
59583 2006-10-12  Bruno Haible  <bruno@clisp.org>
59584
59585         * modules/acl (Makefile.am): Distribute all files in lib/ through
59586         EXTRA_DIST.
59587         * modules/arcfour (Makefile.am): Likewise.
59588         * modules/arctwo (Makefile.am): Likewise.
59589         * modules/argmatch (Makefile.am): Likewise.
59590         * modules/argz (Makefile.am): Likewise.
59591         * modules/atexit (Makefile.am): Likewise.
59592         * modules/backupfile (Makefile.am): Likewise.
59593         * modules/c-strtod (Makefile.am): Likewise.
59594         * modules/c-strtold (Makefile.am): Likewise.
59595         * modules/calloc (Makefile.am): Likewise.
59596         * modules/canon-host (Makefile.am): Likewise.
59597         * modules/canonicalize (Makefile.am): Likewise.
59598         * modules/chdir-long (Makefile.am): Likewise.
59599         * modules/chdir-safer (Makefile.am): Likewise.
59600         * modules/check-version (Makefile.am): Likewise.
59601         * modules/chown (Makefile.am): Likewise.
59602         * modules/cloexec (Makefile.am): Likewise.
59603         * modules/close-stream (Makefile.am): Likewise.
59604         * modules/closeout (Makefile.am): Likewise.
59605         * modules/crc (Makefile.am): Likewise.
59606         * modules/cycle-check (Makefile.am): Likewise.
59607         * modules/des (Makefile.am): Likewise.
59608         * modules/dirfd (Makefile.am): Likewise.
59609         * modules/dirname (Makefile.am): Likewise.
59610         * modules/dup2 (Makefile.am): Likewise.
59611         * modules/euidaccess (Makefile.am): Likewise.
59612         * modules/exclude (Makefile.am): Likewise.
59613         * modules/exitfail (Makefile.am): Likewise.
59614         * modules/fcntl-safer (Makefile.am): Likewise.
59615         * modules/file-type (Makefile.am): Likewise.
59616         * modules/fileblocks (Makefile.am): Likewise.
59617         * modules/filemode (Makefile.am): Likewise.
59618         * modules/filenamecat (Makefile.am): Likewise.
59619         * modules/fnmatch (Makefile.am): Likewise.
59620         * modules/fopen-safer (Makefile.am): Likewise.
59621         * modules/fpending (Makefile.am): Likewise.
59622         * modules/fprintftime (Makefile.am): Likewise.
59623         * modules/free (Makefile.am): Likewise.
59624         * modules/fsusage (Makefile.am): Likewise.
59625         * modules/ftruncate (Makefile.am): Likewise.
59626         * modules/fts (Makefile.am): Likewise.
59627         * modules/gc (Makefile.am): Likewise.
59628         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
59629         * modules/getaddrinfo (Makefile.am): Likewise.
59630         * modules/getcwd (Makefile.am): Likewise.
59631         * modules/getdelim (Makefile.am): Likewise.
59632         * modules/getdomainname (Makefile.am): Likewise.
59633         * modules/getgroups (Makefile.am): Likewise.
59634         * modules/gethostname (Makefile.am): Likewise.
59635         * modules/gethrxtime (Makefile.am): Likewise.
59636         * modules/getline (Makefile.am): Likewise.
59637         * modules/getloadavg (Makefile.am): Likewise.
59638         * modules/getlogin_r (Makefile.am): Likewise.
59639         * modules/getopt (Makefile.am): Likewise.
59640         * modules/getpass (Makefile.am): Likewise.
59641         * modules/getpass-gnu (Makefile.am): Likewise.
59642         * modules/getsubopt (Makefile.am): Likewise.
59643         * modules/gettime (Makefile.am): Likewise.
59644         * modules/gettimeofday (Makefile.am): Likewise.
59645         * modules/getugroups (Makefile.am): Likewise.
59646         * modules/getusershell (Makefile.am): Likewise.
59647         * modules/glob (Makefile.am): Likewise.
59648         * modules/group-member (Makefile.am): Likewise.
59649         * modules/hard-locale (Makefile.am): Likewise.
59650         * modules/hash (Makefile.am): Likewise.
59651         * modules/hmac-md5 (Makefile.am): Likewise.
59652         * modules/hmac-sha1 (Makefile.am): Likewise.
59653         * modules/human (Makefile.am): Likewise.
59654         * modules/idcache (Makefile.am): Likewise.
59655         * modules/imaxabs (Makefile.am): Likewise.
59656         * modules/imaxdiv (Makefile.am): Likewise.
59657         * modules/inet_ntop (Makefile.am): Likewise.
59658         * modules/inet_pton (Makefile.am): Likewise.
59659         * modules/inttostr (Makefile.am): Likewise.
59660         * modules/isapipe (Makefile.am): Likewise.
59661         * modules/lchown (Makefile.am): Likewise.
59662         * modules/long-options (Makefile.am): Likewise.
59663         * modules/lstat (Makefile.am): Likewise.
59664         * modules/malloc (Makefile.am): Likewise.
59665         * modules/mathl (Makefile.am): Likewise.
59666         * modules/mbchar (Makefile.am): Likewise.
59667         * modules/md2 (Makefile.am): Likewise.
59668         * modules/md4 (Makefile.am): Likewise.
59669         * modules/md5 (Makefile.am): Likewise.
59670         * modules/memcasecmp (Makefile.am): Likewise.
59671         * modules/memchr (Makefile.am): Likewise.
59672         * modules/memcmp (Makefile.am): Likewise.
59673         * modules/memcoll (Makefile.am): Likewise.
59674         * modules/memcpy (Makefile.am): Likewise.
59675         * modules/memmem (Makefile.am): Likewise.
59676         * modules/memmove (Makefile.am): Likewise.
59677         * modules/mempcpy (Makefile.am): Likewise.
59678         * modules/memrchr (Makefile.am): Likewise.
59679         * modules/memset (Makefile.am): Likewise.
59680         * modules/memxor (Makefile.am): Likewise.
59681         * modules/mkancesdirs (Makefile.am): Likewise.
59682         * modules/mkdir (Makefile.am): Likewise.
59683         * modules/mkdir-p (Makefile.am): Likewise.
59684         * modules/mkdtemp (Makefile.am): Likewise.
59685         * modules/mkstemp (Makefile.am): Likewise.
59686         * modules/mktime (Makefile.am): Likewise.
59687         * modules/modechange (Makefile.am): Likewise.
59688         * modules/mountlist (Makefile.am): Likewise.
59689         * modules/nanosleep (Makefile.am): Likewise.
59690         * modules/openat (Makefile.am): Likewise.
59691         * modules/pagealign_alloc (Makefile.am): Likewise.
59692         * modules/physmem (Makefile.am): Likewise.
59693         * modules/poll (Makefile.am): Likewise.
59694         * modules/posixtm (Makefile.am): Likewise.
59695         * modules/posixver (Makefile.am): Likewise.
59696         * modules/putenv (Makefile.am): Likewise.
59697         * modules/quote (Makefile.am): Likewise.
59698         * modules/quotearg (Makefile.am): Likewise.
59699         * modules/raise (Makefile.am): Likewise.
59700         * modules/read-file (Makefile.am): Likewise.
59701         * modules/readline (Makefile.am): Likewise.
59702         * modules/readlink (Makefile.am): Likewise.
59703         * modules/readtokens (Makefile.am): Likewise.
59704         * modules/readutmp (Makefile.am): Likewise.
59705         * modules/realloc (Makefile.am): Likewise.
59706         * modules/regex (Makefile.am): Likewise.
59707         * modules/rename (Makefile.am): Likewise.
59708         * modules/rename-dest-slash (Makefile.am): Likewise.
59709         * modules/rijndael (Makefile.am): Likewise.
59710         * modules/rmdir (Makefile.am): Likewise.
59711         * modules/rpmatch (Makefile.am): Likewise.
59712         * modules/safe-read (Makefile.am): Likewise.
59713         * modules/safe-write (Makefile.am): Likewise.
59714         * modules/same (Makefile.am): Likewise.
59715         * modules/save-cwd (Makefile.am): Likewise.
59716         * modules/savedir (Makefile.am): Likewise.
59717         * modules/setenv (Makefile.am): Likewise.
59718         * modules/settime (Makefile.am): Likewise.
59719         * modules/sha1 (Makefile.am): Likewise.
59720         * modules/sig2str (Makefile.am): Likewise.
59721         * modules/snprintf (Makefile.am): Likewise.
59722         * modules/stdlib-safer (Makefile.am): Likewise.
59723         * modules/stpcpy (Makefile.am): Likewise.
59724         * modules/stpncpy (Makefile.am): Likewise.
59725         * modules/strcase (Makefile.am): Likewise.
59726         * modules/strcasestr (Makefile.am): Likewise.
59727         * modules/strchrnul (Makefile.am): Likewise.
59728         * modules/strcspn (Makefile.am): Likewise.
59729         * modules/strdup (Makefile.am): Likewise.
59730         * modules/strerror (Makefile.am): Likewise.
59731         * modules/strftime (Makefile.am): Likewise.
59732         * modules/strndup (Makefile.am): Likewise.
59733         * modules/strnlen (Makefile.am): Likewise.
59734         * modules/strpbrk (Makefile.am): Likewise.
59735         * modules/strsep (Makefile.am): Likewise.
59736         * modules/strstr (Makefile.am): Likewise.
59737         * modules/strtod (Makefile.am): Likewise.
59738         * modules/strtoimax (Makefile.am): Likewise.
59739         * modules/strtok_r (Makefile.am): Likewise.
59740         * modules/strtol (Makefile.am): Likewise.
59741         * modules/strtoll (Makefile.am): Likewise.
59742         * modules/strtoul (Makefile.am): Likewise.
59743         * modules/strtoull (Makefile.am): Likewise.
59744         * modules/strtoumax (Makefile.am): Likewise.
59745         * modules/strverscmp (Makefile.am): Likewise.
59746         * modules/time_r (Makefile.am): Likewise.
59747         * modules/timegm (Makefile.am): Likewise.
59748         * modules/tmpfile-safer (Makefile.am): Likewise.
59749         * modules/unistd-safer (Makefile.am): Likewise.
59750         * modules/unlinkdir (Makefile.am): Likewise.
59751         * modules/userspec (Makefile.am): Likewise.
59752         * modules/utime (Makefile.am): Likewise.
59753         * modules/utimecmp (Makefile.am): Likewise.
59754         * modules/utimens (Makefile.am): Likewise.
59755         * modules/vasnprintf (Makefile.am): Likewise.
59756         * modules/vasprintf (Makefile.am): Likewise.
59757         * modules/vsnprintf (Makefile.am): Likewise.
59758         * modules/xalloc (Makefile.am): Likewise.
59759         * modules/xgetcwd (Makefile.am): Likewise.
59760         * modules/xnanosleep (Makefile.am): Likewise.
59761         * modules/xreadlink (Makefile.am): Likewise.
59762         * modules/xstrtod (Makefile.am): Likewise.
59763         * modules/xstrtol (Makefile.am): Likewise.
59764         * modules/xstrtold (Makefile.am): Likewise.
59765         * modules/yesno (Makefile.am): Likewise.
59766
59767 2006-10-12  Jim Meyering  <jim@meyering.net>
59768
59769         * m4/getloadavg.m4: Revert the change below.
59770
59771         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
59772         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
59773         fail with a symlink, which is what coreutils' ./bootstrap now
59774         creates by default.
59775
59776 2006-10-12  Bruno Haible  <bruno@clisp.org>
59777
59778         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
59779         mingw.
59780         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
59781         MSVC and mingw explicitly.
59782
59783 2006-10-11  Simon Josefsson  <jas@extundo.com>
59784             Bruno Haible  <bruno@clisp.org>
59785
59786         Add support for multiple gnulib-tool invocations in the scope of a
59787         single configure.ac file.
59788         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
59789         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
59790         with the same contents as the _LIBADD variable.
59791         (func_emit_initmacro_start, func_emit_initmacro_end,
59792         func_emit_initmacro_done): New functions.
59793         (func_import, func_create_testdir): Invoke them. Allow the identifiers
59794         gl_LIBOBJS and gl_LTLIBOBJS.
59795
59796 2006-10-11  Bruno Haible  <bruno@clisp.org>
59797
59798         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
59799         (func_create_testdir): Don't create po/Makefile.am, don't invoke
59800         autoreconf. Instead, invoke autopoint explicitly but move back the
59801         *.m4 files from gnulib.
59802
59803 2006-10-11  Bruno Haible  <bruno@clisp.org>
59804
59805         * gnulib-tool (func_usage): Make module names after --create-testdir
59806         optional.
59807         (func_create_testdir): If no module was specified, use nearly all
59808         modules.
59809
59810 2006-10-12  Jim Meyering  <jim@meyering.net>
59811
59812         Big performance improvement for fts-based tools that use FTS_NOSTAT.
59813         Avoid spurious inode-mismatch problems on non-POSIX file systems.
59814         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
59815         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
59816         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
59817         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
59818         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
59819         (fts_set_stat_required): New function.
59820         (fts_open): Defer the calls to fts_stat, if possible or requested.
59821         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
59822         into fts_stat itself.
59823         (fts_read): Perform any required (deferred) fts_stat call.
59824         (fts_build): Likewise, for the directory we're about to open and read.
59825         In the readdir loop, carefully decide whether each entry will require
59826         an eventual call to fts_stat, using dirent.d_type info if available.
59827         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
59828         a command line argument into this function.  Update all callers.
59829         Map a return value of FTS_DOT to FTS_D for a command line argument.
59830         * modules/fts (Depends-on): Add d-type.  Alphabetize.
59831         Thanks to Miklos Szeredi for his tenacity and for the initial
59832         bug report about "find" failing on a FUSE-based file system.
59833
59834         * lib/fts.c (fts_open): Use consistent indentation.
59835
59836 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
59837
59838         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
59839         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
59840         reported by Jim Meyering.  All uses of cache variables renamed
59841         to match Autoconf's.
59842         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
59843         the other one.
59844
59845         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
59846         Fix misspelling in diagnostic.
59847
59848 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
59849
59850         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
59851         defined.  Problem reported by Matthew Woehlke.
59852
59853         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
59854         Add support for Tandem NonStop R series.
59855         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
59856         Use new macro.
59857
59858         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
59859         (has_trailing_slash): Omit size arg; all callers changed.
59860         Omit 'inline', since it doesn't help performance and we'd
59861         need to configure it.
59862         Don't count //, ///, etc. as having a trailing slash.
59863         As a side effect, this removes a C99ism reported by Matthew Woehlke.
59864         (rpl_rename_dest_slash): On failure, use rename's errno rather
59865         than (in some cases) an incorrect or junk errno.
59866         Simplify code by removing need to compute length; this does
59867         cause it to make two passes instead of one over the file name,
59868         but it's worth it.
59869
59870         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
59871         change, since Autoconf's version may no longer be appropriate now
59872         that we are using CVS Autoconf's version.  Add support for Tandem.
59873
59874 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
59875             Bruno Haible  <bruno@clisp.org>
59876
59877         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
59878         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
59879         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
59880         gl_AC_TYPE_LONG_LONG.
59881
59882         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
59883         instead of HAVE_LONG_LONG.
59884         * lib/printf-args.c (printf_fetchargs): Likewise.
59885         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
59886         * lib/vasnprintf.c (VASNPRINTF): Likewise.
59887         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
59888         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
59889         gl_AC_TYPE_LONG_LONG.
59890
59891 2006-10-11  Bruno Haible  <bruno@clisp.org>
59892
59893         * m4/longlong.m4: Add comments.
59894         * m4/ulonglong.m4: Likewise.
59895
59896 2006-10-10  Bruno Haible  <bruno@clisp.org>
59897
59898         Make it possible to #define stpcpy, strdup to aliases.
59899         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
59900         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
59901
59902 2006-10-10  Bruno Haible  <bruno@clisp.org>
59903
59904         Make it possible to #define gcd to an alias.
59905         * lib/gcd.c: Include config.h.
59906
59907 2006-10-10  Bruno Haible  <bruno@clisp.org>
59908
59909         Make it possible to #define c_isascii to an alias.
59910         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
59911         defined. Undefine the macros before defining them, to avoid gcc
59912         warnings.
59913         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
59914         define NO_C_CTYPE_MACROS early.
59915
59916 2006-10-10  Bruno Haible  <bruno@clisp.org>
59917
59918         Make it possible to #define set_program_name to an alias.
59919         * lib/progname.c: Don't undefine set_program_name; instead, undefine
59920         ENABLE_RELOCATABLE early.
59921
59922 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
59923
59924         Port to Tandem NSK OSS, which has 64-bit signed int but at most
59925         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
59926         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
59927         More generally, don't assume that 64-bit signed int is available
59928         if unsigned int is, and vice versa.
59929         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
59930         unsigned symbols, not on their signed counterparts.
59931         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
59932         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
59933         (UINT64_C, UINTMAX_C):
59934         Likewise.
59935         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
59936         unsigned counterparts.
59937         (Have_long_long, Unsigned): New macros.
59938         (Int): Renamed from INT.
59939         (strtoimax): Use the new macros.
59940         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
59941         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
59942         * modules/inttypes (inttypes.h): Substitute
59943         HAVE_UNSIGNED_LONG_LONG_INT.
59944         * modules/stdint (stdint.h): Likewise.
59945         (Files): Add m4/ulonglong.m4.
59946
59947 2006-10-10  Bruno Haible  <bruno@clisp.org>
59948
59949         Fix a gcc -Wshadow warning.
59950         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
59951         to 'bucket'.
59952         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
59953         gl_linked_indexof_from_to): Likewise.
59954         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
59955         Likewise.
59956         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
59957         Likewise.
59958         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
59959         Reported by Eric Blake.
59960
59961 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
59962
59963         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
59964         for NetBSD.  Problem reported by Bruno Haible.
59965
59966 2006-10-09  Jim Meyering  <jim@meyering.net>
59967
59968         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
59969         Patch from Bruno Haible.
59970
59971 2006-10-09  Jim Meyering  <jim@meyering.net>
59972
59973         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
59974         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
59975         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
59976
59977 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
59978
59979         Don't include <config.h> twice; this doesn't work in some cases,
59980         e.g., when config.h has "#define intmax_t long long int" and
59981         we include <config.h>, <inttypes.h>, <config.h> in that order.
59982         Problem reported by Matthew Woehlke in:
59983         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
59984         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
59985         * lib/fts-cycle.c: Don't include config.h.
59986         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
59987         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
59988         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
59989         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
59990         inttypes.h.
59991         * lib/xstrtoumax.c: Likewise.
59992         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
59993         __strtol and the like, so that this module is more like its siblings.
59994         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
59995         Remove; no longer needed now that we assume gnulib inttypes.h.
59996
59997 2006-10-08  Bruno Haible  <bruno@clisp.org>
59998
59999         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
60000         option.
60001
60002 2006-10-07  Jim Meyering  <jim@meyering.net>
60003
60004         * modules/inttypes (inttypes.h): Revert what seems to have been
60005         an inadvertent part of today's change: use "|", not "/" in the
60006         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
60007
60008 2006-10-07  Bruno Haible  <bruno@clisp.org>
60009
60010         * modules/sublist: New file.
60011
60012 2006-10-07  Bruno Haible  <bruno@clisp.org>
60013
60014         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
60015         * modules/argz (argz.h): Likewise.
60016         * modules/arpa_inet (arpa/inet.h): Likewise.
60017         * modules/byteswap (byteswap.h): Likewise.
60018         * modules/configmake (configmake.h): Likewise.
60019         * modules/fcntl (fcntl.h): Likewise.
60020         * modules/fnmatch (fnmatch.h): Likewise.
60021         * modules/getopt (getopt.h): Likewise.
60022         * modules/glob (glob.h): Likewise.
60023         * modules/inttypes (inttypes.h): Likewise.
60024         * modules/netinet_in (netinet/in.h): Likewise.
60025         * modules/poll (poll.h): Likewise.
60026         * modules/stdbool (stdbool.h): Likewise.
60027         * modules/stdint (stdint.h): Likewise.
60028         * modules/sys_select (sys/select.h): Likewise.
60029         * modules/sys_socket (sys/socket.h): Likewise.
60030         * modules/sys_stat (sys/stat.h): Likewise.
60031         * modules/sysexits (sysexits.h): Likewise.
60032         * modules/unistd (unistd.h): Likewise.
60033         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60034         Add a "DO NOT EDIT" comment to the generated file.
60035         (func_import): Likewise for gnulib-comp.m4.
60036
60037 2006-10-07  Bruno Haible  <bruno@clisp.org>
60038
60039         * lib/gl_sublist.h: New file.
60040         * lib/gl_sublist.c: New file.
60041
60042 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
60043
60044         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
60045         name (relative to the original working directory) and the file
60046         name component (relative to the temporary working directory).  All
60047         callers changed.
60048         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
60049         * lib/mkdir-p.c (make_dir_parents): Likewise.
60050         * lib/mkdir-p.h (make_dir_parents): Likewise.
60051
60052 2006-10-06  Eric Blake  <ebb9@byu.net>
60053
60054         Define several macros for use by the clean-temp module.
60055         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
60056         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
60057         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
60058
60059         * lib/clean-temp.h (close_stream_temp): New declaration.
60060         * lib/clean-temp.c (includes): Pull in headers according to what
60061         other modules are in use.
60062         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
60063
60064 2006-10-06  Bruno Haible  <bruno@clisp.org>
60065
60066         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
60067         instead of fopen, fwriteerror.
60068
60069 2006-10-06  Bruno Haible  <bruno@clisp.org>
60070
60071         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
60072         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
60073         int.
60074         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
60075         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
60076         Return an error indicator.
60077         Suggested by Eric Blake.
60078
60079 2006-10-06  Bruno Haible  <bruno@clisp.org>
60080
60081         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
60082         Reported by Eric Blake.
60083
60084 2006-10-06  Bruno Haible  <bruno@clisp.org>
60085
60086         * modules/closeout (Description): Mention stderr too.
60087
60088 2006-10-06  Bruno Haible  <bruno@clisp.org>
60089         and Paul Eggert  <eggert@cs.ucla.edu>
60090
60091         * lib/closeout.c (close_stdout): Also close stderr.
60092         * lib/closeout.h: Update comment.
60093
60094 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
60095
60096         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
60097         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
60098         * lib/dirchownmod.c: Include lchown.h.
60099         * lib/lchown.c: Don't include files that lchown.h now includes.
60100         Don't declare chown, since lchown.h now does that.
60101         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
60102         (lchown): Define to rpl_chown if lchown is declared but
60103         does not exist.  Declare using a prototype if lchown is not
60104         declared.  Add a copyright notice.
60105         * lib/mkstemp.h: Include <unistd.h>.
60106         * lib/openat.c: Include lchown.h.
60107
60108         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
60109         we now test for that separately.
60110         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
60111         rather than O_NOFOLLOW, when testing whether it's possible to
60112         avoid a race condition reliably.
60113         * lib/savewd.c (savewd_chdir): Likewise.
60114
60115         Remove macros that are no longer needed now that stdint.h is
60116         reliable.
60117         * lib/fsusage.c (UINTMAX_MAX): Remove.
60118         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
60119         * lib/utimecmp.c (SIZE_MAX): Remove.
60120
60121         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
60122
60123         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
60124         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
60125         O_NOATIME works.
60126
60127 2006-10-05  Bruno Haible  <bruno@clisp.org>
60128
60129         * lib/gl_list.h (gl_sortedlist_search_from_to,
60130         gl_sortedlist_indexof_from_to): New declarations.
60131         (gl_list_implementation): New fields sortedlist_search_from_to,
60132         sortedlist_indexof_from_to.
60133         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
60134         inline functions.
60135         * lib/gl_list.c (gl_sortedlist_search_from_to,
60136         gl_sortedlist_indexof_from_to): New functions.
60137         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
60138         function.
60139         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
60140         (gl_array_sortedlist_search_from_to): New function.
60141         (gl_array_list_implementation): Update.
60142         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
60143         function.
60144         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
60145         (gl_carray_sortedlist_search_from_to): New function.
60146         (gl_carray_list_implementation): Update.
60147         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
60148         gl_linked_sortedlist_indexof_from_to): New functions.
60149         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
60150         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
60151         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
60152         gl_tree_sortedlist_indexof_from_to): New functions.
60153         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
60154         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
60155         Update.
60156         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
60157         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
60158         Update.
60159
60160 2006-10-05  Bruno Haible  <bruno@clisp.org>
60161
60162         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
60163         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
60164         (struct gl_list_implementation): Add fields search_from_to,
60165         indexof_from_to. Remove fields search, indexof.
60166         (gl_list_search): Use the search_from_to method.
60167         (gl_list_search_from, gl_list_search_from_to): New functions.
60168         (gl_list_indexof): Use the indexof_from_to method.
60169         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
60170         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
60171         (gl_list_search_from, gl_list_search_from_to): New functions.
60172         (gl_list_indexof): Use the indexof_from_to method.
60173         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
60174         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
60175         gl_array_indexof. Add start_index, end_index arguments.
60176         (gl_array_search_from_to): Renamed from gl_array_search. Add
60177         start_index, end_index arguments.
60178         (gl_array_remove, gl_array_list_implementation): Update.
60179         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
60180         gl_carray_indexof. Add start_index, end_index arguments.
60181         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
60182         start_index, end_index arguments.
60183         (gl_carray_remove, gl_carray_list_implementation): Update.
60184         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
60185         gl_linked_search. Add start_index, end_index arguments.
60186         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
60187         start_index, end_index arguments.
60188         (gl_linked_remove): Update.
60189         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
60190         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
60191         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
60192         field to 'size_t'.
60193         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
60194         gl_tree_search. Add start_index, end_index arguments.
60195         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
60196         start_index, end_index arguments.
60197         (gl_tree_remove): Update.
60198         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
60199         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
60200         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
60201         function.
60202         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
60203         gl_tree_search. Add start_index, end_index arguments.
60204         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
60205         start_index, end_index arguments.
60206         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
60207         Update.
60208         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
60209
60210 2006-10-05  Bruno Haible  <bruno@clisp.org>
60211
60212         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
60213
60214         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
60215         fwriteerror_temp): New declarations.
60216         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
60217         (descriptors): New variable.
60218         (cleanup): First, close the descriptors.
60219         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
60220         fclose_temp, fwriteerror_temp): New functions.
60221
60222 2006-10-04  Jim Meyering  <jim@meyering.net>
60223
60224         * lib/fts.c (fts_open): Tiny comment change.
60225
60226 2006-10-04  Bruno Haible  <bruno@clisp.org>
60227
60228         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
60229         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
60230         gl_LOCK_BODY.
60231         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
60232         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
60233         gl_LOCK_EARLY_BODY.
60234         (gl_LOCK): Require gl_LOCK_BODY.
60235
60236 2006-10-04  Bruno Haible  <bruno@clisp.org>
60237
60238         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
60239         (gl_oset_search_atleast): New declaration.
60240         (struct gl_oset_implementation): Add field 'search_atleast'.
60241         (gl_oset_search_atleast): New inline function.
60242         * lib/gl_oset.c (gl_oset_search_atleast): New function.
60243         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
60244         (gl_array_oset_implementation): Update.
60245         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
60246         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
60247         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
60248
60249 2006-10-04  Bruno Haible  <bruno@clisp.org>
60250
60251         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
60252
60253 2006-10-03  Bruno Haible  <bruno@clisp.org>
60254
60255         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
60256         from gl_avltreehash_list_implementation.
60257
60258 2006-10-03  Bruno Haible  <bruno@clisp.org>
60259
60260         * lib/gl_oset.c (gl_oset_add): Fix return type.
60261
60262 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
60263
60264         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
60265
60266 2006-10-02  Eric Blake  <ebb9@byu.net>
60267
60268         * modules/strnlen (Depends-on): Add extensions.
60269
60270 2006-10-02  Eric Blake  <ebb9@byu.net>
60271
60272         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
60273         definition in 2.60+.
60274
60275 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
60276
60277         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
60278         checks.
60279
60280 2006-10-02  Bruno Haible  <bruno@clisp.org>
60281
60282         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
60283         to the AUTOMAKE_OPTIONS.
60284         Reported by Jim Meyering.
60285
60286 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
60287
60288         Work around bug in Solaris 10 /proc file system:
60289         /proc/self/fd/NNN/.. isn't the parent directory of
60290         the directory whose file descriptor is NNN.  This needs to
60291         be worked around at run time, not compile time, since a
60292         program might be built on Solaris 8, where things work, and
60293         run on Solaris 10.
60294         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
60295         to use the following interface instead:
60296         (OPENAT_BUFFER_SIZE): New macro.
60297         (openat_proc_name): New function.
60298         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
60299         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
60300         Likewise.
60301         * lib/openat-proc.c: New file.
60302         * modules/openat (Files): Add lib/openat-proc.c.
60303         (Depends-on): Add same-inode, stdbool.
60304         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
60305
60306 2006-09-29  Bruno Haible  <bruno@clisp.org>
60307
60308         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
60309         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
60310         argument. Set stdout_closed before testing for ferror, not after.
60311         (fwriteerror, fwriteerror_no_ebadf): New functions.
60312
60313 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60314
60315         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
60316
60317 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
60318
60319         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
60320         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
60321
60322 2006-09-28  Jim Meyering  <jim@meyering.net>
60323
60324         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
60325         Include <unistd.h>.
60326
60327 2006-09-28  Bruno Haible  <bruno@clisp.org>
60328
60329         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
60330         * modules/linkedhash-list (Depends-on): Likewise.
60331         * modules/rbtreehash-list (Depends-on): Likewise.
60332
60333 2006-09-28  Bruno Haible  <bruno@clisp.org>
60334
60335         * lib/strndup.h: Simplify the redefinition of strndup.
60336         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
60337         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
60338
60339 2006-09-28  Bruno Haible  <bruno@clisp.org>
60340
60341         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
60342         * lib/gl_linkedhash_list.c: Likewise.
60343         * lib/gl_rbtreehash_list.c: Likewise.
60344
60345 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
60346
60347         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
60348         getaddrinfo.
60349
60350         * lib/__fpending.h: Don't include <stdio_ext.h> unless
60351         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
60352         it causes <stdio_ext.h> to cause a compile-time error.
60353         Problem reported by Nelson H. F. Beebe.
60354         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
60355         of HAVE_DECL___PENDING.
60356
60357         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
60358         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
60359         declaration.
60360
60361 2006-09-27  Jim Meyering  <jim@meyering.net>
60362
60363         This file could end up with a definition for a function
60364         named __strndup, rather than rpl_strndup on a system with
60365         incomplete weak_alias support.
60366         * lib/strndup.c (strndup): Rename from __strndup.
60367         Remove #defines that used to map __strndup to strndup.
60368         Don't use K&R prototypes.
60369         Remove LIBC-related code, since this file is not sync'd with glibc.
60370         * lib/strndup.h: Revamp, accordingly.
60371         * m4/strndup.m4: Modernize.
60372
60373 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
60374
60375         * modules/savewd (Depends-on): Add 'raise'.
60376         * lib/savewd.c: Include <signal.h>, for 'raise'.
60377
60378 2006-09-26  Jim Meyering  <jim@meyering.net>
60379
60380         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
60381         when we detect Darwin 8.7.0's acl_get_file bug.
60382         Rearrange to perform the new (below) run-test while $LIBS
60383         contains any acl-related library.  Set USE_ACL at the end.
60384         (gl_ACL_GET_FILE): New function.
60385
60386 2006-09-26  Eric Blake  <ebb9@byu.net>
60387
60388         * lib/verror.c: Include <config.h> unconditionally.
60389
60390 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
60391
60392         * modules/clock-time (Maintainer): Add self.
60393         * modules/getlogin_r (Depends-on): Add extensions.
60394
60395 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60396
60397         * modules/clock-time: New module.
60398         * modules/nanosleep (Depends-on): Add clock-time.
60399         * modules/gethrxtime (Depends-on): Likewise.
60400         * modules/gettime (Depends-on): Likewise.
60401         * modules/settime (Depends-on): Likewise.
60402
60403         * modules/fts-lgpl: Depend on openat.
60404         * modules/mkancesdirs: Depend on savewd.
60405         * modules/mkdir-p: Likewise.
60406
60407 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60408
60409         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
60410
60411         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
60412         `gl_have_arbitrary_file_name_length_limit' to
60413         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
60414         actually works between configure runs.
60415
60416 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60417             Bruno Haible  <bruno@clisp.org>
60418
60419         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
60420
60421 2006-09-25  Jim Meyering  <jim@meyering.net>
60422
60423         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
60424         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
60425
60426 2006-09-25  Eric Blake  <ebb9@byu.net>
60427
60428         * gnulib-tool (func_import, func_create_testdir): Fix typos in
60429         exec's in 2006-09-18 patch when shuffling fds.
60430
60431 2006-09-25  Bruno Haible  <bruno@clisp.org>
60432
60433         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
60434         Reported by Jim Meyering.
60435
60436 2006-09-24  Jim Meyering  <jim@meyering.net>
60437
60438         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
60439         compare a pointer against a literal "0".  That caused failures with
60440         at least HP-UX's hpcc.
60441
60442 2006-09-22  Simon Josefsson  <jas@extundo.com>
60443
60444         * modules/gc-sha1:
60445         * modules/gc-md4:
60446         * modules/gc-hmac-sha1:
60447         * modules/gc-hmac-md5:
60448         * modules/gc-des:
60449         * modules/gc-arcfour: Distribute more files.
60450
60451 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60452
60453         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
60454         (gl_linked_iterator_from_to): Initialize struct completely.
60455         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
60456         (gl_tree_iterator_from_to): Likewise
60457         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
60458         * lib/gl_array_list.c [lint] (gl_array_iterator)
60459         (gl_array_iterator_from_to): Likewise.
60460         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
60461         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
60462         (gl_carray_iterator_from_to): Likewise.
60463
60464         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
60465         * lib/md4.c (md4_process_block): Remove unused variable.
60466         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
60467         parentheses for clarity.
60468
60469 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60470
60471         * modules/bison-i18n (Depends-on): Add gettext.
60472
60473 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60474
60475         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
60476         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
60477         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
60478         also add missing comma that caused broken test.
60479         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
60480         stdlib.h, for `abort'.
60481         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
60482         variables.
60483         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
60484         include unistd.h if present, for `rmdir'.
60485         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
60486         variables.
60487         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
60488         in the process include standard headers for prototypes.
60489         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
60490         gets declared on GNU/Linux.
60491         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
60492         unistd.h, for `rmdir'.
60493         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
60494
60495         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
60496         always true.
60497         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
60498
60499         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
60500
60501 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60502
60503         * gnulib-tool (func_version): Create output all at once.  This
60504         may help avoid triggering unnecessary SIGPIPEs, and at any
60505         rate it doesn't hurt.
60506
60507 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60508             Bruno Haible  <bruno@clisp.org>
60509
60510         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
60511         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
60512         * m4/signed.m4 (bh_C_SIGNED): Likewise.
60513
60514         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
60515         (gl_FUNC_VASPRINTF): Invoke it.
60516
60517 2006-09-22  Bruno Haible  <bruno@clisp.org>
60518
60519         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
60520         getloadavg.c as first argument.
60521
60522 2006-09-22  Bruno Haible  <bruno@clisp.org>
60523
60524         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
60525         at the beginning of the gl_INIT macro.
60526         * modules/getloadavg (configure.ac): Pass $gl_source_base to
60527         gl_GETLOADAVG.
60528
60529 2006-09-22  Bruno Haible  <bruno@clisp.org>
60530
60531         * gnulib-tool (func_create_megatestdir): Don't include the config-h
60532         module.
60533         Suggested by Ralf Wildenhues.
60534
60535 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
60536
60537         Import this patch from libc:
60538
60539         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
60540
60541         * lib/regex_internal.c (re_string_reconstruct): Handle
60542         offset < pstr->valid_raw_len && pstr->offsets_needed case.
60543         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
60544         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
60545         re_string_context_at.
60546
60547         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
60548         now requires it.
60549         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
60550         gl_REGEX now does it for us.
60551         (gl_REGEX): Add test taken from
60552         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
60553
60554         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
60555         Check that large offsets work.  Modernize Autoconf usages.
60556         Prefer "yes" to mean a good thing rather than a bad.
60557         Don't put "#define mkstemp" in config.h, as this might interfere
60558         with standard system headers that "#define mkstemp mkstemp64".
60559
60560         * modules/mkstemp (Depends-on): Add extensions, so that
60561         mkstemp is visible on some platforms.
60562         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
60563         (Include): Change to "mkstemp.h" from <stdlib.h>.
60564         (Files): Add mkstemp.h.
60565
60566         * lib/mkstemp.h: New file, since some standard headers
60567         #define mkstemp.
60568         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
60569         Include "mkstemp.h".
60570         Make the _LIBC code resemble glibc original more,
60571         e.g., use K&R style.
60572         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
60573         (mkstemp): Remove, since mkstemp.h does this for us.
60574         * lib/stdlib--.h: Include mkstemp.h.
60575
60576         Import this patch from libc:
60577
60578         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
60579
60580         * lib/tempname.c (__gen_tempname): Change attempts_min
60581         into a macro.  Use preprocessor to decide how to initialize
60582         attempts [Coverity CID 67].
60583
60584 2006-09-20  Bruno Haible  <bruno@clisp.org>
60585
60586         * lib/mkdtemp.c: Import from libc.
60587         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
60588                 * sysdeps/posix/tempname.c (__gen_tempname): Change
60589                 attempts_min into a macro.  Use preprocessor to decide how to
60590                 initialize attempts [Coverity CID 67].
60591         2001-11-27  Paul Eggert  <eggert@twinsun.com>
60592                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
60593                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
60594
60595 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60596
60597         * gnulib-tool (func_exit): New function, to allow to pass the
60598         exit status portably through the trap.  Use everywhere.
60599         (--help, --version): Signal a write error.
60600         (trap): catch SIGPIPE, for write errors.
60601         Exit at the end of the trap, with the correct exit status.
60602
60603 2006-09-19  Karl Berry  <karl@gnu.org>
60604
60605         * doc/gnulib.texi: note about the license texinfo files.
60606
60607 2006-09-19  Eric Blake  <ebb9@byu.net>
60608
60609         * gnulib-tool: Avoid space-tab.
60610
60611 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
60612
60613         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
60614         that prevented coreutils 6.1 from building.  Problem reported
60615         by Petter Reinholdtsen.
60616
60617 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
60618
60619         * gnulib-tool (avoidlist): Fix typo that broke options like
60620         --avoid=lock that are used by coreutils bootstrap.
60621
60622 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
60623
60624         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
60625         more systematically.
60626
60627 2006-09-18  Jim Meyering  <jim@meyering.net>
60628
60629         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
60630
60631 2006-09-18  Bruno Haible  <bruno@clisp.org>
60632
60633         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
60634
60635 2006-09-18  Bruno Haible  <bruno@clisp.org>
60636
60637         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
60638         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
60639         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
60640         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
60641         * m4/gettext.m4: Require autoconf >= 2.52.
60642         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
60643         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
60644         of gl_cv_header_inttypes_h.
60645
60646 2006-09-18  Bruno Haible  <bruno@clisp.org>
60647
60648         * lib/javaversion.c: Include configmake.h.
60649
60650 2006-09-18  Bruno Haible  <bruno@clisp.org>
60651
60652         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
60653         avoid that the while loops be executed in a subshell.
60654
60655 2006-09-18  Bruno Haible  <bruno@clisp.org>
60656
60657         * MODULES.html.sh (func_module): Break long lines.
60658         Suggested by Bruce Korb <bkorb@gnu.org>.
60659
60660 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60661
60662         Speed up by a factor of 1.12.
60663         * gnulib-tool (nl): New variable.
60664         (func_import): Rewrite include directive extraction to only read each
60665         directive once.
60666
60667 2006-09-17  Bruno Haible  <bruno@clisp.org>
60668
60669         * modules/javaversion (Makefile.am): Remove DEFS setting.
60670         (Depends-on): Add configmake, for PKGDATADIR definition.
60671
60672 2006-09-17  Bruno Haible  <bruno@clisp.org>
60673
60674         * gnulib-tool (func_create_testdir): Rewrite all files at once.
60675
60676 2006-09-17  Bruno Haible  <bruno@clisp.org>
60677
60678         * gnulib-tool (func_append): New function, stolen from libtool.m4.
60679         (func_modules_transitive_closure, func_modules_add_dummy,
60680         func_modules_to_filelist, func_import, func_create_testdir,
60681         func_create_megatestdir, ...): Use it wherever possible.
60682         Suggested by Ralf Wildenhues.
60683
60684 2006-09-16  Karl Berry  <karl@gnu.org>
60685
60686         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
60687         to avoid sectioning errors.
60688         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
60689         [ifinfo]: blank line after @center-ed titles.
60690         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
60691         Spell FSF address consistently with others.
60692         (These changes approved by rms.)
60693
60694 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60695
60696         Speed up by a factor of 1.61.
60697         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
60698         already checked module names again.
60699
60700 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60701
60702         Speed up by a factor of 1.13.
60703         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
60704         for new_files, and the input to func_add_or_update.
60705
60706 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60707
60708         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
60709         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
60710
60711 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
60712
60713         * modules/mkancesdirs (Depends-on): Add fcntl.
60714         * modules/savewd: New file.
60715         * MODULES.html.sh (File system functions): Add savewd.
60716
60717         * modules/configmake (Makefile.am): Add support for the
60718         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
60719
60720 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
60721
60722         * m4/savewd.m4: New file.
60723
60724 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
60725
60726         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
60727         (dirchownmod): New arg FD.  All callers changed.
60728         Use FD rather than opening the directory ourself, as opening is
60729         now the caller's responsibility.
60730         * lib/dirchownmod.h: Likewise.
60731         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
60732         hosts that require <sys/types.h> before <sys/stat.h>.  Include
60733         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
60734         (test_dir): Remove.
60735         (mkancesdirs): Return length of prefix of FILE that has already
60736         been made, or -2 if there is a child doing the work.  Redo
60737         algorithm so that it is O(N) rather than O(N**2).  Optimize away
60738         ".", and treat ".." specially since it might stray back into
60739         already-created areas.  Use a subprocess if necessary.  New arg
60740         WD; all users changed.  MAKE_DIR function should now return 1
60741         if it creates a directory that is not readable.  Return -2 if
60742         a child process is spun off.
60743         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
60744         Adjust signature to match code.
60745         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
60746         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
60747         all users changed.
60748         * lib/savewd.c, lib/savewd.h: New files.
60749
60750 2006-09-15  Jim Meyering  <jim@meyering.net>
60751
60752         * modules/rename-dest-slash: New module.
60753         * MODULES.html.sh (posix_compat): Add it here.
60754
60755         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
60756
60757 2006-09-15  Jim Meyering  <jim@meyering.net>
60758
60759         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
60760         file.
60761
60762         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
60763
60764 2006-09-15  Jim Meyering  <jim@meyering.net>
60765
60766         * lib/rename-dest-slash.c (has_trailing_slash): Use
60767         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
60768         (rpl_rename_dest_slash): Perform the cheaper trailing slash
60769         test before testing whether SRC is a directory.
60770         Suggestions from Bruno Haible.
60771
60772         Avoid a warning about an unused variable.
60773         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
60774         into the #ifdef block where it's used.
60775
60776         * lib/rename-dest-slash.c: New file.
60777
60778 2006-09-14  Bruno Haible  <bruno@clisp.org>
60779
60780         * lib/allocsa.c: Include <config.h> unconditionally.
60781         * lib/asnprintf.c: Likewise.
60782         * lib/asprintf.c: Likewise.
60783         * lib/c-strcasecmp.c: Likewise.
60784         * lib/c-strcasestr.c: Likewise.
60785         * lib/c-strncasecmp.c: Likewise.
60786         * lib/c-strstr.c: Likewise.
60787         * lib/classpath.c: Likewise.
60788         * lib/clean-temp.c: Likewise.
60789         * lib/concatpath.c: Likewise.
60790         * lib/copy-file.c: Likewise.
60791         * lib/csharpcomp.c: Likewise.
60792         * lib/csharpexec.c: Likewise.
60793         * lib/execute.c: Likewise.
60794         * lib/fatal-signal.c: Likewise.
60795         * lib/findprog.c: Likewise.
60796         * lib/fwriteerror.c: Likewise.
60797         * lib/gl_array_list.c: Likewise.
60798         * lib/gl_array_oset.c: Likewise.
60799         * lib/gl_avltree_list.c: Likewise.
60800         * lib/gl_avltree_oset.c: Likewise.
60801         * lib/gl_avltreehash_list.c: Likewise.
60802         * lib/gl_carray_list.c: Likewise.
60803         * lib/gl_linked_list.c: Likewise.
60804         * lib/gl_linkedhash_list.c: Likewise.
60805         * lib/gl_list.c: Likewise.
60806         * lib/gl_oset.c: Likewise.
60807         * lib/gl_rbtree_list.c: Likewise.
60808         * lib/gl_rbtree_oset.c: Likewise.
60809         * lib/gl_rbtreehash_list.c: Likewise.
60810         * lib/imaxabs.c: Likewise.
60811         * lib/imaxdiv.c: Likewise.
60812         * lib/javacomp.c: Likewise.
60813         * lib/javaexec.c: Likewise.
60814         * lib/javaversion.c: Likewise.
60815         * lib/linebreak.c: Likewise.
60816         * lib/localcharset.c: Likewise.
60817         * lib/lock.c: Likewise.
60818         * lib/mbchar.c: Likewise.
60819         * lib/mbswidth.c: Likewise.
60820         * lib/mkdtemp.c: Likewise.
60821         * lib/pipe.c: Likewise.
60822         * lib/printf-args.c: Likewise.
60823         * lib/printf-parse.c: Likewise.
60824         * lib/progname.c: Likewise.
60825         * lib/progreloc.c: Likewise.
60826         * lib/readlink.c: Likewise.
60827         * lib/sh-quote.c: Likewise.
60828         * lib/stpcpy.c: Likewise.
60829         * lib/stpncpy.c: Likewise.
60830         * lib/strcasecmp.c: Likewise.
60831         * lib/strcasestr.c: Likewise.
60832         * lib/strcspn.c: Likewise.
60833         * lib/striconv.c: Likewise.
60834         * lib/strncasecmp.c: Likewise.
60835         * lib/strnlen1.c: Likewise.
60836         * lib/strstr.c: Likewise.
60837         * lib/strtok_r.c: Likewise.
60838         * lib/tls.c: Likewise.
60839         * lib/tmpdir.c: Likewise.
60840         * lib/unicodeio.c: Likewise.
60841         * lib/unsetenv.c: Likewise.
60842         * lib/vasnprintf.c: Likewise.
60843         * lib/vasprintf.c: Likewise.
60844         * lib/wait-process.c: Likewise.
60845         * lib/xallocsa.c: Likewise.
60846         * lib/xsetenv.c: Likewise.
60847         * lib/xstriconv.c: Likewise.
60848
60849 2006-09-13  Simon Josefsson  <jas@extundo.com>
60850
60851         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
60852         that internally, suggested by Ralf Wildenhues
60853         <Ralf.Wildenhues@gmx.de>.
60854
60855 2006-09-13  Simon Josefsson  <jas@extundo.com>
60856
60857         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
60858         @LIBOBJS@.
60859         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60860
60861 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
60862
60863         * lib/_fpending.c: Include <config.h> unconditionally, since we no
60864         longer worry about uses that don't define HAVE_CONFIG_H.
60865         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
60866         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
60867         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
60868         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
60869         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
60870         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
60871         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
60872         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
60873         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
60874         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
60875         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
60876         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
60877         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
60878         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
60879         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
60880         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
60881         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
60882         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
60883         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
60884         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
60885         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
60886         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
60887         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
60888         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
60889         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
60890         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
60891         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
60892         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
60893         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
60894         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
60895         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
60896         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
60897         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
60898         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
60899         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
60900         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
60901         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
60902         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
60903         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
60904         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
60905         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
60906         Likewise.
60907
60908 2006-09-13  Eric Blake  <ebb9@byu.net>
60909
60910         * lib/getopt.c: Fix typo in last commit.
60911
60912 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
60913
60914         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
60915         dgettext.
60916
60917 2006-09-12  Jim Meyering  <jim@meyering.net>
60918
60919         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
60920         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
60921         Reported by Nelson H. F. Beebe.
60922
60923 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
60924
60925         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
60926         program_invocation_name and program_invocation_short_name are
60927         initialized.
60928         * lib/argp-namefrob.h: Move declarations of program_invocation_name
60929         and program_invocation_short_name to argp.h, so they are visible
60930         to user programs.
60931         * lib/argp.h: Likewise
60932
60933 2006-09-10  Bruno Haible  <bruno@clisp.org>
60934
60935         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
60936         m4/inttypes_h.m4, m4/uintmax_t.m4.
60937
60938 2006-09-10  Bruno Haible  <bruno@clisp.org>
60939
60940         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
60941         gl_AC_TYPE_UINTMAX_T.
60942
60943 2006-09-10  Bruno Haible  <bruno@clisp.org>
60944
60945         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
60946
60947 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
60948
60949         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
60950         convention.  Text proposed by Bruno Haible.
60951         (struct argp_option): Document the use of N_() wrappers.
60952
60953         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
60954         '\v', and translate the two parts separately, instead of feeding
60955         the whole string to gettext.  This allows to exclude
60956         '\v' from the strings visible to the translator by writing doc
60957         strings as N_("..") "\v" N_("..").
60958
60959 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
60960
60961         * config/srclist.txt: Undo latest change; the bug was fixed.
60962
60963 2006-09-09  Bruno Haible  <bruno@clisp.org>
60964
60965         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
60966         assignments if building a library without libtool.
60967         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
60968         in func_emit_lib_Makefile_am.
60969         (func_import): When building a static library libfoo.a, arrange to
60970         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
60971         (func_create_testdir): Likewise.
60972         * modules/gc (configure.ac, Makefile.am): If building statically,
60973         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
60974         * modules/iconvme (configure.ac, Makefile.am): Likewise.
60975         * modules/striconv (configure.ac, Makefile.am): Likewise.
60976         Based on a suggestion by Ralf Wildenhues.
60977
60978 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60979
60980         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
60981         Check for unistd.h too, since Autoconf doesn't assume POSIX.
60982         Also:
60983
60984         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60985         Add year_2050_test to catch glibc bug 2821
60986         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
60987
60988         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60989         Prefer #ifdef to #if.
60990
60991         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
60992         Return from 'main' instead of calling 'exit'.
60993
60994 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60995
60996         * lib/mktime.c (guess_time_tm): Fix bug where mktime
60997         returned the maximum time_t value rather than (time_t) -1.
60998         Problem originally reported by William Bardwell
60999         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
61000
61001         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
61002         Moved to here ...
61003         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
61004         ... from here.
61005
61006 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
61007
61008         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
61009         2821 is fixed.
61010
61011 2006-09-08  Jim Meyering  <jim@meyering.net>
61012
61013         Don't make generated files read-only.  That would bother too many
61014         people.  However, do retain the ability to work when targets are
61015         read-only: remove the destination and temporary files before writing
61016         them (when generated via sed or echo), or by using the -f option for
61017         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
61018         * modules/alloca-opt, modules/argz, modules/arpa_inet:
61019         * modules/byteswap, modules/configmake, modules/fcntl:
61020         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
61021         * modules/localcharset, modules/netinet_in, modules/poll:
61022         * modules/stdbool, modules/stdint, modules/sys_select:
61023         * modules/sys_socket, modules/sys_stat, modules/sysexits:
61024
61025 2006-09-08  Jim Meyering  <jim@meyering.net>
61026
61027         Avoid new build failure on FreeBSD 6.0.
61028         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
61029         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
61030         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
61031
61032 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61033
61034         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
61035
61036 2006-09-07  Jim Meyering  <jim@meyering.net>
61037
61038         Fix global typo in last change: use chmod u-w, not chmod u-x.
61039         Spotted by Paul Eggert and Bruce Korb.
61040         * modules/alloca-opt, modules/argz, modules/arpa_inet:
61041         * modules/byteswap, modules/configmake, modules/fcntl:
61042         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
61043         * modules/localcharset, modules/netinet_in, modules/poll:
61044         * modules/stdbool, modules/stdint, modules/sys_select:
61045         * modules/sys_socket, modules/sys_stat, modules/sysexits:
61046
61047 2006-09-06  Jim Meyering  <jim@meyering.net>
61048
61049         Make generated files be read-only.
61050         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
61051         Ensure that each generated file is now read-only.
61052         * modules/argz: Likewise.
61053         * modules/arpa_inet: Likewise.
61054         * modules/byteswap: Likewise.
61055         * modules/configmake: Likewise.
61056         * modules/fcntl: Likewise.
61057         * modules/fnmatch: Likewise.
61058         * modules/getopt: Likewise.
61059         * modules/glob: Likewise.
61060         * modules/inttypes: Likewise.
61061         * modules/netinet_in: Likewise.
61062         * modules/poll: Likewise.
61063         * modules/stdbool: Likewise.
61064         * modules/stdint: Likewise.
61065         * modules/sys_select: Likewise.
61066         * modules/sys_socket: Likewise.
61067         * modules/sys_stat: Likewise.
61068         * modules/sysexits: Likewise.
61069         * modules/localcharset: Same as above, but continue using temporary
61070         file named "t-$@" (why different?) rather than the "$@-t" used
61071         everywhere else.
61072
61073         * modules/sysexits (Makefile.am): Replace literal occurrences
61074         of "sysexit.h" more readable, and more consistent, "$@".
61075
61076 2006-09-06  Bruno Haible  <bruno@clisp.org>
61077
61078         * modules/striconv: New file.
61079         * modules/xstriconv: New file.
61080         * MODULES.html.sh (Internationalization functions): Add striconv,
61081         xstriconv.
61082
61083 2006-09-06  Bruno Haible  <bruno@clisp.org>
61084
61085         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
61086         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
61087         not using libtool correctly.
61088
61089 2006-09-06  Bruno Haible  <bruno@clisp.org>
61090
61091         * lib/striconv.h: New file.
61092         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
61093         iconvstring.c.
61094         * lib/xstriconv.h: New file.
61095         * lib/xstriconv.c: New file.
61096
61097 2006-09-06  Bruno Haible  <bruno@clisp.org>
61098
61099         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
61100         lib_..._LDFLAGS.
61101
61102 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61103
61104         * lib/argz_.h: Sync from Libtool.
61105
61106         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
61107                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
61108
61109         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
61110
61111 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
61112
61113         * modules/trim: New file.
61114
61115 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
61116
61117         * lib/trim.h: New file.
61118         * lib/trim.c: New file.
61119
61120 2006-09-05  Bruno Haible  <bruno@clisp.org>
61121
61122         * MODULES.html.sh (String handling): Add trim.
61123
61124 2006-09-04  Karl Berry  <karl@gnu.org>
61125
61126         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
61127         until next release.
61128
61129 2006-09-03  Bruno Haible  <bruno@clisp.org>
61130
61131         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
61132         correctly.
61133
61134 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
61135
61136         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
61137         not gl_GETLOADAVG.  Omit unneeded semicolons.
61138         Problems reported by Ralf Wildenhues in
61139         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
61140         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
61141         at the end, which is the usual gnulib style.
61142
61143         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
61144         of doing all the work ourselves.
61145         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
61146         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
61147
61148 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
61149
61150         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
61151         Problem reported by Ralf Wildenhues in
61152         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
61153
61154         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
61155         HAVE_STRUCT_STATFS_F_FSTYPENAME.
61156
61157 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
61158
61159         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
61160         yesterday's patch by changing test -n to test -z.
61161
61162 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
61163
61164         * modules/getloadavg (Files): Add m4/getloadavg.m4.
61165         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
61166         the former is now obsolescent.
61167
61168         * modules/chdir-long (Depends-on): Add fcntl.
61169
61170 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
61171
61172         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
61173         obsolescent, and programs should use gnulib instead.
61174         * m4/getloadavg.m4: New file, with contents taken from Autoconf
61175         but with prefixes changed.
61176
61177 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
61178
61179         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
61180         or stdbool.h, because they might not exist while configuring.
61181
61182         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
61183         Don't include unistd.h or limits.h; not needed, since chdir-long.h
61184         does that for us.
61185         (O_DIRECTORY): Remove.
61186
61187 2006-08-31  Eric Blake  <ebb9@byu.net>
61188
61189         * gnulib-tool: Don't let emacs change spaces to TAB.
61190
61191 2006-08-31  Bruno Haible  <bruno@clisp.org>
61192
61193         * gnulib-tool: When calling func_import more than once, do it in a
61194         subshell.
61195         Reported by Eric Blake <ebb9@byu.net>.
61196
61197 2006-08-31  Bruno Haible  <bruno@clisp.org>
61198
61199         * gnulib-tool (nl): Remove variable.
61200         (sed_transform_lib_file): Use more robust test for config-h module.
61201         (func_import): Fix typo in 2006-08-25 patch.
61202
61203 2006-08-31  Bruno Haible  <bruno@clisp.org>
61204
61205         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
61206         specified, augment Makefile.am variables instead of assigning them.
61207
61208 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
61209
61210         Work around a bug in both the Linux and SunOS 64-bit kernels:
61211         nanosleep mishandles sleeps for longer than 2**31 seconds.
61212         Problem reported by Frank v Waveren in
61213         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
61214         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
61215         Check for nanosleep bug.
61216         (LIB_NANOSLEEP): Append clock_gettime library if needed.
61217
61218 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
61219
61220         Work around a bug in both the Linux and SunOS 64-bit kernels:
61221         nanosleep mishandles sleeps for longer than 2**31 seconds.
61222         Problem reported by Frank v Waveren in
61223         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
61224         * lib/nanosleep.c (BILLION): New constant.
61225         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
61226         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
61227         implementation.
61228
61229 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
61230
61231         * modules/nanosleep (Depends-on): Add gettime.
61232
61233 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
61234         and Simon Josefsson  <jas@extundo.com>
61235         and Oskar Liljeblad  <oskar@osk.mine.nu>
61236
61237         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
61238         * gnulib-tool (func_import): New license type 'unmodifiable license
61239         text'.
61240         * modules/fdl: Use it.  Longer description.
61241         * module/gpl, module/lgpl: New files.
61242
61243 2006-08-30  Jim Meyering  <jim@meyering.net>
61244
61245         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
61246         shadowing the parameter.
61247
61248 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61249
61250         Sync from Libtool:
61251
61252         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61253
61254         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
61255         sharing with gnulib.  Report by Eric Blake.
61256
61257 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
61258
61259         * modules/isapipe: New file.
61260         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
61261
61262 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
61263
61264         * modules/configmake (Makefile.am): Add a comment, and omit
61265         the CONFIGMAKE_ prefix from generated macro names.  Suggested
61266         by Bruno Haible.
61267
61268 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
61269
61270         * m4/isapipe.m4: New file.
61271
61272 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
61273
61274         * lib/isapipe.c, lib/isapipe.h: New files.
61275
61276 2006-08-29  Jim Meyering  <jim@meyering.net>
61277
61278         * modules/configmake (Makefile.am): Make configmake.h depend on
61279         Makefile.  Otherwise, a stale configmake.h could hang around.
61280
61281 2006-08-29  Eric Blake  <ebb9@byu.net>
61282
61283         * lib/error.c (error_at_line, print_errno_message): Match libc, after
61284         resolution of upstream bug 3044.
61285
61286 2006-08-29  Bruno Haible  <bruno@clisp.org>
61287
61288         * modules/localcharset (Depends-on): Add configmake.
61289         (Makefile.am): Remove setting of LIBDIR through DEFS.
61290
61291 2006-08-29  Bruno Haible  <bruno@clisp.org>
61292
61293         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
61294         defined.
61295
61296 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61297
61298         * modules/fcntl: New file.
61299         * modules/chdir-safer (Depends-on): Add fcntl.
61300         * modules/fts: Likewise.
61301         * modules/mkdir-p: Likewise.
61302
61303         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
61304         This undoes the most recent change, since we're now addressing the
61305         problem in a different way.
61306
61307         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
61308         into output, since the output might be called Makefile.am even
61309         if $makefile_name is something different.
61310         (func_import): Use $makefile_am rather than
61311         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
61312         empty.
61313
61314         * modules/inttypes (Files): Add m4/inttypes-h.m4.
61315
61316 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61317
61318         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
61319         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
61320         recent change to stdint.m4, since we're now addressing the problem in a
61321         different way.
61322
61323 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61324
61325         * m4/fcntl_h.m4: New file.
61326
61327 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61328
61329         * lib/fcntl_.h: New file.
61330         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
61331         the fcntl module.
61332         * lib/dirchownmod.c: Likewise.
61333         * lib/fts.c: Likewise.
61334
61335         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
61336         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
61337         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
61338         just before including <inttypes.h>, to avoid circular inclusion.
61339
61340 2006-08-28  Jim Meyering  <jim@meyering.net>
61341
61342         * doc/visibility.texi: Actually read and correct the grammar of the
61343         sentence affected by yesterday's change.
61344
61345 2006-08-28  Eric Blake  <ebb9@byu.net>
61346
61347         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
61348         needs wrapper.
61349
61350 2006-08-28  Eric Blake  <ebb9@byu.net>
61351
61352         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
61353
61354 2006-08-28  Eric Blake  <ebb9@byu.net>
61355
61356         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
61357
61358 2006-08-28  Bruno Haible  <bruno@clisp.org>
61359
61360         * modules/c-strstr: New file, from GNU gettext.
61361         * MODULES.html.sh (String handling): Add c-strstr.
61362
61363 2006-08-28  Bruno Haible  <bruno@clisp.org>
61364
61365         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
61366         macros.
61367         Reported by Eric Blake.
61368
61369 2006-08-28  Bruno Haible  <bruno@clisp.org>
61370
61371         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
61372         (VASNPRINTF): Return a string of length > INT_MAX without failing.
61373         * lib/vasprintf.c: Include errno.h, limits.h.
61374         (EOVERFLOW): New fallback definition.
61375         (vasprintf): Test here whether the string length is > INT_MAX.
61376         * lib/vsnprintf.c: Include errno.h, limits.h.
61377         (EOVERFLOW): New fallback definition.
61378         (vsnprintf): Fix bug when generated string was too long for the buffer.
61379         Test here whether the string length is > INT_MAX.
61380
61381 2006-08-28  Bruno Haible  <bruno@clisp.org>
61382
61383         * lib/inttypes_.h (SCNX*): Remove definitions.
61384         Reported by Eric Blake.
61385
61386 2006-08-28  Bruno Haible  <bruno@clisp.org>
61387
61388         * lib/c-strstr.h: New file, from GNU gettext.
61389         * lib/c-strstr.c: New file, from GNU gettext.
61390
61391 2006-08-28  Bruno Haible  <bruno@clisp.org>
61392
61393         * gnulib-tool: Reorder some statements.
61394
61395 2006-08-28  Bruno Haible  <bruno@clisp.org>
61396
61397         * gnulib-tool: New option --makefile-name.
61398         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
61399         $makefile_name.
61400         (func_import): Write $makefile_name to the cache file, and read it from
61401         there unless explicitly specified. Use $makefile_name as file name
61402         instead of Makefile.am. Adjust the recommendations accordingly.
61403
61404 2006-08-28  Bruno Haible  <bruno@clisp.org>
61405
61406         * gnulib-tool (func_verify_module): Check against misapplying patch.
61407
61408 2006-08-28  Bruno Haible  <bruno@clisp.org>
61409
61410         * gnulib-tool (func_relativize, func_relconcat): New functions.
61411         Give an error if --local-dir is given with --update.
61412         Remove trailing slashes from $local_gnulib_dir.
61413         (func_import): Store the relativized $local_gnulib_dir in
61414         gnulib-cache.m4, and read it from there if not specified explicitly.
61415
61416 2006-08-28  Bruno Haible  <bruno@clisp.org>
61417
61418         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
61419         is the current directory. Respect also $local_gnulib_dir.
61420
61421 2006-08-28  Bruno Haible  <bruno@clisp.org>
61422             Simon Josefsson  <jas@extundo.com>
61423
61424         BeOS portability.
61425         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
61426
61427 2006-08-27  Jim Meyering  <jim@meyering.net>
61428
61429         * doc/visibility.texi: Remove duplicate word: "pointer".
61430
61431 2006-08-26  Bruno Haible  <bruno@clisp.org>
61432
61433         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
61434         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
61435         (Makefile.am): Create inttypes.h from inttypes_.h.
61436         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
61437
61438         * modules/imaxabs: New file.
61439
61440         * modules/imaxdiv: New file.
61441
61442 2006-08-26  Bruno Haible  <bruno@clisp.org>
61443
61444         * m4/inttypes.m4: New file.
61445         * m4/_inttypes_h.m4: Remove file.
61446         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
61447         PRI_MACROS_BROKEN.
61448         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
61449
61450         * m4/imaxabs.m4: New file.
61451
61452         * m4/imaxdiv.m4: New file.
61453
61454 2006-08-26  Bruno Haible  <bruno@clisp.org>
61455
61456         * lib/inttypes_.h: New file.
61457         * lib/inttypes.h: Remove file.
61458         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
61459
61460         * lib/imaxabs.c: New file.
61461
61462         * lib/imaxdiv.c: New file.
61463
61464 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
61465
61466         New config-h module, so that "make" output needn't be cluttered
61467         by -DHAVE_CONFIG_H.
61468         * MODULES.html.sh (Support for building libraries and executables):
61469         Add config-h.
61470         * modules/config-h: New file.
61471         * gnulib-tool (nl, sed_transform_lib_file): New vars.
61472         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
61473         the config-h module is used.
61474
61475         New configmake module, so that "make" output needn't be cluttered
61476         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
61477         * MODULES.html.sh (Support for building libraries and executables):
61478         Add configmake.
61479         * modules/configmake: New file.
61480
61481 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
61482
61483         * m4/config-h.m4: New file.
61484
61485 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
61486
61487         * config/srclist.txt: Add elisp-comp.
61488
61489 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
61490
61491         * MODULES.html.sh (Support for building libraries and executables):
61492         Add elisp-comp.
61493         * build-aux/elisp-comp: New file.
61494         * modules/elisp-comp: New file.
61495
61496 2006-08-24  Bruno Haible  <bruno@clisp.org>
61497
61498         * gnulib-tool (func_create_testdir): Use non-default values of
61499         sourcebase and m4base.
61500
61501 2006-08-24  Bruno Haible  <bruno@clisp.org>
61502
61503         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
61504         HTML structure.
61505
61506 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
61507
61508         * modules/openat (Depends-on): Add lchown.
61509
61510 2006-08-23  Bruno Haible  <bruno@clisp.org>
61511
61512         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
61513         of gl_LOCK_EARLY instead of gl_LOCK.
61514
61515 2006-08-23  Bruno Haible  <bruno@clisp.org>
61516
61517         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
61518         on OSF/1 to no.
61519         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
61520
61521 2006-08-23  Bruno Haible  <bruno@clisp.org>
61522
61523         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
61524         as unusable.
61525
61526         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
61527         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
61528         (gl_LOCK): New macro.
61529
61530 2006-08-22  Simon Josefsson  <jas@extundo.com>
61531
61532         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
61533         to md5 module.
61534
61535 2006-08-22  Simon Josefsson  <jas@extundo.com>
61536
61537         * MODULES.html.sh: Add "Support for maintaining and release
61538         projects".
61539
61540         * build-aux/gnupload: New file, from coreutils.
61541
61542 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
61543
61544         Avoid the need for AC_LIBSOURCES in m4 macros.
61545         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
61546         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
61547         * modules/check-version (EXTRA_DIST): Add check-version.h.
61548         * modules/crc (EXTRA_DIST): Add crc.h.
61549         * modules/des (EXTRA_DIST): Add des.h.
61550         * modules/gc (EXTRA_DIST): Add gc.h.
61551         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
61552         * modules/getline (EXTRA_DIST): Add getline.h.
61553         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
61554         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
61555         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
61556         * modules/md2 (EXTRA_DIST): Add md2.h.
61557         * modules/md4 (EXTRA_DIST): Add md4.h.
61558         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
61559         * modules/read-file (EXTRA_DIST): Add read-file.h.
61560         * modules/readline (EXTRA_DIST): Add readline.h.
61561         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
61562         rijndael-api-fst.h.
61563
61564 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
61565
61566         * m4/rijndael.m4 (gl_ARCFOUR):
61567         * m4/arctwo.m4 (gl_ARCTWO):
61568         * m4/check-version.m4 (gl_CHECK_VERSION):
61569         * m4/crc.m4 (gl_CRC):
61570         * m4/des.m4 (gl_DES):
61571         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
61572         * m4/gc.m4 (gl_GC):
61573         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
61574         * m4/getline.m4 (gl_FUNC_GETLINE):
61575         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
61576         * m4/hmac-md5.m4 (gl_HMAC_MD5):
61577         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
61578         * m4/md2.m4 (gl_MD2):
61579         * m4/md4.m4 (gl_MD4):
61580         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
61581         * m4/read-file.m4 (gl_FUNC_READ_FILE):
61582         * m4/readline.m4 (gl_FUNC_READLINE):
61583         * m4/rijndael.m4 (gl_RIJNDAEL):
61584         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
61585         to get the necessary .h files and whatnot.
61586
61587 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
61588
61589         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
61590         gnulib rather than the other way around.
61591         * config/srclistvars.sh (COREUTILS): Remove.
61592
61593 2006-08-22  Jim Meyering  <jim@meyering.net>
61594
61595         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
61596
61597         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
61598
61599 2006-08-22  Eric Blake  <ebb9@byu.net>
61600
61601         * modules/regexprops-generic: New file.
61602         * MODULES.html.sh (Support for building documentation): List it.
61603
61604 2006-08-22  Eric Blake  <ebb9@byu.net>
61605
61606         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
61607         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
61608         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
61609         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
61610
61611 2006-08-22  Bruno Haible  <bruno@clisp.org>
61612
61613         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
61614         and lib_LTLIBRARIES like the other lib_* variables.
61615
61616 2006-08-22  Bruno Haible  <bruno@clisp.org>
61617
61618         * build-aux/x-to-1.in: New file, from GNU gettext.
61619
61620 2006-08-22  Bruno Haible  <bruno@clisp.org>
61621
61622         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
61623         <utmpx.h> exists.
61624
61625 2006-08-22  Bruno Haible  <bruno@clisp.org>
61626
61627         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
61628         <utmpx.h> exists.
61629
61630 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
61631
61632         BeOS portability.
61633         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
61634         exist.
61635         Problem reported by Bruno Haible.
61636
61637 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
61638
61639         Avoid the need for AC_LIBSOURCES in m4 macros.
61640         * modules/acl (EXTRA_DIST): Add acl.h.
61641         * modules/argmatch (Files): Add m4/argmatch.m4.
61642         (configure.ac): Add gl_ARGMATCH.
61643         (EXTRA_DIST): Renamed from lib_SOURCES, for
61644         consistency with the other modules.  Remove argmatch.c.
61645         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
61646         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
61647         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
61648         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
61649         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
61650         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
61651         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
61652         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
61653         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
61654         * modules/closeout (EXTRA_DIST): Add closeout.h.
61655         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
61656         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
61657         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
61658         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
61659         dirname.h; remove basename.c and stripslash.c.
61660         * modules/exclude (EXTRA_DIST): Add exclude.h.
61661         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
61662         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
61663         * modules/file-type (EXTRA_DIST): Add file-type.h.
61664         * modules/filemode (EXTRA_DIST): Add filemode.h.
61665         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
61666         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
61667         * modules/fpending (EXTRA_DIST): Add __fpending.h.
61668         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
61669         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
61670         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
61671         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
61672         * modules/getdate (EXTRA_DIST): Add getdate.c.
61673         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
61674         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
61675         * modules/getpass (EXTRA_DIST): Add getpass.h.
61676         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
61677         * modules/group-member (EXTRA_DIST): Add group-member.h.
61678         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
61679         * modules/hash (EXTRA_DIST): Add hash.h.
61680         * modules/human (EXTRA_DIST): Add human.h.
61681         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
61682         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
61683         * modules/lchown (EXTRA_DIST): Add lchown.h.
61684         * modules/long-options (EXTRA_DIST): Add long-options.h.
61685         * modules/lstat (EXTRA_DIST): Add lstat.h.
61686         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
61687         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
61688         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
61689         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
61690         * modules/memxor (EXTRA_DIST): Add memxor.h.
61691         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
61692         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
61693         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
61694         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
61695         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
61696         * modules/physmem (EXTRA_DIST): Add physmem.h.
61697         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
61698         * modules/posixver (EXTRA_DIST): Add posixver.h.
61699         * modules/quote (EXTRA_DIST): Add quote.h.
61700         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
61701         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
61702         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
61703         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
61704         regex_internal.h regexec.c.
61705         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
61706         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
61707         * modules/same (EXTRA_DIST): Add same.h.
61708         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
61709         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
61710         * modules/savedir (EXTRA_DIST): Add savedir.h.
61711         * modules/sha1 (EXTRA_DIST): Add sha1.h.
61712         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
61713         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
61714         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
61715         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
61716         * modules/strdup (EXTRA_DIST): Add strdup.h.
61717         * modules/strftime (EXTRA_DIST): Add strftime.h.
61718         * modules/strndup (EXTRA_DIST): Add strndup.h.
61719         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
61720         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
61721         * modules/time_r (EXTRA_DIST): Add time_r.h.
61722         * modules/timespec (EXTRA_DIST): Add timespec.h.
61723         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
61724         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
61725         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
61726         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
61727         * modules/userspec (EXTRA_DIST): Add userspec.h.
61728         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
61729         * modules/utimens (EXTRA_DIST): Add utimens.h.
61730         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
61731         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
61732         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
61733         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
61734         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
61735         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
61736         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
61737         * modules/yesno (EXTRA_DIST): Add yesno.h.
61738
61739 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
61740
61741         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
61742
61743         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
61744         * m4/dev-ino.m4, same-inode.m4: Remove.
61745
61746         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
61747         * m4/acl.m4 (AC_FUNC_ACL):
61748         * m4/backupfile.m4 (gl_BACKUPFILE):
61749         * m4/c-strtod.m4 (gl_C99_STRTOLD):
61750         * m4/canon-host.m4 (gl_CANON_HOST):
61751         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
61752         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
61753         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
61754         * m4/cloexec.m4 (gl_CLOEXEC):
61755         * m4/close-stream.m4 (gl_CLOSE_STREAM):
61756         * m4/closeout.m4 (gl_CLOSEOUT):
61757         * m4/dirfd.m4 (gl_FUNC_DIRFD):
61758         * m4/dirname.m4 (gl_DIRNAME):
61759         * m4/exclude.m4 (gl_EXCLUDE):
61760         * m4/exitfail.m4 (gl_EXITFAIL):
61761         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
61762         * m4/file-type.m4 (gl_FILE_TYPE):
61763         * m4/filemode.m4 (gl_FILEMODE):
61764         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
61765         * m4/fpending.m4 (gl_FUNC_FPENDING):
61766         * m4/fprintftime.m4 (gl_FPRINTFTIME):
61767         * m4/fts.m4 (gl_FUNC_FTS):
61768         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
61769         * m4/getdate.m4 (gl_GETDATE):
61770         * m4/gethrxtime.m4 (gl_GETHRXTIME):
61771         * m4/getpagesize.m4 (gl_GETPAGESIZE):
61772         * m4/getpass.m4 (gl_FUNC_GETPASS):
61773         * m4/gettime.m4 (gl_GETTIME):
61774         * m4/getugroups.m4 (gl_GETUGROUPS):
61775         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
61776         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
61777         * m4/hard-locale.m4 (gl_HARD_LOCALE):
61778         * m4/hash.m4 (gl_HASH):
61779         * m4/idcache.m4 (gl_IDCACHE):
61780         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
61781         * m4/lchown.m4 (gl_FUNC_LCHOWN):
61782         * m4/long-options.m4 (gl_LONG_OPTIONS):
61783         * m4/lstat.m4 (gl_FUNC_LSTAT):
61784         * m4/md5.m4 (gl_MD5):
61785         * m4/memcasecmp.m4 (gl_MEMCASECMP):
61786         * m4/memcoll.m4 (gl_MEMCOLL):
61787         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
61788         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
61789         * m4/memxor.m4 (gl_MEMXOR):
61790         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
61791         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
61792         * m4/modechange.m4 (gl_MODECHANGE):
61793         * m4/mountlist.m4 (gl_MOUNTLIST):
61794         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
61795         * m4/openat.m4 (gl_FUNC_OPENAT):
61796         * m4/pathmax.m4 (gl_PATHMAX):
61797         * m4/physmem.m4 (gl_PHYSMEM):
61798         * m4/posixtm.m4 (gl_POSIXTM):
61799         * m4/posixver.m4 (gl_POSIXVER):
61800         * m4/quote.m4 (gl_QUOTE):
61801         * m4/quotearg.m4 (gl_QUOTEARG):
61802         * m4/readtokens.m4 (gl_READTOKENS):
61803         * m4/readutmp.m4 (gl_READUTMP):
61804         * m4/regex.m4 (gl_REGEX):
61805         * m4/safe-read.m4 (gl_SAFE_READ):
61806         * m4/safe-write.m4 (gl_SAFE_WRITE):
61807         * m4/same.m4 (gl_SAME):
61808         * m4/save-cwd.m4 (gl_SAVE_CWD):
61809         * m4/savedir.m4 (gl_SAVEDIR):
61810         * m4/settime.m4 (gl_SETTIME):
61811         * m4/sha1.m4 (gl_SHA1):
61812         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
61813         * m4/stat-macros.m4 (gl_STAT_MACROS):
61814         * m4/stat-time.m4 (gl_STAT_TIME):
61815         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
61816         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
61817         * m4/strdup.m4 (gl_FUNC_STRDUP):
61818         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
61819         * m4/strndup.m4 (gl_FUNC_STRNDUP):
61820         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
61821         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
61822         * m4/time_r.m4 (gl_TIME_R):
61823         * m4/timespec.m4 (gl_TIMESPEC):
61824         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
61825         * m4/unlinkdir.m4 (gl_UNLINKDIR):
61826         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
61827         * m4/userspec.m4 (gl_USERSPEC):
61828         * m4/utimecmp.m4 (gl_UTIMECMP):
61829         * m4/utimens.m4 (gl_UTIMENS):
61830         * m4/xalloc.m4 (gl_XALLOC):
61831         * m4/xgetcwd.m4 (gl_XGETCWD):
61832         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
61833         * m4/xreadlink.m4 (gl_XREADLINK):
61834         * m4/xstrtod.m4 (gl_XSTRTOD):
61835         * m4/yesno.m4 (gl_YESNO):
61836         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
61837         to get the necessary .h files and whatnot.
61838
61839 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
61840             Bruno Haible  <bruno@clisp.org>
61841
61842         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
61843         /bin/sh understanding of '!' conditional negation.
61844
61845 2006-08-21  Jim Meyering  <jim@meyering.net>
61846
61847         * modules/openat (Depends-on): Really alphabetize.
61848
61849         * modules/acl (Depends-on): Add error and quote.
61850
61851         * check-module (find_included_lib_files): Add at-func.c to the
61852         ok-to-include-more-than-once white list.
61853
61854         * modules/openat (Depends-on): Add lstat.  Alphabetize.
61855
61856 2006-08-21  Bruno Haible  <bruno@clisp.org>
61857
61858         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61859         Emit a pkgdata_DATA variable only if some snippets add contents to it.
61860         Reported by Martin Lambers <marlam@marlam.de>.
61861
61862 2006-08-21  Bruno Haible  <bruno@clisp.org>
61863
61864         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
61865         specify an installation location, don't emit a noinst_LIBRARIES or
61866         noinst_LTLIBRARIES assignment.
61867
61868 2006-08-21  Bruno Haible  <bruno@clisp.org>
61869
61870         BeOS portability.
61871         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
61872         BeOS has mbrtowc() but no <wctype.h>.
61873
61874 2006-08-21  Bruno Haible  <bruno@clisp.org>
61875
61876         BeOS portability.
61877         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
61878         exist.
61879
61880 2006-08-21  Bruno Haible  <bruno@clisp.org>
61881
61882         BeOS portability.
61883         * lib/mbchar.h: Include <wctype.h> only if it exists.
61884
61885 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
61886
61887         Remove files that are no longer needed by their respective modules.
61888         * m4/obstack.m4: Remove.
61889         * m4/strerror_r.m4: Remove.
61890         * m4/uint32_t.m4: Remove.
61891         * m4/uintptr_t.m4: Remove.
61892         * m4/ullong_max.m4: Remove.
61893         * m4/xstrtoimax.m4: Remove.
61894         * m4/xstrtoumax.m4: Remove.
61895
61896         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
61897         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
61898         dependencies now capture this.
61899
61900         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
61901         Do not use AC_LIBSOURCES, since gnulib modules now do this.
61902         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
61903         * m4/human.m4 (gl_HUMAN): Likewise.
61904         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
61905         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
61906
61907         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
61908
61909         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
61910         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
61911         stdint.
61912         * m4/human.m4 (gl_HUMAN): Likewise.
61913         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
61914         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
61915         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
61916         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
61917         * m4/xstrtol (gl_XSTRTOL): Likewise.
61918
61919         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
61920         AC_TYPE_LONG_LONG_INT.
61921         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
61922         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
61923         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
61924         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
61925
61926         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
61927         on stdbool.
61928
61929         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
61930         (gl_PREREQ_XSTRTOUL): Remove.
61931
61932         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
61933
61934         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
61935         mode.
61936
61937 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
61938
61939         Add and change modules to make it easier for coreutils to use
61940         gnulib-tool.
61941         * modules/backupfile (Files): Remove m4/d-ino.m4.
61942         (Depends-on): Add d-ino.
61943         * modules/cycle-check (Depends-on): Add stdint.
61944         (lib_SOURCES): Add cycle-check.h.
61945         * modules/d-ino: New module.
61946         * modules/d-type: New module.
61947         * modules/error (Files): Remove m4/strerror_r.m4.
61948         * modules/filemode (Files): Add m4/st_dm_mode.m4.
61949         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
61950         m4/inttypes_h.m4, m4/uintmax_t.m4.
61951         (Depends-on): Add stdint.
61952         (lib_SOURCES): Add fsusage.h.
61953         * modules/getcwd (Files): Remove d-ino.m4.
61954         (Depends-on): Add d-ino.
61955         * modules/getndelim2 (Depends-on): Add stdint.
61956         * modules/glob (Files): Remove m4/d-type.m4.
61957         (Depends-on): Add d-type.
61958         * modules/host-os: New module.
61959         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
61960         m4/inttypes_h.m4, m4/uintmax_t.m4.
61961         * Depends-on: Add stdint.
61962         (lib_SOURCES): Add human.h.
61963         * modules/inttostr (Files): Remove m4/intmax_t.m4,
61964         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
61965         m4/uintmax_t.m4, m4/ulonglong.m4.
61966         (Depends-on): Add stdint.
61967         (EXTRA_DIST): Add inttostr.h.
61968         * modules/lchmod: New module.
61969         * modules/link-follow: New module.
61970         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
61971         (Depends-on): Add lchmod.
61972         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
61973         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
61974         (Depends-on): Add stdint.
61975         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
61976         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
61977         (Depends-on): Add stdint.
61978         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
61979         * modules/perl: New module.
61980         * modules/regex (Depends-on): Add stdint.
61981         * modules/rmdir-errno: New module.
61982         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
61983         m4/intmax_t.m4.
61984         (Depends-on): Add stdint.
61985         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
61986         m4/uintmax_t.m4.
61987         (Depends-on): Add stdint.
61988         * modules/unlink-busy: New module.
61989         * modules/utimecmp (Depends-on): Add stdint.
61990         * modules/uptime: New module.
61991         * modules/winsz-ioctl: New module.
61992         * modules/winsz-termios: New module.
61993         * modules/xnanosleep (Depends-on): Add nanosleep.
61994         * modules/ullong_max: Remove.
61995         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
61996         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
61997         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
61998         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
61999         (Depends-on): Add inttypes.
62000         (lib_SOURCES): Add xstrtol.h.
62001         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
62002         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
62003         * MODULES.html.sh: Move 'assert' into the assert section.
62004         Move 'dummy' into the linking section.
62005         Remove ullong_max.
62006         Add section for compatibility checks for POSIX:2001 functions,
62007         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
62008         winsz-ioctl, and winsz-termios into it.
62009         Add lchmod.
62010         Add top-level Misc section and put host-os, perl, and uptime
62011         into it.
62012
62013 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
62014
62015         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
62016         now assume the stdint module.  Do not include inttypes.h.
62017         * lib/fsusage.h: Likewise.
62018         * lib/getndelim2.c: Likewise.
62019         * lib/human.h: Likewise.
62020         * lib/inttostr.h: Likewise.
62021         * lib/obstack.c: Likewise.
62022         * lib/regex_internal.h: Likewise.
62023         * lib/tempname.c: Likewise.
62024         * lib/utimecmp.c: Likewise.
62025         * lib/xstrtol.h: Likewise.
62026
62027         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
62028
62029         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
62030         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
62031         * lib/xtime.h: Likewise.
62032
62033 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62034
62035         * modules/openat (Files): Add lib/fchmodat.c.
62036         Fixes problem reported by Jay Youngman.
62037
62038 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62039
62040         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
62041         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
62042
62043 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
62044             Bruno Haible  <bruno@clisp.org>
62045
62046         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
62047         and is a script that invokes bison. Tighten the code. Add comments.
62048
62049 2006-08-18  Jim Meyering  <jim@meyering.net>
62050
62051         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
62052         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
62053         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
62054         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
62055
62056 2006-08-18  Bruno Haible  <bruno@clisp.org>
62057
62058         * modules/bison-i18n: New file.
62059         * MODULES.html.sh (Internationalization functions): Add it.
62060
62061 2006-08-18  Bruno Haible  <bruno@clisp.org>
62062
62063         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
62064         sys/statvfs.h. When getmntinfo was found, check its declaration and
62065         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
62066
62067 2006-08-18  Bruno Haible  <bruno@clisp.org>
62068
62069         * m4/bison-i18n.m4: New file, from bison.
62070
62071 2006-08-18  Bruno Haible  <bruno@clisp.org>
62072
62073         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
62074         (ME_DUMMY): Treat "kernfs" as a dummy.
62075         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
62076
62077 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
62078
62079         Update from coreutils.
62080
62081         2006-08-15  Jim Meyering  <jim@meyering.net>
62082
62083         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
62084
62085         2006-01-17  Jim Meyering  <jim@meyering.net>
62086
62087         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
62088
62089         2006-01-11  Jim Meyering  <jim@meyering.net>
62090
62091         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
62092         Check for the lchmod function.
62093
62094 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
62095
62096         Update from coreutils.
62097
62098         * lib/__fpending.h: Add copyright notice.
62099         * lib/fprintftime.h: Likewise.
62100         * lib/savedir.c: Use (C) in copyright notice.
62101         * lib/savedir.h: Likewise.
62102
62103         2006-08-15  Jim Meyering  <jim@meyering.net>
62104
62105         * lib/at-func.c: New file, with the logic of all emulated at-functions.
62106         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
62107         in support of the EXPECTED_ERRNO macro.
62108         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
62109         definitions.  Instead, define the appropriate symbols and include
62110         "at-func.c".
62111         * lib/mkdirat.c (mkdirat): Likewise.
62112         * lib/fchmodat.c (fchmodat): Likewise.
62113         (ENOSYS): Remove definition.
62114         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
62115         it.  Don't include "unistd--.h" -- it wasn't ever used.
62116
62117         2006-01-17  Jim Meyering  <jim@meyering.net>
62118
62119         Rewrite fts.c not to change the current working directory,
62120         by using openat, fstatat, fdopendir, etc..
62121
62122         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
62123         (HAVE_OPENAT_SUPPORT): Define.
62124         [_LIBC] (fchdir): Don't undef or define; no longer used.
62125         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
62126         Now, this `function' always succeeds, and consumes its file descriptor
62127         parameter -- so callers must not close such FDs.  Update callers.
62128         (diropen_fd, opendirat, cwd_advance_fd): New functions.
62129         (diropen): Add parameter, SP.  Adjust all callers.
62130         Implement using diropen_fd, rather than open.
62131         (fts_open): Initialize new member, fts_cwd_fd.
62132         Remove fts_rft-setting code.
62133         (fts_close): Close fts_cwd_fd, if necessary.
62134         (__opendir2): Define in terms of opendir or opendirat,
62135         depending on whether the FST_NOCHDIR flag is set.
62136         (fts_build): Since fts_safe_changedir consumes its FD, and since
62137         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
62138         and close the dup'd file descriptor upon failure.
62139         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
62140         (fts_safe_changedir): Tweak semantics to reflect that this function
62141         now calls cwd_advance_fd and hence consumes its FD argument.
62142         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
62143         [struct FTS] (fts_rft): Remove now-unused member.
62144         [struct FTS] (fts_cycle.state): Improve comment.
62145
62146         * lib/openat.c (openat_needs_fchdir): New function.
62147         * lib/openat.h (openat_needs_fchdir): Declare it.
62148
62149 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
62150
62151         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
62152         Problem and fix reported by Pádraig Brady in
62153         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
62154
62155 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62156
62157         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
62158
62159 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62160
62161         * lib/memcoll.c (memcoll): Optimize for the common case where the
62162         arguments are bytewise equal.
62163
62164 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62165
62166         * doc/regexprops-generic.texi: Add a copyright notice.
62167
62168 2006-08-15  Bruno Haible  <bruno@clisp.org>
62169
62170         * modules/tmpdir (License): Change to LGPL.
62171
62172 2006-08-15  Bruno Haible  <bruno@clisp.org>
62173
62174         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
62175         module.
62176
62177 2006-08-14  Simon Josefsson  <jas@extundo.com>
62178
62179         * config/srclist.txt: Add gnupload.
62180
62181 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62182
62183         Change copyright notice from LGPL 2 to GPL 2, since that's the
62184         standard form used in the gnulib repository.
62185         * tests/test-lock.c: Likewise.
62186         * tests/test-stdint.c: Likewise.
62187         * tests/test-tls.c: Likewise.
62188
62189         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
62190         prelude-manager.  User shorter URLs for GNU projects, without '?'.
62191         Add copyright notice.
62192
62193         * check-module: Add copyright notice.  Output a copyright
62194         notice if "--version" is specified.
62195         * modules/COPYING: New file.
62196         * tests/test-getaddrinfo.c: Add copyright notice.
62197         * tests/test-verify.c: Likewise.
62198
62199 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62200
62201         Change copyright notice from LGPL 2 to GPL 2, since that's the
62202         standard form used in the gnulib repository.
62203         * lib/lock.c: LGPL -> GPL.
62204         * lib/lock.h: Likewise.
62205         * lib/strnlen1.c: Likewise.
62206         * lib/strnlen1.h: Likewise.
62207         * lib/tls.c: Likewise.
62208         * lib/tls.h: Likewise.
62209         * lib/tmpdir.c: Likewise.
62210
62211         * lib/TODO: Remove; this belongs only in coreutils.
62212
62213 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62214
62215         Add copyright notices to long-enough files that lack them, since
62216         otherwise the files aren't clearly free.  Use the same notice that
62217         getdate.texi already uses.
62218         * doc/alloca-opt.texi: Add copyright notice.
62219         * doc/alloca.texi: Likewise.
62220         * doc/ctime.texi: Likewise.
62221         * doc/functions.texi: Likewise.
62222         * doc/gcd.texi: Likewise.
62223         * doc/gnulib-tool.texi: Likewise.
62224         * doc/inet_ntoa.texi: Likewise.
62225         * doc/visibility.texi: Likewise.
62226
62227         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
62228         * doc/quote.texi: Add copyright notice.
62229
62230         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
62231         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
62232         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
62233         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
62234         is now obsolete, and give a pointer to the Sun list.
62235         Add copyright notice.
62236
62237 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62238
62239         * config/srclistvars.sh: Add copyright notice.
62240
62241 2006-08-14  Eric Blake  <ebb9@byu.net>
62242
62243         Import the following change from libc:
62244
62245         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
62246
62247         Upstream bug 2997.
62248         * lib/misc/error.c: Add space between program name and message if file
62249         name is missing.
62250
62251 2006-08-12  Karl Berry  <karl@gnu.org>
62252
62253         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
62254         remove, these originate in gnulib now.
62255
62256 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62257
62258         * doc/Makefile (standards.info standards.html standards.dvi):
62259         Also depend on make-stds.texi.
62260
62261 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
62262
62263         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
62264         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
62265
62266         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
62267         in wchar_t.  Problem reported by Eric Blake.
62268
62269         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
62270         LEN is smaller than SIZE.  Suggested by Bruno Haible.
62271         Also, help the compiler to keep LEN in a register.
62272
62273 2006-08-11  Eric Blake  <ebb9@byu.net>
62274
62275         * users.txt: Sort.  Add tar.
62276
62277 2006-08-11  Bruno Haible  <bruno@clisp.org>
62278
62279         * users.txt: New file.
62280
62281 2006-08-11  Bruno Haible  <bruno@clisp.org>
62282
62283         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
62284         before <wchar.h>. Needed for OSF/1 and BSD/OS.
62285
62286 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
62287
62288         * modules/snprintf (Depends-on): Remove minmax.
62289         (Maintainer): Add self and Bruno.
62290
62291 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
62292
62293         * lib/.cppi-disable: Add snprintf.h, socket_.h.
62294         * lib/snprintf.c: Include <errno.h> and <limits.h>.
62295         (EOVERFLOW): Define if the system does not.
62296         Do not include "minmax.h"; it wasn't used.
62297         (snprintf): Don't assume size_t promotes to an unsigned type.
62298         Fix bug when generated string was too long for the buffer: the
62299         buffer's contents are supposed to be the initial prefix of the
62300         output.  Don't assume vasnprintf returns EOVERFLOW if the size
62301         exceeds INT_MAX; do the check ourselves.
62302
62303         Import the following changes from libc:
62304
62305         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
62306
62307         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
62308         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
62309         set wc to the byte which couldn't be converted.
62310         (re_string_reconstruct): Don't clear valid_raw_len before calling
62311         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
62312         tip_context using re_string_context_at.
62313
62314         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
62315
62316         * lib/posix/regex.h: g++ still cannot handled [restrict].
62317
62318         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
62319
62320         * lib/posix/regex.h: Remove special handling for VMS.
62321
62322 2006-08-10  Jim Meyering  <jim@meyering.net>
62323
62324         * modules/same-inode: New module.
62325         * modules/dev-ino: New module.
62326         * modules/cycle-check: Depend on these modules, rather than simply
62327         including their .h files.
62328         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
62329         required via m4/cycle-check.m4.
62330         * modules/same: Depend on new same-inode module, rather than
62331         including same-inode.h.
62332         * modules/chdir-safer: New file.
62333
62334         * modules/chown (Depends-on): Add stat-macros.
62335
62336 2006-08-10  Jim Meyering  <jim@meyering.net>
62337
62338         * m4/cycle-check.m4: New file.
62339         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
62340         * m4/dev-ino.m4, m4/same-inode.m4: New files.
62341
62342 2006-08-10  Eric Blake  <ebb9@byu.net>
62343
62344         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
62345         in from original proposal.
62346
62347 2006-08-10  Eric Blake  <ebb9@byu.net>
62348         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
62349
62350         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
62351         namespace.
62352
62353 2006-08-10  Bruno Haible  <bruno@clisp.org>
62354
62355         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
62356         as well.
62357
62358 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62359
62360         Sync from coreutils.
62361
62362         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
62363
62364         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
62365         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
62366
62367 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62368
62369         * modules/restrict: Remove; no longer needed now that we assume
62370         Autoconf 2.59 or later.
62371         * MODULES.html.sh: Remove 'restrict'.
62372         * modules/argp (Depends-on): Remove 'restrict'.
62373         * modules/base64 (Depends-on): Likewise.
62374         * modules/gc (Depends-on): Likewise.
62375         * modules/getaddrinfo (Depends-on): Likewise.
62376         * modules/glob (Depends-on): Likewise.
62377         * modules/inet_ntop (Depends-on): Likewise.
62378         * modules/inet_pton (Depends-on): Likewise.
62379         * modules/memxor (Depends-on): Likewise.
62380         * modules/regex (Depends-on): Likewise.
62381         * modules/strtok_r (Depends-on): Likewise.
62382         * modules/time_r (Depends-on): Likewise.
62383
62384 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62385
62386         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
62387         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
62388         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
62389         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
62390         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
62391         * m4/memxor.m4 (gl_MEMXOR): Likewise.
62392         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
62393         gl_C_RESTRICT replaced by AC_C_RESTRICT.
62394
62395         Merge from coreutils.
62396         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
62397         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
62398         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
62399         * m4/time_r.m4 (gl_TIME_R): Likewise.
62400
62401 2006-08-09  Karl Berry  <karl@gnu.org>
62402
62403         * config/srclist.txt: no more gettext-tools, per Bruno.
62404
62405 2006-08-08  Eric Blake  <ebb9@byu.net>
62406
62407         * modules/verror: New module.
62408         * MODULES.html.sh: Document it.
62409
62410 2006-08-08  Eric Blake  <ebb9@byu.net>
62411
62412         * lib/verror.h, lib/verror.c: New files.
62413
62414 2006-08-08  Eric Blake  <ebb9@byu.net>
62415
62416         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
62417         verror_at_line output complies with GNU Coding Standards even when
62418         file is NULL.
62419
62420 2006-08-07  Bruno Haible  <bruno@clisp.org>
62421
62422         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
62423         versions of AIX.
62424         Reported by Ralf Wildenhues.
62425
62426 2006-08-07  Bruno Haible  <bruno@clisp.org>
62427
62428         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
62429         in an AC_DEFUN. Needed so that the autoconf snippets can use
62430         AC_REQUIRE.
62431
62432 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62433
62434         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62435         Initialize pkgdata_DATA.
62436         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
62437         overriding it.
62438
62439 2006-08-06  Eric Blake  <ebb9@byu.net>
62440
62441         * lib/error.h: Fold in some upstream changes from glibc.
62442         * lib/error.c: Likewise.
62443
62444 2006-08-04  Bruno Haible  <bruno@clisp.org>
62445
62446         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62447         Make the mostlyclean-local rule depend on mostlyclean-generic.
62448         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
62449
62450 2006-07-31  Bruno Haible  <bruno@clisp.org>
62451
62452         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
62453         <stdlib.h>, <string.h>.
62454
62455 2006-07-30  Bruno Haible  <bruno@clisp.org>
62456
62457         * modules/readlink (License): Change to LGPL.
62458
62459 2006-07-30  Bruno Haible  <bruno@clisp.org>
62460
62461         * modules/javaversion (Makefile.am): Distribute javaversion.java and
62462         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
62463         set PKGDATADIR to point to it.
62464
62465 2006-07-30  Bruno Haible  <bruno@clisp.org>
62466
62467         * modules/csharpexec (configure.ac): Comment out macro invocation.
62468         * modules/javaexec (configure.ac): Likewise.
62469         * modules/javacomp-script (configure.ac): Likewise.
62470
62471         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
62472
62473 2006-07-30  Bruno Haible  <bruno@clisp.org>
62474
62475         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
62476         linked-list.
62477
62478 2006-07-30  Bruno Haible  <bruno@clisp.org>
62479
62480         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
62481
62482 2006-07-30  Bruno Haible  <bruno@clisp.org>
62483
62484         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62485         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
62486         get removed.
62487
62488 2006-07-29  Bruno Haible  <bruno@clisp.org>
62489
62490         Make it possible for gnulib-tool to work with locally modified or
62491         augmented gnulib repositories.
62492         * gnulib-tool (func_usage): Document --local-dir option.
62493         (local_gnulib_dir): New variable.
62494         Handle --local-dir option.
62495         (func_lookup_file): New function.
62496         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
62497         (func_get_description, func_get_filelist, func_get_description,
62498         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
62499         func_get_automake_snippet, func_get_include_directive,
62500         func_get_license, func_get_maintainer): Use func_lookup_file.
62501         (func_import, func_create_testdir): Use func_lookup_file.
62502
62503 2006-07-29  Bruno Haible  <bruno@clisp.org>
62504
62505         * modules/setenv (Depends-on): Add unistd.
62506
62507 2006-07-29  Bruno Haible  <bruno@clisp.org>
62508
62509         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
62510
62511 2006-07-29  Bruno Haible  <bruno@clisp.org>
62512
62513         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
62514
62515 2006-07-29  Bruno Haible  <bruno@clisp.org>
62516
62517         * gnulib-tool (import, update): If there is no Makefile.am, look at
62518         aclocal.m4, instead of bailing out.
62519
62520 2006-07-29  Bruno Haible  <bruno@clisp.org>
62521
62522         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
62523         Categorize the options by when they are useful.
62524
62525 2006-07-29  Bruno Haible  <bruno@clisp.org>
62526
62527         * gnulib-tool (func_usage): Document option --no-libtool.
62528         Handle option --no-libtool.
62529         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
62530         for changed semantics of $libtool variable.
62531         (func_import): Likewise. If libtool is not used, show this through
62532         an option --no-libtool.
62533         (func_create_testdir): Update.
62534
62535 2006-07-29  Bruno Haible  <bruno@clisp.org>
62536
62537         * gnulib-tool (func_import): Extend error message about missing
62538         --doc-base.
62539
62540 2006-07-29  Bruno Haible  <bruno@clisp.org>
62541
62542         * gnulib-tool (func_import): Don't create the $docbase directory if
62543         there is no file to store there.
62544
62545 2006-07-29  Bruno Haible  <bruno@clisp.org>
62546
62547         * gnulib-tool (autoconf_minversion): If a --dir option is given and
62548         relevant, look for configure.ac there, not in the current directory.
62549         Also use a simple search for AC_PREREQ, not "autoconf --trace".
62550
62551 2006-07-29  Bruno Haible  <bruno@clisp.org>
62552
62553         * gnulib-tool (SORT): New variable.
62554         (func_usage): Undocument --assume-autoconf option.
62555         Remove --assume-autoconf option handling.
62556         (autoconf_minversion): Determine from the contents of configure.ac.
62557         (func_import): Remove autoconf_minversion handling.
62558         Suggested by Eric Blake.
62559
62560 2006-07-29  Bruno Haible  <bruno@clisp.org>
62561
62562         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
62563
62564 2006-07-29  Bruno Haible  <bruno@clisp.org>
62565
62566         * config/srclist.txt (*setenv.[ch]): Remove rules.
62567
62568 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62569
62570         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
62571
62572 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62573
62574         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
62575         arpa/inet.h.
62576
62577 2006-07-28  Simon Josefsson  <jas@extundo.com>
62578
62579         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
62580         * modules/inet_pton (Depends-on): Likewise.
62581
62582 2006-07-28  Simon Josefsson  <jas@extundo.com>
62583
62584         * m4/netinet_in_h.m4: New file.
62585
62586 2006-07-28  Simon Josefsson  <jas@extundo.com>
62587
62588         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
62589         #include's.
62590
62591 2006-07-28  Simon Josefsson  <jas@extundo.com>
62592
62593         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
62594         #include's.
62595
62596 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
62597
62598         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
62599         setgid on directories only if they set these bits.
62600         * lib/modechange.h: Remove obsolete comment about masks.
62601
62602 2006-07-28  Eric Blake  <ebb9@byu.net>
62603
62604         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
62605         macro expansion.
62606
62607 2006-07-28  Bruno Haible  <bruno@clisp.org>
62608
62609         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
62610
62611 2006-07-28  Bruno Haible  <bruno@clisp.org>
62612
62613         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
62614
62615 2006-07-28  Bruno Haible  <bruno@clisp.org>
62616
62617         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
62618         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
62619         Define fallbacks.
62620         Avoids link error on FreeBSD 4.x.
62621         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
62622
62623         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
62624         encoding.
62625         * lib/mbswidth.c (iswcntrl): Likewise.
62626
62627 2006-07-27  Bruno Haible  <bruno@clisp.org>
62628
62629         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
62630         test.
62631
62632 2006-07-27  Bruno Haible  <bruno@clisp.org>
62633
62634         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
62635         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
62636         defined.
62637
62638 2006-07-26  Eric Blake  <ebb9@byu.net>
62639
62640         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
62641
62642 2006-07-26  Eric Blake  <ebb9@byu.net>
62643
62644         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
62645         like mingw that lack mkstemp.
62646         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
62647         avoid compilation warning on mingw.
62648
62649 2006-07-26  Bruno Haible  <bruno@clisp.org>
62650
62651         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
62652         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
62653         INT_FAST*_MIN, INTPTR_MIN.
62654
62655 2006-07-25  Bruno Haible  <bruno@clisp.org>
62656
62657         * modules/version-etc (Depends-on): Add stdarg.
62658
62659 2006-07-25  Bruno Haible  <bruno@clisp.org>
62660
62661         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
62662         complex commands.
62663
62664 2006-07-25  Bruno Haible  <bruno@clisp.org>
62665
62666         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
62667         defined in <stdarg.h> or config.h.
62668
62669 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
62670
62671         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
62672         (gl_STDIO_SAFER): Remove.
62673
62674 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
62675
62676         * MODULES.html.sh (File stream based Input/Output):
62677         Add fopen-safer, tmpfile-safer; remove stdio-safer.
62678         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
62679         * modules/fopen-safer, modules/tmpfile-safer: New files.
62680         * modules/stdio-safer: Remove.
62681
62682 2006-07-24  Bruno Haible  <bruno@clisp.org>
62683
62684         * modules/tmpdir: New file.
62685         * MODULES.html.sh (File system functions): Add it.
62686
62687 2006-07-24  Bruno Haible  <bruno@clisp.org>
62688
62689         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
62690         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
62691
62692 2006-07-24  Bruno Haible  <bruno@clisp.org>
62693
62694         * modules/clean-temp: New file.
62695
62696 2006-07-24  Bruno Haible  <bruno@clisp.org>
62697
62698         * m4/tmpdir.m4: New file, from GNU gettext.
62699
62700 2006-07-24  Bruno Haible  <bruno@clisp.org>
62701
62702         * lib/tmpdir.h: New file, from GNU gettext.
62703         * lib/tmpdir.c: New file, from GNU gettext.
62704
62705 2006-07-24  Bruno Haible  <bruno@clisp.org>
62706
62707         * lib/clean-temp.h: New file, from GNU gettext.
62708         * lib/clean-temp.c: New file, from GNU gettext.
62709
62710 2006-07-23  Eric Blake  <ebb9@byu.net>
62711
62712         * modules/stdio-safer (Files): Add tmpfile-safer.c.
62713         (Depends-on): Add binary-io.
62714
62715 2006-07-23  Eric Blake  <ebb9@byu.net>
62716
62717         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
62718
62719 2006-07-23  Eric Blake  <ebb9@byu.net>
62720
62721         * lib/tmpfile-safer.c: New file.
62722         * lib/stdio-safer.h (fopen_safer): Add prototype.
62723         * lib/stdio--.h (tmpfile): Make safer.
62724
62725 2006-07-23  Bruno Haible  <bruno@clisp.org>
62726
62727         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
62728         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
62729         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
62730         gl_linked_remove_at): Use it.
62731
62732 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62733         and Simon Josefsson <jas@extundo.com>
62734
62735         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
62736
62737         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
62738
62739 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
62740
62741         * modules/close-stream: New file.
62742         * modules/closeout (Description): Make it clear that it exits
62743         with a diagnostic on error.
62744         (Depends-on): Add close-stream.  Remove fpending, stdbool.
62745         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
62746
62747 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
62748
62749         * m4/close-stream.m4: New file.
62750
62751 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
62752
62753         * lib/close-stream.c, lib/close-stream.h: New files.
62754
62755 2006-07-22  Bruno Haible  <bruno@clisp.org>
62756
62757         Merge from GNU gettext 0.15.
62758
62759         2006-05-01  Bruno Haible  <bruno@clisp.org>
62760
62761                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
62762
62763         2006-07-22  Bruno Haible  <bruno@clisp.org>
62764
62765                 * modules/javaversion: New file.
62766                 * MODULES.html.sh (Java): Add javaversion.
62767
62768         2006-03-12  Bruno Haible  <bruno@clisp.org>
62769
62770                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
62771
62772         2005-12-04  Bruno Haible  <bruno@clisp.org>
62773
62774                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
62775                 (untested).
62776
62777         2006-06-21  Bruno Haible  <bruno@clisp.org>
62778
62779                 Avoid warnings from recent versions of mcs.
62780                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
62781                 -o, -L, -r any more. Use options documented since mcs-1.0
62782                 instead. Similarly for -g.
62783
62784         2005-12-04  Bruno Haible  <bruno@clisp.org>
62785
62786                 * build-aux/csharpcomp.sh.in: Suffix for resources is
62787                 .resources, not .resource.
62788
62789         2005-07-09  Bruno Haible  <bruno@clisp.org>
62790
62791                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
62792                 add a .dll suffix.
62793                 Reported by Mark Junker <mjscod@gmx.de>.
62794
62795         2006-07-22  Bruno Haible  <bruno@clisp.org>
62796
62797                 * modules/gettext: Upgrade to gettext-0.15.
62798                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
62799                 m4/visibility.m4.
62800                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
62801
62802 2006-07-22  Bruno Haible  <bruno@clisp.org>
62803
62804         Merge from GNU gettext 0.15.
62805
62806         2006-03-25  Bruno Haible  <bruno@clisp.org>
62807
62808                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
62809
62810         2006-07-21  Bruno Haible  <bruno@clisp.org>
62811
62812                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
62813                 "1.1".
62814
62815         2006-05-09  Bruno Haible  <bruno@clisp.org>
62816
62817                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
62818                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
62819                 for the conftestver execution.
62820
62821         2006-05-01  Bruno Haible  <bruno@clisp.org>
62822
62823                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
62824                 optional target-version argument. Verify that the compiler
62825                 groks source of the specified source-version, or add -source
62826                 option as necessary. Verify that the compiler produces
62827                 bytecode in the specified target-version, or add -target and
62828                 -source options as necessary. Make the result of the test
62829                 available as variable CONF_JAVAC. Also log error output in
62830                 config.log.
62831
62832         2006-03-11  Bruno Haible  <bruno@clisp.org>
62833
62834                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
62835
62836         2006-05-09  Bruno Haible  <bruno@clisp.org>
62837
62838                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
62839                 CLASSPATH_SEPARATOR to a semicolon.
62840
62841         2006-03-12  Bruno Haible  <bruno@clisp.org>
62842
62843                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
62844                 available as variable CONF_JAVA, for subsequent autoconf
62845                 tests. Also log error output in config.log.
62846
62847         2006-07-19  Bruno Haible  <bruno@clisp.org>
62848
62849                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
62850                 that getline works on glibc2 systems. Needed to avoid trouble
62851                 in relocatable.c.
62852                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
62853
62854         2005-12-04  Bruno Haible  <bruno@clisp.org>
62855
62856                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
62857                 launcher (untested).
62858
62859         2005-12-04  Bruno Haible  <bruno@clisp.org>
62860
62861                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
62862
62863         2006-07-22  Bruno Haible  <bruno@clisp.org>
62864
62865                 * gettext.m4: Update from GNU gettext-0.15.
62866                 * nls.m4: Likewise.
62867                 * po.m4: Likewise.
62868                 * inttypes-pri.m4: Likewise.
62869                 * inttypes-h.m4: Renamed from inttypes.m4.
62870                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
62871
62872 2006-07-22  Bruno Haible  <bruno@clisp.org>
62873
62874         Merge from GNU gettext 0.15.
62875
62876         2005-07-05  Bruno Haible  <bruno@clisp.org>
62877
62878                 * printf-args.c (printf_fetchargs): Work around broken
62879                 definition of wint_t on mingw.
62880
62881         2005-02-12  Bruno Haible  <bruno@clisp.org>
62882
62883                 * xallocsa.h: Add extern "C" for C++.
62884
62885         2006-05-17  Bruno Haible  <bruno@clisp.org>
62886
62887                 Cygwin portability.
62888                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
62889
62890         2006-04-30  Bruno Haible  <bruno@clisp.org>
62891
62892                 * progreloc.c: Include <mach-o/dyld.h> if available.
62893                 (find_executable): Use _NSGetExecutablePath when possible.
62894
62895         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
62896
62897                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
62898                 function.
62899
62900         2005-12-29  Bruno Haible  <bruno@clisp.org>
62901
62902                 * progreloc.c (set_program_name_and_installdir): Fix
62903                 compilation error.
62904
62905         2005-12-04  Bruno Haible  <bruno@clisp.org>
62906
62907                 Cygwin portability.
62908                 * progreloc.c: Include <windows.h> also on Cygwin.
62909                 (find_executable): Add support for Cygwin.
62910                 (set_program_name_and_installdir): Handle also platforms with
62911                 nonempty EXEEXT.
62912
62913         2006-07-11  Bruno Haible  <bruno@clisp.org>
62914
62915                 * javacomp.c: Fix a comment.
62916                 Reported by Jim Meyering.
62917
62918         2006-04-30  Bruno Haible  <bruno@clisp.org>
62919
62920                 * javacomp.h (compile_java_class): Add source_version,
62921                 target_version arguments.
62922                 * javacomp.c: Rewritten to choose only a compiler that
62923                 respects the specified source_version and target_version.
62924
62925         2006-06-27  Bruno Haible  <bruno@clisp.org>
62926
62927                 Assume correct S_ISDIR macro.
62928                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
62929
62930         2006-07-22  Bruno Haible  <bruno@clisp.org>
62931
62932                 * javaversion.h: New file, from GNU gettext.
62933                 * javaversion.c: New file, from GNU gettext.
62934                 * javaversion.java: New file, from GNU gettext.
62935                 * javaversion.class: New file, from GNU gettext.
62936
62937         2006-05-17  Bruno Haible  <bruno@clisp.org>
62938
62939                 Cygwin portability.
62940                 * javaexec.c (execute_java_class): Test for jview program
62941                 also on Cygwin.
62942
62943         2006-04-09  Bruno Haible  <bruno@clisp.org>
62944
62945                 * fatal-signal.c: Don't include string.h.
62946                 (at_fatal_signal): Use a copying loop instead of memcpy.
62947
62948         2005-12-04  Bruno Haible  <bruno@clisp.org>
62949
62950                 * csharpexec.c: Add support for 'clix' launcher (untested).
62951                 (execute_csharp_using_sscli): New function.
62952                 (execute_csharp_program): Call it.
62953
62954         2006-06-21  Bruno Haible  <bruno@clisp.org>
62955
62956                 Avoid warnings from recent versions of mcs.
62957                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
62958                 -o, -L, -r any more. Use options documented since mcs-1.0
62959                 instead. Similarly for -g.
62960
62961         2005-07-09  Bruno Haible  <bruno@clisp.org>
62962
62963                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
62964                 add a .dll suffix.
62965                 Reported by Mark Junker <mjscod@gmx.de>.
62966
62967         2006-06-17  Bruno Haible  <bruno@clisp.org>
62968
62969                 * config.charset: Update for NetBSD 3.0.
62970
62971         2006-05-17  Bruno Haible  <bruno@clisp.org>
62972
62973                 Cygwin portability.
62974                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
62975
62976         2006-05-16  Bruno Haible  <bruno@clisp.org>
62977
62978                 * localcharset.c [CYGWIN]: Include <windows.h>.
62979                 (get_charset_aliases): For Cygwin, return the same CPxxx
62980                 aliases list as under WIN32.
62981                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
62982                 the environment variables. Fall back to GetACP().
62983
62984         2006-04-05  Bruno Haible  <bruno@clisp.org>
62985
62986                 * config.charset: Update Juan Manuel Guerrero's address.
62987
62988         2005-02-12  Bruno Haible  <bruno@clisp.org>
62989
62990                 * allocsa.h: Add extern "C" for C++.
62991
62992         2005-02-10  Bruno Haible  <bruno@clisp.org>
62993
62994                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
62995                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
62996
62997         2006-07-22  Bruno Haible  <bruno@clisp.org>
62998
62999                 * gettext.h: Update to GNU gettext-0.15.
63000
63001 2006-07-22  Bruno Haible  <bruno@clisp.org>
63002
63003         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
63004         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
63005         lib-prefix.m4, longdouble.m4, ssize_t.m4.
63006
63007 2006-07-21  Eric Blake  <ebb9@byu.net>
63008
63009         * modules/stdlib-safer: New file.
63010         * MODULES.html.sh (File stream based Input/Output): Add
63011         stdlib-safer.
63012
63013 2006-07-21  Eric Blake  <ebb9@byu.net>
63014
63015         * lib/stdlib-safer.h: New file from coreutils, required by
63016         stdlib--.h.
63017
63018 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
63019
63020         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
63021
63022 2006-07-20  Bruno Haible  <bruno@clisp.org>
63023
63024         * gnulib-tool: Recognize new option --assume-autoconf.
63025         (autoconf_minversion): New variable.
63026         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
63027
63028 2006-07-20  Bruno Haible  <bruno@clisp.org>
63029
63030         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
63031
63032 2006-07-19  Derek R. Price  <derek@ximbiot.com>
63033
63034         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
63035         Reindent and repaginate.
63036
63037 2006-07-19  Derek Price  <derek@ximbiot.com>
63038
63039         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
63040         Correct grammar.
63041
63042 2006-07-17  Bruno Haible  <bruno@clisp.org>
63043
63044         * modules/list: New file.
63045         * modules/array-list: New file.
63046         * modules/carray-list, modules/carray-list-tests: New files.
63047         * modules/linked-list, modules/linked-list-tests: New files.
63048         * modules/avltree-list, modules/avltree-list-tests: New files.
63049         * modules/rbtree-list, modules/rbtree-list-tests: New files.
63050         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
63051         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
63052         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
63053         * modules/oset: New file.
63054         * modules/array-oset: New file.
63055         * modules/avltree-oset, modules/avltree-oset-tests: New files.
63056         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
63057         * tests/test-carray_list.c: New file.
63058         * tests/test-linked_list.c: New file.
63059         * tests/test-avltree_list.c: New file.
63060         * tests/test-rbtree_list.c: New file.
63061         * tests/test-linkedhash_list.c: New file.
63062         * tests/test-avltreehash_list.c: New file.
63063         * tests/test-rbtreehash_list.c: New file.
63064         * tests/test-avltree_oset.c: New file.
63065         * tests/test-rbtree_oset.c: New file.
63066         * MODULES.html.sh (Container data structures): New section.
63067
63068 2006-07-17  Bruno Haible  <bruno@clisp.org>
63069
63070         * m4/gl_list.m4: New file.
63071
63072 2006-07-17  Bruno Haible  <bruno@clisp.org>
63073
63074         * lib/gl_list.h: New file.
63075         * lib/gl_list.c: New file.
63076         * lib/gl_array_list.h: New file.
63077         * lib/gl_array_list.c: New file.
63078         * lib/gl_carray_list.h: New file.
63079         * lib/gl_carray_list.c: New file.
63080         * lib/gl_linked_list.h: New file.
63081         * lib/gl_linked_list.c: New file.
63082         * lib/gl_anylinked_list1.h: New file.
63083         * lib/gl_anylinked_list2.h: New file.
63084         * lib/gl_avltree_list.h: New file.
63085         * lib/gl_avltree_list.c: New file.
63086         * lib/gl_anyavltree_list1.h: New file.
63087         * lib/gl_anyavltree_list2.h: New file.
63088         * lib/gl_rbtree_list.h: New file.
63089         * lib/gl_rbtree_list.c: New file.
63090         * lib/gl_anyrbtree_list1.h: New file.
63091         * lib/gl_anyrbtree_list2.h: New file.
63092         * lib/gl_anytree_list1.h: New file.
63093         * lib/gl_anytree_list2.h: New file.
63094         * lib/gl_linkedhash_list.h: New file.
63095         * lib/gl_linkedhash_list.c: New file.
63096         * lib/gl_anyhash_list1.h: New file.
63097         * lib/gl_anyhash_list2.h: New file.
63098         * lib/gl_avltreehash_list.h: New file.
63099         * lib/gl_avltreehash_list.c: New file.
63100         * lib/gl_rbtreehash_list.h: New file.
63101         * lib/gl_rbtreehash_list.c: New file.
63102         * lib/gl_anytreehash_list1.h: New file.
63103         * lib/gl_anytreehash_list2.h: New file.
63104
63105         * lib/gl_oset.h: New file.
63106         * lib/gl_oset.c: New file.
63107         * lib/gl_array_oset.h: New file.
63108         * lib/gl_array_oset.c: New file.
63109         * lib/gl_avltree_oset.h: New file.
63110         * lib/gl_avltree_oset.c: New file.
63111         * lib/gl_rbtree_oset.h: New file.
63112         * lib/gl_rbtree_oset.c: New file.
63113         * lib/gl_anytree_oset.h: New file.
63114
63115 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
63116
63117         * m4/mkancesdirs.m4: New file.
63118         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
63119         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
63120         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
63121         it.
63122
63123 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
63124
63125         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
63126         * lib/mkancesdirs.h: New files.
63127         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
63128         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
63129         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
63130         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
63131         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
63132         callers changed.  Revamp internals significantly, by not
63133         attempting to create directories that are temporarily more
63134         permissive than the final results.  Do not attempt to use
63135         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
63136         This removes some race conditions, fixes some bugs, and simplifies
63137         things.  Use new dirchownmod function to do owner and mode changes.
63138         * lib/mkdir-p.h: Likewise.
63139         * lib/modechange.c (octal_to_mode): New function.
63140         (struct mode_change): New member mentioned.
63141         (make_node_op_equals): New arg mentioned.  All callers changed.
63142         (mode_compile): Keep track of which mode bits the user has explicitly
63143         mentioned.
63144         (mode_adjust): New arg DIR, so that we implement the X op correctly.
63145         New arg PMODE_BITS, to keep track of which mode bits the user
63146         mentioned; it treats S_ISUID and S_ISGID speciall.
63147         All callers changed.
63148         * lib/modechange.h: Likewise.
63149
63150 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
63151
63152         * MODULES.html.sh: Add mkancestors.
63153         * modules/mkancesdirs: New module.
63154         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
63155         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
63156         The chdir-safer and afs files are now orphans; I'll remove them
63157         unless someone speaks up.
63158         Add lib/dirchownmod.c, lib/dirchownmod.h.
63159         (Depends-on): Remove alloca, chown, save-cwd, dirname.
63160         Add lchown, mkancesdirs.
63161         (Maintainer): Add self.
63162
63163 2006-07-15  Karl Berry  <karl@gnu.org>
63164
63165         * gnulib-tool: help message wording/arrangement.
63166
63167 2006-07-14  Simon Josefsson  <jas@extundo.com>
63168
63169         * doc/gnulib.texi (Libtool and Windows): New section.
63170
63171 2006-07-12  Simon Josefsson  <jas@extundo.com>
63172
63173         * modules/gendocs (License): Fix license, approved by Karl.
63174
63175 2006-07-12  Eric Blake  <ebb9@byu.net>
63176
63177         * MODULES.html.sh: Add gendocs.
63178
63179 2006-07-11  Eric Blake  <ebb9@byu.net>
63180
63181         * modules/fdl: New module, to install doc/fdl.texi.
63182         * MODULES.html.sh: Add new section for documentation modules.
63183         * gnulib-tool: Avoid space-tab.
63184         (--doc-base): New option, to manage files from doc.
63185
63186 2006-07-11  Eric Blake  <ebb9@byu.net>
63187
63188         * m4/absolute-header.m4: Fix comments to match recent change.
63189
63190 2006-07-11  Eric Blake  <ebb9@byu.net>
63191
63192         * gnulib-tool: List --doc-base before --tests-base.
63193
63194 2006-07-11  Derek R. Price  <derek@ximbiot.com>
63195
63196         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
63197
63198 2006-07-11  Bruno Haible  <bruno@clisp.org>
63199
63200         * README: Mention where to put documentation.
63201
63202 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63203
63204         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
63205
63206 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
63207
63208         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
63209         to stdint.m4.
63210
63211 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
63212
63213         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
63214         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
63215         "no/such/file/stdint.h" when there is no such file, so that
63216         the resulting C code can be parsed by dodgy compilers.
63217         Problems reported by Bob Proulx.
63218
63219 2006-07-10  Derek R. Price  <derek@ximbiot.com>
63220
63221         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
63222         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
63223         macros into the GNU _D_EXACT_NAMLEN.
63224         * lib/savedir.c:  Likewise.
63225         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
63226
63227 2006-07-10  Derek R. Price  <derek@ximbiot.com>
63228         and Paul Eggert  <eggert@cs.ucla.edu>
63229
63230         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
63231         * m4/savedir.m4:
63232         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
63233         macros into the GNU _D_EXACT_NAMLEN.
63234
63235 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
63236
63237         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
63238         around the absolute name, to work around a problem with the HP-UX
63239         11.23 native C compiler, reported by Bob Proulx.
63240
63241 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
63242
63243         * doc/maintain.texi, make-stds.texi: Sync from
63244         <http://savannah.gnu.org/projects/gnustandards>.
63245
63246 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
63247
63248         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
63249
63250 2006-07-09  Jim Meyering  <jim@meyering.net>
63251
63252         * m4/glob.m4: Remove a doubled word in a comment.
63253
63254 2006-07-09  Jim Meyering  <jim@meyering.net>
63255
63256         * lib/argp-pv.c: Remove a doubled word in a comment.
63257         * lib/check-version.c (check_version): Likewise.
63258         * lib/javacomp.c (compile_java_class): Likewise.
63259
63260 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
63261
63262         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
63263         for the benefit of people using Autoconf 2.60.  If you want to
63264         support older Autoconf versions you can copy m4/onceonly_2_57.m4
63265         (or m4/onceonly.m4, if pre-2.57) manually.
63266
63267 2006-07-08  Jim Meyering  <jim@meyering.net>
63268
63269         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
63270         comment.
63271         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
63272         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
63273         comment.
63274
63275 2006-07-08  Jim Meyering  <jim@meyering.net>
63276
63277         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
63278
63279 2006-07-07  Simon Josefsson  <jas@extundo.com>
63280
63281         * tests/test-crc.c: Change expected crc value, the test vector
63282         were probably computed using the old broken crc.c?
63283
63284 2006-07-06  Simon Josefsson  <jas@extundo.com>
63285
63286         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
63287         now the canonical place for the M4 file).
63288
63289         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
63290         from the sys_socket dependency now.
63291
63292         * modules/inet_pton (Files): Ditto.
63293
63294         * modules/inet_ntop (Files): Ditto.
63295
63296 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
63297
63298         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
63299         not gl_PREREQ_GETUSERSHELL.
63300
63301 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63302
63303         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
63304         with only one argument, for Autoconf 2.60.
63305         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
63306         expand to nothing, so add a shell command to avoid syntax error.
63307         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
63308
63309 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63310
63311         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
63312
63313 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
63314
63315         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
63316         no longer needed.  Check for isblank decl.
63317         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
63318         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
63319         of existence.
63320
63321 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
63322
63323         * lib/getloadavg.c: Use __VMS, not VMS.
63324         * lib/getopt.c: Likewise.
63325         * lib/getpagesize.h: Likewise.
63326         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
63327         and probably does not work.
63328
63329 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
63330
63331         * lib/.cppi-disable: Add wcwidth.
63332         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
63333         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
63334         (ISGRAPH): Remove.  All uses changed to isgraph.
63335         (FOLD) [!defined _LIBC]: Remove special case.
63336         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
63337         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
63338         HAVE_ISBLANK.
63339         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
63340         case.
63341
63342 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
63343
63344         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
63345         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
63346         brackets.  Other minor changes to suppress some compiler
63347         warnings.
63348
63349 2006-07-06  Derek R. Price  <derek@ximbiot.com>
63350         and Paul Eggert  <eggert@cs.ucla.edu>
63351
63352         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
63353         of invoking obsolescent AC_HEADER_DIRENT macro.
63354         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
63355         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
63356         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
63357         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
63358         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
63359         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
63360         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
63361         * m4/readdir.m4: Remove; no longer needed.
63362
63363 2006-07-06  Derek R. Price  <derek@ximbiot.com>
63364         and Paul Eggert  <eggert@cs.ucla.edu>
63365
63366         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
63367         Don't worry about this obsolete case any more.
63368         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
63369         directories.
63370         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
63371         worry about this obsolete case any more.
63372         * lib/fts.c: Likewise.
63373         * lib/getcwd.c: Likewise.
63374         * lib/glob.h: Likewise.
63375         * lib/savedir.c: Likewise.
63376
63377 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
63378
63379         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
63380         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
63381         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
63382         needed.
63383         All uses removed.
63384         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
63385         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
63386         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
63387         needed.
63388         * m4/getdate.m4 (gl_GETDATE): Likewise.
63389         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
63390         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
63391         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
63392         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
63393         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
63394         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
63395         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
63396         needed.
63397
63398 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
63399
63400         * lib/memcasecmp.c: Include <limits.h>.
63401         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
63402         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
63403         Don't assume isdigit succeeds only on '0' through '9'.
63404
63405 2006-07-05  Eric Blake  <ebb9@byu.net>
63406
63407         * modules/getaddrinfo (Depends-on): Add snprintf.
63408
63409 2006-07-05  Eric Blake  <ebb9@byu.net>
63410
63411         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
63412         to avoid 'header present but could not be compiled' on cygwin.
63413
63414 2006-07-05  Eric Blake  <ebb9@byu.net>
63415
63416         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
63417         missing from netdb.h.
63418         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
63419
63420 2006-07-05  Derek R. Price  <derek@ximbiot.com>
63421
63422         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
63423         no longer needed.
63424         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
63425         * m4/getdate.m4 (gl_GETDATE): Likewise.
63426         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
63427         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
63428         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
63429         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
63430         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
63431
63432 2006-07-05  Derek R. Price  <derek@ximbiot.com>
63433
63434         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
63435         All uses of is_space replaced by isspace.
63436         * lib/exit.h: Don't talk about STDC_HEADERS.
63437         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
63438         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
63439         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
63440         replaced by isprint etc.
63441         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
63442         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
63443         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
63444         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
63445         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
63446         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
63447
63448 2006-07-05  Bruno Haible  <bruno@clisp.org>
63449
63450         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
63451         the function exists, before testing against AIX.
63452         Reported by Martin Lambers <marlam@marlam.de>.
63453
63454 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
63455
63456         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
63457         From Mark D. Baushke.
63458
63459 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
63460
63461         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
63462         to the absolute name, not just one, to bypass Sun C 5.8's
63463         "warning: #include of /usr/include/... may be non-portable".
63464
63465 2006-07-04  Eric Blake  <ebb9@byu.net>
63466
63467         * modules/dirname-tests: New test module.
63468         * tests/test-dirname.c: New file, replacing dirname.c
63469         TEST_DIRNAME section that was recently deleted.
63470
63471 2006-07-04  Bruno Haible  <bruno@clisp.org>
63472
63473         Assume ANSI C header files and <ctype.h> functions.
63474         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
63475         (mbsnwidth): Use isprint, iscntrl instead.
63476
63477 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
63478
63479         Merge from coreutils.
63480         * MODULES.html.sh: Add xstrtold.
63481         * modules/xstrtold: New file.
63482         * modules/cycle-check (Files): Add lib/same-inode.h.
63483         * modules/dirname (Files): Add m4/double-slash-root.m4.
63484         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
63485         * modules/mkdir-p (Files): Add lib/same-inode.h.
63486         * modules/same (Files): Add lib/same-inode.h.
63487
63488 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
63489
63490         * m4/absolute-header.m4: Renamed from full-header-path.m4.
63491         This is to keep the terminology clean; POSIX talks about
63492         "absolute pathnames", not "full pathnames", but the GNU
63493         Coding Standards say to use "path" for something else;
63494         so use "absolute" to keep both sides happy.
63495         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
63496         Set gl_absolute_header, not gl_full_header_path.
63497         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
63498         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
63499         All uses changed.
63500
63501         Merge from coreutils.
63502
63503         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
63504
63505         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
63506         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
63507         want to require the building of c-strtod.o.
63508         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
63509         needs -lm directly.
63510         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
63511
63512         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
63513
63514         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
63515         --as-needed option if available.  Problem reported by Albert Chin in
63516         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
63517         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
63518         cc merely issues a bunch of annoying warnings for --as-needed
63519         (this problem was reported by Bob Proulx).  Also, try linking with
63520         -lm to detect a bug in binutils 2.16 (this problem was reported
63521         by Ralf Wildenhues).
63522
63523         2006-06-18  Jim Meyering  <jim@meyering.net>
63524
63525         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
63526         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
63527         macro.
63528         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
63529         also check for glibc-2.4's abort-inducing bug.
63530
63531         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
63532         Low-probability clean-up should be to use rmdir to get rid of
63533         the just-created directory, not unlink.
63534
63535         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
63536         configure fail, and request a bug report to inform us about it.
63537         Add a comment that, barring reports to the contrary, in 2007 we'll
63538         assume ftruncate is universally available.
63539
63540         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
63541
63542         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
63543
63544         2006-03-12  Jim Meyering  <jim@meyering.net>
63545
63546         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
63547         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
63548         * m4/same.m4 (gl_SAME): Likewise.
63549         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
63550
63551         2006-03-11  Eric Blake  <ebb9@byu.net>
63552
63553         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
63554         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
63555         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
63556         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
63557
63558 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
63559
63560         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
63561         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
63562         reported by Mark D. Baushke, one in
63563         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
63564
63565         Merge from coreutils.
63566
63567         * lib/.cppi-disable: Add stdint_.h.
63568         * lib/.cvsignore: Add stdint.h.
63569
63570         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
63571
63572         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
63573         both double and long double versions.
63574         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
63575         * lib/xstrtold.c: New file.
63576         * lib/xstrtod.h (xstrtold): New decl.
63577
63578         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
63579
63580         * lib/filemode.c (setst): Remove.
63581         (strmode): Rewrite to avoid setst.  This makes the code shorter,
63582         (arguably) clearer, and the generated code is a bit smaller on my
63583         Debian GNU/Linux stable x86 host.
63584
63585         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
63586
63587         * lib/filemode.c: Include "filemode.h" first, to test the interface.
63588         Assume that filemode.h includes sys/types.h and sys/stat.h.
63589         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
63590         (ftypelet): Reorder to put common cases first, for efficiency.
63591         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
63592         to do 'M'.
63593         (strmode): Renamed from mode_string, and now stores 12 bytes instead
63594         of 10, for compatibility with FreeBSD.  All callers changed.
63595         (filemodestring): Now stores 12 bytes instead of 10, and sets file
63596         types that can't be deduced solely from st_mode.  First arg is now a
63597         const pointer.
63598         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
63599         (strmode): Renamed from mode_string.
63600         (filemodestring): New decl.
63601         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
63602         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
63603         needed.
63604         (S_ISPORT, S_ISWHT): New macros, if not already defined.
63605
63606         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
63607
63608         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
63609         fsusage.h now does that.  Include fsusage.h first, to test interface.
63610         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
63611         at most one method (the old code could have generated decls that
63612         didn't conform to C89, not that this was ever exercised).
63613         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
63614
63615         2006-03-19  Jim Meyering  <jim@meyering.net>
63616
63617         Work even in a chroot where d_ino values for entries in "/"
63618         don't match the stat.st_ino values for the same names.
63619         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
63620         number, iterate through all entries again, using lstat instead.
63621         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
63622         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
63623
63624         * lib/getcwd.c (__getcwd): Clarify a comment.
63625         Use memcpy in place of a call to strcpy.
63626
63627         2006-03-12  Jim Meyering  <jim@meyering.net>
63628
63629         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
63630         matches that of the current directory (which we're about to chdir ".."
63631         out of), then save the dev-ino of the parent, instead.
63632
63633         * lib/same-inode.h (SAME_INODE): New file/macro.
63634         * lib/chdir-safer.c (SAME_INODE): Remove definition.
63635         Include "same-inode.h", instead.
63636         * lib/same.c: Likewise.
63637         * lib/cycle-check.h: Include "same-inode.h".
63638         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
63639         * lib/cycle-check.c (SAME_INODE): Remove definition.
63640         * lib/root-dev-ino.h: Include "same-inode.h".
63641
63642         2006-03-11  Eric Blake  <ebb9@byu.net>
63643
63644         * lib/same.c (same_name): s/base_name/last_component/
63645         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
63646         * lib/filenamecat.c (file_name_concat): Likewise.
63647
63648         2006-03-11  Eric Blake  <ebb9@byu.net>,
63649                     Paul Eggert  <eggert@cs.ucla.edu>
63650
63651         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
63652         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
63653         drive prefix.
63654         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
63655         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
63656         (last_component): New method.
63657         * lib/dirname.c (dir_len): Determine when drive letters need a
63658         subsequent slash.  Preserve // when it is special.
63659         (dir_name): Don't append dot when drive letter is absolute.
63660         [TEST_DIRNAME]: Move into a full-blown gnulib test.
63661         * lib/basename.c (base_name): New semantics - malloc the result.
63662         Preserve // when it is special.  Preserve relative files that look
63663         like drive letters.
63664         (base_len): Preserve // when it is special.
63665         (last_component): New method, similar to old base_name semantics.
63666         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
63667         base_name.  Strip redundant slashes from ///.
63668
63669 2006-07-03  Jim Meyering  <jim@meyering.net>
63670
63671         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
63672         macro is used before the first cycle_check call.
63673
63674 2006-07-03  Eric Blake  <ebb9@byu.net>
63675
63676         * modules/dirname (Depends-on): Add xstrndup.
63677
63678 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
63679
63680         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
63681         test cases, so that config.log is a bit easier to follow.
63682
63683 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
63684
63685         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
63686         both are 64 bits, since this seems to be the tradition, and this
63687         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
63688         we ever run into a host that prefers long long to long in this
63689         case, we'll need another configure-time test.  Problem reported by
63690         Jim Meyering.
63691
63692 2006-07-02  Eric Blake  <ebb9@byu.net>
63693
63694         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
63695
63696 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
63697
63698         * modules/inttypes (Depends-on): No longer depends on stdint.
63699         * modules/stdint (Description): Say more about assumptions.
63700         Say that the fast types might differ.  Say macros are used.
63701         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
63702         (Makefile.am): Revise list of substituted symbols to match
63703         new stdint.m4.
63704         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
63705         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
63706         * tests/test-stdint.c (verify_same_types)
63707         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
63708         the code conforms to C99/C89.
63709         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
63710         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
63711
63712 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
63713
63714         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
63715         but fix a bug, by requiring at least 64 bits.
63716         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
63717         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
63718         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
63719         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
63720
63721         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
63722         changes.  Make 2.59 a prerequisite.  Check and substitute for
63723         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
63724         inttypes.h.  Do not use special include files; just use the
63725         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
63726         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
63727         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
63728         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
63729         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
63730         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
63731         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
63732         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
63733         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
63734         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
63735         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
63736         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
63737         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
63738         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
63739         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
63740         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
63741         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
63742         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
63743         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
63744         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
63745         WINT_MAX.  Check for C99 conformance more strictly, by detecting
63746         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
63747         not check for things that C99 does not require, e.g., int8_t.  If
63748         a test isn't needed unless <stdint.h> isn't working, and is
63749         unlikely to be needed for any other reason, then don't do it
63750         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
63751         size_t, since we assume C89 freestanding at least.  Do not check
63752         for sig_atomic_t, wchar_t, or wint_t, since the code now does
63753         the right thing even if the types are not defined.  Instead use:
63754         (gl_STDINT_TYPE_PROPERTIES): New macro.
63755         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
63756         testing whether <sys/types.h> clashes, as Autoconf does this for
63757         us now.  All uses removed.
63758         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
63759         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
63760         (gl_CHECK_TYPE_SAME):
63761         Remove; no longer needed.
63762         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
63763         exists, since we'll return 0 anyway in that case.
63764         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
63765
63766 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
63767
63768         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
63769         possible collision with system files.
63770         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
63771         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
63772         WCHAR_MIN and WCHAR_MAX in this case.
63773         (<stddef.h>): Do not include; no longer needed.
63774         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
63775         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
63776         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
63777         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
63778         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
63779         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
63780         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
63781         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
63782         !defined(__c99))]: Include in this case too, since it's harmless
63783         now.
63784         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
63785         dangerous to do so.
63786         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
63787         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
63788         (_STDINT_MIN, _STDINT_MAX): New macros.
63789         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
63790         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
63791         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
63792         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
63793         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
63794         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
63795         macros, not typedefs; this simplifies things quite a bit.
63796         Use long int for all types narrower than int64_t.
63797         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
63798         Define in terms of long long int or int64_t or long int,
63799         not int64_t or int32_t.  This saves some compile-time testing.
63800         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
63801         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
63802         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
63803         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
63804         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
63805         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
63806         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
63807         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
63808         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
63809         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
63810         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
63811         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
63812         undef any previous version and define our own version, for
63813         simplicity and consistency with the new macros for types.
63814         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
63815         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
63816         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
63817         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
63818         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
63819         @WINT_T_SUFFIX@ to keep things simple here.
63820         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
63821         Simplify by assuming typical 8/16/32/64 host, since we're
63822         already doing that elsewhere anyway.
63823         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
63824         and assume long long int is 64 bits if available.  This
63825         speeds up 'configure'.
63826
63827 2006-07-01  Eric Blake  <ebb9@byu.net>
63828
63829         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
63830         Reported by Andreas Buening.
63831
63832 2006-07-01  Eric Blake  <ebb9@byu.net>
63833
63834         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
63835
63836 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
63837
63838         * lib/getaddrinfo.c: fixed typo
63839
63840 2006-06-29  Jim Meyering  <jim@meyering.net>
63841
63842         * modules/strftime (Maintainer): Add my name, since with the
63843         FPRINTFTIME changes strftime.c has forked from glibc.
63844
63845 2006-06-29  Eric Blake  <ebb9@byu.net>
63846
63847         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
63848
63849 2006-06-29  Eric Blake  <ebb9@byu.net>
63850
63851         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
63852
63853 2006-06-29  Eric Blake  <ebb9@byu.net>
63854
63855         * lib/stat_.h: New file.
63856
63857 2006-06-29  Eric Blake  <ebb9@byu.net>
63858
63859         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
63860         unused static function.
63861
63862 2006-06-29  Eric Blake  <ebb9@byu.net>
63863
63864         * doc/functions.texi (Function Portability): Document missing lstat
63865         on mingw.
63866
63867 2006-06-29  Eric Blake  <ebb9@byu.net>
63868
63869         * MODULES.html.sh: Add sys_stat.
63870         * modules/sys_stat: New module.
63871         * modules/mkstemp (Depends-on): Add sys_stat.
63872
63873 2006-06-29  Derek R. Price  <derek@ximbiot.com>
63874
63875         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
63876
63877 2006-06-29  Derek R. Price  <derek@ximbiot.com>
63878
63879         * m4/c-bs-a.m4: Removed.
63880
63881 2006-06-29  Derek R. Price  <derek@ximbiot.com>
63882
63883         * lib/strftime.c: Assume strftime() exists.
63884
63885 2006-06-29  Derek Price  <derek@ximbiot.com>
63886
63887         * modules/c-bs-a: Removed - \a is C89.
63888         * MODULES.html.sh: Remove c-bs-a.
63889
63890 2006-06-29  Bruno Haible  <bruno@clisp.org>
63891
63892         * modules/wcwidth (License): Change to LGPL.
63893
63894 2006-06-28  Simon Josefsson  <jas@extundo.com>
63895
63896         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
63897         on _WIN32.
63898
63899         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
63900         getnameinfo.
63901
63902 2006-06-28  Simon Josefsson  <jas@extundo.com>
63903
63904         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
63905
63906 2006-06-28  Simon Josefsson  <jas@extundo.com>
63907
63908         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
63909         functions there.  It will succeed on Windows XP, but on Windows
63910         2000 and (presumably) earlier, it will fail, and use the internal
63911         re-implementation.
63912         (use_win32_p): New function.
63913         (getaddrinfo): Use strtoul on servname, to support numeric ports.
63914         Support AI_NUMERICSERV to disable getservbyname.
63915         (getnameinfo): New function, only supports
63916         NI_NUMERICHOST|NI_NUMERICSERV for now.
63917
63918         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
63919         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
63920         getnameinfo.
63921
63922 2006-06-28  Eric Blake  <ebb9@byu.net>
63923
63924         * modules/wcwidth: New file.
63925         * modules/mbchar (Depends-on): Add wcwidth.
63926         * modules/mbswidth (Depends-on): Add wcwidth.
63927         * MODULES.html.sh: Add wcwidth.
63928
63929 2006-06-28  Eric Blake  <ebb9@byu.net>
63930
63931         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
63932         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
63933
63934 2006-06-28  Eric Blake  <ebb9@byu.net>
63935
63936         * lib/xvasprintf.h: Fix comments.
63937
63938 2006-06-28  Eric Blake  <ebb9@byu.net>
63939
63940         * lib/mbchar.h (wcwidth): Include wcwidth.h.
63941         * lib/mbswidth.c (wcwidth): Move from here...
63942         * lib/wcwidth.h: ...to this new file.
63943
63944 2006-06-28  Derek R. Price  <derek@ximbiot.com>
63945
63946         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
63947
63948         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
63949         it's obsolete.
63950         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
63951
63952 2006-06-28  Derek R. Price  <derek@ximbiot.com>
63953
63954         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
63955         Autoconf 2.60 says this stuff was obsolete.
63956
63957 2006-06-28  Bruno Haible  <bruno@clisp.org>
63958
63959         * modules/wcwidth (Files): Add m4/wchar_t.m4.
63960
63961 2006-06-28  Bruno Haible  <bruno@clisp.org>
63962
63963         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
63964         gt_TYPE_WCHAR_T.
63965
63966 2006-06-28  Bruno Haible  <bruno@clisp.org>
63967
63968         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
63969         declaration for wcwidth.
63970         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
63971
63972 2006-06-28  Bruno Haible  <bruno@clisp.org>
63973
63974         * lib/mkdtemp.c [MINGW]: Include <io.h>.
63975         (mkdir): Define using _mkdir.
63976
63977 2006-06-28  Bruno Haible  <bruno@clisp.org>
63978
63979         * lib/getaddrinfo.h: Fix POSIX URL.
63980         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
63981         _WIN32.
63982         (use_win32_p): Make static.
63983         (getaddrinfo): Reject service name if it is empty or does not consist
63984         solely of decimal digits, or if its value is > 65535.
63985         (getnameinfo): Remove useless casts.
63986
63987 2006-06-27  Simon Josefsson  <jas@extundo.com>
63988
63989         * modules/sys_select: New file, suggested by Bruno Haible, Paul
63990         Eggert and Martin Lambers.
63991
63992 2006-06-27  Simon Josefsson  <jas@extundo.com>
63993
63994         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
63995         Eggert and Martin Lambers.
63996
63997 2006-06-27  Bruno Haible  <bruno@clisp.org>
63998
63999         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
64000         result to 0, not to empty.
64001         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
64002
64003 2006-06-27  Bruno Haible  <bruno@clisp.org>
64004
64005         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
64006
64007 2006-06-26  Simon Josefsson  <jas@extundo.com>
64008
64009         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
64010         present.
64011
64012 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
64013
64014         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
64015         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
64016         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
64017
64018 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
64019
64020         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
64021
64022 2006-06-26  Bruno Haible  <bruno@clisp.org>
64023
64024         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
64025
64026 2006-06-26  Bruno Haible  <bruno@clisp.org>
64027
64028         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
64029
64030 2006-06-26  Bruno Haible  <bruno@clisp.org>
64031
64032         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
64033         SGI C compiler in pre-C99 mode.
64034         Suggested by Mark D. Baushke and Larry Jones.
64035
64036 2006-06-26  Bruno Haible  <bruno@clisp.org>
64037
64038         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
64039         WCHAR_MAX.
64040         Reported by Mark D. Baushke and Larry Jones.
64041
64042 2006-06-26  Bruno Haible  <bruno@clisp.org>
64043
64044         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
64045         in pre-C99 mode.
64046         Suggested by Mark D. Baushke and Larry Jones.
64047
64048 2006-06-23  Simon Josefsson  <jas@extundo.com>
64049             Bruno Haible  <bruno@clisp.org>
64050
64051         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
64052         Emit mostlyclean-local rule.
64053         (func_emit_tests_Makefile_am): Likewise.
64054         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
64055
64056 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
64057
64058         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
64059
64060 2006-06-23  Bruno Haible  <bruno@clisp.org>
64061
64062         * tests/test-stdint.c: Update to match ISO C 99 Technical
64063         Corrigendum 1.
64064
64065 2006-06-23  Bruno Haible  <bruno@clisp.org>
64066
64067         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
64068
64069 2006-06-23  Bruno Haible  <bruno@clisp.org>
64070
64071         * lib/stdint_.h: Treat IRIX like OpenBSD.
64072
64073 2006-06-23  Bruno Haible  <bruno@clisp.org>
64074
64075         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
64076         ISO C 99 Technical Corrigendum 1.
64077
64078 2006-06-22  Simon Josefsson  <jas@extundo.com>
64079
64080         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
64081         MinGW.
64082
64083 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
64084
64085         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
64086         needed.  Some compiler complained about some of them.  Problem reported
64087         by Larry Jones in
64088         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
64089
64090 2006-06-21  Simon Josefsson  <jas@extundo.com>
64091
64092         * tests/test-getaddrinfo.c: New file.
64093
64094         * modules/getaddrinfo-tests: New file.
64095
64096         * MODULES.html.sh: Add inet_pton.
64097
64098         * modules/inet_pton: New file.
64099
64100 2006-06-21  Simon Josefsson  <jas@extundo.com>
64101
64102         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
64103         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
64104         of using the (limited) gnulib implementation on Windows XP.
64105
64106         * m4/inet_pton.m4: New file.
64107
64108 2006-06-21  Simon Josefsson  <jas@extundo.com>
64109
64110         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
64111         variable.
64112
64113         * lib/socket_.h: Don't define WINVER.
64114
64115         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
64116         slightly modified to work in gnulib.
64117
64118 2006-06-21  Simon Josefsson  <jas@extundo.com>
64119
64120         * doc/gnulib.texi (Windows sockets): Add.
64121
64122 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
64123
64124         * lib/read-file.c (fread_file): Start with buffer allocation of
64125         0 bytes rather than 1 byte; this simplifies the code.
64126         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
64127         code to free buffer and save/restore errno.
64128         (internal_read_file): Remove unused local.
64129
64130 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
64131
64132         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
64133         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
64134         Problem reported by Denis Excoffier in
64135         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
64136
64137 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64138
64139         * modules/sys_socket, modules/socklen: Include sys/types since
64140         FreeBSD 4.x's sys/socket.h needs it.
64141
64142 2006-06-19  Simon Josefsson  <jas@extundo.com>
64143
64144         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
64145
64146 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
64147
64148         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
64149
64150 2006-06-19  Bruno Haible  <bruno@clisp.org>
64151
64152         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
64153         and FULL_PATH_INTTYPES_H in angle brackets.
64154         Reported by Mark D. Baushke <mdb@gnu.org>.
64155
64156 2006-06-17  Eric Blake  <ebb9@byu.net>
64157
64158         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
64159         errno.
64160
64161 2006-06-17  Bruno Haible  <bruno@clisp.org>
64162
64163         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
64164         <sys/inttypes.h>.
64165
64166 2006-06-17  Bruno Haible  <bruno@clisp.org>
64167
64168         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
64169         whether errno is declared. Assume <errno.h> declares errno.
64170
64171 2006-06-17  Bruno Haible  <bruno@clisp.org>
64172
64173         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
64174
64175 2006-06-17  Bruno Haible  <bruno@clisp.org>
64176
64177         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
64178         problem on Solaris 2.5.1.
64179
64180 2006-06-16  Eric Blake  <ebb9@byu.net>
64181
64182         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
64183         * lib/unicodeio.c [!defined errno]: Likewise.
64184         * lib/strtol.c [!defined errno]: Likewise.
64185         * lib/strtod.c [!defined errno]: Likewise.
64186
64187 2006-06-15  Eric Blake  <ebb9@byu.net>
64188
64189         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
64190
64191 2006-06-15  Eric Blake  <ebb9@byu.net>
64192
64193         * config/srclist.txt (ssize_t.m4): Lose sync.
64194
64195 2006-06-15  Bruno Haible  <bruno@clisp.org>
64196
64197         * modules/stdint (Files): Include m4/full-header-path.m4,
64198         m4/size_max.m4, m4/wchar_t.m4.
64199         (Makefile.am): Many more substitutions.
64200         * modules/stdint-tests: New file.
64201         * tests/test-stdint.c: New file.
64202
64203 2006-06-15  Bruno Haible  <bruno@clisp.org>
64204
64205         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
64206         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
64207         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
64208         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
64209         gl_CHECK_TYPE_SAME): New macros.
64210
64211 2006-06-15  Bruno Haible  <bruno@clisp.org>
64212
64213         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
64214
64215 2006-06-15  Bruno Haible  <bruno@clisp.org>
64216
64217         * lib/stdint_.h: Rewritten to be fully auto-configured.
64218         Fixes bug on HP-UX/IA64.
64219
64220 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
64221
64222         * lib/getdate.y (__attribute__): Don't define if already defined.
64223         Problem reported by Larry Jones.
64224         * lib/utimens.c (__attribute__): Likewise.
64225
64226 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
64227
64228         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
64229         reported by Andreas Schwab.
64230
64231 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64232             Bruno Haible  <bruno@clisp.org>
64233
64234         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
64235         check for the declaration of strnlen and a run test that exposes the
64236         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
64237         rpl_strndup.
64238
64239 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64240             Bruno Haible  <bruno@clisp.org>
64241
64242         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
64243
64244 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64245
64246         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
64247         compile test, for Tru64 4.0D.
64248
64249 2006-05-28  Karl Berry  <karl@gnu.org>
64250
64251         * config/srclist.txt (printf-args.c): lose sync.
64252
64253 2006-05-26  Martin Lambers  <marlam@marlam.de>
64254
64255         * lib/getpass.c: Updates the test for the native W32 API, and adds
64256         missing includes, thus fixing compilation warnings.
64257
64258 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
64259
64260         * lib/exclude.c (exclude_fnmatch): New function.
64261         (excluded_file_name): Call exclude_fnmatch.
64262         * lib/exclude.h (excluded_file_name): New prototype
64263
64264 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
64265
64266         * lib/tempname.c (small_open, large_open): New macros.
64267         (__open, __open64) [!_LIBC]: Remove.
64268         (__gen_tempname): Use small_open and large_open instead of __open
64269         and __open64.  This fixes a portability bug on HP-UX 11.11i
64270         reported by Simon Wing-Tang in
64271         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
64272
64273 2006-05-24  Bruno Haible  <bruno@clisp.org>
64274
64275         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
64276         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
64277         Reported by Thorsten Maerz <torte@netztorte.de> via
64278         Aaron Stone <aaron@serendipity.cx>.
64279
64280 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
64281
64282         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
64283         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
64284         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
64285         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
64286         not really conditional on the cache.
64287         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
64288
64289 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
64290
64291         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
64292         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
64293         (my_usleep): Don't mishandle maximum value.
64294
64295 2006-05-19  Jim Meyering  <jim@meyering.net>
64296
64297         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
64298
64299 2006-05-17  Bruno Haible  <bruno@clisp.org>
64300
64301         Cygwin portability.
64302         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
64303
64304 2006-05-17  Bruno Haible  <bruno@clisp.org>
64305
64306         * lib/stdint_.h: Fix recognition of Cygwin.
64307
64308 2006-05-15  Bruno Haible  <bruno@clisp.org>
64309
64310         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
64311         on libtool patch by Ralf Wildenhues.
64312
64313 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
64314
64315         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
64316         test for C99 conformance; (bool) 0.5 is an integer constant
64317         expression, but (bool) -0.5 is not.  Problem reported by Fedor
64318         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
64319
64320 2006-05-11  Simon Josefsson  <jas@extundo.com>
64321
64322         * m4/xvasprintf.m4: Fix obvious typo.
64323
64324 2006-05-11  Jim Meyering  <jim@meyering.net>
64325
64326         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
64327         James Lemley.
64328
64329 2006-05-10  Simon Josefsson  <jas@extundo.com>
64330
64331         * lib/md4.c: Typo fix, update copyright years.
64332         (K1, K2): Don't use L because it turn computations into 64-bit on
64333         64-bit platforms.
64334
64335 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
64336
64337         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
64338         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
64339         unwanted sign propagation, e.g., on hosts with 64-bit int.
64340         There still are some problems with reeelly weird theoretical hosts
64341         (e.g., 33-bit int) but it's not worth worrying about now.
64342         * lib/sha1.c (rol): Likewise.
64343         (K1, K2, K3, K4): Remove unnecessary L suffix.
64344
64345 2006-05-10  Bruno Haible  <bruno@clisp.org>
64346
64347         * lib/des.c: Cast to avoid warnings.
64348
64349 2006-05-09  Bruno Haible  <bruno@clisp.org>
64350
64351         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
64352         (Depends-on): Depend also on xsize, stdarg.
64353         (configure.ac): Add gl_XVASPRINTF.
64354
64355 2006-05-09  Bruno Haible  <bruno@clisp.org>
64356
64357         * m4/xvasprintf.m4: New file.
64358
64359 2006-05-09  Bruno Haible  <bruno@clisp.org>
64360
64361         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
64362         (EOVERFLOW): Define fallback value.
64363         (xstrcat): New function.
64364         (xvasprintf): Recognize the special case of a string concatenation.
64365
64366 2006-05-08  Eric Blake  <ebb9@byu.net>
64367
64368         * gnulib-tool (func_version): Base copyright year on CVS date.
64369         (func_emit_copyright_notice): New function.
64370         (func_emit_lib_Makefile_am): Use it.
64371         (func_emit_tests_Makefile_am): Likewise.
64372         (func_import): Likewise.
64373
64374 2006-05-08  Bruno Haible  <bruno@clisp.org>
64375
64376         * modules/stdarg: New file.
64377         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
64378
64379 2006-05-08  Bruno Haible  <bruno@clisp.org>
64380
64381         * m4/stdarg.m4: New file, from GNU gettext.
64382
64383 2006-05-08  Bruno Haible  <bruno@clisp.org>
64384
64385         * config/srclist.txt (build-aux/config.rpath): different from latest
64386         release.
64387
64388 2006-05-08  Bruno Haible  <bruno@clisp.org>
64389
64390         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
64391
64392 2006-05-05  Jim Meyering  <jim@meyering.net>
64393
64394         * m4/warning.m4: New file, derived from bison's file by the same name.
64395
64396 2006-05-03  Bruno Haible  <bruno@clisp.org>
64397
64398         * lib/stdint_.h: Shorter URL.
64399         * lib/inttypes.h: Likewise.
64400
64401 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64402
64403         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
64404
64405 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64406
64407         * lib/verify.h: Document the internals better.  Most of this change
64408         was written by Bruno Haible.
64409
64410 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64411
64412         * doc/verify.texi: New file, partly based on a proposal by
64413         Bruno Haible.
64414
64415 2006-05-02  Bruno Haible  <bruno@clisp.org>
64416
64417         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
64418         test from here...
64419         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
64420
64421 2006-04-29  Bruno Haible  <bruno@clisp.org>
64422
64423         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
64424         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
64425
64426 2006-04-29  Bruno Haible  <bruno@clisp.org>
64427
64428         * gnulib-tool: Make --update option actually work.
64429
64430 2006-04-29  Bruno Haible  <bruno@clisp.org>
64431
64432         * doc/gcd.texi: New file.
64433         * doc/gnulib.texi: Include it.
64434
64435 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
64436
64437         * lib/getdate.y (get_date): When adding relative date, start with the
64438         initial time, not with the result of the first mktime call.
64439
64440 2006-04-25  Bruno Haible  <bruno@clisp.org>
64441
64442         * gnulib-tool (func_import): Output the include directives in three
64443         blocks, sorted separately.
64444         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64445
64446 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
64447
64448         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
64449         to define main with arguments, for C++.  Reported by Eric Blake.
64450         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
64451         Prefer 'int main ()' to 'int main (void)', for C++.
64452         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
64453         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
64454         for 'main', for C99 and C++.
64455
64456 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
64457
64458         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
64459         Don't assume that exit status -1 is valid.
64460         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
64461         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
64462         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
64463         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
64464         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
64465         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
64466         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
64467         functions can be used without declaring them, or that you can
64468         exit with status -1.
64469         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
64470
64471 2006-04-24  Karl Berry  <karl@gnu.org>
64472
64473         * config/srclist.txt (longdouble.m4): sync lost.
64474
64475 2006-04-24  Eric Blake  <ebb9@byu.net>
64476
64477         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
64478
64479 2006-04-24  Bruno Haible  <bruno@clisp.org>
64480
64481         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
64482         poll() implementation in AIX.
64483         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64484
64485 2006-04-24  Bruno Haible  <bruno@clisp.org>
64486
64487         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
64488         assigned exactly once.
64489
64490 2006-04-23  Claudio Fontana  <claudio@gnu.org>
64491             Bruno Haible  <bruno@clisp.org>
64492
64493         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
64494         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
64495         for AM_CPPFLAGS.
64496
64497 2006-04-23  Bruno Haible  <bruno@clisp.org>
64498
64499         * modules/copy-file: Depend on unistd.
64500         * modules/execute: Likewise.
64501         * modules/fatal-signal: Likewise.
64502         * modules/findprog: Likewise.
64503         * modules/mkdtemp : Likewise.
64504         * modules/pipe: Likewise.
64505         * modules/wait-process: Likewise.
64506
64507 2006-04-23  Bruno Haible  <bruno@clisp.org>
64508
64509         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
64510         condition was already detected.
64511         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64512
64513 2006-04-23  Bruno Haible  <bruno@clisp.org>
64514
64515         * lib/copy-file.c: Include <unistd.h> unconditionally.
64516         * lib/execute.c: Likewise.
64517         * lib/fatal-signal.c: Likewise.
64518         * lib/findprog.c: Likewise.
64519         * lib/mkdtemp.c: Likewise.
64520         * lib/pipe.h: Likewise.
64521         * lib/pipe.c: Likewise.
64522         * lib/wait-process.h: Likewise.
64523
64524 2006-04-23  Bruno Haible  <bruno@clisp.org>
64525
64526         * gnulib-tool (func_usage): Fix --import description. Document
64527         --update.
64528         (func_import): Create temporary file in a temporary directory, if
64529         --dry-run is specified. Silence errors from 'grep' when there are no
64530         m4 files in $m4dir.
64531         (func_create_testdir): Silence errors from 'grep' when there are no
64532         m4 files in $m4dir.
64533         Reported by Karl Berry <karl@freefriends.org>.
64534
64535 2006-04-20  Bruno Haible  <bruno@clisp.org>
64536
64537         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
64538         one argument, so that the code will be portable to Autoconf 2.60.
64539         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
64540         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
64541         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
64542
64543 2006-04-19  Derek Price  <derek@ximbiot.com>
64544             Eric Blake  <ebb9@byu.net>
64545
64546         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
64547         rather than "/full/path.h".  Update comment to match.  Shorten &
64548         generalize m4_translit call via AS_TR_CPP.
64549
64550 2006-04-19  Derek Price  <derek@ximbiot.com>
64551             Eric Blake  <ebb9@byu.net>
64552
64553         * lib/inttypes.h: Correct grammar in comment.
64554
64555 2006-04-18  Derek Price  <derek@ximbiot.com>
64556             Paul Eggert  <eggert@cs.ucla.edu>
64557
64558         * modules/inttypes: New file.
64559         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
64560
64561 2006-04-18  Derek Price  <derek@ximbiot.com>
64562             Paul Eggert  <eggert@cs.ucla.edu>
64563
64564         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
64565         New files.
64566
64567 2006-04-18  Derek Price  <derek@ximbiot.com>
64568             Paul Eggert  <eggert@cs.ucla.edu>
64569
64570         * lib/inttypes.h: New file.
64571         * lib/strtoimax.c: Assume <inttypes.h>.
64572
64573 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
64574
64575         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
64576         isn't mounted.  Problem reported by Kir Kolyshkin.
64577
64578 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
64579
64580         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
64581         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
64582         Derek R. Price.
64583         * lib/regex.h (RE_DUP_MAX): Update comment to match current
64584         implementation.
64585
64586 2006-04-12  Eric Blake  <ebb9@byu.net>
64587
64588         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
64589         is now done automatically by the corresponding Autoconf macro.
64590
64591 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
64592
64593         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
64594         time_r.h.
64595
64596 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
64597
64598         Merge regex changes from libc, removing some of our
64599         POSIX-conformance changes that were rejected and redoing them in a
64600         less-intrusive way.
64601
64602         * lib/regcomp.c (re_compile_internal, init_dfa):
64603         Length arg is now size_t, not Idx.  All uses changed.
64604         (peek_token): Forward decl now says internal_function.
64605         (__re_error_msgid, __re_error_msgid_idx):
64606         Now static rather than extern with attribute_hidden.
64607         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
64608         For some reason libc prefers K&R style defns for external functions.
64609         (regerror) [!defined _LIBC]: Likewise.
64610         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
64611         (seek_collating_symbol_entry, lookup_collation_sequence_value):
64612         (build_range_exp, build_collating_symbol):
64613         Use K&R-style defn.
64614         (re_compile_fastmap): Use '\0' to memset, not 0.
64615         (utf8_sb_map): Make the calculations more obvious.
64616         (init_dfa, parse_bracket_exp, build_charclass_op):
64617         Call calloc and cast result, as glibc does.
64618         (init_word_char, fetch_token, peek_token, peek_token_bracket):
64619         (build_range_exp, build_collating_symbol):
64620         Now internal functions.
64621
64622         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
64623
64624         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
64625         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
64626         Don't depend on VMS; depend on __VMS instead, for POSIX
64627         namespace cleanness.
64628         (regoff_t): Define to ssize_t, not long int.
64629
64630         Remove the REG_ macros named below.  Instead, make the old names
64631         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
64632         __USE_GNU_REGEX.
64633         (REG_BACKSLASH_ESCAPE_IN_LISTS):
64634         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
64635         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
64636         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
64637         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
64638         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
64639         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
64640         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
64641         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
64642         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
64643         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
64644         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
64645         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
64646         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
64647         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
64648         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
64649         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
64650         (REG_NREGS):
64651         Remove.  All uses replaced by the old RE_* names.
64652         (RE_BACKSLASH_ESCAPE_IN_LISTS):
64653         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
64654         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
64655         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
64656         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
64657         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
64658         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
64659         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
64660         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
64661         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
64662         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
64663         Don't bother having these macros be independent of each others'
64664         values, since they no longer exist in the POSIX name space.
64665
64666         Rename the following member names back to their old names,
64667         unless !__USE_GNU_REGEX.  All uses changed back.
64668         (buffer): Renamed from re_buffer.
64669         (allocated): Renamed from re_allocated.
64670         (used): Renamed from re_used.
64671         (syntax): Renamed from re_syntax.
64672         (fastmap): Renamed from re_fastmap.
64673         (translate): Renamed from re_translate.
64674         (can_be_null): Renamed from re_can_be_null.
64675         (regs_allocated): Renamed from re_regs_allocated.
64676         (fastmap_accurate): Renamed from re_fastmap_accurate.
64677         (no_sub): Renamed from re_no_sub.
64678         (not_bol): Renamed from re_not_bol.
64679         (not_eol): Renamed from re_not_eol.
64680         (newline_anchor): Renamed from re_newline_anchor.
64681         (num_regs): Renamed from rm_num_regs.
64682         (start): Renamed from rm_start.
64683         (end): Renamed from rm_end.
64684
64685         (free_state): Move up a bit.
64686
64687         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
64688         #define to be empty.
64689         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
64690         when that is what is intended.
64691         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
64692         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
64693         (MAX): New macro.
64694         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
64695         All uses changed back to re_malloc, etc.  It's now the caller's
64696         responsibility to check for overflow; all callers changed.
64697         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
64698         (re_x2nrealloc): Remove.
64699         (free_state): Remove decl.
64700
64701         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
64702         (re_set_registers, re_exec):
64703         Use K&R-style defn.
64704
64705         2006-01-31  Roland McGrath  <roland@redhat.com>
64706
64707         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
64708         Reported by Mike Frysinger <vapier@gentoo.org>.
64709
64710         2006-01-15  Andreas Jaeger  <aj@suse.de>
64711
64712         [BZ #1950]
64713         * lib/regex_internal.c (re_string_reconstruct): Adjust for
64714         build_wcs_upper_buffer change.
64715         (build_wcs_upper_buffer): Change return type.
64716
64717         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
64718
64719         * lib/regex_internal.h: Include <stdint.h> if available.
64720
64721         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
64722
64723         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
64724
64725         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
64726
64727         * lib/regcomp.c: Adjust for changed secondary hash function.
64728
64729         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
64730
64731         * lib/regex.h: Pretty printing.
64732         Clean up namespace a bit.
64733
64734         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
64735
64736         * lib/regexec.c (update_cur_sifted_state, check_arrival,
64737         check_arrival_add_next_nodes): Avoid using uninitialized variable.
64738
64739         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
64740                     Ulrich Drepper  <drepper@redhat.com>
64741
64742         [BZ #1302]
64743         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
64744         changed.
64745         (bitset_word_t): Renamed from bitset_word.  All uses changed.
64746
64747         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
64748
64749         [BZ #281]
64750         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
64751         * lib/regcomp.c: Remove unnecessary uses of
64752         unsigned RE_TRANSLATE_TYPE.
64753         * lib/regex_internal.h: Likewise.
64754         * lib/regex_internal.c: Likewise.
64755         * lib/regexec.c: Likewise.
64756         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
64757
64758         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
64759
64760         * lib/regexec.c (find_recover_state): Remove unnecessary
64761         initialization.
64762         (transit_state_bkref): Make DFA a const pointer.
64763         (get_subexp): Likewise.
64764         (check_arrival): Likewise.
64765         (update_cur_sifted_state): Likewise.
64766         (re_search_internal): Likewise.
64767         (prune_impossible_nodes): Likewise.
64768         (acquire_init_state_context): Likewise.
64769         (proceed_next_node): Likewise.
64770         (set_regs): Likewise.
64771         (free_fail_stack_return): Likewise.
64772         (check_arrival_expand_ecl): Mark DFA parameter as const.
64773         (check_arrival_expand_ecl_sub): Likewise.
64774         (check_subexp_limits): Likewise.
64775         (sub_epsilon_src_nodes):  Likewise.
64776         (add_epsilon_src_nodes):  Likewise.
64777         (merge_state_array): Likewise.
64778         (update_regs): Likewise.
64779         (build_trtable): Likewise.
64780         (sift_states_backward): Mark MCTX parameter as const.
64781         (build_sifted_states): Likewise.
64782         (update_cur_sifted_state): Likewise.
64783         (sift_states_mkref): Likewise.
64784         (check_arrival_expand_ecl): Mark eclosure as const.
64785         (check_dst_limits_calc_pos_1): Likewise.
64786         * lib/regex_internal.h (re_match_context_t): Make dfa a const
64787         pointer.
64788
64789         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
64790
64791         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
64792         (transit_state_sb): Likewise.
64793         (transit_state_mb): Likewise.
64794         (sift_states_iter_mb): Likewise.
64795         (check_arrival_add_next_nodes): Likewise.
64796         (check_node_accept_bytes): Change first parameter to pointer-to-const.
64797         [_LIBC] (re_search_2_stub): Use mempcpy.
64798
64799         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
64800         mbrtowc for very simple UTF-8 case.
64801
64802         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
64803         a pointer-to-const.
64804         (re_acquire_state_context): Likewise.
64805         * lib/regex_internal.h: Adjust prototypes.
64806
64807         * lib/regex.c: Prevent using C++ compilers.
64808
64809         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
64810         (re_acquire_state_context): Likewise.
64811
64812 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
64813
64814         * modules/regex (Depends-on): Add ssize_t.
64815
64816 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
64817
64818         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
64819         translation table.
64820
64821 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
64822
64823         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
64824
64825 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
64826             Bruno Haible  <bruno@clisp.org>
64827
64828         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
64829         <sys/types.h> and <inttypes.h>.
64830
64831 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64832
64833         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
64834         `__error_t_defined', so argp.h will not typedef the former.
64835
64836 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
64837
64838         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
64839         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
64840         glibc names.  Even if glibc is changed to conform to POSIX, the
64841         traditional names will be available anyway, since regex depends on
64842         the extensions module.  Also, fix a longstanding typo in the
64843         implementation of Spencer ERE test #75 from grep 2.3.  Problems
64844         reported by Emanuele Giaquinta.  Also, change sense of cached
64845         variable, so that the message makes sense.
64846
64847 2006-03-24  Simon Josefsson  <jas@extundo.com>
64848
64849         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
64850         including some doc fixes.
64851         (base64_encode_alloc): Fix +1 bug on allocation failures.
64852
64853 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64854
64855         * lib/base64.c (base64_encode): Do not read past end of array with
64856         unsanitized input on systems with CHAR_BIT > 8.
64857
64858 2006-03-24  Eric Blake  <ebb9@byu.net>
64859
64860         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
64861
64862 2006-03-22  Karl Berry  <karl@gnu.org>
64863
64864         * config/srclist.txt (*setenv.[ch]): get from coreutils.
64865         * config/srclistvars.sh (COREUTILS): new var.
64866
64867 2006-03-17  Jim Meyering  <jim@meyering.net>
64868
64869         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
64870         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
64871
64872 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
64873
64874         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
64875         no longer needs it.  Instead, check that regoff_t is as least
64876         as wide as ptrdiff_t.
64877
64878         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
64879         so that our regex.h stays compatible with the installed regex.
64880         This is helpful for installers who configure --without-included-regex.
64881         Problem reported by Emanuele Giaquinta.
64882
64883 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
64884
64885         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
64886         Typedef to long int, not to off_, as POSIX will likely change
64887         in that direction.
64888
64889 2006-03-15  Eric Blake  <ebb9@byu.net>
64890
64891         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
64892
64893 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
64894
64895         * lib/argp-help.c (validate_uparams): Fix typo
64896         * lib/argp-parse.c (argp_default_options): Consistently begin help
64897         messages with a lowercase letter.
64898
64899 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
64900
64901         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
64902         overrun buffers and shouldn't be used (much as gets shouldn't be
64903         used).
64904         * lib/time_r.c (asctime_r, ctime_r): Likewise.
64905
64906 2006-03-08  Simon Josefsson  <jas@extundo.com>
64907
64908         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
64909         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64910
64911 2006-03-08  Simon Josefsson  <jas@extundo.com>
64912
64913         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
64914         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64915
64916 2006-03-08  Simon Josefsson  <jas@extundo.com>
64917
64918         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
64919         signal that configure disabled the device.
64920
64921 2006-03-08  Simon Josefsson  <jas@extundo.com>
64922
64923         * build-aux/maint.mk: Fix refresh-po, to handle no translated
64924         languages.
64925
64926 2006-03-07  Simon Josefsson  <jas@extundo.com>
64927
64928         * modules/getopt (Depends-on): Add unistd.
64929
64930         * modules/unistd: New file.
64931
64932 2006-03-07  Simon Josefsson  <jas@extundo.com>
64933
64934         * modules/gc-random: New file.
64935
64936 2006-03-07  Simon Josefsson  <jas@extundo.com>
64937
64938         * m4/unistd_h.m4: New file.
64939
64940 2006-03-07  Simon Josefsson  <jas@extundo.com>
64941
64942         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
64943         test to be side-effect free by storing the result in the cache
64944         variable gl_cv_lib_readline, and moving the assignment of
64945         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
64946         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64947
64948 2006-03-07  Simon Josefsson  <jas@extundo.com>
64949
64950         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
64951         error on missing devices (the functions will return an error).
64952
64953         * m4/gc.m4: Move random stuff to gc-random.m4
64954
64955 2006-03-07  Simon Josefsson  <jas@extundo.com>
64956
64957         * lib/unistd_.h: New file.
64958
64959 2006-03-07  Simon Josefsson  <jas@extundo.com>
64960
64961         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
64962
64963 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
64964
64965         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
64966         Problem reported by Juan Manuel Guerrero.
64967
64968 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
64969
64970         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
64971         the unistd module.
64972         * lib/getlogin_r.c: Likewise.
64973         * lib/getlogin_r.h: Likewise.
64974         * lib/glob.c: Likewise.
64975         * lib/pagealign_alloc.c: Likewise.
64976         * lib/unistd_.h: Remove; no longer needed.
64977
64978 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
64979
64980         * MODULES.html.sh (Support for systems lacking POSIX:2001):
64981         Add unistd.
64982         * modules/c-stack (Depends-on): Add unistd.
64983         * modules/getlogin_r: Likewise.
64984         * modules/glob: Likewise.
64985         * modules/pagealign_alloc: Likewise.
64986         * modules/unistd (Files): Remove lib/unistd_.h.
64987         (EXTRA_DIST): Remove.
64988         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
64989         need unistd_.h.
64990         (MOSTLYCLEANFILES): Remove unistd.h-t.
64991
64992 2006-03-03  Simon Josefsson  <jas@extundo.com>
64993
64994         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
64995
64996 2006-03-03  Simon Josefsson  <jas@extundo.com>
64997
64998         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
64999         libidn and bison.
65000
65001 2006-03-03  Simon Josefsson  <jas@extundo.com>
65002
65003         * build-aux/maint.mk: Add indent target.
65004
65005 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
65006
65007         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
65008         our replacement poll.h in any case, to avoid a differing
65009         declaration from a system header.  Seen on AIX.
65010
65011 2006-03-01  Simon Josefsson  <jas@extundo.com>
65012
65013         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
65014         <kasal@ucw.cz>.
65015
65016 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
65017
65018         * modules/gettime (Depends-on): Add extensions module.
65019         * modules/nanosleep (Depends-on): Likewise.
65020         * modules/settime (Depends-on): Likewise.
65021
65022 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
65023
65024         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
65025         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
65026         pedantically.
65027         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
65028         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
65029
65030         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
65031         not "==".  Reported by Ralf Wildenhues.
65032
65033 2006-03-01  Karl Berry  <karl@gnu.org>
65034
65035         * doc/Copyright/request-*: new files, synced from gnuorg.
65036
65037 2006-03-01  Karl Berry  <karl@gnu.org>
65038
65039         * config/srclist.txt (Copyright/*): new entries.
65040
65041 2006-02-28  Simon Josefsson  <jas@extundo.com>
65042
65043         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
65044
65045 2006-02-27  Simon Josefsson  <jas@extundo.com>
65046
65047         * lib/base64.h: Indent #define's.  From Jim Meyering
65048         <jim@meyering.net>.
65049
65050 2006-02-27  Jim Meyering  <jim@meyering.net>
65051
65052         Revert the change of 2006-02-24, so these files can continue
65053         to be sync'd from gettext.
65054         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
65055         of `config.h'.
65056
65057 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
65058
65059         * modules/intprops: New file.
65060         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
65061         Add intprops.
65062         * modules/getloadavg (Files): Remove lib/intprops.h.
65063         (Depends-on): Add intprops.
65064         * modules/human: Likewise.
65065         * modules/inttostr: Likewise.
65066         * modules/openat: Likewise.
65067         * modules/sig2str: Likewise.
65068         * modules/userspec: Likewise.
65069         * modules/utimecmp: Likewise.
65070         * modules/xnanosleep: Likewise.
65071         * modules/xstrtol: Likewise.
65072
65073 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
65074
65075         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
65076         * modules/lock-tests (TESTS): Use $(EXEEXT).
65077         * modules/tls-tests: Likewise.
65078         * modules/argp-tests: Likewise.
65079         (check_PROGRAMS): New var, replacing...
65080         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
65081
65082 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65083
65084         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
65085         `config.h'.
65086
65087 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
65088
65089         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
65090
65091 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65092
65093         Sync from coreutils.
65094         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
65095         gl_CHDIR_SAFER.
65096
65097 2006-02-22  Jim Meyering  <jim@meyering.net>
65098
65099         Sync from coreutils.
65100         * m4/chdir-safer.m4: New file.
65101
65102 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
65103
65104         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
65105         AT_FDCWD exceeds INT_MAX.
65106         * lib/openat.h (AT_FDCWD): Likewise.
65107
65108 2006-02-17  Eric Blake  <address@hidden>
65109
65110         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
65111
65112 2006-02-16  Simon Josefsson  <jas@extundo.com>
65113
65114         * modules/getaddrinfo (Depends-on): Add sys_socket.
65115
65116 2006-02-15  Simon Josefsson  <jas@extundo.com>
65117
65118         * build-aux/maint.mk: Add dsyntax-check rule.
65119
65120 2006-02-15  Eric Blake  <ebb9@byu.net>
65121
65122         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
65123         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
65124         'present but cannot compile' warnings on cygwin.
65125         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
65126         use ws2tcpip.h if sys/socket.h works.
65127         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
65128         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
65129
65130 2006-02-14  Simon Josefsson  <jas@extundo.com>
65131
65132         * modules/maintainer-makefile (Files): Rename.
65133
65134         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
65135         and (the local) Makefile.cfg to maint-cfg.mk.
65136
65137         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
65138         to the latter.
65139
65140         * modules/maintainer-makefile: New module.
65141
65142         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
65143         severaly stripped to make it possible to build it up from scratch
65144         with reliable tests.
65145
65146         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
65147         fixes to permit overriding the default actions when configure and
65148         makefile are not available.
65149
65150 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
65151
65152         Sync from coreutils.
65153         * modules/lstat (Depends-on): Don't depend on xalloc.
65154         (License): Change from GPL to LGPL, since this is now simply a
65155         replacement for a libc function.
65156
65157 2006-02-14  Jim Meyering  <jim@meyering.net>
65158
65159         Sync from coreutils.
65160
65161         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
65162         failure on deficient systems, and simplify gnulib lgpl dependencies.
65163         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
65164         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
65165
65166         * lib/xalloc-die.c: Remove unused definition of N_.
65167
65168 2006-02-14  Jim Meyering  <jim@meyering.net>
65169
65170         Sync from coreutils.
65171         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
65172         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
65173         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
65174         double-quote uses of that variable, to accommodate the rare case in
65175         which getmntent is available in none of the libraries checked.  This
65176         happens at least on FreeBSD 5.0.
65177
65178 2006-02-13  Simon Josefsson  <jas@extundo.com>
65179
65180         * gnulib-tool (Usage): Fix --import, from
65181         karl@freefriends.org (Karl Berry).
65182
65183 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
65184
65185         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
65186
65187 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
65188
65189         * lib/argp-namefrob.h: Restore changes accidentally lost during the
65190         "autoupdate" on 2005-12-12.
65191
65192 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
65193
65194         * modules/closeout (Depends-on): Remove atexit.
65195
65196 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
65197
65198         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
65199         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
65200
65201 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
65202
65203         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
65204         __EXTENSIONS__ if this causes compilation to fail.  Problem
65205         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
65206         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
65207
65208 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
65209
65210         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
65211         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
65212         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
65213         All uses changed.
65214
65215 2006-01-26  Simon Josefsson  <jas@extundo.com>
65216
65217         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
65218         prototype is visible on mingw32.
65219
65220         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
65221         for mingw32.
65222
65223         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
65224         mingw32).
65225
65226 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
65227
65228         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
65229         attempt to open for write; this always fails, at least on POSIX
65230         hosts.  This reinstates the 2006-01-09 change, which was
65231         inadvertently removed.
65232
65233 2006-01-26  Bruno Haible  <bruno@clisp.org>
65234
65235         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
65236         Reported by Paul Eggert.
65237
65238 2006-01-26  Bruno Haible  <bruno@clisp.org>
65239             Paul Eggert  <eggert@cs.ucla.edu>
65240
65241         * lib/stdbool_.h (_Bool)
65242         [(! (defined __cplusplus || defined __BEOS__)
65243           && !defined __GNUC__
65244           && !(defined __HP_cc || defined __xlc__
65245                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
65246                || defined __sgi))]:
65247         #define to signed char in these cases too; this simplifies
65248         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
65249         etc., separately) and makes it more conservative.
65250
65251 2006-01-25  Simon Josefsson  <jas@extundo.com>
65252
65253         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
65254         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
65255         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
65256
65257 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
65258
65259         * lib/argp-namefrob.h: Bugfix. Remove stray #
65260
65261 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
65262
65263         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
65264         so that we test the test.
65265         Check for yet another HP-UX cc bug involving *bool |= bool.
65266
65267 2006-01-25  Karl Berry  <karl@gnu.org>
65268
65269         * config/srclist.txt (vasnprintf.c): sync lost.
65270
65271 2006-01-25  Jim Meyering  <jim@meyering.net>
65272
65273         Sync from the stable (b5) branch of coreutils:
65274
65275         * lib/fts.c (fts_children): Don't let close() clobber errno from
65276         failed fchdir().
65277
65278         * lib/fts.c (fts_stat): When following a symlink-to-directory,
65279         don't necessarily interpret stat-fails+lstat-succeeds as indicating
65280         a dangling symlink.  That can also happen at least for ELOOP.
65281         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
65282         FYI, this bug predates the inclusion of fts.c in coreutils.
65283
65284         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
65285         in their own block, so pre-c99 compilers don't object.
65286
65287         Avoid the double-free (first in fts_read, second in fts_close) that
65288         would occur when an `active' directory is made inaccessible (e.g.,
65289         via chmod a-x) during a traversal.
65290         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
65291         before returning.  Reproduce this failure by
65292         mkdir -p a/b; cd a; chmod a-x . b
65293         Reported by Stavros Passas.
65294
65295 2006-01-25  Jim Meyering  <jim@meyering.net>
65296
65297         * lib/fileblocks.c: Remove more useless parentheses.
65298         * lib/readutmp.h: Likewise.
65299
65300 2006-01-25  Bruno Haible  <bruno@clisp.org>
65301
65302         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
65303         warnings.
65304         Reported by Paul Eggert.
65305
65306 2006-01-25  Bruno Haible  <bruno@clisp.org>
65307
65308         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
65309         rid of a trap command. For Solaris sh.
65310         Reported by Mark D. Baushke <mdb@gnu.org>.
65311
65312 2006-01-24  Simon Josefsson  <jas@extundo.com>
65313
65314         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
65315         Bruno.
65316
65317 2006-01-24  Karl Berry  <karl@gnu.org>
65318
65319         * config/srclist.txt (argp-namefrob.h): sync lost.
65320
65321 2006-01-24  Jim Meyering  <jim@meyering.net>
65322
65323         * modules/openat (Files): Add lib/intprops.h.
65324         From Mark D. Baushke.
65325
65326 2006-01-24  Jim Meyering  <jim@meyering.net>
65327
65328         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
65329         Reported by Mark D. Baushke.
65330
65331 2006-01-24  Jim Meyering  <jim@meyering.net>
65332
65333         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
65334
65335 2006-01-24  Bruno Haible  <bruno@clisp.org>
65336
65337         * modules/strnlen (Maintainer): Change from glibc to all.
65338
65339 2006-01-24  Bruno Haible  <bruno@clisp.org>
65340
65341         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
65342         Patch by Paul Eggert.
65343
65344 2006-01-24  Bruno Haible  <bruno@clisp.org>
65345
65346         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
65347         already has it.
65348         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
65349         2005-11-26.
65350
65351         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
65352         'signed char' to avoid problems with the built-in _Bool type.
65353         Reported by Paul Eggert on 2005-11-26.
65354
65355 2006-01-24  Bruno Haible  <bruno@clisp.org>
65356
65357         * gnulib-tool (func_import): Avoid constructing complicated sed
65358         expressions inside backquote.
65359         Report and solution by Mark D. Baushke <mdb@gnu.org>.
65360
65361 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
65362
65363         These changes imported from libc.
65364         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
65365         test and two separate function calls.
65366         * lib/strndup.c (__strndup): Add libc_hidden_def.
65367
65368 2006-01-23  Simon Josefsson  <jas@extundo.com>
65369
65370         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
65371         Remove the test_*_SOURCES variable: automake infers it by default.
65372         * modules/tls-tests: Likewise.
65373
65374 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65375
65376         Work around porting bugs reported by Dieter in
65377         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
65378         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
65379         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
65380         Include "getopt.h" first, to check interface.
65381         (getenv): Declare only if defined HAVE_DECL_GETENV &&
65382         !HAVE_DECL_GETENV.
65383         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
65384         (__strndup): Revert to K&R-style function dfns, the glibc style.
65385         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
65386         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
65387         Include strnlen.h first, to get prototype properly.
65388         (strnlen): Renamed from __strnlen.
65389         Remove weak alias.
65390
65391 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65392
65393         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
65394
65395 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65396
65397         * config/srclist.txt: Adjust to reflect glibc reorganization.
65398         This affects only comments.
65399
65400 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
65401
65402          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
65403          Reported by Bruce Korb <bkorb@gnu.org>.
65404
65405 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
65406
65407         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
65408         to pacify gcc -Wswitch-default.
65409
65410 2006-01-22  Bruno Haible  <bruno@clisp.org>
65411
65412         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
65413         temporary buffer for sprintf, take into account the precision also
65414         for 'd', 'i', 'u', 'o', 'x', 'X'.
65415
65416 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
65417
65418         * modules/argp-tests: New module
65419         * tests/test-argp.c: New file
65420         * tests/test-argp-2.sh: New file
65421
65422 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
65423
65424         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
65425         (__argp_base_name): Removed
65426         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
65427         typo.
65428         (__argp_base_name): Provide macro definition or extern declaration
65429         depending on the configuration
65430
65431 2006-01-20  Simon Josefsson  <jas@extundo.com>
65432
65433         * modules/inet_ntop (Depends-on): Depend on sys_socket.
65434
65435 2006-01-20  Simon Josefsson  <jas@extundo.com>
65436
65437         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
65438
65439 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
65440
65441         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
65442         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
65443         Suggested by Bruno Haible.
65444
65445 2006-01-20  Karl Berry  <karl@gnu.org>
65446
65447         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
65448         until changes propagate, I guess.
65449
65450 2006-01-19  Simon Josefsson  <jas@extundo.com>
65451
65452         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
65453
65454 2006-01-19  Simon Josefsson  <jas@extundo.com>
65455
65456         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
65457
65458 2006-01-19  Simon Josefsson  <jas@extundo.com>
65459
65460         * gnulib-tool: Set check_PROGRAMS.
65461
65462         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
65463         modules/des-tests, modules/gc-arcfour-tests,
65464         modules/gc-arctwo-tests, modules/gc-des-tests,
65465         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
65466         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
65467         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
65468         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
65469         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
65470         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
65471         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
65472         test_*_SOURCES.
65473
65474 2006-01-18  Simon Josefsson  <jas@extundo.com>
65475
65476         * modules/socklen (Depends-on): Depend on sys_socket.
65477
65478 2006-01-18  Simon Josefsson  <jas@extundo.com>
65479
65480         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
65481         modules/des-tests, modules/gc-arcfour-tests,
65482         modules/gc-arctwo-tests, modules/gc-des-tests,
65483         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
65484         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
65485         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
65486         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
65487         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
65488         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
65489         $(EXEEXT) to automake TESTS variable, for mingw32.
65490
65491 2006-01-17  Simon Josefsson  <jas@extundo.com>
65492
65493         * modules/socklen (Include): Need sys/socket.h.
65494
65495 2006-01-17  Bruno Haible  <bruno@clisp.org>
65496
65497         * modules/ssize_t (Include): Add <sys/types.h>.
65498
65499 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
65500
65501         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
65502         it's not portable and it doesn't work with cross-compiles.
65503         Problem reported by Bruno Haible.  Fix missing-$ typo in
65504         'test "gl_cv_ignore_unused_libraries" ...' that prevented
65505         -zignore from being used with Sun's C compiler.
65506
65507 2006-01-12  Simon Josefsson  <jas@extundo.com>
65508
65509         * lib/base64.c: Fix warning, reported by Bruno Haible
65510         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
65511
65512 2006-01-12  Bruno Haible  <bruno@clisp.org>
65513
65514         * modules/ldd: New file.
65515         * build-aux/ldd.sh.in: New file.
65516         * MODULES.html.sh (Support for building libraries and executables): Add
65517         ldd.
65518
65519 2006-01-12  Bruno Haible  <bruno@clisp.org>
65520
65521         * m4/ldd.m4: New file.
65522
65523 2006-01-12  Bruno Haible  <bruno@clisp.org>
65524
65525         * gnulib-tool (func_import, func_create_testdir): Don't go into an
65526         endless loop while replacing $auxdir with build-aux.
65527
65528 2006-01-11  Simon Josefsson  <jas@extundo.com>
65529
65530         * lib/stdint_.h (SIZE_MAX): Add missing (.
65531
65532 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
65533
65534         Sync from coreutils.
65535         * lib/md5.c: Fix commentary typos.
65536         (alignof, UNALIGNED_P): No need for a GCC-specific version.
65537         * lib/md5.h (__attribute__): Remove; unused.
65538         * lib/sha1.c: Fix commentary to match md5 better.
65539         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
65540         so that we don't need to worry about alignment.  All uses changed.
65541         This merges the 2005-10-28 md5 change into sha1.
65542
65543 2006-01-11  Jim Meyering  <jim@meyering.net>
65544
65545         Sync from coreutils.
65546         * lib/md5.c (OP): Fix spacing.
65547
65548 2006-01-11  Bruno Haible  <bruno@clisp.org>
65549
65550         Ensure automatic ordering between gl_LOCK and gl_ARGP.
65551         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
65552         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
65553
65554 2006-01-11  Bruno Haible  <bruno@clisp.org>
65555
65556         Ensure automatic ordering between gl_LOCK and gl_ARGP.
65557         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
65558         the "early" section as well.
65559
65560 2006-01-11  Bruno Haible  <bruno@clisp.org>
65561
65562         Avoid "ar: no archive members specified" error on MacOS X.
65563         * gnulib-tool (func_modules_add_dummy): New function.
65564         (func_import, func_create_testdir): Invoke it.
65565
65566 2006-01-11  Bruno Haible  <bruno@clisp.org>
65567
65568         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
65569         with $auxdir in AC_CONFIG_FILES statements.
65570
65571 2006-01-11  Bruno Haible  <bruno@clisp.org>
65572
65573         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65574         Initialize also noinst_HEADERS to empty.
65575
65576 2006-01-11  Bruno Haible  <bruno@clisp.org>
65577
65578         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
65579         variables.
65580         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
65581         autoreconf.
65582
65583 2006-01-11  Bruno Haible  <bruno@clisp.org>
65584
65585         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
65586         overridable by the user.
65587         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65588
65589 2006-01-10  Simon Josefsson  <jas@extundo.com>
65590
65591         * modules/sys_socket: New file.
65592
65593 2006-01-10  Simon Josefsson  <jas@extundo.com>
65594
65595         * m4/sys_socket_h.m4: New file.
65596
65597 2006-01-10  Simon Josefsson  <jas@extundo.com>
65598
65599         * lib/socket_.h: New file.
65600
65601 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65602
65603         * modules/readutmp (Maintainer): Add myself.
65604
65605 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65606
65607         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
65608         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
65609         People who are still concerned with buggy memcmp implementations
65610         can invoke gl_FUNC_MEMCMP themselves.
65611
65612 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65613
65614         * lib/regex_internal.h (BITSET_WORD_BITS):
65615         Work around a bug in 64-bit PGC (before version 6.1-2), where the
65616         preprocessor mishandles large unsigned values as if they were signed.
65617         Problem reported by Claudio Fontana in
65618         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
65619
65620 2006-01-10  Jim Meyering  <jim@meyering.net>
65621
65622         Avoid the double-free (first in fts_read, second in fts_close) that
65623         would occur when an `active' directory is made inaccessible (e.g.,
65624         via chmod a-x) during a traversal.
65625         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
65626         before returning.  Reproduce this failure by
65627         mkdir -p a/b; cd a; chmod a-x . b
65628         Reported by Stavros Passas.
65629
65630         Sync from coreutils.
65631         * lib/sha1.c: Tweak grammar in a comment.
65632
65633 2006-01-10  Jim Meyering  <jim@meyering.net>
65634
65635         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
65636         Patch by Joerg Sonnenberger.
65637
65638 2006-01-10  Bruno Haible  <bruno@clisp.org>
65639
65640         * modules/readutmp: Depend on module free.
65641         * modules/strtok_r: Depend on module restrict.
65642
65643 2006-01-10  Bruno Haible  <bruno@clisp.org>
65644
65645         * modules/gettext (configure.ac): Add an invocation of
65646         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
65647
65648 2006-01-10  Bruno Haible  <bruno@clisp.org>
65649
65650         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
65651         Reported by Werner Lemberg <wl@gnu.org>.
65652
65653 2006-01-10  Bruno Haible  <bruno@clisp.org>
65654
65655         * lib/localcharset.c: Update from GNU gettext.
65656
65657 2006-01-10  Bruno Haible  <bruno@clisp.org>
65658
65659         * lib/argp.h (__const): Remove macro. Use const instead.
65660         * lib/argp-fmtstream.h (__const): Likewise.
65661         * lib/glob_.h (__const): Remove macro.
65662         * lib/glob-libc.h: Use const instead of __const.
65663
65664 2006-01-10  Bruno Haible  <bruno@clisp.org>
65665
65666         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
65667         variable.
65668         Needed to avoid an automake error regarding the 'gettext' module.
65669
65670 2006-01-09  Simon Josefsson  <jas@extundo.com>
65671
65672         * modules/inet_ntop (Depends-on): Add restrict.
65673
65674 2006-01-09  Simon Josefsson  <jas@extundo.com>
65675
65676         * modules/gc-rijndael-tests (License): Put under LGPL.
65677
65678         * modules/gc-des-tests (License): Likewise.
65679
65680         * modules/gc-arcfour-tests (License): Likewise.
65681
65682         * modules/gc-arctwo-tests (License): Likewise.
65683
65684         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
65685
65686         * modules/gc-hmac-sha1-tests (Files): Likewise.
65687
65688         * modules/gc-hmac-md5-tests (License): Likewise.
65689
65690         * modules/gc-sha1-tests (License): Likewise.
65691
65692         * modules/gc-md5-tests (License): Likewise.
65693
65694         * modules/gc-md4-tests (License): Likewise.
65695
65696         * modules/gc-md2-tests (License): Likewise.
65697
65698         * modules/gc-tests (License): Likewise.
65699
65700         * modules/des-tests (License): Likewise.
65701
65702         * modules/md4-tests (License): Likewise.
65703
65704         * modules/md2-tests (License): Likewise.
65705
65706 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
65707
65708         Sync from coreutils:
65709
65710         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
65711         * modules/lib-ignore: New file.
65712         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
65713         chdir-safer.m4, lchmod.m4.
65714         * modules/openat: Add mkdirat.c, openat-priv.h.
65715
65716 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
65717
65718         Sync from coreutils.
65719         * m4/lib-ignore.m4: New file.
65720         * m4/lchmod.m4: New file.
65721
65722 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
65723
65724         Sync from coreutils.
65725         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
65726         for write access: POSIX says that must fail.
65727         * lib/fts.c (diropen): Likewise.
65728         * lib/save-cwd.c (save_cwd): Likewise.
65729         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
65730         well, for minor improvements on hosts that lack O_DIRECTORY.
65731         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
65732         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
65733         Fall back on chown if open failed with EACCES.
65734
65735         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
65736         Report an error at compile-time if only a 1-second nominal clock
65737         resolution is found.
65738
65739         * lib/lchmod.h: New file.
65740         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
65741         (make_dir_parents): Use lchown rather than chown, and
65742         lchmod rather than chmod.
65743
65744         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
65745         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
65746         "proc" reported by n0dalus.
65747
65748         * lib/mountlist.c: Include <limits.h>.
65749         (dev_from_mount_options)
65750         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
65751         New function.  It no longer assumes "dev=" has the System V meaning
65752         on Linux (since it doesn't).  It also parses "dev=" more carefully.
65753         (read_file_system_list)
65754         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
65755         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
65756         dev= in that case.
65757
65758         * lib/posixtm.h (PDS_PRE_2000): New macro.
65759         * lib/posixtm.c (year): Arg is now syntax_bits rather than
65760         allow_century.  All usages changed.  Reject dates outside the range
65761         1969-1999 if PDS_PRE_2000 is used.
65762
65763 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
65764
65765         Sync from coreutils.
65766         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
65767         (Time of day items): Mention the possibility of leap seconds.
65768         Problem reported by Dr. David Alan Gilbert.
65769
65770 2006-01-09  Jim Meyering  <jim@meyering.net>
65771
65772         Sync from coreutils.
65773
65774         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
65775
65776         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
65777
65778         * lib/modechange.c (mode_compile): Reject an invalid mode string
65779         that starts with an octal digit.  From Andreas Gruenbacher.
65780
65781         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
65782         and dup to open_safer and dup_safer, respectively.
65783         (openat_permissive): Fix typo in comment.
65784
65785         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
65786         "gettext.h"; either no longer needed or are guaranteed by openat.h.
65787         (_): Remove; no longer needed.
65788         (openat): Renamed from rpl_openat; no need for rpl_openat
65789         since openat.h renames openat for us.
65790         Replace most of the body with a call to openat_permissive,
65791         to avoid duplicate code.
65792         Port to (probably hypothetical) environments were mode_t is
65793         wider than int.
65794         (openat_permissive): Require mode arg, so that we can check
65795         types better.  Put it just after flags.  Change cwd failure
65796         indicator from pointer-to-bool to pointer-to-errno-value.
65797         All callers changed.
65798         Invoke openat_save_fail and/or openat_restore_fail if
65799         cwd_errno is null, so that openat can call us.
65800         (openat_permissive, fdopendir, fstatat, unlinkat):
65801         Simplify errno handling to avoid some duplicate code,
65802         as it's OK to set errno on success.
65803         * lib/openat.h: Revamp code so that function macros depend on
65804         __OPENAT_PREFIX only, not also on AT_FDCWD.
65805         (openat_ro): Remove.  Caller changed to use openat_permissive.
65806         (openat_permissive): Now a macro, if not a function.
65807         (openat_restore_fail, openat_save_fail): Now always functions,
65808         since mkdirat needs them even if __OPENAT_PREFIX is defined.
65809
65810         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
65811         and openat.c.
65812         * lib/mkdirat.c: Include openat-priv.h.
65813         Remove definitions of macros defined therein.
65814         * lib/openat.c: Likewise.
65815
65816         * lib/mkdirat.c (mkdirat): New file and function.
65817         * lib/openat.h (mkdirat): Declare.
65818
65819         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
65820
65821         * lib/openat.h (openat_permissive): Declare.
65822         (openat_ro): Define.
65823
65824         * lib/openat.c (EXPECTED_ERRNO): New macro.
65825         (openat_permissive): New function -- used in remove.c rewrite.
65826         (all functions): Set errno just before returning, only if there
65827         was an actual failure.
65828         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
65829
65830         Emulate openat-family functions using Linux's procfs, if possible.
65831         Idea and some code based on Ulrich Drepper's glibc changes.
65832
65833         * lib/openat.c: (BUILD_PROC_NAME): New macro.
65834         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
65835         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
65836         before falling back on save_cwd and restore_cwd.
65837         (fdopendir, fstatat, unlinkat): Likewise.
65838
65839         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
65840         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
65841
65842         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
65843         as second argument to va_arg.  Otherwise, some versions of gcc
65844         warn that `if this code is reached, the program will abort'.
65845
65846 2006-01-09  Jim Meyering  <jim@meyering.net>
65847
65848         Sync from coreutils.
65849         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
65850         Require openat-priv.h.
65851
65852 2006-01-09  Bruno Haible  <bruno@clisp.org>
65853
65854         * modules/strnlen (Include): Use strnlen.h.
65855
65856 2006-01-09  Bruno Haible  <bruno@clisp.org>
65857
65858         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
65859
65860 2006-01-09  Bruno Haible  <bruno@clisp.org>
65861
65862         * lib/sysexit_.h (EX_OK): New macro.
65863         Suggested by Martin Lambers <marlam@marlam.de>.
65864
65865 2006-01-09  Bruno Haible  <bruno@clisp.org>
65866
65867         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
65868         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
65869
65870 2006-01-09  Bruno Haible  <bruno@clisp.org>
65871
65872         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
65873         numbers.
65874
65875 2006-01-09  Bruno Haible  <bruno@clisp.org>
65876
65877         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
65878         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
65879         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
65880         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
65881
65882 2006-01-09  Bruno Haible  <bruno@clisp.org>
65883
65884         * build-aux/javacomp.sh.in: New file, moved from lib/.
65885         * modules/javacomp-script (Files): Update.
65886         (configure.ac): Add AC_CONFIG_FILES invocation.
65887         (EXTRA_DIST): Remove variable.
65888
65889         * build-aux/javaexec.sh.in: New file, moved from lib/.
65890         * modules/javaexec (Files): Update.
65891         (configure.ac): Add AC_CONFIG_FILES invocation.
65892         (EXTRA_DIST): Remove javaexec.sh.in.
65893
65894         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
65895         * modules/csharpcomp-script (Files): Update.
65896         (configure.ac): Add AC_CONFIG_FILES invocation.
65897         (EXTRA_DIST): Remove variable.
65898
65899         * build-aux/csharpexec.sh.in: New file, moved from lib/.
65900         * modules/csharpexec (Files): Update.
65901         (configure.ac): Add AC_CONFIG_FILES invocation.
65902         (EXTRA_DIST): Remove csharpexec.sh.in.
65903
65904 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
65905
65906         Sync from coreutils.
65907
65908         Add POSIX ACL support
65909         * lib/acl.h (copy_acl, set_acl): Add declarations.
65910         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
65911         systems other than Linux.
65912         (chmod_or_fchmod): New function: use fchmod when possible,
65913         and chmod otherwise.
65914         (file_has_acl): Add a POSIX ACL implementation, with a
65915         Linux-specific subcase.
65916         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
65917         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
65918         acls are unsupported.
65919         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
65920         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
65921         are unsupported.
65922
65923 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
65924
65925         Sync from coreutils.
65926         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
65927
65928 2006-01-07  Bruno Haible  <bruno@clisp.org>
65929
65930         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
65931         gl_EARLY.
65932
65933 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65934
65935         * lib/strftime.c (tzname): Don't declare if it is already #defined.
65936         Problem reported for Mingw by Mark Junker.
65937
65938 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65939
65940         * README: Gnulib normally doesn't generate a tarball.
65941
65942 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
65943
65944         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
65945         long int, not int, for nanosecond counts, so that people who are
65946         used to POSIX struct timespec won't be surprised.  Reported by Jim
65947         Meyering.
65948
65949 2005-12-28  Bruno Haible  <bruno@clisp.org>
65950
65951         * build-aux/config.rpath: Update from GNU gettext.
65952
65953 2005-12-16  Jim Meyering  <jim@meyering.net>
65954
65955         * modules/fprintftime: New module.
65956         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
65957
65958 2005-12-16  Jim Meyering  <jim@meyering.net>
65959
65960         * m4/fprintftime.m4: New file.
65961
65962 2005-12-16  Jim Meyering  <jim@meyering.net>
65963
65964         * lib/fprintftime.c, lib/fprintftime.h: New files.
65965
65966 2005-12-15  Simon Josefsson  <jas@extundo.com>
65967
65968         * modules/socklen (configure.ac): Fix M4 macro name, to align with
65969         new m4/socklen.m4.
65970
65971 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
65972
65973         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
65974         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
65975
65976 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
65977
65978         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
65979         * lib/argp-help.c (fill_in_uparams): Check if the constructed
65980         struct uparams is valid. Fall back to the default values if it is
65981         not.
65982
65983 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65984
65985         * modules/argp (Files): Add argp-pin.c
65986         (Depends-on): dirname
65987         (lib_SOURCES): Add argp-pin.c
65988
65989 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65990
65991         * m4/argp.m4:  Check if program_invocation_name and
65992         program_invocation_short_name are declared and define appropriate
65993         macros if they are not.
65994
65995 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65996
65997         * lib/argp-help.c (__argp_base_name): New function
65998         (__argp_short_program_name): Rewrite using __argp_base_name
65999         * lib/argp-namefrob.h: Define program_invocation_name and
66000         program_invocation_short_name if requested
66001         (__argp_base_name): Add prototype
66002         * lib/argp-parse.c (argp_def): Use gettext wrappers
66003         (argp_default_parser): Use __argp_base_name
66004         * lib/argp-pin.c: New file. Defines program_invocation_name and
66005         program_invocation_short_name on systems that lack them.
66006
66007 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
66008
66009         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
66010         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
66011         porting problem reported by Georg Schwarz in
66012         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
66013
66014 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
66015
66016         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
66017         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
66018         porting problem reported by Georg Schwarz in
66019         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
66020
66021 2005-12-05  Bruno Haible  <bruno@clisp.org>
66022
66023         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
66024         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
66025         Reported by Mark Junker <mjscod@gmx.de>.
66026
66027 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
66028
66029         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
66030         Use implementation from Albert Chin, with some
66031         comments/corrections by Stepan Kasal and myself.
66032
66033 2005-12-02  Bruno Haible  <bruno@clisp.org>
66034
66035         * gnulib-tool (func_import): Accept GPLed build tool modules when
66036         --lgpl is given.
66037         * modules/csharpcomp-script: New file.
66038         * modules/csharpcomp: Depend on it.
66039         * modules/javacomp-script: New file.
66040         * modules/javacomp: Depend on it.
66041         Suggested by Simon Josefsson.
66042
66043 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
66044
66045         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
66046         statement, to work around an HP-UX 10.20 compiler bug reported by
66047         Peter O'Gorman.
66048
66049 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
66050
66051         * modules/savedir (Depends-on): Add openat.
66052
66053 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
66054
66055         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
66056         (uintmax_t) [defined uintmax_t]: Do not declare.
66057         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
66058         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
66059         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
66060         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
66061         sake of portability to weird hosts that C allows (though we don't
66062         know of any practical examples).
66063
66064         * lib/savedir.h (fdsavedir): New decl.
66065         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
66066         contains most of the former guts of savedir.
66067         (savedir): Use savedirstream.
66068         Include "openat.h".
66069
66070 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
66071
66072         * modules/obstack (Files): Add m4/ulonglong.m4.
66073         Problem reported by Davide Angelocola.
66074
66075 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
66076
66077         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
66078         coreutils no longer futzes with rounding modes.
66079
66080 2005-11-14  Jim Meyering  <jim@meyering.net>
66081
66082         * lib/mkstemp-safer.c: Include <config.h>, required for possible
66083         replacement of mkstemp.
66084
66085 2005-11-10  Simon Josefsson  <jas@extundo.com>
66086
66087         * lib/readline.c: Remove EOL.
66088
66089 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
66090
66091         * modules/gethrxtime (Depends-on): Add gettime.
66092
66093 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
66094
66095         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
66096         or gettimeofday; no longer needed.
66097
66098 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
66099
66100         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
66101         time business.
66102         (gethrxtime) [! (HAVE_NANOUPTIME
66103         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
66104         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
66105         our own approximation.
66106
66107 2005-11-08  Eric Blake  <ebb9@byu.net>
66108
66109         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
66110
66111 2005-11-08  Eric Blake  <ebb9@byu.net>
66112
66113         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
66114
66115 2005-11-04  Bruno Haible  <bruno@clisp.org>
66116
66117         * gnulib-tool: Implement --update mode.
66118
66119 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
66120
66121         Fix porting problem reported by Theodoros V. Kalamatianos.
66122         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
66123         Don't assume that futimes failing means we must fail.
66124
66125 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
66126
66127         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
66128         variables to suggest the intended function of the PATH_MAX check.
66129
66130 2005-10-30  Kean Johnston  <jkj@sco.com>
66131
66132         Trivial changes to support SCO systems.
66133         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
66134         as PATH_MAX.
66135         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
66136         where __ptr is null when no I/O is pending.
66137
66138 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
66139
66140         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
66141         leave errno alone.  Problem reported by Dmitry V. Levin.
66142
66143 2005-10-28  Simon Josefsson  <jas@extundo.com>
66144
66145         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
66146         Test more.
66147
66148         * tests/test-gc-md2.c, tests/test-md2.c: New files.
66149
66150         * modules/md2, modules/md2-tests: New files.
66151
66152 2005-10-28  Simon Josefsson  <jas@extundo.com>
66153
66154         * m4/inet_ntop.m4: More tests.
66155
66156         * m4/gc-md2.m4, md2.m4: New file.
66157
66158 2005-10-28  Simon Josefsson  <jas@extundo.com>
66159
66160         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
66161         "restrict" keywords, as per POSIX.  Protect the function
66162         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
66163         Don't use K&R prototypes.  Check the sprintf return values.
66164         Re-define EAFNOSUPPORT if not present.  Indent.
66165
66166         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
66167         suggested by Bruno Haible <bruno@clisp.org>.
66168
66169         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
66170
66171         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
66172
66173         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
66174         libgcrypt).
66175
66176         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
66177
66178         * lib/md2.h, lib/md2.c: New files.
66179
66180 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
66181
66182         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
66183         errno alone.  Problem reported by Frederic Jolliton.
66184
66185 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
66186
66187         * modules/verify (License): Change from GPL to LGPL.  This is a
66188         tiny module and there are apparently near-equivalents that are
66189         under the BSD license.
66190
66191 2005-10-24  Simon Josefsson  <jas@extundo.com>
66192
66193         * modules/sha1: Relicense to LGPL.
66194
66195 2005-10-24  Simon Josefsson  <jas@extundo.com>
66196
66197         * lib/md4.h: Shrink buffer size, now that we changed the type.
66198
66199 2005-10-23  Simon Josefsson  <jas@extundo.com>
66200
66201         * gnulib-tool (func_import): Fix --tests-base.
66202
66203 2005-10-22  Simon Josefsson  <jas@extundo.com>
66204
66205         * modules/arcfour (Depends-on): Need stdint.
66206
66207 2005-10-22  Simon Josefsson  <jas@extundo.com>
66208
66209         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
66210         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
66211
66212 2005-10-22  Simon Josefsson  <jas@extundo.com>
66213
66214         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
66215         suggested by Bruno Haible <bruno@clisp.org>.
66216
66217 2005-10-22  Simon Josefsson  <jas@extundo.com>
66218
66219         * lib/crc.h: Include stddef.h, for size_t.
66220
66221 2005-10-22  Simon Josefsson  <jas@extundo.com>
66222
66223         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
66224         arcfour_context struct (simplify test vector testing in GNU
66225         Shishi).
66226
66227 2005-10-21  Simon Josefsson  <jas@extundo.com>
66228
66229         * modules/des, modules/des-tests: New files.
66230
66231         * modules/gc-des, modules/gc-des-tests: New files.
66232
66233         * tests/test-des.c, tests/test-gc-des.c: New file.
66234
66235 2005-10-21  Simon Josefsson  <jas@extundo.com>
66236
66237         * modules/arctwo, modules/arctwo-tests: New files.
66238
66239         * tests/test-arctwo.c: New file.
66240
66241         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
66242
66243         * tests/test-gc-arctwo.c: New file.
66244
66245 2005-10-21  Simon Josefsson  <jas@extundo.com>
66246
66247         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
66248         Bruno Haible <bruno@clisp.org>.
66249
66250         * m4/gc-des.m4: New file.
66251
66252 2005-10-21  Simon Josefsson  <jas@extundo.com>
66253
66254         * m4/arctwo.m4: New file.
66255
66256         * m4/gc-arctwo.m4: New file.
66257
66258 2005-10-21  Simon Josefsson  <jas@extundo.com>
66259
66260         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
66261         block.
66262
66263 2005-10-21  Simon Josefsson  <jas@extundo.com>
66264
66265         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
66266         <bruno@clisp.org>.
66267
66268         * lib/hmac-sha1.c (hmac_sha1): Likewise.
66269
66270         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
66271         Bruno Haible <bruno@clisp.org>.
66272
66273         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
66274         <bruno@clisp.org>.
66275
66276 2005-10-21  Simon Josefsson  <jas@extundo.com>
66277
66278         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
66279
66280 2005-10-21  Simon Josefsson  <jas@extundo.com>
66281
66282         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
66283
66284 2005-10-21  Simon Josefsson  <jas@extundo.com>
66285
66286         * lib/des.h, lib/des.c: New files.
66287
66288         * lib/gc-gnulib.c: Support DES.c
66289
66290 2005-10-21  Simon Josefsson  <jas@extundo.com>
66291
66292         * lib/arctwo.h, lib/arctwo.c: New files.
66293
66294         * lib/gc-gnulib.c: Support ARCTWO.
66295
66296 2005-10-21  Simon Josefsson  <jas@extundo.com>
66297
66298         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
66299         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66300
66301 2005-10-21  Simon Josefsson  <jas@extundo.com>
66302
66303         * gnulib-tool (func_import, func_create_testdir): Define automake
66304         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
66305         Makefile.am snippet),
66306         suggested by Bruno Haible <bruno@clisp.org>.
66307
66308         * modules/gc (Makefile.am): Use it.
66309
66310 2005-10-21  Bruno Haible  <bruno@clisp.org>
66311
66312         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
66313         patch.
66314
66315 2005-10-19  Simon Josefsson  <jas@extundo.com>
66316
66317         * tests/test-gc-rijndael.c: New file.
66318
66319         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
66320
66321 2005-10-19  Simon Josefsson  <jas@extundo.com>
66322
66323         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
66324         interface too.
66325
66326 2005-10-19  Simon Josefsson  <jas@extundo.com>
66327
66328         * tests/test-gc-arcfour.c: New file.
66329
66330         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
66331
66332 2005-10-19  Simon Josefsson  <jas@extundo.com>
66333
66334         * modules/gc-md4, modules/gc-md4-tests: New file.
66335
66336         * tests/test-gc-md4.c: New file.
66337
66338 2005-10-19  Simon Josefsson  <jas@extundo.com>
66339
66340         * m4/gc-md4.m4: New file.
66341
66342 2005-10-19  Simon Josefsson  <jas@extundo.com>
66343
66344         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
66345         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
66346         <kasal@ucw.cz>.
66347
66348 2005-10-19  Simon Josefsson  <jas@extundo.com>
66349
66350         * m4/gc-arcfour.m4: New file.
66351
66352         * m4/gc-rijndael.m4: New file.
66353
66354 2005-10-19  Simon Josefsson  <jas@extundo.com>
66355
66356         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
66357
66358 2005-10-19  Simon Josefsson  <jas@extundo.com>
66359
66360         * lib/gc-gnulib.c: Support ARCFOUR.
66361
66362 2005-10-19  Simon Josefsson  <jas@extundo.com>
66363
66364         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
66365         support.
66366
66367         * lib/gc.h: Add ECB enum type.
66368
66369         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
66370
66371 2005-10-18  Simon Josefsson  <jas@extundo.com>
66372
66373         * tests/test-md5.c: New file.
66374
66375         * modules/md5-tests: New file.
66376
66377 2005-10-18  Simon Josefsson  <jas@extundo.com>
66378
66379         * tests/test-md4.c: New file.
66380
66381         * modules/md4, modules/md4-tests: New files.
66382
66383 2005-10-18  Simon Josefsson  <jas@extundo.com>
66384
66385         * m4/md4.m4: New file.
66386
66387 2005-10-18  Simon Josefsson  <jas@extundo.com>
66388
66389         * lib/md4.h, lib/md4.c: New files, based on md5.?.
66390
66391 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
66392
66393         * gnulib-tool (func_create_testdir): Omit the second check whether
66394         BUILT_SOURCES in nonempty.
66395
66396 2005-10-17  Simon Josefsson  <jas@extundo.com>
66397
66398         * tests/test-rijndael.c: New file.
66399
66400 2005-10-17  Simon Josefsson  <jas@extundo.com>
66401
66402         * modules/sha1: Depend on stdint instead of md5.
66403
66404         * modules/md5: Depend on stdint, remove uint32_t.
66405
66406 2005-10-17  Simon Josefsson  <jas@extundo.com>
66407
66408         * modules/gc-sha1-tests: New file.
66409
66410         * tests/test-gc-sha1.c: New file.
66411
66412 2005-10-17  Simon Josefsson  <jas@extundo.com>
66413
66414         * m4/md5.m4: Remove call to uint32_t.m4.
66415
66416 2005-10-17  Simon Josefsson  <jas@extundo.com>
66417
66418         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
66419
66420         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
66421         md5.h.
66422
66423         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
66424
66425         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
66426
66427 2005-10-17  Simon Josefsson  <jas@extundo.com>
66428
66429         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
66430
66431 2005-10-17  Simon Josefsson  <jas@extundo.com>
66432
66433         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
66434
66435 2005-10-17  Simon Josefsson  <jas@extundo.com>
66436
66437         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
66438
66439         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
66440
66441 2005-10-17  Bruno Haible  <bruno@clisp.org>
66442
66443         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
66444         that it can also be used in a test.
66445
66446 2005-10-16  Bruno Haible  <bruno@clisp.org>
66447
66448         * gnulib-tool (func_emit_tests_Makefile_am): Also define
66449         TESTS_ENVIRONMENT, so that individual tests can augment it.
66450
66451         * gnulib-tool (func_create_testdir): Use an intermediate target for
66452         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
66453         macros, like $(ALLOCA_H), which cannot be passed through the command
66454         line.
66455
66456 2005-10-15  Simon Josefsson  <jas@extundo.com>
66457
66458         * modules/rijndael-tests: New file.
66459
66460         * modules/rijndael: New file.
66461
66462 2005-10-15  Simon Josefsson  <jas@extundo.com>
66463
66464         * m4/rijndael.m4: New file.
66465
66466 2005-10-15  Simon Josefsson  <jas@extundo.com>
66467
66468         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
66469
66470         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
66471
66472 2005-10-14  Simon Josefsson  <jas@extundo.com>
66473
66474         * tests/test-arcfour.c: New file.
66475
66476         * modules/arcfour, modules/arcfour-tests: New files.
66477
66478 2005-10-14  Simon Josefsson  <jas@extundo.com>
66479
66480         * m4/arcfour.m4: New file.
66481
66482 2005-10-14  Simon Josefsson  <jas@extundo.com>
66483
66484         * lib/arcfour.h, lib/arcfour.c: New files.
66485
66486 2005-10-14  Roland McGrath  <roland@redhat.com>
66487
66488         Import from libc.  [BZ #1331]
66489         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
66490         macro argument.
66491         Reported by Matej Vela <vela@debian.org>.
66492
66493 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
66494
66495         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
66496         include <wchar.h>; no longer needed.
66497
66498 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
66499
66500         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
66501
66502 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
66503         and  Ulrich Drepper  <drepper@redhat.com>
66504
66505         Import from libc.
66506         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
66507         instead of inline stream orientation test and two separate
66508         function calls.  Pay no attention to USE_IN_LIBIO.
66509
66510 2005-10-13  Simon Josefsson  <jas@extundo.com>
66511
66512         * modules/gc-hmac-md5-tests: New file.
66513
66514         * tests/test-gc-hmac-sha1.c: New file.
66515
66516         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
66517
66518         * modules/gc-hmac-md5-tests: New file.
66519
66520         * tests/test-gc-md5.c: New file.
66521
66522         * modules/gc-md5-tests: New file.
66523
66524 2005-10-13  Simon Josefsson  <jas@extundo.com>
66525
66526         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
66527         Move memory allocation outside of loop.
66528
66529 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
66530
66531         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
66532         intermediate directory is in a read-only file system.  Problem
66533         reported by Eric Blake.
66534
66535 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
66536
66537         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
66538
66539 2005-10-12  Simon Josefsson  <jas@extundo.com>
66540
66541         * tests/test-hmac-sha1.c: New file.
66542
66543         * modules/hmac-sha1-tests: New file.
66544
66545         * modules/hmac-sha1: New file.
66546
66547 2005-10-12  Simon Josefsson  <jas@extundo.com>
66548
66549         * modules/gc-sha1: New file.
66550
66551 2005-10-12  Simon Josefsson  <jas@extundo.com>
66552
66553         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
66554
66555         * tests/test-gc-pbkdf2-sha1.c: New file.
66556
66557 2005-10-12  Simon Josefsson  <jas@extundo.com>
66558
66559         * modules/gc-md5, modules/gc-hmac-md5: New files.
66560
66561         * modules/gc (Files): Remove md5, memxor and hmac files.
66562
66563 2005-10-12  Simon Josefsson  <jas@extundo.com>
66564
66565         * m4/gc-pbkdf2-sha1.m4: New file.
66566
66567         * m4/gc-hmac-sha1.m4: New file.
66568
66569         * m4/gc-sha1: New file.
66570
66571         * m4/hmac-sha1.m4: New file.
66572
66573 2005-10-12  Simon Josefsson  <jas@extundo.com>
66574
66575         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
66576
66577         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
66578
66579 2005-10-12  Simon Josefsson  <jas@extundo.com>
66580
66581         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
66582         suggested by Bruno Haible <bruno@clisp.org>.
66583
66584 2005-10-12  Simon Josefsson  <jas@extundo.com>
66585
66586         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
66587
66588 2005-10-12  Simon Josefsson  <jas@extundo.com>
66589
66590         * lib/gc-pbkdf2-sha1.c: New file.
66591
66592         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
66593
66594 2005-10-12  Simon Josefsson  <jas@extundo.com>
66595
66596         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
66597
66598         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
66599
66600 2005-10-12  Simon Josefsson  <jas@extundo.com>
66601
66602         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
66603         GC_USE_HMAC_MD5, respectively.
66604
66605         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
66606         (gc_md5): Fix typo.
66607
66608         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
66609
66610         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
66611
66612         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
66613
66614 2005-10-12  Bruno Haible  <bruno@clisp.org>
66615
66616         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
66617         Reported by Stepan Kasal <kasal@ucw.cz>.
66618
66619 2005-10-11  Simon Josefsson  <jas@extundo.com>
66620
66621         * tests/test-crc.c: New file.
66622
66623         * modules/crc, modules/crc-tests: New files.
66624
66625 2005-10-11  Simon Josefsson  <jas@extundo.com>
66626
66627         * m4/crc.m4: New file.
66628
66629 2005-10-11  Simon Josefsson  <jas@extundo.com>
66630
66631         * lib/gc.h: Add gc_hash and gc_hash_buffer.
66632
66633         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
66634
66635         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
66636
66637 2005-10-11  Simon Josefsson  <jas@extundo.com>
66638
66639         * lib/crc.h, lib/crc.c: New files.
66640
66641         * lib/gc.h (gc_hash_buffer): Add doc.
66642
66643 2005-10-11  Bruno Haible  <bruno@clisp.org>
66644
66645         * modules/c-strcasestr: New file.
66646         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
66647
66648 2005-10-11  Bruno Haible  <bruno@clisp.org>
66649
66650         * modules/c-strcase: New file.
66651         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
66652
66653 2005-10-11  Bruno Haible  <bruno@clisp.org>
66654
66655         * lib/strcasecmp.c: Include limits.h.
66656         (strcasecmp): Avoid integer overflow on exotic platforms.
66657         * lib/strncasecmp.c: Include limits.h.
66658         (strncasecmp): Avoid integer overflow on exotic platforms.
66659         Reported by Paul Eggert.
66660
66661 2005-10-11  Bruno Haible  <bruno@clisp.org>
66662
66663         * lib/c-strcasestr.h: New file, from GNU gettext.
66664         * lib/c-strcasestr.c: New file, from GNU gettext.
66665
66666 2005-10-11  Bruno Haible  <bruno@clisp.org>
66667
66668         * lib/c-strcase.h: New file, from GNU gettext.
66669         * lib/c-strcasecmp.c: New file, from GNU gettext.
66670         * lib/c-strncasecmp.c: New file, from GNU gettext.
66671
66672 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
66673
66674         * modules/mempcpy (License): GPL -> LGPL.
66675         * modules/strchrnul (License): Likewise.
66676         * modules/sysexits (License): Likewise.
66677
66678 2005-10-08  Simon Josefsson  <jas@extundo.com>
66679
66680         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
66681
66682 2005-10-07  Simon Josefsson  <jas@extundo.com>
66683
66684         * m4/memxor.m4: Remove gl_C_RESTRICT call.
66685
66686 2005-10-06  Simon Josefsson  <jas@extundo.com>
66687
66688         * tests/test-hmac-md5.c: New file.
66689
66690         * modules/hmac-md5-tests: New file.
66691
66692         * modules/hmac-md5: New file.
66693
66694 2005-10-06  Simon Josefsson  <jas@extundo.com>
66695
66696         * m4/hmac-md5.m4: New file.
66697
66698         * m4/memxor.m4: Require gl_C_RESTRICT.
66699
66700 2005-10-06  Simon Josefsson  <jas@extundo.com>
66701
66702         * lib/memxor.c (memxor): Avoid casts and warnings.
66703
66704 2005-10-06  Simon Josefsson  <jas@extundo.com>
66705
66706         * lib/hmac-md5.c: New file.
66707
66708         * lib/hmac.h: New file.
66709
66710 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
66711
66712         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
66713         promotes to int, not unsigned int, to catch the AIX 5.3
66714         compiler bug.
66715
66716 2005-10-05  Simon Josefsson  <jas@extundo.com>
66717
66718         * modules/memxor: New file.
66719
66720         * modules/iconv (Files): Move config.rpath to havelib, it is used
66721         there.
66722
66723         * modules/havelib (Files): Add config.rpath.
66724
66725 2005-10-05  Simon Josefsson  <jas@extundo.com>
66726
66727         * m4/memxor.m4: New file.
66728
66729 2005-10-05  Simon Josefsson  <jas@extundo.com>
66730
66731         * lib/memxor.c (memxor): Fix compiler error.
66732
66733         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
66734         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
66735
66736         * lib/memxor.h, lib/memxor.c: New files.
66737
66738         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
66739         we assume all systems have it, suggested by Jim Meyering
66740         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
66741         any systems lack sys/socket.h; mingw32 is known to lack it, but we
66742         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
66743         same reasons.
66744
66745 2005-10-05  Simon Josefsson  <jas@extundo.com>
66746
66747         * config/srclist.txt: Add glibc bug 1423 for md5.h.
66748
66749 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
66750
66751         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
66752         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
66753         needed, since the source code now assumes these .h files.
66754
66755 2005-10-05  Derek Price  <derek@ximbiot.com>
66756
66757         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
66758
66759 2005-10-05  Bruno Haible  <bruno@clisp.org>
66760
66761         * modules/stdint (License): Change to LGPL.
66762
66763 2005-10-04  Simon Josefsson  <jas@extundo.com>
66764
66765         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
66766         D. Baushke" <mdb@gnu.org>.
66767
66768 2005-10-04  Bruno Haible  <bruno@clisp.org>
66769
66770         * lib/verify.h (verify_true): Provide alternative definition for C++.
66771
66772 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
66773
66774         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
66775         (SSIZE_MAX): New macro, if not already defined.
66776         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
66777         than 2 GiB.
66778
66779 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
66780
66781         Sync from coreutils.
66782         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
66783         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
66784         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
66785         ULLONG_MAX doesn't work with 2.7.2.1.
66786
66787 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
66788
66789         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
66790         From Ben Pfaff.
66791
66792         * modules/exclude (Depends-on): Depend on verify.
66793         * modules/strtoimax (Depends-on): Likewise.
66794         * modules/utimecmp (Depends-on): Likewise.
66795
66796 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
66797
66798         * lib/exclude.c: Include verify.h.
66799         (verify): Remove.  All callers changed to use verify.h's version.
66800         * lib/strtoimax.c: Likewise.
66801         * lib/utimecmp.c: Likewis.e
66802
66803         Sync from coreutils.
66804         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
66805         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
66806         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
66807         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
66808         bother returning ENOSYS if settimeofday or stime fails; just let
66809         them return whatever errno they want to return.
66810         * lib/utimens.c: Include unistd.h, for dup2.
66811         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
66812         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
66813
66814 2005-10-02  Jim Meyering  <jim@meyering.net>
66815
66816         Sync from coreutils.
66817         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
66818         from glibc-2.2.5 that fails for read-only files.
66819
66820 2005-10-02  Jim Meyering  <jim@meyering.net>
66821
66822         Sync from coreutils.
66823         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
66824         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
66825         `#if HAVE_CONFIG_H'.
66826         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
66827         Remove AT_FDCWD test.
66828         Do not consume the fd unless successful.
66829         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
66830         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
66831         block, so that we don't even try to compile it if settimeofday is
66832         available.  This works around a compilation failure on OSF1 V5.1,
66833         due to stime requiring a `long int*' while tv_sec is `int'.
66834
66835 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
66836
66837         Sync from coreutils.
66838         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
66839         against `yes', rather than just testing for nonempty.
66840
66841 2005-10-01  Simon Josefsson  <jas@extundo.com>
66842
66843         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
66844         and Darwin.
66845
66846         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
66847         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
66848         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
66849         freeaddrinfo and gai_strerror are declared by the POSIX headers.
66850         Check if struct addrinfo is declared.
66851
66852 2005-10-01  Simon Josefsson  <jas@extundo.com>
66853
66854         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
66855         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
66856         AI_* and EAI_* definitions.  Protect function declarations.
66857
66858 2005-10-01  Jim Meyering  <jim@meyering.net>
66859
66860         Sync from coreutils.
66861
66862         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
66863         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
66864         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
66865         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
66866         in the inet and nsl libraries.  Required on Solaris 5.7.
66867
66868 2005-10-01  Jim Meyering  <jim@meyering.net>
66869
66870         Sync from coreutils.
66871         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
66872         in the inet and nsl libraries.  Required on Solaris 5.7.
66873
66874 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
66875
66876         * lib/getdelim.c (getdelim): Remove unused variables.
66877
66878 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
66879
66880         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
66881         so that the code works even with ancient cpp.  Portability problem
66882         with GCC 2.7.2.1 reported by Thomas M.Ott.
66883
66884 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
66885
66886         * modules/regex (Depends-on): Add strcase.
66887
66888         * modules/gethostname (Licence): Change from GPL to LGPL, since
66889         gethostname.c is a trivial implementation of a standard library
66890         function.
66891         * modules/poll (License): Change from GPL to LGPL, since it's
66892         derived from LGPL code.
66893
66894 2005-09-27  Jim Meyering  <jim@meyering.net>
66895
66896         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
66897         HAVE_CONFIG_H.
66898
66899         * lib/intprops.h (signed_type_or_expr__): Define.
66900         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
66901         for unsigned types.
66902
66903 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
66904
66905         * lib/verify.h (verify_expr): Remove, replacing with:
66906         (verify_true): New macro that returns true instead of void.
66907         (verify_type__): Remove.
66908         (verify): Use verify_true rather than verify_type__.
66909
66910 2005-09-26  Bruno Haible  <bruno@clisp.org>
66911
66912         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
66913         is necessary.
66914         (lib_SOURCES): Remove mbchar.c.
66915         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
66916         (Files): Add m4/mbrtowc.m4.
66917         * modules/mbiter: Likewise.
66918         * modules/mbuiter: Likewise.
66919
66920 2005-09-26  Bruno Haible  <bruno@clisp.org>
66921
66922         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
66923         compile mbchar.c if they are not both present.
66924         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
66925         * m4/mbiter.m4 (gl_MBITER): Likewise.
66926         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
66927         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
66928         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
66929
66930 2005-09-25  Jim Meyering  <jim@meyering.net>
66931
66932         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
66933         also uses socklen_t.
66934
66935 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
66936
66937         * lib/utimens.c (ENOSYS): Define if not already defined.
66938         (futimens): Support having a null PATH if the file descriptor
66939         is nonnegative.
66940
66941         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
66942         Remove.
66943         (__attribute): Define to empty unless GCC 3.1 or later.
66944         This works around a core dump on OpenBSD 3.4, which has GCC
66945         2.95.3, which dumps core when given __attribute__(()).  It also
66946         simplifies other tests, since we really don't want to bother with
66947         worrying about which ancient version of GCC supported what.
66948         Original problem reported by Yoann Vandoorselaere, with part of
66949         the fix suggested by Derek Price.
66950
66951 2005-09-24  Jim Meyering  <jim@meyering.net>
66952
66953         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
66954         so we can once again use a positive bitfield width of 1 -- now we
66955         don't have to explain why we were using a bitfield width of 2.
66956
66957 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
66958
66959         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
66960         and similarly for the other external symbols.  Problem reported
66961         by James Gallager.
66962
66963         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
66964         bug reported by Jim Meyering.
66965
66966         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
66967         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
66968         not needed, since socklen is a prerequisite module.
66969
66970 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
66971
66972         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
66973         Problem reported by Eric Blake.
66974         (getaddrinfo): Initialize se so that it's not garbage.
66975         Redo internal storage allocation so that it doesn't make unportable
66976         assumptions about alignment.
66977         Fix a memory leak.
66978
66979         * lib/utimens.c (futimens): Use futimesat if available.
66980         Prefer it to futimes since it doesn't have the futimes bug.
66981
66982         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
66983         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
66984         Instead, declare a function that returns a pointer to an array,
66985         and use verify_type__ to declare the size of the array.
66986         Problem and germ of a solution reported by Bruno Haible.
66987         (verify_type__): Use 2, not 1, for bitfield size, to avoid
66988         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
66989
66990 2005-09-23  Jim Meyering  <jim@meyering.net>
66991
66992         Sync from coreutils.
66993         Correct build failure (socklen_t not defined) on at least
66994         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
66995         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
66996
66997 2005-09-23  Jim Meyering  <jim@meyering.net>
66998
66999         * modules/getaddrinfo (Depends-on): Add socklen.
67000
67001 2005-09-23  Bruno Haible  <bruno@clisp.org>
67002
67003         * tests/test-verify.c: New file.
67004
67005 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
67006
67007         Sync from coreutils.
67008
67009         * modules/argmatch (Depends-on): Add verify.
67010         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
67011         unistd-safer.
67012         * modules/save-cwd (Depends-on): Likewise.
67013
67014         * modules/openat (Files): Add lib/openat-die.c.
67015         (Depends-on): Remove error, exitfail.
67016         Add dirname.
67017
67018         * modules/verify: New file.
67019         * MODULES.html.sh (Diagnostics <assert.h>): New section,
67020         with "verify" module.
67021
67022 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
67023
67024         Sync from coreutils.
67025
67026         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
67027         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
67028         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
67029         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
67030         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
67031         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
67032         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
67033         Don't bother checking for string.h, stdlib.h, unistd.h.
67034         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
67035         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
67036         module's job.
67037         * m4/jm-macros.m4 (gl_MACROS): Likewise.
67038         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
67039
67040         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
67041         (gl_GETDATE): Use it.
67042
67043         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
67044
67045 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
67046
67047         Sync from coreutils.
67048
67049         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
67050         stat-time.h.
67051         * lib/argmatch.h: Include verify.h
67052         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
67053         (ARGMATCH_ASSERT): Remove; unused.
67054         * lib/canonicalize.c: Assume STDC_HEADERS.
67055         * lib/exclude.c: Include "strcase.h".
67056         * lib/regex_internal.h [!defined _LIBC]: Likewise.
67057         * lib/getusershell.c: Include stdio--.h rather than stdio.h
67058         and stdio-safer.h.
67059         (getusershell): Call fopen, not fopen_safer.
67060         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
67061         Do not include unistd-safer.h.
67062         (save_cwd): Don't call fd_safer; no longer needed
67063         now that we include fcntl--.h.
67064
67065         * lib/getdate.y (relative_time): New type.
67066         (RELATIVE_TIME_0): New constant.
67067         (parser_control): Use relative_time instead of doing it ourselves.
67068         (%union): Add new relative_time rel member.
67069         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
67070         Now typeless.
67071         (relunit, relunit_snumber): Now of type rel.
67072         (zone, rel, relunit, get_date): Adjust to above changes.
67073
67074         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
67075         Do not include unistd-safer.h.
67076         (getloadavg): Don't call fd_safer; no longer needed
67077         now that we include fcntl--.h.
67078
67079         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
67080         (make_dir_parents): Treat ENOSYS like EEXIST.
67081
67082         Improve quality of diagnostics on restore_cwd failure.
67083         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
67084         (make_dir_parents): Last arg is now int * (for errno), not bool *.
67085         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
67086         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
67087         each time through the loop.  Do not diagnose restore_cwd failure;
67088         that is the caller's job (and perhaps the caller does not care).
67089
67090         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
67091         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
67092         If the file already exists but is not a directory, don't bother
67093         to try to make its parents.
67094         Close potential file descriptor leak if we can't chdir("/") (!).
67095         Don't always return true if chdir($PWD) fails; return true only
67096         if the requested action was done successfully (except for the
67097         chdir($PWD)).
67098         Don't log final directory unless we actually made it.
67099         Refactor to avoid duplicate code to fix up permissions.
67100         Don't attempt to fix up parent permissions if chdir($PWD) fails.
67101
67102         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
67103         to make it a bit faster and (I hope) clearer.
67104         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
67105         Fix bug in formats like %2N.
67106
67107         * lib/verify.h: New file.
67108
67109 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
67110
67111         Sync from coreutils.
67112         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
67113
67114 2005-09-22  Jim Meyering  <jim@meyering.net>
67115
67116         Sync from coreutils.
67117
67118         * m4/lstat.m4 (gl_FUNC_LSTAT):
67119         Use AC_LIBSOURCES to require lstat.c and lstat.h.
67120         Remove obsolete comment.
67121         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
67122         * m4/xstrtod.m4: Likewise.
67123
67124         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
67125
67126 2005-09-22  Jim Meyering  <jim@meyering.net>
67127
67128         Sync from coreutils.
67129
67130         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
67131
67132         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
67133         the .tm_year member, since otherwise gcc-4.0 would now warn about
67134         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
67135
67136         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
67137         order to avoid an unsuppressible warning from gcc on 64-bit systems.
67138
67139         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
67140         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
67141         when run in a time zone for which daylight savings time is in effect
67142         for the starting date.
67143
67144         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
67145         stop us from restricting permissions of just-created absolute-named
67146         directories.
67147         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
67148         to restore initial working directory.
67149         * lib/mkdir-p.c (make_dir_parents): New parameter:
67150         different_working_dir, to tell caller if/when we change the working
67151         directory and are unable to return to the initial one.
67152         * lib/mkdir-p.h (make_dir_parents): Update prototype.
67153         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
67154         `return false'.  This fixes a bug introduced on 2004-07-30.
67155
67156         * lib/openat.c (fdopendir): Be sure to close the supplied
67157         file descriptor before returning.  This makes our replacement
67158         implementation a little closer to Solaris's, where fdopendir
67159         ties the file descriptor to the returned DIR* pointer.
67160         * lib/openat.c (unlinkat): New function.
67161         * lib/openat.h (unlinkat): Add prototype.
67162         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
67163         (openat_restore_fail): Rename from openat_restore_die.
67164         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
67165
67166         Provide an alternative to exiting immediately upon save_cwd or
67167         restore_cwd failure.  Now, an application can arrange e.g.,
67168         to perform a longjump in that case.
67169         * lib/openat.c: Include dirname.h.
67170         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
67171         (rpl_openat, fdopendir, fstatat): Call openat_save_die
67172         and openat_restore_die rather than calling error directly.
67173         Don't include "error.h" or "exitfail.h"; they're no longer needed.
67174
67175         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
67176         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
67177         define.
67178
67179         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
67180         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
67181                             int utc, int nanoseconds);
67182         Background:
67183         date should not have to allocate a megabyte of virtual memory to
67184         handle a format argument like +%1048575T.  When implemented with
67185         strftime, it must allocate such a buffer, use strftime to fill it
67186         in, print it, then free it.
67187         With fprintftime, it simply prints everything and exits.
67188         With no need for memory allocation, that's one fewer way to fail.
67189         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
67190         optional field width, not before, so we accept %9:z, not %:9z.
67191         (my_strftime): Be sure to use L_('x') for literals.
67192
67193         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
67194         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
67195         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
67196         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
67197         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
67198         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
67199         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
67200         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
67201         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
67202         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
67203         * lib/xgethostname.c, lib/xreadlink.c:
67204         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
67205
67206         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
67207         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
67208         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
67209         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
67210         and don't include <sys/file.h>).
67211
67212 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
67213
67214         Sync from coreutils.
67215
67216         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
67217         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
67218         [!LDAV_DONE]: Avoid unused variable warning.
67219
67220 2005-09-21  Bruno Haible  <bruno@clisp.org>
67221
67222         * lib/unicodeio.h (unicode_to_mb): New declaration.
67223
67224 2005-09-20  Derek Price  <derek@ximbiot.com>
67225
67226         * lib/getaddrinfo.c: Don't include <netdb.h> included from
67227         getaddrinfo.h.
67228
67229 2005-09-20  Bruno Haible  <bruno@clisp.org>
67230
67231         * gnulib-tool: Remove trailing slashes from the values specified for
67232         --source-base, --m4-base, --tests-base, --aux-dir.
67233         Suggested by Simon Josefsson <jas@extundo.com>.
67234
67235 2005-09-20  Bruno Haible  <bruno@clisp.org>
67236
67237         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
67238         func_modules_to_filelist, func_import, func_create_testdir): Make all
67239         sorting results locale-independent, so that gnulib-cache.m4 doesn't
67240         change when gnulib-tool is invoked in a different locale.
67241
67242 2005-09-19  Simon Josefsson  <jas@extundo.com>
67243
67244         * m4/socklen.m4: Fix typo.
67245
67246 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67247
67248         Use a consistent style for including <config.h>.
67249         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
67250         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
67251         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
67252         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
67253         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
67254         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
67255         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
67256         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
67257         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
67258         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
67259         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
67260         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
67261         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
67262         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
67263         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
67264         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
67265         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
67266         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
67267         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
67268         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
67269         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
67270         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
67271         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
67272         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
67273         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
67274         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
67275         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
67276         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
67277         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
67278         lib/xstrtoumax.c, lib/yesno.c:
67279         Standardize inclusion of config.h.
67280         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
67281         lib/inttostr.h:  Removed inclusion of config.h from header files.
67282         * lib/inttostr.c:  Adjusted in-tree users.
67283         * lib/timespec.h: Remove superfluous warning to include config.h.
67284         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
67285         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
67286         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
67287         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
67288         config.h with HAVE_CONFIG_H.
67289
67290 2005-09-19  Jim Meyering  <jim@meyering.net>
67291
67292         * modules/pathmax (License): Change to LGPL.
67293
67294 2005-09-19  Derek Price  <derek@ximbiot.com>
67295
67296         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
67297
67298 2005-09-19  Bruno Haible  <bruno@clisp.org>
67299
67300         * gnulib-tool (import): Provide default for --tests-base.
67301
67302 2005-09-19  Bruno Haible  <bruno@clisp.org>
67303
67304         * doc/quote.texi: New file, extracted from gnulib.texi.
67305         * doc/ctime.texi: New file, extracted from gnulib.texi.
67306         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
67307         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
67308         * doc/gnulib.texi: Include them.
67309
67310 2005-09-18  Bruno Haible  <bruno@clisp.org>
67311
67312         Portability fix.
67313         * gnulib-tool (func_readlink): New function.
67314         (func_ln_if_changed): Use it.
67315
67316 2005-09-18  Bruno Haible  <bruno@clisp.org>
67317
67318         * gnulib-tool: Support --with-tests also with --import.
67319         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
67320         (func_import): Use variables $testsbase and $inctests. Emit a
67321         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
67322         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
67323         SUBDIRS += $testsdir.
67324         (func_create_testdir): Update.
67325
67326 2005-09-18  Bruno Haible  <bruno@clisp.org>
67327
67328         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
67329         instead of $dry_run.
67330         (func_cp_if_changed, func_mv_if_changed): Remove functions.
67331         (func_ln_if_changed): Don't handle dry-run here.
67332         (func_import): In dry-run mode, detect more precisely which actions
67333         would be performed, and don't use "...ing" verbs.
67334
67335 2005-09-18  Bruno Haible  <bruno@clisp.org>
67336
67337         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
67338         (func_import): Use join on two temporary files instead of three nested
67339         loops, in order to determine which files are new or old.
67340
67341 2005-09-18  Bruno Haible  <bruno@clisp.org>
67342
67343         * gnulib-tool (func_import): Comment out code that spits out the
67344         new files with --dry-run.
67345
67346 2005-09-18  Bruno Haible  <bruno@clisp.org>
67347
67348         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
67349
67350 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
67351
67352         * lib/stat-time.h: New file.
67353         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
67354         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
67355         in a different way.
67356         (timespec_cmp): New function.
67357         * lib/utimecmp.c: Include stat-time.h.
67358         (SYSCALL_RESOLUTION): Depend on whether various struct stat
67359         members exist, not on the obsolescent ST_MTIM_NSEC.
67360         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
67361
67362 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
67363
67364         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
67365
67366 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
67367
67368         * MODULES.html.sh (File system functions): Add stat-time.
67369         * modules/stat-time: New file.
67370         * modules/timespec (Files): Remove m4/st_mtim.m4; this
67371         is now done in a different way, by the stat-time module.
67372         * modules/utimecmp (Depends-on): Add stat-time.
67373
67374 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67375
67376         * m4/st_mtim.m4: Remove.  Superseded by...
67377         * m4/stat-time.m4: New file.
67378         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
67379         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
67380
67381 2005-09-15  Derek Price  <derek@ximbiot.com>
67382
67383         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
67384
67385 2005-09-15  Derek Price  <derek@ximbiot.com>
67386
67387         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
67388         * lib/regex_internal.c: Ditto, using this...
67389         (__GNUC_PREREQ): ...new macro.
67390         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
67391         using...
67392         (__GNUC_PREREQ): ...this new macro.
67393
67394         * lib/strstr.h: Include string.h. Define strstr as a macro here.
67395
67396 2005-09-15  Derek Price  <derek@ximbiot.com>
67397             Paul Eggert  <eggert@cs.ucla.edu>
67398
67399         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
67400         changes, consolidating in...
67401         * lib/regex_internal.h: ...this file.
67402
67403 2005-09-13  Jim Meyering  <jim@meyering.net>
67404
67405         * lib/canon-host.c: Filter through gnu indent and reword comments
67406         slightly.
67407         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
67408
67409 2005-09-13  Derek Price  <derek@ximbiot.com>
67410
67411         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
67412         failure.
67413         Reported by Jim Meyering  <jim@meyering.net>.
67414
67415 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67416
67417         * lib/base64.c: Typo.
67418         (base64_encode): Put b64str in initialized data section.
67419
67420 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
67421
67422         Merge glibc and coreutils changes into gnulib, plus a few
67423         extra fixes.
67424         * lib/md5.c: Use #error rather than a string.
67425         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
67426         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
67427         (__attribute__): Define to empty for non recent-GCC.
67428         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
67429         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
67430         Renamed from their non-__ counterparts, with new macros replacing
67431         them if not _LIBC.  Add __THROW attribute.
67432         (rol): Remove.
67433         (struct md5_ctx): Align buffer if using GCC.
67434         * lib/sha1.h (struct sha1_ctx): Likewise.
67435         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
67436         The old name was backwards.
67437         (NOTSWAP): Remove; not used.
67438         (rol): New macro, moved here from md5.h.
67439         (sha1_process_block): Remove a FIXME that doesn't make sense.
67440
67441 2005-09-12  Derek Price  <derek@ximbiot.com>
67442
67443         Return usable errors from canon-host.
67444         * lib/canon-host.h: New file.
67445         * lib/canon-host.c (canon_host): Wrap...
67446         (canon_host_r): ...this new function, which now relies exclusively on
67447         getaddrinfo.
67448         (ch_strerror): New function.
67449         (last_cherror): New global.
67450         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
67451         interface.
67452         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
67453         void *.
67454         (freeaddrinfo): Free ai->ai_canonname when set.
67455
67456 2005-09-12  Derek Price  <derek@ximbiot.com>
67457
67458         Make canon-host require getaddrinfo.
67459         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
67460         AC_LIBSOURCE canon-host.h.  Call...
67461         (gl_PREREQ_CANON_HOST): ...this new function, which requires
67462         gl_GETADDRINFO.
67463         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
67464
67465 2005-09-12  Derek Price  <derek@ximbiot.com>
67466
67467         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
67468         LGPL.
67469         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
67470
67471 2005-09-12  Derek Price  <derek@ximbiot.com>
67472
67473         * lib/gai_strerror.c: Include config.h when available.  Include
67474         getaddrinfo.h before other headers to test interface.
67475         Reported by Larry Jones <lawrence.jones@ugs.com>.
67476
67477 2005-09-12  Derek Price  <derek@ximbiot.com>
67478             Paul Eggert  <eggert@cs.ucla.edu>
67479
67480         * modules/glob (Files): Add glob-libc.h.
67481
67482 2005-09-12  Derek Price  <derek@ximbiot.com>
67483             Paul Eggert  <eggert@cs.ucla.edu>
67484
67485         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
67486         glob_.h, glob-libc.h.
67487         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
67488
67489 2005-09-12  Derek Price  <derek@ximbiot.com>
67490             Paul Eggert  <eggert@cs.ucla.edu>
67491
67492         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
67493         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
67494         protecting things that should be done only in gnulib contexts.
67495         * lib/glob_.h: New file, containing only the glob things needed for
67496         gnulib.
67497         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
67498         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
67499         (glob, globfree, glob_pattern_p): Now defined simply in terms of
67500         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
67501         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
67502         and to respect the namespace rules better.
67503
67504 2005-09-08  Simon Josefsson  <jas@extundo.com>
67505
67506         * modules/socklen: New file.
67507
67508 2005-09-08  Simon Josefsson  <jas@extundo.com>
67509
67510         * m4/socklen.m4: New file.
67511
67512 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67513
67514         * modules/utimens (Files): Add m4/utimbuf.m4, since
67515         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
67516         Reported by Sergey Poznyakoff.
67517
67518 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67519
67520         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
67521         definitions, since that's the preferred style in glibc.
67522         Fix a minor spacing issue, and update copyright notice to match
67523         glibc's.
67524
67525 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67526
67527         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
67528
67529 2005-09-06  Simon Josefsson  <jas@extundo.com>
67530
67531         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
67532         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
67533
67534 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
67535
67536         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
67537         warning.
67538
67539 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
67540
67541         * config/srclist.txt: Add glibc bug 1302.
67542
67543 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
67544
67545         Change bitset word type from unsigned int to unsigned long int,
67546         as this has better performance on typical 64-bit hosts.
67547         Port bitset code to hosts with unusual word sizes.
67548         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
67549         (build_collating_symbol):
67550         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
67551         argument is a bitset.  This is merely a style issue, but it makes
67552         it clearer that an entire array is expected.
67553         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
67554         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
67555         Port to the case where bitset_word is not the same as unsigned int.
67556         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
67557         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
67558         Likewise.
67559         * lib/regexec.c (check_dst_limits_calc_pos_1,
67560         check_subexp_matching_top):
67561         (build_trtable, group_nodes_into_DFAstates):
67562         Likewise.
67563         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
67564         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
67565         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
67566         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
67567         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
67568         * lib/regcomp.c (optimize_subexps, lower_subexp):
67569         Work even if bitset_word has holes in its bitwise representation.
67570         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
67571         * lib/regexec.c (check_dst_limits_calc_pos_1,
67572         check_subexp_matching_top):
67573         Likewise.
67574         * lib/regex_internal.c (re_string_reconstruct):
67575         Don't assume UCHAR_MAX == 255.
67576         * lib/regex_internal.h (bitset_set_all): Likewise.
67577         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
67578         All uses changed.
67579         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
67580         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
67581         All uses changed.
67582         (BITSET_WORD_MAX): New macro.
67583         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
67584         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
67585         (bitset_empty, bitset_copy):
67586         Prefer sizeof (bitset) to multiplying it out ourselves.
67587         (bitset_not_merge): Remove; unused.
67588         (bitset_contain): Return bool, not unsigned int with one bit on.
67589         All callers changed.
67590         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
67591         alignment than re_node_set; do this by defining a new internal
67592         type struct dests_alloc and using it to allocate memory.
67593
67594 2005-09-05  Bruno Haible  <bruno@clisp.org>
67595
67596         * gnulib-tool (func_import): Fix comparison in handling of symbolic
67597         links.
67598
67599 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
67600
67601         * modules/size_max (Makefile.am): Add size_max.h
67602
67603 2005-09-04  Derek Price  <derek@ximbiot.com>
67604
67605         * gnulib-tool (func_import): Fix reversed $symbolic logic.
67606
67607 2005-09-03  Simon Josefsson  <jas@extundo.com>
67608
67609         * gnulib-tool: Fix typo.
67610
67611 2005-09-03  Simon Josefsson  <jas@extundo.com>
67612
67613         * config/srclist.txt: Add glibc bug 1293.
67614
67615 2005-09-03  Derek Price  <derek@ximbiot.com>
67616
67617         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
67618         From Larry Jones <lawrence.jones@ugs.com>.
67619
67620 2005-09-02  Simon Josefsson  <jas@extundo.com>
67621
67622         * modules/socklen: New file.
67623
67624 2005-09-02  Simon Josefsson  <jas@extundo.com>
67625
67626         * modules/havelib: New module.
67627
67628         * modules/gettext, modules/iconv, modules/lock, modules/readline:
67629         Use havelib.
67630
67631 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
67632
67633         Check for arithmetic overflow when calculating sizes, to prevent
67634         some buffer-overflow issues.  These patches are conservative, in the
67635         sense that when I couldn't determine whether an overflow was possible,
67636         I inserted a run-time check.
67637         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
67638         macros.
67639         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
67640         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
67641         (re_xnrealloc, re_x2nrealloc): New inline functions.
67642         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
67643         parse_bracket_exp):
67644         (build_equiv_class, build_charclass): Check for arithmetic overflow
67645         in size expression calculations.
67646         * lib/regex_internal.c (re_string_realloc_buffers):
67647         (build_wcs_upper_buffer, re_node_set_add_intersect):
67648         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
67649         (re_dfa_add_node, register_state): Likewise.
67650         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
67651         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
67652         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
67653         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
67654
67655 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
67656
67657         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
67658         m4/ulonglong.m4.  Problem reported by Martin Lambers.
67659
67660 2005-09-02  Bruno Haible  <bruno@clisp.org>
67661
67662         Support for lib vs. lib64 distinction on biarch platforms.
67663         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
67664         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
67665         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
67666
67667 2005-09-02  Bruno Haible  <bruno@clisp.org>
67668
67669         * gnulib-tool (import): In the other first-use case, provide defaults
67670         as well.
67671
67672 2005-09-02  Bruno Haible  <bruno@clisp.org>
67673
67674         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
67675         patches not yet found in the latest gettext release.
67676
67677 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67678
67679         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
67680         to avoid a collision with bits/local_lim.h in glibc.
67681         All uses changed.  Problem reported by Dmitry V. Levin in
67682         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
67683
67684         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
67685         bugs in int versus size_t comparisons.
67686         (re_string_context_at): Fix bug where the code assumed that
67687         Idx is signed.
67688
67689         Use bool where appropriate.
67690         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
67691         All callers changed.
67692         (calc_eclosure_iter): Likewise, for ROOT arg.
67693         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
67694         (build_charclass_op): Likewise, for NON_MATCH arg.
67695         * lib/regex_internal.c (re_string_allocate, re_string_construct):
67696         (re_string_construct_common): Likewise, for ICASE arg.
67697         * lib/regexec.c (re_search_2_stub, re_search_stub):
67698         Likewise, for RET_LEN arg.
67699         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
67700         (set_regs): Likewise, for FL_BACKTRACK arg.
67701         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
67702         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
67703         (calc_eclosure_iter, parse_bracket_exp):
67704         Use bool for internal variables that are booleans.
67705         * lib/regexec.c (re_search_internal, check_matching,
67706         proceed_next_node):
67707         (set_regs, build_sifted_states, sift_states_bkref):
67708         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
67709         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
67710         (find_collation_sequence_value):
67711         Likewise.
67712         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
67713         (re_node_set_compare):
67714         Return bool, not int. All callers changed.
67715         * lib/regexec.c (check_halt_node_context, check_dst_limits):
67716         (build_trtable, check_node_accept): Likewise.
67717         * lib/regex_internal.h: Include stdbool.h.
67718
67719         Fix bugs uncovered when converting to bool.
67720         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
67721         failure instead of charging ahead blindly.
67722         * lib/regex_internal.c (register_state): Likewise.
67723         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
67724         for freeing internal storage.
67725         (group_nodes_into_DFA_states): Use unsigned int, not int, for
67726         bitset pieces used as boolean, to avoid undefined behavior
67727         on hosts that do int overflow checking.
67728
67729 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67730
67731         * config/srclist.txt: Add glibc bugs 1285-1287.
67732
67733 2005-09-01  Jim Meyering  <jim@meyering.net>
67734
67735         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
67736         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
67737         Require gl_STAT_MACROS, too.
67738
67739 2005-09-01  Bruno Haible  <bruno@clisp.org>
67740
67741         * gnulib-tool (import): In the first-use case, provide defaults.
67742
67743 2005-09-01  Bruno Haible  <bruno@clisp.org>
67744
67745         * gnulib-tool (func_import): Remove the .tmp files.
67746
67747 2005-09-01  Bruno Haible  <bruno@clisp.org>
67748
67749         * gnulib-tool (func_import): Fix handling of symbolic links.
67750
67751 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67752
67753         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
67754         old glibc regex code mishandles strings longer than 2**31 bytes.
67755         This patch fixes this when the regex code is used in gnulib
67756         (i.e., outside glibc).
67757
67758         This patch should not affect the use of the regex code inside
67759         glibc.  No doubt this problem also needs to be handled for glibc
67760         as well, but the result will be an incompatible change to the
67761         glibc ABI, and the old ABI will have to be supported too.  That
67762         can be the the subject for another patch.
67763
67764         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
67765         governing whether the rest of this patch is active.  By default,
67766         the macro is disabled and the patch has no effect.
67767         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
67768         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
67769         (struct re_pattern_buffer, re_search, re_search_2, re_match):
67770         (re_match_2, re_set_registers): Use the new types.
67771         * lib/regex_internal.h (Idx, re_hashval_t): New types.
67772         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
67773         New macros.
67774         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
67775         (re_string_context_at, bin_tree_t, re_dfastate_t):
67776         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
67777         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
67778         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
67779         (re_string_char_size_at, re_string_wchar_at):
67780         (re_string_elem_size_at):
67781         Use the new types and macros to port to 64-bit hosts.
67782         Use unsigned types for internal values, so that the code
67783         mostly works even for arrays larger than SSIZE_MAX.
67784         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
67785         (search_duplicated_node, calc_eclosure_iter, fetch_number):
67786         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
67787         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
67788         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
67789         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
67790         (calc_inveclosure, parse_dup_op, build_range_exp):
67791         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
67792         (fetch_number, create_token_tree, mark_opt_subexp):
67793         Likewise.
67794         * lib/regex_internal.c (re_string_construct_common,
67795         create_ci_newstate):
67796         (create_cd_newstate, re_string_allocate, re_string_construct):
67797         (re_string_realloc_buffers, build_wcs_upper_buffer):
67798         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
67799         (re_string_reconstruct, re_string_peek_byte_case):
67800         (re_string_fetch_byte_case, re_string_context_at):
67801         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
67802         (re_node_set_init_copy, re_node_set_add_intersect):
67803         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
67804         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
67805         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
67806         (re_acquire_state, re_acquire_state_context, register_state):
67807         Likewise.
67808         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
67809         search_cur_bkref_entry):
67810         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
67811         (re_search_internal, re_search_2_stub, re_search_stub)
67812         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
67813         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
67814         (update_cur_sifted_state, check_dst_limits):
67815         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
67816         (check_subexp_limits, sift_states_bkref, merge_state_array):
67817         (check_subexp_matching_top, get_subexp, get_subexp_sub):
67818         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
67819         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
67820         (expand_bkref_cache, check_node_accept_bytes):
67821         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
67822         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
67823         (acquire_init_state_context, check_halt_node_context):
67824         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
67825         (sift_states_backward, clean_state_log_if_needed):
67826         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
67827         (find_recover_state, transit_state_sb, transit_state_mb):
67828         (transit_state_bkref, build_trtable, match_ctx_clean):
67829         Likewise.
67830         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
67831         to work around an assumption that REG_MISSING is negative.
67832
67833         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
67834         (seek_collating_symbol_entry) [defined _LIBC]:
67835         (lookup_collation_sequence_value) [defined _LIBC]:
67836         (build_range_exp, build_collating_symbol) [defined _LIBC]:
67837         Use prototypes rather than old-style function definitions.
67838         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
67839         (transit_state_sb) [0]:
67840         (find_collation_sequence_value) [defined _LIBC]: Likewise.
67841
67842         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
67843         rm_eo.
67844
67845         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
67846         (optimize_subexps, lower_subexp):
67847         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
67848         since the signed shift might overflow.  Use 1u<<31 instead.
67849         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
67850         Likewise.
67851         * lib/regexec.c (check_dst_limits_calc_pos_1,
67852         check_subexp_matching_top): Likewise.
67853
67854         * lib/regcomp.c (optimize_subexps, lower_subexp):
67855         Use CHAR_BIT rather than 8, for clarity.
67856         * lib/regexec.c (check_dst_limits_calc_pos_1):
67857         (check_subexp_matching_top): Likewise.
67858         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
67859         have to worry about portability issues when shifting it left.
67860         Remove no-longer-needed test for table_size > 0.
67861         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
67862         in a word, as the resulting behavior is undefined.
67863         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
67864         in one case, a <= should have been an <, and in another case the
67865         whole test was missing.
67866         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
67867         the standard name CHAR_BIT.
67868         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
67869         this is not true on one's complement and signed-magnitude hosts.
67870
67871         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
67872         next_last_offset.
67873         (struct re_dfa_t): Remove unused member states_alloc.
67874         * lib/regcomp.c (init_dfa): Don't initialize unused members.
67875
67876 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67877
67878         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
67879         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
67880         and large-file glibc and in 32-bit large-file Solaris.
67881
67882 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67883
67884         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
67885         lengths fit in regoff_t; this isn't true if regoff_t is the same
67886         width as size_t.
67887         * lib/regex.c (re_search_internal): 5th arg is LAST_START
67888         (= START + RANGE) instead of RANGE.  This avoids overflow
67889         problems when regoff_t is the same width as size_t.
67890         All callers changed.
67891         (re_search_2_stub): Check for overflow when adding the
67892         sizes of the two strings.
67893         (re_search_stub): Check for overflow when adding START
67894         to RANGE; if it occurs, substitute the extreme value.
67895
67896 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67897
67898         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
67899
67900 2005-08-31  Jim Meyering  <jim@meyering.net>
67901
67902         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
67903         a pointer-to-const.
67904         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
67905         (register_state): Likewise.
67906         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
67907         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
67908         (group_nodes_into_DFAstates): Likewise.
67909
67910 2005-08-31  Jim Meyering  <jim@meyering.net>
67911
67912         * check-module: Add a FIXME comment.
67913
67914 2005-08-31  Eric Blake  <ebb9@byu.net>
67915
67916         * modules/unistd-safer (Files): Add unistd--.h.
67917         * modules/stdio-safer (Files): Add stdio--.h.
67918
67919 2005-08-31  Derek Price  <derek@ximbiot.com>
67920
67921         * lib/getdelim.c (getdelim): Return EOF on EOF.
67922         Reported by Larry Jones <lawrence.jones@ugs.com>.
67923
67924 2005-08-31  Bruno Haible  <bruno@clisp.org>
67925
67926         Avoid unnecessary diffs in the generated lib/Makefile.am.
67927         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
67928         the generated files.
67929         (func_import): Don't set cmd.
67930
67931 2005-08-31  Bruno Haible  <bruno@clisp.org>
67932
67933         * lib/strstr.c: Include <stddef.h>, for NULL.
67934         * lib/strcasestr.c: Likewise.
67935         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
67936
67937 2005-08-31  Bruno Haible  <bruno@clisp.org>
67938
67939         * gnulib-tool: New option --macro-prefix.
67940         (func_import): Use macro_prefix.
67941         (import): Handle option --macro-prefix.
67942
67943 2005-08-31  Bruno Haible  <bruno@clisp.org>
67944
67945         * gnulib-tool (import): Rename most ac_* variables to cached_*.
67946         Also use new variables cached_lgpl, cached_libtool.
67947
67948 2005-08-31  Bruno Haible  <bruno@clisp.org>
67949
67950         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
67951         always instantiating them.
67952
67953 2005-08-31  Bruno Haible  <bruno@clisp.org>
67954
67955         * gnulib-tool (func_import): Read the previous cached settings
67956         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
67957         earlier added by gnulib but are now dropped. Warn when a gnulib file
67958         overwrites a non-gnulib file.
67959
67960 2005-08-31  Bruno Haible  <bruno@clisp.org>
67961
67962         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
67963         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
67964         projects that don't keep autogenerated files in CVS. Put into
67965         actioncmd only the specified modules, not the transitive closure.
67966
67967 2005-08-31  Bruno Haible  <bruno@clisp.org>
67968
67969         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
67970         Create directories that shall be filled.
67971         (import): Don't look for gl_* macros in configure.ac. Recurse across
67972         all directories containing a gnulib-cache.m4 files, if meaningful.
67973
67974 2005-08-31  Bruno Haible  <bruno@clisp.org>
67975
67976         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
67977         (import): Set seen_libtool when we see gl_LIBTOOL.
67978
67979 2005-08-31  Bruno Haible  <bruno@clisp.org>
67980
67981         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
67982         declaration macro definitions from generated gnulib.m4.
67983
67984 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
67985
67986         * lib/iconvme.h: Add prototype for iconv_alloc.
67987
67988 2005-08-29  Simon Josefsson  <jas@extundo.com>
67989
67990         * lib/iconvme.c: Fix errno.
67991
67992 2005-08-29  Bruno Haible  <bruno@clisp.org>
67993
67994         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
67995         that it works when the directory contains spaces.
67996
67997 2005-08-29  Bruno Haible  <bruno@clisp.org>
67998
67999         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
68000
68001 2005-08-29  Bruno Haible  <bruno@clisp.org>
68002
68003         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
68004         Emit more advice.
68005
68006 2005-08-29  Bruno Haible  <bruno@clisp.org>
68007         and Stepan Kasal  <kasal@ucw.cz>
68008
68009         * check-module: If more parameters are given, check each of them
68010         separately; add more exceptions, as noted by Jim Meyering.
68011         (check_module): New procedure.
68012         (%exempt_header): Now contains all exceptions.
68013
68014 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
68015
68016         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
68017
68018 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
68019
68020         * lib/iconvme.c: Split iconv_string into iconv_alloc.
68021
68022 2005-08-28  Bruno Haible  <bruno@clisp.org>
68023
68024         * m4/gnulib-tool.m4: New file.
68025
68026 2005-08-27  Jim Meyering  <jim@meyering.net>
68027
68028         * modules/unistd-safer (Files): Add pipe-safer.c.
68029         * modules/fcntl-safer (Files): Add creat-safer.c.
68030
68031 2005-08-27  Jim Meyering  <jim@meyering.net>
68032
68033         * m4/stdlib-safer.m4: New file.  From coreutils.
68034         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
68035         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
68036         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
68037         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
68038         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
68039
68040 2005-08-27  Jim Meyering  <jim@meyering.net>
68041
68042         * lib/fopen-safer.c: Merge minor changes from coreutils.
68043         * lib/dup-safer.c: Likewise.
68044         * lib/fd-safer.c: Likewise.
68045
68046         Merge from coreutils.
68047         * lib/stdio--.h: New file.
68048         * lib/stdlib--.h: New file.
68049         * lib/mkstemp-safer.c: New file.
68050
68051         GNU tar needs these.
68052         * lib/pipe-safer.c: New file.
68053         * lib/creat-safer.c: New file.
68054         * lib/fcntl--.h (creat): Define to creat_safer.
68055         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
68056         * lib/unistd--.h (pipe): Define to pipe_safer.
68057         * lib/unistd-safer.h: Declare pipe_safer.
68058
68059 2005-08-26  Simon Josefsson  <jas@extundo.com>
68060
68061         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
68062         Haible <bruno@clisp.org>.
68063
68064 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
68065
68066         * lib/regex_internal.h: Remove all references to
68067         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
68068         or better.
68069         (bitset_not, bitset_merge, bitset_not_merge):
68070         (bitset_mask, re_string_allocate, re_string_construct):
68071         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
68072         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
68073         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
68074         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
68075         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
68076         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
68077         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
68078         (re_acquire_state_context):
68079         Remove unnecessary forward decls.
68080         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
68081         Put __attribute at function definition,
68082         now that the function decl has been removed.
68083         * lib/regex_internal.c (re_string_peek_byte_case):
68084         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
68085         Likewise.
68086
68087 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
68088
68089         * m4/regex.m4: Add AC_PREREQ(2.50).
68090         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
68091
68092 2005-08-25  Simon Josefsson  <jas@extundo.com>
68093
68094         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
68095         __fsetlocking.
68096
68097 2005-08-25  Simon Josefsson  <jas@extundo.com>
68098
68099         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
68100         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
68101         GLIBC specific code.
68102
68103 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68104
68105         Make regex safe for g++.  This fixes one real bug (an "err"
68106         that should have been "*err").  g++ problem reported by
68107         Sam Steingold.
68108         * lib/regex_internal.h (re_calloc): New macro, consistent with
68109         re_malloc etc.  All callers of calloc changed to use re_calloc.
68110         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
68111         not int.  All callers changed.
68112         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
68113         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
68114         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
68115         (find_recover_state): Change "err" to "*err"; this fixes what
68116         appears to be a real bug.
68117         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
68118         versus int.
68119
68120 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68121
68122         * modules/regex (Depends-on): Add malloc, since the code
68123         assumes that !malloc(0) means failure.
68124
68125 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68126
68127         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
68128
68129         alloca modernization/simplification for regex.
68130         * lib/regex.c: Remove portability cruft for alloca.  This no longer
68131         needs to be at the start of the file, and can be moved into
68132         regex_internal.h and simplified.
68133         * lib/regex_internal.h: Include <alloca.h>.
68134         (__libc_use_alloca) [!defined _LIBC]: New macro.
68135         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
68136         now works outside glibc.
68137
68138 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68139
68140         * config/srclist.txt: Add glibc bugs 1241, 1245.
68141
68142 2005-08-25  Jim Meyering  <jim@meyering.net>
68143
68144         * lib/open-safer.c: Include <config.h>.
68145         Otherwise, we'd lose LARGEFILE support in any file using
68146         e.g. "fcntl--.h"
68147
68148 2005-08-25  Bruno Haible  <bruno@clisp.org>
68149
68150         * m4/minmax.m4: Require autoconf 2.52.
68151         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
68152         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
68153         alternatives of translit over the alphabet.
68154         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
68155
68156 2005-08-24  Simon Josefsson  <jas@extundo.com>
68157
68158         * tests/test-getpass.c: New file.
68159
68160 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68161
68162         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
68163         for GNU regex features.
68164
68165 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68166
68167         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
68168         * lib/regex.h (regerror): Likewise.
68169
68170         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
68171         requires this.  (The code never needed it.)
68172
68173         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
68174         All uses of recently-renamed identifiers changed to use the new,
68175         POSIX-compliant names.  The code will build and run just fine
68176         without these changes, but it's better to eat our own dog food
68177         and use the standard-conforming names.
68178
68179         * lib/regex.h: Fix a multitude of POSIX name space violations.
68180         These changes have an effect only for programs that define
68181         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
68182         do not change anything for programs compiled in the normal way.
68183         Also, there is no effect on the ABI.
68184
68185         (_REGEX_SOURCE): New macro.
68186         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
68187         defined and _GNU_SOURCE is not; this fixes a name space violation.
68188
68189         Rename the following macros to obey POSIX requirements.
68190         The old names are still visible as macros if _REGEX_SOURCE is defined.
68191         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
68192         RE_BACKSLASH_ESCAPE_IN_LISTS.
68193         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
68194         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
68195         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
68196         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
68197         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
68198         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
68199         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
68200         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
68201         (REG_INTERVALS): renamed from RE_INTERVALS.
68202         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
68203         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
68204         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
68205         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
68206         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
68207         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
68208         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
68209         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
68210         RE_UNMATCHED_RIGHT_PAREN_ORD.
68211         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
68212         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
68213         (REG_DEBUG): renamed from RE_DEBUG.
68214         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
68215         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
68216         unusual, since we can't clash with the POSIX REG_ICASE.
68217         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
68218         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
68219         (REG_NO_SUB): renamed from RE_NO_SUB.
68220         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
68221         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
68222         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
68223         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
68224         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
68225         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
68226         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
68227         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
68228         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
68229         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
68230         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
68231         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
68232         RE_SYNTAX_POSIX_MINIMAL_BASIC.
68233         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
68234         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
68235         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
68236         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
68237         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
68238         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
68239         (REG_FIXED): Renamed from REGS_FIXED.
68240         (REG_NREGS): Renamed from RE_NREGS.
68241
68242         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
68243         of other REG_* macros, since POSIX says the user is allowed to
68244         #undef these macros selectively.
68245
68246         (reg_errcode_t): Update comment stating what other tables need
68247         to be consistent.
68248
68249         Rename the following enum values to obey POSIX requirements.
68250         The old names are still visible as macros.
68251         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
68252         is not defined, since GNU is supposed to be a superset of POSIX as
68253         much as possible, and since we want reg_errcode_t to be a signed
68254         type for implementation consistency.
68255         (_REG_NOERROR): Renamed from REG_NOERROR.
68256         (_REG_NOMATCH): Renamed from REG_NOMATCH.
68257         (_REG_BADPAT): Renamed from REG_BADPAT.
68258         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
68259         (_REG_ECTYPE): Renamed from REG_ECTYPE.
68260         (_REG_EESCAPE): Renamed from REG_EESCAPE.
68261         (_REG_ESUBREG): Renamed from REG_ESUBREG.
68262         (_REG_EBRACK): Renamed from REG_EBRACK.
68263         (_REG_EPAREN): Renamed from REG_EPAREN.
68264         (_REG_EBRACE): Renamed from REG_EBRACE.
68265         (_REG_BADBR): Renamed from REG_BADBR.
68266         (_REG_ERANGE): Renamed from REG_ERANGE.
68267         (_REG_ESPACE): Renamed from REG_ESPACE.
68268         (_REG_BADRPT): Renamed from REG_BADRPT.
68269         (_REG_EEND): Renamed from REG_EEND.
68270         (_REG_ESIZE): Renamed from REG_ESIZE.
68271         (_REG_ERPAREN): Renamed from REG_ERPAREN.
68272         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
68273         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
68274         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
68275         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
68276
68277         (_REG_RE_NAME, _REG_RM_NAME): New macros.
68278         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
68279         changed.  But support the old name if the new one is not defined
68280         and if _REGEX_SOURCE.
68281
68282         Change the following member names in struct re_pattern_buffer.
68283         The old names are still supported if !_REGEX_SOURCE.
68284         The new names are always supported, regardless of _REGEX_SOURCE.
68285         (re_buffer): Renamed from buffer.
68286         (re_allocated): Renamed from allocated.
68287         (re_used): Renamed from used.
68288         (re_syntax): Renamed from syntax.
68289         (re_fastmap): Renamed from fastmap.
68290         (re_translate): Renamed from translate.
68291         (re_can_be_null): Renamed from can_be_null.
68292         (re_regs_allocated): Renamed from regs_allocated.
68293         (re_fastmap_accurate): Renamed from fastmap_accurate.
68294         (re_no_sub): Renamed from no_sub.
68295         (re_not_bol): Renamed from not_bol.
68296         (re_not_eol): Renamed from not_eol.
68297         (re_newline_anchor): Renamed from newline_anchor.
68298
68299         Change the following member names in struct re_registers.
68300         The old names are still supported if !_REGEX_SOURCE.
68301         The new names are always supported, regardless of _REGEX_SOURCE.
68302         (rm_num_regs): Renamed from num_regs.
68303         (rm_start): Renamed from start.
68304         (rm_end): Renamed from end.
68305
68306         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
68307         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
68308         Prepend __ to parameter names.
68309
68310         Undo yesterday's changes.
68311
68312 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68313
68314         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
68315         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
68316         lib/regex.c.
68317
68318 2005-08-24  Jim Meyering  <jim@meyering.net>
68319
68320         Sync from coreutils.
68321         * m4/fcntl-safer.m4: New file.
68322
68323         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
68324         and object files for this module.
68325
68326 2005-08-24  Jim Meyering  <jim@meyering.net>
68327
68328         Sync from coreutils.
68329         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
68330
68331 2005-08-24  Jim Meyering  <jim@meyering.net>
68332
68333         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
68334         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
68335
68336 2005-08-24  Jim Meyering  <jim@meyering.net>
68337
68338         * modules/fcntl-safer: New module.
68339         * modules/fts (Depends-on): Add fcntl-safer.
68340         * MODULES.html.sh (File descriptor based Input/Output):
68341         Add fcntl-safer.
68342
68343 2005-08-24  Bruno Haible  <bruno@clisp.org>
68344
68345         Support for unit test modules.
68346         * modules/README: Mention tests modules.
68347         * modules/TEMPLATE-TESTS: New file.
68348         * gnulib-tool: New options --extract-tests-module, --with-tests and
68349         --tests-base (unused for the moment).
68350         (testsbase, inctests): New variables.
68351         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
68352         (func_verify_module): Exclude TEMPLATE-TESTS.
68353         (func_verify_nontests_module, func_verify_tests_module): New functions.
68354         (func_get_dependencies): Add implicit dependency for tests modules.
68355         (func_get_tests_module): New function.
68356         (func_modules_transitive_closure): When --with-tests was specified,
68357         include the unit tests as well, unless explicitly avoided.
68358         (func_emit_lib_Makefile_am): Ignore the tests modules here.
68359         (func_emit_tests_Makefile_am): New function.
68360         (func_create_testdir): When --with-tests was specified, emit a
68361         tests/ directory.
68362         * MODULES.html.sh (Future developments): Update.
68363
68364 2005-08-24  Bruno Haible  <bruno@clisp.org>
68365
68366         * modules/tls-tests: New file.
68367         * tests/test-tls.c: New file, from GNU gettext.
68368
68369 2005-08-24  Bruno Haible  <bruno@clisp.org>
68370
68371         * modules/lock-tests: New file.
68372         * tests/test-lock.c: New file, from GNU gettext.
68373
68374 2005-08-24  Bruno Haible  <bruno@clisp.org>
68375
68376         * lib/lock.h: Add multiple inclusion guard.
68377         * lib/tls.h: Add multiple inclusion guard.
68378
68379 2005-08-24  Bruno Haible  <bruno@clisp.org>
68380
68381         * gnulib-tool: Add support for the --aux-dir option to
68382         --create-testdir, --create-megatestdir, --test, --megatest.
68383         (func_create_testdir, func_create_megatestdir): Optionally emit a
68384         AC_CONFIG_AUX_DIR directive.
68385         (create-testdir, create-megatestdir, test, megatest): Provide a
68386         default value for $auxdir.
68387
68388 2005-08-24  Bruno Haible  <bruno@clisp.org>
68389
68390         * gnulib-tool (import): Use compound statement instead of subshell
68391         where possible.
68392
68393 2005-08-24  Bruno Haible  <bruno@clisp.org>
68394
68395         * gnulib-tool (import): Change --aux-dir default to "build-aux".
68396
68397 2005-08-24  Bruno Haible  <bruno@clisp.org>
68398
68399         * gnulib-tool (func_version): Update.
68400
68401 2005-08-24  Bruno Haible  <bruno@clisp.org>
68402
68403         * gnulib-tool (func_import, func_create_testdir,
68404         func_create_megatestdir): Quote all autoconf macro arguments.
68405
68406 2005-08-24  Bruno Haible  <bruno@clisp.org>
68407
68408         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
68409         option --force, because --force causes the aclocal.m4 of each
68410         subdirectory to be newer than the corresponding config.h.in.
68411
68412 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68413
68414         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
68415         All contents moved to gl_REGEX.
68416         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
68417         assume that it does.
68418
68419 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68420
68421         * lib/regex.h (REG_NOSYS)
68422         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
68423         Define, since POSIX requires it as of 2001.
68424         (_REG_ENOSYS)
68425         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
68426         New private symbol, used to keep the enum signed in all cases.
68427         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
68428         Youngman in
68429         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
68430
68431         * lib/regex_internal.c (re_string_skip_chars, register_state):
68432         (calc_state_hash):
68433         Remove forward decls; no longer needed now that we use prototypes.
68434         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
68435         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
68436         (clean_state_log_if_needed): Likewise.
68437
68438 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68439
68440         * config/srclist.txt: Add glibc bugs 1231-1233.
68441
68442 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68443
68444         Fix problems reported by Sam Steingold in
68445         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
68446         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
68447         assumed that reg_errcode_t is a signed type, which is not
68448         necessarily true if _XOPEN_SOURCE is not defined.
68449         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
68450         since some compilers warn about it otherwise.
68451
68452 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68453
68454         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
68455         (init_word_char, create_initial_state, duplicate_node_closure):
68456         (fetch_token, peek_token_bracket, build_range_exp):
68457         (build_collating_symbol): Remove forward decls; no longer needed
68458         now that we use prototypes.
68459
68460         * lib/regcomp.c:
68461         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
68462         (re_compile_fastmap_iter, regcomp, regerror, regfree):
68463         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
68464         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
68465         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
68466         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
68467         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
68468         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
68469         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
68470         (build_range_exp, build_collating_symbol, parse_bracket_exp):
68471         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
68472         (build_charclass, build_charclass_op, fetch_number, create_tree):
68473         (create_token_tree, mark_opt_subexp, duplicate_tree):
68474         Use prototypes rather than old-style definitions.
68475
68476         * lib/regex_internal.c:
68477         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
68478         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
68479         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
68480         (re_string_reconstruct, re_string_peek_byte_case):
68481         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
68482         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
68483         (re_node_set_init_copy, re_node_set_add_intersect):
68484         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
68485         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
68486         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
68487         (re_acquire_state, re_acquire_state_context, register_state):
68488         (create_ci_newstate, create_cd_newstate, free_state):
68489         Likewise.
68490         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
68491         re_search_2):
68492         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
68493         (re_search_internal, prune_impossible_nodes):
68494         (acquire_init_state_context, check_matching, static):
68495         (check_halt_node_context, check_halt_state_context, proceed_next_node):
68496         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
68497         (update_regs, sift_states_backward, build_sifted_states):
68498         (clean_state_log_if_needed, merge_state_array):
68499         (update_cur_sifted_state, add_epsilon_src_nodes):
68500         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
68501         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
68502         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
68503         (find_recover_state, check_subexp_matching_top, transit_state_mb):
68504         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
68505         (check_arrival, check_arrival_add_next_nodes):
68506         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
68507         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
68508         (check_node_accept_bytes, check_node_accept, extend_buffers):
68509         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
68510         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
68511         (sift_ctx_init):
68512         Likewise.
68513
68514         * lib/regex_internal.h:
68515         (re_string_allocate, re_string_construct, re_string_reconstruct):
68516         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
68517         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
68518         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
68519         (re_string_context_at, re_string_peek_byte_case):
68520         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
68521         is defined, since we now use prototypes always.
68522
68523         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
68524         C89 or better.  All uses removed.
68525
68526 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68527
68528         * config/srclist.txt: Add glibc bugs 1220-1227.
68529
68530 2005-08-20  Jim Meyering  <jim@meyering.net>
68531
68532         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
68533         of unused local, dfa.
68534
68535 2005-08-20  Bruno Haible  <bruno@clisp.org>
68536
68537         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
68538
68539 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68540
68541         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
68542         (re_node_set_insert_last, re_dfa_add_node):
68543         Rename local variables to avoid GCC shadowing warnings.
68544
68545 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68546
68547         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
68548         [defined lint]: Suppress bogus uninitialized-variable warnings.
68549
68550         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
68551         and let the caller return REG_ESPACE if out of space.  This
68552         removes an uninitialied-variable warning with GCC 4.0.1, and also
68553         avoids taking the address of a local variable.  All callers
68554         changed.
68555
68556 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68557
68558         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
68559         $LIBCSRC/posix/regexec.c.
68560         Add glibc bug 1217 for regcomp.c.
68561
68562 2005-08-19  Jim Meyering  <jim@meyering.net>
68563
68564         * lib/regexec.c (proceed_next_node): Redo local variables to
68565         avoid GCC shadowing warnings.
68566
68567 2005-08-18  Bruno Haible  <bruno@clisp.org>
68568
68569         * lib/strstr.c (strstr): Fix return value in multibyte case.
68570         * lib/strcasestr.c (strcasestr): Likewise.
68571
68572 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
68573
68574         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
68575
68576 2005-08-17  Jim Meyering  <jim@meyering.net>
68577
68578         Make the %s format (seconds since the epoch) work for a negative
68579         number and when used with a zero-padded field width, e.g. %015s.
68580
68581         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
68582         label so that it precedes the code to set `digits'.  Otherwise,
68583         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
68584         print `00-22'.  Now, it prints `-0022', as it should.
68585
68586 2005-08-17  Bruno Haible  <bruno@clisp.org>
68587
68588         * modules/strstr (Files): Add m4/mbrtowc.m4.
68589         (Depends-on): Add mbuiter.
68590
68591 2005-08-17  Bruno Haible  <bruno@clisp.org>
68592
68593         * modules/strcasestr: New file.
68594         * MODULES.html.sh (String handling, based on ANSI C 89): Add
68595         strcasestr.
68596
68597 2005-08-17  Bruno Haible  <bruno@clisp.org>
68598
68599         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
68600
68601 2005-08-17  Bruno Haible  <bruno@clisp.org>
68602
68603         * modules/mbuiter: New file.
68604         * MODULES.html.sh (Extended multibyte and wide character utilities):
68605         Add mbuiter.
68606
68607 2005-08-17  Bruno Haible  <bruno@clisp.org>
68608
68609         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
68610         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
68611
68612 2005-08-17  Bruno Haible  <bruno@clisp.org>
68613
68614         * m4/strcasestr.m4: New file.
68615
68616 2005-08-17  Bruno Haible  <bruno@clisp.org>
68617
68618         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
68619         * lib/strstr.c: Completely rewritten, with multibyte locale support.
68620
68621 2005-08-17  Bruno Haible  <bruno@clisp.org>
68622
68623         * lib/strcasestr.h: New file.
68624         * lib/strcasestr.c: New file.
68625
68626 2005-08-17  Bruno Haible  <bruno@clisp.org>
68627
68628         * lib/strcasecmp.c: Use mbuiter.h.
68629
68630 2005-08-17  Bruno Haible  <bruno@clisp.org>
68631
68632         * lib/mbuiter.h: New file.
68633
68634 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
68635
68636         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
68637         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
68638         and gl_GETOPT are both invoked via different paths (as happens
68639         with GNU tar CVS because it uses both argp and getopt), the former
68640         wins.
68641
68642 2005-08-16  Bruno Haible  <bruno@clisp.org>
68643
68644         * modules/tls: New file.
68645         * MODULES.html.sh (Multithreading): Add tls.
68646
68647 2005-08-16  Bruno Haible  <bruno@clisp.org>
68648
68649         * modules/strnlen1: New file.
68650         * MODULES.html.sh (String handling): Add strnlen1.
68651
68652 2005-08-16  Bruno Haible  <bruno@clisp.org>
68653
68654         * modules/strcase (Files): Add m4/mbrtowc.m4.
68655         (Depends-on): Add strnlen1, mbchar.
68656
68657 2005-08-16  Bruno Haible  <bruno@clisp.org>
68658
68659         * modules/mbiter: New file.
68660         * MODULES.html.sh (Extended multibyte and wide character utilities):
68661         Add mbiter.
68662
68663 2005-08-16  Bruno Haible  <bruno@clisp.org>
68664
68665         * modules/mbfile: New file.
68666         * MODULES.html.sh (Extended multibyte and wide character utilities):
68667         Add mbfile.
68668
68669 2005-08-16  Bruno Haible  <bruno@clisp.org>
68670
68671         * modules/mbchar: New file.
68672         * MODULES.html.sh (Extended multibyte and wide character utilities):
68673         New section.
68674
68675 2005-08-16  Bruno Haible  <bruno@clisp.org>
68676
68677         * m4/tls.m4: New file, from GNU gettext.
68678
68679 2005-08-16  Bruno Haible  <bruno@clisp.org>
68680
68681         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
68682         always.
68683         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
68684
68685 2005-08-16  Bruno Haible  <bruno@clisp.org>
68686
68687         * m4/mbiter.m4: New file.
68688
68689 2005-08-16  Bruno Haible  <bruno@clisp.org>
68690
68691         * m4/mbfile.m4: New file.
68692
68693 2005-08-16  Bruno Haible  <bruno@clisp.org>
68694
68695         * m4/mbchar.m4: New file.
68696
68697 2005-08-16  Bruno Haible  <bruno@clisp.org>
68698
68699         * lib/tls.h: New file, from GNU gettext.
68700         * lib/tls.c: New file, from GNU gettext.
68701
68702 2005-08-16  Bruno Haible  <bruno@clisp.org>
68703
68704         * lib/strnlen1.h: New file.
68705         * lib/strnlen1.c: New file.
68706
68707 2005-08-16  Bruno Haible  <bruno@clisp.org>
68708
68709         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
68710         (mbi_init): Update.
68711         (mbi_avail, mbi_advance): Let the iteration end before the terminating
68712         NUL byte, not after it.
68713
68714 2005-08-16  Bruno Haible  <bruno@clisp.org>
68715
68716         * lib/strcase.h (strcasecmp): Add note in comments.
68717         * lib/strncasecmp.c: Use code from strcasecmp.c.
68718         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
68719         (strcasecmp): Work correctly in multibyte locales.
68720
68721 2005-08-16  Bruno Haible  <bruno@clisp.org>
68722
68723         * lib/mbiter.h: New file.
68724
68725 2005-08-16  Bruno Haible  <bruno@clisp.org>
68726
68727         * lib/mbfile.h: New file.
68728
68729 2005-08-16  Bruno Haible  <bruno@clisp.org>
68730
68731         * lib/mbchar.h: New file.
68732         * lib/mbchar.c: New file.
68733
68734 2005-08-16  Bruno Haible  <bruno@clisp.org>
68735
68736         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
68737         the valid ones. Makes the comparison operations transitive:
68738         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
68739         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
68740
68741 2005-08-15  Simon Josefsson  <jas@extundo.com>
68742
68743         * modules/ssize_t (License): Change to 'unlimited'.
68744
68745         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
68746
68747 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68748
68749         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
68750         Add comments for each pending glibc patch.
68751
68752 2005-08-15  Bruno Haible  <bruno@clisp.org>
68753
68754         * lib/regex.h (__restrict_arr): Don't define to __restrict if
68755         __cplusplus is defined.
68756
68757 2005-08-14  Jim Meyering  <jim@meyering.net>
68758
68759         Sync from coreutils.
68760
68761         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
68762         Use the hash-table-based cycle-detection code not just when
68763         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
68764         Reported by James Youngman in
68765         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
68766         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
68767         FTS_TIGHT_CYCLE_CHECK.
68768         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
68769         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
68770         once again.
68771         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
68772         * lib/fts.c (fd_safer): Remove decl.
68773         Include fcntl--.h rather than unistd-safer.h
68774         (fts_safe_changedir): Don't call fd_safer; no longer needed
68775         now that we include fcntl--.h.
68776
68777 2005-08-12  Simon Josefsson  <jas@extundo.com>
68778
68779         * modules/getndelim2: Use ssize_t module.
68780         * modules/getnline: Likewise.
68781         * modules/safe-read: Likewise.
68782         * modules/xreadlink: Likewise.
68783
68784         * modules/ssize_t: New file.
68785
68786 2005-08-12  Simon Josefsson  <jas@extundo.com>
68787
68788         * m4/readline.m4: Look for termcap, curses or ncurses if required.
68789
68790 2005-08-12  Simon Josefsson  <jas@extundo.com>
68791
68792         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68793         ssize_t.
68794
68795 2005-08-12  Simon Josefsson  <jas@extundo.com>
68796
68797         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
68798         readline, getdelim and check_version.
68799         (Support for systems lacking ISO C 99: Sizes of integer types):
68800         Add size_max.
68801
68802 2005-08-12  Bruno Haible  <bruno@clisp.org>
68803
68804         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
68805
68806 2005-08-11  Simon Josefsson  <jas@extundo.com>
68807
68808         * modules/readline: New file.
68809
68810         * modules/strnlen (Files): Add strnlen.h.
68811
68812 2005-08-11  Simon Josefsson  <jas@extundo.com>
68813
68814         * m4/readline.m4: New file.
68815
68816 2005-08-11  Simon Josefsson  <jas@extundo.com>
68817
68818         * lib/readline.h, readline.c: New file.
68819
68820 2005-08-11  Simon Josefsson  <jas@extundo.com>
68821
68822         * doc/gnulib.texi (Initial import, Finishing touches): Mention
68823         gl_AVOID.
68824
68825 2005-08-11  Bruno Haible  <bruno@clisp.org>
68826
68827         * lib/strnlen.h (strnlen): Change parameter name to match comment.
68828
68829 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
68830
68831         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
68832
68833 2005-08-10  Simon Josefsson  <jas@extundo.com>
68834
68835         * tests/test-iconvme.c: New file.
68836
68837 2005-08-10  Simon Josefsson  <jas@extundo.com>
68838
68839         * m4/strnlen.m4: New file.
68840
68841         * m4/strndup.m4: Don't check for strnlen declaration, done in
68842         strnlen.m4.
68843
68844 2005-08-10  Simon Josefsson  <jas@extundo.com>
68845
68846         * lib/strndup.c: Use strnlen.h.
68847
68848         * lib/strnlen.h: New file.
68849
68850 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
68851
68852         * README: Typos.
68853
68854 2005-08-02  Simon Josefsson  <jas@extundo.com>
68855
68856         * modules/readline: New file.
68857
68858 2005-08-02  Simon Josefsson  <jas@extundo.com>
68859
68860         * modules/getdelim: New file.
68861
68862         * modules/getline: Rewrite, don't use getndelim2.
68863
68864 2005-08-02  Simon Josefsson  <jas@extundo.com>
68865
68866         * m4/getline.m4: Separate out getdelim stuff into separate module.
68867
68868         * m4/getdelim.m4: New file.
68869
68870 2005-08-02  Simon Josefsson  <jas@extundo.com>
68871
68872         * lib/getline.h, getline.c: Rewrite.
68873
68874         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
68875
68876 2005-07-31  Bruno Haible  <bruno@clisp.org>
68877
68878         * lib/lock.h (gl_lock_initializer): New macro.
68879         (gl_lock_define_initialized): Use it.
68880         (gl_rwlock_initializer): New macro.
68881         (gl_rwlock_define_initialized): Use it.
68882         (gl_recursive_lock_initializer): New macro.
68883         (gl_recursive_lock_define_initialized): Use it.
68884
68885 2005-07-30  Karl Berry  <karl@gnu.org>
68886
68887         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
68888         Report from Ben Pfaff, regarding getopt.
68889
68890 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
68891
68892         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
68893         normal way.
68894         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
68895         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
68896         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
68897         (gl_GETOPT): Use the new macros.  Most of the implementation
68898         is moved to the new macros.  This is for programs like Emacs
68899         that don't want all the functionality of gl_GETOPT.
68900
68901 2005-07-26  Bruno Haible  <bruno@clisp.org>
68902
68903         * m4/lock.m4: Update from GNU gettext.
68904
68905 2005-07-26  Bruno Haible  <bruno@clisp.org>
68906
68907         * lib/lock.h: Update from GNU gettext.
68908         * lib/lock.c: Update from GNU gettext.
68909
68910 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
68911
68912         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
68913         obsolescent AC_TRY_RUN.  Include the default includes files, for
68914         'exit'.
68915
68916 2005-07-24  Bruno Haible  <bruno@clisp.org>
68917
68918         * modules/visibility: New file.
68919         * MODULES.html.sh (Misc): Add visibility.
68920
68921 2005-07-24  Bruno Haible  <bruno@clisp.org>
68922
68923         * m4/visibility.m4: New file.
68924
68925 2005-07-24  Bruno Haible  <bruno@clisp.org>
68926
68927         * doc/visibility.texi: New file.
68928
68929 2005-07-22  Bruno Haible  <bruno@clisp.org>
68930
68931         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
68932         $(ALLOCA_H), redundant through BUILT_SOURCES.
68933         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
68934         redundant through BUILT_SOURCES.
68935         * modules/byteswap (Makefile.am): Remove explicit dependency on
68936         $(BYTESWAP_H), redundant through BUILT_SOURCES.
68937         * modules/fnmatch (Makefile.am): Remove explicit dependency on
68938         $(FNMATCH_H), redundant through BUILT_SOURCES.
68939         * modules/getopt (Makefile.am): Remove explicit dependency on
68940         $(GETOPT_H), redundant through BUILT_SOURCES.
68941         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
68942         redundant through BUILT_SOURCES.
68943         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
68944         redundant through BUILT_SOURCES.
68945         * modules/stdbool (Makefile.am): Remove explicit dependency on
68946         $(STDBOOL_H), redundant through BUILT_SOURCES.
68947         * modules/stdint (Makefile.am): Remove explicit dependency on
68948         $(STDINT_H), redundant through BUILT_SOURCES.
68949         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
68950         Remove explicit dependency on $(SYSEXITS_H).
68951         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
68952
68953 2005-07-18  Simon Josefsson  <jas@extundo.com>
68954
68955         * lib/check-version.c (check_version): Accept identical versions too.
68956
68957 2005-07-18  Bruno Haible  <bruno@clisp.org>
68958
68959         * modules/lock: New file.
68960         * MODULES.html.sh (Multithreading): New section.
68961
68962 2005-07-18  Bruno Haible  <bruno@clisp.org>
68963
68964         * m4/lock.m4: New file, from GNU gettext.
68965
68966 2005-07-18  Bruno Haible  <bruno@clisp.org>
68967
68968         * lib/lock.h: New file, from GNU gettext.
68969         * lib/lock.c: New file, from GNU gettext.
68970
68971 2005-07-18  Bruno Haible  <bruno@clisp.org>
68972
68973         * lib/lock.h (gl_once_t): New type.
68974         (gl_once_define, gl_once): New macros.
68975         * lib/lock.c (fresh_once): New variable.
68976         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
68977         functions.
68978
68979 2005-07-16  Simon Josefsson  <jas@extundo.com>
68980
68981         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
68982         workaround, suggested by Bruno.
68983
68984 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
68985
68986         * modules/xalloc (Depends-on): Add xalloc-die.
68987         * modules/xvasprintf (Depends-on): Add xalloc-die.
68988
68989 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
68990
68991         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
68992         with a minor change.
68993
68994 2005-07-15  Bruno Haible  <bruno@clisp.org>
68995
68996         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
68997         When using lib/poll.c, define poll as rpl_poll.
68998
68999 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
69000
69001         * modules/argp (Depends-on): Remove unlocked-io.
69002
69003 2005-07-14  Derek Price  <derek@ximbiot.com>
69004
69005         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
69006         for glob symlink bug.
69007
69008 2005-07-14  Bruno Haible  <bruno@clisp.org>
69009
69010         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
69011         Instead, test for *_unlocked function declarations directly.
69012
69013 2005-07-11  Simon Josefsson  <jas@extundo.com>
69014
69015         * modules/size_max: New file.
69016
69017         * modules/xsize: Depend on size_max module for size_max.m4.
69018
69019 2005-07-11  Simon Josefsson  <jas@extundo.com>
69020
69021         * lib/size_max.h: New file.
69022
69023 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
69024
69025         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
69026         copyright symbol and the year.
69027         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
69028         (version_etc_va): Use parameterized copyright notice.
69029         Reword to conform to the current GNU coding standards.
69030
69031 2005-07-11  Karl Berry  <karl@gnu.org>
69032
69033         * doc/gnulib.texi (Quoting): new node.
69034         (Initial import): more info, from Patrice.
69035
69036 2005-07-11  Bruno Haible  <bruno@clisp.org>
69037
69038         * gnulib-tool (func_usage): Document option --avoid.
69039         (Command line options): Handle --avoid.
69040         (func_acceptable): New function.
69041         (func_modules_transitive_closure): Use it.
69042
69043 2005-07-11  Bruno Haible  <bruno@clisp.org>
69044
69045         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
69046         Reported by Jim Meyering.
69047
69048 2005-07-10  Bruno Haible  <bruno@clisp.org>
69049
69050         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
69051         Needed when size_t is smaller than 'unsigned int'.
69052         Reported by Paul Eggert.
69053
69054 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69055
69056         * modules/argp (Depends-on): Add unlocked-io
69057
69058 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69059
69060         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
69061         block of defines.
69062
69063 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
69064
69065         * config/srclist.txt: Comment out regcomp.c, since we have a porting
69066         fix now.
69067
69068 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
69069         and Paul Eggert  <eggert@cs.ucla.edu>
69070
69071         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
69072         in wint_t, not wchar_t.  Remove now-unnecessary cast.
69073
69074 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
69075
69076         * modules/regex (Files): Add lib/regex_internal.c,
69077         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
69078         (Depends-on): Add extensions.
69079         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
69080
69081 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
69082
69083         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
69084         pathconf.
69085         * m4/same.m4 (gl_SAME): Likewise.
69086         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
69087
69088         * m4/regex.m4: Adjust to new libc regex implementation.
69089         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
69090         all the .c and .h parts of (the new) regex.
69091         Quote the m4 stuff better.
69092         Check for RE_ICASE bug of old gnulib.
69093         Check for REG_STARTEND of recent libc.
69094         Rename local variables from jm_* to gl_*.
69095         Quote operand of "test -f".
69096         Say "recent enough" version of libc, not "version 2".
69097         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
69098         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
69099         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
69100         Remove check for btowc, isascii.
69101         Require AM_LANGINFO_CODESET.
69102
69103 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
69104
69105         * lib/regex.c, regex.h: Sync from libc.
69106         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
69107         * lib/regexec.c:
69108         New files, synced from libc, except that regex_internal.h
69109         currently has a small porting fix.
69110
69111 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
69112
69113         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
69114         regex_internal.c, regexec.c.
69115         Add regex_internal.h too, but as a comment, since the libc version
69116         is currently broken in gnulib mode.
69117
69118 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
69119
69120         Support programs like Emacs that use gnulib but not gettext.
69121         * MODULES.html.sh (Internationalization functions): Add gettext-h.
69122         * modules/gettext-h: New file.
69123         * modules/gettext (Files): Remove lib/gettext.h.
69124         (Depends-on): Add gettext-h.
69125         (Makefile.am): Remove lib_SOURCES.
69126         * modules/argmatch, modules/c-stack, modules/closeout:
69127         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
69128         * modules/execute, modules/file-type, modules/getaddrinfo:
69129         * modules/getopt, modules/human, modules/javacomp:
69130         * modules/javaexec, modules/mkdir-p, modules/obstack:
69131         * modules/openat, modules/pagealign_alloc, modules/pipe:
69132         * modules/quotearg, modules/regex, modules/rpmatch:
69133         * modules/unicodeio, modules/userspec, modules/version-etc:
69134         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
69135         * modules/xsetenv:
69136         Depend on gettext-h, not gettext.
69137
69138 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
69139
69140         * gnulib-tool (func_import): Add support for 'public domain' license.
69141         * modules/alloca, modules/atexit, modules/memmove:
69142         Now public domain, not GPL.
69143         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
69144         * modules/realloc, modules/strerror, modules/strtod:
69145         Now LGPL, not GPL.
69146
69147 2005-07-05  Bruno Haible  <bruno@clisp.org>
69148
69149         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
69150         autoconf CVS. Needed for mingw.
69151
69152 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69153
69154         Remove the dependency of the strftime module on the tzset module.
69155         * modules/strftime (Depends-on): Remove dependency on tzset.
69156
69157 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69158
69159         Remove the dependency of the strftime module on the tzset module.
69160         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
69161         gl_FUNC_TZSET_CLOBBER.
69162
69163 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69164
69165         Remove the dependency of the strftime module on the tzset module.
69166         * lib/strftime.c (my_strftime)
69167         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
69168         Copy the input structure, to work around some of the bug with
69169         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
69170         Solaris releases, you should also use the tzset module, but we won't
69171         require it as a dependency any more since we don't want LGPLed code
69172         to depend on GPLed code.
69173
69174 2005-07-02  Jim Meyering  <jim@meyering.net>
69175
69176         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
69177         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
69178         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
69179         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
69180
69181 2005-07-02  Jim Meyering  <jim@meyering.net>
69182
69183         * lib/backupfile.c (backup_args): Change a `0' to NULL.
69184
69185 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
69186
69187         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
69188         declares only 'struct timespec;' (!).
69189
69190 2005-07-01  Jim Meyering  <jim@meyering.net>
69191
69192         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
69193         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
69194         * lib/save-cwd.c, tempname.c:
69195         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
69196         and don't include <sys/file.h>).
69197
69198 2005-06-29  Jim Meyering  <jim@meyering.net>
69199
69200         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
69201         type name.  Use the variable name instead.
69202         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
69203         Likewise.
69204
69205 2005-06-28  Simon Josefsson  <jas@extundo.com>
69206
69207         * modules/check-version (Files): Add check-version.m4.
69208
69209 2005-06-28  Simon Josefsson  <jas@extundo.com>
69210
69211         * m4/check-version.m4: New file, suggested by Jim Meyering
69212         <jim@meyering.net>.
69213
69214 2005-06-28  Simon Josefsson  <jas@extundo.com>
69215
69216         * lib/check-version.h, lib/check-version.c: New files.
69217
69218 2005-06-28  Simon Josefsson  <jas@extundo.com>
69219
69220         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
69221         collision with global variable.  Better indentation.  Don't
69222         increment buffer pointer beyond buffer end.  Based on comments
69223         from Paul Eggert <eggert@cs.ucla.edu>.
69224
69225         * lib/base64.h: Indent.
69226
69227 2005-06-28  Simon Josefsson  <jas@extundo.com>
69228
69229         * doc/gnulib.texi (Library version handling): New section.
69230
69231 2005-06-28  Jim Meyering  <jim@meyering.net>
69232
69233         * check-module (find_included_lib_files): Hard-code another
69234         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
69235         but modules/fts-lgpl (correctly) does not list those files.
69236
69237         * modules/canonicalize (Files): Add lib/pathmax.h.
69238
69239 2005-06-25  Simon Josefsson  <jas@extundo.com>
69240
69241         * modules/check-version: New file.
69242
69243 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
69244
69245         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
69246         initializer of struct addrinfo, as an indication that we don't
69247         care how many members the structure has.
69248
69249 2005-06-24  Derek Price  <derek@ximbiot.com>
69250         and Bruno Haible  <bruno@clisp.org>
69251
69252         Remove stat module & update lstat.
69253         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
69254         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
69255         * m4/stat.m4: Remove this file.
69256
69257 2005-06-24  Derek Price  <derek@ximbiot.com>
69258         and Bruno Haible  <bruno@clisp.org>
69259
69260         Remove stat module & update lstat.
69261         * lib/stat.c: Remove this file...
69262         (slash_aware_lstat): ...moving this content and its support...
69263         * lib/lstat.c (rpl_lstat): ...into here.
69264         * lib/lstat.h: New file.
69265
69266 2005-06-24  Derek Price  <derek@ximbiot.com>
69267         and Bruno Haible  <bruno@clisp.org>
69268
69269         Remove stat module & update lstat.
69270         * config/srclist.txt (libc sources): Remove stat.
69271
69272 2005-06-24  Derek Price  <derek@ximbiot.com>
69273         and Bruno Haible  <bruno@clisp.org>
69274
69275         Remove stat module & update lstat.
69276         * MODULES.html.sh (stat): Remove.
69277         * MODULES.html: Regenerated.
69278         * modules/lstat (Description): Correct function name.
69279         (Files): Add "lstat.h".
69280         (Depends-on): Remove stat, add xalloc, stat-macros.
69281         * modules/stat: Remove this file.
69282         (Include): Add "lstat.h", remove <sys/stat.h>.
69283
69284 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
69285
69286         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
69287         (ranged_convert): Don't save conversion in a temporary struct.
69288         This causes a warning with GCC 4.0.0, and anyway in the typical
69289         case it's not worth the extra 100 bytes or so of code.
69290         (ranged_convert, __mktime_internal): When calling a function via a
69291         pointer P, use P () rather than (*P) (), as we now assume C89 or
69292         better.
69293
69294 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69295
69296         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
69297         "who -r" failed to give output.  Problem reported by Tim Waugh.
69298
69299         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
69300         (xcalloc): Use it to avoid needless tests.
69301         Problem reported by Jim Meyering.
69302
69303 2005-06-20  Derek Price  <derek@ximbiot.com>
69304
69305         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
69306         unnecessary for Autoconfs > 2.59c.
69307
69308 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69309
69310         * lib/argp.h (__option_is_short): Check upper limit of
69311         __key. Isprint() requires its argument to have the value
69312         of an unsigned char or EOF.
69313
69314 2005-06-16  Jim Meyering  <jim@meyering.net>
69315
69316         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
69317         when either N or S is zero.
69318
69319 2005-06-16  Derek Price  <derek@ximbiot.com>
69320
69321         * m4/bison.m4: Declare YACC & YFLAGS precious.
69322
69323 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
69324
69325         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
69326         multibyte string or pattern, fall back on unibyte matching.
69327         Problem reported by James Youngman.
69328
69329 2005-06-08  Bruno Haible  <bruno@clisp.org>
69330
69331         * modules/csharpcomp: New file.
69332         * MODULES.html.sh (C#): Add csharpcomp.
69333
69334 2005-06-08  Bruno Haible  <bruno@clisp.org>
69335
69336         * m4/csharpcomp.m4: New file, from GNU gettext.
69337
69338 2005-06-08  Bruno Haible  <bruno@clisp.org>
69339
69340         * lib/csharpcomp.h: New file, from GNU gettext.
69341         * lib/csharpcomp.c: New file, from GNU gettext.
69342         * lib/csharpcomp.sh.in: New file, from GNU gettext.
69343
69344 2005-06-08  Bruno Haible  <bruno@clisp.org>
69345
69346         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
69347         warning on mingw.
69348
69349 2005-06-07  Derek Price  <derek@ximbiot.com>
69350
69351         Sync from CVS.
69352         * lib/glob_.h: Indent nested #ifdef.
69353
69354 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
69355
69356         Sync from coreutils.
69357         Use "file name" when talking about file names, instead of "filename"
69358         or "path", as per the GNU coding standards.
69359         * lib/mkdir-p.c: Renamed from makepath.c.
69360         (make_dir_parents): Renamed from make_path.  All callers changed.
69361         * lib/mkdir-p.h: Likewise.  All includers changed.
69362         * lib/filenamecat.c: Renamed from path-concat.c.
69363         (file_name_concat): Renamed from path_concat.  All callers changed.
69364         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
69365         * lib/filenamecat.h: Likewise.  All includers changed.
69366         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
69367         in comments or local variable names.
69368         * lib/basename.c: Likewise.
69369         * lib/canonicalize.c, canonicalize.h: Likewise.
69370         * lib/dirname.c, dirname.h: Likewise.
69371         * lib/euidaccess.c: Likewise.
69372         * lib/exclude.c: Likewise
69373         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
69374         * lib/fsusage.c, fsuage.h: Likewise.
69375         * lib/fts.c, fts_.h: Likewise.
69376         * lib/getcwd.c: Likewise.
69377         * lib/getloadavg.c: Likewise.
69378         * lib/mkstemp.c: Likewise.
69379         * lib/mountlist.c, mountlist.h: Likewise.
69380         * lib/openat.c, openat.h: Likewise.
69381         * lib/readlink-stub.c: Likewise.
69382         * lib/readutmp.c, readutmp.h: Likewise.
69383         * lib/rename.c: Likewise.
69384         * lib/rmdir.c: Likewise.
69385         * lib/same.c: Likewise.
69386         * lib/savedir.c: Likewise.
69387         * lib/stripslash.c: Likewise.
69388         * lib/tempname.c: Likewise.
69389         * lib/xreadlink.c: Likewise.
69390         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
69391         All uses changed.
69392         * lib/exclude.h: Likewise.
69393
69394         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
69395         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
69396         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
69397         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
69398         * lib/pathmax.h: Include <limits.h> unconditionally, since other
69399         files have been getting away with it for years (MORE/BSD 4.3
69400         is extinct now).
69401         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
69402         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
69403
69404         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
69405         Define to 256, not 255, as per modern POSIX.
69406
69407 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
69408
69409         Sync from coreutils.
69410         Use "file name" when talking about file names, instead of "filename"
69411         or "path", as per the GNU coding standards.
69412         * MODULES.html.sh: mkdir-p renamed from makepath.
69413         filenamecat renamed from path-concat.
69414         * modules/filenamecat: Renamed from modules/path-concat.
69415         (Files): filenamecat.h and filenamecat.c renamed from
69416         path-concat.h and path-concat.c.
69417         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
69418         (Include): filenamecat.h, not path-concat.h.
69419         * modules/mkdir-p: Renamed from modules/makepath.
69420         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
69421         makepath.c.
69422         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
69423         (Include): mkdir-p.h, not makepath.h.
69424
69425 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
69426
69427         Sync from coreutils.
69428         * m4/mkdir-p.m4: Renamed from makepath.m4.
69429         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
69430         Rename files from makepath.c to mkdir-p.c, and from
69431         makepath.h to mkdir-p.h.
69432         * m4/filenamecat.m4: Renamed from path-concat.m4.
69433         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
69434         Rename files from path-concat.c to filenamecat.c,
69435         and from path-concat.h to filenamecat.h.
69436         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
69437         "file name" in local variables or comments.
69438         * m4/rename.m4: Likewise.
69439
69440 2005-06-01  Bruno Haible  <bruno@clisp.org>
69441
69442         * modules/csharpexec: New file.
69443         * MODULES.html.sh (C#): New section.
69444
69445 2005-06-01  Bruno Haible  <bruno@clisp.org>
69446
69447         * m4/csharp.m4: New file, from GNU gettext.
69448         * m4/csharpexec.m4: New file, from GNU gettext.
69449
69450 2005-06-01  Bruno Haible  <bruno@clisp.org>
69451
69452         * lib/csharpexec.h: New file, from GNU gettext.
69453         * lib/csharpexec.c: New file, from GNU gettext.
69454         * lib/csharpexec.sh.in: New file, from GNU gettext.
69455
69456 2005-05-31  Derek Price  <derek@ximbiot.com>
69457             Paul Eggert  <eggert@cs.ucla.edu>
69458
69459         Sync from cvs.
69460         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
69461
69462 2005-05-31  Derek Price  <derek@ximbiot.com>
69463             Paul Eggert  <eggert@cs.ucla.edu>
69464
69465         Sync from cvs.
69466         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
69467
69468 2005-05-29  Derek Price  <derek@ximbiot.com>
69469
69470         * config/srclist.txt (glob_.h, glob.c): Add these files.
69471
69472 2005-05-29  Derek Price  <derek@ximbiot.com>
69473
69474         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
69475         * modules/glob: New file.
69476         * modules/getlogin_r: Add link to POSIX spec in description.
69477
69478 2005-05-29  Derek Price  <derek@ximbiot.com>
69479             Paul Eggert  <eggert@cs.ucla.edu>
69480
69481         * m4/glob.m4: New file.
69482
69483 2005-05-29  Derek Price  <derek@ximbiot.com>
69484             Paul Eggert  <eggert@cs.ucla.edu>
69485
69486         * lib/glob_.h, lib/glob.c: New files.
69487
69488 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
69489
69490         * modules/fts (Files): Remove m4/inttypes-pri.m4.
69491         * modules/fts-lgpl (Depends-on): Remove gettext.
69492
69493 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
69494
69495         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
69496         and don't require gt_INTTYPES_PRI.
69497
69498 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
69499
69500         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
69501
69502         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
69503         the configuration hassle isn't worth it.
69504         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
69505         (LONGEST_MODIFIER, PRIuMAX): Remove.
69506
69507 2005-05-27  Bruno Haible  <bruno@clisp.org>
69508
69509         * lib/getlogin_r.h: Remove second include of <stddef.h>.
69510
69511 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
69512
69513         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
69514         _POSIX_PTHREAD_SEMANTICS for Solaris.
69515
69516 2005-05-25  Derek Price  <derek@ximbiot.com>
69517
69518         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
69519
69520 2005-05-25  Derek Price  <derek@ximbiot.com>
69521             Paul Eggert  <eggert@cs.ucla.edu>
69522
69523         * modules/getlogin_r, m4/getlogin_r.m4: New files.
69524         * lib/getlogin_r.c, getlogin_r.h: New files.
69525
69526 2005-05-25  Bruno Haible  <bruno@clisp.org>
69527             Derek Price  <derek@ximbiot.com>
69528
69529         * lib/getlogin_r.h: Simplify API documentation.
69530
69531 2005-05-23  Derek Price  <derek@ximbiot.com>
69532
69533         * modules/minmax (Files): Add m4/minmax.m4.
69534         (configure.ac): Add gl_MINMAX.
69535
69536 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
69537
69538         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
69539         so that unistd-safer.h (GPL'ed code) need not be included.
69540
69541 2005-05-22  Bruno Haible  <bruno@clisp.org>
69542
69543         * m4/minmax.m4: New file.
69544         Based on a patch by Derek Price <derek@ximbiot.com>.
69545
69546 2005-05-22  Bruno Haible  <bruno@clisp.org>
69547
69548         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
69549         (INT64_MIN): Fix definition.
69550         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
69551
69552         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
69553         NEED_SIGNED_INT_TYPES.
69554
69555         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
69556         HAVE_SYSTEM_INTTYPES.
69557
69558 2005-05-22  Bruno Haible  <bruno@clisp.org>
69559
69560         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
69561         Also include <sys/param.h> if it defines MIN, MAX.
69562         Based on a patch by Derek Price <derek@ximbiot.com>.
69563
69564 2005-05-21  Jim Meyering  <jim@meyering.net>
69565
69566         * modules/fts (Files): Add m4/inttypes-pri.m4.
69567         (Depends-on): Add lstat and remove gettext.  Alphabetize.
69568
69569 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
69570
69571         New fts module.
69572         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
69573         (setup_dir, free_dir): New functions.
69574         (enter_dir, leave_dir): Define trivial
69575         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
69576         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
69577         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
69578         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
69579         Move to fts-cycle.c.
69580         (fts_open): Use setup_dir.
69581         (fts_close): Use free_dir.
69582         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
69583         This adds a label and some gotos, but the alternatives were messier.
69584         Check for memory allocation failure when entering a dir.
69585         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
69586         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
69587         (FTS): New member fts_cycle, that is a union that contains the
69588         old active_dir_ht and cycle_state.  All uses changed to mention
69589         fts_cycle.ht and fts_cycle.state.
69590         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
69591         fts.c, with the following changes:
69592         (setup_dir, free_dir): New functions.
69593         (enter_dir): Now returns bool.  Return true if successful, false
69594         if memory exhausted.  All callers changed.
69595         Do not bother partly cleaning up on
69596         memory allocation failure; that is free_dir's job.
69597         However, free ad if hash_insert fails, to avoid memory leak.
69598         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
69599         fts->fts_options to see which union member to use.
69600
69601 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
69602
69603         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
69604         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
69605
69606 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
69607
69608         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
69609
69610 2005-05-20  Jim Meyering  <jim@meyering.net>
69611
69612         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
69613         Now a macro, to pacify GCC.
69614
69615 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
69616
69617         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
69618         of -1.
69619
69620 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
69621
69622         * lib/chown.c (rpl_chown): Return -1 on failure.
69623
69624 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
69625
69626         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
69627         Don't check for stddef.h.
69628         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
69629         don't use its results.
69630         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
69631         since we include them unconditionally.  Don't require
69632         AM_STDBOOL_H, since stdbool is a prerequisite.
69633         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
69634         since we assume C89 or better.
69635         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
69636         as we don't use their results.
69637         Don't check for fchdir, memmove, memset, strrchr, as we use
69638         them unconditionally.
69639         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
69640         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
69641
69642 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
69643
69644         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
69645         Include <stddef.h> unconditionally, since we assume C89 now.
69646         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
69647         * lib/fts.c: Include fts_.h first, to check interface.
69648         Do not include intprops.h; no longer needed.
69649         Include cycle-check.h and hash.h, since fts_.h no longer does.
69650         Remove unnecessary casts of closedir to void.
69651         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
69652         decide whether to decrement nlinks.
69653         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
69654         (FTS): Use struct hash_table * instead of Hash_table, so that
69655         we no longer need to include hash.h here.
69656
69657 2005-05-18  Jim Meyering  <jim@meyering.net>
69658
69659         * modules/dirfd (License): Change to LGPL.  Most of the code
69660         is already in the public domain.
69661
69662 2005-05-18  Jim Meyering  <jim@meyering.net>
69663
69664         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
69665         Reported by Yoann Vandoorselaere.
69666
69667 2005-05-17  Jim Meyering  <jim@meyering.net>
69668
69669         * m4/fts.m4: New file, from coreutils.
69670
69671 2005-05-17  Jim Meyering  <jim@meyering.net>
69672
69673         * lib/fts.c, lib/fts_.h: New files, from coreutils.
69674
69675 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
69676
69677         Sync from coreutils.
69678         * m4/unlinkdir.m4: New file.
69679
69680 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
69681
69682         Sync from coreutils.
69683         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
69684         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
69685         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
69686         White space changes only.
69687         * lib/makepath.c (make_path): Port to hosts where leading "//" is
69688         special.
69689         * lib/yesno.c: Include getline.h, not ctype.h.
69690         (yesno): Don't remove leading white space; POSIX doesn't allow it.
69691         Use getline to remove arbitrary restriction on response length.
69692
69693 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
69694
69695         * config/srclist-update: Spell out "Street" in FSF postal
69696         mail address; this is the style the FSF seems to prefer.
69697
69698         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
69699         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
69700         this updates FSF postal mail address.
69701
69702         Sync from coreutils.
69703         * modules/unlinkdir: New file.
69704         * modules/yesno (Depends-on): Add getline.
69705         * MODULES.html.sh (File system functions): Add unlinkdir.
69706
69707 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
69708
69709         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
69710         lib/strsep.h:
69711         Change the initial comment to refer to GPL, not LGPL.
69712         gnulib-tool will change it to LGPL as needed.
69713
69714         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
69715         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
69716         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
69717         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
69718         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
69719         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
69720         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
69721         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
69722         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
69723         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
69724         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
69725         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
69726         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
69727         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
69728         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
69729         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
69730         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
69731         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
69732         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
69733         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
69734         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
69735         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
69736         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
69737         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
69738         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
69739         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
69740         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
69741         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
69742         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
69743         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
69744         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
69745         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
69746         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
69747         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
69748         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
69749         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
69750         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
69751         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
69752         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
69753         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
69754         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
69755         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
69756         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
69757         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
69758         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
69759         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
69760         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
69761         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
69762         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
69763         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
69764         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
69765         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
69766         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
69767         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
69768         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
69769         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
69770         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
69771         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
69772         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
69773         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
69774         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
69775         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
69776         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
69777         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
69778         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
69779         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
69780         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
69781         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
69782         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
69783         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
69784         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
69785         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
69786         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
69787         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
69788         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
69789         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
69790         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
69791         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
69792         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
69793         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
69794         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
69795         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
69796         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
69797         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
69798         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
69799         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
69800         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
69801         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
69802         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
69803         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
69804         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
69805         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
69806         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
69807         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
69808         lib/yesno.c, lib/yesno.h:
69809         Update FSF postal mail address.
69810
69811 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
69812
69813         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
69814         tests/test-memmem.c, tests/test-stpncpy.c:
69815         Update FSF postal mail address.
69816
69817 2005-05-13  Bruno Haible  <bruno@clisp.org>
69818
69819         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
69820         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
69821         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
69822         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
69823         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
69824         Add support for 64-bit integers in the MSVC compiler.
69825
69826 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69827
69828         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
69829
69830 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
69831
69832         * gnulib-tool (func_import): Sort and uniquify recommended includes.
69833
69834 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
69835
69836         * doc/getdate.texi (General date syntax): Don't say that date
69837         date --iso-8601=ns generates acceptable dates; it doesn't yet.
69838         Problem reported by Nic Ferrier.
69839
69840 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69841
69842         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
69843         specified in ai_socktype. Fix invalid ai_protocol
69844         check. ai_protocol is usually set to 0 or depending on
69845         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
69846         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
69847         ai_socktype / ai_protocol in the returned addrinfo structure.
69848
69849 2005-05-10  Simon Josefsson  <jas@extundo.com>
69850
69851         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
69852         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
69853
69854 2005-05-10  Karl Berry  <karl@gnu.org>
69855
69856         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
69857         (from http://www.gnu.org/licenses).
69858         * doc/COPYING.LIB: also rename to COPYING.LESSER.
69859         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
69860         fdl.texi suffices.
69861
69862 2005-05-10  Karl Berry  <karl@gnu.org>
69863
69864         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
69865         (COPYING.DOC): remove.
69866
69867         * config/srclist-update: new FSF address.
69868
69869 2005-05-10  Derek Price  <derek@ximbiot.com>
69870
69871         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
69872         possible.
69873
69874 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69875             Bruno Haible  <bruno@clisp.org>
69876
69877         * modules/inet_ntop: New file.
69878         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69879         inet_ntop.
69880
69881 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69882             Bruno Haible  <bruno@clisp.org>
69883
69884         * m4/inet_ntop.m4: New file.
69885
69886 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69887             Bruno Haible  <bruno@clisp.org>
69888
69889         * lib/inet_ntop.h: New file.
69890         * lib/inet_ntop.c: New file, from glibc with modifications.
69891
69892 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
69893
69894         * modules/time_r (License): Change to LGPL.
69895         * modules/extensions (License): Change to LGPL.  Actually,
69896         the license is more permissive than that, but currently gnulib-tool
69897         doesn't know how to handle more-permissive licenses.
69898
69899         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
69900         Problem reported by Dave Love.
69901
69902 2005-05-08  Jim Meyering  <jim@meyering.net>
69903
69904         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
69905         blank.
69906
69907 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
69908
69909         * modules/argmatch (Depends-on): Add stdbool.
69910         * modules/backupfile (Depends-on): Likewise.
69911         * modules/chdir-long (Depends-on): Likewise.
69912         * modules/closeout (Depends-on): Likewise.
69913         * modules/cycle-check (Depends-on): Likewise.
69914         * modules/dirname (Depends-on): Likewise.
69915         * modules/fnmatch (Depends-on): Likewise.
69916         * modules/fsusage (Depends-on): Likewise.
69917         * modules/fwriteerror (Depends-on): Likewise.
69918         * modules/getcwd (Depends-on): Likewise.
69919         * modules/getloadavg (Depends-on): Likewise.
69920         * modules/hard-locale (Depends-on): Likewise.
69921         * modules/makepath (Depends-on): Likewise.
69922         * modules/mountlist (Depends-on): Likewise.
69923         * modules/nanosleep (Depends-on): Likewise.
69924         * modules/posixtm (Depends-on): Likewise.
69925         * modules/quotearg (Depends-on): Likewise.
69926         * modules/readtokens (Depends-on): Likewise.
69927         * modules/readtokens0 (Depends-on): Likewise.
69928         * modules/readutmp (Depends-on): Likewise.
69929         * modules/save-cwd (Depends-on): Likewise.
69930         * modules/strftime (Depends-on): Likewise.
69931         * modules/userspec (Depends-on): Likewise.
69932         * modules/utimecmp (Depends-on): Likewise.
69933         * modules/xgetcwd (Depends-on): Likewise.
69934         * modules/xnanosleep (Depends-on): Likewise.
69935         * modules/xstrtod (Depends-on): Likewise.
69936         * modules/yesno (Depends-on): Likewise.
69937
69938 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
69939
69940         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
69941         needless checks.
69942
69943 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
69944
69945         Merge from coreutils.  Among other things,
69946         add bulletproofing for cases where stdin, stdout, or stderr are closed.
69947         * lib/fd-safer.c: New file.
69948         * lib/fcntl-safer.h, open-safer.c: Remove.
69949         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
69950         * lib/dup-safer.c: Include unistd-safer.h first.
69951         Don't include errno.h.
69952         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
69953         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
69954         * lib/file-type.c: Rely on file-type.h change.
69955         * lib/getloadavg.c: Include unistd-safer.h.
69956         (getloadavg): Use safer open.
69957         * lib/getusershell.c: Include "stdio-safer.h".
69958         (getusershell): Use safer fopen.
69959         * lib/long-options.c (long_options): Use NULL rather than 0.
69960         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
69961         'free'.
69962         * lib/modechange.c: Likewise.
69963         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
69964         (MODE_DONE): New constant.
69965         (struct mode_change): Remove 'next' member.
69966         (make_node_op_equals): New function; like the old one of the
69967         same name, except it allocates an array.
69968         (mode_compile, mode_create_from_ref): Use it.
69969         (mode_compile): Allocate result as an array, not a linked list.
69970         Parse octal string ourself, so that we catch mistakes like "+0".
69971         (mode_adjust): Arg is an array, not a linked list.
69972         * lib/modechange.c: Include stat-macros.h, xalloc.h.
69973         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
69974         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
69975         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
69976         Remove.  This is now stat-macros.h's job.
69977         (talloc): Remove.  All callers replaced by xalloc, so that
69978         our invokers don't have to worry about reporting memory failures.
69979         (make_node_op_equals): Remove.
69980         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
69981         New constants.
69982         (struct mode_change): Moved here from modechange.h.
69983         (mode_append_entry): Remove.
69984         (mode_compile): Remove MASKED_OPS arg, since it encouraged
69985         apps to have incorrect behavior.  Use simpler algorithm for head
69986         and tail.  Don't futz with umask; that's now the job of mode_adjust.
69987         Detect more invalid usages rather than having somewhat-random behavior.
69988         Don't insert an "a=" action, as that leads to incorrect behavior.
69989         (mode_compile, mode_create_from_ref): Return NULL on error instead
69990         of an enum, since now there's only one way to have an error.  All
69991         callers changed.
69992         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
69993         at the correct time.  Simplify calculation of "+u" and its ilk.
69994         Don't mishandle "+X".
69995         (mode_free): Remove "register" and localize decls.
69996         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
69997         (struct mode_change): Move to modechange.c; callers don't
69998         need to see this stuff.
69999         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
70000         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
70001         (mode_change, mode_adjust): Reflect the new signatures noted above.
70002         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
70003         that might redefine system include files.
70004         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
70005         (my_usleep): Use NULL rather than (void *) 0.
70006         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
70007         Use siginterrupt to specify that system calls should be interrupted.
70008         (rpl_nanosleep): Move initialization of suspended closer to call of
70009         my_usleep.
70010         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
70011         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
70012         (desirable_utmp_entry): New function.
70013         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
70014         using x2nrealloc, to simplify logic.
70015         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
70016         size calculation.  Do not assume utmp file is a regular file.
70017         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
70018         (READ_UTMP_CHECK_PIDS): New constant.
70019         * lib/save-cwd.c: Include unistd-safer.h.
70020         (save_cwd): Use fd_safer.
70021         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
70022         [!_LIBC] Include "stat-macros.h" instead.
70023         * lib/unistd-safer.h (fd_safer): New decl.
70024
70025 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
70026
70027         * modules/getloadavg (Depends-on): Add unistd-safer.
70028         * modules/getusershell (Depends-on): Add stdio-safer.
70029         * modules/lstat (Depends-on): Remove xalloc.
70030         * modules/mkstemp (Depends-on): Add stat-macros.
70031         * modules/modechange (Depends-on): Remove xstrtol.
70032         Add stat-macros, xalloc.
70033         * modules/save-cwd (Depends-on): Add unistd-safer.
70034         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
70035         * modules/unistd-safer (Files): Add lib/fd-safer.c
70036         (Makefile.am): Remove lib_SOURCES.
70037
70038         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
70039         Remove fcntl-safer; unistd-safer supersedes it.
70040
70041 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
70042
70043         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
70044         AC_HEADER_STAT.
70045         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
70046         (gl_PREREQ_CHOWN): Remove.
70047         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
70048         it.  Don't require AC_HEADER_STAT.
70049         (gl_PREREQ_LSTAT): Remove.
70050         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
70051         Don't require AC_HEADER_STAT.
70052         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
70053         (gl_PREREQ_RMDIR): Remove.
70054         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
70055         mention stat-macros.h or AC_HEADER_STAT, since we'll make
70056         the stat-macros module a prerequisite.
70057         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
70058         * m4/filemode.m4 (gl_FILEMODE): Likewise.
70059         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
70060         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
70061         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
70062         variable names.
70063         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
70064         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
70065         variable prefixes.
70066         * m4/fcntl-safer.m4: Remove.
70067         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
70068         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
70069         Invoke gl_PREREQ_FD_SAFER.
70070         (gl_PREREQ_FD_SAFER): New macro.
70071         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
70072         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
70073         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
70074         Remove duplicate call to AC_LIBOBJ(readutmp).
70075         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
70076
70077         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
70078         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
70079
70080 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
70081
70082         * MODULES.html.sh (Misc): Add byteswap.
70083
70084 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
70085
70086         * modules/getcwd (Depends-on): Add extensions.
70087         * modules/openat (Depends-on): Likewise.
70088
70089 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
70090
70091         * modules/byteswap: New file.
70092
70093 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
70094
70095         * m4/byteswap.m4: New file.
70096
70097 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
70098
70099         * lib/byteswap_.h: New file.
70100
70101 2005-04-25  Karl Berry  <karl@gnu.org>
70102
70103         * m4/gettext.m4: Update from GNU gettext 0.14.4.
70104
70105 2005-04-25  Albert Chin  <china@thewrittenword.com>
70106
70107         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
70108         Toolkit C bug.
70109
70110 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
70111
70112         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
70113         (func_ln_if_changed): Remove forcibly for no error message
70114         in case file does not exist.
70115
70116 2005-04-19  Simon Josefsson  <jas@extundo.com>
70117
70118         * gnulib-tool (Options): Make --symlink mean --symbolic.
70119
70120 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
70121
70122         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
70123
70124 2005-04-16  Simon Josefsson  <jas@extundo.com>
70125
70126         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
70127
70128 2005-04-15  Simon Josefsson  <jas@extundo.com>
70129
70130         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
70131
70132 2005-04-15  Simon Josefsson  <jas@extundo.com>
70133
70134         * gnulib-tool: Rename --symlink to --symbolic.
70135
70136 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
70137
70138         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
70139         symbolic links to files instead of copying/moving.  Add --aux-dir,
70140         specifying directory relative --dir where auxiliary build tools
70141         are placed.
70142
70143 2005-04-14  Bruno Haible  <bruno@clisp.org>
70144
70145         * modules/allocsa (License): Change to LGPL.
70146         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
70147
70148 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
70149
70150         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
70151         that "UTC +1 second" continues to work.  Problem reported
70152         by Dmitry V. Levin.
70153         (relunit_snumber): New rule.
70154         (relunit): Use it.
70155
70156 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
70157
70158         * lib/getdate.y (universal_time_zone_table): New constant.
70159         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
70160         universal_time_zone_table.
70161         (lookup_zone): Prefer universal_time_zone_table to
70162         local_time_zone_table, so that "GMT" time stamps are allowed in
70163         London during the summer.  Problem reported by Ian Abbott.
70164
70165 2005-04-12  Jim Meyering  <jim@meyering.net>
70166
70167         * lib/human.c (humblock): Set *options even when returning due to
70168         xstrtoumax conversion failure.  Thanks to a used-uninitialized
70169         warning from gcc-4.
70170
70171 2005-04-09  Jim Meyering  <jim@meyering.net>
70172
70173         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
70174         -Wuninitialized: initialize tm0.tm_year.
70175
70176 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
70177
70178         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
70179         count, since there's no maximum.  All uses changed.
70180         Add member dsts_seen.
70181         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
70182         not being INT_MAX.
70183         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
70184         Use pc_rels_seen to decide whther a date is absolute.
70185
70186         * lib/getdate.y (number): Don't overwrite year.
70187         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
70188         check.
70189
70190 2005-04-02  Simon Josefsson  <jas@extundo.com>
70191
70192         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
70193         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
70194
70195 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
70196
70197         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
70198         where no absolute path name can be longer than PATH_MAX.
70199
70200 2005-03-27  Jim Meyering  <jim@meyering.net>
70201
70202         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
70203
70204 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
70205
70206         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
70207         "one's complement" -> "ones' complement" in comment, as per Knuth.
70208         "value of type" -> "type or expression" in comment.
70209         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
70210
70211 2005-03-26  Jim Meyering  <jim@meyering.net>
70212
70213         Comment nits.
70214         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
70215         Correct typos: s/or/of/.
70216
70217 2005-03-26  Jim Meyering  <jim@meyering.net>
70218
70219         * modules/check-include-files: Move to ../ and rename to...
70220         * check-module: ...this.
70221
70222 2005-03-25  Jim Meyering  <jim@meyering.net>
70223
70224         * modules/xvasprintf (Files): Add xalloc.h.
70225
70226 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
70227
70228         * modules/gettext (Files): config/config.rpath ->
70229         build-aux/config.rpath
70230         * modules/iconv (Files): Likewise.
70231         Problem reported by Oskar Liljeblad.
70232
70233 2005-03-23  Jim Meyering  <jim@meyering.net>
70234
70235         * modules/check-include-files: New script to check for
70236         missing dependencies, multiple includes, etc.
70237
70238         * modules/c-strtold (Depends-on): Add xalloc.
70239         * modules/c-strtod (Depends-on): Add xalloc.
70240         * modules/hash (Depends-on): Add xalloc.
70241         (Files): Remove lib/xalloc.h.
70242
70243         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
70244         * modules/userspec (Files): Add lib/inttostr.h.
70245
70246 2005-03-23  Jim Meyering  <jim@meyering.net>
70247
70248         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
70249
70250 2005-03-22  Jim Meyering  <jim@meyering.net>
70251
70252         * modules/stat-macros: New module.
70253         * modules/canonicalize, modules/euidaccess, modules/file-type,
70254         * modules/filemode, modules/lchown, modules/makepath,
70255         * modules/rmdir, modules/stat: Depend on new stat-macros module
70256         rather than listing lib/stat-macros.h manually.
70257         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
70258
70259 2005-03-22  Jim Meyering  <jim@meyering.net>
70260
70261         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
70262
70263 2005-03-22  Bruno Haible  <bruno@clisp.org>
70264
70265         * config/srclist.txt: Replace target directory 'config' with
70266         'build-aux'.
70267         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
70268         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
70269         ../build-aux/.
70270
70271 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
70272
70273         * modules/chdir-long (Depends-on): Add mempcpy.
70274
70275         * modules/acl, modules/backupfile, modules/c-strtod,
70276         modules/c-strtold, modules/canon-host, modules/canonicalize,
70277         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
70278         modules/exclude, modules/exitfail, modules/file-type,
70279         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
70280         modules/getdate, modules/getline, modules/getpagesize,
70281         modules/getpass, modules/getugroups, modules/group-member,
70282         modules/hard-locale, modules/hash, modules/human, modules/idcache,
70283         modules/inttostr, modules/long-options, modules/makepath,
70284         modules/md5, modules/memcasecmp, modules/memcoll,
70285         modules/modechange, modules/mountlist, modules/path-concat,
70286         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
70287         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
70288         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
70289         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
70290         modules/strftime, modules/strndup, modules/strverscmp,
70291         modules/timespec, modules/unlocked-io, modules/userspec,
70292         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
70293         modules/yesno:
70294         Remove lib_SOURCES line from Makefile.am section, as this is now
70295         done automatically by the corresponding Autoconf macro.
70296
70297 2005-03-21  Jim Meyering  <jim@meyering.net>
70298
70299         Changes imported from coreutils.
70300
70301         * lib/cycle-check.c: Don't include xalloc.h.
70302
70303         * lib/path-concat.c: Don't include assert.h.
70304         (path_concat): Remove assertion that would have triggered
70305         for ABASE starting with more than one slash.
70306         Reported by Andreas Schwab.
70307
70308         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
70309         properly when ABASE is an absolute file name.
70310         Correct the description of this function.
70311         Include <assert.h>.
70312         Add an assertion and a test driver.
70313         This fixes a bug introduced on 2004-07-02.
70314         Andreas Schwab reported the resulting failure of cp --parents:
70315         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
70316
70317 2005-03-21  Jim Meyering  <jim@meyering.net>
70318
70319         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
70320         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
70321
70322 2005-03-21  Jim Meyering  <jim@meyering.net>
70323         and  Paul Eggert  <eggert@cs.ucla.edu>
70324
70325         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
70326         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
70327         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
70328         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
70329         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
70330         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
70331         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
70332         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
70333         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
70334         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
70335         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
70336         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
70337         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
70338         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
70339         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
70340         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
70341         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
70342         for these modules.
70343
70344 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
70345
70346         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
70347         (which shouldn't happen), generate nothing instead of returning 0
70348         immediately, so that nstrftime (NULL, ...) doesn't return 0.
70349
70350 2005-03-16  Bruno Haible  <bruno@clisp.org>
70351
70352         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
70353         HAVE_LONGLONG_64BIT.
70354
70355 2005-03-16  Bruno Haible  <bruno@clisp.org>
70356
70357         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
70358         HAVE_LONGLONG_64BIT.
70359
70360 2005-03-16  Bruno Haible  <bruno@clisp.org>
70361
70362         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
70363         HAVE_LONGLONG_64BIT.
70364
70365 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
70366
70367         * lib/strftime.c (my_strftime): Prepend space to format so that we can
70368         reliably distinguish strftime failure from empty output on POSIX
70369         hosts.
70370
70371 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
70372
70373         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
70374         (iconv_string): Don't guess a size-zero buffer, as that might cause
70375         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
70376         result would be 'too large', where 'too large' is (heuristically)
70377         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
70378         overflow concerns.  This will prevent some unwanted malloc failures
70379         when the inputs are very large.
70380
70381 2005-03-15  Karl Berry  <karl@gnu.org>
70382
70383         * config/srclist.txt (config.rpath): from gettext.
70384         * config/config.rpath: update.
70385
70386 2005-03-15  Bruno Haible  <bruno@clisp.org>
70387
70388         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
70389         to 'negate'.
70390
70391         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
70392         variable.
70393
70394         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
70395         results.
70396
70397 2005-03-14  Simon Josefsson  <jas@extundo.com>
70398
70399         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
70400         <fx@gnu.org>.
70401
70402 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
70403
70404         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
70405         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
70406         intprops.h.
70407         * lib/strtol.c: Likewise.
70408
70409 2005-03-14  Jim Meyering  <jim@meyering.net>
70410
70411         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
70412         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
70413         to be nonzero so that we (and caller) can detect the difference
70414         between a valid zero-length expansion and an error return, even
70415         when the underlying strftime fails before writing anything into
70416         that location.
70417
70418 2005-03-14  Bruno Haible  <bruno@clisp.org>
70419
70420         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
70421         Update from GNU gettext 0.14.3.
70422
70423 2005-03-10  Jim Meyering  <jim@meyering.net>
70424
70425         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
70426
70427 2005-03-10  Jim Meyering  <jim@meyering.net>
70428
70429         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
70430         so that this module works on systems without fchdir.
70431
70432 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
70433
70434         Factor int-properties macros into a single file, except for
70435         glibc-related files.
70436         * lib/intprops.h: New file.
70437         * lib/getloadavg.c: Include it instead of limits.h.
70438         (INT_STRLEN_BOUND): Remove.
70439         * lib/human.c: Include intprops.h.
70440         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
70441         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
70442         302/1000.
70443         * lib/inttostr.h: Include intprops.h instead of limits.h.
70444         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
70445         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
70446         for consistency with intprops.h.
70447         (time_t_is_integer, twos_complement_arithmetic): Use them.
70448         * lib/sig2str.h: Include <signal.h>, intprops.h.
70449         (INT_STRLEN_BOUND): Remove.
70450         * lib/strftime.c (TYPE_SIGNED): Remove.
70451         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
70452         * lib/strtol.c: Adjust comments to match intprops.h.
70453         * lib/userspec.c: Include intprops.h.
70454         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
70455         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
70456         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
70457         instead of rolling our own expressions.
70458         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
70459
70460         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
70461         instead of int.
70462         (my_strftime): Do not mishandle years close to INT_MAX, by doing
70463         the right thing even if adding 1900 would overflow.  Similarly
70464         for tm_mon + 1 and tm_yday + 1.
70465         Make %Y always equivalent to %C%y, and similarly for %G and %g.
70466         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
70467         (DO_SIGNED_NUMBER): New macro.
70468         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
70469
70470 2005-03-07  Bruno Haible  <bruno@clisp.org>
70471
70472         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
70473
70474 2005-03-07  Bruno Haible  <bruno@clisp.org>
70475
70476         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
70477
70478 2005-03-04  Derek R. Price  <derek@ximbiot.com>
70479
70480         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
70481         (func_import): Only replace files via --import when they have actually
70482         changed.
70483
70484 2005-03-03  Derek R. Price  <derek@ximbiot.com>
70485
70486         * m4/mmap-anon.m4: New file.
70487         * m4/pagealign_alloc.m4: New file.
70488
70489 2005-03-03  Derek R. Price  <derek@ximbiot.com>
70490             Bruno Haible  <bruno@clisp.org>
70491
70492         * modules/pagealign_alloc: New file.
70493         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
70494
70495 2005-03-03  Derek R. Price  <derek@ximbiot.com>
70496             Bruno Haible  <bruno@clisp.org>
70497
70498         * lib/pagealign_alloc.h: New file.
70499         * lib/pagealign_alloc.c: New file.
70500
70501 2005-03-03  Bruno Haible  <bruno@clisp.org>
70502
70503         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
70504         Use an all-permissive copyright notice, recommended by RMS.
70505
70506 2005-03-02  Bruno Haible  <bruno@clisp.org>
70507
70508         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
70509         of AIX, the replacement has to be done only after <string.h> is
70510         included, therefore not in config.h. stpncpy.h does the replacement,
70511         and stpncpy.c uses it.
70512
70513 2005-03-02  Bruno Haible  <bruno@clisp.org>
70514
70515         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
70516         stpncpy.c uses it.
70517
70518 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70519
70520         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
70521         The workaround isn't strictly needed for POSIX conformance, and
70522         it's too much of a pain to configure and maintain.  We'll ask
70523         people to fix their kernels instead.
70524         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
70525         (NANOSLEEP_BUG_WORKAROUND): Remove.
70526         (xnanosleep): Remove the workaround.
70527
70528 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70529
70530         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
70531         Reported by Derek Price.
70532         (Include): Add "timespec.h".
70533
70534         * modules/xnanosleep (Depends-on): Remove gethrxtime.
70535
70536 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70537
70538         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
70539         to detect nanosleep bug.
70540
70541 2005-03-01  Bruno Haible  <bruno@clisp.org>
70542
70543         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
70544
70545 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
70546
70547         * modules/gethrxtime: New file.
70548         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
70549         (Depends-on): Add gethrxtime.
70550         (configure.ac): Add gl_XNANOSLEEP.
70551         (Makefile.am): Remove lib_SOURCES line.
70552
70553 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
70554
70555         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
70556         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
70557
70558 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
70559
70560         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
70561         * lib/timespec.h (gettime): Return void, since it always
70562         succeeds now.  All uses changed.
70563         * lib/gettime.c (gettime): Likewise.
70564         [HAVE_NANOTIME]: Prefer nanotime.
70565         Assume gettimeofday succeeds, as POSIX requires.
70566         Assime time () succeeds, since other code already does.
70567         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
70568         (timespec_subtract): Remove.
70569         (NANOSLEEP_BUG_WORKAROUND): New constant.
70570         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
70571         things considerably.  Use it only on GNU/Linux hosts, since the
70572         workaround shouldn't be needed elsewhere.
70573
70574 2005-02-24  Bruno Haible  <bruno@clisp.org>
70575
70576         * modules/gettext (Files): Add m4/glibc2.m4.
70577
70578 2005-02-24  Bruno Haible  <bruno@clisp.org>
70579
70580         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
70581         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
70582         * m4/progtest.m4:
70583         Update from GNU gettext 0.14.2.
70584         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
70585
70586 2005-02-24  Bruno Haible  <bruno@clisp.org>
70587
70588         * lib/localcharset.c: Update from GNU gettext 0.14.2.
70589         * lib/config.charset: Update from GNU gettext 0.14.2.
70590
70591 2005-02-24  Bruno Haible  <bruno@clisp.org>
70592
70593         * lib/gettext.h: Update from GNU gettext 0.14.2.
70594
70595 2005-02-23  Simon Josefsson  <jas@extundo.com>
70596
70597         * m4/iconvme.m4: New file.
70598
70599 2005-02-23  Jim Meyering  <jim@meyering.net>
70600
70601         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
70602         change.
70603         Thanks to Bruno Haible for catching it.
70604
70605 2005-02-22  Simon Josefsson  <jas@extundo.com>
70606
70607         * modules/iconvme: New file.
70608
70609         * MODULES.html.sh: Add iconvme.
70610
70611 2005-02-22  Simon Josefsson  <jas@extundo.com>
70612
70613         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
70614
70615 2005-02-22  Simon Josefsson  <jas@extundo.com>
70616
70617         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
70618
70619 2005-02-22  Jim Meyering  <jim@meyering.net>
70620
70621         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
70622         s/ifndef/ifdef/.
70623
70624 2005-02-20  Neil Conway  <neilc@samurai.com>
70625
70626         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
70627         returned by OSX/Darwin if the specified buffer is not large
70628         enough for the hostname.
70629
70630 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70631
70632         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
70633         pass it to _help, otherwise the latter coredumps trying to
70634         dereference state.root_argp.
70635
70636 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
70637
70638         * modules/chdir-long (Depends-on): Add memrchr.
70639         * modules/memrchr (Files): Add lib/memrchr.h.
70640         (Include): "memrchr.h".
70641
70642 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
70643
70644         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
70645
70646 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
70647
70648         * lib/memrchr.h: New file.
70649         * lib/chdir-long.c: Include it.
70650         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
70651         Don't bother including stddef.h.
70652
70653 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
70654
70655         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
70656         inclusion.
70657         Include <sys/types.h>, for dev_t.
70658         (ME_DUMMY, ME_REMOTE): Move from here....
70659         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
70660         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
70661         Dmitry V. Levin.
70662         Include mountlist.h first, to test the interface.
70663
70664 2005-01-29  Bruno Haible  <bruno@clisp.org>
70665
70666         * lib/progname.c (program_name): Initialize.
70667         Needed when linking statically on MacOS X.
70668
70669 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
70670
70671         Sync from coreutils.
70672         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
70673         (Depends-on): Add c-strtod.
70674         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
70675
70676 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
70677
70678         Sync from coreutils.
70679         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
70680
70681         Remove files that are specific to coreutils.
70682         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
70683
70684 2005-01-28  Bruno Haible  <bruno@clisp.org>
70685
70686         * modules/javacomp: New file.
70687         * MODULES.html.sh (Java): Add javacomp.
70688
70689 2005-01-28  Bruno Haible  <bruno@clisp.org>
70690
70691         * m4/javacomp.m4: New file, from GNU gettext.
70692
70693 2005-01-28  Bruno Haible  <bruno@clisp.org>
70694
70695         * lib/javacomp.sh.in: New file, from GNU gettext.
70696         * lib/javacomp.h: New file, from GNU gettext.
70697         * lib/javacomp.c: New file, from GNU gettext.
70698
70699 2005-01-26  Simon Josefsson  <jas@extundo.com>
70700
70701         * lib/gai_strerror.c: Use GPL in header.
70702
70703 2005-01-26  Bruno Haible  <bruno@clisp.org>
70704
70705         * modules/javaexec: New file.
70706         * MODULES.html.sh (Java): Add javaexec.
70707
70708 2005-01-26  Bruno Haible  <bruno@clisp.org>
70709
70710         * m4/javaexec.m4: New file, from GNU gettext.
70711
70712 2005-01-26  Bruno Haible  <bruno@clisp.org>
70713
70714         * lib/javaexec.sh.in: New file, from GNU gettext.
70715         * lib/javaexec.h: New file, from GNU gettext.
70716         * lib/javaexec.c: New file, from GNU gettext.
70717
70718 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70719
70720         * modules/lchown (Depends-on): Remove lchown.h
70721
70722 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70723
70724         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
70725         must be defined if the header file was not found, in order
70726         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
70727
70728 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70729
70730         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
70731         initializers for struct pentry_state.
70732         (__argp_error): Check return value of __asprintf
70733         (__argp_failure): Translate error message
70734
70735         * lib/argp-parse.c: Removed braces around the expansion of N_()
70736
70737 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70738
70739         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
70740         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
70741         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
70742         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
70743         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
70744         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
70745         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
70746         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
70747         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
70748         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
70749         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
70750         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
70751         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
70752         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
70753         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
70754         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
70755         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
70756         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
70757         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
70758         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
70759         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
70760         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
70761         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
70762         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
70763         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
70764         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
70765         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
70766         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
70767         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
70768         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
70769         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
70770         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
70771         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
70772         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
70773         xstrtol.m4, xstrtoumax.m4, yesno.m4:
70774         Use an all-permissive copyright notice, recommended by RMS.
70775
70776 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
70777
70778         * modules/chdir-long (Depends-on): Remove mempcpy.
70779
70780 2005-01-21  Jim Meyering  <jim@meyering.net>
70781
70782         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
70783         same value as for Solaris 9.
70784
70785         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
70786         component length.  This included changing the parameter to be
70787         of type `char *' rather than `char const *'.
70788         * lib/chdir-long.h (chdir_long): Update prototype.
70789
70790         * lib/openat.c (fdopendir, fstatat): New functions.
70791         * lib/openat.h: Include headers required for use of DIR and struct
70792         stat.
70793         [AT_SYMLINK_NOFOLLOW]: Define.
70794         (fdopendir, fstatat): Add prototypes.
70795
70796 2005-01-21  Bruno Haible  <bruno@clisp.org>
70797
70798         * modules/classpath: New file.
70799         * MODULES.html.sh (Java): Add classpath.
70800
70801 2005-01-21  Bruno Haible  <bruno@clisp.org>
70802
70803         * lib/classpath.h: New file, from GNU gettext.
70804         * lib/classpath.c: New file, from GNU gettext.
70805
70806 2005-01-20  Simon Josefsson  <jas@extundo.com>
70807
70808         * modules/version-etc-fsf: New file.
70809
70810 2005-01-20  Simon Josefsson  <jas@extundo.com>
70811
70812         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
70813         * lib/version-etc.c: Remove version_etc_copyright.
70814         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
70815         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
70816
70817 2005-01-20  Simon Josefsson  <jas@extundo.com>
70818
70819         * lib/base64.h (isbase64): Add.
70820
70821         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
70822         using a unsigned prototype, don't inline.
70823         (base64_decode): Use it.
70824
70825 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
70826
70827         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
70828         it.
70829
70830 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
70831
70832         * lib/save-cwd.c (save_cwd): Remove code to support the case
70833         where fchdir is missing or flaky.
70834
70835 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
70836
70837         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
70838
70839 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
70840
70841         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
70842         AC_LIBSOURCES now does this.
70843         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
70844         with new ullong_max module.
70845
70846 2005-01-19  Bruno Haible  <bruno@clisp.org>
70847
70848         * modules/sh-quote: New file.
70849         * MODULES.html.sh (Executing programs): Add sh-quote.
70850
70851 2005-01-19  Bruno Haible  <bruno@clisp.org>
70852
70853         * lib/sh-quote.h: New file, from GNU gettext.
70854         * lib/sh-quote.c: New file, from GNU gettext.
70855
70856 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
70857
70858         Merge from coreutils.
70859         * m4/ullong_max.m4: New file.
70860         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
70861         (gl_MACROS): Assume localeconv exists.
70862
70863 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
70864
70865         Merge changes from coreutils, as described below in several
70866         changelogs dated today.
70867
70868         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
70869         (O_DIRECTORY): Remove; not needed here, since "." must be
70870         a directory.  All uses removed.
70871         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
70872         universal on Suns, and we also need to test for IRIX.
70873         Revamp code to use 'if' rather than '#if'.
70874         Avoid unnecessary comparison of cwd->desc to 0.
70875
70876         * lib/utimens.c (futimens): Robustify the previous patch, by checking
70877         for known valid error numbers rather than observed invalid ones.
70878
70879 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
70880
70881         * modules/ullong_max: New file.
70882
70883         * modules/chdir-long, modules/openat: New files.
70884         * modules/save-cwd (Depends-on): Depend on chdir-long.
70885         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
70886
70887 2005-01-18  Jim Meyering  <jim@meyering.net>
70888
70889         Merge from coreutils.
70890         * m4/chdir-long.m4, m4/openat.m4: New files.
70891         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
70892         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
70893         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
70894         is sane and DOES follow symlinks.  Besides, testing 20 different
70895         systems found no broken chown implementations.
70896         Prompted by a change in rsync's copy of this macro.
70897         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
70898
70899         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
70900
70901         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
70902         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
70903         NULL-means-set-to-current-time semantics.
70904         Remove temporary file immediately, rather than waiting
70905         for configure's at-exit trap code to do it.
70906
70907 2005-01-18  Jim Meyering  <jim@meyering.net>
70908
70909         * lib/version-etc.c (version_etc_copyright): Update copyright date.
70910
70911         * lib/utimens.c (futimens): Account for the fact that futimes
70912         can also fail with errno == ENOSYS or errno == ENOENT.
70913         Patch from Dmitry V. Levin.
70914
70915         Change the name of the robust chdir function from chdir to chdir_long.
70916         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
70917         (restore_cwd): Use chdir_long, not chdir.
70918         * lib/chdir-long.c: Renamed from chdir.c.
70919         * lib/chdir-long.h: Renamed from chdir.h.
70920         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
70921         Hurd.
70922
70923 2005-01-18  Bruno Haible  <bruno@clisp.org>
70924
70925         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
70926         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
70927         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
70928         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
70929         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
70930         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
70931         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
70932         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
70933         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
70934         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
70935         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
70936         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
70937         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
70938         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
70939         Use an all-permissive copyright notice, recommended by RMS.
70940
70941 2005-01-18  Bob Proulx  <bob@proulx.com>
70942
70943         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
70944         simplify offsetof() macro construct to avoid compile failure with
70945         native HP-UX 11.0 ANSI C compiler.
70946
70947 2005-01-17  Bruno Haible  <bruno@clisp.org>
70948
70949         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
70950         redundant because stpncpy.m4 takes care of it.
70951
70952 2005-01-17  Bruno Haible  <bruno@clisp.org>
70953
70954         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
70955
70956 2005-01-17  Bruno Haible  <bruno@clisp.org>
70957
70958         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
70959         used.
70960
70961 2005-01-17  Bruno Haible  <bruno@clisp.org>
70962
70963         * lib/fwriteerror.h (fwriteerror): Change specification to include
70964         fclose.
70965         * lib/fwriteerror.c: Include <stdbool.h>.
70966         (fwriteerror): At the end, close the file stream. Record whether
70967         stdout was already closed.
70968
70969 2005-01-17  Bruno Haible  <bruno@clisp.org>
70970
70971         * lib/execute.c (environ): Declare if needed.
70972         * lib/pipe.c (environ): Likewise.
70973         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
70974
70975 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70976
70977         * modules/argp: Depend on vsnprintf
70978
70979 2005-01-10  Jim Meyering  <jim@meyering.net>
70980
70981         * modules/closeout (Depends-on): Add atexit.
70982
70983 2005-01-06  Bruno Haible  <bruno@clisp.org>
70984
70985         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
70986
70987 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
70988
70989         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
70990         definitions to be after all include files, to avoid collisions.
70991         Problem reported by Bob Proulx.
70992
70993 2005-01-04  Jim Meyering  <jim@meyering.net>
70994
70995         Changes imported from coreutils.
70996         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
70997         as the mkstemp template, use a temporary directory and an
70998         8.3-friendly template to avoid trouble on systems like DJGPP.
70999         Reported by Juan M. Guerrero via Stepan Kasal.
71000         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
71001         close. Remove the temporary directory right away, rather than waiting
71002         for configure's at-exit trap code to do it.
71003         Suggestion from Stepan Kasal.
71004
71005 2005-01-01  Simon Josefsson  <jas@extundo.com>
71006
71007         * gnulib-tool: Print #include directives when --import'ing.
71008
71009 2004-12-28  Simon Josefsson  <jas@extundo.com>
71010
71011         * tests/test-base64.c: Include required header files.  Remove
71012         unused variables.
71013
71014 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
71015
71016         * modules/error (Depends-on): Remove gettext.
71017
71018 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
71019
71020         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
71021         not needed.  This removes a dependency on the gettext module.
71022         [defined _LIBC]: Do not include <libintl.h>; not needed.
71023
71024 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
71025
71026         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
71027         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
71028
71029 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
71030
71031         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
71032         HAVE_DECL_STRTOLD.
71033
71034 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
71035
71036         * modules/getdate (Depends-on): Remove alloca-opt.
71037
71038 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
71039
71040         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
71041
71042 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
71043
71044         * lib/argp-parse.c: Include <stddef.h>.
71045         (alignof, alignto): New macros.
71046         (parser_init): Don't assume that void * is aligned sufficiently
71047         for struct option.
71048
71049         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
71050         need to extend the stack.
71051         (YYINITDEPTH): New macro, so that the initial stack isn't overly
71052         large.
71053
71054 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71055
71056         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
71057
71058 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
71059
71060         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
71061         (2004-10-24) change.  Apparently this was a false alarm.
71062
71063         * modules/getdate: Depend on alloca-opt, not alloca.
71064
71065 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
71066
71067         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
71068         Remove now-obsolete comment about AIX.
71069         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
71070         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
71071         (YYMAXDEPTH): New macro.
71072
71073 2004-12-18  Simon Josefsson  <jas@extundo.com>
71074
71075         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
71076
71077 2004-12-18  Bruno Haible  <bruno@clisp.org>
71078
71079         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
71080
71081 2004-12-18  Bruno Haible  <bruno@clisp.org>
71082
71083         * lib/fatal-signal.c (fatal_signals): Make non-const.
71084         (init_fatal_signals): New function.
71085         (uninstall_handlers, install_handlers): Ignore signals that were set to
71086         SIG_IGN.
71087         (at_fatal_signal): Call init_fatal_signals.
71088         (init_fatal_signal_set): Likewise. Ignore signals that were set to
71089         SIG_IGN.
71090         Reported by Paul Eggert.
71091
71092 2004-12-18  Bruno Haible  <bruno@clisp.org>
71093
71094         * doc/alloca.texi: New file.
71095         * doc/alloca-opt.texi: New file.
71096
71097 2004-12-17  Jim Meyering  <jim@meyering.net>
71098
71099         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
71100         Otherwise, install-sh could exit with improper exit status when
71101         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
71102
71103 2004-12-16  Simon Josefsson  <jas@extundo.com>
71104
71105         * tests/test-base64.c: Add license.
71106
71107 2004-12-15  Stepan Kasal  <address@hidden>
71108
71109         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
71110
71111 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
71112
71113         * modules/getcwd (Files): Add m4/d-ino.m4.
71114         Suggested by Mark D. Baushke.
71115
71116 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
71117
71118         * lib/getdate.y (textint): New member "negative".
71119         (time_zone_hhmm): New function.
71120         Expect 14 shift-reduce conflicts, not 13.
71121         (o_colon_minutes): New rule.
71122         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
71123         (yylex): Set the "negative" member of signed numbers.
71124
71125 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
71126
71127         * doc/getdate.texi (Time of day items, Time zone items):
71128         Describe new formats +00:00, UTC+00:00.
71129
71130 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
71131
71132         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
71133         spurious "-l"s.  Problem reported by Stepan Kasal.
71134
71135 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
71136
71137         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
71138         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
71139
71140 2004-12-04  Simon Josefsson  <jas@extundo.com>
71141
71142         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
71143         Vandoorselaere <yoann@prelude-ids.org>.
71144
71145 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
71146
71147         Changes imported from coreutils.
71148         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
71149         exist.
71150         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
71151
71152 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
71153
71154         Changes imported from coreutils.
71155         * lib/hard-locale.c: Assume <locale.h> exists.
71156         Include "strdup.h".
71157         (GLIBC_VERSION): New macro.
71158         (hard_locale): Assume setlocale exists.
71159         Rewrite to avoid #ifdef.
71160         Use strdup rather than malloc + strcpy.
71161         * lib/human.c: Assume <locale.h> exists.
71162         (human_readable): Assume localeconv exists.
71163
71164 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
71165
71166         * modules/hard-locale (Depends-on): Add strdup.
71167
71168 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
71169
71170         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
71171         convert T2, not T.  (Imported from libc.)
71172
71173 2004-11-30  Simon Josefsson  <jas@extundo.com>
71174
71175         * modules/restrict (License): Change to LGPL.
71176
71177 2004-11-30  Simon Josefsson  <jas@extundo.com>
71178
71179         * m4/restrict.m4: Add copyright and copying conditions.
71180
71181 2004-11-30  Simon Josefsson  <jas@extundo.com>
71182
71183         * m4/base64.m4: New file.
71184
71185 2004-11-30  Simon Josefsson  <jas@extundo.com>
71186
71187         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
71188         base64.
71189
71190         * tests/test-base64.c: New file.
71191
71192         * modules/base64: New file.
71193
71194 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
71195
71196         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
71197         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
71198
71199         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
71200
71201 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
71202
71203         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
71204         (__getcwd.c): Don't restore errno; glibc doesn't.
71205         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
71206         first, falling back to our code only if its results look suspicious.
71207         Ensure that the resulting buffer is only as large as necessary.
71208
71209         * lib/readutmp.c: Include readutmp.h first.
71210         Include <errno.h>, since readutmp.h no longer does that.
71211         * lib/readutmp.h: Don't include <errno.h>,
71212         <sys/param.h>, <time.h>; not needed to establish interface.
71213         (errno): Remove decl.
71214         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
71215         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
71216         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
71217
71218 2004-11-28  Simon Josefsson  <jas@extundo.com>
71219
71220         * lib/base64.h, base64.c: New file.
71221
71222 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
71223
71224         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
71225
71226 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
71227
71228         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
71229         (Depends-on): Remove pathmax, same.  Add mempcpy.
71230         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
71231         (Makefile.am): Append getcwd.h to lib_SOURCES.
71232         (Include): Add getcwd.h.
71233         (Maintainer): Change from Jim Meyering to "all, glibc",
71234         since getdate now uses intended-for-glibc code.
71235         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
71236         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
71237
71238 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
71239
71240         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
71241         HP's ANSI C compiler.
71242         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
71243         Declaring int functions causes warnings on some modern systems and
71244         shouldn't be needed to compile on ancient ones.
71245         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
71246         defined.
71247
71248         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
71249         with the following changes.
71250         (__set_errno): Parenthesize properly.
71251         Include <stdbool.h>.
71252         (MIN, MAX, MATCHING_INO): New macros.
71253         (__getcwd): Define with prototype, not K&R form.
71254         Use heuristics to allocate default buffer on stack if possible.
71255         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
71256         behavior, and to avoid the PATH_MAX limit when computing
71257         ../../../../...
71258         Use MATCHING_INO to compare inode number to file.
71259         Check for arithmetic overflow in size calculations.
71260         Fix bug in reallocation of dot array that caused getcwd to fail
71261         on directories nested deeper than 75.
71262         Be more careful about saving errno on error.
71263         Do not use realloc; use only free+malloc, as this is a bit
71264         more flexible and avoids a needless copy operation.
71265         Do not inspect st_dev and st_ino for symbolic links; POSIX
71266         doesn't specify the latter.
71267         Check for closedir errors.
71268         Avoid needless casts.
71269         Use "#ifdef weak_alias" around weak_alias, to be like other
71270         glibc code.
71271         The following changes to getcwd.c have effect only when used in
71272         gnulib; they have no effect inside glibc proper.
71273         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
71274         as alloca isn't used.
71275         (alloca, __alloca): Likewise.
71276         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
71277         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
71278         unconditionally, as gnulib assumes C89 or better.
71279         Do not include <sys/param.h>.
71280         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
71281         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
71282         better.
71283         (NULL) [!defined NULL]: Remove; we assume C89 or better.
71284         Include <dirent.h> in a way that is compatible with modern Autoconf.
71285         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
71286         New macros, if not already defined.
71287         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
71288         Use "_LIBC", not "defined _LIBC", for consistency.
71289         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
71290         a mempcpy module.
71291         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
71292         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
71293         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
71294         credit only to Jim Meyering and adjust the copyright dates.
71295         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
71296         <stdlib.h>, <unistd.h>, "pathmax.h".
71297         Instead, include "xgetcwd.h" (first) and "getcwd.h".
71298         (INITIAL_BUFFER_SIZE): Remove.
71299         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
71300
71301 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
71302
71303         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
71304         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
71305         Use the _ONCE methods, for efficiency.
71306         Check for fcntl.h.  In test program, include <errno.h>
71307         and <fcntl.h> if available.  Remove old K&R cruft from
71308         test program.  Check for common errors in GNU/Linux,
71309         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
71310         don't do AC_LIBOBJ, as that's getcwd.m4's job.
71311         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
71312         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
71313         name accordingly.
71314         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
71315         accommodate new getcwd.c.
71316         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
71317         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
71318         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
71319         that's all we need now.
71320
71321 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71322
71323         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
71324         argp-parse.c depends on getopt internals, that means we should
71325         always use our getopt, to be on the safe side.
71326         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
71327         order not to spoil the result of an eventual previous invocation
71328         of gl_GETOPT_SUBSTITUTE.
71329
71330 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71331
71332         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
71333         redefinition warnings. To avoid them, include the defines
71334         in `#if !defined __need_getopt ... #endif'. The only place
71335         where __getopt_argv_const is used is in definitions
71336         of getopt_long and getopt_long_only below, which are as well
71337         protected by `#ifndef __need_getopt'.
71338         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
71339         __need_getopt after including <stdio.h> and <unistd.h> These
71340         headers might have defined it.
71341
71342 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
71343
71344         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
71345
71346 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
71347
71348         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
71349         (futimens): New function, which uses futimes if available.
71350         (futimens, utimens): Support timespec==NULL, with same semantics
71351         as utime and utimens.
71352         * lib/utimens.h (futimens): New decl.
71353
71354 2004-11-23  Jim Meyering  <jim@meyering.net>
71355
71356         * lib/getopt_.h: Remove trailing blanks.
71357
71358 2004-11-23  Jim Meyering  <jim@meyering.net>
71359
71360         * lib/__fpending.c: Add comment.
71361
71362 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
71363
71364         * modules/canonicalize (Depends-on): Add xreadlink.
71365         Problem reported by James Youngman.
71366
71367 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71368
71369         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
71370         New macros.
71371         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
71372         optopt): Use them instead of invoking ## directly; otherwise, the
71373         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
71374
71375 2004-11-19  Bruno Haible  <bruno@clisp.org>
71376
71377         * lib/strtok_r.c: Move comments from here...
71378         * lib/strtok_r.h: ... to here.
71379
71380 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
71381
71382         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
71383         implementations that mishandle size_t overflow.
71384
71385 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
71386
71387         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
71388         might fail.  Problem reported by Yoann Vandoorselaere.
71389         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
71390         implementations that mishandle size_t overflow.
71391
71392 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71393
71394         * modules/canon-host (Depends-on): Add strdup.
71395
71396 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71397
71398         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
71399
71400 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71401
71402         * lib/canon-host.c: Include "strdup.h".
71403         (canon_host): Use getaddrinfo if available, so that IPv6 works.
71404         Use strdup instead of malloc/strcpy to duplicate strings.
71405
71406         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
71407         (human_space_before_unit): New constant.
71408         * lib/human.c (human_readable): Support it.
71409
71410         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
71411         (xgetcwd): Set errno correctly when failing.
71412         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
71413         the failure is actually due to a PATH_MAX problem.
71414
71415         Further getopt changes to make it more likely that glibc will
71416         buy the changes back.
71417         * lib/getopt.c (POSIXLY_CORRECT): New constant.
71418         (getopt): Use it, so to preserve glibc semantic
71419         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
71420         when compiling for libc.
71421         * lib/getopt_.h (__getopt_argv_const): Bring it back.
71422         (getopt_long, getopt_long_only): Use it.
71423
71424         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
71425         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
71426         (getopt): Argv is now char * const *, as per standard.
71427         (_getopt_internal_r, _getopt_internal): Argv is now char **,
71428         not char *__getopt_argv_const *.
71429         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
71430         _getopt_long_only_r): Likewise.
71431         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
71432         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
71433         _getopt_long_r, _getopt_long_only_r): Likewise.
71434         * lib/getopt_.h (__getopt_argv_const): Remove.
71435         (getopt): Argv is now char * const *, as per standard.
71436
71437         * lib/getdate.y (tORDINAL): New token.
71438         (day, relunit): Allow it for relative times.
71439         (relative_time_table): Use tORDINAL for ordinals.
71440
71441 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71442
71443         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
71444         Document that "second" isn't allowed as an ordinal number.
71445
71446 2004-11-16  Jim Meyering  <jim@meyering.net>
71447
71448         * modules/closeout (Depends-on): Add fpending.
71449
71450 2004-11-15  Jim Meyering  <jim@meyering.net>
71451
71452         * lib/closeout.c: Include "__fpending.h" once again.
71453         Include <stdbool.h>.
71454         (close_stdout): Don't fail just because stdout was closed initially,
71455         since some programs don't write to stdout in the normal course of
71456         operation (other than --version and --help), and we don't want this
71457         function to make e.g. `touch file >&-' fail.
71458         But do fail if it was closed and someone has tried to write to it.
71459         E.g., `printf foo >&-' must fail.
71460
71461 2004-11-13  Jim Meyering  <jim@meyering.net>
71462
71463         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
71464
71465 2004-11-12  Simon Josefsson  <jas@extundo.com>
71466
71467         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
71468         small doc fix is still pending.
71469
71470 2004-11-11  Simon Josefsson  <jas@extundo.com>
71471
71472         * modules/strtok_r: New file.
71473
71474         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71475         strtok_r.
71476
71477 2004-11-11  Simon Josefsson  <jas@extundo.com>
71478
71479         * m4/strtok_r.m4: New file.
71480
71481         * m4/getopt.m4: Replace opterr.
71482
71483 2004-11-11  Simon Josefsson  <jas@extundo.com>
71484
71485         * lib/strtok_r.h, strtok_r.c: New file.
71486
71487 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
71488
71489         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
71490         of replacing opterr, getopt, etc.  This should handle the
71491         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
71492
71493 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
71494
71495         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
71496         we can stop lying to compilers about the constness of argv when we
71497         are compiled outside glibc.
71498         (getopt, getopt_long, getopt_long_only): Use it.
71499         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
71500         _getopt_internal, getopt): Likewise.
71501         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
71502         _getopt_long_only_r): Likewise.
71503         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
71504         _getopt_long_r, _getopt_long_only_r): Likewise.
71505
71506         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
71507         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
71508         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
71509         the other external symbols.
71510         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
71511         declaration, since the above renaming now works around collisions.
71512
71513 2004-11-11  Jim Meyering  <jim@meyering.net>
71514
71515         * lib/linebreak.c: Remove trailing blanks.
71516         * lib/alloca_.h: Likewise.
71517         * lib/acosl.c: Likewise.
71518         * lib/euidaccess.c: Likewise.
71519         * lib/allocsa.h: Likewise.
71520
71521 2004-11-10  Simon Josefsson  <jas@extundo.com>
71522
71523         * m4/getaddrinfo.m4: New file.
71524
71525 2004-11-10  Simon Josefsson  <jas@extundo.com>
71526
71527         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
71528
71529 2004-11-10  Simon Josefsson  <jas@extundo.com>
71530
71531         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71532         getaddrinfo.
71533
71534         * modules/getaddrinfo: New file.
71535
71536 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
71537
71538         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
71539
71540 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
71541
71542         * lib/mktime.c (SHR): New macro, which is a portable
71543         substitute for >> that should work even on Crays.
71544         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
71545         Problem reported by Mark D. Baushke in
71546         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
71547         * lib/getdate.y (SHR): Likewise.
71548         (tm_diff): Use it.
71549         * lib/strftime.c (SHR): Likewise.
71550         (tm_diff): Use it.
71551         * lib/quotearg.c (struct quoting_options): Use unsigned int for
71552         quote_these_too, so that right shifts are well defined.  All uses
71553         changed.
71554
71555 2004-11-10  Jim Meyering  <jim@meyering.net>
71556
71557         Ensure that no close failure goes unreported.
71558         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
71559         return early when it seems there's nothing to flush.
71560         Don't include __fpending.h.
71561
71562 2004-11-10  Jim Meyering  <jim@meyering.net>
71563
71564         * modules/closeout (Depends-on): Remove fpending.
71565
71566 2004-11-10  Jim Meyering  <jim@meyering.net>
71567
71568         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
71569
71570 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71571
71572         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
71573         gl_FUNC_STRFTIME.
71574         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
71575         and AC_REQUIRE when possible, to avoid duplicate checks.
71576         Check for <wchar.h>.
71577
71578 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71579
71580         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
71581
71582 2004-11-09  Bruno Haible  <bruno@clisp.org>
71583
71584         * m4/sockpfaf.m4: New file.
71585
71586 2004-11-05  Bruno Haible  <bruno@clisp.org>
71587
71588         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
71589         Reported by Mark D. Baushke <mdb@cvshome.org>.
71590
71591 2004-11-04  Bruno Haible  <bruno@clisp.org>
71592
71593         2004-09-11  Bruno Haible  <bruno@clisp.org>
71594                 * allocsa.valgrind: New file.
71595         2004-02-06  Bruno Haible  <bruno@clisp.org>
71596                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
71597                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
71598                 Reported by Christopher Seip <chris.seip@hp.com>.
71599
71600 2004-11-04  Bruno Haible  <bruno@clisp.org>
71601
71602         * modules/allocsa (Files): Add lib/allocsa.valgrind.
71603         (Makefile.am): Distribute it.
71604
71605 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
71606
71607         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
71608         with errno == ERANGE if the buffer is too small.
71609         Problem reported by Mark D. Baushke.
71610
71611 2004-11-03  Albert Chin  <china@thewrittenword.com>
71612             Paul Eggert  <eggert@cs.ucla.edu>
71613
71614         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
71615         equivalent, substitute $ac_type for equivalent type rather than
71616         blindly using uint32_t *always* which won't work if uint32_t is not
71617         available.  Define _UINT32_T to work around typedef of uint32_t if
71618         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
71619         2.5.1.
71620
71621 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
71622
71623         * m4/jm-macros.m4: Sync from coreutils.
71624         (gl_MACROS): Check for mbrlen, for pathchk.
71625         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
71626
71627 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
71628
71629         * lib/xreadlink.c (MAXSIZE): New macro.
71630         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
71631         size does not exceed MAXSIZE.  Avoid cast.
71632         As suggested by Mark D. Baushke in
71633         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
71634         if readlink fails with buffer size just under MAXSIZE, try again
71635         with MAXSIZE.
71636
71637 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
71638
71639         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
71640
71641 2004-11-02  Derek R. Price  <derek@ximbiot.com>
71642         and  Paul Eggert  <eggert@cs.ucla.edu>
71643
71644         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
71645         (get_date): Overparenthesize to avoid GCC warning.
71646
71647 2004-11-02  Bruno Haible  <bruno@clisp.org>
71648
71649         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
71650         returns void.
71651
71652 2004-11-02  Bruno Haible  <bruno@clisp.org>
71653
71654         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
71655         function returns void.
71656
71657 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
71658
71659         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
71660         fflush_unlocked, flockfile, funlockfile, funlockfile,
71661         fputs_unlocked, putc_unlocked.
71662
71663 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
71664
71665         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
71666         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
71667         already declared.
71668
71669 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
71670
71671         * modules/getdate (Files): Add doc/getdate.texi.
71672         (Depends-on): Add setenv, xalloc.
71673
71674 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
71675
71676         * lib/getdate.y: Add support for TZ="foo" within a date string.
71677         Fix some bugs near time_t boundaries.  Reject dates with
71678         out-of-range components, e.g., "Sept 31".
71679         Include <stdlib.h>, "setenv.h", "xalloc.h".
71680         (ISDIGIT_LOCALE): Remove; unused.
71681         Note that the TZ and time functions used here are not reentrant.
71682         (mktime_ok, get_tz): New functions.
71683         (TZBUFSIZE): New constant.
71684         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
71685         This requires that we sometimes generate our own TZ="XXX..." setting.
71686
71687 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
71688
71689         * doc/getdate.texi: New file, from coreutils with modifications for
71690         the new TZ parsing.
71691
71692 2004-10-27  Derek R. Price  <derek@ximbiot.com>
71693
71694         * lib/mktime.c (not_equal_tm): Remove redundant check.
71695
71696 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71697
71698         * modules/regex (lib_SOURCES): Add regex.c.
71699         Reported by James Youngman in
71700         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
71701
71702 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71703
71704         * lib/getdate.y: Use Bison 1.875 features, and some minor
71705         code cleanups.  This change does not affect semantics.
71706         Don't include <stdlib.h>; no longer needed.
71707         Don't include unlocked-io.h; only the "#if TEST" code uses
71708         stdio, and performance isn't crucial there.
71709         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
71710         Bison 1.875 features as described below.
71711         All uses of "PC." replaced by "pc->".
71712         (YYSTYPE): Add a forward declaration.
71713         (yylex, yyerror): Use full prototypes in forward decls.
71714         Use "%pure-parser" rather than obsolescent "%pure_parser".
71715         Use %parse-param and %lex-param instead of obsolescent
71716         YYPARSE_PARAM and YYLEX_PARAM.
71717         (meridian_table, month_and_day_table, time_units_table,
71718         relative_time_table, time_zone_table, military_table,
71719         lookup_zone, lookup_word, get_date):
71720         Use NULL instead of 0 where appropriate.
71721         (to_hour): Avoid abort (), to avoid a dependency on
71722         stdlib.h.
71723         (yyerror, yylex): Now accepts parser_control * arg.
71724         (main) [TEST]: Use '\0' rather than 0 for char.
71725
71726 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
71727
71728         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
71729
71730 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
71731
71732         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
71733         It's now the caller's responsibility to handle the case where
71734         !HAVE_GETPAGESIZE && !defined getpagesize.
71735
71736         * lib/mktime.c (leapyear): Arg is long int, not int.
71737
71738 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
71739
71740         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
71741
71742 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
71743
71744         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
71745         missing.  Problem reported by James Youngman.
71746
71747 2004-10-16  Simon Josefsson  <jas@extundo.com>
71748
71749         * gnulib-tool: Fix comments.  Fix parse problem.
71750         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
71751
71752 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
71753
71754         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
71755         implementation of getopt_long.  Problem reported by Alexander Taler in:
71756         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
71757
71758 2004-10-15  Bruno Haible  <bruno@clisp.org>
71759
71760         * gnulib-tool: Untabify. Initialize supplied_libname.
71761         (func_usage): More homogenous output.
71762         (func_modules_transitive_closure, func_modules_to_filelist,
71763         func_emit_lib_Makefile_am): New functions.
71764         (func_import): New function, extracted from big case statement. Use
71765         func_get_license, func_modules_transitive_closure,
71766         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
71767         opt_lgpl. Don't use test -a, as it's not portable.
71768         (func_create_testdir): Use func_modules_transitive_closure,
71769         func_modules_to_filelist, func_emit_lib_Makefile_am.
71770
71771 2004-10-15  Bruno Haible  <bruno@clisp.org>
71772
71773         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
71774
71775 2004-10-15  Bruno Haible  <bruno@clisp.org>
71776
71777         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
71778         the portions belonging to each module.
71779         Suggested by Derek Robert Price <derek@ximbiot.com>.
71780
71781 2004-10-12  Simon Josefsson  <jas@extundo.com>
71782
71783         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
71784         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
71785         to real functions.
71786
71787 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71788
71789         * modules/vsnprintf: New file.
71790
71791 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71792
71793         * m4/vsnprintf.m4: New file.
71794
71795 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71796
71797         * lib/vsnprintf.h: New file.
71798         * lib/vsnprintf.c: New file.
71799
71800 2004-10-11  Bruno Haible  <bruno@clisp.org>
71801
71802         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
71803         vsnprintf.
71804
71805 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
71806
71807         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
71808
71809 2004-10-07  Bruno Haible  <bruno@clisp.org>
71810
71811         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
71812         fits into the provided buffer.
71813
71814 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
71815
71816         * lib/diacrit.c, diacrit.h: Add GPL notice.
71817
71818         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
71819         notice.
71820         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
71821         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
71822         This avoids a potential constant-folding bug.
71823
71824 2004-10-05  Bruno Haible  <bruno@clisp.org>
71825
71826         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
71827         for the declaration of strsep.
71828
71829 2004-10-05  Bruno Haible  <bruno@clisp.org>
71830
71831         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
71832
71833 2004-10-04  Simon Josefsson  <jas@extundo.com>
71834
71835         * modules/memmem: New file.
71836         * tests/test-memmem.c: New file.
71837         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
71838
71839 2004-10-04  Simon Josefsson  <jas@extundo.com>
71840
71841         * m4/memmem.m4: New file.
71842
71843 2004-10-04  Simon Josefsson  <jas@extundo.com>
71844
71845         * lib/memmem.h: New file.
71846         * lib/memmem.c: New file, taken from glibc.
71847
71848 2004-10-04  Simon Josefsson  <jas@extundo.com>
71849
71850         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
71851         '#ifdef USE_UNLOCKED_IO'.
71852
71853 2004-10-04  Simon Josefsson  <jas@extundo.com>
71854
71855         * config/srclist.txt: Add memmem from glibc.
71856
71857 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
71858
71859         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
71860
71861         * modules/argmatch, modules/argp, modules/closeout, modules/error,
71862         modules/exclude, modules/getdate, modules/getline,
71863         modules/getndelim2, modules/getpass, modules/getpass-gnu,
71864         modules/getusershell, modules/linebuffer, modules/md5,
71865         modules/mountlist, modules/posixtm, modules/readtokens,
71866         modules/readutmp, modules/regex, modules/sha1,
71867         modules/version-etc, modules/yesno:
71868         Remove dependency on unlocked-io.
71869
71870 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
71871
71872         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
71873
71874         * m4/unlocked-io.m4: Add copyright notice.
71875         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
71876
71877 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
71878
71879         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
71880         * lib/xmalloc.c (xmemdup): Likewise.
71881         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
71882         XFREE): Remove these long-obsolescent macros.
71883         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
71884         * lib/xstrdup.c: Remove.
71885
71886         * lib/regex.c (re_comp): Cast gettext return value to char *,
71887         Problem reported by Martin Neitzel via Mark D. Baushke.
71888
71889 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
71890
71891         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
71892         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
71893         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
71894         regex.c, sha1.c, version-etc.c, yesno.c:
71895         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
71896         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
71897         the includer's responsibility.
71898
71899         Sync from coreutils.
71900
71901         * lib/modechange.c (mode_compile): Don't decrement a pointer that
71902         points to the start of a string, as the C Standard says the
71903         resulting behavior is undefined.
71904
71905         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
71906         simple -> simple_backups, numbered_existing ->
71907         numbered_existing_backups, numbered -> numbered_backups
71908         to avoid shadowing problems.  All uses changed.
71909         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
71910         * lib/backupfile.c (check_extension, numbered_backup):
71911         Rename locals to avoid shadowing 'basename'.
71912         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
71913         once.
71914
71915         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
71916         * lib/.cvsignore: Add getopt.h.
71917
71918 2004-10-04  Bruno Haible  <bruno@clisp.org>
71919
71920         * modules/README: New file.
71921         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
71922         not a module.
71923
71924 2004-10-02  Jim Meyering  <jim@meyering.net>
71925
71926         * lib/dirfd.h, getpagesize.h: Add copyright notice.
71927
71928 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71929
71930         * modules/strsep: New file.
71931
71932 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71933
71934         * m4/strsep.m4: New file.
71935
71936 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71937
71938         * lib/strsep.h: New file.
71939         * lib/strsep.c: New file.
71940
71941 2004-10-01  Simon Josefsson  <jas@extundo.com>
71942
71943         * lib/snprintf.c (snprintf): Handle size==0.
71944
71945 2004-10-01  Simon Josefsson  <jas@extundo.com>
71946             Bruno Haible  <bruno@clisp.org>
71947
71948         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
71949         (snprintf): Declare 'args'.
71950
71951 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
71952
71953         * lib/snprintf.c: Remove comments as to why each header is needed.
71954
71955 2004-10-01  Bruno Haible  <bruno@clisp.org>
71956
71957         * MODULES.html.sh: Add strsep.
71958
71959 2004-09-30  Simon Josefsson  <jas@extundo.com>
71960
71961         * modules/snprintf: New file.
71962
71963 2004-09-30  Simon Josefsson  <jas@extundo.com>
71964
71965         * m4/snprintf.m4: New file.
71966
71967 2004-09-30  Simon Josefsson  <jas@extundo.com>
71968
71969         * lib/snprintf.h, lib/snprintf.c: New files.
71970
71971 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71972
71973         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
71974         (hol_entry_help): Never translate an empty string.
71975         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
71976         * lib/argp.h (OPTION_NO_TRANS): New option.
71977
71978 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
71979
71980         * modules/argp (Maintainer): Replace Simon Josefsson
71981         by Sergey Poznyakoff.
71982
71983 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
71984
71985         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
71986         changes merged back into glibc.
71987
71988 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
71989
71990         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
71991
71992 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
71993
71994         * lib/xvasprintf.c: Include xalloc.h.
71995         (xvasprintf): Use xalloc_die, not xmalloc_die.
71996
71997 2004-09-29  Bruno Haible  <bruno@clisp.org>
71998
71999         * modules/alloca-opt: New file, derived from modules/alloca.
72000         * modules/allocsa: Depend on alloca-opt instead of alloca.
72001         * modules/setenv: Likewise.
72002         * modules/vasnprintf: Likewise.
72003         * MODULES.html.sh: Add alloca-opt.
72004
72005 2004-09-28  Simon Josefsson  <jas@extundo.com>
72006
72007         * gnulib-tool: New parameter --lgpl, to asseert that modules are
72008         LGPL, and to replace license template from GPL to LGPL.
72009
72010 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
72011
72012         * modules/dummy: Change license to LGPL.
72013
72014 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
72015
72016         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
72017
72018 2004-09-24  Simon Josefsson  <jas@extundo.com>
72019
72020         * modules/minmax (License): Change from GPL to LGPL.
72021
72022 2004-09-23  Simon Josefsson  <jas@extundo.com>
72023
72024         * gnulib-tool (--import): Typo.
72025
72026 2004-09-23  Simon Josefsson  <jas@extundo.com>
72027
72028         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
72029
72030 2004-09-22  Bruno Haible  <bruno@clisp.org>
72031
72032         * modules/*: Add 'License' field.
72033         * gnulib-tool: Accept --extract-license option.
72034         (func_get_license): New function.
72035
72036 2004-09-21  Bruno Haible  <bruno@clisp.org>
72037
72038         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
72039         Reported by Simon Josefsson.
72040
72041 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
72042
72043         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
72044         gl_AC_TYPE_LONG_LONG.
72045
72046 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
72047
72048         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
72049
72050 2004-09-18  Simon Josefsson  <jas@extundo.com>
72051         and  Paul Eggert  <eggert@cs.ucla.edu>
72052
72053         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
72054         calls with autoreconf.  Define GL_LIB.
72055
72056 2004-09-14  Karl Berry  <karl@gnu.org>
72057
72058         * config/srclist.txt: unsync setenv.c, sigh.
72059
72060 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
72061
72062         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
72063         Problem reported by Bruno Haible in:
72064         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
72065
72066 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
72067
72068         * config/srclist.txt: Comment out argp-pvh.c.
72069
72070 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
72071
72072         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
72073         in case some system header has #define'd it.  Problem reported by
72074         Soeren D. Schulze in
72075         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
72076
72077 2004-09-09  Karl Berry  <karl@gnu.org>
72078
72079         * regex.[ch]: delete from the root.  These were supposed to be
72080                 synced with emacs cvs, but this has not happened for about
72081                 a year, and anyway nothing else uses emacs regex.[ch].
72082                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
72083                 lib/regex[.ch] is untouched.
72084
72085 2004-09-09  Bruno Haible  <bruno@clisp.org>
72086
72087         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
72088
72089 2004-09-09  Bruno Haible  <bruno@clisp.org>
72090
72091         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
72092         modifications.
72093         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
72094
72095 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
72096
72097         * modules/xvasprintf: New file.
72098         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
72099
72100 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
72101
72102         * lib/xvasprintf.h: New file.
72103         * lib/xvasprintf.c: New file.
72104         * lib/xasprintf.c: New file.
72105
72106 2004-09-08  Bruno Haible  <bruno@clisp.org>
72107
72108         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
72109
72110 2004-09-08  Bruno Haible  <bruno@clisp.org>
72111
72112         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
72113         length is > INT_MAX.
72114         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
72115         more.
72116
72117 2004-09-08  Bruno Haible  <bruno@clisp.org>
72118
72119         * lib/stdint_.h: New file, taken from GNU clisp.
72120
72121 2004-09-08  Bruno Haible  <bruno@clisp.org>
72122             Oskar Liljeblad  <oskar@osk.mine.nu>
72123
72124         * modules/stdint: New file.
72125         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
72126
72127 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72128
72129         Import from coreutils.
72130         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
72131         strings on unbounded length.  alloca's performance benefits aren't
72132         that important here.
72133         (V_STRDUP): Remove.
72134         (parse_with_separator): New function, with most of the internals
72135         of the old parse_user_spec.  Allow user to omit both user and group,
72136         for compatibility with FreeBSD.
72137         Clone only the user name, not the entire spec.
72138         Do not set *uid, *gid unless entirely successful.
72139         Avoid memory leak in some failing cases.
72140         Fix regression for USER.GROUP reported by Dmitry V. Levin in
72141         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
72142         (parse_user_spec): Rewrite to use parse_with_separator.
72143
72144 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72145
72146         * modules/userspec: Don't depend on alloca.
72147
72148 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72149
72150         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
72151
72152 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
72153
72154         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
72155         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
72156         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
72157
72158 2004-08-16  Simon Josefsson  <jas@extundo.com>
72159
72160         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
72161         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
72162         Add --dry-run for --import.
72163         Let user provided command line parameters override configure.ac
72164         settings.
72165
72166 2004-08-12  Simon Josefsson  <jas@extundo.com>
72167
72168         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
72169         as discussed with Paul Eggert in threads rooted at
72170         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
72171         and
72172         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
72173         Before, the test was empty, and relied on ELIDE_CODE in source
72174         code.)
72175         (gl_PREREQ_GETOPT): New macro.
72176         (gl_GETOPT): Use them.
72177
72178 2004-08-12  Simon Josefsson  <jas@extundo.com>
72179
72180         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
72181         * lib/getopt_.h: Renamed from getopt.h.
72182
72183 2004-08-12  Simon Josefsson  <jas@extundo.com>
72184
72185         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
72186         Change default library name from libfoo to libgnu.
72187         Now, if you have a configure.ac that says:
72188                 gl_SOURCE_BASE(gl)
72189                 gl_M4_BASE(gl/m4)
72190                 gl_MODULES(error getopt etcetera)
72191                 gl_INIT
72192         you can import all you need by running:
72193                 ../gnulib/gnulib-tool --import
72194
72195         * modules/getopt (Files): Rename getopt.h to getopt_.h.
72196         (Makefile.am): Rewrite, use logic from argz.
72197         (Include): Use <getopt.h> instead of "getopt.h".
72198
72199 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
72200
72201         * modules/argp (Files): Add m4/unlocked-io.m4.
72202         (Depends-on): Add extensions.
72203
72204 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
72205
72206         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
72207         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
72208         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
72209         Check for program_invocation_name, program_invocation_short_name,
72210         flockfile, funlockfile, features.h, _getopt_long_only_r.
72211
72212 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
72213
72214         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
72215         its complicated substitute.
72216         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
72217         and program_invocation_name.
72218         (__argp_basename) [!_LIBC]: Remove; the only use was
72219         replaced by its body.
72220         (__argp_short_program_name): Change condition from
72221         !defined __argp_short_program_name to
72222         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
72223         to match argp-namefrob.h.
72224         (__argp_failure): Don't assume strerror_r returns char *.
72225         * lib/argp-parse.c (N_): Define unconditionally.
72226         (argp_default_options): Fill out initializers with 0 to avoid
72227         gcc warnings.
72228
72229 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
72230
72231         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
72232         getopt1.c.
72233
72234 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
72235
72236         Merge from coreutils.
72237
72238         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
72239
72240         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
72241         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
72242
72243 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
72244
72245         Merge from coreutils.
72246
72247         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
72248         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
72249         for Reliant Unix 5.43.
72250
72251         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
72252         (union fooround): Use uintmax_t, not long int.
72253         The rest is a merge from libc:
72254         [defined _LIBC]: Include <shlib-compat.h>.
72255         (_obstack) [defined _LIBC]: Remove after 2.3.4.
72256
72257         * lib/settime.c (settime): Recode to avoid warning with
72258         Sun Forte C 6U2.
72259
72260         * lib/strverscmp.c: Convert to UTF-8.
72261
72262 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
72263
72264         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
72265         m4/uintmax_t.m4.
72266
72267 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72268
72269         * modules/xalloc-die: New file.
72270         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
72271
72272         * modules/md5 (Files): Add m4/uint32_t.m4.
72273         * modules/sha1: Renamed from modules/sha.
72274         (Files):
72275         Rename lib/sha.h to lib/sha1.h.
72276         Rename lib/sha.c to lib/sha1.c.
72277         Rename m4/sha.m4 to m4/sha1.m4.
72278         (lib_SOURCES): Likewise.
72279         (configure.ac): Rename gl_SHA to gl_SHA1.
72280         (Include): sha.h -> sha1.h.
72281
72282 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72283
72284         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
72285         * m4/sha1.m4: Renamed from sha.m4.
72286         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
72287
72288 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72289
72290         * lib/obstack.h (obstack_empty_p):
72291         Don't assume that chunk->contents is suitably aligned.
72292         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
72293         Likewise. Problem reported by Benno in
72294         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
72295
72296         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
72297         readable.  This could be improved further but it'd take some work.
72298
72299 2004-08-08  Simon Josefsson  <jas@extundo.com>
72300
72301         * modules/xgethostname (Depends-on): Remove exit and error (not
72302         used).
72303
72304         * modules/getpass-gnu: Add getpass.h.
72305         (Depends-on): Add stdbool.
72306         * modules/getpass: Add getpass.h.
72307
72308 2004-08-08  Simon Josefsson  <jas@extundo.com>
72309
72310         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
72311         Check getpass declaration.
72312
72313 2004-08-08  Simon Josefsson  <jas@extundo.com>
72314
72315         * lib/xgethostname.c: Don't include error.h (not used).
72316
72317         * lib/getpass.h: Add.
72318         * lib/getpass.c: Include getpass.h first.
72319
72320 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
72321
72322         * lib/xalloc-die.c: New file.
72323         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
72324         All uses removed.
72325         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
72326         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
72327         xalloc-die.c.
72328         (_, N_, xalloc_die): Move to xalloc-die.c.
72329         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
72330         so that we needn't mess with xalloc_msg_memory_exhausted.
72331
72332         * lib/sha1.h: Renamed from sha.h.
72333         (SHA1_H): Renamed from _SHA_H.
72334         (sha1_ctx): Renamed from sha_ctx.
72335         (sha1_init_ctx): Renamed from sha_init_ctx.
72336         (sha1_process_block): Renamed from sha_process_block.
72337         (sha1_process_bytes): Renamed from sha_process_bytes.
72338         (sha1_finish_ctx): Renamed from sha_finish_ctx.
72339         (sha1_read_ctx): Renamed from sha_read_ctx.
72340         (sha1_stream): Renamed from sha_stream.
72341         (sha1_buffer): Renamed from sha_buffer.
72342         * lib/sha1.c: Likewise; renamed from sha.c.
72343         Do not include <sys/types.h>.
72344         Include <stddef.h> rather than <stdlib.h>.
72345
72346 2004-08-08  Bruno Haible  <bruno@clisp.org>
72347
72348         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
72349         FILESYSTEM_PREFIX_LEN.
72350         * lib/progreloc.c: Likewise.
72351         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
72352
72353 2004-08-06  Simon Josefsson  <jas@extundo.com>
72354
72355         * modules/progname (Depends-on): Don't depend on stdbool.
72356
72357 2004-08-06  Simon Josefsson  <jas@extundo.com>
72358
72359         * modules/getsubopt: New file.
72360         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72361         getsubopt.
72362
72363 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
72364
72365         More merge from coreutils.
72366
72367         * m4/utimens.m4, m4/utimecmp.m4: New files.
72368         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
72369         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
72370         prereq.m4, sha.m4: Import changes from coreutils.
72371
72372 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
72373
72374         More merge from coreutils.
72375         * modules/raise, modules/readtokens0, modules/utimens:
72376         * modules/utimecmp, module/xnanosleep: New files.
72377         * modules/strftime: Add lib/strftime.h.
72378         Change include from <time.h> to "strftime.h".
72379         * modules/yesno: Add lib/yesno.h.
72380         * modules/backupfile: Remove lib/addext.c.
72381         * modules/euidaccess: Add stat-macros.h.
72382         * modules/canonicalize, modules/euidaccess,
72383         modules/filemode, modules/lchown, modules/makepath,
72384         modules/rmdir, modules/stat: Likewise.
72385
72386 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
72387
72388         Merge from tar.
72389         * lib/argp-help.c (make_hol, hol_append): Don't assume that
72390         SIZE_MAX is a valid preprocessor constant.
72391         (__argp_basename): Change from "#ifndef _LIBC"
72392         to "#ifndef __argp_short_program_name", so that
72393         we don't compile these functions for tar.
72394
72395         More merges from coreutils.
72396         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
72397         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
72398         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
72399         * lib/addext.c: Remove; no longer needed.
72400         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
72401         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
72402         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
72403         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
72404         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
72405         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
72406         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
72407         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
72408         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
72409         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
72410         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
72411         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
72412         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
72413         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
72414         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
72415         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
72416         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
72417         Import changes from coreutils.
72418
72419 2004-08-05  Simon Josefsson  <jas@extundo.com>
72420
72421         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
72422
72423 2004-08-05  Simon Josefsson  <jas@extundo.com>
72424
72425         * m4/getsubopt.m4: New file.
72426
72427 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
72428
72429         Merge from coreutils.
72430
72431         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
72432         * m4/getcwd-path-max.m4: New files.
72433
72434         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
72435         FILESYSTEM_PREFIX_LEN ->
72436         FILE_SYSTEM_PREFIX_LEN.
72437         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
72438         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
72439         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
72440         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
72441
72442         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
72443         prerequisite modules now handle the DOS stuff.
72444         Don't check for unistd.h.
72445
72446 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
72447
72448         Merge from coreutils.
72449
72450         * lib/.gdb-history: Remove; this doesn't belong here.
72451
72452         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
72453         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
72454         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
72455         * lib/getcwd.c: New files.
72456
72457         * lib/dirname.h: Include <stdbool.h>.
72458         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
72459         for consistency with POSIX terminology.  All uses changed.
72460         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
72461         (strip_trailing_slashes): Use bool for booleans.
72462         * lib/stripslash.c (strip_trailing_slashes): Likewise.
72463
72464         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
72465         sometimes returns a positive errno value even when it succeeds.
72466         (print_errno_message) [!LIBC]: Fall back on strerror if
72467         __strerror_r fails.
72468
72469         * lib/path-concat.c (mempcpy): Don't define if a system header defines
72470         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
72471         (longest_relative_suffix): New function.
72472         (path_concat): Use it.  Assume first argument is not NULL.
72473         Port to DOS.  Omit redundant separators.
72474         Report an error instead of returning NULL.
72475         Use mempcpy instead of memcpy.
72476         (xpath_concat): Remove: not declared or used.
72477
72478         * lib/same.h: Include <stdbool.h>
72479         (same_name): Return bool, not int.
72480         * lib/same.c (same_name): Likewise.
72481         (errno): Don't declare; we assume C89 or better now.
72482
72483         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
72484         if not already defined.
72485
72486         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
72487         * lib/dup-safer.c (errno): Likewise.
72488
72489 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
72490
72491         Merge from coreutils.
72492         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
72493         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
72494         * modules/path-concat: Don't depend on strdup.
72495
72496 2004-08-03  Simon Josefsson  <jas@extundo.com>
72497
72498         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
72499         * lib/progname.h: Don't include stdbool.h.
72500
72501 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
72502
72503         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
72504         * MODULES.html.sh (func_all_modules): Remove fatal.
72505
72506 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
72507
72508         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
72509
72510 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
72511
72512         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
72513         working.
72514
72515 2004-08-02  Simon Josefsson  <jas@extundo.com>
72516
72517         * lib/getsubopt.h: New file, with comments from Bruno Haible.
72518         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
72519         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
72520
72521 2004-08-01  Simon Josefsson  <jas@extundo.com>
72522
72523         * lib/xgetdomainname.c: Include stdlib.h, for free().
72524
72525 2004-07-19  Bruno Haible  <bruno@clisp.org>
72526
72527         * MODULES.html.sh (func_all_modules): Add dummy.
72528
72529 2004-07-16  Simon Josefsson  <jas@extundo.com>
72530
72531         * modules/dummy: New file.
72532
72533 2004-07-16  Simon Josefsson  <jas@extundo.com>
72534
72535         * lib/dummy.c: New file.
72536
72537 2004-07-16  Bruno Haible  <bruno@clisp.org>
72538
72539         * lib/backupfile.h: Add extern "C" for C++.
72540         * lib/closeout.h: Likewise.
72541         * lib/copy-file.h: Likewise.
72542         * lib/findprog.h: Likewise.
72543         * lib/full-write.h: Likewise.
72544         * lib/pathname.h: Likewise.
72545         * lib/progname.h: Likewise.
72546         * lib/stpcpy.h: Likewise.
72547         * lib/stpncpy.h: Likewise.
72548         * lib/strcase.h: Likewise.
72549         * lib/strstr.h: Likewise.
72550         * lib/xalloc.h: Likewise.
72551
72552         * lib/mbswidth.h: Add extern "C" for C++.
72553         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
72554
72555 2004-07-13  Robert Millan  <robertmh@gnu.org>
72556
72557         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
72558
72559 2004-07-09  Simon Josefsson  <jas@extundo.com>
72560
72561         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
72562         failed without this.)
72563
72564 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72565
72566         * modules/chown (Files): Add lib/fchown-stub.c, since
72567         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
72568
72569 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72570
72571         * lib/fchown-stub.c: New file.
72572
72573 2004-06-24  Jim Meyering  <jim@meyering.net>
72574
72575         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
72576
72577 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72578
72579         * modules/argz: Omit "#include".
72580
72581         * MODULES.html.sh (func_all_modules): Add calloc, to match
72582         2004-06-01 addition of calloc module.
72583
72584 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72585
72586         * m4/argz.m4: New file, which is autoupdated from libtool.
72587
72588 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72589
72590         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
72591         libtool.
72592
72593 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72594
72595         * config/srclist-update: Don't insist on "USA." before the
72596         close-comment, as libtool omits the period and puts the */ on a
72597         separate line.
72598         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
72599         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
72600
72601 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
72602
72603         * modules/argz: New file.
72604         * MODULES.html.sh (func_all_modules): Add argz.
72605
72606 2004-06-12  Jim Meyering  <jim@meyering.net>
72607         and  Paul Eggert  <eggert@cs.ucla.edu>
72608
72609         * modules/hash (Files): Add lib/xalloc.h.
72610         * modules/pipe (Depends-on): Add wait-process.
72611         * modules/stat (Depends-on): Add xalloc.
72612         * modules/userspec (Files): Add lib/userspec.h.
72613         * modules/xstrto
72614
72615         Upgrade from gettext-0.13.
72616         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
72617         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
72618         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
72619
72620 2004-06-10  Jim Meyering  <jim@meyering.net>
72621
72622         * lib/calloc.c: New file.
72623
72624 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
72625
72626         * lib/getdate.y (yylex): Allow space between sign and number.
72627         Problem reported by Dan Jacobson.
72628
72629 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
72630
72631         Merge from coreutils CVS.
72632
72633         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
72634         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
72635         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
72636         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
72637         xstrtol.m4: Fix copyright date and/or serial number.
72638
72639         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
72640         See if we need an fchown replacement.
72641         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
72642         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
72643         and use the replacement function if we detect either defect.
72644
72645         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
72646         gl_UTIMECMP.
72647
72648 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
72649         and  Jim Meyering  <jim@meyering.net>
72650
72651         Merge from coreutils CVS.
72652
72653         * lib/stat-macros.h: New file, with contents from file-type.h
72654         and coreutils' system.h.
72655         * lib/file-type.c: Include "stat-macros.h".
72656         * lib/file-type.h (file_type): Move all macro definitions to new file,
72657         stat-macros.h.
72658
72659         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
72660         Wrap old code with this conditional.
72661         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
72662         function that does not dereference symlinks.
72663         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
72664
72665         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
72666         dependency problems.
72667         (xreadlink): Accept new arg SIZE, for efficiency.
72668         All decls and uses changed.
72669         * lib/xreadlink.h: Include <stddef.h>, for size_t.
72670
72671         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
72672         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
72673
72674         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
72675         sysexits.h.
72676
72677 2004-06-01  Jim Meyering  <jim@meyering.net>
72678
72679         * m4/calloc.m4: New file.
72680
72681 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
72682
72683         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
72684         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
72685         Also, fix a typo in a diagnostic.
72686
72687 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
72688
72689         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
72690         or AC_FUNC_REALLOC.
72691
72692 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
72693
72694         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
72695         macros to be defined.
72696         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
72697         the allocator returns NULL because the requested size is zero.
72698
72699 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
72700
72701         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
72702         var.  Add comment explaining why libc still defines it.  This
72703         merges the following patch from glibc:
72704         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
72705
72706 2004-05-20  Andreas Schwab  <schwab@suse.de>
72707
72708         * m4/free.m4: Replace free if it not known to work, not the other
72709         way round.
72710
72711 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
72712
72713         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
72714         present in glibc since revision 1.1 of this file.
72715         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
72716         obstack_alignment_mask, obstack_alloc, obstack_base,
72717         obstack_blank, obstack_blank_fast, obstack_chunk_size,
72718         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
72719         obstack_grow0, obstack_init, obstack_int_grow,
72720         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
72721         obstack_next_free, obstack_object_size, obstack_ptr_grow,
72722         obstack_ptr_grow_fast, obstack_room): Remove declarations of
72723         nonexistent functions.
72724
72725 2004-05-18  Karl Berry  <karl@gnu.org>
72726
72727         * config/srclist.txt: break link for vasnprintf.c.
72728
72729 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
72730
72731         Port obstack to the AS/400, where pointers are 16 bytes wide and
72732         you cannot cast an integer to a valid pointer.  This patch is
72733         currently waiting to be integrated into glibc; see
72734         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
72735
72736         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
72737         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
72738         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
72739         (struct obstack): temp member is now a union of a pointer and
72740         an integer, instead of an integer.  All integer uses changed.
72741         This does not affect the physical layout of struct obstack,
72742         except on hosts (like the AS/400) where the size or alignment of
72743         void * is greater than that of ptrdiff_t.
72744         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
72745         __STDC__)]: Store temporary in pointer member of union, not
72746         integer member.
72747         * lib/obstack.c: Include <stddef.h>, for offsetof.
72748         (struct fooalign): Remove; it doesn't need a name.
72749         (union fooround): Change double to long double, and add void *.
72750         (DEFAULT_ALIGNMENT): Use offsetof to compute.
72751         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
72752         not a macro.  Hence the values are always int; so remove all
72753         casts-to-int in uses.
72754
72755 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
72756
72757         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
72758         we can get this patch merged into glibc.
72759
72760 2004-05-17  Derek R. Price  <derek@ximbiot.com>
72761             Paul Eggert  <eggert@cs.ucla.edu>
72762
72763         * m4/argp: Depend on alloca.
72764
72765 2004-05-17  Derek R. Price  <derek@ximbiot.com>
72766             Paul Eggert  <eggert@cs.ucla.edu>
72767
72768         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
72769         freecoding.
72770
72771 2004-05-17  Bruno Haible  <bruno@clisp.org>
72772
72773         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
72774         precision that consists of a '.' followed by an empty digit string.
72775         Patch by Tor Lillqvist <tml@iki.fi>.
72776
72777 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
72778
72779         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
72780         for backward compatibility with older code.  We need our own
72781         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
72782         it under some other name, and our alloca.h will define it.
72783
72784 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
72785             Derek Price  <derek@ximbiot.com>
72786
72787         * lib/alloca.c: Include <alloca.h>, to get our interface.
72788         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
72789         include <alloca.h> first.  Use C89 prototype for alloca; this
72790         requires including <stddef.h> for size_t.  Use extern "C" if C++.
72791         Use #elif for simplicity, since we can assume C89 now.
72792         Don't try to source the system alloca.h since it will not be found
72793         and to prevent recursively including its replacement.
72794         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
72795         * lib/regex.c: Likewise.
72796
72797 2004-05-16  Derek Price  <derek@ximbiot.com>
72798             Paul Eggert  <eggert@cs.ucla.edu>
72799
72800         getline cleanup.  This changes the getndelim2 API: both order of
72801         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
72802         no delimiter).
72803
72804         * lib/getline.c: Don't include stddef.h or stdio.h, since our
72805         interface does that.
72806         (getline): Always use getdelim, so that we don't have two
72807         copies of this code.
72808         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
72809         if available.
72810         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
72811         (GETNDELIM2_MAXIMUM): New macro.
72812         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
72813         instead of the old practice of delim2==0.  All callers changed.
72814         Return -1 on overflow, instead of returning junk.
72815         Do not set *linesize unless allocation succeeds.
72816         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
72817         that we include sys/types.h.
72818         * lib/getnline.h: Likewise.
72819         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
72820         (getndelim2): Reorder arguments.
72821         * lib/getnline.c (getnline, getndelim):
72822         Don't discard the NMAX argument.
72823         (getnline): Invoke getndelim, to avoid code duplication.
72824         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
72825         of (size_t) -1 by callers of the getnline family.
72826
72827 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
72828
72829         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
72830         Check for gettimeofday.
72831         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
72832         Check for settimeofday, stime.
72833
72834 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
72835
72836         * lib/nanosleep.c (suspended): Change its type from int to
72837         sig_atomic_t volatile.
72838         (first_call): Make it private to rpl_nanosleep, and have it
72839         be zero initially as that's a bit faster.
72840         (my_usleep): Round up fractional times instead of truncating them,
72841         as this is the usual meaning for 'sleep'.
72842
72843         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
72844         doesn't work.
72845         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
72846         (ENOSYS): Define if not defined.
72847         (settime): Fall back on stime if it exists and settimeofday fails.
72848         But don't bother with fallbacks if a method fails with errno == EPERM.
72849
72850 2004-05-11  Jim Meyering  <jim@meyering.net>
72851
72852         Prior to this change, the save_cwd caller required read access to the
72853         current directory on most systems (ones with the fchdir function).
72854
72855         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
72856         fails, try write-only, and finally, resort to using xgetcwd.
72857
72858 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
72859
72860         * lib/obstack.c, obstack.h: Import changes from libc.
72861
72862 2004-04-28  Bruno Haible  <bruno@clisp.org>
72863
72864         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
72865         also implicitly appends .exe to executables.
72866         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
72867         accepts Windows pathnames.
72868         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
72869         Treat Cygwin like Windows, since it now accepts Windows pathnames.
72870         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
72871         Treat Cygwin like Windows, since it now accepts Windows pathnames.
72872         Reported by Derek Robert Price <derek@ximbiot.com>.
72873
72874 2004-04-21  Karl Berry  <karl@gnu.org>
72875
72876         * config/srclist.txt (localcharset.c): break sync.
72877
72878 2004-04-20  Paul Eggert  <eggert@twinsun.com>
72879
72880         * m4/host-os.m4: Add a copyright notice.
72881
72882 2004-04-20  Jim Meyering  <jim@meyering.net>
72883
72884         Change UTILS_ to gl_ in AC_DEFINE'd names.
72885         Change utils_- and jm_-prefixed variables, too.
72886         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
72887         UTILS_FUNC_MKDIR_TRAILING_SLASH.
72888         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
72889
72890         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
72891         Don't emit trailing blanks.
72892         Also rename jm_-prefixed variables to have gl_ prefix.
72893
72894         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
72895         Also rename jm_-prefixed variables to have gl_ prefix.
72896
72897         * m4/jm-macros.m4: Reflect the renamings.
72898         * m4/prereq.m4: Likewise.
72899
72900 2004-04-20  Jim Meyering  <jim@meyering.net>
72901
72902         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
72903         memory.
72904
72905 2004-04-20  Jim Meyering  <jim@meyering.net>
72906             Bruno Haible  <bruno@clisp.org>
72907
72908         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
72909         memory when realloc fails.
72910
72911 2004-04-19  Jim Meyering  <jim@meyering.net>
72912
72913         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
72914         now that readutmp.c may call `free (0)'.
72915
72916 2004-04-19  Bruno Haible  <bruno@clisp.org>
72917
72918         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
72919         * m4/inttypes_h.m4: Likewise.
72920         * m4/stdint_h.m4: Likewise.
72921         * m4/intmax_t.m4: Likewise.
72922         * m4/uintmax_t.m4: Likewise.
72923
72924 2004-04-18  Jim Meyering  <jim@meyering.net>
72925
72926         * m4/prereq.m4: Don't forbid jm_ prefix.
72927
72928         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
72929         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
72930         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
72931         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
72932         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
72933         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
72934         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
72935         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
72936         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
72937         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
72938         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
72939         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
72940         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
72941         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
72942         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
72943         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
72944         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
72945         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
72946         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
72947
72948 2004-04-18  Jim Meyering  <jim@meyering.net>
72949
72950         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
72951         failure, don't leak memory and do call END_UTMP_ENT.
72952
72953 2004-04-16  Jim Meyering  <jim@meyering.net>
72954
72955         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
72956         coreutils' stat program.
72957         (gl_PREREQ): Don't require jm_PREREQ_STAT.
72958
72959 2004-04-11  Paul Eggert  <eggert@twinsun.com>
72960
72961         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
72962         C89.
72963         (CHAR_BIT): Remove, since we assume C89.
72964         Include <stdint.h> if available, as per current Autoconf CVS advice.
72965
72966 2004-03-31  Jim Meyering  <jim@meyering.net>
72967
72968         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
72969         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
72970         * m4/xalloc.m4: Likewise.
72971
72972 2004-03-30  Paul Eggert  <eggert@twinsun.com>
72973
72974         Merge from coreutils.
72975
72976         * m4/inttostr.m4: New file.
72977         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
72978         Require AM_STDBOOL_H and gl_TIMESPEC instead.
72979         Require gl_CLOCK_TIME.
72980         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
72981
72982 2004-03-30  Paul Eggert  <eggert@twinsun.com>
72983
72984         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
72985         not bool, to be more consistent with Unix conventions.
72986         Suggested by Bruno Haible.
72987
72988         Merge from coreutils.
72989
72990         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
72991         * lib/umaxtostr.c: New files.
72992
72993         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
72994         the usual <time.h> dance.
72995         (get_date): Change signature to support fractional time stamps.
72996         All callers changed.
72997         * lib/getdate.y: Include "getdate.h" first, as we can now
72998         assume C89 and don't need to worry about 'const'.
72999         Similarly, include "unlocked-io.h" near start, not in middle.
73000         Include <limits.h>.
73001         (textint.value): Use long int rather than int.
73002         (textint.digits): Use size_t rather than int.
73003         (BILLION, LOG10_BILLION): New constants.
73004         (parser_control): New member rel_ns.  Members day_ordinal,
73005         time_zone, month, day, hour, minutes, rel_year, rel_month,
73006         rel_day, rel_hour, rel_minutes, rel_seconds
73007         are now long int, not int.  Member seconds is now struct timespec,
73008         not int.  New member timespec_seen.  Members dates_seen, days_seen,
73009         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
73010         not int.
73011         (%union.intval): Now long int, not int.
73012         New member timespec.
73013         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
73014         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
73015         (spec): Now is a timespec or an item list.
73016         (timespec, items): New nonterminals.
73017         (time, rel, relunit, number, get_date):
73018         Add support for fractional seconds.
73019         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
73020         (gmtime, localtime, mktime): Remove decls; not needed with C89.
73021         (to_hour): First arg is now long int, not int.
73022         (to_year): Returns long int, not int.
73023         Don't treat year -70 like 70.
73024         (tm_diff): Returns long int, not int.
73025         (lookup_word): Use bool instead of int when appropriate.
73026         (yylex): Use size_t for count, not int.
73027         Detect overflow when parsing large integer constants.
73028         Add support for fractions.
73029         (get_date): Make pointers 'const' if possible.
73030         Use more-portable code to detect integer overflow.
73031         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
73032         Don't use ctime; it's not reliable if the year has >4 digits.
73033
73034         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
73035         This is for compatibility with BSD.
73036
73037         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
73038         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
73039         From coreutils' system.h.
73040
73041         * lib/userspec.c: Don't include "posixver.h".
73042         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
73043         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
73044         compatible extension.  Simplify code by removing a boolean int
73045         that was always nonzero if a string was nonnull.
73046
73047 2004-03-30  Jim Meyering  <jim@meyering.net>
73048
73049         Merge from coreutils.
73050
73051         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
73052         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
73053         on some systems one must include <grp.h> before it.
73054         Reported by Christian Krackowizer.
73055
73056 2004-03-30  Jim Meyering  <jim@meyering.net>
73057
73058         Merge from coreutils.
73059
73060         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
73061
73062         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
73063         an empty input stream.
73064
73065         * lib/readtokens.c: Include <stdbool.h>.
73066         (readtoken): Use `size_t' rather than int/long.
73067         All callers adjusted.
73068         Use `bool' rather than `int' where appropriate.
73069         Use memset rather than an explicit loop.
73070         Use x2nrealloc rather than xrealloc.
73071         Allow the use of `\0' as a delimiter.
73072         (readtokens): Likewise.
73073         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
73074
73075 2004-03-30  Jim Meyering  <jim@meyering.net>
73076
73077         * m4/realloc.m4: Remove file, since now it does no more than
73078         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
73079         the `configure.ac' section of module/realloc.
73080         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
73081
73082 2004-03-30  Bruno Haible  <bruno@clisp.org>
73083
73084         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
73085         nonnull.
73086
73087 2004-03-29  Paul Eggert  <eggert@twinsun.com>
73088
73089         Merge changes to getloadavg.c from coreutils and Emacs.
73090
73091         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
73092         Define to an expression, not to the empty string.
73093         Include cloexec.h and xalloc.h.
73094         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
73095         Use set_cloexec_flag rather than rolling our own.
73096         * lib/cloexec.c, lib/cloexec.h: New files.
73097
73098 2004-03-29  Paul Eggert  <eggert@twinsun.com>
73099
73100         * m4/cloexec.m4: New file.
73101
73102 2004-03-18  Paul Eggert  <eggert@twinsun.com>
73103
73104         * lib/getopt.h: Sync with libc CVS.
73105
73106 2004-03-18  Paul Eggert  <eggert@twinsun.com>
73107             Bruno Haible  <bruno@clisp.org>
73108
73109         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
73110         mbswidth.
73111
73112 2004-03-18  Paul Eggert  <eggert@twinsun.com>
73113             Bruno Haible  <bruno@clisp.org>
73114
73115         * lib/mbswidth.h: Include <wchar.h> only if
73116         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
73117         <wchar.h>.
73118         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
73119
73120 2004-03-09  Paul Eggert  <eggert@twinsun.com>
73121
73122         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
73123         Sync with libc CVS.
73124         * lib/getopt_int.h: New file, also synced from libc.
73125
73126 2004-03-09  Paul Eggert  <eggert@twinsun.com>
73127
73128         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
73129         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
73130         Bring back getopt.c, getopt.h, getopt1.c.
73131
73132 2004-03-07  Paul Eggert  <eggert@twinsun.com>
73133
73134         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
73135         All uses changed.  Check for sa_sigaction member; this fixes
73136         a bug first reported by Jason Andrade in
73137         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
73138
73139 2004-03-07  Paul Eggert  <eggert@twinsun.com>
73140
73141         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
73142         '#if' expressions.  Unlike the code it replaces, it does not
73143         depend on (defined _SC_PAGESIZE).  However, it does depend on
73144         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
73145         first reported by Jason Andrade in
73146         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
73147
73148 2004-02-25  Simon Josefsson  <jas@extundo.com>
73149
73150         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
73151
73152 2004-02-25  Simon Josefsson  <jas@extundo.com>
73153
73154         * lib/strdup.h: New file.
73155         * lib/strdup.c: Include it.
73156         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
73157         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
73158
73159 2004-02-23  Karl Berry  <karl@gnu.org>
73160
73161         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
73162         (from fencepost.gnu.org:/gd/gnuorg).
73163
73164 2004-02-23  Karl Berry  <karl@gnu.org>
73165
73166         * config/srclistvars.sh (GNUORG) [karl]: redefine.
73167         * config/srclist.txt: add maintain/standards documents.
73168
73169 2004-02-18  Bruno Haible  <bruno@clisp.org>
73170
73171         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
73172         Reported by Derek Robert Price <derek@ximbiot.com>.
73173
73174 2004-02-16  Karl Berry  <karl@gnu.org>
73175
73176         * config/mkinstalldirs, install-sh: update from automake.
73177
73178 2004-02-06  Karl Berry  <karl@gnu.org>
73179
73180         * m4/po.m4: update from gettext 0.14.1.
73181
73182 2004-02-06  Karl Berry  <karl@gnu.org>
73183
73184         * lib/config.charset: update from gettext 0.14.1.
73185
73186 2004-02-05  Paul Eggert  <eggert@twinsun.com>
73187
73188         Add comments and code, prompted by suggestions from Bruno Haible
73189         for sh-quote.
73190         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
73191         describing the enum quoting_style values.
73192         * lib/quotearg.c (quotearg_alloc): New function.
73193         (quotearg_buffer_restyled): Treat lone { and } as special.
73194         Treat = as special.  Work around bug with older shells
73195         that "see" a '\' that is really the 2nd byte of a multibyte char.
73196         Quote empty string with shell_quoting_style.
73197
73198 2004-02-03  Bruno Haible  <bruno@clisp.org>
73199
73200         * m4/pipe.m4: New file, from GNU gettext.
73201
73202 2004-02-03  Bruno Haible  <bruno@clisp.org>
73203
73204         * lib/pipe.h: New file, from GNU gettext.
73205         * lib/pipe.c: New file, from GNU gettext.
73206
73207 2004-01-27  Bruno Haible  <bruno@clisp.org>
73208
73209         * m4/execute.m4: New file, from GNU gettext.
73210
73211 2004-01-27  Bruno Haible  <bruno@clisp.org>
73212
73213         * lib/execute.h: New file, from GNU gettext.
73214         * lib/execute.c: New file, from GNU gettext.
73215         * lib/w32spawn.h: New file, from GNU gettext.
73216
73217 2004-01-24  Paul Eggert  <eggert@twinsun.com>
73218
73219         Merge from diffutils.
73220
73221         * lib/file-type.c (file_type): Add typed memory objects.
73222         * lib/file-type.h (S_TYPEISTMO): New macro.
73223
73224         * lib/c-stack.h (c_stack_action): Remove argv argument.
73225         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
73226         (die): Don't calculate message unless segv_action returns.
73227         (get_stack_location, min_address_from_argv, max_address_from_argv,
73228         volatile stack_base, volatile_stack_size): Remove.
73229         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
73230         that every segmentation violation is a stack overflow.  (Ouch!)
73231         See Debian bug 136249 (still outstanding) for more info about why
73232         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
73233
73234 2004-01-24  Paul Eggert  <eggert@twinsun.com>
73235
73236         Exit-status fix from coreutils.
73237
73238         Use exit_failure consistently in place of EXIT_FAILURE,
73239         so that program exit statuses are consistent on failure.
73240
73241         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
73242         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
73243         * lib/argmatch.h: Comment fix to match the above.
73244         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
73245         Now a macro referring to exit_failure, instead of a separate
73246         variable.  Include "exitfail.h" to get it.
73247         * lib/xstrtol.h: Include "exitfail.h".
73248         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
73249
73250         * lib/long-options.c (parse_long_options): Use prototype
73251         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
73252         for clarity.
73253
73254 2004-01-21  Jim Meyering  <jim@meyering.net>
73255
73256         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
73257         so as not to conflict with a different-sized __mktime_internal
73258         function in GNU libc.
73259         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
73260         Problem building statically-linked `ls' reported by Michael Brunnbauer.
73261
73262 2004-01-20  Karl Berry  <karl@gnu.org>
73263
73264         * config/config.guess: update from config.
73265
73266         * config/srclistvars.sh: GNUWWWLICENSES for karl.
73267
73268 2004-01-20  Bruno Haible  <bruno@clisp.org>
73269
73270         Safer stack allocation.
73271         * lib/setenv.c: Include allocsa.h.
73272         (alloca): Remove fallback definition.
73273         (freea): Remove macro.
73274         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
73275         instead of freea.
73276
73277 2004-01-20  Bruno Haible  <bruno@clisp.org>
73278
73279         * m4/eealloc.m4: New file, from GNU gettext.
73280
73281 2004-01-20  Bruno Haible  <bruno@clisp.org>
73282
73283         * m4/allocsa.m4: New file, from GNU gettext.
73284
73285 2004-01-20  Bruno Haible  <bruno@clisp.org>
73286
73287         * lib/xallocsa.h: New file, from GNU gettext.
73288         * lib/xallocsa.c: New file, from GNU gettext.
73289
73290 2004-01-20  Bruno Haible  <bruno@clisp.org>
73291
73292         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
73293
73294 2004-01-20  Bruno Haible  <bruno@clisp.org>
73295
73296         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
73297         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
73298         specially.
73299
73300 2004-01-20  Bruno Haible  <bruno@clisp.org>
73301
73302         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
73303         patch.
73304
73305 2004-01-20  Bruno Haible  <bruno@clisp.org>
73306
73307         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
73308
73309 2004-01-20  Bruno Haible  <bruno@clisp.org>
73310
73311         * lib/eealloc.h: New file.
73312
73313 2004-01-20  Bruno Haible  <bruno@clisp.org>
73314
73315         * lib/binary-io.h: Avoid warnings on Cygwin.
73316
73317 2004-01-20  Bruno Haible  <bruno@clisp.org>
73318
73319         * lib/allocsa.h: New file, from GNU gettext.
73320         * lib/allocsa.c: New file, from GNU gettext.
73321
73322 2004-01-18  Karl Berry  <karl@gnu.org>
73323
73324         * doc/gpl.texi, doc/lgpl.texi: new files.
73325
73326 2004-01-18  Karl Berry  <karl@gnu.org>
73327
73328         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
73329         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
73330
73331 2004-01-15  Paul Eggert  <eggert@twinsun.com>
73332
73333         Merge from coreutils.
73334
73335         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
73336         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
73337         (gl_DEFAULT_POSIX2_VERSION): Move
73338         the documentation from 'configure' into 'config.hin',
73339         so that 'configure --help' isn't burdened by it and
73340         we don't have to worry about its formatting there.
73341         Reword the documentation so that it's more succinct
73342         and can be run together into a single paragraph.
73343         * m4/same.m4 (gl_SAME): Check for pathconf.
73344
73345 2004-01-15  Paul Eggert  <eggert@twinsun.com>
73346
73347         Merge from coreutils.
73348
73349         * lib/posixver.c: Include posixver.h.
73350
73351         * lib/same.c: Include <stdbool.h>, <limits.h>.
73352         (_POSIX_NAME_MAX): Define if not defined.
73353         (MIN): New macro.
73354         (same_name): If file names are silently truncated, report
73355         that the file names are the same if they are the same after
73356         the silent truncation.
73357
73358         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
73359         conversion function.
73360         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
73361         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
73362         longer needed.
73363
73364 2004-01-15  Jim Meyering  <jim@meyering.net>
73365
73366         Merge from coreutils.
73367
73368         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
73369         if no library is required.
73370         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
73371         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
73372         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
73373         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
73374         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
73375         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
73376         value, $ac_cv_search_crypt, if it's "none required".
73377         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
73378         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
73379         not gl_FUNC_GETLOADAVG.
73380         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
73381         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
73382
73383 2004-01-15  Jim Meyering  <jim@meyering.net>
73384
73385         Merge from coreutils.
73386
73387         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
73388         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
73389         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
73390
73391         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
73392         optional configure-time default.
73393
73394         * lib/version-etc.c (version_etc_copyright): Update copyright date.
73395
73396         * lib/xreadlink.c (xreadlink): Correct outdated comment.
73397
73398 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
73399
73400         Merge from coreutils.
73401
73402         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
73403         value, $ac_cv_search_nanosleep, if it's "none required".
73404
73405 2004-01-14  Paul Eggert  <eggert@twinsun.com>
73406
73407         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
73408         with like-named macro in fnmatch.c.
73409         (EXT): Use an internal constant instead.
73410
73411         Merge fnmatch patches from glibc.
73412         * lib/fnmatch.c (mbsinit): Remove define.
73413         Add libc_hidden_ver (__fnmatch, fnmatch).
73414         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
73415         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
73416
73417 2004-01-14  Karl Berry  <karl@gnu.org>
73418
73419         * config/install-sh: update from automake.
73420
73421 2004-01-13  Karl Berry  <karl@gnu.org>
73422
73423         * config/install-sh: update from automake.
73424
73425 2004-01-09  Karl Berry  <karl@gnu.org>
73426
73427         * config/install-sh: update from automake.
73428
73429 2004-01-05  Karl Berry  <karl@gnu.org>
73430
73431         * config/config.{sub,guess}: update from config.
73432
73433 2003-12-31  Karl Berry  <karl@gnu.org>
73434
73435         * config/depcomp: update from automake.
73436
73437 2003-12-14  Karl Berry  <karl@gnu.org>
73438
73439         * lib/config.charset: update from gettext-runtime.
73440
73441 2003-12-03  Paul Eggert  <eggert@twinsun.com>
73442
73443         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
73444         Bug reported by Alfred M. Szmidt.
73445
73446 2003-12-03  Bruno Haible  <bruno@clisp.org>
73447
73448         * m4/gettext.m4: Upgrade from gettext-0.13.
73449         * m4/po.m4: Upgrade from gettext-0.13.
73450         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
73451         * m4/intmax.m4: New file, from gettext-0.13.
73452         * m4/printf-posix.m4: New file, from gettext-0.13.
73453
73454 2003-11-29  Karl Berry  <karl@gnu.org>
73455
73456         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
73457
73458 2003-11-25  Paul Eggert  <eggert@twinsun.com>
73459             Bruno Haible  <bruno@clisp.org>
73460
73461         * lib/printf-parse.h: Don't include sys/types.h.
73462         (ARG_NONE): New macro.
73463         (char_directive): Change type of *arg_index fields to size_t.
73464         * lib/printf-parse.c: Don't include sys/types.h.
73465         (SSIZE_MAX): Remove macro.
73466         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
73467         Remove unnecessary overflow check.
73468         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
73469         fields.
73470
73471 2003-11-25  Bruno Haible  <bruno@clisp.org>
73472
73473         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
73474
73475 2003-11-25  Bruno Haible  <bruno@clisp.org>
73476
73477         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
73478         gt_TYPE_SSIZE_T.
73479
73480 2003-11-24  Paul Eggert  <eggert@twinsun.com>
73481
73482         * modules/alloca: Remove dependency on xalloc.
73483
73484 2003-11-24  Paul Eggert  <eggert@twinsun.com>
73485
73486         * lib/alloca.c: Remove dependency on xalloc module.
73487         (xalloc_die): Remove.
73488         (memory_full) [!defined emacs]: New macro.
73489         [!defined emacs]: Don't include xalloc.h.
73490         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
73491         address arithmetic overflows.  Change datatypes a bit to avoid
73492         unnecessary casts.
73493
73494 2003-11-22  Jim Meyering  <jim@meyering.net>
73495
73496         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
73497         s/size/size_t/.
73498
73499 2003-11-21  Karl Berry  <karl@gnu.org>
73500
73501         * config/config.{sub,guess}: update from config.
73502
73503 2003-11-18  Karl Berry  <karl@gnu.org>
73504
73505         * config/config.{sub,guess}: update from config.
73506
73507         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
73508
73509 2003-11-17  Paul Eggert  <eggert@twinsun.com>
73510
73511         * README: Mention that S+T cannot overflow if S is the size of
73512         an existing object and T is sufficiently small.
73513
73514 2003-11-17  Jim Meyering  <jim@meyering.net>
73515
73516         On systems without utime and without a utimes function capable of
73517         dealing with a NULL struct utimbuf* argument, this utime replacement
73518         could -- in unusual circumstances -- leak a file descriptor.
73519         * lib/utime.c: Include <unistd.h> and <errno.h>.
73520         (utime_null): Be sure to close `fd' and to preserve errno.
73521         Reported by Geoff Collyer via Arnold Robbins.
73522
73523 2003-11-17  Bruno Haible  <bruno@clisp.org>
73524
73525         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
73526         (Depends-on): Add xsize.
73527
73528 2003-11-17  Bruno Haible  <bruno@clisp.org>
73529
73530         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
73531
73532 2003-11-17  Bruno Haible  <bruno@clisp.org>
73533
73534         * lib/vasnprintf.c (alloca): Remove fallback definition.
73535         (freea): Remove definition.
73536         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
73537         Reported by Paul Eggert.
73538
73539 2003-11-16  Paul Eggert  <eggert@twinsun.com>
73540             Bruno Haible  <bruno@clisp.org>
73541
73542         Protect against address arithmetic overflow.
73543         * lib/printf-args.h: Include stddef.h.
73544         (arguments): Change type of field 'count' to size_t.
73545         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
73546         'unsigned int' where appropriate.
73547         * lib/printf-parse.h: Include sys/types.h.
73548         (char_directive): Change type of *arg_index fields to ssize_t.
73549         (char_directives): Change type of fields 'count', max_*_length to
73550         size_t.
73551         * lib/printf-parse.c: Include sys/types.h and xsize.h.
73552         (SSIZE_MAX): Define fallback value.
73553         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
73554         instead of 'int' where appropriate. Check a_allocated, d_allocated
73555         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
73556         * lib/vasnprintf.c: Include xsize.h.
73557         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
73558         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
73559         overflow. Avoid wraparound when converting a width or precision from
73560         decimal to binary.
73561
73562 2003-11-16  Bruno Haible  <bruno@clisp.org>
73563
73564         Update from GNU gettext.
73565         * lib/printf-parse.c: Generalize to it can be compiled for wide
73566         strings.
73567         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
73568         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
73569         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
73570         SNPRINTF): New macros.
73571         Don't include <alloca.h> if the file is used inside libintl.
73572         (local_wcslen): New function, for Solaris 2.5.1.
73573         (VASNPRINTF): Use it instead of wcslen.
73574
73575 2003-11-16  Bruno Haible  <bruno@clisp.org>
73576
73577         * lib/xsize.h (xmax): New function.
73578         (xsum, xsum3, xsum4): Declare as "pure" functions.
73579
73580 2003-11-12  Paul Eggert  <eggert@twinsun.com>
73581
73582         * modules/xalloc (Files): Undo latest change, since xalloc.h
73583         no longer needs SIZE_MAX or PTRDIFF_MAX.
73584
73585 2003-11-12  Paul Eggert  <eggert@twinsun.com>
73586
73587         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
73588         gl_PTRDIFF_MAX.
73589
73590 2003-11-12  Paul Eggert  <eggert@twinsun.com>
73591
73592         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
73593         "return", to pacify some unknown compiler.  Problem reported
73594         by Joerg Schilling.
73595
73596 2003-11-12  Paul Eggert  <eggert@twinsun.com>
73597
73598         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
73599         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
73600         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
73601         heuristic is just as accurate as far as we know, and it removes a
73602         dependency on size_max.m4 and ptrdiff_max.m4.
73603
73604 2003-11-11  Bruno Haible  <bruno@clisp.org>
73605
73606         * modules/xsize (Files): Add m4/size_max.m4.
73607         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
73608
73609 2003-11-11  Bruno Haible  <bruno@clisp.org>
73610
73611         * m4/size_max.m4: New file.
73612         * m4/ptrdiff_max.m4: New file.
73613         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
73614         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
73615         (gl_XALLOC): Invoke it.
73616
73617 2003-11-11  Bruno Haible  <bruno@clisp.org>
73618
73619         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
73620         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
73621         defined.
73622
73623 2003-11-10  Paul Eggert  <eggert@twinsun.com>
73624
73625         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
73626         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
73627         rejected some allocations of exactly SIZE_MAX - 2 bytes.
73628         From Bruno Haible.
73629         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
73630         not (size_t) -1, since it's defined here.
73631
73632 2003-11-09  Karl Berry  <karl@gnu.org>
73633
73634         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
73635
73636 2003-11-06  Paul Eggert  <eggert@twinsun.com>
73637
73638         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
73639         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
73640         Reject sizes of exactly SIZE_MAX bytes.
73641         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
73642         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
73643
73644 2003-11-05  Bruno Haible  <bruno@clisp.org>
73645
73646         * lib/xsize.h: Include limits.h, to avoid a possible collision with
73647         SIZE_MAX defined in <limits.h> on Solaris.
73648
73649 2003-11-04  Jim Meyering  <jim@meyering.net>
73650
73651         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
73652         variable names, rather than @VAR@.
73653         * modules/poll: Likewise.
73654
73655 2003-11-04  Bruno Haible  <bruno@clisp.org>
73656
73657         * modules/xsize: New file.
73658         * modules/linebreak: Depend on xsize.
73659         * MODULES.html.sh (func_all_modules): Add xsize.
73660
73661 2003-11-04  Bruno Haible  <bruno@clisp.org>
73662
73663         * m4/xsize.m4: New file.
73664
73665 2003-11-04  Bruno Haible  <bruno@clisp.org>
73666
73667         * lib/xsize.h: New file.
73668         * lib/linebreak.c: Include xsize.h.
73669         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
73670         argument for overflow.
73671         Suggested by Paul Eggert.
73672
73673 2003-11-03  Karl Berry  <karl@gnu.org>
73674
73675         * config/config.{guess,sub}: update from config.
73676
73677 2003-11-03  Jim Meyering  <jim@meyering.net>
73678
73679         * modules/userspec (lib_SOURCES): Add userspec.h.
73680         (Include): Add "userspec.h".
73681         Improve description.
73682
73683 2003-11-03  Jim Meyering  <jim@meyering.net>
73684
73685         * lib/userspec.c: Include "userspec.h".
73686         * lib/userspec.h: New file.
73687
73688 2003-11-03  Bruno Haible  <bruno@clisp.org>
73689
73690         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
73691
73692 2003-11-03  Bruno Haible  <bruno@clisp.org>
73693
73694         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
73695         available, to avoid (extremely rare) race condition.
73696         Suggested by Paul Eggert.
73697
73698 2003-11-02  Karl Berry  <karl@gnu.org>
73699
73700         * config/srclist.txt (vasprintf.c): sync broken, sigh.
73701
73702 2003-10-31  Paul Eggert  <eggert@twinsun.com>
73703
73704         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
73705         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
73706         (read_filesystem_list): Set and use me_type_malloced.
73707         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
73708         whatever the type happens to be), for brevity and consistency.
73709         Check for size calculation overflow on Alphas running OSF/1.
73710
73711 2003-10-31  Jim Meyering  <jim@meyering.net>
73712
73713         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
73714
73715         * lib/linebuffer.c: Include <string.h> for declaration of memset.
73716
73717 2003-10-30  Paul Eggert  <eggert@twinsun.com>
73718             Bruno Haible  <bruno@clisp.org>
73719
73720         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
73721         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
73722
73723 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73724
73725         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
73726         netbsd*-gnu*.  Suggested by Robert Millan.
73727
73728 2003-10-29  Paul Eggert  <eggert@twinsun.com>
73729
73730         * modules/group-member: Depend on stdbool.
73731
73732 2003-10-29  Paul Eggert  <eggert@twinsun.com>
73733
73734         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
73735
73736 2003-10-29  Paul Eggert  <eggert@twinsun.com>
73737
73738         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
73739         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
73740         after the 'gnu' in these cases.  This fixes some bugs in the
73741         previous change, and is based on suggestions by Robert Millan.
73742
73743 2003-10-29  Paul Eggert  <eggert@twinsun.com>
73744
73745         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
73746         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
73747         no longer needed.
73748         * lib/quotearg.c (quotearg_n_options): Use it.
73749         * lib/group-member.c: Include <stdbool.h>.
73750         (free_group_info): Arg is now const *; don't free arg.
73751         (get_group_info): Now returns bool and accepts struct group_info *,
73752         rather than returning a malloc'ed struct group_info *.
73753         All uses changed.  Check for overflow in internal size calculation.
73754
73755         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
73756         rather than xmalloc/xrealloc.
73757         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
73758         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
73759         conformance bug: the old code used a pointer after freeing the
73760         storage that it addressed.
73761         * lib/hash.c (hash_initialize): Simplify the code by using
73762         xalloc_oversized rather than doing it by hand.
73763         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
73764         the buffer preserved.  Use free and xmalloc instead.
73765         * lib/quotearg.c (quotearg_n_options): Likewise.
73766         Use a simpler test for size overflow.  Don't use xalloc_oversized
73767         because unsigned int might be wider than size_t (!); this suggests
73768         that we should switch from unsigned int to size_t for slot numbers.
73769
73770 2003-10-28  Paul Eggert  <eggert@twinsun.com>
73771
73772         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
73773         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
73774         NetBSD kernels.  Requested by Richard Stallman.
73775
73776 2003-10-27  Paul Eggert  <eggert@twinsun.com>
73777
73778         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
73779         to allocate the returned structure.  Do not allocate a subarray,
73780         as x2nrealloc will do that.
73781         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
73782         instead of xnrealloc.
73783         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
73784
73785 2003-10-27  Bruno Haible  <bruno@clisp.org>
73786
73787         * lib/stdbool_.h: Better support for BeOS.
73788
73789 2003-10-26  Paul Eggert  <eggert@twinsun.com>
73790
73791         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
73792         now uses inline.
73793
73794 2003-10-26  Paul Eggert  <eggert@twinsun.com>
73795
73796         * lib/xalloc.h (xalloc_oversized): New static inline function, for
73797         callers that want to do their own size-overflow checking.  Include
73798         <stdbool.h>, since xalloc_oversized returns bool.
73799         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
73800         to use xalloc_oversized.
73801
73802         Add two functions x2realloc, x2nrealloc, for programs that grow
73803         arrays dynamically by doubling their sizes.
73804         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
73805         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
73806         New functions.
73807
73808         Port to C99 semantics for 'inline' of external functions.
73809         Bug reported by Bruno Haible.
73810         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
73811         with the old contents of xnmalloc.
73812         (xnmalloc, xmalloc): Use it.
73813         (xnrealloc_inline): New static inline function,
73814         with the old contents of xnrealloc.
73815         (xnrealloc, xrealloc): Use it.
73816
73817         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
73818         that.
73819
73820 2003-10-26  Karl Berry  <karl@gnu.org>
73821
73822         * config/srclist.txt (COPYING.DOC): no longer available from
73823         /gd/gnuorg; don't know where the ultimate source is.
73824
73825 2003-10-25  Paul Eggert  <eggert@twinsun.com>
73826
73827         Fix several address-calculation bugs in the hash modules,
73828         plus some minor code cleanup.
73829
73830         * lib/hash.h: Include <stdbool.h>, for bool.
73831         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
73832         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
73833         hash_get_n_entries, hash_get_max_bucket_length,
73834         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
73835         hash_rehash): Use size_t rather than unsigned.
73836         * lib/hash.c (struct hash_table, hash_get_n_buckets,
73837         hash_get_n_buckets_used, hash_get_n_entries,
73838         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
73839         hash_get_entries, hash_do_for_each, hash_string, is_prime,
73840         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
73841         Likewise.
73842         (SIZE_MAX): Define if not defined.
73843         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
73844         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
73845         hash_print):
73846         Use const * when possible.
73847         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
73848         (check_tuning): Fix bug: if tuning parameters were very close to
73849         0 or 1, rounding errors could have caused subscript violations.
73850         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
73851         (hash_initialize): Add 'fail:' label
73852         to free table and return NULL, and use it to simplify code.
73853         Use calloc rather than clearing the storage ourself.
73854         (hash_initialize, hash_rehash): Check for arithmetic overflow in
73855         buffer size calculations.
73856         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
73857         Include <stddef.h>, for size_t.
73858         * lib/hash-pjw.c (hash_pjw): Likewise.
73859         Switch to method described by Bruno Haible.
73860         Include <limits.h>, for CHAR_BIT.
73861         (SIZE_BITS): New macro.
73862
73863 2003-10-23  Paul Eggert  <eggert@twinsun.com>
73864
73865         * m4/getline.m4 (AM_FUNC_GETLINE):
73866         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
73867         hosts.  Problem reported by Derek Robert Price in
73868         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
73869         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
73870         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
73871
73872 2003-10-21  Paul Eggert  <eggert@twinsun.com>
73873
73874         * lib/getndelim2.c (getndelim2): When size calculation overflows,
73875         ceiling the allocation at NMAX bytes rather than silently
73876         discarding input bytes before NMAX is reached.  This makes
73877         a difference only if NMAX exceeds SIZE_MAX / 2.
73878
73879         * lib/obstack.c: Merge from glibc.
73880         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
73881         Add libc_hidden_def (_obstack_newchunk).
73882         (_obstack_free) [! defined _LIBC]: Remove.
73883         [defined _LIBC]: Make a strong alias from obstack_free, rather than
73884         a clone of the function body.
73885         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
73886         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
73887
73888         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
73889         glibc.
73890         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
73891         arg to memcpy.
73892
73893         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
73894         (obstack_ptr_grow_fast, obstack_int_grow_fast):
73895         Don't use lvalue casts, as GCC plans to remove support for them
73896         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
73897         was also present in the non-GCC version, indicating that this
73898         code had always been buggy and had never been widely used.
73899         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
73900         Use the fast variant of each macro, rather than copying the
73901         definiens of the fast variant; that way, we'll be more likely to
73902         catch future bugs in the fast variants.
73903
73904 2003-10-20  Bruno Haible  <bruno@clisp.org>
73905
73906         * modules/wait-process: New file.
73907         * MODULES.html.sh (func_all_modules): Add wait-process.
73908
73909 2003-10-20  Bruno Haible  <bruno@clisp.org>
73910
73911         * m4/wait-process.m4: New file.
73912
73913 2003-10-20  Bruno Haible  <bruno@clisp.org>
73914
73915         * lib/wait-process.h: New file, from GNU gettext.
73916         * lib/wait-process.c: New file, from GNU gettext.
73917
73918 2003-10-19  Jim Meyering  <jim@meyering.net>
73919
73920         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
73921         HPUX 10.20.
73922
73923 2003-10-18  Karl Berry  <karl@gnu.org>
73924
73925         * config/config.guess: update from config.
73926
73927 2003-10-16  Paul Eggert  <eggert@twinsun.com>
73928
73929         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
73930         (getgroups): First arg is int, not size_t.
73931         Don't let 'free' mangle errno.
73932
73933 2003-10-16  Paul Eggert  <eggert@twinsun.com>
73934
73935         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
73936
73937 2003-10-16  Karl Berry  <karl@gnu.org>
73938
73939         * config/config.{guess,sub}: update from config.
73940
73941 2003-10-16  Jim Meyering  <jim@meyering.net>
73942
73943         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
73944         memcpy.
73945
73946 2003-10-15  Paul Eggert  <eggert@twinsun.com>
73947
73948         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
73949         (SIZE_MAX): Remove.
73950         (new_exclude, add_exclude_file): Initial size no longer needs to
73951         be a power of 2.
73952         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
73953         our own address arithmetic overflow checking.
73954
73955         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
73956         (fnmatch): Do not alloca more than 2000 wide characters;
73957         instead, use malloc for large buffers.
73958         Check for address arithmetic overflow, and return -1
73959         with errno set to ENOMEM in that case.
73960         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
73961         (NEW_PATTERN): Do not alloca more than 8000 bytes;
73962         instead, return -1.  Check for address arithmetic overflow.
73963
73964 2003-10-14  Paul Eggert  <eggert@twinsun.com>
73965
73966         Handle invalid suffixes and overflow independently, so that
73967         callers can treat them independently as needed.  Fix some bugs in
73968         suffix handling, e.g., "100k@" was not diagnosed as an invalid
73969         suffix for a human-readable blocksize.  The major caller-visible
73970         change is the addition of a new
73971         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
73972         that both overflow and suffix chars were found.
73973
73974         * lib/human.c (humblock): Don't check separately for invalid suffix
73975         char; that is xstrtoumax's job (now that its bug is fixed).
73976         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
73977         INTMAX_MAX]: New macros.
73978         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
73979         TYPE_MAXIMUM): New macros.
73980         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
73981         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
73982         if overflow occurs, as it's what __strtol does and it's more useful
73983         in practice.
73984         (__xstrtol): If __strtol reports some error other than ERANGE,
73985         reflect it to the caller as LONGINT_INVALID.  If it reports
73986         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
73987         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
73988         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
73989         value.
73990         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
73991         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
73992         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
73993         [defined UINTMAX_MAX]: New macros.
73994
73995 2003-10-14  Bruno Haible  <bruno@clisp.org>
73996
73997         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
73998
73999 2003-10-14  Bruno Haible  <bruno@clisp.org>
74000
74001         * m4/sig_atomic_t: New file, from GNU gettext.
74002         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
74003
74004 2003-10-14  Bruno Haible  <bruno@clisp.org>
74005
74006         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
74007         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
74008         Also use volatile where needed.
74009
74010 2003-10-12  Paul Eggert  <eggert@twinsun.com>
74011
74012         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
74013         Change maintainer from Bruno Haible to 'all'.
74014
74015 2003-10-12  Paul Eggert  <eggert@twinsun.com>
74016
74017         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
74018
74019 2003-10-12  Paul Eggert  <eggert@twinsun.com>
74020
74021         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
74022         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
74023         and define in terms of the other primitives.
74024         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
74025         (SIZE_MAX): Define if not already defined.
74026         (array_size_overflow): New function.
74027         (xalloc_die): Abort instead of exiting if 'error' returns.
74028         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
74029         (xmalloc, xrealloc): Use them.
74030         (xcalloc): Check for address arithmetic overflow.
74031         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
74032         a bit faster than strcpy.
74033
74034 2003-10-10  Simon Josefsson  <jas@extundo.com>
74035
74036         * modules/argp (Depends-on): Add restrict and strcase.
74037
74038 2003-10-10  Simon Josefsson  <jas@extundo.com>
74039
74040         * m4/argp.m4: Add AC_C_INLINE.
74041
74042 2003-10-08  Paul Eggert  <eggert@twinsun.com>
74043
74044         Merge getpass from libc, plus a few fixes.
74045
74046         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
74047         Include <stdbool.h>.
74048         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
74049         __fsetlocking to empty.
74050         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
74051         do include <bits/libc-lock.h>.
74052         Do not include <fcntl.h>; not needed.
74053         [_LIBC]: Include <wchar.h>.
74054         (NOTCANCEL_MODE): New macro.
74055         (flockfile, funlockfile) [_LIBC]: New macros.
74056         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
74057         [!_LIBC]: New macros.
74058         (call_fclose): New function.
74059         (getpass): Use it.  Save tty stream separately; this simplifies the
74060         code and makes it more reliable if stdin happens to equal stdout.
74061         Invoke __fsetlocking on tty.
74062         Handle thread cancellation if needed.
74063         Namespace cleanup (use __tcgetattr, __getline).
74064         Use bool for Booleans.
74065         [USE_IN_LIBIO]: Handle wide streams.
74066         [!_LIBC]: Unconditionally do the fseek, since we don't know what
74067         stream might go where.
74068
74069         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
74070         doesn't have to include <stdio.h> before us.
74071         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
74072         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
74073         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
74074         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
74075         if not declared, so that we can use getpass.c code from libc without
74076         rewriting it.
74077         (flockfile, ftrylockfile, funlockfile): New macros.
74078
74079 2003-10-08  Paul Eggert  <eggert@twinsun.com>
74080
74081         * modules/getpass: Depend on stdbool.
74082
74083 2003-10-08  Paul Eggert  <eggert@twinsun.com>
74084
74085         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
74086
74087 2003-10-07  Karl Berry  <karl@gnu.org>
74088
74089         * config/config.{guess,sub}: update from config.
74090
74091 2003-10-06  Jim Meyering  <jim@meyering.net>
74092             Bruno Haible  <bruno@clisp.org>
74093
74094         This lets translators provide better translations for the
74095         "Written by ..." part of --version output.
74096         * lib/version-etc.h: Include stdarg.h.
74097         (version_etc_copyright): Declare as readonly.
74098         (version_etc): Make this function variadic with a NULL-terminated list
74099         of author name strings.
74100         (version_etc_va): New declaration.
74101         * lib/version-etc.c: Include stdarg.h, stdlib.h.
74102         (version_etc_copyright): Declare as readonly.
74103         (version_etc_va): New function. Provide a different translatable string
74104         for each possible number of authors < 10. Abbreviate when there are 10
74105         authors or more.
74106         (version_etc): Make this function variadic. Call version_etc_va.
74107         Suggestion from Gary V. Vaughan.
74108
74109         * lib/long-options.h (parse_long_options): Change prototype: the
74110         authors string is moved to the end and becomes variadic.
74111         * lib/long-options.c: Include stdarg.h.
74112         (parse_long_options): Make this function variadic, too.
74113         Call version_etc_va, not version_etc.
74114
74115 2003-10-06  Bruno Haible  <bruno@clisp.org>
74116
74117         * modules/version-etc-2: Remove file.
74118         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
74119
74120 2003-10-06  Bruno Haible  <bruno@clisp.org>
74121
74122         * modules/fatal-signal: New file.
74123         * MODULES.html.sh (func_all_modules): Add fatal-signal.
74124
74125 2003-10-06  Bruno Haible  <bruno@clisp.org>
74126
74127         * m4/fatal-signal.m4: New file.
74128         * m4/signalblocking.m4: New file, from GNU gettext.
74129
74130 2003-10-06  Bruno Haible  <bruno@clisp.org>
74131
74132         * lib/version-etc-2.h: Remove file.
74133         * lib/version-etc-2.c: Remove file.
74134
74135 2003-10-06  Bruno Haible  <bruno@clisp.org>
74136
74137         * lib/fatal-signal.h: New file, from GNU gettext.
74138         * lib/fatal-signal.c: New file, from GNU gettext.
74139
74140 2003-10-05  Paul Eggert  <eggert@twinsun.com>
74141
74142         * README: Rework advice for preventing empty .o files.
74143         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
74144         not <sys/types.h>.
74145
74146 2003-10-04  Karl Berry  <karl@gnu.org>
74147
74148         * lib/argp*: update from libc.
74149
74150 2003-10-04  Karl Berry  <karl@gnu.org>
74151
74152         * config/config.{guess,sub}: update from config.
74153
74154 2003-10-02  Bruno Haible  <bruno@clisp.org>
74155
74156         * modules/lchown (Include): Add lchown.h.
74157         * modules/time_r (Include): Use "..." syntax.
74158         * modules/xgetdomainname (Include): Add xgetdomainname.h.
74159
74160 2003-10-01  Simon Josefsson  <jas@extundo.com>
74161
74162         * MODULES.html.sh (func_all_modules): Move gethostname from section
74163         'based on' to section 'lacking' POSIX:2001.
74164
74165 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
74166
74167         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
74168         to output mode on the same stream.
74169
74170 2003-09-29  Paul Eggert  <eggert@twinsun.com>
74171
74172         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
74173         Fix arg typo in previous patch.
74174
74175 2003-09-28  Jim Meyering  <jim@meyering.net>
74176
74177         * lib/error.c: Correct cpp indentation.
74178
74179 2003-09-27  Paul Eggert  <eggert@twinsun.com>
74180
74181         * modules/free: New file.
74182
74183 2003-09-27  Paul Eggert  <eggert@twinsun.com>
74184
74185         * m4/free.m4: New file.
74186
74187 2003-09-27  Paul Eggert  <eggert@twinsun.com>
74188
74189         * lib/minmax.h (MIN, MAX)
74190         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
74191         Omit the special code that used __typeof__, since we worry that
74192         it could be more trouble than it's worth.  See:
74193         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
74194         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
74195
74196         * lib/free.c: New file.
74197
74198 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
74199
74200         Trivial fixes to Makefile.am parts of module listings.
74201         * modules/strstr: Append strstr.h to lib_SOURCES.
74202         * modules/strcase: Likewise, for strcase.h.
74203
74204 2003-09-27  Karl Berry  <karl@gnu.org>
74205
74206         * config/mkinstalldirs: update from automake.
74207
74208 2003-09-26  Paul Eggert  <eggert@twinsun.com>
74209
74210         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
74211         (error_tail): Do not loop, reallocating temporary buffer, since
74212         the output cannot contain more wide characters than the input
74213         contains bytes, the size must be big enough already.  This avoids
74214         one potential size overflow calculation.  Check for size overflow
74215         when calculating temporary buffer size.  Free temporary buffer
74216         when done, if it was allocated with malloc; this plugs a memory
74217         leak.  Remove casts from void * to pointers, that are no longer
74218         needed now that we're assuming C89 or better.
74219
74220         Merge error changes from glibc.
74221
74222         * lib/error.c, error.h: Update copyright notice header to match glibc.
74223         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
74224         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
74225         Disable cancellation while printing error.
74226         * lib/error.h: Prepend __ to parameter names.
74227
74228 2003-09-26  Jim Meyering  <jim@meyering.net>
74229
74230         * lib/error.c (error_tail): Move some declarations
74231         into inner scope where the local variables are used.
74232
74233 2003-09-26  Bruno Haible  <bruno@clisp.org>
74234
74235         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
74236         stpncpy().
74237         Don't define stpncpy through config.h; it's now done through stpncpy.h.
74238
74239 2003-09-26  Bruno Haible  <bruno@clisp.org>
74240
74241         * lib/stpncpy.h (gnu_stpncpy): New declaration.
74242         (stpncpy): Define as alias for gnu_stpncpy.
74243         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
74244
74245 2003-09-25  Simon Josefsson  <jas@extundo.com>
74246
74247         * lib/xgetdomainname.h: New file.
74248         * lib/xgetdomainname.c: New file.
74249
74250 2003-09-25  Simon Josefsson  <jas@extundo.com>
74251             Bruno Haible  <bruno@clisp.org>
74252
74253         * modules/getdomainname: New file.
74254         * modules/xgetdomainname: New file.
74255         * MODULES.html.sh (func_all_modules): Add getdomainname,
74256         xgetdomainname.
74257
74258 2003-09-25  Simon Josefsson  <jas@extundo.com>
74259             Bruno Haible  <bruno@clisp.org>
74260
74261         * m4/getdomainname.m4: New file.
74262
74263 2003-09-25  Simon Josefsson  <jas@extundo.com>
74264             Bruno Haible  <bruno@clisp.org>
74265
74266         * lib/getdomainname.h: New file.
74267         * lib/getdomainname.c: New file.
74268
74269 2003-09-25  Karl Berry  <karl@gnu.org>
74270
74271         * lib/argp-fmtstream.c, argp-help.c: update from libc.
74272
74273 2003-09-25  Karl Berry  <karl@gnu.org>
74274
74275         * config/install-sh: update from automake.
74276
74277 2003-09-25  Bruno Haible  <bruno@clisp.org>
74278
74279         * modules/version-etc-2: New file, from modules/version-etc with
74280         modifications.
74281         * MODULES.html.sh (func_all_modules): Add version-etc-2.
74282
74283 2003-09-25  Bruno Haible  <bruno@clisp.org>
74284
74285         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
74286         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
74287
74288 2003-09-24  Simon Josefsson  <jas@extundo.com>
74289
74290         * modules/xgethostname: Add xgethostname.h.
74291
74292 2003-09-24  Paul Eggert  <eggert@twinsun.com>
74293
74294         * lib/linebuffer.c (freebuffer): Don't free the argument, just
74295         the buffer associated with the argument.  Bug reported by
74296         Simon Josefsson.
74297
74298 2003-09-24  Paul Eggert  <eggert@twinsun.com>
74299
74300         * README: Document assumptions that 'int' is at least 32 bits
74301         wide, that integer arithmetic is 2's complement without overflow,
74302         that there are no holes in integer values, that adding sizes of
74303         two nonoverlapping objects can't overflow, and that all-bits-zero
74304         yields scalar zero.  Fix spelling and capitalization typos.
74305
74306 2003-09-19  Karl Berry  <karl@gnu.org>
74307
74308         * lib/argp.h: update from libc.
74309
74310 2003-09-17  Paul Eggert  <eggert@twinsun.com>
74311
74312         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
74313         to avoid spurious warnings like "AC_RUN_IFELSE was called before
74314         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
74315
74316 2003-09-17  Paul Eggert  <eggert@twinsun.com>
74317
74318         * gnulib-tool: Use "test -h", not "test -L", for portability
74319         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
74320         (tags_regexp): Remove, since \| doesn't conform to POSIX.
74321         (sed_extract_prog): Issue s commands one-by-one, rather than
74322         using \| in one s command.
74323
74324 2003-09-16  Paul Eggert  <eggert@twinsun.com>
74325
74326         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
74327         input error, instead of returning NULL the next time we are called
74328         (and therefore losing track of errno).
74329
74330 2003-09-16  Bruno Haible  <bruno@clisp.org>
74331
74332         * gnulib-tool (func_create_testdir): Warn about duplicated
74333         dependencies.
74334
74335 2003-09-15  Paul Eggert  <eggert@twinsun.com>
74336
74337         * modules/argmatch, modules/fatal, modules/obstack,
74338         modules/xalloc, modules/xgethostname: Sort dependencies by
74339         importance, not alphabetically.
74340
74341 2003-09-15  Paul Eggert  <eggert@twinsun.com>
74342
74343         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
74344         fails, so that the caller gets the proper errno.
74345
74346         * lib/readutmp.c (read_utmp): Likewise.
74347         Check for fstat error.  Close stream and free storage
74348         when failing.
74349
74350 2003-09-14  Karl Berry  <karl@gnu.org>
74351
74352         * config/srclist.txt (strdup.c): disable for c89 changes.
74353
74354 2003-09-14  Jim Meyering  <jim@meyering.net>
74355
74356         * lib/getloadavg.c: Correct cpp indentation.
74357         * lib/strdup.c: Likewise.
74358         * lib/vasnprintf.c: Likewise.
74359
74360 2003-09-14  Bruno Haible  <bruno@clisp.org>
74361
74362         * modules/fwriteerror: New file.
74363         * MODULES.html.sh (func_all_modules): Add fwriteerror.
74364
74365 2003-09-14  Bruno Haible  <bruno@clisp.org>
74366
74367         * lib/fwriteerror.h: New file.
74368         * lib/fwriteerror.c: New file.
74369
74370 2003-09-12  Paul Eggert  <eggert@twinsun.com>
74371
74372         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
74373         modules/xgethostname, modules/xalloc: Depend on exit.
74374
74375 2003-09-12  Paul Eggert  <eggert@twinsun.com>
74376
74377         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
74378
74379         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
74380         and AC_MINIX, too, so that their extensions are available.
74381
74382         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
74383         This macro has been superseded by gl_BACKUPFILE.
74384
74385         More patches to assume C89 or better.
74386
74387         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
74388
74389         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
74390         unconditionally.
74391         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
74392         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
74393         Include <string.h>, <stdlib.h> unconditionally.
74394         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
74395         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
74396         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
74397         headers or for string.h.
74398         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
74399         or strtoul.
74400
74401         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
74402         headers.
74403         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
74404         * m4/userspec.m4 (gl_USERSPEC): Likewise.
74405         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
74406         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
74407         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
74408         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
74409         memcpy, memset.
74410         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
74411         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
74412         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
74413         strtol.
74414         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
74415         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
74416         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
74417         strtoul.
74418
74419 2003-09-12  Paul Eggert  <eggert@twinsun.com>
74420
74421         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
74422         * lib/obstack.c [!defined _LIBC]: Likewise.
74423         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
74424         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
74425         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
74426
74427         More changes to assume C89 or better.
74428
74429         * lib/error.c (error_tail): Assume vprintf.
74430
74431         * lib/argmatch.c (getenv): Remove decl.
74432         * lib/progreloc.c (get_full_program_name): Define via prototype.
74433         * lib/setenv.c (clearenv): Likewise.
74434         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
74435         needed.
74436         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
74437         (malloc, memcpy): Remove decls.
74438         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
74439         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
74440         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
74441         (memcpy): Remove macro.
74442         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
74443         (__P): Remove.  All uses removed.
74444         (PTR): Remove.  All uses changed to void *.
74445         (CHAR_BIT, NULL): Remove.
74446         (spaces, zeros, memset_space, memset_zero)
74447         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
74448         Remove.
74449         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
74450         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
74451         Define with prototype.
74452         Remove now-unnecessary prototype decl.
74453         (extra_args_spec): Assume ANSI C.  All uses changed.
74454         (extra_args_spec_iso): Remove.
74455         (my_strftime, emacs_strftimeu): Define via prototype.
74456         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
74457         unconditionally.
74458         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
74459         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
74460         (strtoul, strtol): Remove decls.
74461         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
74462         LONG_MAX): Remove.
74463         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
74464         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
74465         (LOCALE_PARAM_PROTO): New macro.
74466         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
74467         (INTERNAL (strtol), strtol): Define with a prototype.
74468         (PARAMS): Remove.  All uses removed.
74469         * lib/tempname.c: Include <string.h> unconditionally.
74470         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
74471         * lib/xgethostname.c (main): Define with a prototype.
74472         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
74473         Include <stdlib.h> unconditionally.
74474         (calloc, malloc, realloc, free): Remove decls.
74475         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
74476         Include <stdlib.h> unconditionally.  Sort include file names.
74477         (strtod): Remove.
74478         (xstrtod): Define with a prototype.
74479         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
74480         (strtol, strtoul): Remove decls.
74481
74482 2003-09-11  Paul Eggert  <eggert@twinsun.com>
74483
74484         More patches to assume C89 or better.
74485         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
74486         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
74487         string.h, memchr, STDC_HEADERS.
74488
74489 2003-09-11  Paul Eggert  <eggert@twinsun.com>
74490
74491         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
74492         Include <stdlib.h>, <string.h> unconditionally.
74493         Remove now-unnecessary cast to char *.
74494         * lib/strnlen.c: Include <string.h> unconditionally.
74495         * lib/yesno.c (yesno): Define with a prototype.
74496
74497 2003-09-11  Bruno Haible  <bruno@clisp.org>
74498
74499         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
74500
74501 2003-09-10  Jim Meyering  <jim@meyering.net>
74502
74503         * lib/error.c: Correct indentation of cpp directives.
74504
74505 2003-09-10  Bruno Haible  <bruno@clisp.org>
74506
74507         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
74508         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
74509         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
74510         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
74511         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
74512         <stdlib.h> and <string.h> checks.
74513         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
74514         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
74515
74516 2003-09-10  Bruno Haible  <bruno@clisp.org>
74517
74518         * lib/strcspn.c: Include <string.h> unconditionally.
74519         * lib/strpbrk.c: Include <string.h> unconditionally.
74520         * lib/strstr.c: Include <string.h> unconditionally.
74521         * lib/unicodeio.c: Include <string.h> unconditionally.
74522         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
74523         * lib/unsetenv.c: Likewise.
74524         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
74525         * lib/yesno.c: Include <stdlib.h> unconditionally.
74526         (rpmatch): Add prototype.
74527
74528 2003-09-09  Paul Eggert  <eggert@twinsun.com>
74529
74530         More patches to assume C89 or better.
74531         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
74532         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
74533         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
74534         or for string.h.
74535         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
74536         stdlib.h.
74537         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
74538         C headers.
74539         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
74540         string.h.
74541         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
74542         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
74543         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
74544         or for string.h.
74545         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
74546         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
74547         C headers.
74548         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
74549         memcpy.
74550         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
74551         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
74552         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
74553         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
74554         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
74555         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
74556         string.h, free.
74557         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
74558         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
74559         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
74560         C headers, or for string.h.
74561         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
74562         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
74563         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
74564         headers, memory.h, stdlib.h, string.h, strings.h.
74565         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
74566         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
74567         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
74568         strchr.
74569         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
74570         headers, memory.h, string.h.
74571         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
74572         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
74573         free.
74574         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
74575         headers.
74576         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
74577         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
74578         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
74579         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
74580         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
74581
74582 2003-09-09  Paul Eggert  <eggert@twinsun.com>
74583
74584         More K&R removal.
74585
74586         * lib/acosl.c (main): Use a prototype.
74587         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
74588         tanl.c: Likewise.
74589
74590         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
74591
74592         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
74593         (getopt, etopt_long, getopt_long_only, _getopt_internal)
74594         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
74595         with a prototype.
74596         * lib/getopt.c (const): Remove macro.
74597         Include <string.h> unconditionally.
74598         (my_index): Remove; all uses changed to strchr.
74599         (strlen): Remove decl.
74600         (exchange): Remove forward decl; no longer needed.
74601         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
74602         Define with prototype.
74603         * lib/getopt1.c (const): Remove macro.
74604         (getopt_long, getopt_long_only, main): Define with prototype.
74605
74606         * lib/getugroups.c: Include <string.h> unconditionally.
74607
74608         * lib/getusershell.c: Include <stdlib.h> unconditionally.
74609         (getusershell, setusershell, endusershell, readname, main):
74610         Define with prototypes.
74611
74612         * lib/group-member.c: Include group-member.h first.
74613         Include <stdlib.h> unconditionally.
74614
74615         * lib/hard-locale.c: Include hard-locale.h first.
74616         Include <stdlib.h>, <string.h> unconditionally.
74617
74618         * lib/hash.c (free, malloc): Remove decls.
74619         Include <stdlib.h> unconditionally.
74620
74621         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
74622         (getenv): Do not declare.
74623
74624         * lib/idcache.c: Include <string.h> unconditionally.
74625
74626         * lib/long-options.c: Include long-options.h first, to test interface.
74627         Include <stdlib.h> unconditionally.
74628
74629         * lib/makepath.c: Include makepath.h first, to test interface.
74630         Include <stdlib.h> and <string.h> unconditionally.
74631
74632         * lib/linebuffer.c: Include <stdlib.h>.
74633         (free): Remove decl.
74634
74635         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
74636         stddef.h. rpl_malloc returns void *, not char *.
74637         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
74638         prototype.
74639
74640         * lib/md5.h: Include <limits.h> unconditionally.
74641         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
74642         (__P): Remove; all uses removed.
74643         * lib/md5.c: Include "md5.h" first.
74644         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
74645         md5_buffer, md5_process_bytes, md5_process_block):
74646         Define with prototypes.
74647         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
74648         * lib/sha.c: Include "sha.h" first.
74649         Include <stdlib.h>, <string.h> unconditionally.
74650
74651         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
74652         * lib/memcmp.c (__ptr_t): Likewise.
74653         * lib/memrchr.c (__ptr_t): Likewise.
74654         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
74655         Include <string.h> unconditionally.
74656         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
74657         * lib/memchr.c: Include <stdlib.h> unconditionally.
74658         * lib/memchr.c (LONG_MAX): Remove.
74659         * lib/memrchr.c (LONG_MAX): Likewise.
74660         * lib/memchr.c (__memchr): Define via a prototype.
74661         * lib/memrchr.c (__memrchr): Likewise.
74662         * lib/memcmp.c (__P): Remove, and remove all uses.
74663         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
74664         Remove forward decls; no longer needed.
74665         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
74666         Use types required by C89 in prototype.
74667
74668         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
74669         * lib/savedir.c: Likewise.
74670         * lib/mkdir.c (free): Remove decl.
74671         * lib/rmdir.c (rmdir): Define with a prototype.
74672         * lib/savedir.c: Include savedir.h first, to test interface.
74673
74674         * lib/mktime.c (STDC_HEADERS): Remove.
74675         Include <stdlib.h>, <string.h> unconditionally.
74676
74677         * lib/modechange.c: Include <stdlib.h> unconditionally.
74678         (malloc): Remove decl.
74679
74680         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
74681         (free): Remove decl.
74682
74683         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
74684         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
74685         (This type really should be intptr_t, but that's a C99ism.)
74686         (_obstack_memcpy): Remove: all uses changed to memcpy.
74687         Include <string.h> unconditionally.
74688         (struct obstack): Assume __STDC__ for types of members
74689         chunkfun, freefun, extra_arg.
74690         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
74691         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
74692         obstack_begin, obstack_specify_allocation,
74693         obstack_specify_allocation_with_arg, obstack_chunkfun,
74694         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
74695         Remove unprototyped decls and the macros that use them.
74696         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
74697         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
74698         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
74699         (defined __STDC__ && __STDC__)]:
74700         Remove nonprototyped code.
74701         Include <stdlib.h> unconditionally.
74702         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
74703         _obstack_allocated_p, _obstack_free, obstack_free,
74704         _obstack_memory_used, print_and_abort):
74705         Define using prototypes.
74706         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
74707         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
74708         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
74709         obstack_next_free, obstack_object_size, obstack_room) [0]:
74710         Remove unused, unprototyped code.
74711
74712         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
74713
74714         * lib/physmem.c (physmem_total, physmem_available, main): Define
74715         with prototypes.
74716
74717         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
74718         (main): Define with a prototype.
74719
74720         * lib/posixver.c (getenv): Remove decl.
74721
74722         * lib/putenv.c (malloc): Returns void *, not char *.
74723         Include <string.h> unconditionally.
74724         (strchr, memcpy, NULL): Do not define.
74725
74726         * lib/readtokens.c: Include readtokens.h first, to test interface.
74727         Include <stdlib.h>, <string.h> unconditionally.
74728         (init_tokenbuffer): Define with a prototype.
74729
74730         * lib/regex.c (PARAMS): Remove.  All uses removed.
74731         All uses of _RE_ARGS removed, too.
74732         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
74733         unconditionally.
74734         (bzero): Assume memset exists.
74735         (memcmp, memcpy, NULL): Remove.
74736         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
74737         char, or assignments to local vars of type signed char.
74738         (init_syntax_once, PREFIX(extract_number_and_incr),
74739         PREFIX(print_partial_compiled_pattern),
74740         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
74741         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
74742         PREFIX(regex_grow_registers), PREFIX(regex_compile),
74743         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
74744         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
74745         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
74746         wcs_compile_range, byte_compile_range, truncate_wchar,
74747         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
74748         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
74749         count_mbs_length, wcs_re_match_2_internal,
74750         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
74751         PREFIX(alt_match_null_string_p),
74752         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
74753         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
74754         regfree, PREFIX(extract_number)): Define with prototype.  Remove
74755         now-unnecessary declaration, if any.
74756         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
74757         regcomp, regexec):
74758         Remove now-unnecessary casts among pointer types.
74759         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
74760
74761         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
74762         (free): Remove decl.
74763
74764         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
74765
74766         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
74767         (free): Remove decl.
74768
74769         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
74770         * lib/xgetcwd.c: Likewise.
74771
74772         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
74773         (free): Remove decl.
74774
74775         * lib/strchrnul.c (strchrnul): Define with a prototype.
74776         Fix bug: c_in was not converted to char before searching.
74777
74778         The following changes are not K&R related:
74779
74780         * lib/group-member.h: Include <sys/types.h>, so that this file is
74781         self-contained.
74782         * lib/makepath.h: Likewise.
74783
74784         * lib/getusershell.c (readname, default_index, line_size, readname):
74785         Use size_t, not int, for sizes.
74786         (readname): If the size overflows, report an error instead of
74787         looping forever.
74788
74789 2003-09-09  Paul Eggert  <eggert@twinsun.com>
74790
74791         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
74792         libc.
74793
74794 2003-09-09  Paul Eggert  <eggert@twinsun.com>
74795
74796         * README: New section: portability guidelines.
74797
74798 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
74799
74800         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
74801         C89 spec.
74802
74803 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
74804
74805         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
74806
74807 2003-09-08  Paul Eggert  <eggert@twinsun.com>
74808
74809         Assume C89 or better; remove K&R cruft.
74810         A few of these changes were first proposed by Derek Robert Price
74811         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
74812
74813         * lib/addext.c: Include <string.h> unconditionally.
74814         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
74815         Don't declare getenv or malloc.
74816
74817         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
74818         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
74819         (NULL): Remove.
74820         (find_stack_direction, alloca): Use prototypes.
74821
74822         * lib/atexit.c (atexit): Define using a prototype.
74823
74824         * lib/basename.c, dirname.c, stripslash.c:
74825         Include <string.h> unconditionally.
74826
74827         * lib/bcopy.c: Include <stddef.h>.
74828         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
74829
74830         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
74831
74832         * lib/error.h (error, error_at_line, error_print_progname)
74833         [! (defined (__STDC__) && __STDC__)]: Remove decls.
74834         * lib/error.c: Include error.h first, to check interface.
74835         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
74836         (VA_START): Remove; all uses changeed to va_start.
74837         (exit, strerror): Remove decls.
74838         (error_print_progname): Prototype uncondionally.
74839         Don't include <errno.h>; no longer needed.
74840         (private_strerror): Remove.
74841         (error_tail): Always define.
74842         (error, error_at_line): Assume C89 or better; always use prototypes.
74843         * lib/fatal.c: Include "fatal.h" first, to test interface.
74844         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
74845         (VA_START): Remove; all uses changed to va_start.
74846         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
74847         this case.
74848         (exit): Remove decl.
74849         (fatal): Prototype unconditionally.  Assume va_start works.
74850         Abort at end, to pacify gcc.
74851
74852         * lib/euidaccess.c (main): Define with a prototype.
74853
74854         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
74855
74856         * lib/exitfail.c: Include <stdlib.h> unconditionally.
74857
74858         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
74859         prototypes.
74860         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
74861         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
74862         (getenv): Remove decl.
74863         (fnmatch): Define using a prototype.
74864         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
74865         (FCT): Define using a prototype.
74866
74867         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
74868
74869         * lib/gethostname.c: Include <stddef.h>.
74870         (gethostname): Define with prototype.  Length is size_t, not int.
74871
74872 2003-09-08  Paul Eggert  <eggert@twinsun.com>
74873
74874         Assume C89 or better; remove K&R cruft.
74875         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
74876         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
74877         string.h, getenv, malloc.
74878         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
74879         headers.
74880         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
74881         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
74882         do not check for strerror.
74883         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
74884         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
74885         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
74886         do not check for doprnt or vprintf.
74887         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
74888         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
74889
74890 2003-09-08  Paul Eggert  <eggert@twinsun.com>
74891
74892         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
74893         getversion.c should have been removed then, but was accidentally
74894         preserved.
74895
74896         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
74897         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
74898
74899 2003-09-08  Karl Berry  <karl@gnu.org>
74900
74901         * config/config.sub, config.guess, srclistvars.sh: update from savannah
74902                 config, forget about prep.
74903
74904         * config/depcomp, missing: update from automake.
74905
74906 2003-09-07  Paul Eggert  <eggert@twinsun.com>
74907
74908         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
74909         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
74910
74911 2003-09-07  Paul Eggert  <eggert@twinsun.com>
74912
74913         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
74914         copy_tm_result.  Bug reported by Simon Josefsson in
74915         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
74916
74917 2003-09-06  Paul Eggert  <eggert@twinsun.com>
74918
74919         * m4/time_r.m4: New file.
74920         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
74921         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
74922         is. Check for timegm declaration.
74923         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
74924         Do not check for gmtime_r.
74925         Replace mktime if __mktime_internal does not exist and if mktime
74926         hasn't been replaced already.
74927
74928 2003-09-06  Paul Eggert  <eggert@twinsun.com>
74929
74930         * lib/time_r.c, lib/time_r.h: New files.
74931
74932         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
74933         __localtime_r.
74934         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
74935         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
74936
74937         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
74938         __gmtime_r.
74939         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
74940         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
74941         Include <time_r.h>.
74942
74943         * lib/timegm.c: Switch to glibc implementation, with the following
74944         changes:
74945         [defined HAVE_CONFIG_H]: Include <config.h>.
74946         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
74947         (__mktime_internal) [!defined _LIBC]: New decl.
74948         (__gmtime_r) [!defined _LIBC]: New macro and function.
74949         (timegm): Use a prototype, since gnulib assumes C89.
74950         Do not bother declaring tmp to be const, as it's not really usefu.
74951         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
74952         (timegm): Declare only if HAVE_DECL_TIMEGM.
74953
74954 2003-09-06  Paul Eggert  <eggert@twinsun.com>
74955
74956         * MODULES.html.sh (func_all_modules): Add time_r.
74957         * modules/time_r: New file.
74958         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
74959         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
74960
74961 2003-09-03  Paul Eggert  <eggert@twinsun.com>
74962
74963         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
74964         Bug reported by Lute Kamstra in
74965         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
74966
74967         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
74968         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
74969         course with correspondingly smaller numbers for tomorrow and
74970         yesterday.  From Tadayoshi Funaba.  Originally installed into
74971         sh-utils on 1999-08-07, but the patch got lost (I guess during the
74972         coreutils merge?).
74973
74974 2003-08-31  Simon Josefsson  <jas@extundo.com>
74975
74976         * modules/timegm: New file.
74977         * MODULES.html.sh (func_all_modules): Add timegm.
74978
74979 2003-08-31  Simon Josefsson  <jas@extundo.com>
74980
74981         * m4/timegm.m4: New file.
74982
74983 2003-08-31  Simon Josefsson  <jas@extundo.com>
74984
74985         * lib/timegm.h: New file.
74986         * lib/timegm.c: New file.  Based on
74987         wget-1.8.2/src/http.c:mktime_from_utc.
74988
74989 2003-08-31  Karl Berry  <karl@gnu.org>
74990
74991         * lib/argp.h: update from libc.
74992
74993 2003-08-28  Bruno Haible  <bruno@clisp.org>
74994
74995         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
74996         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
74997         followed by '#define fnmatch fnmatch_posix' gives an error.
74998
74999 2003-08-28  Bruno Haible  <bruno@clisp.org>
75000
75001         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
75002         warning on QNX, which defines O_BINARY to 000000.
75003
75004 2003-08-27  Jim Meyering  <jim@meyering.net>
75005
75006         * m4/mkstemp.m4: Require that the system mkstemp be able to create
75007         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
75008         would fail after 32.  Reported by Danny Levinson.  Details here:
75009         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
75010
75011 2003-08-24  Bruno Haible  <bruno@clisp.org>
75012
75013         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
75014         MSVC7 <stdio.h> is included later.
75015
75016 2003-08-22  Simon Josefsson  <jas@extundo.com>
75017
75018         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
75019
75020 2003-08-20  Karl Berry  <karl@gnu.org>
75021
75022         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
75023
75024 2003-08-20  Bruno Haible  <bruno@clisp.org>
75025
75026         * modules/progname: New file.
75027         * MODULES.html.sh (func_all_modules): Add progname.
75028
75029 2003-08-20  Bruno Haible  <bruno@clisp.org>
75030
75031         * lib/progname.h: New file, from GNU gettext.
75032         * lib/progname.c: New file, from GNU gettext.
75033         * lib/progreloc.c: New file, from GNU gettext.
75034
75035 2003-08-19  Jim Meyering  <jim@meyering.net>
75036
75037         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
75038         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
75039
75040 2003-08-19  Bruno Haible  <bruno@clisp.org>
75041
75042         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
75043         more.
75044
75045 2003-08-19  Bruno Haible  <bruno@clisp.org>
75046
75047         * lib/xstrdup.c: Assume <string.h> exists.
75048
75049 2003-08-18  Paul Eggert  <eggert@twinsun.com>
75050
75051         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
75052         in makefile rules.
75053
75054 2003-08-18  Jim Meyering  <jim@meyering.net>
75055
75056         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
75057         * m4/lib-ld.m4: Likewise.
75058
75059 2003-08-18  Jim Meyering  <jim@meyering.net>
75060
75061         * lib/setenv.h: Indent nested cpp directive.
75062         * lib/vasnprintf.c: Remove trailing blanks.
75063
75064 2003-08-17  Simon Josefsson  <jas@extundo.com>
75065
75066         * modules/xstrndup: New file.
75067         * MODULES.html.sh (func_all_modules): Add xstrndup.
75068
75069 2003-08-17  Simon Josefsson  <jas@extundo.com>
75070
75071         * modules/argp: Fix autoconf macro name. Add more dependencies.
75072
75073 2003-08-17  Simon Josefsson  <jas@extundo.com>
75074
75075         * m4/xstrndup.m4: New file.
75076
75077 2003-08-17  Simon Josefsson  <jas@extundo.com>
75078
75079         * m4/argp.m4: New file.
75080
75081 2003-08-17  Simon Josefsson  <jas@extundo.com>
75082             Bruno Haible  <bruno@clisp.org>
75083
75084         * lib/xstrndup.h: New file.
75085         * lib/xstrndup.c: New file.
75086
75087 2003-08-17  Bruno Haible  <bruno@clisp.org>
75088
75089         * modules/strndup (Files, Include): Add lib/strndup.h.
75090
75091 2003-08-17  Bruno Haible  <bruno@clisp.org>
75092
75093         * modules/euidaccess (Files): Add lib/euidaccess.h.
75094
75095 2003-08-17  Bruno Haible  <bruno@clisp.org>
75096
75097         * lib/strndup.h: New file.
75098
75099 2003-08-17  Bruno Haible  <bruno@clisp.org>
75100
75101         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
75102         like AC_GNU_SOURCE.
75103         * modules/extensions (configure.ac): Comment out the invocation of
75104         gl_USE_SYSTEM_EXTENSIONS.
75105
75106 2003-08-16  Paul Eggert  <eggert@twinsun.com>
75107
75108         Merges from coreutils, etc.
75109         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
75110         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
75111         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
75112         fixing a typo.
75113         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
75114         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
75115
75116 2003-08-16  Paul Eggert  <eggert@twinsun.com>
75117
75118         Document merge from coreutils.
75119         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
75120         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
75121         * modules/utime: Add m4/utimes-null.m4.
75122
75123 2003-08-16  Paul Eggert  <eggert@twinsun.com>
75124
75125         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
75126         space, undoing this 2003-08-12 change:
75127         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
75128
75129 2003-08-16  Paul Eggert  <eggert@twinsun.com>
75130
75131         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
75132         strtoul.c from libc, undoing this 2003-08-12 change:
75133         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
75134
75135 2003-08-16  Jim Meyering  <jim@meyering.net>
75136
75137         Merges from coreutils.
75138         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
75139         prefix.  Adjust cache variables similarly.  Create 500 rather than
75140         just 300 files, to exercise bug on Darwin6.5, too.
75141         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
75142         $missing_dir.
75143         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
75144         AM_SYS_POSIX_TERMIOS.
75145         Reported by mkc@mathdogs.com.
75146         Also change use of $am_cv_sys_posix_termios
75147         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
75148         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
75149         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
75150         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
75151         in /proc/mounts until it finds one with matching device number.  This
75152         is unnecessary when the FILE argument *is* a mount point.  No stat call
75153         is necessary in that case.  So, disable the statvfs-testing code on
75154         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
75155         as RedHat bug# 84846.
75156         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
75157         to 1MB, so as not to render systems with no stack size limit (e.g.,
75158         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
75159         Include <unistd.h>.  On some systems,
75160         it is required for the definition of _SC_PAGESIZE.
75161
75162 2003-08-16  Jim Meyering  <jim@meyering.net>
75163
75164         Merge from coreutils.
75165         * lib/xstrtoimax.c: #else #if -> #elif.
75166         * lib/xstrtoumax.c: Likewise.
75167
75168 2003-08-16  Jim Meyering  <jim@meyering.net>
75169
75170         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
75171         * m4/utimes.m4: Removed.
75172         * m4/utimes-null.m4: Renamed from utimes.m4.
75173
75174         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
75175         to 1MB, so as not to render systems with no stack size limit (e.g.,
75176         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
75177         Include <unistd.h>.  On some systems,
75178         it is required for the definition of _SC_PAGESIZE.
75179
75180 2003-08-16  Jim Meyering  <jim@meyering.net>
75181         and Paul Eggert  <eggert@cs.ucla.edu>
75182
75183         Merges from coreutils, etc.
75184
75185         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
75186         using the latest version from cvs.  This avoids problems with #line
75187         directives using a vendor (Sun) compiler.
75188         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
75189         Don't set GETGROUPS_LIB here; now it's
75190         done via getgroups.m4's wrapper function.
75191         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
75192         rather than just in sh-util/configure.in, so that the
75193         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
75194         same.
75195         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
75196         AC_FUNC_GETLOADAVG where to find getloadavg.c.
75197         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
75198         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
75199         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
75200         Remove code that is now done by the newly-required macros.
75201         Append $(EXEEXT) to DF_PROG.
75202         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
75203         Do not invoke or require the following here,
75204         since prereq.m4 or some gnulib .m4 now does this for us:
75205         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
75206         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
75207         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
75208         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
75209         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
75210         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
75211         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
75212         AC_FUNC_OBSTACK.
75213         Do not replace the following functions, as this is now the job
75214         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
75215         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
75216         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
75217         atexit getpass, strdup, getpagesize.
75218         Replace 'raise'.
75219         Do not check for the following functions, as this is now the job
75220         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
75221         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
75222         setregid.
75223         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
75224         Check for sys/sysctl.h.
75225         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
75226         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
75227         of checking for ssize_t ourselves.
75228
75229         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
75230         Require every macro that gnulib/modules/* suggests for us.
75231         (jm_PREREQ_ADDEXT): New macro.
75232         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
75233         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
75234
75235         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
75236         (gl_PHYSMEM): Use it.
75237         Also check for `table' function.
75238         Check for new headers and functions.
75239         Add check for sys/sysmp.h.
75240         With suggestions from Kaveh Ghazi.
75241         Ignore headers that are present but cannot be compiled.  This
75242         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
75243         C 5.4.
75244
75245 2003-08-15  Paul Eggert  <eggert@twinsun.com>
75246
75247         Document merge from coreutils.
75248         * modules/userspec: Depend on posixver.
75249         * modules/strftime: Depend on tzset.
75250
75251 2003-08-15  Paul Eggert  <eggert@twinsun.com>
75252
75253         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
75254         rather than tab, after '#' in shell-script copyright notices.
75255         Suggested by Bruno Haible.
75256
75257 2003-08-15  Paul Eggert  <eggert@twinsun.com>
75258
75259         * config/srclist-update: Use three spaces, rather than tab, after '#'
75260         in shell-script copyright notices.  Suggested by Bruno Haible.
75261         Remove unnecessary parenthesization in regular expression.
75262
75263 2003-08-15  Jim Meyering  <jim@meyering.net>
75264
75265         Merge from coreutils.
75266         * lib/xgethostname.c: Include <stdlib.h>.
75267         (xghostname): Don't exit for anything other than memory-related
75268         failure; just return NULL.
75269         * lib/userspec.c: Include "posixver.h".
75270         (parse_user_spec): Accept `.' as a separator only
75271         in pre-POSIX-200112 mode.
75272         * lib/strtoimax.c: Use #elif rather than #else #if.
75273         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
75274         Remove function, now that we can rely on a working tzset function.
75275         [!_LIBC]: Ensure that the required autoconf test has been run.
75276         [!defined _NL_CURRENT && HAVE_STRFTIME]:
75277         Use underlying_strftime for %r.
75278         * lib/sha.c: Merge in some clean-up and optimization changes from
75279         glibc.
75280         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
75281         Ensure that it is a multiple of 64.
75282         Rearrange loop exit tests so as to avoid performing an
75283         additional fread after encountering an error or EOF.
75284         * lib/realloc.c: Update copyright date.
75285
75286 2003-08-15  Jim Meyering  <jim@meyering.net>
75287         and Paul Eggert  <eggert@twinsun.com>
75288
75289         Merge from coreutils.
75290         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
75291         member but strut utmpx does not.  Needed for AIX 4.3.3.
75292         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
75293
75294 2003-08-15  Jim Meyering  <jim@meyering.net>
75295         and Paul Eggert  <eggert@cs.ucla.edu>
75296
75297         Merges from coreutils, etc.
75298         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
75299         Require gl_FUNC_TZSET_CLOBBER.
75300         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
75301         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
75302         members.
75303
75304 2003-08-14  Paul Eggert  <eggert@twinsun.com>
75305
75306         Help the merge from coreutils.
75307         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
75308         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
75309         * m4/tzset.m4: Use it too.
75310
75311 2003-08-14  Paul Eggert  <eggert@twinsun.com>
75312
75313         * modules/tzset: New file.
75314
75315 2003-08-14  Jim Meyering  <jim@meyering.net>
75316
75317         Merges from coreutils.
75318         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
75319         variable names, rather than @FNMATCH_H@.
75320         * modules/alloca: Likewise for $(ALLOCA_H).
75321
75322         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
75323         the three copies of the literal target, `fnmatch.h'.
75324         * modules/alloca (alloca.h): Likewise.
75325
75326 2003-08-14  Jim Meyering  <jim@meyering.net>
75327
75328         Merge from coreutils.
75329         * m4/tzset.m4: New file.
75330         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
75331         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
75332         otherwise, AIX 5.1 systems would end up using the latter.
75333         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
75334         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
75335         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
75336         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
75337
75338 2003-08-14  Jim Meyering  <jim@meyering.net>
75339
75340         Merge from coreutils.
75341         * lib/obstack.h: Whitespace changes.
75342         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
75343         and xcalloc return values.
75344         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
75345         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
75346         hang on OSF/1 5.1 for DIR on both local and remote file systems.
75347         Reported by (and fix confirmed by) Nelson H. F. Beebe.
75348         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
75349         error from mntctl.
75350         Use mntctl's return value to drive the entry-processing loop, since
75351         we can't rely on the value of the vmt_length member in the last
75352         entry.  On some systems doing so could result in exhausting
75353         virtual memory.  Based in part on a patch from Mike Jetzer.
75354
75355 2003-08-14  Jim Meyering  <jim@meyering.net>
75356         and Paul Eggert  <eggert@twinsun.com>
75357
75358         Merges from coreutils, plus other fixes.
75359         * lib/physmem.c: Merge in portability changes from gcc/libiberty
75360         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
75361         for credits and details.  Thanks to Kaveh Ghazi for helping
75362         to keep these files in sync.
75363         (ARRAY_SIZE): Define it.
75364         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
75365         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
75366         (memcasecmp): Don't assume size_t fits in unsigned int.
75367         Remove casts and duplicate code.
75368         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
75369         (memcpy): Remove definition.
75370         Merge in some clean-up and optimization changes from glibc.
75371         [BLOCKSIZE]: Move definition to top of file.
75372         Ensure that it is a multiple of 64.
75373         Rearrange loop exit tests so as to avoid performing an
75374         additional fread after encountering an error or EOF.
75375         * lib/md5.h (md5_uintptr): Define.
75376         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
75377         return to the initial working directory.  Preserve errno
75378         for caller.
75379         * lib/idcache.c: Include "xalloc.h".
75380         (xmalloc, xrealloc): Remove decls.
75381         (getuser): Remove casts no longer required in C89.
75382         * lib/human.c: Include stdio.h, for sprintf.
75383         * lib/group-member.c: Include "xalloc.h".
75384         (xmalloc, xrealloc): Remove decls.
75385         (get_group_info): Remove casts no longer required in C89.
75386         * lib/getusershell.c (readname): Remove casts no longer required in
75387         C89.
75388         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
75389         * lib/getline.c: Whitespace fix, from coreutils.
75390
75391 2003-08-13  Paul Eggert  <eggert@twinsun.com>
75392
75393         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
75394         Check for isascii.
75395
75396         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
75397         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
75398         Undo previous (whitespace-only) change.
75399
75400 2003-08-13  Paul Eggert  <eggert@twinsun.com>
75401
75402         * lib/exclude.c: Include <ctype.h>
75403         (IN_CTYPE_DOMAIN): New macro.
75404         (is_space): New fn.
75405         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
75406         and empty lines.
75407
75408         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
75409         Undo previous (whitespace-only) change.
75410
75411 2003-08-13  Paul Eggert  <eggert@twinsun.com>
75412
75413         * config/srclist-update: Change update back to the old behavior,
75414         leaving whitespace alone.  Use one 'sed' command rather than a
75415         pipeline.
75416         (fixlicense): Now a variable, not a function.
75417         (remove_trailing_blanks): Remove.
75418         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
75419         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
75420         Undo previous (whitespace-only) change.
75421
75422 2003-08-12  Paul Eggert  <eggert@twinsun.com>
75423
75424         Merge from coreutils.
75425         * modules/euidaccess: Add lib_SOURCES, include for new
75426         file euidaccess.h
75427
75428 2003-08-12  Paul Eggert  <eggert@twinsun.com>
75429
75430         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
75431         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
75432         Normalize leading white space and remove trailing white space.
75433
75434         Merge from coreutils
75435         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
75436
75437         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
75438         0.12.1.  These files are now being upgraded automatically by
75439         ../config/srclist-update.
75440
75441 2003-08-12  Paul Eggert  <eggert@twinsun.com>
75442
75443         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
75444         Normalize leading white space and remove trailing white space.
75445         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
75446         notice, as per ../config/srclist-update.
75447
75448         Merge from coreutils.
75449         * lib/euidaccess.h: New file.
75450         * lib/euidaccess.c: Include it.
75451         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
75452         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
75453         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
75454
75455 2003-08-12  Paul Eggert  <eggert@twinsun.com>
75456
75457         * config/srclist-update: Add copyright notice.
75458         (remove_id_lines, remove_trailing_blanks): New constants.
75459         (fixfile): Use them to normalize spacing a bit in copied files.
75460         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
75461         Normalize leading white space and remove trailing white space.
75462
75463         * config/texinfo.tex: Sync with texinfo.
75464
75465         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
75466         strtoul.c from libc, to merge coreutils whitespace changes.
75467
75468         * config/srclist.txt: Get the following m4 files from gettext:
75469         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
75470         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
75471         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
75472         wint_t.m4.
75473
75474 2003-08-12  Karl Berry  <karl@gnu.org>
75475
75476         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
75477         been made.
75478
75479 2003-08-11  Paul Eggert  <eggert@twinsun.com>
75480
75481         * modules/gnu-source, m4/gnu-source.m4:
75482         Remove; we're assuming Autoconf 2.54 or later now.
75483         Suggested by Bruno Haible.
75484         * MODULES.html.sh (func_all_modules): Remove gnu-source.
75485
75486 2003-08-11  Bruno Haible  <bruno@clisp.org>
75487
75488         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
75489
75490 2003-08-11  Bruno Haible  <bruno@clisp.org>
75491
75492         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
75493         (vasnprintf): Use it instead of wcslen.
75494
75495 2003-08-11  Bruno Haible  <bruno@clisp.org>
75496
75497         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
75498         value to ensure that _Bool promotes to int. Use #define for _Bool when
75499         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
75500
75501 2003-08-10  Karl Berry  <karl@gnu.org>
75502
75503         * lib/regex.h: update from libc (whitespace fix).
75504
75505 2003-08-09  Paul Eggert  <eggert@twinsun.com>
75506
75507         Merge some files from coreutils.  These changes were
75508         originally made by Jim Meyering.
75509         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
75510         many older Unixes require this.
75511         * lib/alloca.c (alloca): Remove cast to argument of free;
75512         no longer needed in C89.
75513         * lib/alloca_.h, regex.h: Fix white space to match
75514         what GNU indent does.
75515
75516 2003-08-09  Paul Eggert  <eggert@twinsun.com>
75517
75518         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
75519         apparently Emacs's Unicode mode got confused before my 2003-08-05
75520         checkin.
75521
75522 2003-08-08  Paul Eggert  <eggert@twinsun.com>
75523
75524         * m4/extensions.m4: New file.
75525         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
75526         Require gl_USE_SYSTEM_EXTENSIONS.
75527         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
75528         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
75529
75530 2003-08-08  Paul Eggert  <eggert@twinsun.com>
75531
75532         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
75533         * modules/extensions, modules/gnu-source: New files.
75534         * modules/timespec, modules/unlocked-io: Depend on extensions.
75535
75536 2003-08-07  Paul Eggert  <eggert@twinsun.com>
75537
75538         * modules/restrict: New file.
75539         * MODULES.html.sh (func_all_modules): Add restrict.
75540         * modules/regex: Depend on restrict.
75541
75542 2003-08-07  Paul Eggert  <eggert@twinsun.com>
75543
75544         * m4/restrict.m4: New file.
75545         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
75546
75547 2003-08-07  Bruno Haible  <bruno@clisp.org>
75548
75549         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
75550         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
75551
75552 2003-08-07  Bruno Haible  <bruno@clisp.org>
75553
75554         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
75555         makes the module 'getndelim2' compatible with the module 'getline'.
75556
75557 2003-08-05  Paul Eggert  <eggert@twinsun.com>
75558
75559         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
75560         byte with "\201" to avoid glitches when editing that source file
75561         with multi-gnome-terminal.
75562
75563 2003-08-05  Paul Eggert  <eggert@twinsun.com>
75564
75565         * lib/bumpalloc.h: Remove.
75566
75567 2003-08-05  Paul Eggert  <eggert@twinsun.com>
75568
75569         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
75570         * modules/bumpalloc: Remove.
75571
75572 2003-08-04  Paul Eggert  <eggert@twinsun.com>
75573
75574         * lib/getloadavg.c: Change copyright notice and spacing to conform to
75575         GNU coding style.
75576
75577         Merge from coreutils.
75578         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
75579         1. From glibc.
75580         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
75581         from Karl Berry, implemented by Jim Meyering.
75582         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
75583         from Dmitry V. Levin.
75584         Remove anachronistic cast of xrealloc.
75585         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
75586         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
75587         type. Otherwise, it wouldn't compile with at least /bin/cc on
75588         ymp-cray-unicos9.0.2.X.
75589         Combine two mostly-identical uses of alloca into one.
75590         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
75591
75592 2003-08-04  Dave Love  <d.love@dl.ac.uk>
75593
75594         [From Emacs.]
75595
75596         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
75597         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
75598         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
75599         obsolete NLIST_NAME_UNION.
75600         [__GNU__]: Undef BSD and FSCALE.
75601         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
75602
75603 2003-08-03  Paul Eggert  <eggert@twinsun.com>
75604
75605         * lib/stdbool_.h (_Bool): Make it signed char, instead of
75606         an enum type, so that it's guaranteed to promote to int.  See:
75607         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
75608
75609 2003-08-03  Karl Berry  <karl@gnu.org>
75610
75611         * config/depcomp: update from automake.
75612
75613 2003-07-31  Paul Eggert  <eggert@twinsun.com>
75614
75615         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
75616         (strerror): Don't assume that a printable int fits in 14 bytes.
75617
75618 2003-07-31  Bruno Haible  <bruno@clisp.org>
75619
75620         * modules/getpass-gnu: New file.
75621         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
75622
75623 2003-07-31  Bruno Haible  <bruno@clisp.org>
75624
75625         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
75626
75627 2003-07-24  Karl Berry  <karl@gnu.org>
75628
75629         * config/missing: update from automake.
75630
75631 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
75632             Bruno Haible  <bruno@clisp.org>
75633
75634         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
75635         * lib/getline.c (getline, getdelim): Likewise.
75636         Remove _GNU_SOURCE define; now it's defined in config.h through
75637         m4/getline.m4.
75638
75639 2003-07-23  Karl Berry  <karl@gnu.org>
75640
75641         * config/config.sub: update from prep.
75642
75643 2003-07-22  Paul Eggert  <eggert@twinsun.com>
75644
75645         * modules/xalloc (Depends-on): Add exitfail.
75646         * modules/xmemcoll: Likewise.
75647
75648 2003-07-22  Paul Eggert  <eggert@twinsun.com>
75649
75650         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
75651         over-parenthesization in macros.
75652
75653         Sync with coreutils.
75654
75655         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
75656         required by C99.
75657
75658         Use `exit_failure' for xalloc and xmemcoll instead of their own
75659         private exit-failure variables.
75660         * lib/xalloc.h (xalloc_exit_failure): Remove.
75661         * lib/xmalloc.c: Likewise.  Include exitfail.h.
75662         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
75663         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
75664         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
75665         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
75666
75667 2003-07-20  Jim Meyering  <jim@meyering.net>
75668
75669         * modules/closeout (Depends-on): Add exitfail.
75670         Suggestion from Bruno Haible.
75671
75672 2003-07-19  Karl Berry  <karl@gnu.org>
75673
75674         * config/config.sub: update from prep.
75675
75676 2003-07-18  Paul Eggert  <eggert@twinsun.com>
75677
75678         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
75679         Remove.
75680         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
75681         to test that it can stand by itself.  Include "exitfail.h".
75682         Clients should set exit_failure instead.
75683         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
75684
75685 2003-07-18  Bruno Haible  <bruno@clisp.org>
75686
75687         * modules/getndelim2: New file.
75688         * modules/getline: Share files with module getndelim2.
75689         * modules/getnline: Depend on getndelim2 instead of sharing files with
75690         it. Add getnline.c to lib_SOURCES.
75691         * MODULES.html.sh (func_all_modules): Add getndelim2.
75692
75693 2003-07-18  Bruno Haible  <bruno@clisp.org>
75694
75695         * m4/getndelim2.m4: New file.
75696         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
75697         invoke gl_PREREQ_GETNDELIM2.
75698         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
75699         gl_PREREQ_GETNDELIM2.
75700         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
75701         gl_GETNDELIM2.
75702
75703 2003-07-18  Bruno Haible  <bruno@clisp.org>
75704
75705         * lib/getndelim2.h: New file.
75706         * lib/getndelim2.c: Make into a module of its own. Include config.h,
75707         getndelim2.h.
75708         (getndelim2): Make non-static. Change return type to ssize_t.
75709         * lib/getline.h: Change argument names.
75710         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
75711         * lib/getnline.c: Include getndelim2.h.
75712
75713 2003-07-18  Andreas Schwab  <schwab@suse.de>
75714
75715         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
75716
75717 2003-07-17  Karl Berry  <karl@gnu.org>
75718
75719         * config/config.sub: update from prep.
75720
75721 2003-07-17  Bruno Haible  <bruno@clisp.org>
75722
75723         * modules/getnline: New file.
75724         * modules/getline: Add lib/getndelim2.c to source file list.
75725         * MODULES.html.sh (func_all_modules): Add getnline.
75726
75727 2003-07-17  Bruno Haible  <bruno@clisp.org>
75728
75729         * m4/getnline.m4: New file.
75730
75731 2003-07-17  Bruno Haible  <bruno@clisp.org>
75732
75733         * m4/Makefile.am.in: Remove file.
75734         * m4/Makefile.am: Remove file.
75735         * m4/Makefile.in: Remove file.
75736
75737 2003-07-17  Bruno Haible  <bruno@clisp.org>
75738
75739         * lib/getnline.h: New file.
75740         * lib/getnline.c: New file.
75741         * lib/getndelim2.c: New file, extracted from getline.c.
75742         (getndelim2): Renamed from getdelim2, with added nmax argument.
75743         * lib/getline.c: Include getndelim2.c.
75744         (getdelim2): Moved out to getndelim2.c.
75745         (getline, getdelim): Update.
75746
75747 2003-07-17  Bruno Haible  <bruno@clisp.org>
75748
75749         * lib/Makefile.am: Remove file.
75750         * lib/Makefile.in: Remove file.
75751
75752 2003-07-17  Bruno Haible  <bruno@clisp.org>
75753
75754         * configure.in: Remove file.
75755         * Makefile.in: Remove file.
75756
75757 2003-07-17  Bruno Haible  <bruno@clisp.org>
75758
75759         * MODULES.html.sh: Put the </BODY> right before </HTML>.
75760
75761 2003-07-16  Karl Berry  <karl@gnu.org>
75762
75763         * config/srclist-update: was running fixlicense twice, which caused
75764                 texinfo.tex to be nullified for some reason.  Simplify,
75765                 $gplsrc is no longer needed as far as I can see?
75766
75767 2003-07-16  Jim Meyering  <jim@meyering.net>
75768
75769         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
75770
75771 2003-07-15  Paul Eggert  <eggert@twinsun.com>
75772
75773         * config/srclist.txt: Get the following files from gettext-runtime/intl
75774         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
75775         ref-del.sin.  From Bruno Haible.
75776         * config/srclist-update (fixfile): Change grep pattern again, since the
75777         previous fix didn't work (there was another trailing $).  Use
75778         '[$]' to escape the $s.
75779
75780 2003-07-15  Karl Berry  <karl@gnu.org>
75781
75782         * lib/vasnprintf.c: update from gettext.
75783
75784 2003-07-15  Karl Berry  <karl@gnu.org>
75785
75786         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
75787         gets expanded when surrounded by '$'.
75788
75789 2003-07-15  Jim Meyering  <jim@meyering.net>
75790
75791         * modules/save-cwd: Don't depend on error.  From Derek Price.
75792
75793 2003-07-15  Jim Meyering  <jim@meyering.net>
75794
75795         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
75796
75797 2003-07-14  Simon Josefsson  <jas@extundo.com>
75798
75799         * modules/mempcpy: New file.
75800         * MODULES.html.sh (func_all_modules): Add mempcpy.
75801
75802 2003-07-14  Simon Josefsson  <jas@extundo.com>
75803
75804         * m4/mempcpy.m4: New file.
75805
75806 2003-07-14  Simon Josefsson  <jas@extundo.com>
75807
75808         * lib/mempcpy.h: New file.
75809         * lib/mempcpy.c: New file.
75810
75811 2003-07-14  Paul Eggert  <eggert@twinsun.com>
75812
75813         * modules/getdate, modules/posixtm: Depend on mktime.
75814
75815 2003-07-14  Paul Eggert  <eggert@twinsun.com>
75816
75817         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
75818         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
75819         unicodeio.c, unicodeio.h, unlocked-io.h:
75820         Switch from LGPL to GPL.
75821
75822 2003-07-14  Paul Eggert  <eggert@twinsun.com>
75823
75824         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
75825         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
75826         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
75827         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
75828         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
75829         updated automatically by ../config/srclist-update.  This changes
75830         their license from LPGL to GPL.
75831
75832 2003-07-14  Paul Eggert  <eggert@twinsun.com>
75833
75834         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
75835         assumed to refer to the root of the most recent stable gettext version.
75836         * config/srclistvars.sh: Add defaults for eggert.
75837         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
75838         Match "This program" as well as "The program".  This is needed
75839         for gettext.
75840
75841 2003-07-14  Jim Meyering  <jim@meyering.net>
75842
75843         Don't emit diagnostics.  Let callers do that.
75844         * lib/save-cwd.c: Don't include "error.h".
75845         (save_cwd): Don't call error.  Ensure that errno is valid
75846         when returning nonzero.
75847
75848         * lib/save-cwd.h (restore_cwd): Update prototype.
75849         * lib/save-cwd.c (restore_cwd): Remove two parameters.
75850         Simplify.  Don't call error upon failure.  Let callers do that.
75851         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
75852         when auditing is enabled.  But don't bother updating the #if.
75853
75854 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
75855
75856         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
75857         it breaks C++ compilation.
75858         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
75859
75860 2003-07-10  Simon Josefsson  <jas@extundo.com>
75861
75862         * modules/strchrnul (Makefile.am): Add strchrnul.h.
75863
75864 2003-07-10  Jim Meyering  <jim@meyering.net>
75865
75866         * m4/clock_time.m4: Remove trailing blank.
75867         * m4/intmax_t.m4: Likewise.
75868
75869 2003-07-10  Jim Meyering  <jim@meyering.net>
75870
75871         * lib/vasnprintf.c: Remove trailing blanks.
75872         Make cpp indentation consistent.
75873
75874 2003-07-09  Paul Eggert  <eggert@twinsun.com>
75875
75876         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
75877         posixver.c, strftime.c, strnlen.c, strverscmp.c:
75878         Switch from LGPL to GPL.
75879
75880 2003-07-09  Paul Eggert  <eggert@twinsun.com>
75881
75882         * config/srclist.txt: Sort sublists.  Add
75883         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
75884         that differ from gnulib for one reason or another; we'd like this list
75885         to be smaller but for now let's document what we have.
75886
75887 2003-07-08  Paul Eggert  <eggert@twinsun.com>
75888
75889         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
75890         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
75891         and sweeter "eval x=$x".
75892         * config/srclist.txt: Get lib/argp* from glibc.
75893
75894 2003-07-07  Paul Eggert  <eggert@twinsun.com>
75895
75896         * lib/mktime.c: Fix some boundary cases and remove need for floating
75897         point.
75898
75899         Issue a compile-time diagnostic if time_t is floating point, or if
75900         two's complement arithmetic is not in effect, or if arithmetic
75901         right shift does not propagate the sign.  These assumptions were
75902         all in the original code but they weren't checked.
75903
75904         (TIME_T_MIDPOINT, verify): New macros.
75905         (__isleap): Remove; it has integer overflow problems.
75906         (leapyear): New function, without those problems.
75907         (ydhms_tm_diff): Remove; splitting into two parts.
75908         (ydhms_diff): New function, containing the arithmetic part of
75909         the old ydhms_tm_diff function.  Issue a compile-time
75910         diagnostic if we are not using C99 integer division.
75911         Avoid casts when possible.
75912         (guess_time_tm): New function, containing the checking part of
75913         the old ydhms_tm_diff function.  Return the new value, rather than
75914         the difference between it and the old.  Accept a new argument T
75915         so that *T specifies the old value.  Check for overflow in the result.
75916
75917         (__mktime_internal): Use a time_t offset, not a long int offset.
75918         This undoes the 2003-06-04 change, which is no longer needed now
75919         that we have better overflow checking.
75920         (localtime_offset): Likewise.
75921
75922         (__mktime_internal): Avoid harmful overflow on hosts where time_t
75923         and long are 64-bit but int is only 32-bit.
75924         (ydhms_diff): Use long int to store year1 and yday1.
75925         Issue a compile-time diagnostic if long int is not wide enough.
75926
75927         (__mktime_internal): Use long int to store adjusted year and yday.
75928         Use plain C rather than preprocessor commands, if that doesn't
75929         affect efficiency.
75930         Check for overflow (and try to repair) after each probe
75931         rather than checking only at the very end.  This avoids some bugs
75932         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
75933         does not equal GMT offset at maximum time).
75934         Use integer to check for overflow rather than floating point; this
75935         is more portable to non-IEEE hosts, and is a tad faster.
75936         When we detect that we are oscillating between two values,
75937         don't check whether tm_isdst has the requested value, since
75938         we already know the answer.  When tm_isdst has the wrong value,
75939         use a different heuristic to find the right one, based on the
75940         extreme values actually observed in practice in tz2003a,
75941         rather than the (overly optimistic) "previous 3 calendar quarters".
75942
75943         (not_equal_tm, print_tm, check_result): Use "const T" rather than
75944         "T const" to accommodate glibc style.
75945         (check_result): Use less-confusing report format.  "long" -> "long int.
75946         (main): Likewise.
75947         Don't loop if the iteration overflows time_t.
75948         Allow a negative step in the iteration.
75949
75950 2003-07-06  Karl Berry  <karl@gnu.org>
75951
75952         * config/depcomp: update from automake.
75953         * config/config.sub: update from prep.
75954
75955 2003-07-03  Karl Berry  <karl@gnu.org>
75956
75957         * config/config.guess: update from prep.
75958
75959 2003-07-01  Paul Eggert  <eggert@twinsun.com>
75960
75961         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
75962         xreadlink.c now includes it unconditionally.
75963
75964 2003-07-01  Paul Eggert  <eggert@twinsun.com>
75965
75966         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
75967         having it depend on HAVE_SYS_TYPES_H.
75968
75969 2003-07-01  Bruno Haible  <bruno@clisp.org>
75970
75971         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
75972         <sys/types.h> should be sufficient.
75973         Reported by Paul Eggert.
75974
75975 2003-06-26  Karl Berry  <karl@gnu.org>
75976
75977         * config/depcomp: update from automake.
75978
75979 2003-06-26  Bruno Haible  <bruno@clisp.org>
75980
75981         * modules/human: Depend on module stdbool.
75982
75983 2003-06-25  Bruno Haible  <bruno@clisp.org>
75984
75985         * modules/readlink: New file.
75986         * modules/xreadlink: Depend on it.
75987         * MODULES.html.sh (func_all_modules): Add readlink.
75988
75989 2003-06-25  Bruno Haible  <bruno@clisp.org>
75990
75991         * m4/readlink.m4: New file.
75992
75993 2003-06-25  Bruno Haible  <bruno@clisp.org>
75994
75995         * lib/readlink.c: New file.
75996
75997 2003-06-22  Karl Berry  <karl@gnu.org>
75998
75999         * config/srclist.txt: update mkinstalldirs from automake.
76000         * config/mkinstalldirs: update.
76001
76002 2003-06-22  Bruno Haible  <bruno@clisp.org>
76003
76004         Portability to mingw32.
76005         * m4/ssize_t.m4: New file, from GNU gettext.
76006         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
76007         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
76008
76009 2003-06-22  Bruno Haible  <bruno@clisp.org>
76010
76011         * modules/safe-read: Add m4/ssize_t.m4.
76012         * modules/xreadlink: Add m4/ssize_t.m4.
76013
76014 2003-06-20  Bruno Haible  <bruno@clisp.org>
76015
76016         Assume C89, so PARAMS isn't needed.
76017         * lib/unicodeio.h (PARAMS): Remove.
76018         * lib/unicodeio.c: Don't use PARAMS.
76019
76020 2003-06-18  Karl Berry  <karl@gnu.org>
76021
76022         * config/config.{guess,sub}: update from prep.
76023
76024 2003-06-18  Jim Meyering  <jim@meyering.net>
76025
76026         Merge changes from coreutils.
76027         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
76028         Remove explicit declarations of xmalloc and realloc.
76029         Include xalloc.h.
76030         (read_utmp): Remove anachronistic cast of xmalloc.
76031
76032 2003-06-17  Paul Eggert  <eggert@twinsun.com>
76033
76034         Assume C89, so PARAMS isn't needed.
76035         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
76036         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
76037         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
76038         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
76039         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
76040         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
76041         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
76042         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
76043         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
76044         lib/xstrtod.h, lib/xstrtol.h: Likewise.
76045         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
76046         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
76047         no longer needed. Anyway, config.h should always be included before any
76048         other file.
76049
76050 2003-06-11  Simon Josefsson  <jas@extundo.com>
76051
76052         * modules/sysexits: New file.
76053         * MODULES.html.sh (func_all_modules): Add sysexits.
76054
76055 2003-06-11  Simon Josefsson  <jas@extundo.com>
76056
76057         * lib/sysexit_.h: New file.
76058
76059 2003-06-11  Derek Price  <derek@ximbiot.com>
76060
76061         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
76062         necessary.
76063
76064 2003-06-11  Bruno Haible  <bruno@clisp.org>
76065
76066         * m4/sysexits.m4: New file.
76067
76068 2003-06-10  Simon Josefsson  <jas@extundo.com>
76069
76070         * lib/argp.h: New file, from glibc.
76071         * lib/argp-ba.c: New file, from glibc.
76072         * lib/argp-eexst.c: New file, from glibc.
76073         * lib/argp-fmtstream.c: New file, from glibc.
76074         * lib/argp-fmtstream.h: New file, from glibc.
76075         * lib/argp-fs-xinl.c: New file, from glibc.
76076         * lib/argp-help.c: New file, from glibc.
76077         * lib/argp-namefrob.h: New file, from glibc.
76078         * lib/argp-parse.c: New file, from glibc.
76079         * lib/argp-pv.c: New file, from glibc.
76080         * lib/argp-pvh.c: New file, from glibc.
76081         * lib/argp-xinl.c: New file, from glibc.
76082
76083 2003-06-10  Simon Josefsson  <jas@extundo.com>
76084
76085         * modules/strchrnul: New file.
76086
76087 2003-06-10  Simon Josefsson  <jas@extundo.com>
76088
76089         * modules/argp: New file.
76090
76091 2003-06-10  Simon Josefsson  <jas@extundo.com>
76092
76093         * m4/strchrnul.m4: New file.
76094
76095 2003-06-10  Simon Josefsson  <jas@extundo.com>
76096
76097         * lib/strchrnul.h: New file.
76098         * lib/strchrnul.c: New file.
76099
76100 2003-06-10  Bruno Haible  <bruno@clisp.org>
76101
76102         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
76103
76104 2003-06-07  Karl Berry  <karl@gnu.org>
76105
76106         * config/config.{guess,sub}: update from prep.
76107
76108 2003-06-07  Jim Meyering  <jim@meyering.net>
76109
76110         * modules/strtod: Use $(...) notation, not @...@ for
76111         AC_REPLACE'd variables.
76112         * modules/localcharset: Likewise.
76113
76114 2003-06-07  Jim Meyering  <jim@meyering.net>
76115
76116         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
76117         in place of my name in the copyright comment.
76118         Remove definition and uses of __P.
76119
76120         From coreutils.
76121         * lib/stat.c: Don't declare xmalloc explicitly.
76122         Instead, include "xalloc.h".
76123         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
76124         xrealloc, and xcalloc return values.
76125         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
76126         Improve comment.
76127         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
76128
76129 2003-06-07  Bruno Haible  <bruno@clisp.org>
76130
76131         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
76132         avoid AC_CONFIG_LINKS.
76133         * modules/fnmatch (Makefile.am): Use explicit creation rule for
76134         fnmatch.h, to avoid AC_CONFIG_LINKS.
76135         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
76136
76137 2003-06-07  Bruno Haible  <bruno@clisp.org>
76138
76139         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
76140         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
76141         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
76142         directory.
76143         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
76144         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
76145         directory.
76146
76147 2003-06-06  Jim Meyering  <jim@meyering.net>
76148
76149         Merge from coreutils.
76150         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
76151         Consolidate declarations and initializations of *_base* locals.
76152
76153         Merge from coreutils.
76154         This avoids a core dump on systems without GNU putenv,
76155         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
76156         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
76157         (unsetenv): New static function, from GNU libc.
76158         (rpl_putenv): Use it.
76159
76160         * lib/modechange.c: Remove trailing blanks.
76161
76162         Merge from coreutils.
76163         * lib/fsusage.c: Remove declaration of statfs.
76164         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
76165
76166         * lib/posixtm.c: Include <stdbool.h> unconditionally.
76167
76168 2003-06-06  Jim Meyering  <jim@meyering.net>
76169
76170         * lib/stdbool_.h: Renamed from stdbool.h.in.
76171
76172 2003-06-06  Jim Meyering  <jim@meyering.net>
76173             Bruno Haible  <bruno@clisp.org>
76174
76175         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
76176         Adjust Makefile.am snippet not to redirect directly to target.
76177         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
76178
76179 2003-06-05  Paul Eggert  <eggert@twinsun.com>
76180
76181         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
76182         mismatch, look in future quarters as well as past.  This fixes a
76183         bug when processing fall-backwards gaps immediately after a long
76184         period of daylight-saving time.
76185
76186         * lib/mktime.c: Assume freestanding C89 or better.
76187         (HAVE_LIMITS_H): Remove.  Assume it's 1.
76188         (__P): Remove; not used.
76189         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
76190         (mktime, not_equal_tm, print_tm, check_result,
76191         main): Use prototypes.  Use const * where appropriate.
76192         (main): Fix typo in testing code that uncovered by above changes.
76193         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
76194
76195 2003-06-04  Paul Eggert  <eggert@twinsun.com>
76196
76197         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
76198         locale.h, localeconv.  This merges changes from coreutils.
76199
76200         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
76201         It can be removed after the next Autoconf is released.
76202         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
76203         needed.
76204
76205 2003-06-04  Paul Eggert  <eggert@twinsun.com>
76206
76207         * lib/mktime.c: Fix Debian bug 177940
76208         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
76209         (localtime_offset): Now long int, not time_t, because we want it
76210         to be guaranteed to be signed.  All uses changed.
76211         (__mktime_internal): If overflow would occur when adding offset,
76212         don't add it.
76213
76214         Merge 'human' changes from coreutils.  Rewrite to support
76215         locale-specific notations like thousands separators.
76216         * lib/human.c: Simplify authorship notice.
76217         Include human.h immediately after config.h.
76218         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
76219         <limits.h>: Do not include, since human.h does.
76220         (SIZE_MAX, UINTMAX_MAX): New macros.
76221         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
76222         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
76223         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
76224         (power_letter): Renamed from suffixes.
76225         (generate_suffix_backwards): Remove.
76226         (adjust_value): Now takes int style (because of human.h changes)
76227         and long double value (for greater precision on some platforms).
76228         (group_number): New function.
76229         (human_readable): Use it.  Use integer options, not enum.
76230         Put the options before the sizes in the arg list.
76231         Support all the new options.
76232         The old human_readable function has been removed;
76233         use inttostr.h instead.
76234         (human_readable, default_block_size, humblock):
76235         Use uintmax_t, not int, for block sizes.
76236         (human_readable_inexact, block_size_types): Remove.
76237         (block_size_opts): New constant.
76238         (human_options): Renamed from human_block_size, with new signature
76239         that allows block sizes up to UINTMAX_MAX.  All callers changed.
76240         * lib/human.h: Add copyright and authorship notice.
76241         Include <limits.h> and <stdbool.h> unconditionally.
76242         (PARAMS): Remove.  All uses removed.
76243         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
76244         (enum human_inexact_style): Remove tag; now a nameless enum.
76245         (human_floor, human_ceiling, human_round_to_even): Now have
76246         values 2, 0, 1 rather than -1, 1, 0.
76247         (human_group_digits, human_suppress_point_zero, human_autoscale,
76248         human_base_1024, human_SI, human_B): New constants.
76249         (human_readable_inexact, human_block_size): Remove.
76250         (human_readable): Size args are now uintmax_t, not int.
76251         (human_options): New decl.
76252
76253         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
76254         unnecessary now that we assume C89 or better.  This change
76255         imported from coreutils.
76256
76257         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
76258         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
76259         in the 2003-05-30 sync from glibc.
76260
76261         .h files should stand alone, but we shouldn't include <sys/types.h>
76262         if we can get away with just <stddef.h>.
76263
76264         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
76265         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
76266         rather than <sys/types.h>, as we merely need size_t.
76267         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
76268         to get size_t.
76269         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
76270         Include <stdio.h>, to get FILE.
76271         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
76272         memcasecmp.h has included <stddef.h> and all we need is size_t.
76273         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
76274         our interface, instead of including <sys/types.h>
76275
76276 2003-06-04  Paul Eggert  <eggert@twinsun.com>
76277
76278         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
76279         now, as glibc mktime is buggy on non-glibc systems.
76280
76281 2003-06-03  Karl Berry  <karl@gnu.org>
76282
76283         * config/config.sub: update from prep.
76284
76285 2003-06-02  Paul Eggert  <eggert@twinsun.com>
76286
76287         [from coreutils]
76288         Fix some minor time-related bugs with POSIX time arguments.
76289         Some valid time stamps were being rejected (notably -1, and
76290         time stamps before 1900 on 64-bit hosts).  And some invalid
76291         time stamps were being accepted, e.g. September 31.
76292
76293         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
76294         that we can return (time_t) -1 successfully.
76295         * lib/posixtm.c: Likewise.
76296         [HAVE_STDBOOL_H]: Include <stdbool.h>.
76297         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
76298         (t): Remove static var.
76299         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
76300         of static var.  All uses changed.
76301         (year): Do not reject years before 1900; they can occur with
76302         64-bit time_t.
76303         (posix_time_parse): Do not check for out-of-range components;
76304         that is now the caller's responsibility, since our checks were
76305         only approximations.
76306         (posixtime): Use mktime to check for out-of-range components,
76307         since it knows them exactly.
76308         If mktime returns (time_t) -1, check whether an error actually occurred
76309         by invoking localtime on -1.
76310         (main) [TEST_POSIXTIME]: Check for input data errors, and report
76311         posixtime failures better.
76312         Improve the test data (in comments only).
76313
76314 2003-06-02  Karl Berry  <karl@gnu.org>
76315
76316         * config/mkinstalldirs (version): new variable.
76317         (--version): new option.
76318         (usage): improve message.
76319
76320 2003-05-30  Karl Berry  <karl@gnu.org>
76321
76322         * lib/mktime.c: update from libc.
76323
76324 2003-05-30  Bruno Haible  <bruno@clisp.org>
76325
76326         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
76327         * config/config.rpath: Upgrade to gettext-0.12.1.
76328
76329 2003-05-30  Bruno Haible  <bruno@clisp.org>
76330
76331         * m4/gettext.m4: Upgrade to gettext-0.12.1.
76332         * m4/nls.m4: New file, from gettext-0.12.1.
76333         * m4/po.m4: New file, from gettext-0.12.1.
76334         * m4/progtest.m4: Upgrade to gettext-0.12.1.
76335
76336 2003-05-30  Bruno Haible  <bruno@clisp.org>
76337
76338         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
76339         * lib/localcharset.h: Likewise.
76340         * lib/localcharset.c: Likewise.
76341
76342 2003-05-29  Karl Berry  <karl@gnu.org>
76343
76344         * config/config.rpath: update from gettext.
76345
76346 2003-05-28  Paul Eggert  <eggert@twinsun.com>
76347
76348         Assume the headers required for C89 freestanding compilers.
76349         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
76350         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
76351         * m4/human.m4 (gl_HUMAN): Likewise.
76352         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
76353         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
76354         * m4/userspec.m4 (gl_USERSPEC): Likewise.
76355         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
76356         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76357         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
76358
76359 2003-05-28  Paul Eggert  <eggert@twinsun.com>
76360
76361         Assume the headers required for C89 freestanding compilers.
76362         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
76363         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
76364         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
76365         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
76366         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
76367         define, since <limits.h> is guaranteed to do that.
76368         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
76369         * lib/exclude.c: Include <stdbool.h> unconditionally.
76370         * lib/tempname.c: Include <stddef.h> unconditionally.
76371         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
76372         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
76373         <stddef.h> does that.
76374         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
76375         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
76376         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
76377         needed.
76378         * lib/xstrtol.c: Likewise.
76379         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
76380         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
76381
76382         * lib/addext.c (addext): Use assignment rather than cast, to avoid
76383         warnings on some platforms.
76384
76385         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
76386         arbitrarily.
76387
76388 2003-05-26  Jim Meyering  <jim@meyering.net>
76389
76390         Merge in a change from coreutils:
76391         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
76392         that is guaranteed to be `no'.  Use `no_such_member' to indicate
76393         that condition, rather than `-1' which is slightly misleading.
76394         Change the name of the cache variable to have the gl_ prefix.
76395         Prompted by a patch from Richard Dawe for DJGPP.
76396
76397 2003-05-24  Karl Berry  <karl@gnu.org>
76398
76399         * config/config.guess: update from prep.
76400
76401 2003-05-22  Karl Berry  <karl@gnu.org>
76402
76403         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
76404
76405 2003-05-20  Karl Berry  <karl@gnu.org>
76406
76407         * config/config.guess: update from prep.
76408
76409 2003-05-18  Karl Berry  <karl@gnu.org>
76410
76411         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
76412         might actually be set by the user.
76413
76414         * config/depcomp, install-sh, mdate-sh: update from automake.
76415
76416 2003-05-17  Bruno Haible  <bruno@clisp.org>
76417
76418         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
76419         invalid expansion for AC_EGREP_CPP.
76420         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
76421         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
76422         Suggested by Akim Demaille <akim@epita.fr> in
76423         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
76424
76425 2003-05-12  Jim Meyering  <jim@meyering.net>
76426
76427         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
76428         the space-padded-by-default conversion specifiers, %e, %k, %l.
76429
76430 2003-05-12  Bruno Haible  <bruno@clisp.org>
76431
76432         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
76433         the string is longer than 4 KB.
76434
76435 2003-05-11  Karl Berry  <karl@gnu.org>
76436
76437         * config/config.{guess,sub}: update from prep.
76438
76439 2003-05-09  Bruno Haible  <bruno@clisp.org>
76440
76441         * modules/error: Add m4/strerror_r.m4 to file list.
76442
76443 2003-05-03  Bruno Haible  <bruno@clisp.org>
76444
76445         Upgrade to Unicode-4.0.
76446         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
76447         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
76448         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
76449         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
76450         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
76451         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
76452         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
76453         Change width of U+E0100..U+E01EF from 1 to 0.
76454
76455 2003-04-25  Jim Meyering  <jim@meyering.net>
76456
76457         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
76458         of type size_t, not int.
76459
76460 2003-04-25  Bruno Haible  <bruno@clisp.org>
76461
76462         * lib/copy-file.c: Include <stddef.h>, for size_t.
76463
76464 2003-04-21  Paul Eggert  <eggert@twinsun.com>
76465
76466         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
76467         code which expansion is under static control.  Patch imported from
76468         Akim Demaille's patch to Bison; see
76469         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
76470
76471 2003-04-14  Bruno Haible  <bruno@clisp.org>
76472
76473         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
76474
76475 2003-04-11  Jim Meyering  <jim@meyering.net>
76476
76477         Merge changes from Coreutils.
76478
76479         2003-03-22  Jim Meyering  <jim@meyering.net>
76480
76481         * lib/strftime.c (widen): Cast alloca return value to proper type.
76482
76483         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
76484
76485         From GNU libc.
76486         * lib/strftime.c (my_strftime): Handle very large width
76487         specifications for numeric values correctly.  Improve checks for
76488         overflow.
76489
76490         2003-01-19  Jim Meyering  <jim@meyering.net>
76491
76492         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
76493         definitions.
76494         (nl_get_alt_digit) [! defined my_strftime]: Define.
76495         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
76496         _nl_get_alt_digit and _nl_get_walt_digit.
76497
76498         * lib/strftime.c (my_strftime): Merge in locale-related changes from
76499         libc. These changes have no effect outside of _LIBC.
76500
76501 2003-04-10  Bruno Haible  <bruno@clisp.org>
76502
76503         * modules/findprog: New file.
76504         * MODULES.html.sh (func_all_modules): Add it.
76505
76506 2003-04-10  Bruno Haible  <bruno@clisp.org>
76507
76508         * m4/findprog.m4: New file.
76509         * m4/eaccess.m4: New file.
76510
76511 2003-04-10  Bruno Haible  <bruno@clisp.org>
76512
76513         * lib/findprog.h: New file, from GNU gettext.
76514         * lib/findprog.c: New file, from GNU gettext.
76515
76516 2003-04-05  Jim Meyering  <jim@meyering.net>
76517
76518         Merge changes from Coreutils.
76519
76520         * lib/exclude.h (PARAMS): Remove definition and uses.
76521         * lib/exclude.c: Remove uses of `PARAMS'.
76522
76523         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
76524         Add test-cases for DOS filenames. Declare program_name.
76525         (main): Set up program_name.  Patch by Rich Dawe.
76526
76527         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
76528         error from mntctl.
76529         Use mntctl's return value to drive the entry-processing loop, since
76530         we can't rely on the value of the vmt_length member in the last
76531         entry.  On some systems doing so could result in exhausting
76532         virtual memory.  Based in part on a patch from Mike Jetzer.
76533
76534 2003-04-04  Bruno Haible  <bruno@clisp.org>
76535
76536         * modules/linebreak: New file.
76537         * MODULES.html.sh (func_all_modules): Add it.
76538
76539 2003-04-04  Bruno Haible  <bruno@clisp.org>
76540
76541         * m4/linebreak.m4: New file.
76542
76543 2003-04-04  Bruno Haible  <bruno@clisp.org>
76544
76545         * lib/linebreak.h: New file, from GNU gettext.
76546         * lib/linebreak.c: New file, from GNU gettext with slight
76547         modifications.
76548         * lib/lbrkprop.h: New file, from GNU gettext.
76549
76550 2003-04-03  Bruno Haible  <bruno@clisp.org>
76551
76552         * modules/utf8-ucs4: New file.
76553         * modules/utf16-ucs4: New file.
76554         * modules/ucs4-utf8: New file.
76555         * modules/ucs4-utf16: New file.
76556         * MODULES.html.sh (func_all_modules): Add them.
76557
76558 2003-04-03  Bruno Haible  <bruno@clisp.org>
76559
76560         * m4/utf-ucs4.m4: New file.
76561         * m4/ucs4-utf.m4: New file.
76562
76563 2003-04-03  Bruno Haible  <bruno@clisp.org>
76564
76565         * lib/utf8-ucs4.h: New file, from GNU gettext.
76566         * lib/utf16-ucs4.h: New file, from GNU gettext.
76567         * lib/ucs4-utf8.h: New file, from GNU gettext.
76568         * lib/ucs4-utf16.h: New file, from GNU gettext.
76569
76570 2003-04-02  Bruno Haible  <bruno@clisp.org>
76571
76572         * modules/binary-io: New file.
76573         * MODULES.html.sh (func_all_modules): Add it.
76574
76575 2003-04-02  Bruno Haible  <bruno@clisp.org>
76576
76577         * lib/binary-io.h: New file, from GNU gettext.
76578
76579 2003-04-01  Bruno Haible  <bruno@clisp.org>
76580
76581         * modules/pathname: New file.
76582         * MODULES.html.sh (func_all_modules): Add it.
76583
76584 2003-04-01  Bruno Haible  <bruno@clisp.org>
76585
76586         * lib/pathname.h: New file, from GNU gettext.
76587         * lib/concatpath.c: New file, from GNU gettext.
76588
76589 2003-03-30  Bruno Haible  <bruno@clisp.org>
76590
76591         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
76592
76593 2003-03-30  Bruno Haible  <bruno@clisp.org>
76594
76595         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
76596         function chown() doesn't exist.
76597
76598 2003-03-28  Bruno Haible  <bruno@clisp.org>
76599
76600         * modules/copy-file: New file.
76601         * MODULES.html.sh (func_all_modules): Add it.
76602
76603 2003-03-28  Bruno Haible  <bruno@clisp.org>
76604
76605         * m4/copy-file.m4: New file.
76606
76607 2003-03-28  Bruno Haible  <bruno@clisp.org>
76608
76609         * lib/copy-file.h: New file, from GNU gettext.
76610         * lib/copy-file.c: New file, from GNU gettext.
76611
76612 2003-03-18  Jim Meyering  <jim@meyering.net>
76613
76614         * lib/quote.c (quote_n): Fix typo in comment.
76615
76616 2003-03-18  Bruno Haible  <bruno@clisp.org>
76617
76618         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
76619         checking.
76620         * m4/onceonly_2_57.m4: Likewise.
76621
76622 2003-03-17  Bruno Haible  <bruno@clisp.org>
76623
76624         * m4/onceonly.m4: Require autoconf 2.54 or newer.
76625         (m4_quote): Remove macro.
76626         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
76627
76628 2003-03-14  Jim Meyering  <jim@meyering.net>
76629
76630         Merge changes from Coreutils.
76631         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
76632         to be const, in order to avoid warnings.
76633         (obstack_room): Likewise.
76634         (obstack_empty_p): Likewise.
76635
76636 2003-03-14  Bruno Haible  <bruno@clisp.org>
76637
76638         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
76639         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
76640
76641 2003-03-13  Paul Eggert  <eggert@twinsun.com>
76642
76643         Merge changes from Bison.
76644         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
76645         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
76646         when compiling Bison 1.875's `bitset bset = obstack_alloc
76647         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
76648         * lib/hash.c: Include <stdbool.h> unconditionally.
76649
76650 2003-03-13  Paul Eggert  <eggert@twinsun.com>
76651
76652         * m4/onceonly.m4 (m4_quote): New macro.
76653         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
76654         Quote AC_FOREACH variable-expansions properly.
76655
76656 2003-03-13  Paul Eggert  <eggert@twinsun.com>
76657
76658         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
76659
76660 2003-03-09  Paul Eggert  <eggert@twinsun.com>
76661
76662         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
76663         Reported by Bruce Becker; see:
76664         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
76665
76666 2003-03-03  Paul Eggert  <eggert@twinsun.com>
76667             Bruno Haible  <bruno@clisp.org>
76668
76669         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
76670         Reported by John Hughes, see
76671         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
76672
76673 2003-02-20  Bruno Haible  <bruno@clisp.org>
76674
76675         * MODULES.html.sh (func_all_modules): Add poll.
76676
76677 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
76678
76679         * modules/poll: New file.
76680
76681 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
76682
76683         * lib/poll_.h: New file.
76684         * lib/poll.c: New file.
76685
76686 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
76687
76688         * m4/poll.m4: New file.
76689
76690 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
76691
76692         * modules/mathl: New file.
76693
76694 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
76695
76696         * lib/mathl.h: New file.
76697         * lib/acosl.c: New file.
76698         * lib/asinl.c: New file.
76699         * lib/atanl.c: New file.
76700         * lib/ceill.c: New file.
76701         * lib/cosl.c: New file.
76702         * lib/expl.c: New file.
76703         * lib/floorl.c: New file.
76704         * lib/frexpl.c: New file.
76705         * lib/ldexpl.c: New file.
76706         * lib/logl.c: New file.
76707         * lib/sincosl.c: New file.
76708         * lib/sinl.c: New file.
76709         * lib/sqrtl.c: New file.
76710         * lib/tanl.c: New file.
76711         * lib/trigl.c: New file.
76712         * lib/trigl.h: New file.
76713
76714 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
76715
76716         * m4/mathl.m4: New file.
76717
76718 2003-02-18  Bruno Haible  <bruno@clisp.org>
76719
76720         * MODULES.html.sh (func_all_modules): Add mathl.
76721
76722 2003-02-17  Bruno Haible  <bruno@clisp.org>
76723
76724         * modules/mkdtemp: New module.
76725         * MODULES.html.sh (func_all_modules): Add it.
76726
76727 2003-02-17  Bruno Haible  <bruno@clisp.org>
76728
76729         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
76730
76731 2003-02-17  Bruno Haible  <bruno@clisp.org>
76732
76733         * lib/mkdtemp.h: New file, from GNU gettext.
76734         * lib/mkdtemp.c: New file, from GNU gettext.
76735
76736 2003-02-02  Jim Meyering  <jim@meyering.net>
76737
76738         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
76739         e.g. glibc-2.2.93.
76740
76741 2003-01-31  Bruno Haible  <bruno@clisp.org>
76742
76743         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
76744         'rpl_rename'.
76745         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
76746         'rpl_strnlen'.
76747         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
76748         'rpl_strtod'.
76749         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
76750         'rpl_utime'.
76751
76752 2003-01-31  Bruno Haible  <bruno@clisp.org>
76753
76754         * lib/rename.c: #undef rename before defining rpl_rename.
76755         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
76756
76757 2003-01-30  Bruno Haible  <bruno@clisp.org>
76758
76759         * modules/vasnprintf, modules/vasprintf: New modules.
76760         * MODULES.html.sh (func_all_modules): Add them.
76761
76762 2003-01-30  Bruno Haible  <bruno@clisp.org>
76763
76764         * m4/signed.m4: New file, from GNU gettext.
76765         * m4/longdouble.m4: New file, from GNU gettext.
76766         * m4/wchar_t.m4: New file, from GNU gettext.
76767         * m4/wint_t.m4: New file, from GNU gettext.
76768         * m4/vasnprintf.m4: New file.
76769         * m4/vasprintf.m4: New file.
76770
76771 2003-01-30  Bruno Haible  <bruno@clisp.org>
76772
76773         * lib/printf-args.h: New file, from GNU gettext.
76774         * lib/printf-args.c: New file, from GNU gettext.
76775         * lib/printf-parse.h: New file, from GNU gettext.
76776         * lib/printf-parse.c: New file, from GNU gettext.
76777         * lib/vasnprintf.h: New file, from GNU gettext.
76778         * lib/vasnprintf.c: New file, from GNU gettext.
76779         * lib/asnprintf.c: New file, from GNU gettext.
76780         * lib/vasprintf.h: New file, from GNU gettext with modifications.
76781         * lib/vasprintf.c: New file, from GNU gettext.
76782         * lib/asprintf.c: New file, from GNU gettext.
76783
76784 2003-01-29  Bruno Haible  <bruno@clisp.org>
76785
76786         * modules/stpncpy: New module.
76787         * MODULES.html.sh (func_all_modules): Add it.
76788
76789 2003-01-29  Bruno Haible  <bruno@clisp.org>
76790
76791         * m4/stpncpy.m4: New file.
76792
76793 2003-01-29  Bruno Haible  <bruno@clisp.org>
76794
76795         * lib/stpncpy.h: New file, from GNU gettext with modifications.
76796         * lib/stpncpy.c: New file, from GNU gettext with modifications.
76797
76798 2003-01-28  Bruno Haible  <bruno@clisp.org>
76799
76800         * modules/c-ctype: New module.
76801         * MODULES.html.sh (func_all_modules): Add it.
76802
76803 2003-01-28  Bruno Haible  <bruno@clisp.org>
76804
76805         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
76806         Paul Eggert.
76807         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
76808         Paul Eggert.
76809
76810 2003-01-27  Bruno Haible  <bruno@clisp.org>
76811
76812         * modules/xsetenv: New module.
76813         * MODULES.html.sh (func_all_modules): Add it.
76814
76815 2003-01-27  Bruno Haible  <bruno@clisp.org>
76816
76817         * lib/xsetenv.h: New file, from GNU gettext.
76818         * lib/xsetenv.c: New file, from GNU gettext.
76819
76820 2003-01-23  Jim Meyering  <jim@meyering.net>
76821
76822         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
76823         from working on systems without dirfd (at least Irix and OSF1/Tru64).
76824
76825 2003-01-23  Bruno Haible  <bruno@clisp.org>
76826
76827         * modules/minmax: New module.
76828         * MODULES.html.sh (func_all_modules): Add it.
76829
76830 2003-01-23  Bruno Haible  <bruno@clisp.org>
76831
76832         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
76833         Eggert.
76834
76835 2003-01-22  Bruno Haible  <bruno@clisp.org>
76836
76837         * modules/exit: New module.
76838         * MODULES.html.sh (func_all_modules): Add it.
76839
76840 2003-01-22  Bruno Haible  <bruno@clisp.org>
76841
76842         * lib/exit.h: New file, from GNU gettext.
76843
76844 2003-01-19  Bruno Haible  <bruno@clisp.org>
76845
76846         * gnulib-tool: Recognize option --extract-maintainer.
76847         (func_get_maintainer): New function.
76848         * modules/*: Add Maintainer entry.
76849
76850 2003-01-16  Jim Meyering  <jim@meyering.net>
76851
76852         * m4/regex.m4: The `regex' struct is both input and output.
76853         Initialize it before each use.  Patch by Tim Waugh.
76854
76855 2003-01-16  Bruno Haible  <bruno@clisp.org>
76856
76857         * MODULES.html.sh: Add a table of contents. Add the module name as
76858         leftmost column. Add hyperlinks.
76859
76860 2003-01-15  Bruno Haible  <bruno@clisp.org>
76861
76862         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
76863
76864 2003-01-15  Bruno Haible  <bruno@clisp.org>
76865
76866         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
76867         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
76868         suffix.
76869
76870 2003-01-15  Bruno Haible  <bruno@clisp.org>
76871
76872         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
76873
76874 2003-01-15  Bruno Haible  <bruno@clisp.org>
76875
76876         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
76877         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
76878
76879 2003-01-14  Jim Meyering  <jim@meyering.net>
76880
76881         * lib/same.c (same_name): Tweak a comment.
76882
76883 2003-01-14  Bruno Haible  <bruno@clisp.org>
76884
76885         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
76886         when a string comparison is sufficient.
76887
76888 2003-01-14  Bruno Haible  <bruno@clisp.org>
76889
76890         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
76891         'unsigned int'.
76892
76893 2003-01-14  Bruno Haible  <bruno@clisp.org>
76894
76895         * lib/hash-pjw.c: Add comment about low quality of this function.
76896
76897 2003-01-13  Bruno Haible  <bruno@clisp.org>
76898
76899         * modules/stpcpy: Distribute lib/stpcpy.h.
76900         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
76901
76902 2003-01-13  Bruno Haible  <bruno@clisp.org>
76903
76904         * modules/*: Add a description.
76905         * modules/strpbrk: Fix Makefile.am snippet.
76906         * modules/strtoimax: Fix dependencies.
76907         * modules/strtoumax: Likewise.
76908
76909 2003-01-13  Bruno Haible  <bruno@clisp.org>
76910
76911         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
76912         * modules/alloca (Makefile.am): All object files depend on alloca.h.
76913         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
76914
76915 2003-01-13  Bruno Haible  <bruno@clisp.org>
76916
76917         * gnulib-tool (func_create_testdir): Store config/* files in the main
76918         directory.
76919         * config.rpath: Move to ...
76920         * config/config.rpath: ... here.
76921         * modules/gettext: Contains config/config.rpath, not config.rpath.
76922         * modules/iconv: Likewise.
76923
76924 2003-01-12  Paul Eggert  <eggert@twinsun.com>
76925
76926         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
76927         to avoid collisions with libcurses and libreadline.
76928
76929         * m4/getstr.m4: Remove.
76930         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
76931
76932 2003-01-12  Paul Eggert  <eggert@twinsun.com>
76933
76934         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
76935         to avoid collisions with libcurses and libreadline.
76936
76937         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
76938         * lib/getstr.h, getstr.c: Remove.
76939         * lib/getline.c: Include "getline.h", to check interface.
76940         Move body of old getstr.c here: this defines MIN_CHUNK and
76941         declares getdelim2, which is renamed from getstr.
76942         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
76943
76944         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
76945         All uses changed.
76946         * lib/linebuffer.h: Likewise.
76947         (readline): Remove backward-compatibility macro.
76948
76949 2003-01-12  Paul Eggert  <eggert@twinsun.com>
76950
76951         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
76952         to avoid collisions with libcurses and libreadline.
76953         * getstr: Remove.
76954         * MODULES.html.sh: Remove getstr.
76955         * modules/getline: Depend on unlocked-io, not getstr.
76956
76957 2003-01-12  Jim Meyering  <jim@meyering.net>
76958
76959         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
76960
76961 2003-01-10  Bruno Haible  <bruno@clisp.org>
76962
76963         * modules/alloca: Change Makefile.am requirements. Simplify Include
76964         requirements. Add lib/alloca_.h to file list.
76965
76966 2003-01-10  Bruno Haible  <bruno@clisp.org>
76967
76968         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
76969
76970 2003-01-10  Bruno Haible  <bruno@clisp.org>
76971
76972         * lib/alloca_.h: New file.
76973         * lib/getdate.y: Unconditionally include alloca.h.
76974         * lib/makepath.c: Likewise.
76975         * lib/setenv.c: Likewise.
76976         * lib/userspec.c: Likewise.
76977
76978 2003-01-09  Karl Berry  <karl@gnu.org>
76979
76980         * MODULES.html.sh: include `dirname $0` in PATH, to find
76981         gnulib-tool.
76982
76983 2003-01-09  Bruno Haible  <bruno@clisp.org>
76984
76985         * modules/stdbool: Change configure.ac, Makefile.am requirements.
76986         Simplify Include requirements. Add lib/stdbool.h.in to file list.
76987
76988 2003-01-09  Bruno Haible  <bruno@clisp.org>
76989
76990         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
76991
76992 2003-01-09  Bruno Haible  <bruno@clisp.org>
76993
76994         * lib/stdbool.h.in: New file.
76995
76996 2003-01-09  Bruno Haible  <bruno@clisp.org>
76997
76998         * gnulib-tool (func_all_modules): Ignore files ending in ~.
76999         * MODULES.html.sh: Likewise.
77000
77001 2003-01-08  Jim Meyering  <jim@meyering.net>
77002
77003         * lib/full-write.c: Undefine and define-away `const' after inclusion
77004         of errno.h, not before.  Suggestion from Bruno Haible.
77005
77006 2003-01-08  Bruno Haible  <bruno@clisp.org>
77007
77008         * modules/full-read: Depend on full-write.
77009
77010 2003-01-08  Bruno Haible  <bruno@clisp.org>
77011
77012         * lib/safe-read.c: Include specification header first, to ensure its
77013         selfcontainedness.
77014         * lib/full-write.c: Likewise.
77015
77016 2003-01-07  Jim Meyering  <jim@meyering.net>
77017
77018         * lib/full-write.c: Rework so that it may serve to define full_read,
77019         too.
77020         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
77021
77022 2003-01-07  Bruno Haible  <bruno@clisp.org>
77023
77024         * lib/strtoimax.c: Include <stdint.h> as an alternative to
77025         <inttypes.h>.
77026         * lib/xstrtol.h: Likewise.
77027         * lib/xstrtoimax.c: Likewise.
77028         * lib/xstrtoumax.c: Likewise.
77029         * lib/human.h: Likewise.
77030
77031         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
77032         on systems that have <inttypes.h> but not <stdint.h>.
77033
77034 2003-01-07  Bruno Haible  <bruno@clisp.org>
77035
77036         * MODULES.html.sh: Add copyright notice.
77037         (missed_files): Omit CVS directory entries.
77038         (func_module): Make it work with sed-3.02.
77039         * MODULES.txt: Remove file.
77040
77041 2003-01-06  Jim Meyering  <jim@meyering.net>
77042
77043         * lib/version-etc.c: Update year in translatable copyright string.
77044
77045 2003-01-03  Karl Berry  <karl@gnu.org>
77046
77047         * config/config.{guess,sub}: update from prep.
77048
77049 2003-01-02  Karl Berry  <karl@gnu.org>
77050
77051         * doc/COPYING.DOC: belatedly updated to 1.2.
77052
77053 2003-01-01  Karl Berry  <karl@gnu.org>
77054
77055         * gnulib-tool (func_verify_module): report module name $module in
77056         error message, not $1.
77057         * gnulib-tool (create-testdir): don't complain if destdir couldn't
77058         be created, only if it doesn't exist.
77059         * gnulib-tool (last_checkin_date): don't expand the $Date here.
77060
77061 2002-12-31  Paul Eggert  <eggert@twinsun.com>
77062
77063         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
77064
77065 2002-12-31  Paul Eggert  <eggert@twinsun.com>
77066
77067         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
77068         memcmp if strcoll doesn't work.
77069
77070 2002-12-31  Bruno Haible  <bruno@clisp.org>
77071
77072         * lib/utime.c (utime_null): No need to call ftruncate if the file was
77073         nonempty.
77074
77075 2002-12-31  Bruno Haible  <bruno@clisp.org>
77076
77077         * lib/memcoll.c (STRCOLL): New macro.
77078         (memcoll): Use it.
77079
77080 2002-12-31  Bruno Haible  <bruno@clisp.org>
77081
77082         * lib/localcharset.h: New file.
77083         * lib/localcharset.c: Include it.
77084         * lib/unicodeio.c: Likewise.
77085
77086 2002-12-31  Bruno Haible  <bruno@clisp.org>
77087
77088         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
77089         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
77090
77091 2002-12-31  Bruno Haible  <bruno@clisp.org>
77092
77093         * lib/getline.h: Include <stddef.h>, for size_t.
77094
77095         * lib/unicodeio.h: Include <stddef.h>, for size_t.
77096         * lib/unicodeio.c: Don't include <stddef.h>.
77097
77098 2002-12-31  Bruno Haible  <bruno@clisp.org>
77099
77100         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
77101         HAVE_TM_ZONE.
77102
77103 2002-12-24  Karl Berry  <karl@gnu.org>
77104
77105         * config/config.guess: update from prep.
77106
77107 2002-12-24  Bruno Haible  <bruno@clisp.org>
77108
77109         General infrasructure.
77110         * m4/README: Rewritten.
77111         * m4/onceonly.m4: New file.
77112         * m4/onceonly_2_57.m4: New file.
77113
77114         Module atexit.
77115         * m4/atexit.m4: New file.
77116
77117         Module strtod.
77118         * m4/strtod.m4: New file.
77119
77120         Module strtol.
77121         * m4/strtol.m4: New file.
77122
77123         Module strtoul.
77124         * m4/strtoul.m4: New file.
77125
77126         Module memchr.
77127         * m4/memchr.m4: New file.
77128
77129         Module memcmp.
77130         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
77131         (jm_FUNC_MEMCMP): Invoke it.
77132
77133         Module memcpy.
77134         * m4/memcpy.m4: New file.
77135
77136         Module memmove.
77137         * m4/memmove.m4: New file.
77138
77139         Module memset.
77140         * m4/memset.m4: New file.
77141
77142         Module strcspn.
77143         * m4/strcspn.m4: New file.
77144
77145         Module strpbrk.
77146         * m4/strpbrk.m4: New file.
77147
77148         Module strstr.
77149         * m4/strstr.m4: New file.
77150
77151         Module strerror.
77152         * m4/strerror.m4: New file.
77153
77154         Module mktime.
77155         * m4/mktime.m4: Renamed from jm-mktime.m4.
77156         (gl_PREREQ_MKTIME): New macro.
77157         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
77158
77159         Module malloc.
77160         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
77161         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
77162         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
77163
77164         Module realloc.
77165         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
77166         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
77167         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
77168
77169         Module strftime.
77170         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
77171         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
77172         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
77173         gl_TM_GMTOFF.
77174         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
77175
77176         Module xalloc.
77177         * m4/xalloc.m4: New file.
77178
77179         Module alloca.
77180         * m4/alloca.m4: New file.
77181
77182         Module putenv.
77183         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
77184         (jm_FUNC_PUTENV): Invoke it.
77185
77186         Module setenv.
77187         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
77188         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
77189         when invoked twice.
77190         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
77191         gt_FUNC_SETENV.
77192
77193         Module memrchr.
77194         * m4/memrchr.m4: New file.
77195
77196         Module stpcpy.
77197         * m4/stpcpy.m4: New file.
77198
77199         Module strcase.
77200         * m4/strcase.m4: New file.
77201
77202         Module strdup.
77203         * m4/strdup.m4: New file.
77204
77205         Module strnlen.
77206         * m4/strnlen.m4: New file.
77207
77208         Module strndup.
77209         * m4/strndup.m4: New file.
77210
77211         Module xstrtod.
77212         * m4/xstrtod.m4: New file.
77213
77214         Module xstrtol.
77215         * m4/xstrtol.m4: New file.
77216
77217         Module getdate.
77218         * m4/getdate.m4: New file.
77219
77220         Module unlocked-io.
77221         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
77222         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
77223         * m4/jm-glibc-io.m4n: Remove file.
77224
77225         Module long-options.
77226         * m4/long-options.m4: New file.
77227
77228         Module md5.
77229         * m4/md5.m4: New file.
77230
77231         Module sha.
77232         * m4/sha.m4: New file.
77233
77234         Module getstr.
77235         * m4/getstr.m4: New file.
77236
77237         Module getline.
77238         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
77239         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
77240         <sys/types.h>, for size_t. Use the function name gnu_getline, not
77241         simply getline. Infoke gl_PREREQ_GETLINE.
77242
77243         Module obstack.
77244         * m4/obstack.m4: New file.
77245
77246         Module hash.
77247         * m4/hash.m4: New file.
77248
77249         Module readtokens.
77250         * m4/readtokens.m4: New file.
77251
77252         Module strverscmp.
77253         * m4/strverscmp.m4: New file.
77254
77255         Module stdbool.
77256         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
77257         OSF/1.
77258
77259         Module strtoll.
77260         * m4/strtoll.m4: New file.
77261
77262         Module strtoull.
77263         * m4/strtoull.m4: New file.
77264
77265         Module strtoimax.
77266         * m4/strtoimax.m4: New file.
77267
77268         Module strtoumax.
77269         * m4/strtoumax.m4: New file.
77270
77271         Module xstrtoimax.
77272         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
77273         jm_AC_PREREQ_XSTRTOIMAX.
77274         Moved the strtol prerequisites to strtol.m4.
77275         Moved the strtoll prerequisites to strtoll.m4.
77276         Moved the strtoimax prerequisites to strtoimax.m4.
77277
77278         Module xstrtoumax.
77279         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
77280         jm_AC_PREREQ_XSTRTOUMAX.
77281         Moved the strtoul prerequisites to strtoul.m4.
77282         Moved the strtoull prerequisites to strtoull.m4.
77283         Moved the strtoumax prerequisites to strtoumax.m4.
77284
77285         Module chown.
77286         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
77287         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
77288
77289         Module dup2.
77290         * m4/dup2.m4: New file.
77291
77292         Module ftruncate.
77293         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
77294         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
77295
77296         Module getgroups.
77297         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
77298         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
77299
77300         Module gettimeofday.
77301         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
77302         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
77303         gl_PREREQ_GETTIMEOFDAY.
77304
77305         Module mkdir.
77306         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
77307         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
77308
77309         Module mkstemp.
77310         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
77311         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
77312         jm_AC_TYPE_UINTMAX_T.
77313         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
77314
77315         Module stat.
77316         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
77317         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
77318
77319         Module lstat.
77320         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
77321         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
77322
77323         Module timespec.
77324         * m4/timespec.m4 (gl_TIMESPEC): New macro.
77325         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
77326         * m4/st_mtim.m4: Indentation.
77327
77328         Module nanosleep.
77329         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
77330         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
77331         gl_PREREQ_NANOSLEEP.
77332
77333         Module regex.
77334         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
77335         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
77336         (gl_REGEX): New macro.
77337
77338         Module rename.
77339         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
77340         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
77341
77342         Module rmdir.
77343         * m4/rmdir.m4: New file.
77344
77345         Module utime.
77346         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
77347         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
77348         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
77349
77350         Module dirname.
77351         * m4/dirname.m4: New file.
77352
77353         Module getopt.
77354         * m4/getopt.m4: New file.
77355
77356         Module unistd-safer.
77357         * m4/unistd-safer.m4: New file.
77358
77359         Module fnmatch.
77360         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
77361         declaration.
77362         (gl_PREREQ_FNMATCH_EXTRA): New macro.
77363         (gl_FUNC_FNMATCH_POSIX): New macro.
77364         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
77365         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
77366         simply fnmatch.
77367
77368         Module exclude.
77369         * m4/exclude.m4: New file.
77370
77371         Module human.
77372         * m4/human.m4: New file.
77373
77374         Module acl.
77375         * m4/acl.m4: Nop.
77376
77377         Module backupfile.
77378         * m4/backupfile.m4: New file.
77379         * m4/d-ino.m4: Indentation.
77380
77381         Module fsusage.
77382         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
77383         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
77384         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
77385
77386         Module dirfd.
77387         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
77388         requirements.
77389
77390         Module euidaccess.
77391         * m4/euidaccess.m4: New file.
77392
77393         Module file-type.
77394         * m4/file-type.m4: New file.
77395
77396         Module fileblocks.
77397         * m4/fileblocks.m4: New file.
77398
77399         Module filemode.
77400         * m4/filemode.m4: New file.
77401
77402         Module isdir.
77403         * m4/isdir.m4: New file.
77404
77405         Module lchown.
77406         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
77407         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
77408
77409         Module makepath.
77410         * m4/makepath.m4: New file.
77411
77412         Module modechange.
77413         * m4/modechange.m4: New file.
77414
77415         Module mountlist.
77416         * m4/mountlist.m4: New file.
77417         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
77418         Indentation.
77419
77420         Module path-concat.
77421         * m4/path-concat.m4: New file.
77422
77423         Module pathmax.
77424         * m4/pathmax.m4: New file.
77425
77426         Module same.
77427         * m4/same.m4: New file.
77428
77429         Module save-cwd.
77430         * m4/save-cwd.m4: New file.
77431
77432         Module savedir.
77433         * m4/savedir.m4: New file.
77434
77435         Module xgetcwd.
77436         * m4/xgetcwd.m4: New file.
77437         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
77438
77439         Module xreadlink.
77440         * m4/xreadlink.m4: New file.
77441
77442         Module safe-read.
77443         * m4/safe-read.m4: New file.
77444
77445         Module safe-write.
77446         * m4/safe-write.m4: New file.
77447
77448         Module closeout.
77449         * m4/closeout.m4: New file.
77450
77451         Module stdio-safer.
77452         * m4/stdio-safer.m4: New file.
77453
77454         Module getpass.
77455         * m4/getpass.m4: New file.
77456
77457         Module getugroups.
77458         * m4/getugroups.m4: New file.
77459
77460         Module group-member.
77461         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
77462         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
77463
77464         Module idcache.
77465         * m4/idcache.m4: New file.
77466
77467         Module userspec.
77468         * m4/userspec.m4: New file.
77469
77470         Module gettime.
77471         * m4/clock_time.m4: New file.
77472         * m4/gettime.m4: New file.
77473
77474         Module settime.
77475         * m4/settime.m4: New file.
77476
77477         Module posixtm.
77478         * m4/posixtm.m4: New file.
77479
77480         Module gethostname.
77481         * m4/gethostname.m4: New file.
77482
77483         Module canon-host.
77484         * m4/canon-host.m4: New file.
77485
77486         Module gettext.
77487         * m4/codeset.m4: New file, from gettext-0.11.5.
77488         * m4/gettext.m4: New file, from gettext-0.11.5.
77489         * m4/glibc21.m4: New file, from gettext-0.11.5.
77490         * m4/iconv.m4: New file, from gettext-0.11.5.
77491         * m4/intdiv0.m4: New file, from gettext-0.11.5.
77492         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
77493         * m4/inttypes.m4: New file, from gettext-0.11.5.
77494         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
77495         * m4/isc-posix.m4: New file, from gettext-0.11.5.
77496         * m4/lcmessage.m4: New file, from gettext-0.11.5.
77497         * m4/lib-ld.m4: New file, from gettext-0.11.5.
77498         * m4/lib-link.m4: New file, from gettext-0.11.5.
77499         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
77500         * m4/progtest.m4: New file, from gettext-0.11.5.
77501         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
77502         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
77503         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
77504
77505         Module localcharset.
77506         * m4/localcharset.m4: New file.
77507
77508         Module hard-locale.
77509         * m4/hard-locale.m4: New file.
77510
77511         Module mbswidth.
77512         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
77513         onceonly macros.
77514         * m4/mbrtowc.m4: Add comment.
77515
77516         Module memcasecmp.
77517         * m4/memcasecmp.m4: New file.
77518
77519         Module memcoll.
77520         * m4/memcoll.m4: New file.
77521
77522         Module unicodeio.
77523         * m4/unicodeio.m4: New file.
77524
77525         Module rpmatch.
77526         * m4/rpmatch.m4: New file.
77527
77528         Module yesno.
77529         * m4/yesno.m4: New file.
77530
77531         Module exitfail.
77532         * m4/exitfail.m4: New file.
77533
77534         Module c-stack.
77535         * m4/c-stack.m4 (gl_C_STACK): New macro.
77536         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
77537
77538         Module error.
77539         * m4/error.m4 (gl_ERROR): New macro.
77540         (jm_PREREQ_ERROR): Use onceonly macros.
77541
77542         Module fatal.
77543         * m4/fatal.m4: New file.
77544
77545         Module getloadavg.
77546         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
77547         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
77548
77549         Module getpagesize.
77550         * m4/getpagesize.m4: New file.
77551
77552         Module getusershell.
77553         * m4/getusershell.m4: New file.
77554
77555         Module physmem.
77556         * m4/physmem.m4: New file.
77557
77558         Module posixver.
77559         * m4/posixver.m4: New file.
77560
77561         Module quotearg.
77562         * m4/quotearg.m4: New file.
77563
77564         Module quote.
77565         * m4/quote.m4: New file.
77566
77567         Module readutmp.
77568         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
77569
77570         Module sig2str.
77571         * m4/sig2str.m4: New file.
77572
77573         Other.
77574         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
77575         ulonglong.m4.
77576         * m4/intmax_t.m4: New file.
77577         * m4/d-type.m4: Indentation.
77578         * m4/jm-macros.m4: Update.
77579         * m4/prereq.m4 (jm_PREREQ): Update.
77580         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
77581         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
77582         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
77583         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
77584         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
77585         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
77586         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
77587         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
77588         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
77589         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
77590         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
77591         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
77592         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
77593         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
77594         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
77595         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
77596         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
77597         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
77598         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
77599
77600 2002-12-24  Bruno Haible  <bruno@clisp.org>
77601
77602         * MODULES.txt: Update according to m4/ changes.
77603
77604         Module gettext.
77605         * config.rpath: New file, from gettext-0.11.5.
77606
77607         * modules/*: New module descriptions.
77608         * gnulib-tool: New file.
77609         * MODULES.html.sh: New file.
77610
77611 2002-12-21  Karl Berry  <karl@gnu.org>
77612
77613         * doc/fdl.texi: update to version 1.2.
77614
77615 2002-12-19  Karl Berry  <karl@gnu.org>
77616
77617         * config/config.guess: update from prep.
77618
77619 2002-12-18  Bruno Haible  <bruno@clisp.org>
77620
77621         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
77622         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
77623
77624 2002-12-17  Bruno Haible  <bruno@clisp.org>
77625
77626         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
77627         stdlib.h, string.h.
77628
77629 2002-12-17  Bruno Haible  <bruno@clisp.org>
77630
77631         * lib/canon-host.c (strdup): Remove unused declaration.
77632
77633         * lib/fsusage.c: Include full_read.h.
77634         (get_fs_usage): Use full_read instead of safe_read.
77635
77636         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
77637
77638 2002-12-12  Karl Berry  <karl@gnu.org>
77639
77640         * config/config.guess: update from prep.
77641
77642 2002-12-11  Bruno Haible  <bruno@clisp.org>
77643
77644         * m4/setenv.m4: New file, from gettext-0.11.5.
77645
77646 2002-12-11  Bruno Haible  <bruno@clisp.org>
77647
77648         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
77649         not unsetenv().
77650         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
77651         modifications:
77652
77653         2002-12-11  Bruno Haible  <bruno@clisp.org>
77654
77655                 * setenv.c (alloca): Fall back to malloc.
77656                 (freea): New macro.
77657                 (setenv): Use freea() to free memory allocated with alloca().
77658
77659         2002-11-13  Bruno Haible  <bruno@clisp.org>
77660
77661                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
77662                 function declarations.
77663                 * unsetenv.c (unsetenv): Likewise.
77664
77665         2002-03-04  Bruno Haible  <bruno@clisp.org>
77666
77667                 Portability to AIX 4.3.3.
77668                 * unsetenv.c: New file, extracted from setenv.c.
77669                 * setenv.c: Move the unsetenv() function to unsetenv.c.
77670
77671         2001-12-20  Bruno Haible  <bruno@clisp.org>
77672
77673                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
77674                 use malloc instead. For SunOS 4.
77675
77676         2001-12-11  Bruno Haible  <bruno@clisp.org>
77677
77678                 * setenv.c: Declare alloca.
77679                 (compar_fn_t): New typedef.
77680                 (KNOWN_VALUE, STORE_VALUE): Use it.
77681
77682         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
77683         setenv.h.
77684
77685 2002-12-10  Paul Eggert  <eggert@twinsun.com>
77686
77687         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
77688         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
77689         Choose values that are less likely to collide with system fnmatch
77690         options.
77691         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
77692         defined (e.g., a pure POSIX system).
77693         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
77694         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
77695
77696 2002-12-06  Paul Eggert  <eggert@twinsun.com>
77697
77698         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
77699         a pain in practice to deal with generated m4 files.  This change
77700         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
77701
77702         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
77703         and jm-glibc-io.m4, as they are no longer a special case.
77704         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
77705         kludge and the auto-generation stuff.  Check only whether the
77706         functions are declared, not whether they exist, since older hosts
77707         that don't declare the functions can't use the optimization anyway.
77708
77709 2002-12-06  Jim Meyering  <jim@meyering.net>
77710
77711         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
77712
77713         Merge in changes from libc's misc/error.c, in preparation
77714         for the merge of gnulib's changes back into libc.
77715
77716         * lib/error.c (_): Define only if not already defined.
77717         Move definition to follow all #include directives.
77718         Include unlocked-io.h only if !_LIBC.
77719         [_LIBC]: Include <libio/libioP.h>.
77720         [USE_IN_LIBIO]: Include <libio/iolibio.h>
77721         (fflush): Tweak definition to use INTUSE.
77722         (putc): Define.
77723
77724 2002-12-05  Paul Eggert  <eggert@twinsun.com>
77725
77726         * lib/alloca.c [defined emacs]: Include "lisp.h".
77727         (xalloc_die) [defined emacs]: New macro.
77728         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
77729         [! defined emacs]: Include <xalloc.h>.
77730         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
77731         (pointer): Typedef to POINTER_TYPE *.
77732         (malloc): Remove decl; we now always use xmalloc.
77733         (alloca): Use old-style definition, since Emacs needs this.
77734         Check for arithmetic overflow when computing combined size.
77735
77736 2002-12-04  Paul Eggert  <eggert@twinsun.com>
77737
77738         Do not generate unlocked-io.h automatically, since it's easier to
77739         maintain it by hand.
77740
77741         * lib/unlocked-io.h: New file, from GNU diffutils,
77742         but with proper copyright notice and attribution.
77743         * lib/gen-uio: Remove.
77744         * lib/Makefile.am: Add copyright notice.
77745         (libfetish_a_SOURCES): Add unlocked-io.h.
77746         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
77747         (DISTCLEANFILES, io_functions): Remove macros.
77748         (EXTRA_DIST): Remove gen_uio.
77749         (unlocked-io.h): Remove rule.
77750
77751 2002-12-04  Jim Meyering  <jim@meyering.net>
77752
77753         Reflect the fact that stat.c and lstat.c are no longer generated.
77754         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
77755         (DISTCLEANFILES): Likewise.
77756         (EXTRA_DIST): Likewise.
77757         (all_local): Don't depend on stat.c or lstat.c.
77758         (stat.c, lstat.c): Remove rules.
77759         (EXTRA_DIST): Remove xstat.in.
77760
77761         * lib/xstat.in: Remove file.  Contents moved into stat.c.
77762         * lib/stat.c: New file.  Contents mostly from xstat.in.
77763         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
77764         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
77765
77766         * lib/safe-read.c: Rework so that it may serve to define safe_write,
77767         too.
77768         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
77769
77770 2002-12-03  Jim Meyering  <jim@meyering.net>
77771
77772         * lib/safe-read.c, safe-write.c: Change variable names and comments,
77773         but not semantics, to minimize the differences between these two files.
77774         (safe_read): Change comment to mention SAFE_READ_ERROR.
77775
77776         * lib/safe-read.c (IS_EINTR): Define.
77777         (safe_read): Use IS_EINTR in place of in-function cpp directives.
77778
77779 2002-12-02  Jim Meyering  <jim@meyering.net>
77780
77781         * lib/safe-read.c (EINTR): Define.
77782         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
77783         (INT_MAX): Provide fallback.
77784         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
77785
77786         * lib/safe-read.h (SAFE_READ_ERROR): Define.
77787
77788 2002-12-02  Bruno Haible  <bruno@clisp.org>
77789
77790         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
77791         Define, taken from safe-read.c.
77792         (INT_MAX): Provide fallback.
77793         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
77794         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
77795
77796         * lib/safe-read.c (EINTR): Remove definition.
77797         (safe_read): Don't use EINTR if it is absent.
77798
77799 2002-12-01  Jim Meyering  <jim@meyering.net>
77800
77801         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
77802         zero.
77803         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
77804
77805 2002-11-27  Paul Eggert  <eggert@twinsun.com>
77806
77807         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
77808         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
77809         with `if (! (value < limit)) abort ();', for readability.
77810
77811 2002-11-26  Karl Berry  <karl@gnu.org>
77812
77813         * lib/strdup.c: copy from libc again, with jim's ok.
77814         * lib/.cppi-disable: re-add strdup.c
77815
77816 2002-11-25  Karl Berry  <karl@gnu.org>
77817
77818         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
77819         instead of "strtol.c".
77820
77821 2002-11-25  Karl Berry  <karl@gnu.org>
77822
77823         * config/install-sh: update from automake for variable quoting, $0 in
77824         error msgs, etc.
77825
77826         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
77827         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
77828         entry.
77829
77830 2002-11-25  Jim Meyering  <jim@meyering.net>
77831
77832         * lib/mktime.c: Sync from libc, now that it has the latest fix.
77833
77834 2002-11-24  Karl Berry  <karl@gnu.org>
77835
77836         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
77837         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
77838
77839 2002-11-24  Jim Meyering  <jim@meyering.net>
77840
77841         Update from coreutils:
77842
77843         * lib/mktime.c: Merge in changes from libc.
77844
77845         Avoid a link-time failure on some Linux systems.
77846         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
77847         (otherwise).
77848         (__mon_yday): Declare with the STATIC attribute.
77849         (__mktime_internal): Likewise.
77850         Based on a report from Greg Schafer.
77851
77852 2002-11-23  Jim Meyering  <jim@meyering.net>
77853
77854         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
77855         Use `unsigned', not `int', as type of index.
77856
77857         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
77858
77859         * lib/fsusage.c: Remove unneeded parentheses around operands of
77860         `defined'.
77861
77862 2002-11-22  Paul Eggert  <eggert@twinsun.com>
77863
77864         * lib/quotearg.h: Allow multiple inclusion by surrounding with
77865         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
77866         so that we can be included first.
77867         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
77868         * lib/quotearg.c: Include quotearg.h immediately after config.h.
77869         No need to include stddef.h or sys/types.h any more.
77870         Surround local include files with "", not "<>".
77871         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
77872         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
77873         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
77874         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
77875         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
77876         (ISPRINT): Remove; no longer needed now that we assume C89.
77877
77878         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
77879         Preserve errno.
77880
77881         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
77882         quotearg_char): Use SIZE_MAX rather than
77883         (size_t) -1 when we are talking about "infinity".
77884
77885         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
77886
77887 2002-11-22  Paul Eggert  <eggert@twinsun.com>
77888
77889         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
77890         hint that one should use `if (! x) abort ();' rather than `assert
77891         (x);', and anyway it's one less thing to worry about configuring.
77892         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
77893         hash_rehash, hash_insert): Use abort rather than assert.
77894
77895 2002-11-22  Bruno Haible  <bruno@clisp.org>
77896
77897         * lib/safe-read.h: Assume C89. Add comments.
77898         (safe_read): Change return type to size_t.
77899         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
77900         byte counts > SSIZE_MAX correctly.
77901         * lib/safe-write.h: New file.
77902         * lib/safe-write.c: New file.
77903         * lib/full-read.h: New file.
77904         * lib/full-read.c: New file.
77905         * lib/full-write.h: Assume C89. Add comments.
77906         * lib/full-write.c: Include safe-write.h.
77907         (full_write): Rewritten to use safe_write.
77908         Suggested by Jim Meyering and Paul Eggert.
77909
77910 2002-11-21  Jim Meyering  <jim@meyering.net>
77911
77912         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
77913
77914         Merge in changes from the coreutils.
77915
77916         2002-09-25  Paul Eggert  <eggert@twinsun.com>
77917         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
77918         <stdint.h>.
77919         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
77920         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
77921         int.  Work more efficiently if X is the same width as uintmax_t.
77922         Do not compare X to -1, to avoid bogus compiler warning.
77923         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
77924         Don't assume that f_frsize and f_bsize are the same type.
77925
77926         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
77927         warning on FreeBSD.
77928
77929         * lib/makepath.c (make_path): Restore umask *before* creating the final
77930         component.
77931         (make_path): Minor reformatting.
77932
77933         * lib/xmalloc.c: Adjust to work with new autoconf macros,
77934         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
77935         HAVE_MALLOC/HAVE_REALLOC.
77936
77937         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
77938         dummy ones.  At least on GNU/Linux systems, `auto' means something
77939         else.
77940         From Michael Stone.
77941
77942 2002-11-21  Bruno Haible  <bruno@clisp.org>
77943
77944         Remove case insensitive option matching.
77945         * lib/argmatch.h (argcasematch): Remove declaration.
77946         (ARGCASEMATCH): Remove macro.
77947         (__xargmatch_internal): Remove case_sensitive argument.
77948         (XARGMATCH): Update.
77949         (XARGCASEMATCH): Remove macro.
77950         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
77951         case_sensitive argument.
77952         (argcasematch): Remove function.
77953         (__xargmatch_internal): Remove case_sensitive argument.
77954         (main): Use XARGMATCH instead of XARGCASEMATCH.
77955
77956         * lib/xmalloc.c: Change compile-time error message. Add comment about
77957         required autoconf version.
77958
77959 2002-11-20  Paul Eggert  <eggert@twinsun.com>
77960
77961         Merge argmatch cleanups from Bison.  Assume C89.
77962
77963         * lib/argmatch.c: Include config.h here, not in argmatch.h.
77964         Include stdlib.h, for EXIT_FAILURE.
77965         Always include <string.h>, since we assume C89.
77966         (EXIT_FAILURE): Remove pre-C89 bug workaround.
77967         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
77968         Include <stddef.h> instead, since it's all we need for size_t.
77969         (PARAMS): Remove.  All uses removed.
77970         (ARRAY_CARDINALITY): Do not bother to #undef.
77971         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
77972         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
77973         Remove unnecessary parentheses.
77974         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
77975         Insert necessary parentheses.
77976         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
77977         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
77978
77979 2002-11-19  Bruno Haible  <bruno@clisp.org>
77980
77981         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
77982         * lib/mbswidth.h: Include <stddef.h>, for size_t.
77983
77984         * lib/mbswidth.h (PARAMS): Remove macro.
77985         (mbswidth, mbsnwidth): Use ANSI C function declarations.
77986         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
77987
77988         * lib/gcd.h (PARAMS): Remove macro.
77989         (gcd): Use ANSI C function declarations.
77990         * lib/gcd.c (gcd): Likewise.
77991
77992 2002-11-15  Bruno Haible  <bruno@clisp.org>
77993
77994         * lib/strcspn.c: Include <stddef.h>.
77995         (strcspn): Use ANSI C function declaration. Change return type to
77996         size_t. Use NULL.
77997         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
77998         (strpbrk): Use NULL.
77999         * lib/strpbrk.h (PARAMS): Remove macro.
78000         (strpbrk): Use ANSI C function declaration.
78001         * lib/strstr.c: Don't include <sys/types.h>.
78002         * lib/strstr.h (PARAMS): Remove macro.
78003         (strstr): Use ANSI C function declarations.
78004
78005 2002-11-14  Karl Berry  <karl@gnu.org>
78006
78007         * config/mkinstalldirs: `do' on separate line, instead of
78008         `for var; do'.
78009
78010 2002-11-06  Bruno Haible  <bruno@clisp.org>
78011
78012         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
78013         * lib/gcd.c (gcd): Likewise.
78014
78015 2002-11-05  Bruno Haible  <bruno@clisp.org>
78016
78017         * lib/gcd.h: New file, from gettext-0.11.5.
78018         * lib/gcd.c: New file, from gettext-0.11.5.
78019
78020 2002-11-05  Bruno Haible  <bruno@clisp.org>
78021
78022         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
78023         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
78024         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
78025         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
78026
78027         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
78028         <libintl.h>.
78029         * lib/makepath.c: Include gettext.h instead of <locale.h> and
78030         <libintl.h>.
78031
78032         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
78033         * lib/human.c: Include gettext.h instead of <libintl.h>.
78034         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
78035         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
78036         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
78037         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
78038         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
78039         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
78040         (textdomain): Remove definition.
78041         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
78042
78043         * lib/long-options.c: Remove include of <libintl.h> and definition of
78044         _.
78045         * lib/same.c: Remove include of <libintl.h> and definition of _.
78046
78047 2002-11-04  Owen Taylor  <otaylor@redhat.com>
78048
78049         * lib/config.charset: A few additions for Solaris.
78050
78051 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
78052
78053         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
78054         * lib/localcharset.c (locale_charset): Declare as extern "C".
78055
78056 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
78057
78058         * lib/config.charset: msdos in uk_UA uses CP1125.
78059
78060 2002-11-04  Bruno Haible  <bruno@clisp.org>
78061
78062         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
78063         * lib/strcase.h: New file, from GNU gettext-0.11.5.
78064         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
78065         * lib/strstr.h: New file, from GNU gettext-0.11.5.
78066         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
78067
78068 2002-11-04  Bruno Haible  <bruno@clisp.org>
78069
78070         * lib/localcharset.c (locale_charset): Don't return an empty string.
78071
78072 2002-11-04  Bruno Haible  <bruno@clisp.org>
78073
78074         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
78075         aliases.
78076
78077 2002-11-04  Bruno Haible  <bruno@clisp.org>
78078
78079         * lib/config.charset: Update for newest glibc. Add canonical names
78080         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
78081
78082 2002-11-04  Bruno Haible  <bruno@clisp.org>
78083
78084         * lib/config.charset: Add support for NetBSD.
78085
78086 2002-11-04  Bruno Haible  <bruno@clisp.org>
78087
78088         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
78089
78090 2002-11-01  Bruno Haible  <bruno@clisp.org>
78091
78092         * configure.in: Add AC_CONFIG_AUX_DIR call.
78093         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
78094         test/Makefile.
78095         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
78096
78097 2002-09-28  Karl Berry  <karl@gnu.org>
78098
78099         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
78100         installed automake until the next release, since changes have been
78101         made.
78102
78103 2002-09-25  Karl Berry  <karl@gnu.org>
78104
78105         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
78106         * lib/getopt*: copy from libc/posix.
78107         * lib/gettext.h: copy from gettext.
78108         * lib/.cppi-disable: add strdup.c, gettext.h.
78109
78110 2002-09-25  Karl Berry  <karl@gnu.org>
78111
78112         * config/srclist.txt: enable gettext.h check.
78113         * config/config.{guess,sub}: update from prep.
78114         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
78115                 from automake 1.6.3.
78116         See srclist*.
78117
78118 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
78119
78120         * regex.c (PATFETCH): Remove the translating fetch.
78121         (PATFETCH_RAW): Rename to PATFETCH.
78122         (set_image_of_range): New fun.
78123         (SET_RANGE_TABLE_WORK_AREA): Use it.
78124         (regex_compile): Don't translate the pattern chars so eagerly.
78125         Only do it when inserting an `exactn' bytecode or when handling
78126         a char-range.
78127         (mutually_exclusive_p): Avoid empty statement.
78128
78129 2002-07-06  Jim Meyering  <meyering@lucent.com>
78130
78131         * m4/README: Don't mention Makefile.am.in.
78132         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
78133
78134 2002-07-01  Jim Meyering  <meyering@lucent.com>
78135
78136         * lib/c-stack.c: Include sys/time.h.
78137         From Volker Borchert.
78138
78139 2002-06-26  Paul Eggert  <eggert@twinsun.com>
78140
78141         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
78142
78143 2002-06-26  Paul Eggert  <eggert@twinsun.com>
78144
78145         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
78146         New macro.  Use it uniformly instead of
78147         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
78148         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
78149         reported by Vin Shelton.
78150
78151 2002-06-22  Paul Eggert  <eggert@twinsun.com>
78152
78153         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
78154         Do not assume SA_SIGINFO behavior.
78155         Bug reported by Jim Meyering on NetBSD 1.5.2.
78156
78157 2002-06-22  Jim Meyering  <meyering@lucent.com>
78158
78159         * m4/c-stack.m4: New file, from diffutils-2.8.2.
78160         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
78161
78162         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
78163         now that configure.ac uses AC_GNU_SOURCE.
78164         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
78165         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
78166
78167         Update to latest tools.  Suggestions from Paul Eggert.
78168         * m4/stdbool.m4: New file, from diffutils-2.8.2.
78169         * m4/gnu-source.m4: Update from diffutils-2.8.2.
78170         * m4/fnmatch.m4: Likewise.
78171         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
78172         to AC_HEADER_STDBOOL
78173
78174 2002-06-22  Jim Meyering  <meyering@lucent.com>
78175
78176         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
78177         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
78178
78179 2002-06-22  Jim Meyering  <meyering@lucent.com>
78180
78181         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
78182
78183         * lib/exitfail.c, exitfail.h: Likewise.
78184         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
78185
78186         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
78187         of fnmatch.h.
78188         (EXTRA_DIST): Add fnmatch_loop.c.
78189         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
78190
78191         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
78192         * lib/fnmatch.c: Update from diffutils-2.8.2.
78193         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
78194         * lib/fnmatch.h: Remove file.
78195
78196 2002-06-21  Jim Meyering  <meyering@lucent.com>
78197
78198         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
78199         * m4/mbrtowc.m4: Likewise.
78200
78201         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
78202         * m4/mbswidth.m4: Reflect name change:
78203         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
78204         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
78205
78206         * m4/lib-link.m4: Update from gettext-0.11.2.
78207         * m4/gettext.m4: Likewise.
78208
78209         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
78210         From Alfred M. Szmidt.
78211
78212 2002-06-18  Paul Eggert  <eggert@twinsun.com>
78213
78214         * lib/file-type.h: Report an error if neither S_ISREG nor
78215         S_IFREG is defined, instead of using a test specific to glibc
78216         2.2.  This should be safe, since POSIX requires S_ISREG and
78217         Unix Version 7 had S_IFREG.  We don't need to check for
78218         <sys/types.h> since we don't use any symbols that it defines.
78219
78220 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
78221
78222         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
78223         $@-t, so that each temporary file name is unique and valid in the first
78224         8 characters, for operation under DOS.
78225
78226 2002-06-15  Paul Eggert  <eggert@twinsun.com>
78227
78228         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
78229
78230 2002-06-15  Jim Meyering  <meyering@lucent.com>
78231
78232         Work even with DJGPP 2.03, which lacks support for symlinks.
78233         From Richard Dawe.
78234         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
78235         is defined.
78236         * lib/lchown.c (S_ISLNK): Likewise.
78237
78238 2002-06-15  Jim Meyering  <meyering@lucent.com>
78239
78240         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
78241         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
78242         have been included before this file.
78243
78244 2002-06-14  Jim Meyering  <meyering@lucent.com>
78245
78246         * lib/file-type.h: Use the version from diffutils-2.8.2.
78247         * lib/file-type.c: Likewise.
78248
78249 2002-06-07  Jim Meyering  <meyering@lucent.com>
78250
78251         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
78252         They're needed at least for NetBSD 1.5.2.
78253         ($statxfs_includes): Include those same headers.
78254         ($statxfs_includes): Include sys/vfs.h if available.
78255         ($statxfs_includes): Likewise for sys/statvfs.h.
78256         Check for the following members in both structs statfs and statvfs:
78257         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
78258
78259 2002-06-01  Jim Meyering  <meyering@lucent.com>
78260
78261         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
78262         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
78263
78264 2002-05-28  Jim Meyering  <meyering@lucent.com>
78265
78266         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
78267         Reported by Volker Borchert.
78268
78269 2002-05-27  Jim Meyering  <meyering@lucent.com>
78270
78271         Fix a problem seen only on nonconforming systems whereby ls.c's
78272         use of localtime, and then of gettimeofday would cause trouble:
78273         the localtime call used to initialize rpl_gettimeofday's save
78274         mechanism would clobber ls's current local time information so
78275         that in any long listing the first file would always be listed
78276         with date 1970-01-01.  Analysis by Volker Borchert.
78277
78278         * lib/gettimeofday.c (localtime): Undefine.
78279         (rpl_localtime): New function.
78280
78281 2002-05-27  Jim Meyering  <meyering@lucent.com>
78282
78283         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
78284         localtime.
78285
78286         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
78287         use the replacement function; it wouldn't resolve at link time.
78288         Reported by Volker Borchert.
78289
78290 2002-05-22  Jim Meyering  <meyering@lucent.com>
78291
78292         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
78293         file-type.h.
78294         * lib/file-type.h: New file.
78295         * lib/file-type.c (file_type): New file/function.  Extracted from
78296         diffutils.
78297
78298 2002-04-30  Jim Meyering  <meyering@lucent.com>
78299
78300         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
78301
78302 2002-04-29  Paul Eggert  <eggert@twinsun.com>
78303
78304         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
78305
78306 2002-04-29  Paul Eggert  <eggert@twinsun.com>
78307
78308         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
78309         Do not check for alloca.h (no longer used) or stdbool.h (was never
78310         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
78311
78312 2002-04-29  Paul Eggert  <eggert@twinsun.com>
78313
78314         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
78315
78316 2002-04-29  Jim Meyering  <meyering@lucent.com>
78317
78318         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
78319         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
78320         Use AC_FUNC_STRNLEN here instead.
78321
78322         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
78323         With autoconf-2.53a, it's part of AC_PROG_CC.
78324
78325 2002-04-28  Paul Eggert  <eggert@twinsun.com>
78326
78327         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
78328         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
78329
78330 2002-04-28  Paul Eggert  <eggert@twinsun.com>
78331
78332         * lib/sig2str.h, lib/sig2str.c: New files.
78333         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
78334
78335 2002-04-28  Paul Eggert  <eggert@twinsun.com>
78336
78337         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
78338         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
78339         of 127, since 64 is the largest conceivable number for ancient
78340         nonstandard hosts.
78341         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
78342
78343 2002-04-28  Jim Meyering  <meyering@lucent.com>
78344
78345         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
78346
78347 2002-04-24  Jim Meyering  <meyering@lucent.com>
78348
78349         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
78350         (jm_PREREQ): Use it.
78351
78352         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
78353         mach/mach.h fcntl.h.
78354         Check for this function: setlocale.
78355
78356 2002-04-24  Jim Meyering  <meyering@lucent.com>
78357
78358         * lib/gettext.h: New file, from Gettext.
78359         * lib/Makefile.am (INCLUDES): Remove -I../intl.
78360         (libfetish_a_SOURCES): Add gettext.h.
78361
78362 2002-04-16  Jim Meyering  <meyering@lucent.com>
78363
78364         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
78365         ut_pid, ut_id, ut_exit.
78366
78367 2002-04-16  Jim Meyering  <meyering@lucent.com>
78368
78369         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
78370         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
78371         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
78372
78373 2002-04-12  Jim Meyering  <meyering@lucent.com>
78374
78375         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
78376         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
78377         existence of the getmntinfo function.  Needed for Darwin 5.3.
78378
78379         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
78380         This is necessary at least on Darwin 5.3.
78381
78382         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
78383         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
78384         strnlen.o in the library, and that makes some versions of ranlib
78385         object.
78386
78387 2002-04-12  Jim Meyering  <meyering@lucent.com>
78388
78389         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
78390
78391 2002-04-09  Jim Meyering  <meyering@lucent.com>
78392
78393         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
78394         to be more precise.  Rather than saying we're checking whether the
78395         function `works', say what we're testing.
78396         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
78397         Reported by Bruno Haible.
78398
78399 2002-03-10  Jim Meyering  <meyering@lucent.com>
78400
78401         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
78402         Suggestion from Santiago Vila.
78403
78404 2002-03-08  Jim Meyering  <meyering@lucent.com>
78405
78406         * lib/rename.c: Mention that this wrapper is needed also on
78407         mips-dec-ultrix4.4 systems.
78408
78409 2002-03-02  Jim Meyering  <meyering@lucent.com>
78410
78411         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
78412         not HAVE_CLOCK_SETTIME.
78413
78414 2002-02-27  Paul Eggert  <eggert@twinsun.com>
78415
78416         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
78417         Check for clock_settime.
78418
78419 2002-02-27  Paul Eggert  <eggert@twinsun.com>
78420
78421         * lib/nanosleep.h: Rename to....
78422         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
78423
78424         * lib/gettime.c: New file.
78425         * lib/settime.c: New file.
78426         * lib/stime.c: Remove.
78427
78428         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
78429         timespec.h.  Remove nanosleep.h.
78430
78431 2002-02-25  Paul Eggert  <eggert@twinsun.com>
78432
78433         * m4/acl.m4: New file.
78434         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
78435         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
78436
78437 2002-02-25  Paul Eggert  <eggert@twinsun.com>
78438
78439         * lib/acl.c, lib/acl.h: New files.
78440         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
78441
78442 2002-02-24  Jim Meyering  <meyering@lucent.com>
78443
78444         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
78445         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
78446         cause trouble.  Reported by Nelson Beebe.
78447
78448 2002-02-23  Paul Eggert  <eggert@twinsun.com>
78449
78450         * lib/path-concat.c (xpath_concat): Reorder code to pacify
78451         compilers that don't know that xalloc_die never returns.
78452
78453 2002-02-20  Jim Meyering  <meyering@lucent.com>
78454
78455         * lib/getdate.c: Regenerate using bison-1.33.
78456
78457 2002-02-17  Jim Meyering  <meyering@lucent.com>
78458
78459         * config/config.guess (main): Don't use `head -1'; it's no longer
78460         portable. Use `sed 1q' instead.
78461
78462 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
78463
78464         * m4/codeset.m4: Upgrade to gettext-0.11.
78465         * m4/gettext.m4: Upgrade to gettext-0.11.
78466         * m4/glibc21.m4: Upgrade to gettext-0.11.
78467         * m4/iconv.m4: Upgrade to gettext-0.11.
78468         * m4/isc-posix.m4: Upgrade to gettext-0.11.
78469         * m4/lcmessage.m4: Upgrade to gettext-0.11.
78470         * m4/lib-ld.m4: New file, from gettext-0.11.
78471         * m4/lib-link.m4: New file, from gettext-0.11.
78472         * m4/lib-prefix.m4: New file, from gettext-0.11.
78473         * m4/progtest.m4: Upgrade to gettext-0.11.
78474
78475 2002-02-15  Paul Eggert  <eggert@twinsun.com>
78476
78477         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
78478         (jm_PREREQ): Use it.
78479
78480 2002-02-15  Paul Eggert  <eggert@twinsun.com>
78481
78482         * lib/posixver.c, lib/posixver.h: New files.
78483         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
78484
78485 2002-02-02  Paul Eggert  <eggert@twinsun.com>
78486             Bruno Haible  <bruno@clisp.org>
78487
78488         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
78489         (fwrite_success_callback): New declaration.
78490         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
78491         print_unicode_char. Call failure callback instead of error.
78492         (fwrite_success_callback): New function.
78493         (exit_failure_callback): New function.
78494         (fallback_failure_callback): New function.
78495         (print_unicode_char): Call unicode_to_mb.
78496
78497 2002-01-26  Jim Meyering  <meyering@lucent.com>
78498
78499         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
78500         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
78501
78502 2002-01-26  Jim Meyering  <meyering@lucent.com>
78503
78504         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
78505
78506 2002-01-22  Paul Eggert  <eggert@twinsun.com>
78507
78508         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
78509
78510 2002-01-22  Jim Meyering  <meyering@lucent.com>
78511
78512         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
78513         Otherwise, some versions of automake would omit the rule that makes
78514         Makefile from Makefile.in.
78515
78516 2002-01-21  Paul Eggert  <eggert@twinsun.com>
78517
78518         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
78519         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
78520         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
78521         (memcoll): Set errno to zero if there is no error.
78522
78523         * lib/quotearg.c (quotearg_buffer_restyled):
78524         Fix bug with quoting buffers containing NUL when backslashing escapes.
78525         This bug was exposed by the other changes in this patch.
78526         (quotearg_n_options): New arg ARGSIZE.
78527         All callers changed.
78528         (quoting_options_from_style): New function.
78529         (quotearg_n_style): Use it.
78530         (quotearg_n_style_mem): New function.
78531
78532         * lib/quotearg.h (quotearg_n_style_mem): New function.
78533
78534 2002-01-19  Jim Meyering  <meyering@lucent.com>
78535
78536         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
78537         Remove useless quotes: DF_PROG="df".
78538         * m4/strnlen.m4: New file.
78539
78540 2002-01-16  Paul Eggert  <eggert@twinsun.com>
78541
78542         * lib/backupfile.c (ISDIGIT): Comment fix.
78543         * lib/getdate.y (ISDIGIT): Likewise.
78544         * lib/posixtm.c (ISDIGIT, year): Likewise.
78545         * lib/strverscmp.c (ISDIGIT): Likewise.
78546         * lib/userspec.c (ISDIGIT): Likewise.
78547
78548 2002-01-16  Jim Meyering  <meyering@lucent.com>
78549
78550         * lib/getdate.y: Add three semicolons, each just before a closing
78551         brace. Bison (as of version 1.31) no longer papers over that mistake.
78552
78553 2002-01-05  Jim Meyering  <meyering@lucent.com>
78554
78555         * lib/version-etc.c (version_etc_copyright): Update copyright year.
78556
78557 2001-12-19  Paul Eggert  <eggert@twinsun.com>
78558
78559         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
78560         not silently exit merely because the output buffer happens to
78561         have nothing pending.
78562
78563 2001-12-18  Paul Eggert  <eggert@twinsun.com>
78564
78565         See the big note in ../ChangeLog.
78566         * lib/human.c (suffixes): Prefer K to k for 1024.
78567         (generate_suffix_backwards): New function.
78568         (human_readable_inexact): Use it.
78569         * lib/xstrtol.c (__xstrtol): If there is no number but there
78570         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
78571         Accept 'K' as well as 'k'.
78572
78573 2001-12-15  Jim Meyering  <meyering@lucent.com>
78574
78575         * lib/regex.h (__restrict_arr): Update from libc.
78576
78577         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
78578         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
78579         (STREQ): Define.
78580
78581 2001-12-14  Jim Meyering  <meyering@lucent.com>
78582
78583         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
78584         Suggestion from Bruno Haible.
78585
78586 2001-12-10  Jim Meyering  <meyering@lucent.com>
78587
78588         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
78589         xrealloc, Instead, include "xalloc.h".
78590         (initbuffer): Don't cast xmalloc return value to char*.
78591         (readline): Reword comment.
78592         Don't cast xrealloc return value to char*
78593         Return NULL, not 0.
78594
78595 2001-12-09  Jim Meyering  <meyering@lucent.com>
78596
78597         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
78598         about `signed and unsigned type in conditional expression'.
78599         * lib/posixtm.c (posix_time_parse): Likewise.
78600
78601         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
78602
78603         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
78604         to avoid a pedantic warning.
78605
78606         * lib/getstr.c: Don't include assert.h.
78607         (getstr): Remove warning-evoking assertions.
78608         Return -1 if offset parameter is out of bounds.
78609         Change the type of a local from int to size_t.
78610
78611         * lib/strftime.c (my_strftime_localtime_r): Include this function
78612         definition in the `#if ! HAVE_TM_GMTOFF' block.
78613
78614         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
78615         Include xalloc.h instead.
78616
78617 2001-12-02  Jim Meyering  <meyering@lucent.com>
78618
78619         * lib/tempname.c: Don't declare getenv, thus reverting the change of
78620         2001-11-18.  It's no longer necessary, now that stdlib.h is always
78621         included.
78622
78623         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
78624         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
78625
78626 2001-11-30  Akim Demaille  <akim@epita.fr>
78627
78628         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
78629         before being defined.
78630
78631 2001-11-27  Paul Eggert  <eggert@twinsun.com>
78632
78633         * lib/quotearg.h (quotearg_n, quotearg_n_style):
78634         First arg is int, not unsigned.
78635         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
78636         (SIZE_MAX, UINT_MAX): New macros.
78637         (quotearg_n_options): Abort if N is negative.
78638         Avoid overflow check on hosts where size_t is 64 bits and int
78639         is 32 bits, as overflow is impossible there.
78640         Fix off-by-one typo that caused unnecessary reallocation.
78641
78642 2001-11-27  Jim Meyering  <meyering@lucent.com>
78643
78644         * lib/tempname.c: Merge with version from libc.
78645         * lib/regex.c: Likewise.
78646
78647         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
78648         systems for which STDC_HEADERS is 0, it was not included, resulting in
78649         a warning about an integer-to-pointer conversion problem with getenv.
78650         Reported by Volker Borchert.
78651
78652 2001-11-26  Jim Meyering  <meyering@lucent.com>
78653
78654         * lib/gtod.h: Remove file.
78655         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
78656         * lib/gettimeofday.c: Don't include gtod.h.
78657         (GTOD_init): Remove function.
78658         (rpl_gettimeofday): Do its job here instead, rather than aborting.
78659         Suggestion from Volker Borchert.
78660
78661 2001-11-23  Jim Meyering  <meyering@lucent.com>
78662
78663         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
78664         it.
78665         * lib/hash.c (struct hash_table): Define it here instead.
78666
78667 2001-11-22  Jim Meyering  <meyering@lucent.com>
78668
78669         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
78670
78671 2001-11-20  Jim Meyering  <meyering@lucent.com>
78672
78673         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
78674         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
78675
78676 2001-11-19  Jim Meyering  <meyering@lucent.com>
78677
78678         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
78679         directory.  Use "conftestXXXXXX" as the template.
78680         Suggestion from Paul Eggert.
78681
78682         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
78683         immediately, so the test doesn't mistakenly hit the max-open-files
78684         limit.
78685
78686 2001-11-18  Paul Eggert  <eggert@twinsun.com>
78687
78688         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
78689         (TEMPORARIES): New macro.
78690         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
78691         removes an artificial limitation (e.g. HP-UX 10.20, where
78692         TMP_MAX is 17576).
78693
78694 2001-11-18  Jim Meyering  <meyering@lucent.com>
78695
78696         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
78697
78698 2001-11-18  Jim Meyering  <meyering@lucent.com>
78699
78700         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
78701         on SunOS 4.
78702
78703         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
78704         files will be created before anything else.
78705
78706 2001-11-17  Paul Eggert  <eggert@twinsun.com>
78707
78708         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
78709         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
78710
78711 2001-11-17  Jim Meyering  <meyering@lucent.com>
78712
78713         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
78714         Prompted by a report from Bob Proulx.
78715
78716         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
78717         Instead, require UTILS_FUNC_MKSTEMP.
78718
78719 2001-11-17  Jim Meyering  <meyering@lucent.com>
78720
78721         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
78722         Now, that's done as part of AC_FUNC_STRTOD.
78723
78724 2001-11-17  Jim Meyering  <meyering@lucent.com>
78725
78726         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
78727         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
78728         rather than group writable.  Patch by Juan F. Codagnone.
78729
78730         * lib/readtokens.c: Remove explicit declarations of xmalloc and
78731         xrealloc, Instead, include "xalloc.h".
78732
78733         * lib/mountlist.c: Include unlocked-io.h after all system headers.
78734         Remove explicit declarations of xmalloc, xrealloc,
78735         and xstrdup.  Instead, include "xalloc.h".
78736
78737         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
78738         unlocked-io.h.
78739         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
78740         Likewise.
78741         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
78742
78743         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
78744         Reported by Padraig Brady.
78745
78746         * lib/mkstemp.c: #undef mkstemp.
78747         Include config.h.
78748         (rpl_mkstemp): Rename from mkstemp.
78749         Protoize.
78750
78751 2001-11-16  Jim Meyering  <meyering@lucent.com>
78752
78753         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
78754         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
78755         determine the amount of total physical memory, use pstat_getstatic.
78756         HPUX-11 doesn't define _SC_PHYS_PAGES.
78757         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
78758         If sysconf couldn't be used to determine the amount of available
78759         physical memory, use both pstat_getstatic and pstat_getdynamic.
78760         Based on a patch from Bob Proulx.
78761
78762 2001-11-10  Jim Meyering  <meyering@lucent.com>
78763
78764         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
78765         (jm_PREREQ): Use it.
78766
78767 2001-11-09  Jim Meyering  <meyering@lucent.com>
78768
78769         * m4/jm-macros.m4: Require autoconf-2.52f.
78770         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
78771         Use these AC_-prefixed names, not the AM_-prefixed ones.
78772
78773         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
78774
78775 2001-11-05  Jim Meyering  <meyering@lucent.com>
78776
78777         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
78778
78779 2001-11-04  Jim Meyering  <meyering@lucent.com>
78780
78781         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
78782         $DEFS.
78783
78784 2001-11-03  Jim Meyering  <meyering@lucent.com>
78785
78786         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
78787         of AC_DEFUN.
78788
78789         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
78790         know the name of the variable in the macro definition.
78791
78792 2001-11-03  Jim Meyering  <meyering@lucent.com>
78793
78794         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
78795         in argmatch_to_argument call.
78796
78797         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
78798         argument.
78799
78800         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
78801         e.g., a fault due to an attempt to free a NULL pointer.
78802
78803 2001-11-01  Jim Meyering  <meyering@lucent.com>
78804
78805         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
78806         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
78807
78808 2001-11-01  Jim Meyering  <meyering@lucent.com>
78809
78810         * lib/dirfd.c, lib/dirfd.h: New files.
78811         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
78812
78813         * lib/hash.c (hash_print) [TESTING]: Clean up.
78814
78815 2001-10-22  Paul Eggert  <eggert@twinsun.com>
78816
78817         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
78818         to avoid a warning if -Wall.
78819
78820 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
78821
78822         * README: New file
78823         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
78824         (per RMS's instructions, this is now the canonical source)
78825         * lgpl/, gpl/: New directories.
78826
78827 2001-10-21  Paul Eggert  <eggert@twinsun.com>
78828
78829         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
78830
78831 2001-10-21  Jim Meyering  <meyering@lucent.com>
78832
78833         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
78834         this code would end up calling gettext even in packages built
78835         with --disable-nls.
78836         * lib/getopt.c (_): Likewise.
78837         * lib/regex.c (_): Likewise.
78838
78839 2001-10-20  Paul Eggert  <eggert@twinsun.com>
78840
78841         * m4/error.m4 (jm_PREREQ_ERROR):
78842         Do not invoke AC_CHECK_FUNCS with strerror_r, as
78843         AC_FUNC_STRERROR_R does that.
78844         Check for strerror declaration.
78845
78846         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
78847         are supposed to have them these days.
78848         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
78849         Merge changes from latest Autoconf CVS.
78850         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
78851         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
78852         POSIX decided to standardize on the int flavor of strerror_r.
78853
78854 2001-10-20  Paul Eggert  <eggert@twinsun.com>
78855
78856         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
78857         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
78858         Use strerror_r that is only a macro, even if it is not a function.
78859         (strerror): Check for HAVE_DECL_STRERROR before declaring.
78860         (private_strerror): Use prototypes, not old-style function definition.
78861         (print_errno_message): New function.
78862         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
78863         char*-flavored one.
78864         (error_tail, error, error_at_line): Use it.
78865
78866 2001-10-11  Jim Meyering  <meyering@lucent.com>
78867
78868         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
78869         and quote_n (1, ... to avoid clobbering a buffer.
78870
78871 2001-10-05  Jim Meyering  <meyering@lucent.com>
78872
78873         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
78874         hash-pjw.h.
78875         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
78876         * lib/hash-pjw.h: New file.
78877
78878 2001-09-30  Jim Meyering  <meyering@lucent.com>
78879
78880         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
78881         `struct fsstat' has the `f_fstypename' member.
78882         Use that to define FS_TYPE, which is now used to make
78883         the getfsstat link test tighter.
78884
78885 2001-09-30  Jim Meyering  <meyering@lucent.com>
78886
78887         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
78888         Include <sys/ucred.h>, for Apple Darwin.
78889         Include sys/mount.h and sys/fs_types.h only if available.
78890         (FS_TYPE): Define.
78891         (read_filesystem_list): Use FS_TYPE.
78892
78893 2001-09-29  Paul Eggert  <eggert@twinsun.com>
78894
78895         * lib/exclude.c (excluded_filename): 0 -> false, since it's
78896         a boolean context.
78897
78898 2001-09-29  Jim Meyering  <meyering@lucent.com>
78899
78900         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
78901         [one-argument getmntent function]): Include stdio.h before mntent.h.
78902         SunOS 4.1.x needs it for the declaration of `FILE'.
78903         Patch by Volker Borchert.
78904
78905         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
78906         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
78907         sys/fs_types.h, and make the link-test for getfsstat guard #include
78908         directives with appropriate #if HAVE_*_H tests so that we can
78909         detect getfsstat on Apple Darwin1.3.7 systems.
78910         Reported by Nelson Beebe.
78911         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
78912
78913 2001-09-28  Paul Eggert  <eggert@twinsun.com>
78914
78915         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
78916         #defines strtoimax.  Also treat the other strto* functions
78917         like strtoimax.
78918
78919         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
78920         Check for strtoul and strtoumax,
78921         as those declarations are made even in the signed case.
78922         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
78923         Likewise, for strtol and strtoimax.
78924
78925 2001-09-28  Paul Eggert  <eggert@twinsun.com>
78926
78927         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
78928         #defines strtoimax.  Also treat the other strto* functions
78929         like strtoimax.
78930
78931         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
78932         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
78933         (strtoimax, strtoumax): Do not declare if already defined as a macro.
78934
78935 2001-09-26  Jim Meyering  <meyering@lucent.com>
78936
78937         Most macros in unlocked-io.h had the wrong number of arguments.
78938         * lib/gen-uio: New script.
78939         (USE_UNLOCKED_IO): Define to 1 if not already defined.
78940         * lib/unlocked-io.hin: Remove file.
78941         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
78942         rather than trying to embed it here.
78943         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
78944         Reported by Padraig Brady.
78945
78946 2001-09-25  Volker Borchert  <bt@teknon.de>
78947
78948         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
78949         `result'.
78950
78951 2001-09-24  Jim Meyering  <meyering@lucent.com>
78952
78953         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
78954
78955 2001-09-23  Jim Meyering  <meyering@lucent.com>
78956
78957         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
78958         instead of the mere test for existence of mntent.h.  The latter
78959         would get a false-positive on AIX 3.4 systems.
78960         In the outer getmntent if-block, don't die if neither of the getmntent
78961         tests succeeds.  Instead, just fall through and continue with the
78962         remaining tests.
78963
78964 2001-09-23  Jim Meyering  <meyering@lucent.com>
78965
78966         * lib/mountlist.c: Remove useless parentheses in #if directives.
78967         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
78968         the deprecated MOUNTED symbol is no longer defined in mntent.h.
78969
78970 2001-09-22  Jim Meyering  <meyering@lucent.com>
78971
78972         * m4/gettext.m4: New file.  From gettext.
78973         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
78974         * m4/progtest.m4: Likewise
78975         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
78976         * m4/glibc21.m4: Likewise.
78977
78978         * m4/libintl.m4: Remove.  No longer used.
78979
78980 2001-09-22  Jim Meyering  <meyering@lucent.com>
78981
78982         * lib/localcharset.c: Update from latest gettext.
78983         * lib/config.charset: Likewise.
78984
78985 2001-09-20  Jim Meyering  <meyering@lucent.com>
78986
78987         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
78988         strtoimax.
78989         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
78990         strtoumax.
78991
78992 2001-09-20  Jim Meyering  <meyering@lucent.com>
78993
78994         * lib/xstrtol.c (strtoimax): Guard declaration with
78995         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
78996         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
78997         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
78998         (strtoumax): Likewise, for completeness (it wasn't necessary).
78999
79000 2001-09-17  Paul Eggert  <eggert@twinsun.com>
79001
79002         * lib/strtoimax.c (HAVE_LONG_LONG):
79003         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
79004         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
79005         to work around bug in IBM C compiler.
79006
79007 2001-09-17  Jim Meyering  <meyering@lucent.com>
79008
79009         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
79010         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
79011         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
79012         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
79013         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
79014         whenever the right hand side need not be expanded by the shell.
79015
79016 2001-09-16  Paul Eggert  <eggert@twinsun.com>
79017
79018         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
79019         library.  It's not correct, as some older glibcs are buggy.
79020         fnmatch wasn't fixed until glibc 2.2.
79021
79022         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
79023         special shell magic here.
79024
79025 2001-09-16  Jim Meyering  <meyering@lucent.com>
79026
79027         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
79028         * m4/jm-macros.m4: Require it.
79029
79030 2001-09-16  Jim Meyering  <meyering@lucent.com>
79031
79032         * lib/mkdir.c: New file.
79033
79034 2001-09-15  Jim Meyering  <meyering@lucent.com>
79035
79036         * m4/jm-macros.m4: Check for help2man.
79037
79038 2001-09-11  Jim Meyering  <meyering@lucent.com>
79039
79040         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
79041         The body, by Paul Eggert, was moved here from configure.in.
79042         * m4/jm-macros.m4: Require UTILS_HOST_OS.
79043
79044 2001-09-04  Paul Eggert  <eggert@twinsun.com>
79045
79046         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
79047         (jm_PREREQ): Use it.
79048
79049 2001-09-04  Paul Eggert  <eggert@twinsun.com>
79050
79051         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
79052         Use ssize_t, not int, to store result of readlink.
79053         Check for ssize_t overflow as well as size_t overflow,
79054         as POSIX says the result of readlink is implementation-defined
79055         when ssize_t overflows.
79056         Remove unnecessary cast to char*.
79057         Use free+malloc instead of realloc, as the storage doesn't need
79058         to be preserved and it's clearer and can be more efficient that way.
79059         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
79060         * lib/xreadlink.h (xreadlink): Update prototype.
79061
79062 2001-09-04  Paul Eggert  <eggert@twinsun.com>
79063
79064         * lib/xgetcwd.c: Revert some of the previous change; intead,
79065         fix the HAVE_GETCWD_NULL code to behave more like the
79066         !HAVE_GETCWD_NULL code used to.
79067
79068         Include "xalloc.h".
79069         (xgetcwd): Do not return NULL when memory is exhausted; instead,
79070         invoke xalloc_die.
79071
79072 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79073
79074         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
79075         sys/param.h, as pathmax.h includes them.
79076
79077 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79078
79079         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
79080         (jm_PREREQ_XGETCWD): New macro.
79081
79082         * m4/getcwd.m4: New file.
79083
79084 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79085
79086         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
79087         like the HAVE_GETCWD_NULL code.
79088         Include pathmax.h if not HAVE_GETCWD.
79089         Do not include xalloc.h.
79090         (INITIAL_BUFFER_SIZE): New symbol.
79091         Do not use xmalloc / xrealloc, since the caller is responsible for
79092         handling errors.  Preserve errno around `free' during failure.
79093         Do not overrun buffer when using getwd.
79094
79095 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79096
79097         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
79098         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
79099         getcwd (NULL, 0).
79100
79101 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79102
79103         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
79104         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
79105         spotted by Jim Meyering.
79106
79107 2001-09-03  Jim Meyering  <meyering@lucent.com>
79108
79109         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
79110         failure.
79111
79112 2001-09-02  Jim Meyering  <meyering@lucent.com>
79113
79114         * lib/error.c: Update from GNU libc.
79115
79116 2001-09-01  Jim Meyering  <meyering@lucent.com>
79117
79118         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
79119         Used by df.
79120
79121 2001-09-01  Jim Meyering  <meyering@lucent.com>
79122
79123         * lib/xreadlink.c: New file.
79124         * lib/xreadlink.h: New file.
79125         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
79126         xreadlink.h.
79127
79128         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
79129         doesn't conflict with sparc Solaris 7's definition in
79130         /usr/include/sys/int_types.h.
79131
79132         * lib/exclude.c: Use `""', not `<>' to #include non-system header
79133         files.
79134         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
79135         and strncasecmp as r-values.  Unixware didn't have declarations.
79136
79137 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79138
79139         * lib/xstrtol.h: Add copyright notice.
79140         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
79141         LONGINT_INVALID_SUFFIX_CHAR.
79142
79143 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79144
79145         * lib/xstrtol.c (strtoimax): New decl.
79146
79147 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79148
79149         * lib/xgetcwd.c: Don't include pathmax.h.
79150         Include stdlib.h and unistd.h if available.
79151         Include xalloc.h.
79152         (xmalloc, xstrdup, free): Remove decls.
79153         (xgetcwd): Don't assume sizes fit in unsigned.
79154         Check for overflow when computing sizes.
79155         Simplify reallocation code.
79156
79157 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79158
79159         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
79160         a directory's st_size can have an arbitrary value, so the old
79161         usage could waste an arbitrary amount of memory.  All uses
79162         changed.
79163         * lib/savedir.h: Update prototype.
79164
79165 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79166
79167         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
79168
79169         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
79170         old strtoimax.c.
79171
79172         Also, make the following further changes to make this file's
79173         configuration more similar to that of strtol.c:
79174         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
79175         (strtoumax, uintmax_t, strtoull, strtol): Remove.
79176         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
79177         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
79178         changed to signed values.
79179
79180         And make the following changes as well:
79181         Fix copyright notice, as 1999 was missing.
79182         (verify): New macro.
79183         (strtoimax): Check sizes at compile-time, not run-time.
79184         Prefer strtol to strtoll if both work.
79185         (main): Remove; it was not that useful and was a pain to maintain.
79186
79187         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
79188
79189 2001-08-31  Jim Meyering  <meyering@lucent.com>
79190
79191         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
79192         Use an initial, malloc'd, buffer of length 128 rather than
79193         a statically allocated one of length 1024.
79194
79195 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79196
79197         Simplify code, partly by assuming autoconf 2.52 semantics.
79198
79199         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
79200
79201         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
79202         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
79203         All uses removed.
79204         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
79205         Move AC_REQUIRE to next-to-top level, to avoid confusion.
79206         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
79207         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
79208         jm_AC_HEADER_INTTYPES_H.
79209         * m4/jm-macros.m4 (jm_MACROS): Likewise.
79210
79211         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
79212
79213         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
79214         Quote first arg of AC_DEFUN.
79215         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
79216         since they are needed to parse the include file even if we need
79217         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
79218         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
79219         but with opposite signedness.
79220
79221 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79222
79223         Merge 'exclude' changes from tar 1.13.22.
79224         This fixes one or two unlikely storage allocation overflow bugs,
79225         but doesn't change user-visible behavior otherwise.
79226
79227 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79228
79229         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
79230         (jm_PREREQ_EXCLUDE): New macro.
79231
79232 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79233
79234         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
79235         tm to be declared.
79236
79237 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79238
79239         * lib/hash.c: Remove '2001' from copyright notice.
79240
79241 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79242
79243         * lib/full-write.h: New file.
79244         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
79245         * lib/full-write.c: Correct credits, as cccp.c no longer
79246         exists and anyway it was so heavily changed from the old cccp
79247         code as to be unrecognizable.  Include full-write.h.
79248         (full_write): Return size_t, with short writes meaning failure.
79249         All callers changed.  This fixes a bug with large buffers
79250         on 64-bit hosts.
79251         * lib/utime.c: Include full-write.h.
79252
79253 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79254
79255         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
79256         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
79257         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
79258         Include if available.
79259         (<xalloc.h>): Include
79260         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
79261         (verify): New macro.  Use it to verify that EXCLUDE macros do not
79262         collide with FNM macros.
79263         (struct patopts): New struct.
79264         (struct exclude): Use it, as exclude patterns now come with options.
79265         (new_exclude): Support above changes.
79266         (new_exclude, add_exclude_file):
79267         Initial size must now be a power of two to simplify overflow checking.
79268         (free_exclude, fnmatch_no_wildcards): New function.
79269         (excluded_filename): No longer requires options arg, as the options
79270         are determined by add_exclude.  Now returns bool, not int.
79271         (excluded_filename, add_exclude):
79272         Add support for the fancy new exclusion options.
79273         (add_exclude, add_exclude_file): Now takes int options arg.
79274         Check for arithmetic overflow when computing sizes.
79275         (add_exclude_file): xrealloc might modify errno, so don't
79276         realloc until after errno might be used.
79277
79278         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
79279         New macros.
79280         (free_exclude): New decl.
79281         (add_exclude, add_exclude_file): Now takes int options arg.
79282         (excluded_filename): No longer requires options arg, as the options
79283         are determined by add_exclude.  Now returns bool, not int.
79284
79285 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79286
79287         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
79288
79289 2001-08-27  Jim Meyering  <meyering@lucent.com>
79290
79291         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
79292
79293         * lib/version-etc.c (N_): Remove definition.
79294         Revert most of last change.
79295         Instead, simply don't mark the `Copyright...' string for translation.
79296         Based on advice from Paul Eggert.
79297
79298         * lib/strtoxmax.c: Tweak comment.
79299
79300 2001-08-26  Jim Meyering  <meyering@lucent.com>
79301
79302         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
79303
79304         * m4/xstrtoimax.m4: New file.
79305         * m4/xstrtoumax.m4: Add comments explaining why we
79306         AC_REPLACE_FUNCS(strtol).
79307
79308 2001-08-26  Jim Meyering  <meyering@lucent.com>
79309
79310         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
79311         of copyright with `%s' so translators don't get an untranslated
79312         message in 2002.
79313         (COPYRIGHT_YEAR): Define.
79314         (version_etc): Use fprintf rather than fputs.
79315         Suggestion from Ulrich Drepper.
79316
79317         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
79318
79319         * lib/strtoll.c: New file, from GNU libc.
79320         * lib/xstrtoimax.c: New file.
79321
79322         * lib/xstrtol.h: Add xstrtoimax.
79323         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
79324         * lib/strtoimax.c: New file.  Likewise, but first define
79325         STRTOUXMAX_SIGNED.
79326
79327         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
79328         ...
79329         * lib/strtoxmax.c: ... then renamed to this.
79330
79331 2001-08-18  Paul Eggert  <eggert@twinsun.com>
79332
79333         * m4/inttypes.m4: Add AC_PREREQ(2.13).
79334         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
79335         (jm_AC_TYPE_INTMAX_T): New macro.
79336         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
79337
79338         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
79339
79340         * m4/longlong.m4: Renamed from ulonglong.m4.
79341         * m4/inttypes.m4: Renamed from inttypes_h.m4.
79342         * m4/uintmax_t.m4: Removed.
79343
79344 2001-08-13  Paul Eggert  <eggert@twinsun.com>
79345
79346         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
79347         Port to Solaris 8, where 'sed' requires a space after the 'r'
79348         command, and where sh dislikes "$/".  Clean up the spacing a bit.
79349         Redirect output to $tmp just once.
79350
79351 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
79352
79353         * lib/addext.c (<errno.h>): Include.
79354         (errno): Declare if not defined.
79355         (addext): Work correctly when pathconf returns -1 and leaves
79356         errno alone because there is no limit.  Also, work even if
79357         pathconf returns a value greater than SIZE_MAX.
79358
79359 2001-08-12  Jim Meyering  <meyering@lucent.com>
79360
79361         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
79362         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
79363         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
79364         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
79365         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
79366         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
79367         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
79368         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
79369         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
79370         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
79371         utime.m4, utimes.m4, xstrtoumax.m4:
79372         Quote the first argument in each use of AC_DEFUN.
79373
79374 2001-08-12  Jim Meyering  <meyering@lucent.com>
79375
79376         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
79377         Simply `return getcwd (NULL, 0);'.
79378         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
79379         Use 1300 as initial value for length, not PATH_MAX.
79380
79381         * lib/pathmax.h: Clean up cpp syntax.
79382
79383 2001-08-12  Jim Meyering  <meyering@lucent.com>
79384
79385         * lib/gettimeofday.c: New file.
79386         * lib/gtod.h: New file.
79387         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
79388
79389 2001-08-05  Jim Meyering  <meyering@lucent.com>
79390
79391         * m4/jm-macros.m4: Require autoconf-2.52.
79392
79393 2001-08-04  Jim Meyering  <meyering@lucent.com>
79394
79395         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
79396         stmt, to get in sync with glibc.
79397
79398 2001-08-03  Paul Eggert  <eggert@twinsun.com>
79399
79400         The following changes are from gettext 0.10.39 as maintained by
79401         Bruno Haible.
79402
79403         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
79404         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
79405         with inverted sense.  All uses changed.
79406
79407         * lib/mbswidth.c: Don't include <limits.h>.
79408         Include <stdlib.h> and <string.h> unconditionally.
79409         (iswcntrl, mbsinit, ISCNTRL): New macros.
79410         (mbsnwidth): Use K&R style function declarations.
79411         Don't bother checking for MB_LEN_MAX == 1, since the compiler
79412         can optimize it when MB_CUR_MAX == 1.
79413         The width of control characters is zero, not 1.
79414
79415 2001-08-03  Paul Eggert  <eggert@twinsun.com>
79416
79417         The following changes are from gettext 0.10.39 as maintained by
79418         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
79419
79420         * m4/codeset.m4: Upgrade to serial AM1.
79421         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
79422         all uses changed.  Quote first arg of AC_DEFUN.
79423         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
79424
79425         * m4/iconv.m4: Upgrade to serial AM2.
79426         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
79427         Add --with-libconv-prefix.
79428         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
79429         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
79430         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
79431         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
79432         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
79433
79434         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
79435         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
79436         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
79437         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
79438         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
79439         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
79440         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
79441         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
79442         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
79443
79444         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
79445         string.h any more.
79446
79447         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
79448         not the default value.
79449
79450         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
79451         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
79452         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
79453         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
79454         Also check for iswcntrl, used for wcwidth fallback.
79455         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
79456         to Autoconf 2.13.
79457
79458 2001-08-03  Jim Meyering  <meyering@lucent.com>
79459
79460         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
79461         as it was in the original.  Reported by Paul Eggert.
79462
79463 2001-07-16  Jim Meyering  <meyering@lucent.com>
79464
79465         * m4/gettimeofday.m4: New file.
79466         Prompted by a report from Bernhard Baehr.
79467
79468 2001-07-15  Jim Meyering  <meyering@lucent.com>
79469
79470         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
79471         stuff. Now it's in ../Makefile.cfg.
79472
79473 2001-07-15  Jim Meyering  <meyering@lucent.com>
79474
79475         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
79476         (BUILT_SOURCES): Add unlocked-io.h.
79477         (io_functions): Define.
79478         (unlocked-io.h): New rule.
79479         (DISTCLEANFILES): Add unlocked-io.h.
79480         (all-local): Depend on unlocked-io.h, to ensure it is created.
79481
79482         * lib/unlocked-io.hin: New file
79483
79484         * lib/regex.c: Update from glibc.
79485
79486 2001-07-05  Jim Meyering  <meyering@lucent.com>
79487
79488         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
79489         recommendation.
79490         (libfetish_a_SOURCES): Put all .h files here instead.
79491         Remove a thus-exposed (better checks in automake) duplicate and
79492         two unnecessary .h files.
79493
79494 2001-07-04  Jim Meyering  <meyering@lucent.com>
79495
79496         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
79497         that generates jm-glibc-io.m4 so that it doesn't trigger any make
79498         distcheck failure.
79499
79500 2001-07-02  Jim Meyering  <meyering@lucent.com>
79501
79502         The following changes were prompted by suggestions from Bruno Haible.
79503
79504         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
79505         is now generated.
79506         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
79507         definition of EXTRA_DIST.
79508         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
79509         ensure that the generated file is created/updated whenever the list
79510         of $(unlocked_functions) is changed.
79511         (jm-glibc-io.m4): New rule.
79512         (unlocked-io.h): New rule -- currently unused.
79513
79514 2001-06-24  Jim Meyering  <meyering@lucent.com>
79515
79516         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
79517         unmatched right bracket, rather than kludging it with an extra,
79518         falsely-matching quote in a comment.  Patch by Akim Demaille.
79519
79520 2001-06-11  Jim Meyering  <meyering@lucent.com>
79521
79522         * lib/regex.c: Update from GNU libc.
79523
79524 2001-05-27  Jim Meyering  <meyering@lucent.com>
79525
79526         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
79527         Check for ut_type in struct utmp.
79528
79529 2001-05-27  Jim Meyering  <meyering@lucent.com>
79530
79531         * lib/readutmp.h (UT_TYPE): Define.
79532
79533 2001-05-24  Jim Meyering  <meyering@lucent.com>
79534
79535         * lib/argmatch.c: Include "quote.h".
79536         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
79537         quote function.  Reported by Göran Uddeborg.
79538
79539 2001-05-22  Jim Meyering  <meyering@lucent.com>
79540
79541         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
79542         now that we use the package-supplied version unconditionally.
79543         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
79544
79545 2001-05-21  Jim Meyering  <meyering@lucent.com>
79546
79547         * m4/regex.m4: Change a couple backticks to single quotes to avoid
79548         shell syntax errors.
79549
79550 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
79551
79552         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
79553
79554 2001-05-20  Paul Eggert  <eggert@twinsun.com>
79555
79556         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
79557         Don't bother to check library strftime, since
79558         we'll be using our own my_strftime function anyway.
79559         Define my_strftime instead of strftime.
79560
79561 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
79562
79563         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
79564         which is not yet declared.
79565
79566 2001-05-15  Jim Meyering  <meyering@lucent.com>
79567
79568         * m4/regex.m4: Use proper quoting so brackets appear in the test
79569         program.
79570         Reported by, and with help from, Bruno Haible.
79571
79572 2001-05-13  Jim Meyering  <meyering@lucent.com>
79573
79574         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
79575         undefined.
79576
79577 2001-05-11  Paul Eggert  <eggert@twinsun.com>
79578
79579         dirname code cleanup.  base_name now behaves more compatibly
79580         with POSIX basename when given file names that have trailing
79581         slashes, and similarly for dir_name.  Add new primitives
79582         base_len and dir_len.  Put the directory-name-related decls
79583         into dirname.h.
79584
79585         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
79586         * lib/backupfile.c (base_name): Likewise.
79587         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
79588         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
79589         * lib/makepath.c (strip_trailing_slashes): Likewise.
79590         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
79591         ISSLASH): Likewise.
79592         * lib/rename.c (strip_trailing_slashes): Likewise.
79593         * lib/same.c (base_name): Likewise.
79594         * lib/stripslash.c (ISSLASH): Likewise.
79595
79596         * lib/addext.c: Include <dirname.h> after size_t is defined.
79597         * lib/backupfile.c: Likewise.
79598
79599         * lib/addext.c (addext): Use base_len to trim redundant
79600         trailing slashes instead of doing it ourselves.
79601         But do not trim the last slash if it is not redundant.
79602
79603         * lib/backupfile.c (find_backup_file_name,
79604         max_backup_version): Use base_len instead of rolling it ourselves.
79605         Handle the case of "" and (on DOS) "C:" correctly.
79606
79607         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
79608         needed. Include <string.h>, <dirname.h>.
79609         (base_name): Allow file names ending in slashes, other than names
79610         that are all slashes.  In this case, return the basename followed
79611         by the slashes.  This is more general, and can be used in places
79612         where the original base_name purposely had an assertion failure.
79613         (base_len): New function.
79614
79615         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
79616         Do not include <assert.h>; no longer needed.
79617         Include xalloc.h.
79618         (memrchr): Remove decl.
79619         (dir_name_r): Remove.
79620         (dir_len): Renamed from dirlen.  All callers changed.
79621         Rewrite in terms of base_name, for simplicity and consistency.
79622         (dir_name): Never return NULL.  All callers changed.
79623         Do not include <stdlib.h> in test program; no longer needed.
79624         return 0; is fine for test program.
79625
79626         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
79627         New macros.
79628         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
79629
79630         * lib/path-concat.c (path_concat): Use base_len to compute
79631         base length, not strlen; this means we cannot rely on memcpy
79632         to null-terminate.
79633
79634         * lib/same.c (STREQ): Remove.
79635         (same_name): Handle the case where the basename ends in trailing '/'.
79636
79637         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
79638         a slash was stripped.  Do not strip the last slash after a
79639         file system prefix.
79640
79641 2001-05-11  Paul Eggert  <eggert@twinsun.com>
79642
79643         * lib/Makefile.am (libfetish_a_SOURCES):
79644         Add strftime.c, since we now compile it on all hosts.
79645
79646         * lib/strftime.c (my_strftime):
79647         Define to nstrftime if emacs, but only if my_strftime is not defined.
79648         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
79649         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
79650         Add one more extra argument: a nanoseconds value.
79651         All uses changed.
79652         (ns): New macro.
79653         (my_strftime function): Add %N format.
79654         (emacs_strftimeu): Renamed from emacs_strftime,
79655         with extra ut argument.
79656
79657 2001-05-09  Paul Eggert  <eggert@twinsun.com>
79658
79659         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
79660
79661 2001-04-21  Jim Meyering  <meyering@lucent.com>
79662
79663         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
79664         doesn't interfere.
79665
79666 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
79667
79668         * m4/ftruncate.m4: Check for chsize.
79669         Link with ftruncate.o unconditionally if ftruncate is missing.
79670         This was required when cross-compiling to i586-mingw32msvc.
79671
79672 2001-04-08  Jim Meyering  <meyering@lucent.com>
79673
79674         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
79675         recomputed; that's necessary when the offset spans a DST transition.
79676         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
79677
79678 2001-04-02  Jim Meyering  <meyering@lucent.com>
79679
79680         * lib/regex.h, regex.c: Update from GNU libc.
79681
79682 2001-03-24  Jim Meyering  <meyering@lucent.com>
79683
79684         * m4/jm-macros.m4: Require autoconf-2.49d.
79685
79686 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
79687
79688         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
79689
79690 2001-03-19  Paul Eggert  <eggert@twinsun.com>
79691
79692         * lib/version-etc.c (version_etc_copyright): Update to 2001.
79693
79694 2001-03-17  Jim Meyering  <meyering@lucent.com>
79695
79696         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
79697         now that the version in autoconf is equivalent.
79698         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
79699
79700         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
79701         Suggestion from Akim Demaille.
79702
79703         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
79704         (jm_PREREQ_TEMPNAME): New function.
79705
79706 2001-03-16  Paul Eggert  <eggert@twinsun.com>
79707
79708         * lib/tempname.c (uint64_t): Define to uintmax_t if
79709         not defined, and if UINT64_MAX is not defined.
79710         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
79711         Reported by John David Anglin.
79712
79713 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
79714
79715         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
79716         resolve alias if codeset is empty.
79717         * lib/config.charset (BeOS): Use wildcard syntax.
79718
79719 2001-03-13  Jim Meyering  <meyering@lucent.com>
79720
79721         * lib/path-concat.c (path_concat)
79722         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
79723         concatenating e.g., `C:' and `foo'.
79724         From Bruno Haible.
79725
79726 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
79727
79728         * lib/localcharset.c (locale_charset): Don't use
79729         setlocale(LC_CTYPE,NULL). Don't return NULL.
79730         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
79731
79732 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
79733
79734         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
79735         support for DOS/DJGPP.
79736
79737 2001-03-01  Paul Eggert  <eggert@twinsun.com>
79738
79739         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
79740         lacks mkstemp.  Compile our own tempname.c if we compile our own
79741         mkstemp.c, as mkstemp relies on tempname.
79742
79743 2001-03-01  Jim Meyering  <meyering@lucent.com>
79744
79745         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
79746         AH_VERBATIM really does output its argument verbatim.
79747
79748 2001-02-28  Paul Eggert  <eggert@twinsun.com>
79749
79750         * lib/Makefile.am (libfetish_a_SOURCES):
79751         Add dup-safer.c, fopen-safer.c.
79752         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
79753
79754         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
79755         * lib/unistd-safer.h: New files.
79756
79757 2001-02-25  Paul Eggert  <eggert@twinsun.com>
79758
79759         The mkstemp replacement is taken from glibc 2.2.2, with some
79760         portability fixes for use outside glibc, as follows:
79761
79762         * lib/tempname.c (struct_stat64): New macro.
79763         (direxists, __gen_tempname): Use it.
79764         This avoids a portability problem with Solaris 8.
79765
79766         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
79767         (<stddef.h>, <stdint.h>, <string.h>):
79768         Include only if STDC_HEADERS || _LIBC.
79769         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
79770         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
79771         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
79772         (__set_errno): Define this macro if <errno.h> doesn't.
79773         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
79774         Define these macros if <stdio.h> doesn't.
79775         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
79776         Define these macros if <sys/stat.h>
79777         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
79778         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
79779         __xstat64): Define if not _LIBC.
79780         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
79781         (__gen_tempname): Invoke gettimeofday only if
79782         HAVE_GETTIMEOFDAY || _LIBC;
79783         otherwise, fall back on plain "time".
79784         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
79785
79786         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
79787
79788         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
79789
79790 2001-02-18  Paul Eggert  <eggert@twinsun.com>
79791
79792         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
79793
79794 2001-02-17  Paul Eggert  <eggert@twinsun.com>
79795
79796         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
79797         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
79798         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
79799         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
79800
79801 2001-02-17  Paul Eggert  <eggert@twinsun.com>
79802
79803         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
79804         Remove workaround macros for hosts that have mbrtowc but not
79805         mbstate_t, as we now insist on proper declarations for both
79806         before using mbrtowc.
79807
79808 2001-02-17  Jim Meyering  <meyering@lucent.com>
79809
79810         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
79811         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
79812         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
79813         UnixWare 7.1.1.
79814
79815         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
79816         rather than AC_CACHE_VAL.
79817
79818 2001-02-17  Jim Meyering  <meyering@lucent.com>
79819
79820         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
79821         around included file name.
79822
79823         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
79824
79825         * lib/strftime.c: Update from GNU libc (the only changes were to
79826         comments).
79827
79828 2001-02-17  Jim Meyering  <meyering@lucent.com>
79829
79830         * lib/regex.c: Update from libc.
79831
79832 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
79833
79834         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
79835         clash.
79836
79837 2001-02-16  Paul Eggert  <eggert@twinsun.com>
79838
79839         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
79840         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
79841         Reported by Mark Hounschell via Paul Eggert.
79842
79843 2001-02-07  Jim Meyering  <meyering@lucent.com>
79844
79845         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
79846
79847 2001-02-05  Jim Meyering  <meyering@lucent.com>
79848
79849         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
79850         it includes the patch required for `large file' support with at least
79851         HP-UX's 10.20 /bin/cc.
79852
79853 2001-02-03  Jim Meyering  <meyering@lucent.com>
79854
79855         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
79856         AS_IF, now that it works once again (mysteriously).
79857         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
79858
79859 2001-01-30  Jim Meyering  <meyering@lucent.com>
79860
79861         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
79862         * m4/chown.m4: Rename conftestchown to conftest.chown.
79863         * m4/rename.m4: s/conftestdir/conftest.d1/ and
79864         s/conftestdir2/conftest.d2/.
79865         * m4/utimes.m4: s/conftestdata/conftest.data/
79866         Inspired by Pavel Roskin's change in autoconf.
79867
79868 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
79869
79870         * lib/config.charset: Update for FreeBSD 4.2.
79871
79872 2001-01-27  Jim Meyering  <meyering@lucent.com>
79873
79874         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
79875         a use of AS_IF.
79876         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
79877
79878 2001-01-26  Jim Meyering  <meyering@lucent.com>
79879
79880         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
79881         quotearg.c includes it.
79882
79883 2001-01-26  Jim Meyering  <meyering@lucent.com>
79884
79885         * lib/quotearg.c: Include stddef.h.
79886         * lib/quote.c: Include stddef.h.
79887         Reported by Axel Kittenberger.
79888
79889         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
79890         line in double quotes so that it evokes a better diagnostic.
79891         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
79892         Reported by Axel Kittenberger.
79893
79894 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
79895
79896         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
79897         as if it was a `charset'.
79898
79899 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
79900
79901         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
79902         has const.
79903
79904 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
79905
79906         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
79907         to avoid a warning.  Add back 'const' to inptr.
79908
79909 2001-01-20  Jim Meyering  <meyering@lucent.com>
79910
79911         Be sure that headers are checked before used in code compiled
79912         for the type checks.
79913         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
79914         In place of that, invoke jm_CHECK_ALL_TYPES.
79915         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
79916         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
79917         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
79918         The check for ssize_t was mistakenly run before the test for unistd.h.
79919
79920         The configure-time check for stdbool.h was missing.
79921         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
79922         (jm_PREREQ_HASH): New function.
79923
79924 2001-01-17  Jim Meyering  <meyering@lucent.com>
79925
79926         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
79927         for autoconf-2.49c.
79928         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
79929
79930 2001-01-16  Jim Meyering  <meyering@lucent.com>
79931
79932         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
79933         From Bruno Haible.
79934
79935 2001-01-14  Jim Meyering  <meyering@lucent.com>
79936
79937         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
79938         foo and bar.  Create conftestdir/ in the script, not in the C code.
79939         Remove directories in the script, not in the C code.
79940         Remove conftestdir{,2} before trying to create the directory.
79941         Make the entire configure script fail if the mkdir fails.
79942
79943 2001-01-14  Jim Meyering  <meyering@lucent.com>
79944
79945         * lib/rename.c: New file.  From Volker Borchert.
79946         Include stdlib.h, string.h or strings.h, and xalloc.h.
79947         Use strip_trailing_slashes rather than open-coding it.
79948
79949 2001-01-03  Paul Eggert  <eggert@twinsun.com>
79950
79951         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
79952
79953 2001-01-03  Jim Meyering  <meyering@lucent.com>
79954
79955         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
79956         of local `inptr' to avoid warning with some system declarations of
79957         iconv.
79958
79959 2001-01-02  Volker Borchert  <bt@teknon.de>
79960
79961         * m4/rename.m4: New file.
79962         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
79963
79964 2001-01-01  Jim Meyering  <meyering@lucent.com>
79965
79966         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
79967         even on systems with utmpx.h.  It's necessary for the declaration of
79968         utmp's ut_user member.  Reported by Andreas Jaeger.
79969
79970         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
79971         available. They are required for the declarations of getgrgid and
79972         getpwuid resp.
79973         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
79974         Reported by Andreas Jaeger.
79975
79976 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
79977
79978         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
79979         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
79980         so `make install' also works in VPATH builds.
79981
79982 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
79983
79984         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
79985         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
79986         can be used in subdirectories.
79987
79988 2000-12-29  Paul Eggert  <eggert@twinsun.com>
79989
79990         * lib/modechange.c: Do not assume that mode_t uses the
79991         traditional octal encoding.  E.g. "chmod 1 FOO" should set
79992         the other-execute bit of FOO even if S_IXOTH != 1.
79993
79994         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
79995         WOTH, XOTH, ALLM): New macros.
79996         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
79997          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
79998         Use them.
79999         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
80000         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
80001         (mode_compile):
80002         No need to use uintmax_t; unsigned long is long enough.
80003         Don't bother to get suffix since we don't use it.
80004
80005 2000-12-26  Jim Meyering  <meyering@lucent.com>
80006
80007         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
80008         better with autoheader.
80009
80010 2000-12-24  Jim Meyering  <meyering@lucent.com>
80011
80012         * lib/hash.c (is_prime): Return explicit boolean values.
80013         (hash_get_first): Return NULL to appease Irix5.6's 89.
80014         Reported by Nelson Beebe.
80015
80016 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
80017
80018         * lib/localcharset.c (locale_charset): Add support for Win32.
80019
80020 2000-12-18  Paul Eggert  <eggert@twinsun.com>
80021
80022         * lib/physmem.h, lib/physmem.c: New files.
80023
80024         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
80025         (noinst_HEADERS): Add physmem.h.
80026
80027         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
80028         't' for compatibility with Solaris 8 sort.
80029
80030 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
80031
80032         * lib/config.charset: Add support for BeOS.
80033
80034 2000-12-17  Jim Meyering  <meyering@lucent.com>
80035
80036         * m4/dos.m4 (jm_AC_DOS): New file and macro.
80037         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
80038
80039 2000-12-16  Jim Meyering  <meyering@lucent.com>
80040
80041         This bug had a serious impact on chown: `chown N:M FILE' (for integer
80042         N and M) would have treated it like `chown N:N FILE'.
80043
80044         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
80045
80046 2000-12-16  Jim Meyering  <meyering@lucent.com>
80047
80048         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
80049         SHELLS_FILE to a file name that's useful on djgpp systems.
80050         Include stdlib.h.
80051         (ADDITIONAL_DEFAULT_SHELLS): Define.
80052         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
80053         Based mostly on a patch from Prashant TR.
80054
80055 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
80056
80057         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
80058         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
80059         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
80060
80061 2000-12-08  Andreas Schwab  <schwab@suse.de>
80062
80063         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
80064         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
80065
80066 2000-12-07  Jim Meyering  <meyering@lucent.com>
80067
80068         * lib/stripslash.c (ISSLASH): Define.
80069         (strip_trailing_slashes): Use ISSLASH rather than comparing against
80070         `/'.
80071         From Prashant TR.
80072
80073         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
80074         (dir_name_r): Declare this function as static.
80075         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
80076         manifest itself on a name containing a mix of slashes and
80077         backslashes.
80078         Make this function work with names starting with a DOS-style
80079         drive letter and colon prefix.
80080         (dir_name): Append `.' if necessary.
80081         Based mostly on patches from Prashant TR and Eli Zaretskii.
80082
80083         * lib/dirname.h (dir_name_r): Remove prototype.
80084
80085 2000-12-06  Paul Eggert  <eggert@twinsun.com>
80086
80087         * m4/off_t-format.m4: Remove this file.
80088         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
80089
80090 2000-12-06  Jim Meyering  <meyering@lucent.com>
80091
80092         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
80093         replacement strtoull, we may well need the replacement strtoul, too.
80094         Check for declarations of strtoul and strtoull.
80095         Check for strtol.  Mainly as a cue to cause automake to include
80096         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
80097         Check for limits.h -- strtol.c needs it.
80098
80099 2000-12-05  Jim Meyering  <meyering@lucent.com>
80100
80101         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
80102
80103 2000-12-04  Jim Meyering  <meyering@lucent.com>
80104
80105         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
80106         Also include memory.h, stdlib.h, unistd.h if appropriate.
80107         Reported by Andreas Jaeger (conflicting declaration of malloc).
80108
80109 2000-12-02  Jim Meyering  <meyering@lucent.com>
80110
80111         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
80112         * m4/jm-macros.m4 (jm_MACROS): require it.
80113
80114 2000-12-02  Jim Meyering  <meyering@lucent.com>
80115
80116         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
80117
80118 2000-12-01  Paul Eggert  <eggert@twinsun.com>
80119
80120         * lib/memrchr.c: Include <config.h> before any system include file.
80121
80122 2000-11-30  Jim Meyering  <meyering@lucent.com>
80123
80124         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
80125
80126 2000-11-30  Jim Meyering  <meyering@lucent.com>
80127
80128         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
80129
80130 2000-11-29  Paul Eggert  <eggert@twinsun.com>
80131
80132         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
80133
80134 2000-11-26  Jim Meyering  <meyering@lucent.com>
80135
80136         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
80137
80138 2000-11-22  Paul Eggert  <eggert@twinsun.com>
80139
80140         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
80141         size of (size_t) -1; it's not portable.
80142
80143 2000-11-17  Jim Meyering  <meyering@lucent.com>
80144
80145         * lib/strstr.c: Update from GNU libc.
80146
80147 2000-11-17  Akim Demaille  <akim@epita.fr>
80148
80149         * lib/obstack.h: Formatting changes.
80150         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
80151         prevent type checking.
80152         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
80153         cast the value to (void *): assigning a `foo *' to a `void *'
80154         variable is valid.
80155         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
80156
80157 2000-11-16  Jim Meyering  <meyering@lucent.com>
80158
80159         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
80160
80161 2000-11-11  Jim Meyering  <meyering@lucent.com>
80162
80163         * lib/error.c: Add a couple #includes, merging from GNU libc version.
80164
80165 2000-11-10  Jim Meyering  <meyering@lucent.com>
80166
80167         * lib/obstack.h: Update from GNU libc.
80168         * lib/obstack.c: Likewise.
80169
80170 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
80171
80172         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
80173
80174 2000-11-06  Paul Eggert  <eggert@twinsun.com>
80175
80176         * lib/getusershell.c (setusershell): Use rewind rather than
80177         fseek/fseeko, to avoid configuration hassles with fseeko.
80178         Don't bother opening SHELLS_FILE if shellstream is NULL;
80179         it's not necessary.
80180
80181 2000-11-05  Jim Meyering  <meyering@lucent.com>
80182
80183         * lib/makepath.h (make_dir): Declare.
80184         * lib/makepath.c (make_dir): Remove `static' attribute.
80185         Tweak a comment.
80186
80187 2000-11-04  Jim Meyering  <meyering@lucent.com>
80188
80189         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
80190
80191 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
80192
80193         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
80194         last one in a bucket, advance to the next bucket.
80195
80196 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
80197
80198         * lib/fnmatch.c: Do not comment out all the code if we are using
80199         the GNU C library, because in some cases we are replacing buggy
80200         code in the GNU C library itself.
80201
80202 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
80203
80204         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
80205         (regex_compile): Catch bogus \(\1\).
80206
80207 2000-10-30  Paul Eggert  <eggert@twinsun.com>
80208
80209         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
80210         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
80211         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
80212
80213 2000-10-30  Paul Eggert  <eggert@twinsun.com>
80214
80215         * lib/error.h, getline.h, modechange.h:
80216         Remove "2000" from Copyright line, as the file hasn't been
80217         changed this year other than in the copyright notice.
80218
80219         * lib/xalloc.h: Add "2000" to Copyright line, as this file
80220         was changed this year.
80221
80222 2000-10-29  Jim Meyering  <meyering@lucent.com>
80223
80224         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
80225         renaming.
80226         * m4/ls-mntd-fs.m4: Likewise
80227
80228 2000-10-29  Jim Meyering  <meyering@lucent.com>
80229
80230         * lib/xstat.in: Fix grammar in comment.
80231
80232 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
80233
80234         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
80235         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
80236         doesn't define __restrict_arr.
80237
80238 2000-10-28  Jim Meyering  <meyering@lucent.com>
80239
80240         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
80241         (jm_PREREQ_MEMCHR): New function.
80242
80243 2000-10-28  Jim Meyering  <meyering@lucent.com>
80244
80245         * lib/memchr.c: Update from libc.
80246         Adjust for portability:
80247         [HAVE_STDLIB_H]: Include stdlib.h.
80248         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
80249         Undef __memchr, too.
80250         [!weak_alias]: Define __memchr to memchr.
80251
80252         * lib/regex.c: Update from libc.
80253         * lib/regex.h: Likewise.
80254         * lib/getopt1.c: Likewise.
80255         * lib/memcmp.c: Likewise.
80256
80257         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
80258         Avoid using fseek, when possible -- it's broken by design.
80259         Patch by Ulrich Drepper.
80260
80261 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
80262
80263         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
80264         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
80265         Giving in to popular pressure to shut up the compiler with casts.
80266
80267 2000-10-26  Jim Meyering  <meyering@lucent.com>
80268
80269         * lib/strftime.c: Update from libc.
80270
80271 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
80272
80273         * regex.c: More `unsigned char' -> `re_char' changes.
80274         Also change several `int' into `re_wchar_t'.
80275         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
80276         (PUSH_FAILURE_POINTER): Don't cast any more.
80277         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
80278         We want GCC to complain, since this piece of code makes
80279         re_match non-reentrant, which *should* be fixed.
80280         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
80281         (EXTEND_BUFFER): Use RETALLOC.
80282         (SET_LIST_BIT): Don't cast.
80283         (re_wchar_t): New type.
80284         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
80285         that those two functions will always properly return.
80286         (IMMEDIATE_QUIT_CHECK): Cast to void.
80287         (analyse_first): Use recursion rather than an explicit stack.
80288         (re_compile_fastmap): Can't fail anymore.
80289         (re_search_2): Don't check re_compile_fastmap for failure.
80290         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
80291         Now also sets the new value (passed in a new argument).
80292         (re_match_2_internal): Use it.
80293         Also, use a new var `reg' of type size_t when looping through regs
80294         rather than reuse the inappropriate `mcnt'.
80295
80296 2000-10-25  Jim Meyering  <meyering@lucent.com>
80297
80298         * lib/obstack.c: Update from libc.
80299
80300 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
80301
80302         * regex.c (regex_compile): Change the way of handling a range from
80303         a char less than 256 to a char not less than 256.
80304
80305 2000-10-24  Andrew Innes  <andrewi@gnu.org>
80306
80307         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
80308         NT-Emacs only.
80309         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
80310         so that re_search functions only quit when callers expect them to.
80311
80312 2000-10-23  Jim Meyering  <meyering@lucent.com>
80313
80314         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
80315         wrong.  That set_locale call must not have any side effects.
80316         From Paul Eggert.
80317
80318 2000-10-22  Jim Meyering  <meyering@lucent.com>
80319
80320         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
80321         [CYCLIC]: Remove now-unused definition.
80322
80323         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
80324         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
80325         Suggestion from Ulrich Drepper.
80326
80327 2000-10-21  Jim Meyering  <meyering@lucent.com>
80328
80329         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
80330         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
80331         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
80332
80333 2000-10-21  Jim Meyering  <meyering@lucent.com>
80334
80335         * lib/dirname.c (memrchr): Declare if necessary.
80336         (dir_name): Remove the restriction that there be no
80337         trailing slashes.  Now, this code skips past them, effectively
80338         ignoring them.
80339         [TEST_DIRNAME] (main): New unit tests.
80340
80341         * lib/memrchr.c: New file from GNU libc.
80342         Undef __memrchr, too.
80343         [!weak_alias]: Define __memrchr to memrchr.
80344         Guard weak_alias use with `#ifdef weak_alias'.
80345
80346 2000-10-21  Jim Meyering  <meyering@lucent.com>
80347
80348         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
80349         (dir_name): Use dir_name_r.
80350         * lib/dirname.h (dir_name_r): Declare it.
80351
80352 2000-10-17  Jim Meyering  <meyering@lucent.com>
80353
80354         * lib/quote.h (PARAMS): Define and use.
80355         Reported by Akim Demaille.
80356
80357         * lib/getopt.c: Update from libc.
80358
80359 2000-10-16  Jim Meyering  <meyering@lucent.com>
80360
80361         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
80362         setlocale.
80363         From Jan Fedak.
80364
80365 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
80366
80367         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
80368
80369 2000-09-25  Jim Meyering  <meyering@lucent.com>
80370
80371         * lib/md5.h (rol): Define (from GnuPG).
80372
80373         * lib/sha.c: Give credit (GnuPG) where due.
80374         (M): Use rol rather than open-coding it.
80375         Add a FIXME comment.
80376
80377 2000-09-21  Jim Meyering  <meyering@lucent.com>
80378
80379         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
80380         Reported by Michael Stone.
80381
80382 2000-09-20  Jim Meyering  <meyering@lucent.com>
80383
80384         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
80385         (noinst_HEADERS): Add sha.h.
80386         Based on code from Scott G. Miller and from GnuPG.
80387
80388 2000-09-18  Jim Meyering  <meyering@lucent.com>
80389
80390         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
80391         LIBS. Otherwise, everyone ends up linking with -lelf for some
80392         configurations.
80393         Reported by Mike Stone.
80394
80395 2000-09-15  Jim Meyering  <meyering@lucent.com>
80396
80397         * lib/regex.c: Update from libc.
80398
80399 2000-09-10  Jim Meyering  <meyering@lucent.com>
80400
80401         * lib/getopt.c (_getopt_internal): Update from glibc.
80402
80403 2000-09-09  Jim Meyering  <meyering@lucent.com>
80404
80405         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
80406         think it should be used as a general replacement for isascii.
80407         * lib/fnmatch.c: Likewise.
80408         * lib/mbswidth.c: Likewise
80409         * lib/regex.c: Likewise.
80410
80411         Don't use atoi.
80412         * lib/userspec.c: Include sys/param.h and limits.h.
80413         Include xstrtol.h.
80414         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
80415         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
80416         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
80417         UID, GID.  Check range.
80418
80419 2000-09-06  Jim Meyering  <meyering@lucent.com>
80420
80421         * lib/getopt.c (_getopt_internal): Update from glibc.
80422
80423 2000-08-30  Jim Meyering  <meyering@lucent.com>
80424
80425         * lib/strftime.c: Merge in changes from GNU libc.
80426
80427 2000-08-26  Jim Meyering  <meyering@lucent.com>
80428
80429         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
80430         * m4/fpending.m4: New file.
80431
80432 2000-08-26  Jim Meyering  <meyering@lucent.com>
80433
80434         * lib/closeout.c: Include "__fpending.h".
80435         (close_stdout_status): Return right away if there's nothing to flush.
80436
80437         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
80438         * lib/__fpending.c: New file.
80439         * lib/__fpending.h: New file.
80440
80441 2000-08-20  Jim Meyering  <meyering@lucent.com>
80442
80443         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
80444         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
80445         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
80446
80447 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
80448
80449         Improve fileutils installation on systems where running
80450         programs (like install) can't be unlinked.
80451         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
80452         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
80453
80454 2000-08-07  Paul Eggert  <eggert@twinsun.com>
80455
80456         Standardize on "memory exhausted" instead of "Memory exhausted"
80457         or "virtual memory exhausted".
80458         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
80459         "virtual memory exhausted".
80460         * lib/same.c (same_name): Invoke xalloc_die instead of printing
80461         our own message.
80462         * lib/userspec.c (parse_user_spec): Likewise.
80463         * lib/bumpalloc.h: comment fix
80464         * lib/same.c, userspec.c: Include xalloc.h.
80465
80466         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
80467         not char *const and pointing to a constant array.
80468         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
80469         (xrealloc): Comment fix.
80470
80471         * lib/userspec.c (parse_user_spec):
80472         Don't translate a message until just before returning,
80473         to avoid unnecessary translation.
80474
80475 2000-08-07  Jim Meyering  <meyering@lucent.com>
80476
80477         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
80478         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
80479         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
80480         getgroups.c, gethostname.c, getopt.h, group-member.c,
80481         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
80482         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
80483         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
80484         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
80485         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
80486         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
80487         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
80488         yesno.c: Back out Copyright date changes for each file with no change
80489         this year.  This eases coordination with other programs using the same
80490         source code modules.  From Paul Eggert.
80491
80492 2000-08-06  Paul Eggert  <eggert@twinsun.com>
80493
80494         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
80495         not char, for compatibility with glibc 2.1.3 strftime.c.
80496
80497 2000-08-03  Greg McGary  <greg@mcgary.org>
80498
80499         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
80500         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
80501         (EXTEND_BUFFER): Use them.
80502
80503 2000-08-01  Jim Meyering  <meyering@lucent.com>
80504
80505         * lib/dirname.c (ISSLASH): Define.
80506         (BACKSLASH_IS_PATH_SEPARATOR): Define.
80507         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
80508         both `\' and `/' may be use as path separators.
80509         Based on a patch from Prashant TR.
80510
80511 2000-07-31  Paul Eggert  <eggert@twinsun.com>
80512
80513         * lib/quotearg.c (quotearg_n_options): Don't make the initial
80514         slot vector a constant, since it might get modified.
80515
80516 2000-07-31  Jim Meyering  <meyering@lucent.com>
80517
80518         * lib/xmalloc.c: Use `virtual memory exhausted', not
80519         `Memory exhausted'.
80520         * lib/obstack.c (print_and_abort): Likewise.
80521
80522 2000-07-30  Paul Eggert  <eggert@twinsun.com>
80523
80524         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
80525         buffer, so that the caller can always quote one small
80526         component of a "memory exhausted" message in slot 0.
80527         From a suggestion by Jim Meyering.
80528
80529 2000-07-30  Jim Meyering  <meyering@lucent.com>
80530
80531         * lib/makepath.c (make_path): Quote the other instance, too.
80532
80533         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
80534         (STATIC_BUF_SIZE): Define.
80535         (quotearg_n_options): Use only statically allocated storage when
80536         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
80537         than STATIC_BUF_SIZE.
80538
80539 2000-07-29  Jim Meyering  <meyering@lucent.com>
80540
80541         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
80542         * lib/dirname.c (dir_name): Likewise.
80543
80544         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
80545         `/'.
80546
80547         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
80548         (dir_name): Assert that there are no trailing slashes.
80549
80550 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
80551
80552         * lib/mbswidth.h (mbswidth): Add a flags argument.
80553         (mbswidth): New declaration.
80554         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
80555         * lib/mbswidth.c (mbswidth): Add a flags argument.
80556         (mbsnwidth): New function.
80557
80558 2000-07-24  Jim Meyering  <meyering@lucent.com>
80559
80560         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
80561
80562 2000-07-23  Paul Eggert  <eggert@twinsun.com>
80563
80564         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
80565
80566 2000-07-23  Paul Eggert  <eggert@twinsun.com>
80567
80568         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
80569         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
80570         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
80571         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
80572         invoke multibyte primitives.
80573
80574 2000-07-23  Paul Eggert  <eggert@twinsun.com>
80575
80576         * lib/quotearg.c:
80577         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
80578         so that mbstate_t is always defined.
80579
80580         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
80581         be 1 in at least one GCC installation, and this configuration
80582         error is likely to be common.  Ignoring MB_LEN_MAX hurts
80583         performance on hosts that have mbrtowc but have only unibyte
80584         locales, but I assume these hosts are rare.
80585
80586 2000-07-23  Paul Eggert  <eggert@twinsun.com>
80587
80588         * lib/mbswidth.c (_XOPEN_SOURCE):
80589         Don't define; this causes problems on Solaris 7.
80590         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
80591
80592 2000-07-23  Jim Meyering  <meyering@lucent.com>
80593
80594         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
80595         too: getgrgid, getpwuid, getuid.
80596
80597 2000-07-23  Jim Meyering  <meyering@lucent.com>
80598
80599         * lib/basename.c (base_name): Add an assertion.
80600
80601 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
80602
80603         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
80604         shadow its mbsinit function.
80605
80606 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
80607
80608         * lib/mbswidth.h: New file.
80609         * lib/mbswidth.c: New file.
80610         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
80611         (noinst_HEADERS): Add mbswidth.h.
80612
80613 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
80614
80615         * lib/config.charset: Add support for FreeBSD. Improve support for
80616         HP-UX and IRIX 6.
80617
80618 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
80619
80620         * m4/mbswidth.m4: New file.
80621         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
80622
80623 2000-07-15  Jim Meyering  <meyering@lucent.com>
80624
80625         * lib/makepath.c: Include quote.h.
80626         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
80627         corresponding argument in a `quote (...)' call.
80628         Give better diagnostics.
80629
80630         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
80631         (noinst_HEADERS): Add quote.h.
80632
80633         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
80634         from tar's src/misc.c.
80635         * lib/quote.h: New file.  Prototypes for same.
80636
80637 2000-07-14  Paul Eggert  <eggert@twinsun.com>
80638
80639         From a suggestion by Bruno Haible.
80640         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
80641         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
80642         to decide whether to define the BeOS workaround macro;
80643         this adjusts to the change to AC_MBSTATE_T.
80644
80645 2000-07-14  Jim Meyering  <meyering@lucent.com>
80646
80647         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
80648         jm_AC_TYPE_UINTMAX_T.
80649
80650 2000-07-13  Paul Eggert  <eggert@twinsun.com>
80651
80652         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
80653
80654         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
80655         quotearg_buffer_restyled): Add support for
80656         clocale_quoting_style.  Undo previous change to
80657         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
80658         and "{RIGHT QUOTATION MARK}" msgids.
80659
80660 2000-07-10  Paul Eggert  <eggert@twinsun.com>
80661
80662         From a suggestion by Bruno Haible.
80663         * m4/mbstate_t.m4 (AC_MBSTATE_T):
80664         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
80665         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
80666         and mbstate_t, to a single-part test that simply defines mbstate_t.
80667         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
80668         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
80669
80670 2000-07-10  Jim Meyering  <meyering@lucent.com>
80671
80672         * m4/strerror_r.m4: Mirror the correction made in autoconf.
80673
80674         * m4/gnu-source.m4: Output to confdefs.h directly.
80675         Suggestion from Akim Demaille.
80676
80677 2000-07-09  Paul Eggert  <eggert@twinsun.com>
80678
80679         The old behavior of quoting `like this' doesn't look good with
80680         newer, ISO-style fonts.  See:
80681         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
80682
80683         Instead, quote "like this" by default.  Let the translator
80684         tailor the locale-specific quoting behavior by providing
80685         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
80686
80687         * lib/quotearg.c (N_): New macro.
80688         (gettext_default): New function.
80689         (quotearg_buffer_restyled): Use
80690         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
80691         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
80692
80693 2000-07-09  Jim Meyering  <meyering@lucent.com>
80694
80695         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
80696         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
80697
80698         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
80699         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
80700
80701 2000-07-09  Jim Meyering  <meyering@lucent.com>
80702
80703         * lib/Most files: Update copyright dates to include 2000.
80704
80705 2000-07-08  Jim Meyering  <meyering@lucent.com>
80706
80707         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
80708         if not defined.
80709         (xgethostname): Remove now-unnecessary #ifdef.
80710         Move declaration of `err' into loop where it's used.
80711
80712 2000-07-05  Paul Eggert  <eggert@twinsun.com>
80713         and Bruno Haible  <haible@clisp.cons.org>
80714
80715         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
80716         only if the test for an object-type mbstate_t fails.  This
80717         prevents us from mistakenly reporting that mbstate_t is a
80718         system object type after we "#define mbstate_t int" to work
80719         around its lack.
80720
80721 2000-07-05  Paul Eggert  <eggert@twinsun.com>
80722         and Bruno Haible  <haible@clisp.cons.org>
80723
80724         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
80725
80726 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
80727
80728         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
80729         to strerror_r.
80730         Include <ctype.h> for use of isalpha.
80731
80732 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
80733
80734         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
80735         by allocating a larger buffer. Test the gethostname return value for
80736         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
80737         returns an error and ENAMETOOLONG isn't defined.
80738
80739 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
80740
80741         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
80742         dimension.
80743
80744 2000-07-04  Jim Meyering  <meyering@lucent.com>
80745
80746         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
80747         of the deprecated AC_CHECKING.
80748
80749 2000-07-04  Jim Meyering  <meyering@lucent.com>
80750
80751         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
80752         Reported by Bruno Haible.
80753
80754 2000-07-04  Jim Meyering  <meyering@lucent.com>
80755
80756         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
80757         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
80758         lacks mbrtowc.
80759
80760 2000-07-03  Paul Eggert  <eggert@twinsun.com>
80761
80762         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
80763         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
80764
80765 2000-07-03  Paul Eggert  <eggert@twinsun.com>
80766         and Bruno Haible  <haible@clisp.cons.org>
80767
80768         * lib/quotearg.c (mbrtowc):
80769         Assign to *pwc, and return 1 only if result is nonzero.
80770         (iswprint): Use ISPRINT when substituting our own mbrtowc.
80771
80772 2000-07-03  Jim Meyering  <meyering@lucent.com>
80773
80774         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
80775
80776 2000-07-03  Jim Meyering  <meyering@lucent.com>
80777
80778         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
80779         This is necessary to get a definition of e.g., UTMP_FILE on
80780         HP-UX 10.20.
80781         From Bob Proulx.
80782
80783 2000-07-02  Jim Meyering  <meyering@lucent.com>
80784
80785         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
80786
80787         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
80788         AC_LIBOBJ(function_name).
80789         * m4/chown.m4: Likewise.
80790         * m4/fnmatch.m4: Likewise.
80791         * m4/ftruncate.m4: Likewise.
80792         * m4/getgroups.m4: Likewise.
80793         * m4/getline.m4: Likewise.
80794         * m4/group-member.m4: Likewise.
80795         * m4/jm-macros.m4: Likewise.
80796         * m4/lstat.m4: Likewise.
80797         * m4/malloc.m4: Likewise.
80798         * m4/memcmp.m4: Likewise.
80799         * m4/nanosleep.m4: Likewise.
80800         * m4/putenv.m4: Likewise.
80801         * m4/realloc.m4: Likewise.
80802         * m4/regex.m4: Likewise.
80803         * m4/stat.m4: Likewise.
80804         * m4/strftime.m4: Likewise.
80805
80806 2000-07-02  Jim Meyering  <meyering@lucent.com>
80807
80808         * lib/quotearg.c (mbstate_t): Don't define here.
80809
80810 2000-07-02  Jim Meyering  <meyering@lucent.com>
80811
80812         * lib/nanosleep.c (SIGCONT): Define if not already defined.
80813
80814 2000-07-01  Jim Meyering  <meyering@lucent.com>
80815
80816         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
80817
80818 2000-07-01  Jim Meyering  <meyering@lucent.com>
80819
80820         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
80821         problem.
80822
80823 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
80824
80825         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
80826         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
80827
80828 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
80829
80830         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
80831         per change in ../m4/ls-mntd-fs.m4.
80832         (read_filesystem_list): Ignore symbolic links.
80833
80834 2000-06-29  Jim Meyering  <meyering@lucent.com>
80835
80836         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
80837         for declaration of strcmp.
80838
80839         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
80840
80841         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
80842         Avoid warning by casting result to `char *' to remove `const'.
80843
80844 2000-06-28  Jim Meyering  <meyering@lucent.com>
80845
80846         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
80847         included by quotearg.c, for which we perform this test.  From
80848         Bruno Haible.
80849
80850 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
80851
80852         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
80853         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
80854         <utmpx.h> exists, put readutmp.o into LIBOBJS.
80855
80856 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
80857
80858         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
80859
80860 2000-06-26  Paul Eggert  <eggert@twinsun.com>
80861
80862         savedir now sets errno on failure and invokes xmalloc to get memory.
80863         Fix a couple of other minor bugs while we're at it.
80864
80865         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
80866         (NAMLEN): Remove macro.
80867         (malloc, realloc): Remove decls.
80868         (stpcpy): Likewise.
80869         ("xalloc.h"): Include.
80870         (NAME_SIZE_DEFAULT): New macro.
80871         (savedir): Use xmalloc / xrealloc to allocate memory.
80872         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
80873         Skip "" directory entries.
80874         Use strlen to calculate directory entry length, since the old method
80875         is rarely used these days and isn't worth supporting.
80876         Don't use a pointer after freeing it.
80877         Check for integer overflow when calculating allocation size.
80878         Use memcpy to copy entries, instead of stpcpy.
80879         Set errno properly when returning NULL.
80880         Check for readdir error.
80881
80882 2000-06-26  Jim Meyering  <meyering@lucent.com>
80883
80884         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
80885
80886 2000-06-25  Jim Meyering  <meyering@lucent.com>
80887
80888         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
80889         Linux header bug when _XOPEN_SOURCE is defined to 500.
80890
80891 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
80892
80893         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
80894         deficiency.
80895
80896 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
80897
80898         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
80899         Include xalloc.h.
80900         Don't include <stdlib.h>.  Don't declare malloc, realloc.
80901
80902 2000-06-24  Jim Meyering  <meyering@lucent.com>
80903
80904         * m4/strerror_r.m4: Revive this file -- to try out an experimental
80905         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
80906         for which strerror does return char*, but which lacks a conveniently
80907         accessible declaration of the function.  If the compile-test says
80908         strerror_r doesn't work, then resort to a `run'-test that works on
80909         BeOS and segfaults on DEC Unix.
80910
80911 2000-06-24  Jim Meyering  <meyering@lucent.com>
80912
80913         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
80914
80915 2000-06-23  Paul Eggert  <eggert@twinsun.com>
80916
80917         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
80918         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
80919
80920 2000-06-23  Paul Eggert  <eggert@twinsun.com>
80921
80922         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
80923         (mbrtowc, mbstate_t): Define substitutes if
80924         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
80925         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
80926         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
80927
80928 2000-06-23  Jim Meyering  <meyering@lucent.com>
80929
80930         * m4/afs.m4: Add missing AC_MSG_RESULT.
80931         Reported by Bruno Haible.
80932
80933         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
80934         Suggestion from Bruno Haible.
80935
80936 2000-06-23  Jim Meyering  <meyering@lucent.com>
80937
80938         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
80939
80940 2000-06-21  Jim Meyering  <meyering@lucent.com>
80941
80942         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
80943
80944 2000-06-21  Jim Meyering  <meyering@lucent.com>
80945
80946         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
80947         (noinst_HEADERS): Add getstr.h.
80948
80949         * lib/getline.c (getstr): Move into a separate file.
80950         * lib/getstr.c (getstr): New file, extracted from getline.c, with
80951         the following changes: new parameter, delim2; both delim[12]
80952         parameters have type `int', not `char'.  The latter would lose
80953         with 8-bit delimiters.
80954         * lib/getstr.h: New file.
80955
80956 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
80957
80958         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
80959         than 1024, return a memory chunk of least possible size, instead
80960         of size PATH_MAX + 2. In the loop, increment the size proportionally.
80961         Use free/xmalloc instead of xrealloc to avoid copying for very long
80962         paths.
80963
80964 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
80965
80966         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
80967         the empty string.
80968
80969 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
80970
80971         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
80972         address, not strdup.  Include <stdlib.h> and don't declare free().
80973
80974 2000-06-19  Jim Meyering  <meyering@lucent.com>
80975
80976         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
80977
80978 2000-06-18  Jim Meyering  <meyering@lucent.com>
80979
80980         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
80981
80982         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
80983         `checking whether...' message to be consistent with that of the
80984         lstat test.
80985
80986 2000-06-18  Jim Meyering  <meyering@lucent.com>
80987
80988         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
80989         Besides, these days every porting target provides a mkdir function.
80990
80991         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
80992         needed. (this snippet comes from src/system.h).
80993
80994 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
80995
80996         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
80997
80998 2000-06-15  Paul Eggert  <eggert@twinsun.com>
80999
81000         * lib/human.c (adjust_value): New function.
81001         (human_readable_inexact): Apply rounding style even when
81002         printing approximate values.
81003
81004 2000-06-14  Paul Eggert  <eggert@twinsun.com>
81005
81006         * lib/human.c (human_readable_inexact): Allow an input block
81007         size that is not a multiple of the output block size, and vice versa.
81008         Reported by Piergiorgio Sartor.
81009
81010 2000-06-14  Paul Eggert  <eggert@twinsun.com>
81011
81012         * lib/getdate.y (get_date): Apply relative times after time
81013         zone indicator, not before.  Reported by Todd A. Jacobs.
81014
81015 2000-06-13  Jim Meyering  <meyering@lucent.com>
81016
81017         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
81018
81019         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
81020
81021 2000-06-12  Paul Eggert  <eggert@twinsun.com>
81022
81023         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
81024
81025 2000-06-12  Jim Meyering  <meyering@lucent.com>
81026
81027         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
81028         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
81029         optional argument.
81030         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
81031         the optional argument, `lib'.
81032
81033 2000-06-08  Jim Meyering  <meyering@lucent.com>
81034
81035         * m4/largefile.m4: Remove file (now that it's part of autoconf).
81036
81037 2000-06-04  Paul Eggert  <eggert@twinsun.com>
81038
81039         Rewrite largefile configuration so that we don't need to run
81040         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
81041         AC_CANONICAL_HOST in configure.in -- jmm]
81042
81043         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
81044         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
81045         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
81046         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
81047         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
81048         All uses changed.
81049         Instead of inspecting the output of getconf, try to compile the
81050         test program without and with the macro definition.
81051         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
81052         for getconf.  Instead, check for the needed flags by compiling
81053         test programs.
81054
81055 2000-06-04  Paul Eggert  <eggert@twinsun.com>
81056
81057         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
81058
81059 2000-06-04  Jim Meyering  <meyering@lucent.com>
81060
81061         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
81062         SunOS 4.1.4 for which gid_t is an unsigned type.
81063
81064 2000-06-03  Jim Meyering  <meyering@lucent.com>
81065
81066         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
81067         now that autoconf requires that.
81068
81069         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
81070         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
81071         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
81072
81073 2000-06-03  Jim Meyering  <meyering@lucent.com>
81074
81075         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
81076
81077 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
81078
81079         * m4/glibc21.m4: New file.
81080         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
81081
81082 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
81083
81084         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
81085         newer, don't install charset.alias.
81086         * lib/config.charset: Change the Linux/glibc rules so they become empty
81087         on glibc-2.1 or newer.
81088
81089 2000-06-02  Jim Meyering  <meyering@lucent.com>
81090
81091         * lib/mountlist.c: Back out last change.  Instead, do this...
81092         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
81093         me_dummy member using the same `ignore'-testing code.
81094         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
81095         fs_type strings.
81096         From Mark D. Roth.
81097
81098 2000-05-29  Jim Meyering  <meyering@lucent.com>
81099
81100         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
81101         mounts with the `ignore' attribute.  Based on a patch from
81102         Mark D. Roth.
81103
81104 2000-05-28  Jim Meyering  <meyering@lucent.com>
81105
81106         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
81107         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
81108         * m4/stat.m4: Likewise.
81109         * m4/lstat.m4: Likewise.
81110         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
81111
81112         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
81113         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
81114
81115 2000-05-26  Jim Meyering  <meyering@lucent.com>
81116
81117         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
81118
81119 2000-05-24  Jim Meyering  <meyering@lucent.com>
81120
81121         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
81122         autoconf requires that.
81123         * m4/lib-check.m4: Likewise.
81124         * m4/jm-macros.m4: Likewise.
81125         * m4/strftime.m4: Likewise.
81126
81127         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
81128         AC_CHECK_DECLS, now that autoconf requires that.
81129
81130 2000-05-22  Jim Meyering  <meyering@lucent.com>
81131
81132         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
81133         * m4/lstat.m4: Likewise.
81134
81135 2000-05-22  Jim Meyering  <meyering@lucent.com>
81136
81137         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
81138
81139 2000-05-20  Jim Meyering  <meyering@lucent.com>
81140
81141         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
81142         (jm_PREREQ): Use it.
81143
81144 2000-05-18  Jim Meyering  <meyering@lucent.com>
81145
81146         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
81147         back, too, since it may have been modified by allocate_entry.
81148         (hash_delete): Rewrite to use neither the assignment operator
81149         nor the comma operator in an if-expression.
81150
81151 2000-05-15  Paul Eggert  <eggert@twinsun.com>
81152
81153         * lib/closeout.c:
81154         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
81155         Remove; no longer needed.
81156         "quotearg.h": Add include.
81157         (file_name): Do not bother to explicitly initialize to NULL; it's less
81158         efficient on some hosts.
81159         (close_stdout_status): Remove test as to whether stdout was already
81160         closed; it breaks for the case "echo x | sort >&-".
81161         Quote file name colons.
81162         Do not assume that _("write error") lacks format strings.
81163
81164 2000-05-15  Jim Meyering  <meyering@lucent.com>
81165
81166         * lib/version-etc.c (version_etc_copyright): Update the copyright
81167         string used in all --version output.
81168
81169 2000-05-14  Jim Meyering  <meyering@lucent.com>
81170
81171         * lib/closeout.c (close_stdout_set_file_name): New function.
81172         (close_stdout_status): Use new file-scoped global.
81173         Return right away if fstat says the stdout file descriptor is invalid.
81174         * lib/closeout.h (close_stdout_set_file_name): Declare.
81175
81176 2000-05-10  Jim Meyering  <meyering@lucent.com>
81177
81178         * lib/closeout.c [default_exit_status]: New file-scoped variable.
81179         (close_stdout_set_status): New function.
81180         * lib/closeout.h (close_stdout_set_status): Declare.
81181
81182 2000-05-09  Jim Meyering  <meyering@lucent.com>
81183
81184         * m4/gettext.m4: Rename this...
81185         * m4/libintl.m4: ...to this.
81186
81187 2000-05-08  Jim Meyering  <meyering@lucent.com>
81188
81189         * lib/long-options.c: Don't include closeout.h.
81190         (parse_long_options): Don't call close_stdout for --version.
81191
81192 2000-05-06  Paul Eggert  <eggert@twinsun.com>
81193
81194         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
81195         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
81196         2.1.3 bug.  This avoids a clash when files like regex.c define
81197         _GNU_SOURCE.
81198
81199 2000-05-06  Jim Meyering  <meyering@lucent.com>
81200
81201         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
81202         (AC_REPLACE_FUNCS): Add strnlen.
81203
81204         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
81205         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
81206
81207         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
81208         AC_SEARCH_LIBS call for nanosleep.
81209         (LIB_NANOSLEEP): Set and AC_SUBST.
81210
81211 2000-05-06  Jim Meyering  <meyering@lucent.com>
81212
81213         * lib/strnlen.c: Undefine __strnlen and strnlen.
81214         [!weak_alias]: Define __strnlen to strnlen.
81215
81216         * lib/atexit.c: New file, from libiberty.
81217
81218 2000-05-06  Jim Meyering  <meyering@lucent.com>
81219
81220         * lib/closeout.c (close_stdout_status): Also check for errors on the
81221         stderr stream.
81222
81223 2000-05-05  Jim Meyering  <meyering@lucent.com>
81224
81225         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
81226         AC_SEARCH_LIBS call for clock_gettime.
81227         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
81228
81229         * m4/search-libs.m4: Update from autoconf.
81230
81231         su doesn't work on Solaris 2.6.
81232         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
81233         <shadow.h>.  Reported by Dragos Harabor.
81234
81235 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
81236
81237         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
81238         memcpy instead of xmalloc, xrealloc, path_concat.
81239         (locale_charset): Treat empty environment variables as absent.
81240         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
81241
81242 2000-05-04  Jim Meyering  <meyering@lucent.com>
81243
81244         * lib/getopt.c: Update from glibc.
81245         * lib/obstack.c: Likewise.
81246         * lib/obstack.h: Likewise.
81247         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
81248         file
81249
81250         * lib/regex.h: Likewise.
81251         * lib/strndup.c: Likewise.
81252         * lib/strnlen.c: New file, from glibc.
81253
81254 2000-05-03  Jim Meyering  <meyering@lucent.com>
81255
81256         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
81257
81258 2000-05-02  Paul Eggert  <eggert@twinsun.com>
81259
81260         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
81261         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
81262         compile-time test, rather than inspecting host and OS, to
81263         decide whether to define _LARGEFILE_SOURCE.
81264
81265 2000-05-01  Jim Meyering  <meyering@lucent.com>
81266
81267         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
81268
81269         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
81270         Based on a patch from Bruno Haible.
81271
81272 2000-05-01  Jim Meyering  <meyering@lucent.com>
81273
81274         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
81275
81276 2000-04-29  Jim Meyering  <meyering@lucent.com>
81277
81278         * lib/path-concat.c: Declare strdup only if it's not defined.
81279         * lib/canon-host.c: Likewise.
81280
81281 2000-04-28  Jim Meyering  <meyering@lucent.com>
81282
81283         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
81284         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
81285         is included first, then limits.h is included by locale.h by libintl.h.
81286         From John David Anglin.
81287
81288 2000-04-25  Jim Meyering  <meyering@lucent.com>
81289
81290         * lib/makepath.c (S_IRWXUGO): Define.
81291         (make_path): Always perform explicit chmod if MODE specifies any
81292         of the `special' permission bits.  Prompted by a bug report against
81293         install from Mate Wierdl and Joost van Baal.
81294
81295 2000-04-18  Jim Meyering  <meyering@lucent.com>
81296
81297         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
81298         (jm_PREREQ): Use it.
81299
81300 2000-04-18  Jim Meyering  <meyering@lucent.com>
81301
81302         * lib/README: New file.
81303
81304         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
81305         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
81306
81307 2000-04-17  Jim Meyering  <meyering@lucent.com>
81308
81309         Get it right :-)
81310         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
81311         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
81312         Suggestion from Akim Demaille.
81313
81314 2000-04-17  Jim Meyering  <meyering@lucent.com>
81315
81316         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
81317         the definition of it to rpl_strftime also defined-away the system's
81318         declaration.
81319
81320 2000-04-15  Jim Meyering  <meyering@lucent.com>
81321
81322         Use `C' to denote so-called `contiguous' files, the same way
81323         that tar does.
81324         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
81325         (ftypelet): Use S_ISCTG.
81326         From Michael Deutschmann.
81327
81328 2000-04-14  Jim Meyering  <meyering@lucent.com>
81329
81330         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
81331         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
81332         clobbered.
81333
81334 2000-04-14  Jim Meyering  <meyering@lucent.com>
81335
81336         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
81337
81338 2000-04-13  Jim Meyering  <meyering@lucent.com>
81339
81340         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
81341         AH_VERBATIM to insert required #ifndef into config.h.in.
81342         Suggestion from Akim Demaille.
81343
81344 2000-04-12  Jim Meyering  <meyering@lucent.com>
81345
81346         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
81347         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
81348         Christian Krackowizer.
81349
81350         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
81351         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
81352         (AC_SYS_LARGEFILE): Require.
81353         (AM_C_PROTOTYPES): Require.
81354
81355 2000-04-08  Jim Meyering  <meyering@lucent.com>
81356
81357         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
81358         names don't conflict.  Reported by Eli Zaretskii.
81359
81360 2000-04-07  Jim Meyering  <meyering@lucent.com>
81361
81362         * lib/putenv.c: Move inclusion of errno.h so it follows that of
81363         sys/types.h, to work around system header problems on AIX 3.2.5.
81364         From Bruno Haible.
81365
81366 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
81367
81368         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
81369         bug.  Deal with the different error behavior of Irix iconv.
81370
81371 2000-04-05  Paul Eggert  <eggert@twinsun.com>
81372
81373         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
81374         IRIX if the installer said otherwise.
81375
81376 2000-04-05  Jim Meyering  <meyering@lucent.com>
81377
81378         Portability tweaks required for ultrix4.3.
81379         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
81380         (jm_CHECK_DECLS): Add getutent to the list of functions.
81381         (_jm_DECL_HEADERS): Add utmpx.h.
81382         From John David Anglin.
81383
81384         * m4/strftime.m4: Back out the 2000-04-02 change.
81385         Instead of that change, simply undefine putenv in the test program.
81386
81387 2000-04-05  Jim Meyering  <meyering@lucent.com>
81388
81389         Portability tweaks required for ultrix4.3.
81390         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
81391         getutent.
81392         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
81393         * lib/canon-host.c: Declare strdup.
81394         * lib/path-concat.c: Likewise.
81395         From John David Anglin.
81396
81397 2000-04-04  Jim Meyering  <meyering@lucent.com>
81398
81399         Be more DOS 8.3-friendly.
81400         * lib/ref-add.sin: Renamed from ref-add.sed.in.
81401         * lib/ref-del.sin: Renamed from ref-del.sed.in.
81402         * lib/Makefile.am: Reflect renaming.
81403         Reported by Eli Zaretskii.
81404
81405         Use a temporary file name that won't clash with `charset.alias'
81406         in the DOS 8.3 name space.
81407         * lib/Makefile.am (charset_tmp): Define.
81408         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
81409         (uninstall-local): Likewise.
81410         Reported by Eli Zaretskii.
81411
81412 2000-04-03  Jim Meyering  <meyering@lucent.com>
81413
81414         * m4/gettext.m4: Fix typo in comment.
81415
81416         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
81417         textutils/configure.in).  Suggestion from Paul Eggert.
81418         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
81419
81420 2000-04-02  Paul Eggert  <eggert@twinsun.com>
81421
81422         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
81423         variable in the shell rather than using putenv, which isn't
81424         portable.  This avoids the configure-time inter-test dependency
81425         on the potentially-renamed putenv function.
81426
81427 2000-03-30  Paul Eggert  <eggert@twinsun.com>
81428
81429         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
81430         before checking struct stat.st_blksize, so that
81431         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
81432
81433 2000-03-29  Paul Eggert  <eggert@twinsun.com>
81434
81435         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
81436         since strftime.c uses HAVE_STRFTIME to decide whether to use
81437         the underlying strftime.
81438
81439 2000-03-29  Paul Eggert  <eggert@twinsun.com>
81440
81441         * lib/time/strftime.c (my_strftime): Make sure we call the system
81442         strftime, not ourselves, when invoking the underlying strftime.
81443
81444 2000-03-24  Jim Meyering  <meyering@lucent.com>
81445
81446         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
81447         (charset_alias): Define.
81448         (install-exec-local): Factor out common code.
81449         (uninstall-local): Split lines longer than 80.
81450         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
81451         (SUFFIXES): Define.
81452         (.sed.in.sed): New rule.  Don't redirect directly to $@.
81453         (CLEANFILES): Add ref-add.sed and ref-del.sed.
81454
81455 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
81456
81457         * lib/config.charset: Output a line containing "Packages using this
81458         file".
81459         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
81460         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
81461         ref-del.sed): New rules.
81462
81463 2000-03-17  Jim Meyering  <meyering@lucent.com>
81464
81465         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
81466         Otherwise, include <strings.h>
81467
81468 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
81469
81470         * lib/unicodeio.c (utf8_wctomb): New function.
81471         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
81472         format instead of in UCS-4 with platform dependent endianness.
81473
81474 2000-03-10  Jim Meyering  <meyering@lucent.com>
81475
81476         * m4/lib-check.m4: Look for getspnam in -lgen, too.
81477         From Marco Franzen.
81478
81479 2000-03-07  Paul Eggert  <eggert@twinsun.com>
81480
81481         * lib/savedir.c (savedir): Work even if directory size is
81482         negative; this can happen with some screwy NFS configurations.
81483
81484 2000-03-06  Jim Meyering  <meyering@lucent.com>
81485
81486         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
81487         if it's NULL (because we ran out of memory).  From Bruno Haible.
81488
81489 2000-03-05  Jim Meyering  <meyering@lucent.com>
81490
81491         * lib/localcharset.c ("path-concat.h"): Include.
81492         (get_charset_aliases): Use path_concat instead of ANSI string
81493         concatenation.
81494
81495         * lib/unicodeio.h (PARAMS): Define.
81496         Use it to guard prototype.
81497
81498 2000-03-04  Jim Meyering  <meyering@lucent.com>
81499
81500         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
81501         for lib/localcharset.c.
81502
81503 2000-03-04  Jim Meyering  <meyering@lucent.com>
81504
81505         * lib/Makefile.am (install-exec-local): Create $(libdir) before
81506         installing into it.
81507         (uninstall-local): Uncomment this rule so `make distcheck' works
81508         once again.
81509
81510         * lib/unicodeio.c (<errno.h>): Include it.
81511         (errno): Declare if not defined.
81512
81513         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
81514
81515         * lib/config.charset: New version, incorporating remarks from a linux
81516         i18n mailing list.  From Bruno Haible.
81517
81518 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
81519
81520         * m4/codeset.m4: New file.
81521         * m4/iconv.m4: New file.
81522         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
81523
81524 2000-03-03  Jim Meyering  <meyering@lucent.com>
81525
81526         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
81527
81528 2000-03-02  Jim Meyering  <meyering@lucent.com>
81529
81530         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
81531         the messages come out on separate lines.
81532
81533         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
81534         rather than jm_CHECK_DECLARATIONS.
81535         * m4/decl.m4: Remove now-unused file.
81536
81537         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
81538         geteuid.
81539
81540 2000-03-02  Jim Meyering  <meyering@lucent.com>
81541
81542         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
81543
81544 2000-03-01  Jim Meyering  <meyering@lucent.com>
81545
81546         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
81547         * lib/unicodeio.c: Likewise.
81548
81549 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
81550
81551         * lib/config.charset: New file.
81552         * lib/localcharset.c: New file.
81553         * lib/unicodeio.h, lib/unicodeio.c: New files.
81554         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
81555         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
81556         (noinst_HEADERS): Add unicodeio.h.
81557         (all-local, install-exec-local, charset.alias): New targets.
81558
81559 2000-02-28  Paul Eggert  <eggert@twinsun.com>
81560
81561         * lib/quotearg.c (ALERT_CHAR): New macro.
81562         (quotearg_buffer_restyled): Use it.
81563
81564 2000-02-27  Jim Meyering  <meyering@lucent.com>
81565
81566         * m4/check-decl.m4: Add getenv to the list.
81567
81568 2000-02-27  Jim Meyering  <meyering@lucent.com>
81569
81570         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
81571         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
81572
81573         * lib/backupfile.c: Guard inclusion of stdlib.h with
81574         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
81575         Declare malloc if needed.
81576
81577         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
81578         `#ifndef HAVE_DECL..'
81579         now that autoconf always defines the HAVE_DECL_ symbols.
81580         * lib/human.c: Likewise.
81581         * lib/same.c: Likewise.
81582         * lib/strtoumax.c: Likewise.
81583
81584         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
81585         declaration check was not run.
81586         * lib/hash.c: Likewise.
81587         * lib/human.c: Likewise.
81588         * lib/same.c: Likewise.
81589         * lib/strtoumax.c: Likewise.
81590
81591         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
81592         `.', then first look up the entire `.'-containing string as a login
81593         name.
81594
81595 2000-02-23  Jim Meyering  <meyering@lucent.com>
81596
81597         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
81598         in place of my hack.
81599
81600 2000-02-18  Paul Eggert  <eggert@twinsun.com>
81601
81602         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
81603         (textint): New typedef.
81604         (parser_control): Member year changed from int to textint.
81605         All uses changed.
81606         (YYSTYPE): Removed; replaced by %union with int and textint members.
81607         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
81608         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
81609         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
81610         (tSNUMBER, tUNUMBER): Now of type <textintval>.
81611         (date, number, to_year): Use width of number in digits, not its value,
81612         to determine whether it's a 2-digit year, or a 2-digit time.
81613         (yylex): Store number of digits of numeric tokens.
81614         Reported by John Kendall.
81615
81616         (parser_control): Changed from struct parser_control to typedef (for
81617         consistency).  All uses changed.
81618
81619         (tID): Removed; not used.
81620         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
81621
81622 2000-02-14  Paul Eggert  <eggert@twinsun.com>
81623
81624         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
81625         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
81626
81627 2000-02-12  Jim Meyering  <meyering@lucent.com>
81628
81629         * lib/userspec.c (ISDIGIT): Define it.
81630         (isdigit): Remove definition.
81631         (is_number): Use ISDIGIT, not isdigit.
81632         <libintl.h>: Include.
81633         (_ and N_): Define.
81634         (parse_user_spec): Mark translatable strings.
81635
81636 2000-02-10  Jim Meyering  <meyering@lucent.com>
81637
81638         With these changes, nanosleep.[ch] are finally enough like the other
81639         lib/* replacement files to compile on a few more losing systems.
81640
81641         * lib/nanosleep.h: Don't include config.h.
81642         Remove prototype from declaration of nanosleep.
81643         (PARAMS): Remove now-unneeded definition.
81644         * lib/nanosleep.c: #undef nanosleep.
81645         (rpl_nanosleep): Rename from nanosleep.
81646
81647 2000-02-10  Jim Meyering  <meyering@lucent.com>
81648
81649         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
81650         gnu_nanosleep to rpl_nanosleep.
81651
81652 2000-02-09  Jim Meyering  <meyering@lucent.com>
81653
81654         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
81655         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
81656
81657 2000-02-08  Akim Demaille  <akim@epita.fr>
81658
81659         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
81660         `[' and `]' and remove uses of `changequote'.
81661         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
81662         (AC_SYS_LARGEFILE): Likewise.
81663         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
81664         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
81665         of changequote.
81666         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
81667         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
81668         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
81669         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
81670
81671 2000-02-05  Jim Meyering  <meyering@lucent.com>
81672
81673         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
81674         Remove explicit use of AC_HEADER_TIME.  It is required by
81675         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
81676         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
81677         in autoconf whereby the expansion of the latter ended up preceding
81678         the expansion of its prerequisite, AC_HEADER_TIME.
81679         Reported by Volker Borchert.
81680
81681 2000-02-03  Jim Meyering  <meyering@lucent.com>
81682
81683         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
81684
81685 2000-02-03  Jim Meyering  <meyering@lucent.com>
81686
81687         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
81688         rather than with `#if HAVE_UTMPNAME'.
81689
81690 2000-02-02  Jim Meyering  <meyering@lucent.com>
81691
81692         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
81693         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
81694         Reported by Eli Zaretskii.
81695
81696 2000-02-01  Jim Meyering  <meyering@lucent.com>
81697
81698         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
81699
81700 2000-01-31  Jim Meyering  <meyering@lucent.com>
81701
81702         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
81703         functions.  Add the time.h and sys/time.h headers along with the
81704         AC_REQUIRE'ment of AC_HEADER_TIME.
81705
81706 2000-01-31  Jim Meyering  <meyering@lucent.com>
81707
81708         * lib/nanosleep.h (nanosleep): Guard declaration with
81709         `#if ! HAVE_DECL_NANOSLEEP'.
81710         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
81711         the declaration in that vendor's sys/timers.h.
81712         Reported by Christian Krackowizer.
81713
81714         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
81715         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
81716         (ISPRINT): Likewise.
81717         Reported by Tom Tromey.
81718
81719 2000-01-30  Jim Meyering  <meyering@lucent.com>
81720
81721         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
81722
81723         * m4/prereq.m4 (utmp_includes): Define.
81724         Check for ut_user and ut_name members in both struct utmpx
81725         and struct utmp.
81726
81727 2000-01-30  Jim Meyering  <meyering@lucent.com>
81728
81729         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
81730         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
81731         header files where only utmpx.ut_user is declared.
81732
81733         * lib/readutmp.h (UT_USER): Define.
81734
81735 2000-01-29  Jim Meyering  <meyering@lucent.com>
81736
81737         * m4/lib-check.m4: New file containing library-related checks from
81738         fileutils and sh-utils (textutils had none).
81739
81740 2000-01-28  Jim Meyering  <meyering@lucent.com>
81741
81742         * m4/perl.m4: Change format of warning message to look more like that
81743         from the missing script.  Suggestion from François Pinard.
81744
81745 2000-01-25  Jim Meyering  <meyering@lucent.com>
81746
81747         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
81748         well as time.h in the compile check.
81749         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
81750         Fix typo in cross-compiling case: s/yes/no/.
81751
81752 2000-01-23  Jim Meyering  <meyering@lucent.com>
81753
81754         * m4/jm-macros.m4: Move df-related tests here from
81755         fileutils/configure.in
81756
81757         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
81758         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
81759
81760         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
81761         s/space/ac_fsusage_space/.
81762         (jm_FILE_SYSTEM_USAGE): Take two parameters.
81763
81764         * m4/ftruncate.m4: New file (derived from part of
81765         fileutils/configure.in).
81766         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
81767         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
81768
81769         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
81770         AC_SUBST these here, rather than just in sh-util/configure.in, so
81771         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
81772         all the same.
81773         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
81774         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
81775         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
81776         (AC_SUBST(POW_LIBM)): Likewise.
81777         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
81778
81779 2000-01-23  Jim Meyering  <meyering@lucent.com>
81780
81781         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
81782         obstack.c.
81783
81784 2000-01-22  Jim Meyering  <meyering@lucent.com>
81785
81786         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
81787
81788         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
81789
81790         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
81791         configure.in
81792         (AC_CHECK_HEADERS): Likewise for sh-utils.
81793         (AC_CHECK_HEADERS): Likewise for textutils.
81794         Merge the three lists of headers.
81795
81796         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
81797         from fileutils' configure.in.
81798
81799         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
81800         code. Moved tests into their own function (_jm_DECL_HEADERS) in
81801         check-decl.m4.
81802
81803         * m4/check-decl.m4: Use #if rather than #ifdef.
81804         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
81805         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
81806         (_jm_DECL_HEADERS): Define new function.
81807         (jm_CHECK_DECLARATIONS): Require it.
81808
81809 2000-01-22  Jim Meyering  <meyering@lucent.com>
81810
81811         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
81812         [! HAVE_DECL_STRTOULL]: Declare strtoull.
81813         Required for some AIX systems.  Reported by Christian Krackowizer.
81814         [TESTING] (main): New function.
81815
81816         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
81817         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
81818         letters.
81819
81820         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
81821         iswprint.
81822
81823         * lib/strverscmp.c (ISDIGIT): Define.
81824         (strverscmp): Use ISDIGIT, not isdigit.
81825
81826 2000-01-19  Jim Meyering  <meyering@lucent.com>
81827
81828         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
81829         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
81830         defines `struct timespec' in <sys/time.h>
81831
81832         * m4/c-bs-a.m4: Remove uses of changequote altogether.
81833         Thanks to Akim for explaining.
81834
81835 2000-01-17  Paul Eggert  <eggert@twinsun.com>
81836
81837         * lib/nanosleep.c (nanosleep):
81838         Don't use SA_INTERRUPT to decide whether to call sigaction, as
81839         POSIX.1 doesn't require SA_INTERRUPT and some systems
81840         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
81841         it's been part of POSIX.1 since day 1 (in 1988).
81842
81843 2000-01-17  Jim Meyering  <meyering@lucent.com>
81844
81845         * lib/interlock: Remove unused file.  Reported by François Pinard.
81846
81847 2000-01-16  Paul Eggert  <eggert@twinsun.com>
81848
81849         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
81850         alert, backslash, formfeed, and vertical tab unnecessarily in
81851         shell quoting style.
81852
81853 2000-01-16  Jim Meyering  <meyering@lucent.com>
81854
81855         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
81856         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
81857         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
81858         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
81859
81860 2000-01-16  Jim Meyering  <meyering@lucent.com>
81861
81862         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
81863         because the latter didn't work.
81864
81865 2000-01-15  Jim Meyering  <meyering@lucent.com>
81866
81867         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
81868         (AC_REPLACE_FUNCS): Add memcpy and memset.
81869         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
81870         Add strpbrk.
81871         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
81872
81873 2000-01-12  Jim Meyering  <meyering@lucent.com>
81874
81875         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
81876         (jm_PREREQ): Use it.
81877         (jm_PREREQ_READUTMP): New macro.
81878         (jm_PREREQ): Use it.
81879
81880 2000-01-11  Paul Eggert  <eggert@twinsun.com>
81881
81882         Quote multibyte characters correctly.
81883         * m4/c-bs-a.m4: New file.
81884         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
81885         (jm_PREREQ): Use it.
81886
81887 2000-01-11  Paul Eggert  <eggert@twinsun.com>
81888
81889         * m4/uintmax_t.m4: Port to autoconf 2.13.
81890
81891 2000-01-08  Jim Meyering  <meyering@ascend.com>
81892
81893         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
81894         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
81895
81896 2000-01-04  Jim Meyering  <meyering@ascend.com>
81897
81898         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
81899         jm_STRUCT_DIRENT_D_TYPE.
81900         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
81901         jm_STRUCT_DIRENT_D_INO.
81902         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
81903         jm_STRUCT_UTIMBUF.
81904         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
81905         renamings.
81906         * m4/utime.m4: Likewise.
81907
81908         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
81909         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
81910
81911 2000-01-03  Paul Eggert  <eggert@twinsun.com>
81912
81913         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
81914         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
81915
81916 2000-01-02  Jim Meyering  <meyering@ascend.com>
81917
81918         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
81919         remember if this is necessary.
81920
81921 1999-12-26  Jim Meyering  <meyering@ascend.com>
81922
81923         * m4/jm-macros.m4: Use it here.
81924         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
81925
81926 1999-12-23  Jim Meyering  <meyering@ascend.com>
81927
81928         * m4/jm-macros.m4: Check for clock_gettime (moved from
81929         fileutils/configure.in)
81930         Check for gettimeofday.
81931
81932 1999-12-20  Jim Meyering  <meyering@ascend.com>
81933
81934         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
81935         autoconf-2.14a-1999-12-20.
81936
81937 1999-12-19  Jim Meyering  <meyering@ascend.com>
81938
81939         * m4/lstat-slash.m4: New file.
81940         * m4/jm-macros.m4: Use the new macro:
81941         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
81942
81943 1999-12-07  Jim Meyering  <meyering@ascend.com>
81944
81945         * m4/perl.m4: Require that File::Compare be available, too.
81946         Too many systems seem to lack it.
81947
81948         * m4/strftime.m4: Add checks for most of the cpp macros tested in
81949         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
81950
81951 1999-11-18  Paul Eggert  <eggert@twinsun.com>
81952
81953         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
81954         problem with the QNX 4.25 shell, which doesn't propagate exit
81955         status of failed commands inside shell assignments.
81956
81957 1999-11-17  Jim Meyering  <meyering@ascend.com>
81958
81959         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
81960
81961 1999-11-07  Jim Meyering  <meyering@ascend.com>
81962
81963         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
81964
81965 1999-11-06  Jim Meyering  <meyering@ascend.com>
81966
81967         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
81968         * m4/jm-macros.m4 (jm_MACROS): Use it here.
81969
81970 1999-11-05  Jim Meyering  <meyering@ascend.com>
81971
81972         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
81973         configure.in of textutils, fileutils, and sh-utils into this one
81974         (shared between those packages) file.
81975         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
81976         AC_STRUCT_ST_BLKSIZE.
81977
81978 1999-11-03  Jim Meyering  <meyering@ascend.com>
81979
81980         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
81981         of AC_CHECK_TYPE checks includes unistd.h.
81982         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
81983         Suggestion from Akim Demaille.
81984
81985 1999-10-30  Jim Meyering  <meyering@ascend.com>
81986
81987         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
81988         m4-quoted string.
81989         * m4/ls-mntd-fs.m4: Likewise.
81990         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
81991         * m4/jm-winsz1.m4: Likewise.
81992
81993         * m4/const.m4: Remove file, since the fix made it into the experimental
81994         version of autoconf.
81995         * m4/mktime.m4: Likewise.
81996
81997         * m4/check-type.m4: Remove file, now that the latest version of
81998         AC_CHECK_TYPE takes a third arg to specify additional #includes.
81999
82000         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
82001         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
82002         AC_CHECK_TYPE.
82003
82004 1999-10-04  Jim Meyering  <meyering@ascend.com>
82005
82006         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
82007
82008 1999-09-22  Paul Eggert  <eggert@twinsun.com>
82009
82010         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
82011         2.95.1 bug with HP-UX 10.20.
82012
82013 1999-09-17  Jim Meyering  <meyering@ascend.com>
82014
82015         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
82016         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
82017         due to missing strdup (against sh-utils-2.0).
82018
82019 1999-08-29  Jim Meyering  <meyering@ascend.com>
82020
82021         * m4/jm-macros.m4: Require jm_BISON.
82022         * m4/bison.m4: New file.
82023
82024 1999-08-17  Paul Eggert  <eggert@twinsun.com>
82025
82026         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
82027         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
82028
82029 1999-08-05  Jim Meyering  <meyering@ascend.com>
82030
82031         * m4/getline.m4: Rename test file from conftestdata to conftest.data
82032         to avoid conflicts with `conftest' on 8+3 filesystems.
82033         Suggestion from Eli Zaretskii.
82034
82035 1999-08-04  Jim Meyering  <meyering@ascend.com>
82036
82037         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
82038         fileutils and sh-utils (textutils's getline test was inadequate).
82039         (AM_FUNC_GETLINE): Run this test.
82040         (AC_CHECK_FUNCS): Check for getdelim.
82041         Reported by Bob Proulx.
82042
82043 1999-08-02  Jim Meyering  <meyering@ascend.com>
82044
82045         * m4/jm-macros.m4: Add a comment.
82046
82047 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82048
82049         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
82050         <inttypes.h> defines strtoumax as a macro (and not as a
82051         function).
82052
82053 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82054
82055         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
82056         that we can shift, multiply and divide unsigned long long
82057         values; Ultrix cc can't do it.
82058
82059 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82060
82061         * m4/mktime.m4: New file, which is a preview of what should appear
82062         in the next public autoconf release.
82063
82064 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82065
82066         * m4/lfs.m4: Remove this file.
82067         * m4/largefile.m4: New file.  It contains the old contents of
82068         lfs.m4, except that all names with prefix AC_LFS have been
82069         changed to use the prefix AC_SYS_LARGEFILE instead, to be
82070         compatible with future autoconf versions.  Also, some minor m4
82071         quoting problems have been fixed.
82072
82073 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82074
82075         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
82076         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
82077         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
82078         and simplify the shell code.
82079
82080 1999-08-01  Jim Meyering  <meyering@ascend.com>
82081
82082         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
82083         m4.
82084
82085 1999-07-20  Jim Meyering  <meyering@ascend.com>
82086
82087         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
82088
82089 1999-07-15  Jim Meyering  <meyering@ascend.com>
82090
82091         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
82092
82093 1999-05-22  Jim Meyering  <meyering@ascend.com>
82094
82095         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
82096
82097 1999-05-20  Jim Meyering  <meyering@ascend.com>
82098
82099         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
82100         Add a colon after each `then' in case $4 is empty.
82101
82102 1999-05-16  Jim Meyering  <meyering@ascend.com>
82103
82104         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
82105
82106 1999-05-10  Jim Meyering  <meyering@ascend.com>
82107
82108         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
82109
82110         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
82111         AC_FUNC_MKTIME.
82112
82113 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
82114
82115         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
82116
82117 1999-05-04  Paul Eggert  <eggert@twinsun.com>
82118
82119         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
82120         not CPPFLAGS, so that linking works correctly in IRIX.
82121
82122 1999-04-30  Paul Eggert  <eggert@twinsun.com>
82123
82124         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
82125
82126 1999-04-20  Paul Eggert  <eggert@twinsun.com>
82127
82128         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
82129         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
82130         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
82131         jm_AC_TYPE_UNSIGNED_LONG_LONG.
82132         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
82133
82134         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
82135
82136 1999-04-20  Jim Meyering  <meyering@ascend.com>
82137
82138         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
82139         AC_REPLACE xstroull if necessary.  From Paul Eggert.
82140         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
82141
82142 1999-04-18  Jim Meyering  <meyering@ascend.com>
82143
82144         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
82145         * m4/jm-macros.m4: Use it.
82146
82147 1999-04-06  Jim Meyering  <meyering@ascend.com>
82148
82149         * m4/strftime.m4: Remove test for %f.
82150
82151 1999-03-29  Jim Meyering  <meyering@ascend.com>
82152
82153         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
82154         superset of the AC_TYPE_* checks in the textutils, fileutils,
82155         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
82156         AC_TYPE_PID_T.
82157
82158 1999-03-28  Jim Meyering  <meyering@ascend.com>
82159
82160         * m4/jm-macros.m4: Define GNU_PACKAGE here.
82161         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
82162         replaced e.g., in the *.sh files of the sh-utils.
82163
82164 1999-03-20  Jim Meyering  <meyering@ascend.com>
82165
82166         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
82167         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
82168         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
82169
82170 1999-03-19  Jim Meyering  <meyering@ascend.com>
82171
82172         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
82173
82174 1999-03-12  Jim Meyering  <meyering@ascend.com>
82175
82176         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
82177
82178 1999-03-07  Jim Meyering  <meyering@ascend.com>
82179
82180         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
82181         declared.
82182
82183 1999-02-17  Jim Meyering  <meyering@ascend.com>
82184
82185         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
82186         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
82187
82188 1999-02-07  Jim Meyering  <meyering@ascend.com>
82189
82190         * m4/group-member.m4: New file -- extracted from sh-utils'
82191         configure.in.
82192
82193         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
82194         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
82195
82196 1999-02-06  Jim Meyering  <meyering@ascend.com>
82197
82198         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
82199         * m4/fnmatch.m4: Likewise.
82200         * m4/getgroups.m4: Likewise.
82201         * m4/lstat.m4: Likewise.
82202         * m4/malloc.m4: Likewise.
82203         * m4/putenv.m4: Likewise.
82204         * m4/realloc.m4: Likewise.
82205         * m4/regex.m4: Likewise.
82206         * m4/stat.m4: Likewise.
82207         * m4/strftime.m4: Likewise.
82208         Suggestion from Alain Magloire.
82209
82210         * m4/chown.m4: Use `.$ac_objext', not `.o'.
82211         * m4/fnmatch.m4: Likewise.
82212         * m4/getgroups.m4: Likewise.
82213         * m4/getline.m4: Likewise.
82214         * m4/lstat.m4: Likewise.
82215         * m4/malloc.m4: Likewise.
82216         * m4/memcmp.m4: Likewise.
82217         * m4/putenv.m4: Likewise.
82218         * m4/realloc.m4: Likewise.
82219         * m4/regex.m4: Likewise.
82220         * m4/stat.m4: Likewise.
82221         * m4/strftime.m4: Likewise.
82222         Suggestion from Alain Magloire.
82223
82224         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
82225         an argument.
82226
82227         * m4/regex.m4: Add a run-time Test for proper operation of
82228         re_compile_pattern.
82229
82230 1999-01-31  Jim Meyering  <meyering@ascend.com>
82231
82232         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
82233
82234 1999-01-30  Jim Meyering  <meyering@ascend.com>
82235
82236         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
82237
82238         * m4/jm-mktime.m4: Make this a wrapper around the official
82239         AM_FUNC_MKTIME rather than my private copy, now that the official one
82240         is up to date.
82241         * m4/mktime.m4: Remove file.
82242
82243         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
82244         * m4/uptime.m4: Likewise.
82245         * m4/uintmax_t.m4: Likewise.
82246
82247 1999-01-28  Jim Meyering  <meyering@ascend.com>
82248
82249         * m4/jm-macros.m4: Use jm_AFS.
82250         * m4/afs.m4: New file (from fileutils' configure.in).
82251
82252         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
82253         * m4/chown.m4: Likewise.
82254         * m4/d-ino.m4: Likewise.
82255         * m4/d-type.m4: Likewise.
82256         * m4/fnmatch.m4: Likewise.
82257         * m4/getgroups.m4: Likewise.
82258         * m4/gettext.m4: Likewise.
82259         * m4/jm-mktime.m4: Likewise.
82260         * m4/jm-winsz2.m4: Likewise.
82261         * m4/lcmessage.m4: Likewise.
82262         * m4/ls-mntd-fs.m4: Likewise.
82263         * m4/malloc.m4: Likewise.
82264         * m4/memcmp.m4: Likewise.
82265         * m4/putenv.m4: Likewise.
82266         * m4/realloc.m4: Likewise.
82267         * m4/st_mtim.m4: Likewise.
82268         * m4/strftime.m4: Likewise.
82269
82270 1999-01-16  Jim Meyering  <meyering@ascend.com>
82271
82272         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
82273         (ARGMATCH_DIE_DECL): Define.
82274
82275 1999-01-12  Jim Meyering  <meyering@ascend.com>
82276
82277         * m4/Makefile.am.in: Rewrite to avoid using fmt.
82278         Reported by Lars Hecking.
82279
82280 1999-01-10  Jim Meyering  <meyering@ascend.com>
82281
82282         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
82283         gross kludge.
82284         * m4/inttypes_h.m4: Likewise.
82285         * m4/lstat.m4: Likewise.
82286         * m4/malloc.m4: Likewise.
82287         * m4/readdir.m4: Likewise.
82288         * m4/realloc.m4: Likewise.
82289         * m4/st_dm_mode.m4: Likewise.
82290         * m4/stat.m4: Likewise.
82291         * m4/utimbuf.m4: Likewise.
82292         * m4/utimes.m4: Likewise.
82293
82294         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
82295         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
82296         comments in config.h.in are meaningful.
82297
82298         * m4/jm-macros.m4: Require autoconf-2.13 here.
82299
82300         * m4/regex.m4: By default, don't use the included regex.c on systems
82301         with glibc 2.  Suggestion from Uli Drepper.
82302
82303 1999-01-02  Jim Meyering  <meyering@ascend.com>
82304
82305         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
82306
82307 1998-12-18  Jim Meyering  <meyering@ascend.com>
82308
82309         * m4/Makefile.am.in (Makefile.am): Simplify rule.
82310         Based on a suggestion from Lars Hecking.
82311
82312 1998-11-16  Paul Eggert  <eggert@twinsun.com>
82313
82314         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
82315
82316 1998-11-16  Jim Meyering  <meyering@ascend.com>
82317
82318         * m4/lfs.m4: Double-quote the `uname...` expression.
82319
82320 1998-11-14  Jim Meyering  <meyering@ascend.com>
82321
82322         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
82323         * m4/stat.m4: Likewise.
82324
82325 1998-11-03  Jim Meyering  <meyering@ascend.com>
82326
82327         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
82328         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
82329
82330 1998-10-18  Jim Meyering  <meyering@ascend.com>
82331
82332         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
82333
82334 1998-10-17  Jim Meyering  <meyering@ascend.com>
82335
82336         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
82337         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
82338         calls for those previously hard-coded headers.  Instead, take a new
82339         parameter.
82340         (jm_CHECK_DECLARATIONS): Reflect interface change.
82341         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
82342         (jm_CHECK_DECL_LOCALTIME_R): New macro.
82343
82344         * m4/mktime.m4: Test for spring-forward gap before long-running test.
82345
82346 1998-10-14  Jim Meyering  <meyering@ascend.com>
82347
82348         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
82349         instead of "TZ=America/Vancouver".  From Paul Eggert.
82350
82351 1998-10-11  Jim Meyering  <meyering@ascend.com>
82352
82353         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
82354         This adds a test for a recently added compatibility fix for mktime.c.
82355         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
82356
82357 1998-09-27  Jim Meyering  <meyering@ascend.com>
82358
82359         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
82360
82361         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
82362         ../configure.in, including a change from Gordon Matzigkeit to allow
82363         cross-compiling for the Hurd.
82364
82365         * m4/glibc.m4: New file/macro to test for the GNU C Library
82366         versions 1 and 2.  From Gordon Matzigkeit.
82367         Indent.
82368
82369 1998-09-21  Jim Meyering  <meyering@ascend.com>
82370
82371         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
82372
82373 1998-08-18  Paul Eggert  <eggert@twinsun.com>
82374
82375         Port nanosecond-resolution times to UnixWare 2.1.2 and
82376         pedantic Solaris 2.6.
82377
82378         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
82379         AC_STRUCT_ST_MTIM.
82380         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
82381         Generate name of ns member, instead of just 1 or undef.
82382         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
82383
82384 1998-08-15  Jim Meyering  <meyering@ascend.com>
82385
82386         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
82387         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
82388         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
82389         instead of jm_TYPE_SSIZE_T.
82390
82391 1998-08-12  Jim Meyering  <meyering@ascend.com>
82392
82393         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
82394
82395 1998-08-02  Jim Meyering  <meyering@ascend.com>
82396
82397         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
82398         in acconfig.h manually.
82399
82400 1998-07-31  Paul Eggert  <eggert@twinsun.com>
82401
82402         * m4/st_mtim.m4: New file.
82403
82404 1998-07-28  Jim Meyering  <meyering@ascend.com>
82405
82406         * m4/utimes.m4: Undef stat.
82407
82408 1998-07-25  Jim Meyering  <meyering@ascend.com>
82409
82410         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
82411         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
82412
82413 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
82414
82415         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
82416         uid and gid actually remain unchanged.
82417
82418 1998-07-07  Jim Meyering  <meyering@ascend.com>
82419
82420         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
82421
82422 1998-07-04  Jim Meyering  <meyering@ascend.com>
82423
82424         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
82425         to prove that this macro can be used in packages without regex.c.
82426
82427 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
82428
82429         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
82430         is to be used.
82431
82432 1998-07-03  Jim Meyering  <meyering@ascend.com>
82433
82434         * m4/gettext.m4: Add -lintl if it's found to be necessary.
82435
82436         * m4/gettext.m4: New file -- from gettext-0.10.35.
82437         * m4/lcmessage.m4: Likewise.
82438         * m4/progtest.m4: Likewise.
82439
82440         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
82441         * m4/jm-macros.m4: Require the new macro.
82442
82443 1998-06-29  Jim Meyering  <meyering@ascend.com>
82444
82445         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
82446         for the definition of NGROUPS (used in a system header included
82447         by sys/mount.h).
82448
82449 1998-06-28  Jim Meyering  <meyering@ascend.com>
82450
82451         * m4/ls-mntd-fs.m4: New file.
82452         * m4/fstypename.m4: New file.
82453
82454         * m4/jm-macros.m4: Require the new macro.
82455         * m4/jm-glibc-io.m4: New file.
82456
82457 1998-05-19  Jim Meyering  <meyering@ascend.com>
82458
82459         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
82460         * m4/lchown.m4: New file.
82461
82462         * m4/Makefile.am.in: New file.
82463         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
82464
82465 1998-05-14  Jim Meyering  <meyering@ascend.com>
82466
82467         * m4/Makefile.am (EXTRA_DIST): Add them.
82468         * m4/jm-macros.m4: New file.
82469         * m4/utimbuf.m4: New file.
82470
82471 1998-05-12  Jim Meyering  <meyering@ascend.com>
82472
82473         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
82474
82475 1998-05-11  Jim Meyering  <meyering@ascend.com>
82476
82477         * m4/isc-posix.m4: New file.
82478
82479 1998-05-10  Jim Meyering  <meyering@ascend.com>
82480
82481         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
82482
82483 1998-05-09  Jim Meyering  <meyering@ascend.com>
82484
82485         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
82486         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
82487         with automake.
82488
82489         * m4/ssize_t.m4: New file.
82490         * m4/mktime.m4: Remove file -- the new automake has this now.
82491
82492 1998-04-26  Jim Meyering  <meyering@ascend.com>
82493
82494         * m4/assert.m4: New file.
82495         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
82496
82497 1998-04-05  Jim Meyering  <meyering@ascend.com>
82498
82499         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
82500         (jm_PREREQ): Use it here.
82501
82502 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
82503
82504         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
82505         in acconfig.h.
82506
82507 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
82508
82509         * m4/prereq.m4: New file.
82510         * m4/error.m4: New file.
82511         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
82512
82513 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
82514
82515         * m4/getline.m4: Don't set am_cv_func_working_getline before the
82516         cache-check for the same variable -- that defeated the purpose of
82517         the test; the test program was never run.  This was a problem only
82518         on systems with losing getline functions -- HP-UX 10.20 is one.
82519         Reported by Bjorn Helgaas.
82520
82521 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
82522
82523         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
82524
82525 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
82526
82527         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
82528
82529         * m4/const.m4: New file.  Use an initializer in this declaration
82530         typedef int charset[2]; const charset x;
82531         Reported by Bob Glickstein.
82532
82533 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
82534
82535         * m4/chown.m4: Fix reversed types on -1 args to chown.
82536         From Kaveh Ghazi.
82537
82538 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
82539
82540         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
82541         Add lseek and memchr.
82542
82543         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
82544         T.E.Dickey <dickey@clark.net> said that some older preprocessors
82545         have a 20-character limit on names.
82546
82547 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
82548
82549         * m4/inttypes_h.m4: New file.
82550         * m4/uintmax_t.m4: New file.
82551         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
82552
82553
82554         -----
82555
82556         Local Variables:
82557         coding: utf-8
82558         End:
82559
82560         Copyright (C) 1997-2011 Free Software Foundation, Inc.
82561
82562         Copying and distribution of this file, with or without
82563         modification, are permitted provided the copyright notice
82564         and this notice are preserved.