wcstok: Move AC_LIBOBJ invocations to module description.
[gnulib.git] / ChangeLog
1 2011-05-22  Bruno Haible  <bruno@clisp.org>
2
3         wcstok: Move AC_LIBOBJ invocations to module description.
4         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
5         * modules/wcstok (configure.ac): ... to here.
6
7 2011-05-22  Bruno Haible  <bruno@clisp.org>
8
9         wcsstr: Move AC_LIBOBJ invocations to module description.
10         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
11         * modules/wcsstr (configure.ac): ... to here.
12
13 2011-05-22  Bruno Haible  <bruno@clisp.org>
14
15         wcsspn: Move AC_LIBOBJ invocations to module description.
16         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
17         * modules/wcsspn (configure.ac): ... to here.
18
19 2011-05-22  Bruno Haible  <bruno@clisp.org>
20
21         wcsrtombs: Move AC_LIBOBJ invocations to module description.
22         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
23         gl_PREREQ_WCSRTOMBS invocations from here...
24         * modules/wcsrtombs (configure.ac): ... to here.
25
26 2011-05-22  Bruno Haible  <bruno@clisp.org>
27
28         wcsrchr: Move AC_LIBOBJ invocations to module description.
29         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
30         here...
31         * modules/wcsrchr (configure.ac): ... to here.
32
33 2011-05-22  Bruno Haible  <bruno@clisp.org>
34
35         wcspbrk: Move AC_LIBOBJ invocations to module description.
36         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
37         here...
38         * modules/wcspbrk (configure.ac): ... to here.
39
40 2011-05-22  Bruno Haible  <bruno@clisp.org>
41
42         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
43         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
44         gl_PREREQ_WCSNRTOMBS invocations from here...
45         * modules/wcsnrtombs (configure.ac): ... to here.
46
47 2011-05-22  Bruno Haible  <bruno@clisp.org>
48
49         wcsnlen: Move AC_LIBOBJ invocations to module description.
50         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
51         here...
52         * modules/wcsnlen (configure.ac): ... to here.
53
54 2011-05-22  Bruno Haible  <bruno@clisp.org>
55
56         wcsncpy: Move AC_LIBOBJ invocations to module description.
57         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
58         here...
59         * modules/wcsncpy (configure.ac): ... to here.
60
61 2011-05-22  Bruno Haible  <bruno@clisp.org>
62
63         wcsncmp: Move AC_LIBOBJ invocations to module description.
64         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
65         here...
66         * modules/wcsncmp (configure.ac): ... to here.
67
68 2011-05-22  Bruno Haible  <bruno@clisp.org>
69
70         wcsncat: Move AC_LIBOBJ invocations to module description.
71         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
72         here...
73         * modules/wcsncat (configure.ac): ... to here.
74
75 2011-05-22  Bruno Haible  <bruno@clisp.org>
76
77         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
78         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
79         from here...
80         * modules/wcsncasecmp (configure.ac): ... to here.
81
82 2011-05-22  Bruno Haible  <bruno@clisp.org>
83
84         wcslen: Move AC_LIBOBJ invocations to module description.
85         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
86         * modules/wcslen (configure.ac): ... to here.
87
88 2011-05-22  Bruno Haible  <bruno@clisp.org>
89
90         wcsdup: Move AC_LIBOBJ invocations to module description.
91         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
92         * modules/wcsdup (configure.ac): ... to here.
93
94 2011-05-22  Bruno Haible  <bruno@clisp.org>
95
96         wcscspn: Move AC_LIBOBJ invocations to module description.
97         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
98         here...
99         * modules/wcscspn (configure.ac): ... to here.
100
101 2011-05-22  Bruno Haible  <bruno@clisp.org>
102
103         wcscpy: Move AC_LIBOBJ invocations to module description.
104         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
105         * modules/wcscpy (configure.ac): ... to here.
106
107 2011-05-22  Bruno Haible  <bruno@clisp.org>
108
109         wcscoll: Move AC_LIBOBJ invocations to module description.
110         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
111         here...
112         * modules/wcscoll (configure.ac): ... to here.
113
114 2011-05-22  Bruno Haible  <bruno@clisp.org>
115
116         wcscmp: Move AC_LIBOBJ invocations to module description.
117         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
118         * modules/wcscmp (configure.ac): ... to here.
119
120 2011-05-22  Bruno Haible  <bruno@clisp.org>
121
122         wcschr: Move AC_LIBOBJ invocations to module description.
123         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
124         * modules/wcschr (configure.ac): ... to here.
125
126 2011-05-22  Bruno Haible  <bruno@clisp.org>
127
128         wcscat: Move AC_LIBOBJ invocations to module description.
129         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
130         * modules/wcscat (configure.ac): ... to here.
131
132 2011-05-22  Bruno Haible  <bruno@clisp.org>
133
134         wcscasecmp: Move AC_LIBOBJ invocations to module description.
135         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
136         here...
137         * modules/wcscasecmp (configure.ac): ... to here.
138
139 2011-05-22  Bruno Haible  <bruno@clisp.org>
140
141         wcrtomb: Move AC_LIBOBJ invocations to module description.
142         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
143         invocations from here...
144         * modules/wcrtomb (configure.ac): ... to here.
145
146 2011-05-22  Bruno Haible  <bruno@clisp.org>
147
148         wcpncpy: Move AC_LIBOBJ invocations to module description.
149         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
150         here...
151         * modules/wcpncpy (configure.ac): ... to here.
152
153 2011-05-22  Bruno Haible  <bruno@clisp.org>
154
155         wcpcpy: Move AC_LIBOBJ invocations to module description.
156         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
157         * modules/wcpcpy (configure.ac): ... to here.
158
159 2011-05-22  Bruno Haible  <bruno@clisp.org>
160
161         waitpid: Move AC_LIBOBJ invocations to module description.
162         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
163         invocation from here...
164         * modules/waitpid (configure.ac): ... to here.
165
166 2011-05-22  Bruno Haible  <bruno@clisp.org>
167
168         utimensat: Move AC_LIBOBJ invocations to module description.
169         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
170         here...
171         * modules/utimensat (configure.ac): ... to here.
172
173 2011-05-22  Bruno Haible  <bruno@clisp.org>
174
175         usleep: Move AC_LIBOBJ invocations to module description.
176         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
177         here...
178         * modules/usleep (configure.ac): ... to here.
179
180 2011-05-22  Bruno Haible  <bruno@clisp.org>
181
182         unlockpt: Move AC_LIBOBJ invocations to module description.
183         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
184         gl_PREREQ_UNLOCKPT invocations from here...
185         * modules/unlockpt (configure.ac): ... to here.
186
187 2011-05-22  Bruno Haible  <bruno@clisp.org>
188
189         unlink: Respect rules for use of AC_LIBOBJ.
190         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
191         * modules/unlink (configure.ac): ... to here.
192
193 2011-05-22  Bruno Haible  <bruno@clisp.org>
194
195         uname: Move AC_LIBOBJ invocations to module description.
196         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
197         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
198         here...
199         * modules/uname (configure.ac): ... to here.
200
201 2011-05-22  Bruno Haible  <bruno@clisp.org>
202
203         ttyname_r: Move AC_LIBOBJ invocations to module description.
204         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
205         gl_PREREQ_TTYNAME_R invocations from here...
206         * modules/ttyname_r (configure.ac): ... to here.
207
208 2011-05-22  Bruno Haible  <bruno@clisp.org>
209
210         tsearch: Move AC_LIBOBJ invocations to module description.
211         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
212         invocations from here...
213         * modules/tsearch (configure.ac): ... to here.
214
215 2011-05-22  Bruno Haible  <bruno@clisp.org>
216
217         towctrans: Move AC_LIBOBJ invocations to module description.
218         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
219         AC_LIBOBJ invocation from here...
220         * modules/towctrans (configure.ac): ... to here.
221
222 2011-05-22  Bruno Haible  <bruno@clisp.org>
223
224         tmpfile: Move AC_LIBOBJ invocations to module description.
225         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
226         invocations from here...
227         * modules/tmpfile (configure.ac): ... to here.
228
229 2011-05-22  Bruno Haible  <bruno@clisp.org>
230
231         times: Move AC_LIBOBJ invocations to module description.
232         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
233         * modules/times (configure.ac): ... to here.
234
235 2011-05-22  Bruno Haible  <bruno@clisp.org>
236
237         time_r: Move AC_LIBOBJ invocations to module description.
238         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
239         invocations from here...
240         * modules/time_r (configure.ac): ... to here.
241
242 2011-05-22  Bruno Haible  <bruno@clisp.org>
243
244         timegm: Move AC_LIBOBJ invocations to module description.
245         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
246         invocations from here...
247         * modules/timegm (configure.ac): ... to here.
248
249 2011-05-22  Bruno Haible  <bruno@clisp.org>
250
251         tcgetsid: Move AC_LIBOBJ invocations to module description.
252         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
253         and gl_PREREQ_TCGETSID invocations from here...
254         * modules/tcgetsid (configure.ac): ... to here.
255         (Depends-on): Update conditions.
256
257 2011-05-22  Bruno Haible  <bruno@clisp.org>
258
259         symlinkat: Move AC_LIBOBJ invocations to module description.
260         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
261         here...
262         * modules/symlinkat (configure.ac): ... to here.
263
264 2011-05-22  Bruno Haible  <bruno@clisp.org>
265
266         symlink: Move AC_LIBOBJ invocations to module description.
267         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
268         here...
269         * modules/symlink (configure.ac): ... to here.
270
271 2011-05-22  Bruno Haible  <bruno@clisp.org>
272
273         strverscmp: Move AC_LIBOBJ invocations to module description.
274         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
275         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
276         from here...
277         * modules/strverscmp (configure.ac): ... to here.
278
279 2011-05-22  Bruno Haible  <bruno@clisp.org>
280
281         strtok_r: Move AC_LIBOBJ invocations to module description.
282         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
283         and gl_PREREQ_STRTOK_R invocations from here...
284         * modules/strtok_r (configure.ac): ... to here.
285         (Depends-on): Update conditions.
286
287 2011-05-22  Bruno Haible  <bruno@clisp.org>
288
289         strtoumax: Move AC_LIBOBJ invocations to module description.
290         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
291         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
292         from here...
293         * modules/strtoumax (configure.ac): ... to here.
294
295 2011-05-22  Bruno Haible  <bruno@clisp.org>
296
297         strtoimax: Move AC_LIBOBJ invocations to module description.
298         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
299         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
300         from here...
301         * modules/strtoimax (configure.ac): ... to here.
302
303 2011-05-22  Bruno Haible  <bruno@clisp.org>
304
305         strtoull: Move AC_LIBOBJ invocations to module description.
306         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
307         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
308         from here...
309         * modules/strtoull (configure.ac): ... to here.
310
311 2011-05-22  Bruno Haible  <bruno@clisp.org>
312
313         strtoll: Move AC_LIBOBJ invocations to module description.
314         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
315         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
316         here...
317         * modules/strtoll (configure.ac): ... to here.
318
319 2011-05-22  Bruno Haible  <bruno@clisp.org>
320
321         strtoul: Move AC_LIBOBJ invocations to module description.
322         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
323         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
324         * modules/strtoul (configure.ac): ... to here.
325
326 2011-05-22  Bruno Haible  <bruno@clisp.org>
327
328         strtol: Move AC_LIBOBJ invocations to module description.
329         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
330         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
331         * modules/strtol (configure.ac): ... to here.
332
333 2011-05-22  Bruno Haible  <bruno@clisp.org>
334
335         strtod: Move AC_LIBOBJ invocations to module description.
336         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
337         invocations from here...
338         * modules/strtod (configure.ac): ... to here.
339
340 2011-05-22  Bruno Haible  <bruno@clisp.org>
341
342         strstr*: Move AC_LIBOBJ invocations to module description.
343         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
344         invocations from here...
345         * modules/strstr-simple (configure.ac): ... to here.
346         * modules/strstr (configure.ac): ... and here.
347
348 2011-05-22  Bruno Haible  <bruno@clisp.org>
349
350         strsignal: Move AC_LIBOBJ invocations to module description.
351         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
352         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
353         * modules/strsignal (configure.ac): ... to here.
354         (Depends-on): Update conditions.
355
356 2011-05-22  Bruno Haible  <bruno@clisp.org>
357
358         strsep: Move AC_LIBOBJ invocations to module description.
359         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
360         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
361         here...
362         * modules/strsep (configure.ac): ... to here.
363
364 2011-05-22  Bruno Haible  <bruno@clisp.org>
365
366         strptime: Move AC_LIBOBJ invocations to module description.
367         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
368         gl_PREREQ_STRPTIME invocations from here...
369         * modules/strptime (configure.ac): ... to here.
370
371 2011-05-22  Bruno Haible  <bruno@clisp.org>
372
373         strpbrk: Move AC_LIBOBJ invocations to module description.
374         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
375         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
376         here...
377         * modules/strpbrk (configure.ac): ... to here.
378
379 2011-05-22  Bruno Haible  <bruno@clisp.org>
380
381         strnlen: Move AC_LIBOBJ invocations to module description.
382         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
383         invocations from here...
384         * modules/strnlen (configure.ac): ... to here.
385
386 2011-05-22  Bruno Haible  <bruno@clisp.org>
387
388         strndup: Move AC_LIBOBJ invocations to module description.
389         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
390         invocations from here...
391         * modules/strndup (configure.ac): ... to here.
392         (Depends-on): Update conditions.
393
394 2011-05-22  Bruno Haible  <bruno@clisp.org>
395
396         strncat: Move AC_LIBOBJ invocations to module description.
397         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
398         invocations from here...
399         * modules/strncat (configure.ac): ... to here.
400
401 2011-05-22  Bruno Haible  <bruno@clisp.org>
402
403         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
404         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
405         invocations from here...
406         * modules/strdup (configure.ac): ... to here.
407         * modules/strdup-posix (configure.ac): ... and here.
408
409 2011-05-22  Bruno Haible  <bruno@clisp.org>
410
411         strcspn: Move AC_LIBOBJ invocations to module description.
412         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
413         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
414         here...
415         * modules/strcspn (configure.ac): ... to here.
416
417 2011-05-22  Bruno Haible  <bruno@clisp.org>
418
419         strchrnul: Move AC_LIBOBJ invocations to module description.
420         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
421         gl_PREREQ_STRCHRNUL invocations from here...
422         * modules/strchrnul (configure.ac): ... to here.
423
424 2011-05-22  Bruno Haible  <bruno@clisp.org>
425
426         strcasestr*: Move AC_LIBOBJ invocations to module description.
427         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
428         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
429         * modules/strcasestr-simple (configure.ac): ... to here.
430         * modules/strcasestr (configure.ac): ... and here.
431
432 2011-05-22  Bruno Haible  <bruno@clisp.org>
433
434         strcase: Move AC_LIBOBJ invocations to module description.
435         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
436         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
437         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
438         gl_PREREQ_STRNCASECMP invocations from here...
439         * modules/strcase (configure.ac): ... to here.
440
441 2011-05-22  Bruno Haible  <bruno@clisp.org>
442
443         stpncpy: Move AC_LIBOBJ invocations to module description.
444         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
445         here...
446         * modules/stpncpy (configure.ac): ... to here.
447
448 2011-05-22  Bruno Haible  <bruno@clisp.org>
449
450         stpcpy: Move AC_LIBOBJ invocations to module description.
451         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
452         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
453         here...
454         * modules/stpcpy (configure.ac): ... to here.
455
456 2011-05-21  Bruno Haible  <bruno@clisp.org>
457
458         stat: Move AC_LIBOBJ invocations to module description.
459         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
460         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
461         here...
462         * modules/stat (configure.ac): ... to here.
463
464 2011-05-21  Bruno Haible  <bruno@clisp.org>
465
466         sleep: Move AC_LIBOBJ invocations to module description.
467         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
468         * modules/sleep (configure.ac): ... to here.
469
470 2011-05-21  Bruno Haible  <bruno@clisp.org>
471
472         signbit: Move AC_LIBOBJ invocations to module description.
473         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
474         * modules/signbit (configure.ac): ... to here.
475
476 2011-05-21  Bruno Haible  <bruno@clisp.org>
477
478         sigprocmask: Move AC_LIBOBJ invocations to module description.
479         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
480         gl_PREREQ_SIGPROMASK invocations from here...
481         * modules/sigprocmask (configure.ac): ... to here.
482
483 2011-05-21  Bruno Haible  <bruno@clisp.org>
484
485         sigaction: Move AC_LIBOBJ invocations to module description.
486         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
487         gl_PREREQ_SIGACTION invocations from here...
488         * modules/sigaction (configure.ac): ... to here.
489
490 2011-05-21  Bruno Haible  <bruno@clisp.org>
491
492         sig2str: Move AC_LIBOBJ invocations to module description.
493         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
494         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
495         here...
496         * modules/sig2str (configure.ac): ... to here.
497
498 2011-05-21  Bruno Haible  <bruno@clisp.org>
499
500         setlocale: Move AC_LIBOBJ invocations to module description.
501         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
502         gl_PREREQ_SETLOCALE invocations from here...
503         * modules/setlocale (configure.ac): ... to here.
504
505 2011-05-21  Bruno Haible  <bruno@clisp.org>
506
507         unsetenv: Move AC_LIBOBJ invocations to module description.
508         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
509         and gl_PREREQ_UNSETENV invocations from here...
510         * modules/unsetenv (configure.ac): ... to here.
511         (Depends-on): Update.
512
513 2011-05-21  Bruno Haible  <bruno@clisp.org>
514
515         setenv: Move AC_LIBOBJ invocations to module description.
516         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
517         here...
518         * modules/setenv (configure.ac): ... to here.
519
520 2011-05-21  Bruno Haible  <bruno@clisp.org>
521
522         selinux-h: Move AC_LIBOBJ invocations to module description.
523         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
524         AC_LIBOBJ invocation from here...
525         * modules/selinux-h (configure.ac): ... to here.
526
527 2011-05-21  Bruno Haible  <bruno@clisp.org>
528
529         select: Respect rules for use of AC_LIBOBJ.
530         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
531         here...
532         * modules/select (configure.ac): ... to here.
533
534 2011-05-21  Bruno Haible  <bruno@clisp.org>
535
536         scandir: Move AC_LIBOBJ invocations to module description.
537         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
538         invocations from here...
539         * modules/scandir (configure.ac): ... to here.
540
541 2011-05-21  Bruno Haible  <bruno@clisp.org>
542
543         rpmatch: Move AC_LIBOBJ invocations to module description.
544         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
545         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
546         here...
547         * modules/rpmatch (configure.ac): ... to here.
548
549 2011-05-21  Bruno Haible  <bruno@clisp.org>
550
551         rmdir: Respect rules for use of AC_LIBOBJ.
552         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
553         * modules/rmdir (configure.ac): ... to here.
554
555 2011-05-21  Bruno Haible  <bruno@clisp.org>
556
557         renameat: Move AC_LIBOBJ invocations to module description.
558         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
559         here...
560         * modules/renameat (configure.ac): ... to here.
561
562 2011-05-21  Bruno Haible  <bruno@clisp.org>
563
564         rename: Respect rules for use of AC_LIBOBJ.
565         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
566         here...
567         * modules/rename (configure.ac): ... to here.
568
569 2011-05-21  Bruno Haible  <bruno@clisp.org>
570
571         remove: Move AC_LIBOBJ invocations to module description.
572         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
573         here...
574         * modules/remove (configure.ac): ... to here.
575
576 2011-05-21  Bruno Haible  <bruno@clisp.org>
577
578         relocatable-lib: Move AC_LIBOBJ invocations to module description.
579         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
580         macro.
581         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
582         * modules/relocatable-lib (configure.ac): ... to here.
583         * modules/relocatable-prog-wrapper (configure.ac): Invoke
584         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
585
586 2011-05-21  Bruno Haible  <bruno@clisp.org>
587
588         relocatable-prog: Move AC_LIBOBJ invocations to module description.
589         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
590         here...
591         * modules/relocatable-prog (configure.ac): ... to here.
592
593 2011-05-21  Bruno Haible  <bruno@clisp.org>
594
595         regex: Move AC_LIBOBJ invocations to module description.
596         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
597         invocations from here...
598         * modules/regex (configure.ac): ... to here.
599
600 2011-05-21  Bruno Haible  <bruno@clisp.org>
601
602         realloc-*: Move AC_LIBOBJ invocations to module description.
603         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
604         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
605         AC_LIBOBJ invocations from here...
606         * modules/realloc-gnu (configure.ac): ... to here.
607         * modules/realloc-posix (configure.ac): ... and here.
608
609 2011-05-21  Bruno Haible  <bruno@clisp.org>
610
611         readutmp: Move AC_LIBOBJ invocations to module description.
612         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
613         * modules/readutmp (configure.ac): ... to here.
614
615 2011-05-21  Bruno Haible  <bruno@clisp.org>
616
617         readlinkat: Move AC_LIBOBJ invocations to module description.
618         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
619         here...
620         * modules/readlinkat (configure.ac): ... to here.
621
622 2011-05-21  Bruno Haible  <bruno@clisp.org>
623
624         readlink: Move AC_LIBOBJ invocations to module description.
625         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
626         gl_PREREQ_READLINK invocations from here...
627         * modules/readlink (configure.ac): ... to here.
628
629 2011-05-21  Bruno Haible  <bruno@clisp.org>
630
631         readline: Move AC_LIBOBJ invocations to module description.
632         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
633         gl_PREREQ_READLINE invocations from here...
634         * modules/readline (configure.ac): ... to here.
635
636 2011-05-21  Bruno Haible  <bruno@clisp.org>
637
638         read: Move AC_LIBOBJ invocations to module description.
639         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
640         * modules/read (configure.ac): ... to here.
641
642 2011-05-21  Bruno Haible  <bruno@clisp.org>
643
644         rawmemchr: Move AC_LIBOBJ invocations to module description.
645         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
646         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
647         from here...
648         * modules/rawmemchr (configure.ac): ... to here.
649
650 2011-05-21  Bruno Haible  <bruno@clisp.org>
651
652         random_r: Move AC_LIBOBJ invocations to module description.
653         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
654         gl_PREREQ_RANDOM_R invocations from here...
655         * modules/random_r (configure.ac): ... to here.
656
657 2011-05-21  Bruno Haible  <bruno@clisp.org>
658
659         pwrite: Move AC_LIBOBJ invocations to module description.
660         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
661         * modules/pwrite (configure.ac): ... to here.
662
663 2011-05-21  Bruno Haible  <bruno@clisp.org>
664
665         putenv: Move AC_LIBOBJ invocations to module description.
666         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
667         * modules/putenv (configure.ac): ... to here.
668
669 2011-05-21  Bruno Haible  <bruno@clisp.org>
670
671         login_tty: Move AC_LIBOBJ invocations to module description.
672         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
673         * modules/login_tty (configure.ac): ... to here.
674
675 2011-05-21  Bruno Haible  <bruno@clisp.org>
676
677         openpty: Move AC_LIBOBJ invocations to module description.
678         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
679         * modules/openpty (configure.ac): ... to here.
680
681 2011-05-21  Bruno Haible  <bruno@clisp.org>
682
683         forkpty: Move AC_LIBOBJ invocations to module description.
684         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
685         * modules/forkpty (configure.ac): ... to here.
686
687 2011-05-21  Bruno Haible  <bruno@clisp.org>
688
689         ptsname: Move AC_LIBOBJ invocations to module description.
690         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
691         invocations from here...
692         * modules/ptsname (configure.ac): ... to here.
693
694 2011-05-21  Bruno Haible  <bruno@clisp.org>
695
696         pread: Move AC_LIBOBJ invocations to module description.
697         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
698         * modules/pread (configure.ac): ... to here.
699
700 2011-05-21  Bruno Haible  <bruno@clisp.org>
701
702         posix_spawn*: Move AC_LIBOBJ invocations to module description.
703         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
704         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
705         * modules/posix_spawn (configure.ac): ... to here.
706         * modules/posix_spawnp (configure.ac): ... and here.
707
708 2011-05-21  Bruno Haible  <bruno@clisp.org>
709
710         popen: Move AC_LIBOBJ invocations to module description.
711         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
712         invocations from here...
713         * modules/popen (configure.ac): ... to here.
714
715 2011-05-21  Bruno Haible  <bruno@clisp.org>
716
717         poll: Move AC_LIBOBJ invocations to module description.
718         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
719         invocations from here...
720         * modules/poll (configure.ac): ... to here.
721
722 2011-05-21  Bruno Haible  <bruno@clisp.org>
723
724         pipe-posix: Move AC_LIBOBJ invocations to module description.
725         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
726         * modules/pipe-posix (configure.ac): ... to here.
727
728 2011-05-21  Bruno Haible  <bruno@clisp.org>
729
730         openat: Respect rules for use of AC_LIBOBJ.
731         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
732         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
733         * modules/openat (configure.ac): ... to here.
734
735 2011-05-21  Bruno Haible  <bruno@clisp.org>
736
737         obstack-printf*: Move AC_LIBOBJ invocations to module description.
738         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
739         invocation from here...
740         * modules/obstack-printf (configure.ac): ... to here.
741         * modules/obstack-printf-posix (configure.ac): ... and here.
742
743 2011-05-21  Bruno Haible  <bruno@clisp.org>
744
745         nl_langinfo: Move AC_LIBOBJ invocations to module description.
746         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
747         from here...
748         * modules/nl_langinfo (configure.ac): ... to here.
749
750 2011-05-21  Bruno Haible  <bruno@clisp.org>
751
752         nanosleep: Move AC_LIBOBJ invocations to module description.
753         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
754         gl_PREREQ_NANOSLEEP invocations from here...
755         * modules/nanosleep (configure.ac): ... to here.
756
757 2011-05-21  Bruno Haible  <bruno@clisp.org>
758
759         mountlist: Move AC_LIBOBJ invocations to module description.
760         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
761         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
762         * modules/mountlist (configure.ac): ... to here.
763
764 2011-05-21  Bruno Haible  <bruno@clisp.org>
765
766         mktime: Respect rules for use of AC_LIBOBJ.
767         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
768         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
769         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
770         (gl_FUNC_MKTIME_INTERNAL): ... and here...
771         * modules/mktime (configure.ac): ... to here.
772         * modules/mktime-internal (configure.ac): ... and here.
773         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
774
775 2011-05-21  Bruno Haible  <bruno@clisp.org>
776
777         mkstemps: Move AC_LIBOBJ invocations to module description.
778         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
779         here...
780         * modules/mkstemps (configure.ac): ... to here.
781
782 2011-05-21  Bruno Haible  <bruno@clisp.org>
783
784         mkstemp: Move AC_LIBOBJ invocations to module description.
785         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
786         gl_PREREQ_MKSTEMP invocations from here...
787         * modules/mkstemp (configure.ac): ... to here.
788
789 2011-05-21  Bruno Haible  <bruno@clisp.org>
790
791         mkostemps: Move AC_LIBOBJ invocations to module description.
792         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
793         here...
794         * modules/mkostemps (configure.ac): ... to here.
795
796 2011-05-21  Bruno Haible  <bruno@clisp.org>
797
798         mkostemp: Move AC_LIBOBJ invocations to module description.
799         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
800         gl_PREREQ_MKOSTEMP invocations from here...
801         * modules/mkostemp (configure.ac): ... to here.
802
803 2011-05-21  Bruno Haible  <bruno@clisp.org>
804
805         mknod: Move AC_LIBOBJ invocations to module description.
806         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
807         * modules/mknod (configure.ac): ... to here.
808
809 2011-05-21  Bruno Haible  <bruno@clisp.org>
810
811         mkfifoat: Move AC_LIBOBJ invocations to module description.
812         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
813         here...
814         * modules/mkfifoat (configure.ac): ... to here.
815
816 2011-05-21  Bruno Haible  <bruno@clisp.org>
817
818         mkfifo: Respect rules for use of AC_LIBOBJ.
819         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
820         here...
821         * modules/mkfifo (configure.ac): ... to here.
822
823 2011-05-21  Bruno Haible  <bruno@clisp.org>
824
825         mkdtemp: Move AC_LIBOBJ invocations to module description.
826         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
827         invocations from here...
828         * modules/mkdtemp (configure.ac): ... to here.
829
830 2011-05-21  Bruno Haible  <bruno@clisp.org>
831
832         mkdir: Move AC_LIBOBJ invocations to module description.
833         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
834         * modules/mkdir (configure.ac): ... to here.
835
836 2011-05-21  Bruno Haible  <bruno@clisp.org>
837
838         memset: Move AC_LIBOBJ invocations to module description.
839         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
840         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
841         here...
842         * modules/memset (configure.ac): ... to here.
843
844 2011-05-21  Bruno Haible  <bruno@clisp.org>
845
846         memrchr: Move AC_LIBOBJ invocations to module description.
847         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
848         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
849         here...
850         * modules/memrchr (configure.ac): ... to here.
851
852 2011-05-21  Bruno Haible  <bruno@clisp.org>
853
854         mempcpy: Move AC_LIBOBJ invocations to module description.
855         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
856         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
857         here...
858         * modules/mempcpy (configure.ac): ... to here.
859
860 2011-05-21  Bruno Haible  <bruno@clisp.org>
861
862         memmove: Move AC_LIBOBJ invocations to module description.
863         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
864         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
865         here...
866         * modules/memmove (configure.ac): ... to here.
867
868 2011-05-21  Bruno Haible  <bruno@clisp.org>
869
870         memmem*: Move AC_LIBOBJ invocations to module description.
871         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
872         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
873         here...
874         (gl_FUNC_MEMMEM): ... and here...
875         * modules/memmem-simple (configure.ac): ... to here.
876         * modules/memmem (configure.ac): ... and here.
877
878 2011-05-21  Bruno Haible  <bruno@clisp.org>
879
880         memcpy: Move AC_LIBOBJ invocations to module description.
881         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
882         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
883         here...
884         * modules/memcpy (configure.ac): ... to here.
885
886 2011-05-21  Bruno Haible  <bruno@clisp.org>
887
888         memcmp: Simplify autoconf macro.
889         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
890         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
891         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
892
893 2011-05-21  Bruno Haible  <bruno@clisp.org>
894
895         memcmp: Move AC_LIBOBJ invocations to module description.
896         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
897         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
898         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
899         * modules/memcmp (configure.ac): ... to here.
900         (Depends-on): Update conditions.
901
902 2011-05-21  Bruno Haible  <bruno@clisp.org>
903
904         memchr: Respect rules for use of AC_LIBOBJ.
905         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
906         invocations from here...
907         * modules/memchr (configure.ac): ... to here.
908
909 2011-05-21  Bruno Haible  <bruno@clisp.org>
910
911         mbtowc: Move AC_LIBOBJ invocations to module description.
912         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
913         invocations from here...
914         * modules/mbtowc (configure.ac): ... to here.
915
916 2011-05-21  Bruno Haible  <bruno@clisp.org>
917
918         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
919         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
920         gl_PREREQ_MBSRTOWCS invocations from here...
921         * modules/mbsrtowcs (configure.ac): ... to here.
922
923 2011-05-21  Bruno Haible  <bruno@clisp.org>
924
925         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
926         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
927         gl_PREREQ_MBSNRTOWCS invocations from here...
928         * modules/mbsnrtowcs (configure.ac): ... to here.
929
930 2011-05-21  Bruno Haible  <bruno@clisp.org>
931
932         mbsinit: Move AC_LIBOBJ invocations to module description.
933         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
934         invocations from here...
935         * modules/mbsinit (configure.ac): ... to here.
936
937 2011-05-21  Bruno Haible  <bruno@clisp.org>
938
939         mbrlen: Move AC_LIBOBJ invocations to module description.
940         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
941         invocations from here...
942         * modules/mbrlen (configure.ac): ... to here.
943
944 2011-05-21  Bruno Haible  <bruno@clisp.org>
945
946         mbrtowc: Respect rules for use of AC_LIBOBJ.
947         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
948         invocations from here...
949         * modules/mbrtowc (configure.ac): ... to here.
950
951 2011-05-21  Bruno Haible  <bruno@clisp.org>
952
953         malloc-*: Move AC_LIBOBJ invocations to module description.
954         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
955         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
956         AC_LIBOBJ invocations from here...
957         * modules/malloc-gnu (configure.ac): ... to here.
958         * modules/malloc-posix (configure.ac): ... and here.
959
960 2011-05-21  Bruno Haible  <bruno@clisp.org>
961
962         lstat, openat: Respect rules for use of AC_LIBOBJ.
963         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
964         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
965         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
966         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
967         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
968         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
969         here.
970         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
971
972 2011-05-21  Bruno Haible  <bruno@clisp.org>
973
974         lseek: Move AC_LIBOBJ invocations to module description.
975         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
976         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
977         * modules/lseek (configure.ac): ... to here.
978
979 2011-05-21  Bruno Haible  <bruno@clisp.org>
980
981         linkat: Move AC_LIBOBJ invocations to module description.
982         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
983         here...
984         * modules/linkat (configure.ac): ... to here.
985
986 2011-05-21  Bruno Haible  <bruno@clisp.org>
987
988         link: Respect rules for use of AC_LIBOBJ.
989         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
990         * modules/link (configure.ac): ... to here.
991
992 2011-05-21  Bruno Haible  <bruno@clisp.org>
993
994         lchown: Move AC_LIBOBJ invocations to module description.
995         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
996         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
997         * modules/lchown (configure.ac): ... to here.
998
999 2011-05-21  Bruno Haible  <bruno@clisp.org>
1000
1001         iswctype: Move AC_LIBOBJ invocations to module description.
1002         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
1003         here...
1004         * modules/iswctype (configure.ac): ... to here.
1005
1006 2011-05-21  Bruno Haible  <bruno@clisp.org>
1007
1008         iswblank: Move AC_LIBOBJ invocations to module description.
1009         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
1010         here...
1011         * modules/iswblank (configure.ac): ... to here.
1012
1013 2011-05-21  Bruno Haible  <bruno@clisp.org>
1014
1015         atanl: Move AC_LIBOBJ invocations to module description.
1016         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
1017         * modules/atanl (configure.ac): ... to here.
1018
1019 2011-05-21  Bruno Haible  <bruno@clisp.org>
1020
1021         acosl: Move AC_LIBOBJ invocations to module description.
1022         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
1023         * modules/acosl (configure.ac): ... to here.
1024
1025 2011-05-21  Bruno Haible  <bruno@clisp.org>
1026
1027         asinl: Respect rules for use of AC_LIBOBJ.
1028         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
1029         * modules/asinl (configure.ac): ... to here.
1030
1031 2011-05-21  Bruno Haible  <bruno@clisp.org>
1032
1033         tanl: Move AC_LIBOBJ invocations to module description.
1034         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
1035         * modules/tanl (configure.ac): ... to here.
1036
1037 2011-05-21  Bruno Haible  <bruno@clisp.org>
1038
1039         cosl: Move AC_LIBOBJ invocations to module description.
1040         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
1041         * modules/cosl (configure.ac): ... to here.
1042
1043 2011-05-21  Bruno Haible  <bruno@clisp.org>
1044
1045         sinl: Move AC_LIBOBJ invocations to module description.
1046         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
1047         * modules/sinl (configure.ac): ... to here.
1048
1049 2011-05-21  Bruno Haible  <bruno@clisp.org>
1050
1051         logl: Move AC_LIBOBJ invocations to module description.
1052         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
1053         * modules/logl (configure.ac): ... to here.
1054
1055 2011-05-21  Bruno Haible  <bruno@clisp.org>
1056
1057         expl: Move AC_LIBOBJ invocations to module description.
1058         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
1059         * modules/expl (configure.ac): ... to here.
1060
1061 2011-05-21  Bruno Haible  <bruno@clisp.org>
1062
1063         roundl: Move AC_LIBOBJ invocations to module description.
1064         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
1065         * modules/roundl (configure.ac): ... to here.
1066
1067 2011-05-21  Bruno Haible  <bruno@clisp.org>
1068
1069         round: Move AC_LIBOBJ invocations to module description.
1070         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
1071         * modules/round (configure.ac): ... to here.
1072
1073 2011-05-21  Bruno Haible  <bruno@clisp.org>
1074
1075         roundf: Move AC_LIBOBJ invocations to module description.
1076         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
1077         * modules/roundf (configure.ac): ... to here.
1078
1079 2011-05-21  Bruno Haible  <bruno@clisp.org>
1080
1081         truncl: Move AC_LIBOBJ invocations to module description.
1082         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
1083         * modules/truncl (configure.ac): ... to here.
1084
1085 2011-05-21  Bruno Haible  <bruno@clisp.org>
1086
1087         trunc: Move AC_LIBOBJ invocations to module description.
1088         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
1089         * modules/trunc (configure.ac): ... to here.
1090
1091 2011-05-21  Bruno Haible  <bruno@clisp.org>
1092
1093         truncf: Move AC_LIBOBJ invocations to module description.
1094         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
1095         * modules/truncf (configure.ac): ... to here.
1096
1097 2011-05-21  Bruno Haible  <bruno@clisp.org>
1098
1099         ceill: Move AC_LIBOBJ invocations to module description.
1100         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
1101         * modules/ceill (configure.ac): ... to here.
1102
1103 2011-05-21  Bruno Haible  <bruno@clisp.org>
1104
1105         ceil: Move AC_LIBOBJ invocations to module description.
1106         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
1107         * modules/ceil (configure.ac): ... to here.
1108
1109 2011-05-21  Bruno Haible  <bruno@clisp.org>
1110
1111         ceilf: Move AC_LIBOBJ invocations to module description.
1112         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
1113         * modules/ceilf (configure.ac): ... to here.
1114
1115 2011-05-21  Bruno Haible  <bruno@clisp.org>
1116
1117         floorl: Respect rules for use of AC_LIBOBJ.
1118         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
1119         * modules/floorl (configure.ac): ... to here.
1120
1121 2011-05-21  Bruno Haible  <bruno@clisp.org>
1122
1123         floor: Respect rules for use of AC_LIBOBJ.
1124         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
1125         * modules/floor (configure.ac): ... to here.
1126
1127 2011-05-21  Bruno Haible  <bruno@clisp.org>
1128
1129         floorf: Move AC_LIBOBJ invocations to module description.
1130         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
1131         * modules/floorf (configure.ac): ... to here.
1132
1133 2011-05-20  Bruno Haible  <bruno@clisp.org>
1134
1135         sqrtl: Respect rules for use of AC_LIBOBJ.
1136         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
1137         * modules/sqrtl (configure.ac): ... to here.
1138
1139 2011-05-20  Bruno Haible  <bruno@clisp.org>
1140
1141         ldexpl: Respect rules for use of AC_LIBOBJ.
1142         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
1143         * modules/ldexpl (configure.ac): ... to here.
1144
1145 2011-05-20  Bruno Haible  <bruno@clisp.org>
1146
1147         frexpl*: Respect rules for use of AC_LIBOBJ.
1148         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
1149         invocation from here...
1150         * modules/frexpl (configure.ac): ... to here.
1151         * modules/frexpl-nolibm (configure.ac): ... and here.
1152
1153 2011-05-20  Bruno Haible  <bruno@clisp.org>
1154
1155         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
1156         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
1157         invocation from here...
1158         * modules/frexp (configure.ac): ... to here.
1159         * modules/frexp-nolibm (configure.ac): ... and here.
1160
1161 2011-05-20  Bruno Haible  <bruno@clisp.org>
1162
1163         isnan: Respect rules for use of AC_LIBOBJ.
1164         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
1165         invocations here.
1166         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
1167         REPLACE_ISNAN.
1168         * modules/isnand (configure.ac): Likewise.
1169         * modules/isnanl (configure.ac): Likewise.
1170
1171 2011-05-20  Bruno Haible  <bruno@clisp.org>
1172
1173         isnanl*: Respect rules for use of AC_LIBOBJ.
1174         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
1175         invocation from here...
1176         * modules/isnanl (configure.ac): ... to here.
1177         * modules/isnanl-nolibm (configure.ac): ... and here.
1178
1179 2011-05-20  Bruno Haible  <bruno@clisp.org>
1180
1181         isnand*: Move AC_LIBOBJ invocations to module description.
1182         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
1183         invocation from here...
1184         * modules/isnand (configure.ac): ... to here.
1185         * modules/isnand-nolibm (configure.ac): ... and here.
1186
1187 2011-05-20  Bruno Haible  <bruno@clisp.org>
1188
1189         isnanf*: Move AC_LIBOBJ invocations to module description.
1190         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
1191         invocation from here...
1192         * modules/isnanf (configure.ac): ... to here.
1193         * modules/isnanf-nolibm (configure.ac): ... and here.
1194
1195 2011-05-20  Bruno Haible  <bruno@clisp.org>
1196
1197         isnan*: Separate the AC_LIBOBJ invocations.
1198         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
1199         AC_LIBOBJ invocation.
1200         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
1201         here.
1202         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
1203         AC_LIBOBJ invocation.
1204         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
1205         here.
1206         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
1207         AC_LIBOBJ invocation.
1208         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
1209         here.
1210         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
1211
1212 2011-05-08  Bruno Haible  <bruno@clisp.org>
1213
1214         isinf: Move AC_LIBOBJ invocations to module description.
1215         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
1216         * modules/isinf (configure.ac): ... to here.
1217
1218 2011-05-08  Bruno Haible  <bruno@clisp.org>
1219
1220         isfinite: Move AC_LIBOBJ invocations to module description.
1221         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
1222         * modules/isfinite (configure.ac): ... to here.
1223
1224 2011-05-08  Bruno Haible  <bruno@clisp.org>
1225
1226         isblank: Move AC_LIBOBJ invocations to module description.
1227         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
1228         here...
1229         * modules/isblank (configure.ac): ... to here.
1230
1231 2011-05-08  Bruno Haible  <bruno@clisp.org>
1232
1233         isapipe: Move AC_LIBOBJ invocations to module description.
1234         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
1235         gl_PREREQ_ISAPIPE invocations from here...
1236         * modules/isapipe (configure.ac): ... to here.
1237         (Depends-on): Update condition.
1238
1239 2011-05-08  Bruno Haible  <bruno@clisp.org>
1240
1241         ioctl: Move AC_LIBOBJ invocations to module description.
1242         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
1243         invocations from here...
1244         * modules/ioctl (configure.ac): ... to here.
1245         (Depends-on): Update condition.
1246
1247 2011-05-08  Bruno Haible  <bruno@clisp.org>
1248
1249         imaxdiv: Move AC_LIBOBJ invocations to module description.
1250         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
1251         invocations from here...
1252         * modules/imaxdiv (configure.ac): ... to here.
1253
1254 2011-05-08  Bruno Haible  <bruno@clisp.org>
1255
1256         imaxabs: Move AC_LIBOBJ invocations to module description.
1257         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
1258         invocations from here...
1259         * modules/imaxabs (configure.ac): ... to here.
1260
1261 2011-05-08  Bruno Haible  <bruno@clisp.org>
1262
1263         getaddrinfo: Move AC_LIBOBJ invocations to module description.
1264         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
1265         AC_LIBOBJ invocations from here...
1266         * modules/getaddrinfo (configure.ac): ... to here.
1267         (Depends-on): Add conditions.
1268
1269 2011-05-08  Bruno Haible  <bruno@clisp.org>
1270
1271         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
1272         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
1273         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
1274         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
1275         (gl_PREREQ_INET_PTON): ... from here.
1276         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
1277         gl_PREREQ_INET_PTON here.
1278         (Depends-on): Update condition.
1279
1280 2011-05-08  Bruno Haible  <bruno@clisp.org>
1281
1282         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
1283         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
1284         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
1285         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
1286         (gl_PREREQ_INET_NTOP): ... from here.
1287         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
1288         gl_PREREQ_INET_NTOP here.
1289         (Depends-on): Update condition.
1290
1291 2011-05-08  Bruno Haible  <bruno@clisp.org>
1292
1293         iconv_open: Move AC_LIBOBJ invocations to module description.
1294         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
1295         AC_LIBOBJ invocations from here...
1296         * modules/iconv_open (configure.ac): ... to here.
1297
1298 2011-05-08  Bruno Haible  <bruno@clisp.org>
1299
1300         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
1301         If module 'iconv_open' is among the main modules and module
1302         'iconv_open-utf' is among the tests dependencies, then
1303         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
1304         return the special iconv_t values. Therefore iconv() and iconv_close()
1305         must support these special iconv_t values, already in lib, not only in
1306         tests.
1307         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
1308         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
1309         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
1310         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
1311         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
1312         (Depends-on): Add the dependencies of iconv_open-utf.
1313         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
1314         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
1315         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
1316
1317 2011-05-08  Bruno Haible  <bruno@clisp.org>
1318
1319         group-member: Move AC_LIBOBJ invocations to module description.
1320         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
1321         gl_PREREQ_GROUP_MEMBER invocations from here...
1322         * modules/group-member (configure.ac): ... to here.
1323
1324 2011-05-08  Bruno Haible  <bruno@clisp.org>
1325
1326         grantpt: Move AC_LIBOBJ invocations to module description.
1327         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
1328         invocations from here...
1329         * modules/grantpt (configure.ac): ... to here.
1330
1331 2011-05-08  Bruno Haible  <bruno@clisp.org>
1332
1333         glob: Move AC_LIBOBJ invocations to module description.
1334         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
1335         from here...
1336         * modules/glob (configure.ac): ... to here.
1337
1338 2011-05-08  Bruno Haible  <bruno@clisp.org>
1339
1340         getusershell: Move AC_LIBOBJ invocations to module description.
1341         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
1342         Move AC_LIBOBJ invocation from here...
1343         * modules/getusershell (configure.ac): ... to here.
1344         (Depends-on): Update condition.
1345
1346 2011-05-08  Bruno Haible  <bruno@clisp.org>
1347
1348         gettimeofday: Move AC_LIBOBJ invocations to module description.
1349         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
1350         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
1351         gl_PREREQ_GETTIMEOFDAY invocations from here...
1352         * modules/gettimeofday (configure.ac): ... to here.
1353
1354 2011-05-08  Bruno Haible  <bruno@clisp.org>
1355
1356         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
1357         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
1358         just gl_FUNC_TZSET.
1359         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
1360         (gl_FUNC_TZSET_CLOBBER): Remove actions.
1361         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
1362         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
1363
1364 2011-05-08  Bruno Haible  <bruno@clisp.org>
1365
1366         getsubopt: Move AC_LIBOBJ invocations to module description.
1367         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
1368         gl_PREREQ_GETSUBOPT invocations from here...
1369         * modules/getsubopt (configure.ac): ... to here.
1370
1371 2011-05-08  Bruno Haible  <bruno@clisp.org>
1372
1373         getpass-gnu: Move AC_LIBOBJ invocations to module description.
1374         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
1375         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
1376         * modules/getpass-gnu (configure.ac): ... to here.
1377
1378 2011-05-08  Bruno Haible  <bruno@clisp.org>
1379
1380         getpass: Move AC_LIBOBJ invocations to module description.
1381         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
1382         gl_PREREQ_GETPASS invocations from here...
1383         * modules/getpass (configure.ac): ... to here.
1384
1385 2011-05-08  Bruno Haible  <bruno@clisp.org>
1386
1387         getpagesize: Move AC_LIBOBJ invocations to module description.
1388         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
1389         from here...
1390         * modules/getpagesize (configure.ac): ... to here.
1391
1392 2011-05-08  Bruno Haible  <bruno@clisp.org>
1393
1394         getopt: Move AC_LIBOBJ invocations to module description.
1395         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
1396         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
1397         invocations from here...
1398         * modules/getopt-gnu (configure.ac): ... to here.
1399         * modules/getopt-posix (configure.ac): ... and here.
1400         (Depends-on): Update condition.
1401
1402 2011-05-08  Bruno Haible  <bruno@clisp.org>
1403
1404         getopt, argp: Respect rules for use of AC_LIBOBJ.
1405         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
1406         (gl_REPLACE_GETOPT_ALWAYS): New macro.
1407         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
1408         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
1409
1410 2011-05-08  Bruno Haible  <bruno@clisp.org>
1411
1412         getlogin_r: Move AC_LIBOBJ invocations to module description.
1413         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
1414         gl_PREREQ_GETLOGIN_R invocations from here...
1415         * modules/getlogin_r (configure.ac): ... to here.
1416
1417 2011-05-08  Bruno Haible  <bruno@clisp.org>
1418
1419         getlogin: Move AC_LIBOBJ invocations to module description.
1420         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
1421         here...
1422         * modules/getlogin (configure.ac): ... to here.
1423
1424 2011-05-08  Bruno Haible  <bruno@clisp.org>
1425
1426         getloadavg: Move AC_LIBOBJ invocations to module description.
1427         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
1428         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
1429         * modules/getloadavg (configure.ac): ... to here.
1430
1431 2011-05-08  Bruno Haible  <bruno@clisp.org>
1432
1433         gethrxtime: Move AC_LIBOBJ invocations to module description.
1434         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
1435         LIB_GETHRXTIME from here...
1436         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
1437         invocations from here...
1438         * modules/gethrxtime (configure.ac): ... to here.
1439
1440 2011-05-08  Bruno Haible  <bruno@clisp.org>
1441
1442         gethostname: Move AC_LIBOBJ invocations to module description.
1443         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
1444         gl_PREREQ_GETHOSTNAME invocations from here...
1445         * modules/gethostname (configure.ac): ... to here.
1446
1447 2011-05-08  Bruno Haible  <bruno@clisp.org>
1448
1449         getgroups: Move AC_LIBOBJ invocations to module description.
1450         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
1451         here...
1452         * modules/getgroups (configure.ac): ... to here.
1453
1454 2011-05-08  Bruno Haible  <bruno@clisp.org>
1455
1456         getdtablesize: Move AC_LIBOBJ invocations to module description.
1457         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
1458         invocation from here...
1459         * modules/getdtablesize (configure.ac): ... to here.
1460
1461 2011-05-08  Bruno Haible  <bruno@clisp.org>
1462
1463         getdomainname: Move AC_LIBOBJ invocations to module description.
1464         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
1465         gl_PREREQ_GETDOMAINNAME invocations from here...
1466         * modules/getdomainname (configure.ac): ... to here.
1467
1468 2011-05-08  Bruno Haible  <bruno@clisp.org>
1469
1470         getline: Move AC_LIBOBJ invocations to module description.
1471         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
1472         invocations from here...
1473         * modules/getline (configure.ac): ... to here.
1474
1475 2011-05-08  Bruno Haible  <bruno@clisp.org>
1476
1477         getline: Simplify.
1478         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
1479         It's already handled through the module dependency.
1480
1481 2011-05-08  Bruno Haible  <bruno@clisp.org>
1482
1483         getdelim: Move AC_LIBOBJ invocations to module description.
1484         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
1485         and gl_PREREQ_GETDELIM invocations from here...
1486         * modules/getdelim (configure.ac): ... to here.
1487         (Depends-on): Fix condition.
1488
1489 2011-05-08  Bruno Haible  <bruno@clisp.org>
1490
1491         getcwd: Move AC_LIBOBJ invocations to module description.
1492         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
1493         invocations from here...
1494         * modules/getcwd (configure.ac): ... to here.
1495
1496 2011-05-08  Bruno Haible  <bruno@clisp.org>
1497
1498         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
1499         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
1500         here...
1501         * modules/getcwd-lgpl (configure.ac): ... to here.
1502
1503 2011-05-07  Bruno Haible  <bruno@clisp.org>
1504
1505         crypto/gc: Move AC_LIBOBJ invocations to module description.
1506         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
1507         * modules/crypto/gc (configure.ac): ... to here.
1508
1509 2011-05-07  Bruno Haible  <bruno@clisp.org>
1510
1511         fwriting: Move AC_LIBOBJ invocations to module description.
1512         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
1513         here...
1514         * modules/fwriting (configure.ac): ... to here.
1515
1516 2011-05-07  Bruno Haible  <bruno@clisp.org>
1517
1518         fwritable: Move AC_LIBOBJ invocations to module description.
1519         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
1520         here...
1521         * modules/fwritable (configure.ac): ... to here.
1522
1523 2011-05-07  Bruno Haible  <bruno@clisp.org>
1524
1525         futimens: Move AC_LIBOBJ invocations to module description.
1526         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
1527         here...
1528         * modules/futimens (configure.ac): ... to here.
1529
1530 2011-05-07  Bruno Haible  <bruno@clisp.org>
1531
1532         ftruncate: Move AC_LIBOBJ invocations to module description.
1533         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
1534         gl_PREREQ_FTRUNCATE invocations from here...
1535         * modules/ftruncate (configure.ac): ... to here.
1536
1537 2011-05-07  Bruno Haible  <bruno@clisp.org>
1538
1539         fsync: Move AC_LIBOBJ invocations to module description.
1540         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
1541         invocations from here...
1542         * modules/fsync (configure.ac): ... to here.
1543
1544 2011-05-07  Bruno Haible  <bruno@clisp.org>
1545
1546         fsusage: Move AC_LIBOBJ invocations to module description.
1547         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
1548         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
1549         * modules/fsusage (configure.ac): ... to here.
1550
1551 2011-05-07  Bruno Haible  <bruno@clisp.org>
1552
1553         freopen: Move AC_LIBOBJ invocations to module description.
1554         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
1555         invocations from here...
1556         * modules/freopen (configure.ac): ... to here.
1557
1558 2011-05-07  Bruno Haible  <bruno@clisp.org>
1559
1560         free: Move AC_LIBOBJ invocations to module description.
1561         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
1562         invocations from here...
1563         * modules/free (configure.ac): ... to here.
1564
1565 2011-05-07  Bruno Haible  <bruno@clisp.org>
1566
1567         freadable: Move AC_LIBOBJ invocations to module description.
1568         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
1569         here...
1570         * modules/freadable (configure.ac): ... to here.
1571
1572 2011-05-07  Bruno Haible  <bruno@clisp.org>
1573
1574         fpurge: Move AC_LIBOBJ invocations to module description.
1575         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
1576         invocations from here...
1577         * modules/fpurge (configure.ac): ... to here.
1578
1579 2011-05-07  Bruno Haible  <bruno@clisp.org>
1580
1581         fpending: Move AC_LIBOBJ invocations to module description.
1582         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
1583         gl_FUNC_FPENDING.
1584         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
1585         invocations from here...
1586         * modules/fpending (configure.ac): ... to here.
1587
1588 2011-05-07  Bruno Haible  <bruno@clisp.org>
1589
1590         fopen: Move AC_LIBOBJ invocations to module description.
1591         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
1592         invocations from here...
1593         * modules/fopen (configure.ac): ... to here.
1594
1595 2011-05-07  Bruno Haible  <bruno@clisp.org>
1596
1597         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
1598         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
1599         gl_FUNC_FNMATCH_POSIX.
1600         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
1601         invocations from here...
1602         * modules/fnmatch (configure.ac): ... to here.
1603         * modules/fnmatch-gnu (configure.ac): ... and here.
1604
1605 2011-05-07  Bruno Haible  <bruno@clisp.org>
1606
1607         flock: Move AC_LIBOBJ invocations to module description.
1608         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
1609         invocations from here...
1610         * modules/flock (configure.ac): ... to here.
1611
1612 2011-05-07  Bruno Haible  <bruno@clisp.org>
1613
1614         fileblocks: Move AC_LIBOBJ invocations to module description.
1615         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
1616         gl_PREREQ_FILEBLOCKS invocations from here...
1617         * modules/fileblocks (configure.ac): ... to here.
1618
1619 2011-05-06  Bruno Haible  <bruno@clisp.org>
1620
1621         fflush: Move AC_LIBOBJ invocations to module description.
1622         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
1623         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
1624         invocations from here...
1625         * modules/fflush (configure.ac): ... to here.
1626
1627 2011-05-06  Bruno Haible  <bruno@clisp.org>
1628
1629         fdopendir: Move AC_LIBOBJ invocations to module description.
1630         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
1631         here...
1632         * modules/fdopendir (configure.ac): ... to here.
1633         (Depends-on): Improve conditions.
1634
1635 2011-05-06  Bruno Haible  <bruno@clisp.org>
1636
1637         _Exit: Move AC_LIBOBJ invocations to module description.
1638         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
1639         invocations from here...
1640         * modules/_Exit (configure.ac): ... to here.
1641
1642 2011-05-21  Bruno Haible  <bruno@clisp.org>
1643
1644         euidaccess: Respect rules for use of AC_LIBOBJ.
1645         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
1646         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
1647         from here...
1648         * modules/euidaccess (configure.ac): ... to here.
1649
1650 2011-05-06  Bruno Haible  <bruno@clisp.org>
1651
1652         error: Move AC_LIBOBJ invocations to module description.
1653         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
1654         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
1655         invocations from here...
1656         * modules/error (configure.ac): ... to here.
1657
1658 2011-05-06  Bruno Haible  <bruno@clisp.org>
1659
1660         duplocale: Move AC_LIBOBJ invocations to module description.
1661         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
1662         gl_PREREQ_DUPLOCALE invocations from here...
1663         * modules/duplocale (configure.ac): ... to here.
1664
1665 2011-05-05  Bruno Haible  <bruno@clisp.org>
1666
1667         dirfd: Move AC_LIBOBJ invocations to module description.
1668         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
1669         gl_FUNC_DIRFD.
1670         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
1671         here...
1672         * modules/dirfd (configure.ac): ... to here.
1673         (Depends-on): Fix condition.
1674
1675 2011-05-05  Bruno Haible  <bruno@clisp.org>
1676
1677         chown: Respect rules for use of AC_LIBOBJ.
1678         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
1679         * modules/chown (configure.ac): ... to here.
1680
1681 2011-05-05  Bruno Haible  <bruno@clisp.org>
1682
1683         chdir-long: Move AC_LIBOBJ invocations to module description.
1684         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
1685         gl_PREREQ_CHDIR_LONG invocations from here...
1686         * modules/chdir-long (configure.ac): ... to here.
1687
1688 2011-05-05  Bruno Haible  <bruno@clisp.org>
1689
1690         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
1691         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
1692         from here...
1693         * modules/canonicalize-lgpl (configure.ac): ... to here.
1694
1695 2011-05-05  Bruno Haible  <bruno@clisp.org>
1696
1697         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
1698         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
1699         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
1700         REPLACE_CALLOC.
1701         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
1702         * modules/calloc-gnu (configure.ac): Likewise.
1703
1704 2011-05-05  Bruno Haible  <bruno@clisp.org>
1705
1706         btowc: Move AC_LIBOBJ invocations to module description.
1707         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
1708         invocations from here...
1709         * modules/btowc (configure.ac): ... to here.
1710
1711 2011-05-21  Bruno Haible  <bruno@clisp.org>
1712
1713         atexit: Move AC_LIBOBJ invocations to module description.
1714         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
1715         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
1716         here...
1717         * modules/atexit (configure.ac): ... to here.
1718
1719 2011-05-05  Bruno Haible  <bruno@clisp.org>
1720
1721         atoll: Move AC_LIBOBJ invocations to module description.
1722         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
1723         invocations from here...
1724         * modules/atoll (configure.ac): ... to here.
1725
1726 2011-05-05  Bruno Haible  <bruno@clisp.org>
1727
1728         argz: Move AC_LIBOBJ invocations to module description.
1729         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
1730         * modules/argz (configure.ac): ... to here.
1731
1732 2011-05-05  Bruno Haible  <bruno@clisp.org>
1733
1734         alphasort: Move AC_LIBOBJ invocations to module description.
1735         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
1736         gl_PREREQ_ALPHASORT invocations from here...
1737         * modules/alphasort (configure.ac): ... to here.
1738
1739 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
1740
1741         verify: new macro verify_expr; verify_true deprecated
1742         * NEWS: Mention this.
1743         * doc/verify.texi (Compile-time Assertions): Document this.
1744         * lib/verify.h (verify_true): Deprecate.
1745         (verify_expr): New macro.
1746         * tests/test-verify.c (function): Test verify_expr.
1747
1748 2011-06-14  Jim Meyering  <meyering@redhat.com>
1749
1750         init.sh: give more portable redirection-related advice in a comment
1751         * tests/init.sh (stderr_fileno_): Update the advice in comments.
1752         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
1753         for lots of discussion.  Stefano Lattarini suggested the solution
1754         of putting "9>&2" after the command.  Reported by Bruno Haible.
1755
1756 2011-06-13  Bruno Haible  <bruno@clisp.org>
1757
1758         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
1759         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
1760         'none'.
1761
1762 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
1763
1764         ftoastr: use strtof only if HAVE_STRTOF
1765         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
1766         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
1767         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
1768         * modules/ftoastr (configure.ac): Check for strtof.
1769
1770 2011-06-13  Bruno Haible  <bruno@clisp.org>
1771
1772         gnulib-tool: Addendum to 2011-06-08 commit.
1773         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
1774         and --witness-c-macro have been given, augment AM_CPPFLAGS.
1775
1776 2011-06-13  Bruno Haible  <bruno@clisp.org>
1777
1778         fseeko: Provide a non-inline replacement of fseek().
1779         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
1780         * modules/fseeko (Depends-on): Add fseek.
1781         * modules/fseek (License): Change to LGPLv2+.
1782
1783 2011-06-13  Bruno Haible  <bruno@clisp.org>
1784
1785         ftello: Provide a non-inline replacement of ftell().
1786         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
1787         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
1788         not have ftello() (such as on mingw).
1789         * modules/ftello (Depends-on): Add ftell.
1790         * modules/ftell (License): Change to LGPLv2+.
1791
1792 2011-05-07  Bruno Haible  <bruno@clisp.org>
1793
1794         ftell: Move AC_LIBOBJ invocations to module description.
1795         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
1796         * modules/ftell (configure.ac): ... to here.
1797
1798 2011-05-07  Bruno Haible  <bruno@clisp.org>
1799
1800         ftello: Respect rules for use of AC_LIBOBJ.
1801         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
1802         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
1803         here...
1804         * modules/ftello (configure.ac): ... to here.
1805
1806 2011-05-07  Bruno Haible  <bruno@clisp.org>
1807
1808         fseeko: Simplify.
1809         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
1810         (gl_FUNC_FSEEKO): Inline it here.
1811
1812 2011-05-07  Bruno Haible  <bruno@clisp.org>
1813
1814         fseek: Move AC_LIBOBJ invocations to module description.
1815         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
1816         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
1817         * modules/fseek (configure.ac): ... to here.
1818
1819 2011-05-07  Bruno Haible  <bruno@clisp.org>
1820
1821         fseek: Respect rules for use of AC_LIBOBJ.
1822         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
1823         here...
1824         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
1825
1826 2011-05-07  Bruno Haible  <bruno@clisp.org>
1827
1828         fseeko: Respect rules for use of AC_LIBOBJ.
1829         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
1830         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
1831         here...
1832         * modules/fseeko (configure.ac): ... to here.
1833
1834 2011-06-13  Bruno Haible  <bruno@clisp.org>
1835
1836         gnulib-tool: Allow comments in the 'Depends-on' section.
1837         * doc/gnulib.texi (Module description): Mention comment syntax in the
1838         Depends-on section.
1839         * gnulib-tool (func_get_dependencies): Filter out comment lines.
1840
1841 2011-06-13  Bruno Haible  <bruno@clisp.org>
1842
1843         file-set.h: guard __attibute__ use, now that it's not always defined
1844         * lib/file-set.h (record_file): Use __attribute__ only with compiler
1845         versions that support it.  This fixes a coreutils build failure with
1846         the vendor cc on HP-UX 11.31.
1847
1848 2011-06-12  Bruno Haible  <bruno@clisp.org>
1849
1850         acl: Add support for HP-UX >= 11.11 JFS ACLs.
1851         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
1852         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
1853         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
1854         (acl, aclsort): New declarations.
1855         (aclv_nontrivial): New declaration.
1856         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
1857         (file_has_acl): Read also the second kind of HP-UX ACLs.
1858         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
1859         kind of HP-UX ACLs if the first kind fails.
1860         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
1861         second kind of HP-UX ACLs.
1862         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
1863         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
1864         agree.
1865         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
1866         hpuxjfs.
1867         Handle hpuxjfs.
1868         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
1869         hpuxjfs.
1870         Handle hpuxjfs.
1871         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
1872         (func_test_same_acls): Use both lsacl and getacl.
1873         Handle hpuxjfs.
1874         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
1875         (func_test_same_acls): Use both lsacl and getacl.
1876         Handle hpuxjfs.
1877
1878 2011-06-12  Bruno Haible  <bruno@clisp.org>
1879
1880         acl: Complete the 2010-08-10 fix.
1881         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
1882         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
1883         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
1884         explicitly.
1885         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
1886         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
1887
1888 2011-06-12  Bruno Haible  <bruno@clisp.org>
1889
1890         spawn-pipe tests: Comments.
1891         * tests/test-spawn-pipe-child.c (main): Update comment.
1892         Reported by James Youngman <jay@gnu.org>.
1893
1894 2011-06-11  James Youngman  <jay@gnu.org>
1895
1896         New module 'stat-size'.
1897         * modules/stat-size: New module.  Provides macros for accessing
1898         file size information in instances of struct stat.  Depends on the
1899         fileblocks module because it calls st_blocks.
1900         * lib/stat-size.h: New file, adapted from coreutils' system.h.
1901         * doc/gnulib.texi: Include stat-size.texi.
1902         * doc/stat-size.texi: Documentation for this module.
1903         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
1904         * m4/fileblocks.m4: Mention that stat-size depends on the call to
1905         AC_STRUCT_ST_BLOCKS.
1906
1907 2011-06-09  Bruno Haible  <bruno@clisp.org>
1908
1909         thread: Support pthreads-win32.
1910         * lib/glthread/thread.h (gl_thread_self): Define differently on
1911         pthreads-win32.
1912         (gl_null_thread): New declaration.
1913         (gl_thread_self_pointer): New macro.
1914         * lib/glthread/thread.c (gl_null_thread): New constant.
1915         * tests/test-lock.c: Use gl_thread_self_pointer instead of
1916         gl_thread_self.
1917         * tests/test-tls.c: Likewise.
1918         Suggested by Paul Eggert. Reported by Eric Blake.
1919
1920 2011-06-09  Bruno Haible  <bruno@clisp.org>
1921
1922         thread: Fix confusion between NULL and 0.
1923         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
1924         Reported by Paul Eggert.
1925
1926 2011-06-09  Bruno Haible  <bruno@clisp.org>
1927
1928         spawn-pipe tests: Avoid test failure on HP-UX 11.
1929         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
1930         is closed.
1931
1932 2011-06-09  Bruno Haible  <bruno@clisp.org>
1933
1934         acl tests: Fix compilation error on HP-UX 11.
1935         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
1936
1937 2011-06-09  Bruno Haible  <bruno@clisp.org>
1938
1939         rmdir: Avoid test failure on HP-UX 10.20.
1940         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
1941         EEXIST.
1942
1943 2011-06-08  Eric Blake  <eblake@redhat.com>
1944
1945         perror: fix test on mingw
1946         * modules/perror-tests (Depends-on): Add dup2.
1947
1948         strerror_r-posix: fix on MacOS
1949         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
1950         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
1951         logic bug.
1952         * lib/strerror_r.c (strerror_r): Fix the bug.
1953         * lib/strerror.c (strerror): Likewise.
1954         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
1955         problem.
1956         * doc/posix-functions/strerror.texi (strerror): Likewise.
1957         * doc/posix-functions/perror.texi (perror): Likewise.
1958         * tests/test-strerror.c (main): Enhance test.
1959         * tests/test-strerror_r.c (main): Likewise.
1960
1961 2011-06-08  Bruno Haible  <bruno@clisp.org>
1962
1963         gnulib-tool: Better isolation between different gnulib-tool invocations.
1964         * gnulib-tool: New option --witness-c-macro.
1965         (witness_c_macro): New variable.
1966         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
1967         AM_CPPFLAGS define it as a C macro.
1968         (func_emit_tests_Makefile_am): Likewise.
1969         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
1970         read it from there.
1971         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
1972         m4_define, not AC_DEFUN.
1973         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
1974         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
1975         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
1976         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
1977         s|...|...|, to substitute the values of the GNULIB_* module indicator
1978         variables.
1979         * modules/dirent (Makefile.am): Likewise.
1980         * modules/fcntl-h (Makefile.am): Likewise.
1981         * modules/iconv-h (Makefile.am): Likewise.
1982         * modules/langinfo (Makefile.am): Likewise.
1983         * modules/locale (Makefile.am): Likewise.
1984         * modules/math (Makefile.am): Likewise.
1985         * modules/netdb (Makefile.am): Likewise.
1986         * modules/poll-h (Makefile.am): Likewise.
1987         * modules/pty (Makefile.am): Likewise.
1988         * modules/search (Makefile.am): Likewise.
1989         * modules/signal (Makefile.am): Likewise.
1990         * modules/spawn (Makefile.am): Likewise.
1991         * modules/stdio (Makefile.am): Likewise.
1992         * modules/stdlib (Makefile.am): Likewise.
1993         * modules/string (Makefile.am): Likewise.
1994         * modules/sys_ioctl (Makefile.am): Likewise.
1995         * modules/sys_select (Makefile.am): Likewise.
1996         * modules/sys_socket (Makefile.am): Likewise.
1997         * modules/sys_stat (Makefile.am): Likewise.
1998         * modules/sys_times (Makefile.am): Likewise.
1999         * modules/sys_utsname (Makefile.am): Likewise.
2000         * modules/sys_wait (Makefile.am): Likewise.
2001         * modules/termios (Makefile.am): Likewise.
2002         * modules/time (Makefile.am): Likewise.
2003         * modules/unistd (Makefile.am): Likewise.
2004         * modules/wchar (Makefile.am): Likewise.
2005
2006 2011-06-08  Eric Blake  <eblake@redhat.com>
2007
2008         strerror: simplify replacement
2009         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
2010         * modules/strerror (configure.ac): No prereqs needed here...
2011         * modules/strerror-override (configure.ac): ...but this needs it.
2012         (Files): Add file for needed prereq macro.
2013
2014 2011-06-08  Bruno Haible  <bruno@clisp.org>
2015
2016         strerror_r-posix: Tweaks.
2017         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
2018         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
2019         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
2020         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
2021         (gl_FUNC_STRERROR_R): ... to here.
2022         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
2023
2024 2011-06-07  Eric Blake  <eblake@redhat.com>
2025
2026         perror: document fixed bugs
2027         * doc/posix-functions/perror.texi (perror): Document recent
2028         patches.
2029
2030 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
2031
2032         stat-time: get_stat_birthtime failure is better-defined
2033         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
2034         return a timestamp whose tv_sec and tv_nsec values are both -1.
2035         Previously, the spec said only that the tv_nsec value was negative.
2036         This upward-compatible change simplifies GNU tar a bit.
2037
2038 2011-06-07  Eric Blake  <eblake@redhat.com>
2039
2040         strerror_r-posix: work around cygwin 1.7.9
2041         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
2042         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
2043         bug without replacing strerror_r.
2044         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
2045         strerror_r is buggy, but without requiring strerror_r compilation.
2046         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
2047
2048         test-perror: relax test to ignore cygwin bug
2049         * tests/test-perror2.c (main): Relax test on requiring detection
2050         of stream errors, and use unbuffered stream.
2051         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
2052         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
2053         * doc/posix-functions/fputc.texi (fputc): Likewise.
2054         * doc/posix-functions/fputs.texi (fputs): Likewise.
2055         * doc/posix-functions/fputws.texi (fputws): Likewise.
2056         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
2057         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
2058         * doc/posix-functions/getopt.texi (getopt): Likewise.
2059         * doc/posix-functions/perror.texi (perror): Likewise.
2060         * doc/posix-functions/printf.texi (printf): Likewise.
2061         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
2062         * doc/posix-functions/psignal.texi (psignal): Likewise.
2063         * doc/posix-functions/putc.texi (putc): Likewise.
2064         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
2065         Likewise.
2066         * doc/posix-functions/putchar.texi (putchar): Likewise.
2067         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
2068         Likewise.
2069         * doc/posix-functions/puts.texi (puts): Likewise.
2070         * doc/posix-functions/putwc.texi (putwc): Likewise.
2071         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
2072         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
2073         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
2074         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
2075         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
2076         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
2077         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
2078         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
2079
2080 2011-05-22  Bruno Haible  <bruno@clisp.org>
2081
2082         strerror: Move AC_LIBOBJ invocations to module description.
2083         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
2084         gl_PREREQ_STRERROR invocations from here...
2085         * modules/strerror (configure.ac): ... to here.
2086
2087 2011-05-21  Bruno Haible  <bruno@clisp.org>
2088
2089         perror: Use common idiom.
2090         * modules/perror (configure.ac): Reorder statements.
2091
2092 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
2093
2094         tests: fix usage message in 'mktempd_'
2095         * tests/init.sh (mktempd_): In the usage message, use literal
2096         'mktempd_', not '$ME' (which is even undefined), as the name of
2097         the subroutine.
2098
2099 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
2100
2101         tests init: new function 'fatal_', for hard errors
2102         Before this patch, the only way offered by tests/init.sh to
2103         properly signal a hard error was the `framework_failure_'
2104         function.  But the error message issued by that function,
2105         as its name would suggest, refers to a set-up failure in the
2106         testsuite, while hard errors can obviously also be due to
2107         other reasons.  The best way to fix this inconsistency is to
2108         introduce a new function with a more general error message.
2109         * tests/init.sh (fatal_): New function.
2110
2111 2011-06-06  Eric Blake  <eblake@redhat.com>
2112
2113         canonicalize-lgpl: use common idiom
2114         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
2115         over newer POSIX -Rf.
2116         Reported by Bruno Haible.
2117
2118         canonicalize-lgpl: work around AIX realpath bug
2119         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
2120         * doc/posix-functions/realpath.texi (realpath): Document it.
2121         Reported by Bruno Haible.
2122
2123         strerror: work around FreeBSD bug
2124         * lib/strerror.c (strerror): Special case 0.
2125         Reported by Bruno Haible.
2126
2127         strerror-override: avoid bloating errno module
2128         * modules/errno (Files, configure.ac): Move replacement strings...
2129         * modules/strerror-override: ...to new module.
2130         * modules/strerror (Depends-on): Add strerror-override.
2131         * modules/strerror_r-posix (Depends-on): Likewise.
2132         * MODULES.html.sh: Document new module.
2133         Reported by Bruno Haible.
2134
2135 2011-06-06  Bruno Haible  <bruno@clisp.org>
2136
2137         spawn-pipe tests: Rename program.
2138         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
2139         * tests/test-spawn-pipe-child.c: Update comment.
2140         * tests/test-spawn-pipe.sh: Update.
2141         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
2142
2143         spawn-pipe tests: Link the child program only against libc.
2144         * tests/test-spawn-pipe-child.c: New file, extracted from
2145         tests/test-spawn-pipe.c.
2146         (main): Expect only one argument.
2147         (is_open): New function, copied from tests/test-pipe.c.
2148         * tests/test-spawn-pipe.c: Don't include <errno.h>.
2149         (child_main): Remove function.
2150         (test_pipe): Pass only one argument to the child program.
2151         (main): Remove child process code. Expect the child program's name as
2152         first argument.
2153         * tests/test-spawn-pipe.sh: Pass the child program's name as first
2154         argument.
2155         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
2156         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
2157         test-spawn-pipe-child against no libraries.
2158
2159 2011-06-06  Bruno Haible  <bruno@clisp.org>
2160
2161         careadlinkat: Avoid mismatch between ssize_t and int.
2162         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
2163         * lib/careadlinkat.c (careadlinkatcwd): Define always.
2164
2165 2011-06-06  Jim Meyering  <meyering@redhat.com>
2166
2167         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
2168         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
2169         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
2170
2171 2011-06-05  Bruno Haible  <bruno@clisp.org>
2172
2173         ansi-c++-opt: Interoperability with libtool.
2174         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
2175         set the variable to "no", not to ":".
2176         * NEWS: Mention the change.
2177
2178 2011-06-05  Bruno Haible  <bruno@clisp.org>
2179
2180         acl: Fix test failure on AIX 7.
2181         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
2182         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
2183
2184 2011-06-05  Bruno Haible  <bruno@clisp.org>
2185
2186         pipe-filter-ii: Fix test failure on AIX and IRIX.
2187         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
2188         with EAGAIN, retry with a smaller buffer size.
2189
2190 2011-06-05  Bruno Haible  <bruno@clisp.org>
2191
2192         localename: Fix link dependencies.
2193         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
2194         * modules/localename-tests (Makefile.am): Link test-localename with
2195         $(LIBTHREAD).
2196
2197 2011-06-05  Bruno Haible  <bruno@clisp.org>
2198
2199         error: Avoid gcc warning.
2200         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
2201
2202 2011-06-05  Bruno Haible  <bruno@clisp.org>
2203
2204         unsetenv: Avoid gcc warning.
2205         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
2206
2207 2011-06-05  Bruno Haible  <bruno@clisp.org>
2208
2209         setenv: Avoid gcc warning.
2210         * lib/setenv.c (setenv): Provide declaration if system lacks it.
2211
2212 2011-06-05  Bruno Haible  <bruno@clisp.org>
2213
2214         sys_select: Ensure memset is declared also on AIX 7.
2215         * lib/sys_select.in.h: Include <string.h> also on AIX.
2216         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
2217         self-contained also on AIX 7.1.
2218
2219 2011-06-04  Jim Meyering  <meyering@redhat.com>
2220
2221         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
2222         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
2223         function name, "error".
2224         (_gl_translatable_diag_func_re): New configurable variable.
2225
2226 2011-06-04  Bruno Haible  <bruno@clisp.org>
2227
2228         getopt: Avoid gcc warning.
2229         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
2230
2231 2011-06-04  Bruno Haible  <bruno@clisp.org>
2232
2233         strerror_r: Fix comments.
2234         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
2235         commit.
2236
2237 2011-06-04  Bruno Haible  <bruno@clisp.org>
2238
2239         perror: Fix compilation error.
2240         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
2241         Undefine fprintf, not sprintf.
2242         * modules/perror (Depends-on): Remove intprops, verify.
2243
2244 2011-06-04  Bruno Haible  <bruno@clisp.org>
2245
2246         setlocale: Enable replacement on Cygwin 1.5.
2247         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
2248         Cygwin 1.5.x.
2249         * doc/posix-functions/setlocale.texi: Mention that the problem with the
2250         LC_CTYPE category also exists on Cygwin 1.5.x.
2251
2252 2011-06-04  Bruno Haible  <bruno@clisp.org>
2253
2254         strerror-override: Don't disable symbol renamings.
2255         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
2256         * lib/strerror-override.c: Include config.h.
2257         (strerror_override): Don't undefine.
2258
2259 2011-06-03  Bruno Haible  <bruno@clisp.org>
2260
2261         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
2262         * lib/localename.h: Update copyright header.
2263         * lib/localename.c: Likewise.
2264         * lib/relocatable.h: Likewise.
2265         * lib/relocatable.c: Likewise.
2266
2267 2011-06-02  Bruno Haible  <bruno@clisp.org>
2268
2269         doc: Fix a module name.
2270         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
2271
2272 2011-06-02  Bruno Haible  <bruno@clisp.org>
2273
2274         pipe2: Remove dependency on 'nonblocking' module.
2275         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
2276         O_NONBLOCK is defined by gnulib.
2277         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
2278         is zero.
2279         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
2280         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
2281         defined by gnulib.
2282         (get_nonblocking_flag): New function.
2283         (main): Test O_NONBLOCK flag only if it is nonzero.
2284         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
2285
2286 2011-06-03  Jim Meyering  <meyering@redhat.com>
2287
2288         maint: three new prohibit-header-without-use rules
2289         Prohibit use of cloexec.h, posixver.h, same.h without use.
2290         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
2291         (sc_prohibit_posixver_without_use): Likewise.
2292         (sc_prohibit_same_without_use): Likewise.
2293
2294 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
2295
2296         allocator: 'die' routine is now given requested size
2297         * lib/allocator.h (struct allocator.die): New size arg.
2298         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
2299         If the actual problem is an ssize_t limitation, not a size_t or
2300         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
2301
2302 2011-06-01  Eric Blake  <eblake@redhat.com>
2303
2304         strerror: drop strerror_r dependency
2305         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
2306         * lib/strerror-override.c (strerror_override): ...to new file.
2307         * lib/strerror-override.h: Add prototype.
2308         * lib/strerror-impl.h: Delete.
2309         * lib/strerror.c (strerror): New implementation.
2310         * modules/errno (Files): Add new files.
2311         (configure.ac): Compile new file as appropriate.
2312         * modules/strerror (Files): Drop unused file.
2313         (Depends-on): Drop strerror_r-posix.
2314         * MODULES.html.sh: Document strerror_r-posix.
2315         Requested by Sam Steingold.
2316
2317         perror: call strerror_r directly
2318         * modules/perror (Files): Drop strerror-impl.h.
2319         * lib/perror.c (perror): Use our own stack buffer, rather than
2320         calling a wrapper that uses static storage.
2321         * doc/posix-functions/perror.texi (perror): Document a limitation
2322         of our replacement.
2323
2324         strerror_r: fix includes for FreeBSD
2325         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
2326         since we use abort on some platforms.
2327         Reported by Matthias Bolte.
2328
2329 2011-05-31  Bruno Haible  <bruno@clisp.org>
2330
2331         Fix link errors in tests: openat-die uses gettext-h.
2332         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
2333         against $(LIBINTL).
2334         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
2335         against $(LIBINTL).
2336         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
2337         $(LIBINTL).
2338         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
2339         against $(LIBINTL).
2340         * modules/linkat-tests (Makefile.am): Link test-linkat against
2341         $(LIBINTL).
2342         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
2343         $(LIBINTL).
2344         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
2345         against $(LIBINTL).
2346         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
2347         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
2348         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
2349         $(LIBINTL).
2350         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
2351         $(LIBINTL).
2352         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
2353         $(LIBINTL).
2354         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2355
2356 2011-05-31  Bruno Haible  <bruno@clisp.org>
2357
2358         Fix link errors in tests: wait-process uses gettext-h.
2359         * modules/nonblocking-pipe-tests (Makefile.am): Set
2360         test_nonblocking_pipe_main_LDADD.
2361         * modules/nonblocking-socket-tests (Makefile.am): Link
2362         test-nonblocking-socket-main against $(LIBINTL).
2363         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2364
2365 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
2366
2367         assert-h: work around 'verify' incompatibility
2368         * lib/verify.h: Use @...@ directives, not ifdef.
2369         * modules/assert-h (assert.h): Implement the directives.
2370         (assert.h): Substitute the symbol-prefix more consistently.
2371
2372 2011-05-29  Jim Meyering  <meyering@redhat.com>
2373
2374         trim: remove three superfluous assignments
2375         * lib/trim.c (trim2): Remove three superfluous assignments
2376         and correct brace positioning.
2377
2378 2011-05-29  Bruno Haible  <bruno@clisp.org>
2379
2380         wctype-h: Avoid namespace pollution on Solaris 2.6.
2381         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
2382         identifiers.
2383         * doc/posix-headers/wctype.texi: Mention the problem.
2384         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2385
2386 2011-05-28  Jim Meyering  <meyering@redhat.com>
2387
2388         parse-datetime.y: accommodate -Wstrict-overflow
2389         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
2390         placate -Wstrict-overflow.
2391
2392         trim: avoid a warning from -O2 -Wstrict-overflow
2393         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
2394
2395 2011-05-29  Bruno Haible  <bruno@clisp.org>
2396
2397         gnulib-tool: Fix bug in yesterday's commit.
2398         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
2399         twice.
2400
2401 2011-05-29  Bruno Haible  <bruno@clisp.org>
2402
2403         Allow multiple gnulib generated include files to be combined.
2404         * gnulib-tool (func_compute_include_guard_prefix): New function.
2405         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
2406         ${gl_include_guard_prefix} references.
2407         (func_import, func_create_testdir): Invoke
2408         func_compute_include_guard_prefix.
2409         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
2410         * lib/ctype.in.h: Likewise.
2411         * lib/dirent.in.h: Likewise.
2412         * lib/errno.in.h: Likewise.
2413         * lib/fcntl.in.h: Likewise.
2414         * lib/float.in.h: Likewise.
2415         * lib/getopt.in.h: Likewise.
2416         * lib/iconv.in.h: Likewise.
2417         * lib/langinfo.in.h: Likewise.
2418         * lib/locale.in.h: Likewise.
2419         * lib/math.in.h: Likewise.
2420         * lib/netdb.in.h: Likewise.
2421         * lib/netinet_in.in.h: Likewise.
2422         * lib/poll.in.h: Likewise.
2423         * lib/pthread.in.h: Likewise.
2424         * lib/pty.in.h: Likewise.
2425         * lib/sched.in.h: Likewise.
2426         * lib/se-selinux.in.h: Likewise.
2427         * lib/search.in.h: Likewise.
2428         * lib/signal.in.h: Likewise.
2429         * lib/spawn.in.h: Likewise.
2430         * lib/stdarg.in.h: Likewise.
2431         * lib/stddef.in.h: Likewise.
2432         * lib/stdint.in.h: Likewise.
2433         * lib/stdio.in.h: Likewise.
2434         * lib/stdlib.in.h: Likewise.
2435         * lib/string.in.h: Likewise.
2436         * lib/strings.in.h: Likewise.
2437         * lib/sys_file.in.h: Likewise.
2438         * lib/sys_ioctl.in.h: Likewise.
2439         * lib/sys_select.in.h: Likewise.
2440         * lib/sys_socket.in.h: Likewise.
2441         * lib/sys_stat.in.h: Likewise.
2442         * lib/sys_time.in.h: Likewise.
2443         * lib/sys_times.in.h: Likewise.
2444         * lib/sys_uio.in.h: Likewise.
2445         * lib/sys_utsname.in.h: Likewise.
2446         * lib/sys_wait.in.h: Likewise.
2447         * lib/sysexits.in.h: Likewise.
2448         * lib/termios.in.h: Likewise.
2449         * lib/time.in.h: Likewise.
2450         * lib/unistd.in.h: Likewise.
2451         * lib/wchar.in.h: Likewise.
2452         * lib/wctype.in.h: Likewise.
2453         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
2454         * modules/ctype (Makefile.am): Likewise.
2455         * modules/dirent (Makefile.am): Likewise.
2456         * modules/errno (Makefile.am): Likewise.
2457         * modules/fcntl-h (Makefile.am): Likewise.
2458         * modules/float (Makefile.am): Likewise.
2459         * modules/getopt-posix (Makefile.am): Likewise.
2460         * modules/iconv-h (Makefile.am): Likewise.
2461         * modules/langinfo (Makefile.am): Likewise.
2462         * modules/locale (Makefile.am): Likewise.
2463         * modules/math (Makefile.am): Likewise.
2464         * modules/netdb (Makefile.am): Likewise.
2465         * modules/netinet_in (Makefile.am): Likewise.
2466         * modules/poll-h (Makefile.am): Likewise.
2467         * modules/pthread (Makefile.am): Likewise.
2468         * modules/pty (Makefile.am): Likewise.
2469         * modules/sched (Makefile.am): Likewise.
2470         * modules/search (Makefile.am): Likewise.
2471         * modules/selinux-h (Makefile.am): Likewise.
2472         * modules/signal (Makefile.am): Likewise.
2473         * modules/spawn (Makefile.am): Likewise.
2474         * modules/stdarg (Makefile.am): Likewise.
2475         * modules/stddef (Makefile.am): Likewise.
2476         * modules/stdint (Makefile.am): Likewise.
2477         * modules/stdio (Makefile.am): Likewise.
2478         * modules/stdlib (Makefile.am): Likewise.
2479         * modules/string (Makefile.am): Likewise.
2480         * modules/strings (Makefile.am): Likewise.
2481         * modules/sys_file (Makefile.am): Likewise.
2482         * modules/sys_ioctl (Makefile.am): Likewise.
2483         * modules/sys_select (Makefile.am): Likewise.
2484         * modules/sys_socket (Makefile.am): Likewise.
2485         * modules/sys_stat (Makefile.am): Likewise.
2486         * modules/sys_time (Makefile.am): Likewise.
2487         * modules/sys_times (Makefile.am): Likewise.
2488         * modules/sys_uio (Makefile.am): Likewise.
2489         * modules/sys_utsname (Makefile.am): Likewise.
2490         * modules/sys_wait (Makefile.am): Likewise.
2491         * modules/sysexits (Makefile.am): Likewise.
2492         * modules/termios (Makefile.am): Likewise.
2493         * modules/time (Makefile.am): Likewise.
2494         * modules/unistd (Makefile.am): Likewise.
2495         * modules/wchar (Makefile.am): Likewise.
2496         * modules/wctype-h (Makefile.am): Likewise.
2497         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
2498
2499 2011-05-29  Bruno Haible  <bruno@clisp.org>
2500
2501         assert-h: Allow multiple gnulib generated replacements to coexist.
2502         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
2503
2504 2011-05-29  Bruno Haible  <bruno@clisp.org>
2505
2506         argp: Allow coexistence with strerror_r-posix module.
2507         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
2508         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
2509         by gnulib's <string.h> replacement), assume it has the POSIX signature,
2510         not the glibc signature.
2511
2512 2011-05-28  Bruno Haible  <bruno@clisp.org>
2513
2514         gnulib-tool: Alternative structure of testdirs, similar to --import.
2515         * gnulib-tool: New option --single-configure.
2516         (func_usage): Document it.
2517         (single_configure): New variable.
2518         (func_modules_transitive_closure_separately,
2519         func_modules_transitive_closure_separately,
2520         func_determine_use_libtests, func_modules_add_dummy_separately,
2521         func_modules_to_filelist_separately): New functions, extracted from
2522         func_import.
2523         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
2524         (func_import): Use the new functions.
2525         (func_create_testdir): Set final_modules. Handle $single_configure =
2526         true case.
2527
2528 2011-05-28  Bruno Haible  <bruno@clisp.org>
2529
2530         getloadavg: Remove an unreliable safety check.
2531         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
2532         getloadavg.c is in place.
2533         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
2534         Reported by Sam Steingold <sds@gnu.org>.
2535
2536 2011-05-28  Bruno Haible  <bruno@clisp.org>
2537
2538         doc: Cleanup yet another file produced by texinfo.tex.
2539         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
2540
2541 2011-05-28  Bruno Haible  <bruno@clisp.org>
2542
2543         Finish the conditional dependencies mechanism.
2544         * gnulib-tool: New option --no-conditional-dependencies.
2545         (func_usage): Document it. Don't mark --conditional-dependencies as
2546         experimental.
2547         (cond_dependencies): The possible values can now be true, false, empty.
2548         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
2549         (func_import): Store setting in gnulib-cache.m4 and read it from there.
2550         * doc/gnulib-tool.texi (Conditional dependencies): New section.
2551
2552 2011-05-28  Bruno Haible  <bruno@clisp.org>
2553
2554         doc: Use a recent texinfo.tex.
2555         * doc/Makefile (tex_opts): New variable.
2556         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
2557
2558 2011-05-28  Jim Meyering  <meyering@redhat.com>
2559
2560         intprops.h: adjust comment to match code change
2561         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
2562         only once, it *may* have side effects.  Also fix an unrelated typo.
2563         (_GL_INT_SIGNED): Likewise.
2564
2565 2011-05-26  Simon Josefsson  <simon@josefsson.org>
2566
2567         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
2568
2569 2011-05-26  Bruno Haible  <bruno@clisp.org>
2570
2571         mbsrchr: Avoid collision with system function on Interix.
2572         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
2573         Reported by Markus Duft <mduft@gentoo.org>.
2574
2575 2011-05-15  James Youngman  <jay@gnu.org>
2576
2577         getopt: for ambiguous options, enumerate the possibilities.
2578         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
2579         the ambiguous options when an ambiguous prefix is given. This was
2580         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
2581         glibc change was
2582         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
2583
2584 2011-05-25  Eric Blake  <eblake@redhat.com>
2585
2586         getcwd: work around mingw bug
2587         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
2588         * doc/posix-functions/getcwd.texi (getcwd): Document it.
2589         Reported by Matthias Bolte.
2590
2591 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
2592
2593         test-intprops: disable -Wtype-limits diagnostics
2594         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
2595         diagnostics.  Otherwise, the integer overflow macros generate many
2596         diagnostics.  Reported by Jim Meyering in
2597         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
2598
2599         intprops: shorten, to pacify gcc -Woverlength-strings
2600         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
2601         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
2602         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
2603         likely to run afoul of C compiler limits for string constant lengths.
2604         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
2605
2606 2011-05-24  Eric Blake  <eblake@redhat.com>
2607
2608         docs: document recently fixed glibc printf bug
2609         * doc/posix-functions/fprintf.texi (fprintf): Document it.
2610         * doc/posix-functions/printf.texi (printf): Likewise.
2611         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
2612         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
2613
2614         closein-tests: convert to init.sh
2615         * modules/closein-tests (Files): Add init.sh
2616         * tests/test-closein.sh Use it.
2617
2618         yesno-tests: convert to init.sh
2619         * modules/yesno-tests (Files): Add init.sh.
2620         * tests/test-yesno.sh: Use it.
2621
2622         atexit-tests: ensure reliable exit status
2623         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
2624         Reported by Bruno Haible.
2625
2626 2011-05-24  Bruno Haible  <bruno@clisp.org>
2627
2628         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
2629         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
2630         gl_PREREQ_STRERROR_R invocations from here...
2631         * modules/strerror_r-posix (configure.ac): ... to here.
2632
2633 2011-05-24  Eric Blake  <eblake@redhat.com>
2634
2635         strerror_r: fix missing header
2636         * lib/strerror_r.c: Avoid compiler warning about snprintf.
2637
2638         strerror_r: fix AIX test failures
2639         * lib/strerror_r.c (strerror_r): Convert silent truncation to
2640         ERANGE failure.
2641
2642         strerror_r: fix Solaris test failures
2643         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
2644         failures.
2645         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
2646
2647         strerror_r: enforce POSIX recommendations
2648         * lib/strerror_r.c (safe_copy): New helper method.
2649         (strerror_r): Guarantee a non-empty string.
2650         * tests/test-strerror_r.c (main): Enhance tests to incorporate
2651         recent POSIX rulings and to match our strerror guarantees.
2652         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
2653
2654 2011-05-24  Jim Meyering  <meyering@redhat.com>
2655
2656         test-perror2.c: avoid warning about unused variable
2657         * tests/test-perror2.c (main): Remove declaration of unused "fp".
2658
2659 2011-05-24  Eric Blake  <eblake@redhat.com>
2660
2661         perror: avoid spurious test failure on HP-UX
2662         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
2663
2664         tests: fix logic bug in init.sh
2665         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
2666         shell.
2667
2668 2011-05-24  Jim Meyering  <meyering@redhat.com>
2669
2670         utimensat: do not reference an out-of-scope buffer
2671         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
2672         declared in an inner scope, yet "times" would be dereferenced outside
2673         the scope in which "ts" was valid.
2674         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
2675         of ts[2] "out/up", so that the use of aliased "times" (via
2676         "times = ts;") does not end up referencing an out-of-scope "ts"
2677
2678         opendir-safer.c: don't clobber errno; don't close negative FD
2679         * lib/opendir-safer.c (opendir_safer):
2680         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
2681         file descriptor, and more importantly, don't clobber the
2682         offending errno value with EINVAL.  Before, upon failure
2683         of dup_safer, we would pass the negative file descriptor to
2684         fdopendir, which would clobber errno.
2685
2686 2011-05-23  Bruno Haible  <bruno@clisp.org>
2687
2688         idcache: Fix module description.
2689         * modules/idcache (Include): Set to "idcache.h".
2690
2691 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
2692
2693         gnulib-tool: fix portability problem with MacOS sed
2694         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
2695         before the "}".  Problem reported by Leo in
2696         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
2697         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
2698         sed_extract_condition1, sed_extract_condition2.
2699
2700 2011-05-23  Bruno Haible  <bruno@clisp.org>
2701
2702         hash: Simplify autoconf macro.
2703         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
2704
2705 2011-05-23  Bruno Haible  <bruno@clisp.org>
2706
2707         getugroups: Fix module description.
2708         * modules/getugroups (Include): Set to "getugroups.h".
2709
2710 2011-05-23  Bruno Haible  <bruno@clisp.org>
2711
2712         linkat: Simplify autoconf macro.
2713         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
2714
2715 2011-05-23  Bruno Haible  <bruno@clisp.org>
2716             Eric Blake  <eblake@redhat.com>
2717
2718         linkat, renameat: Update dependencies.
2719         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
2720         * modules/linkat (Depends-on): Likewise. Remove also readlink,
2721         symlinkat.
2722
2723 2011-05-23  Jim Meyering  <meyering@redhat.com>
2724
2725         maint.mk: more tight_scope improvements
2726         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
2727         (_gl_TS_headers): Define only in if-0'd block.
2728         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
2729         sometimes we must *not* use it.  Adjust uses accordingly.
2730         (sc_tight_scope): Use much simpler grep-based test to determine
2731         whether we skip this rule.
2732
2733         maint.mk: generalize/improve the tight-scope rule
2734         * top/maint.mk: Emit a warning when the test is skipped.
2735         (_gl_TS_dir): Add $(srcdir)/ prefix.
2736         (_gl_TS_function_match): Simplify, rather than trying
2737         to enumerate common types.  Otherwise, it would fail to match an
2738         "extern unsigned char const *" declaration in idutils.
2739         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
2740         a way to support use of that type of macro.
2741         (_gl_TS_var_match): Simplify regexp.
2742         (_gl_TS_obj_files): New configurable variable.
2743         (_gl_TS_headers): Likewise.
2744
2745 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
2746
2747         verify: fix bug when gnulib <assert.h> is also included
2748         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
2749         is defined, not if _GL_STATIC_ASSERT_H is not defined.
2750         Perhaps there's a better way, but this fixes the immediate problem.
2751         Problem reported by Bruno Haible in
2752         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
2753
2754 2011-05-22  Bruno Haible  <bruno@clisp.org>
2755
2756         xgetcwd: Simplify autoconf macro.
2757         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
2758
2759 2011-05-22  Bruno Haible  <bruno@clisp.org>
2760
2761         New module 'mktime-internal'.
2762         * modules/mktime-internal: New file.
2763         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
2764         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
2765         mktime_internal as a C macro if libc has __mktime_internal.
2766         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
2767         conditions.
2768         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
2769
2770 2011-05-22  Bruno Haible  <bruno@clisp.org>
2771
2772         timegm: Correct mktime replacement statements.
2773         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
2774         defining mktime as a C macro. This completes a 2009-07-28 commit.
2775
2776 2011-05-22  Bruno Haible  <bruno@clisp.org>
2777
2778         timegm: Simplify autoconf macro.
2779         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
2780
2781 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
2782
2783         clock-time: change to LGPLv2+.
2784         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
2785         BSD-like but we have no mark for that; this is good enough for now.
2786
2787 2011-05-21  Bruno Haible  <bruno@clisp.org>
2788
2789         strerror_r: Fix comments.
2790         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
2791
2792 2011-05-21  Bruno Haible  <bruno@clisp.org>
2793
2794         relocatable-prog-wrapper: Fix possible link error.
2795         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
2796         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
2797         (gl_FUNC_SETENV): ... to here.
2798         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
2799         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
2800
2801 2011-05-21  Bruno Haible  <bruno@clisp.org>
2802
2803         relocatable-prog-wrapper: Assume strerror() exists.
2804         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
2805         m4/strerror.m4.
2806         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
2807         * lib/relocwrapper.c: Remove mention of strerror module.
2808         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
2809         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
2810         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
2811         C macro.
2812
2813 2011-05-21  Bruno Haible  <bruno@clisp.org>
2814
2815         select: Simplify replacement idiom.
2816         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
2817         Win32 platforms.
2818         * lib/sys_select.in.h (select): Simplify accordingly.
2819         * modules/select (Depends-on): Likewise.
2820
2821 2011-05-21  Bruno Haible  <bruno@clisp.org>
2822
2823         mkdir-p: Simplify autoconf macro.
2824         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
2825         gl_FUNC_LCHOWN.
2826
2827 2011-05-21  Eric Blake  <eblake@redhat.com>
2828
2829         strerror_r: avoid clobbering strerror on cygwin
2830         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
2831         fall back instead to sys_errlist.
2832         * modules/strerror (configure.ac): Add witness.
2833         * tests/test-strerror_r.c (main): Enhance test.
2834         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
2835         * tests/test-perror2.c (main): Free memory before exit.
2836
2837 2011-05-21  Bruno Haible  <bruno@clisp.org>
2838
2839         mkdtemp: Use gnulib naming conventions.
2840         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
2841         * modules/mkdtemp (configure.ac): Update.
2842
2843 2011-05-20  Eric Blake  <eblake@redhat.com>
2844
2845         strerror_r: avoid corrupting errno on Solaris
2846         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
2847         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
2848
2849         strerror_r: avoid compiler warning
2850         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
2851
2852         strerror_r: simplify AIX code
2853         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
2854
2855         test-perror: avoid spurious failure on FreeBSD
2856         * modules/perror-tests (Depends-on): Add strerror, now that
2857         strerror_r no longer pulls it in.
2858
2859 2011-05-20  Bruno Haible  <bruno@clisp.org>
2860
2861         strerror_r-posix: Remove unused dependencies.
2862         * modules/strerror_r-posix (Depends-on): Remove strerror.
2863         Reported by Eric Blake.
2864
2865 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
2866
2867         intprops: remove assumption about A|B representation
2868         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
2869         is a valid integer if both A and B are.  Although this is true for
2870         all known practical hosts, the C standard doesn't guarantee it,
2871         and the code need not assume it.  Also, this change may work around
2872         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
2873         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
2874
2875 2011-05-20  Eric Blake  <eblake@redhat.com>
2876
2877         perror: work around FreeBSD bug
2878         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
2879         is broken.  Move AC_LIBOBJ...
2880         * modules/perror (configure.ac): Here.
2881         * doc/posix-functions/perror.texi (perror): Document this.
2882         * tests/test-perror2.c (main): Enhance test.
2883
2884         test-perror: check for strerror interactions
2885         * tests/macros.h (STREQ): Add macro.
2886         * modules/perror-tests (Files): Add second test.
2887         * tests/test-perror2.c (main): New file.
2888         * doc/posix-functions/perror.texi (perror): Document glibc bug.
2889
2890         test-perror: rewrite to use init script
2891         * modules/perror-tests (Files): Add init.sh.
2892         * tests/test-perror.sh: Use temporary directory.
2893
2894 2011-05-20  Jim Meyering  <meyering@redhat.com>
2895
2896         maint: replace misused "a" with "an"
2897         * doc/intprops.texi: "a integer"
2898         * doc/regex.texi: "a explanation"
2899         * lib/alignof.h: "a object"
2900         * lib/argmatch.h: "a explanation"
2901         * lib/argp-help.c: "a option" and "a OPTION_DOC"
2902         * lib/stdint.in.h: "a integer"
2903         * lib/userspec.c: "a owner"
2904         * doc/gnulib.texi: Fix "a idea", and reword.
2905
2906 2011-05-19  Jim Meyering  <meyering@redhat.com>
2907
2908         maint: correct misuse of "a" and "an"
2909         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
2910         * lib/argp-help.c: "an docum...": s/an/a/
2911         * lib/argp-parse.c: "An vector": s/An/A/
2912         * lib/execute.c: "an native": s/an/a/
2913         * lib/spawn-pipe.c: Likewise.
2914         * lib/gc.h: "an Gc_rc": s/an/a/
2915         * lib/unigbrk.in.h: "an grapheme": s/an/a/
2916         * lib/fts.c: "an stat.st_dev": s/an/a/
2917
2918 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
2919
2920         intprops-tests: work around HP-UX 11.23 cc bug with constants
2921         * tests/test-intprops.c (VERIFY): New macro.
2922         (main): Use it, instead of verify, to work around the compiler bug; see
2923         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
2924
2925         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
2926         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
2927         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
2928         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
2929         (_GL_REMAINDER_OVERFLOW): Use it.
2930
2931         intprops-tests: revert unsigned part of previous change
2932         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
2933         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
2934         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
2935         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
2936
2937 2011-05-19  Bruno Haible  <bruno@clisp.org>
2938
2939         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
2940         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
2941         strerror_r() returned without filling the buffer.
2942         Reported by Eric Blake.
2943
2944 2011-05-19  Eric Blake  <eblake@redhat.com>
2945
2946         strerror_r: guarantee unchanged errno
2947         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
2948         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
2949         failure.
2950         * tests/test-strerror_r.c (main): Enhance test.
2951
2952 2011-05-19  Bruno Haible  <bruno@clisp.org>
2953
2954         strerror_r: Reorder #if blocks.
2955         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
2956         for consistency with the previous commit.
2957
2958 2011-05-19  Bruno Haible  <bruno@clisp.org>
2959
2960         perror: Avoid clobbering the strerror buffer when possible.
2961         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
2962         * lib/strerror.c: Include it.
2963         * modules/strerror (Files): Add lib/strerror-impl.h.
2964         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
2965         (my_strerror): New function, defined through lib/strerror-impl.h.
2966         (perror): Use it instead of strerror.
2967         * modules/perror (Files): Add lib/strerror-impl.h.
2968         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
2969
2970 2011-05-19  Eric Blake  <eblake@redhat.com>
2971
2972         strerror_r: fix on newer cygwin
2973         * lib/strerror_r.c (strerror_r): Cygwin now has
2974         __xpg_strerror_r, use it.
2975
2976 2011-05-19  Bruno Haible  <bruno@clisp.org>
2977
2978         strerror_r: Avoid clobbering the strerror buffer when possible.
2979         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
2980         (sys_nerr, sys_errlist): New declarations.
2981         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
2982         HP-UX, native Win32, IRIX, and 32-bit Solaris.
2983         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
2984
2985 2011-05-19  Bruno Haible  <bruno@clisp.org>
2986
2987         strerror_r: Fix test failure on mingw.
2988         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
2989         EXTEND_STRERROR_R.
2990         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
2991         macros from errno.in.h instead.
2992
2993 2011-05-19  Eric Blake  <eblake@redhat.com>
2994
2995         strerror: relax test for Solaris
2996         * tests/test-strerror.c (main): Permit Solaris behavior.
2997         * tests/test-strerror_r.c (main): Likewise.
2998
2999         strerror: enforce POSIX ruling on strerror(0)
3000         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
3001         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
3002         * lib/strerror_r.c (rpl_strerror_r): Work around it.
3003         * doc/posix-functions/strerror.texi (strerror): Document it.
3004         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
3005         * tests/test-strerror.c (main): Strengthen test.
3006         * tests/test-strerror_r.c (main): Likewise.
3007
3008 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
3009
3010         intprop-tests: port to older and more-pedantic compilers
3011         * modules/intprops-tests (Files): Add tests/macros.h.
3012         * tests/test-intprops.c: Include macros.h.
3013         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
3014         it's no longer documented to expand to an integer constant expression.
3015         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
3016         argument is floating point, as it's no longer documented to expand
3017         to an integer constant expression in that case.
3018         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
3019         compiler bugs reported by Bruno Haible.  See
3020         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
3021         (U0, U1): New constants, to work around the same bugs.  Also,
3022         in tests, use e.g., "(unsigned int) 39" rather than "39u".
3023
3024         intprops: work around C compiler bugs
3025         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
3026         bug in Sun C 5.11 2010/08/13 and other compilers; see
3027         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
3028
3029         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
3030         * doc/intprops.texi (Integer Type Determination): Fix
3031         documentation for TYPE_IS_INTEGER: it returns an constant
3032         expression, not an integer constant expression.  Fix doc for
3033         TYPE_SIGNED: it returns an integer constant expression only if its
3034         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
3035         hardly worth documented that way....)
3036
3037 2011-05-18  Bruno Haible  <bruno@clisp.org>
3038
3039         strerror_r: Avoid clobbering the strerror buffer when possible.
3040         * lib/strerror_r.c (strerror_r): Merge the three implementations.
3041         Handle gnulib defined errno values here. When strerror() returns NULL
3042         or an empty string, return EINVAL.
3043         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
3044         gnulib defined errno values here.
3045         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
3046
3047 2011-05-18  Eric Blake  <eblake@redhat.com>
3048
3049         fnmatch: avoid compiler warning
3050         * lib/fnmatch_loop.c (FCT): Use correct type.
3051         Reported by Matthias Bolte.
3052
3053 2011-05-13  Jim Meyering  <meyering@redhat.com>
3054
3055         maint.mk: three new prohibit_<HDR>_without_use rules
3056         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
3057         (sc_prohibit_stdio-safer_without_use): Likewise.
3058         (sc_prohibit_xfreopen_without_use): Likewise.
3059
3060 2011-05-17  Jim Meyering  <meyering@redhat.com>
3061
3062         announce-gen: fail if the NEWS delta is empty
3063         If there's nothing noteworthy in NEWS, then either you forgot
3064         or you shouldn't be releasing.
3065         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
3066
3067 2011-05-17  Pádraig Brady <P@draigBrady.com>
3068
3069         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
3070         reserved symbols starting with double underscore from the check.
3071
3072 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
3073
3074         intprops: add doc
3075         * doc/intprops.texi: New file, documenting intprops.
3076         * doc/gnulib.texi (Particular Modules): Include it.
3077
3078         verify: add doc to gnulib manual and fix example
3079         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
3080         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
3081         (Compile-time Assertions): Fix example so it can't overflow.
3082
3083 2011-05-17  Jim Meyering  <meyering@redhat.com>
3084
3085         warnings.m4: don't usurp save_CPPFLAGS variable name
3086         * m4/warnings.m4: Prefix local temporary variable name with gl_.
3087
3088         doc: fix typo
3089         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
3090
3091 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
3092             Bruno Haible  <bruno@clisp.org>
3093
3094         doc: Tweak recent change.
3095         * README (Portability guidelines): Tweak new text.
3096         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
3097         Interix 6.1.
3098
3099 2011-05-16  Eric Blake  <eblake@redhat.com>
3100
3101         inttypes: avoid autoconf warning
3102         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
3103         * m4/stdint.m4 (gl_STDINT_H): Likewise.
3104
3105 2011-05-16  Sam Steingold <sds@gnu.org>
3106         and Eric Blake  <eblake@redhat.com>
3107
3108         vc-list-files: accept multiple directory operands
3109         * build-aux/vc-list-files: Iterate over all remaining operands.
3110
3111 2011-05-16  Bruno Haible  <bruno@clisp.org>
3112
3113         Fix confusion regarding deprecated modules.
3114         * modules/calloc (Status, Notice): Mark module as deprecated, not
3115         obsolete.
3116         * modules/fnmatch-posix (Status, Notice): Likewise.
3117         * modules/getdate (Status, Notice): Likewise.
3118         * modules/getopt (Status, Notice): Likewise.
3119         * modules/malloc (Status, Notice): Likewise.
3120         * modules/pipe (Status, Notice): Likewise.
3121         * modules/realloc (Status, Notice): Likewise.
3122         * modules/rename-dest-slash (Status, Notice): Likewise.
3123         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
3124         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
3125         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
3126         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
3127         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
3128
3129 2011-05-16  Bruno Haible  <bruno@clisp.org>
3130
3131         doc: List the target platforms.
3132         * doc/gnulib-intro.texi (Target Platforms): New section.
3133         * doc/gnulib.texi (Introduction): Update menu.
3134         * README (Portability guidelines): Refer to the new section. Update
3135         statement about oldest supported environment. Remove rationale why
3136         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
3137         unportable C89 function.
3138         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
3139         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
3140
3141 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
3142
3143         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
3144
3145 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
3146
3147         intprops-tests: new module
3148         * modules/intprops-tests, tests/test-intprops.c: New files.
3149
3150         intprops: add safe, portable integer overflow checking
3151         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
3152         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
3153         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
3154         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
3155         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
3156         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
3157         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
3158         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
3159         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
3160         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
3161         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
3162
3163 2011-05-12  James Youngman  <jay@gnu.org>
3164
3165         Add a test for glibc's Bugzilla bug #12378.
3166         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
3167         doesn't allow the literal matching of a lone "[" (which is
3168         required by POSIX).
3169         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
3170
3171 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
3172
3173         Sync glibc change fixing Bugzilla bug #12378.
3174         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
3175         beginning and fall back to matching as normal character if the
3176         string ends before the matching ']' is found.  This is what POSIX
3177         requires.
3178
3179 2011-05-13  Eric Blake  <eblake@redhat.com>
3180
3181         getcwd-lgpl: relax test for FreeBSD
3182         * doc/posix-functions/getcwd.texi (getcwd): Document portability
3183         issue.
3184         * tests/test-getcwd-lgpl.c (main): Relax test.
3185         Reported by Matthias Bolte.
3186
3187 2011-05-11  Eric Blake  <eblake@redhat.com>
3188
3189         test-fflush: silence compiler warning
3190         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
3191
3192 2011-05-11  Bruno Haible  <bruno@clisp.org>
3193
3194         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
3195         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
3196         * modules/canonicalize (Depends-on): Add 'nocrash'.
3197         * modules/canonicalize-lgpl (Depends-on): Likewise.
3198         * doc/posix-functions/realpath.texi: Update platforms list.
3199         Reported by Ryan Schmidt <ryandesign@macports.org>.
3200
3201 2011-05-11  Bruno Haible  <bruno@clisp.org>
3202
3203         group-member: Declare function in <unistd.h>.
3204         * lib/unistd.in.h (group_member): New declaration.
3205         * lib/group-member.h: Remove file.
3206         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
3207         * tests/test-unistd-c++.cc: Check signature of group_member.
3208         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
3209         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
3210         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
3211         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
3212         HAVE_GROUP_MEMBER.
3213         * modules/group-member (Files): Remove lib/group-member.h.
3214         (Depends-on): Add unistd. Specify conditions.
3215         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
3216         (Include): Change to <unistd.h>.
3217         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
3218         HAVE_GROUP_MEMBER.
3219         * NEWS: Mention the change.
3220         * lib/euidaccess.c: Don't include group-member.h.
3221
3222 2011-05-11  Bruno Haible  <bruno@clisp.org>
3223
3224         group-member: Document module.
3225         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
3226         module.
3227
3228 2011-05-11  Bruno Haible  <bruno@clisp.org>
3229
3230         fclose: Fix mistake earlier today.
3231         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
3232
3233 2011-05-11  Eric Blake  <eblake@redhat.com>
3234
3235         fclose: preserve fflush errors
3236         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
3237         Reported by Jim Meyering.
3238
3239         bootstrap: support a prereq of 'rpcgen -' on RHEL5
3240         * build-aux/bootstrap (check_versions): When no specific version
3241         is required, merely check that the app produces an exit status
3242         that indicates its existence.
3243
3244         maint.mk: drop redundant check
3245         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
3246         the same but better.
3247
3248 2011-05-11  Bruno Haible  <bruno@clisp.org>
3249
3250         fclose: Fix possible link error.
3251         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
3252         unregister_shadow_fd. Improve comments.
3253         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
3254         Eric Blake.
3255
3256 2011-05-11  Jim Meyering  <meyering@redhat.com>
3257
3258         maint.mk: improve "can not" detection and generalize rule name
3259         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
3260         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
3261         Use the same technique as in sc_prohibit_doubled_word, so that
3262         we recognize "can not" also when the words are separated by a newline.
3263         Suggested by Eric Blake.
3264         (perl_filename_lineno_text_): Define.  Factored out of...
3265         (prohibit_doubled_word_): ...here.  Use the new definition.
3266         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
3267         (prohibit_undesirable_word_seq_RE_): New overridable variable.
3268         (ignore_undesirable_word_sequence_RE_): New overridable variable.
3269
3270 2011-05-10  Eric Blake  <eblake@redhat.com>
3271
3272         fclose: avoid double close race when possible
3273         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
3274         all but WINDOWS_SOCKETS.
3275
3276 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
3277
3278         openat: correct new comment
3279         * lib/openat-proc.c (openat_proc_name): Correct the comment.
3280
3281 2011-05-10  Jim Meyering  <meyering@redhat.com>
3282
3283         openat: add comments
3284         * lib/openat-proc.c (openat_proc_name): Add comments,
3285         mostly from Eric Blake.
3286
3287 2011-05-09  Eric Blake  <eblake@redhat.com>
3288
3289         openat: reduce syscalls in first probe of /proc
3290         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
3291         be a directory.  Simplify the probe for .. bugs.
3292         * modules/openat (Depends-on): Drop same-inode.
3293         Reported by Bastien ROUCARIES.
3294
3295 2011-05-09  Jim Meyering  <meyering@redhat.com>
3296
3297         maint.mk: change semantics/name of tight_scope variables
3298         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
3299         Rename variables to align with semantics that make them more useful.
3300
3301         maint.mk: tweak new rule's name not to impinge
3302         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
3303         (sc_tight_scope): Use new rule name rather than $@-0.
3304
3305         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
3306         * top/maint.mk (sc_tight_scope): New rule.
3307         (sc_tight_scope-0): New rule, ifdef'd out.
3308         (_gl_TS_dir): Default.
3309         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
3310         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
3311
3312 2011-05-09  Simon Josefsson  <simon@josefsson.org>
3313
3314         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
3315         Haible <bruno@clisp.org>.
3316
3317 2011-05-08  Bruno Haible  <bruno@clisp.org>
3318
3319         Comments.
3320         * m4/isnanf.m4: Add comment.
3321         * m4/isnanl.m4: Likewise.
3322
3323 2011-05-08  Bruno Haible  <bruno@clisp.org>
3324
3325         glob: Remove obsolete macro.
3326         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
3327
3328 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
3329
3330         intprops: Sun C 5.11 supports __typeof__
3331         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
3332         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
3333         which is new.
3334         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
3335
3336         intprops: switch to usual gnulib indenting and naming
3337         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
3338         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
3339
3340         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
3341
3342 2011-05-08  Jim Meyering  <meyering@redhat.com>
3343
3344         maint.mk: suppress "Entering/Leaving directory" diag in announcement
3345         * top/maint.mk (release-prep): Use make's --no-print-directory
3346         option when generating the announcement.  This eliminates the
3347         pesky "make[2]: Entering/Leaving directory" diagnostics in the
3348         generated announcement template.
3349
3350 2011-05-08  Bruno Haible  <bruno@clisp.org>
3351
3352         tzset: Fix gettimeofday wrapper on Solaris 2.6.
3353         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
3354         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
3355
3356 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
3357
3358         ignore-value, verify: Omit include files from lib_SOURCES.
3359         * modules/ignore-value, modules/verify (Makefile.am):
3360         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
3361         that leads Automake to duplicate use of am__objects_... variables
3362         in Makefile.in.  See
3363         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
3364
3365 2011-05-07  Bruno Haible  <bruno@clisp.org>
3366
3367         fclose: Simplify autoconf macro.
3368         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
3369         defined.
3370
3371 2011-05-07  Bruno Haible  <bruno@clisp.org>
3372
3373         canonicalize-lgpl: Fix autoconf macro ordering bug.
3374         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
3375         gl_STDLIB_H_DEFAULTS.
3376
3377 2011-05-06  Eric Blake  <eblake@redhat.com>
3378
3379         maintainer-makefile: make sc_po_check easier to tune
3380         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
3381         to probe for strings, such as an alternate location for gnulib.
3382
3383         fclose: guarantee behavior on seekable stdin
3384         * modules/fclose (Depends-on): Add fflush.
3385         * doc/posix-functions/fclose.texi (fclose): Document this.
3386         * tests/test-fclose.c (main): Make test for this unconditional.
3387
3388 2011-05-06  Bruno Haible  <bruno@clisp.org>
3389
3390         fflush, fpurge: Relicense under LGPLv2+.
3391         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
3392         * modules/fpurge (License): Likewise.
3393         With permission from Eric Blake and Jim Meyering.
3394         Suggested by Eric Blake.
3395
3396 2011-05-06  Karl Berry  <karl@gnu.org>
3397
3398         * MODULES.html.sh (func_all_modules): remove exit.
3399
3400 2011-05-06  Jim Meyering  <meyering@redhat.com>
3401
3402         maint.mk: use info-gnu@ as the default only for a stable release
3403         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
3404         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
3405         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
3406         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
3407
3408 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3409
3410         assert-h: new module, which supports C1X-style static_assert
3411         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
3412         * lib/verify.h: Revamp so that this can be copied into assert.h,
3413         while retaining the ability to use it standalone as before.
3414         Rename private identifiers so as not to encroach on the
3415         standard C namespace, since this is now used by assert.h.
3416         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
3417         the old verify_true.
3418         (_GL_VERIFY_TRUE): New macro, with much of the contents of
3419         the old verify_true.  Use _GL_VERIFY_TYPE.
3420         (_GL_VERIFY): New macro, with much of the contents of the old verify.
3421         (static_assert): New macro, if _GL_STATIC_ASSERT_H
3422         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
3423         defined when this file is copied into the replacement assert.h.
3424         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
3425         and _Static_assert is not built in.
3426         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
3427         defined, and use the new macros mentioned above.
3428         * doc/posix-headers/assert.texi: Document this.
3429
3430 2011-05-05  Bruno Haible  <bruno@clisp.org>
3431
3432         fclose, fflush: Respect rules for use of AC_LIBOBJ.
3433         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
3434         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
3435         gl_REPLACE_FCLOSE here.
3436         * modules/fflush (Depends-on): Remove fclose.
3437         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
3438         combination with module 'fclose'.
3439
3440 2011-05-05  Bruno Haible  <bruno@clisp.org>
3441
3442         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
3443         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
3444         gl_FUNC_FFLUSH.
3445         (gl_FUNC_FFLUSH): Use it.
3446         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
3447         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
3448         gl_REPLACE_FSEEKO here.
3449
3450 2011-05-05  Bruno Haible  <bruno@clisp.org>
3451
3452         tzset: Relicense under LGPL.
3453         * modules/tzset (License): Change to LGPL.
3454         No agreement needed; it's a no-op.
3455
3456         strtoimax, strtoumax: Relicense under LGPL.
3457         * modules/strtoimax (License): Change to LGPL.
3458         * modules/strtoumax (License): Likewise.
3459         With permission from Jim Meyering, Paul Eggert:
3460         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
3461         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
3462
3463         getgroups: Relicense under LGPL.
3464         * modules/getgroups (License): Change to LGPL.
3465         With permission from Jim Meyering, Paul Eggert, Eric Blake:
3466         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
3467         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
3468         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
3469
3470         nanosleep: Relicense under LGPL.
3471         * modules/nanosleep (License): Change to LGPL.
3472         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
3473         Haible:
3474         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
3475         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
3476         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
3477         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
3478
3479         futimens: Relicense under LGPL.
3480         * modules/futimens (License): Change to LGPL.
3481         With permission from Eric Blake:
3482         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
3483
3484         fflush: Relicense under LGPL.
3485         * modules/fflush (License): Change to LGPL.
3486         With permission from Eric Blake, Bruno Haible, Jim Meyering:
3487         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
3488         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
3489         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
3490
3491         tmpfile: Relicense under LGPL.
3492         * modules/tmpfile (License): Change to LGPL.
3493         With permission from Ben Pfaff:
3494         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
3495
3496         isfinite: Relicense under LGPL.
3497         * modules/isfinite (License): Change to LGPL.
3498         With permission from Ben Pfaff, Bruno Haible:
3499         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
3500         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
3501
3502         acosl..tanl: Relicense under LGPL.
3503         * modules/acosl (License): Change to LGPL.
3504         * modules/asinl (License): Likewise.
3505         * modules/atanl (License): Likewise.
3506         * modules/cosl (License): Likewise.
3507         * modules/expl (License): Likewise.
3508         * modules/logl (License): Likewise.
3509         * modules/sinl (License): Likewise.
3510         * modules/sqrtl (License): Likewise.
3511         * modules/tanl (License): Likewise.
3512         Source code originally from glibc and Paolo Bonzini. Agreements:
3513         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
3514         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
3515
3516 2011-05-05  Bruno Haible  <bruno@clisp.org>
3517
3518         signal: Define sighandler_t.
3519         * lib/signal.in.h (sighandler_t): New type.
3520         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
3521         whether sighandler_t is defined.
3522         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
3523         * modules/signal (Depends-on): Add extensions.
3524         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
3525         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
3526         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
3527
3528 2011-05-05  Eric Blake  <eblake@redhat.com>
3529
3530         maint: remove useless REPLACE_*_H macros
3531         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
3532         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
3533         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
3534         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
3535         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
3536         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
3537         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
3538         * m4/btowc.m4: Update callers.
3539         * m4/dirfd.m4: Likewise.
3540         * m4/duplocale.m4: Likewise.
3541         * m4/fchdir.m4: Likewise.
3542         * m4/fdopendir.m4: Likewise.
3543         * m4/inet_ntop.m4: Likewise.
3544         * m4/inet_pton.m4: Likewise.
3545         * m4/ioctl.m4: Likewise.
3546         * m4/mbrlen.m4: Likewise.
3547         * m4/mbrtowc.m4: Likewise.
3548         * m4/mbsinit.m4: Likewise.
3549         * m4/mbsnrtowcs.m4: Likewise.
3550         * m4/mbsrtowcs.m4: Likewise.
3551         * m4/poll.m4: Likewise.
3552         * m4/setlocale.m4: Likewise.
3553         * m4/wcrtomb.m4: Likewise.
3554         * m4/wcsnrtombs.m4: Likewise.
3555         * m4/wcsrtombs.m4: Likewise.
3556         * m4/wctob.m4: Likewise.
3557         * m4/wcwidth.m4: Likewise.
3558         * modules/posix_spawn: Likewise.
3559         * modules/posix_spawn_file_actions_addclose: Likewise.
3560         * modules/posix_spawn_file_actions_adddup2: Likewise.
3561         * modules/posix_spawn_file_actions_addopen: Likewise.
3562         * modules/posix_spawn_file_actions_destroy: Likewise.
3563         * modules/posix_spawn_file_actions_init: Likewise.
3564         * modules/posix_spawnattr_destroy: Likewise.
3565         * modules/posix_spawnattr_getflags: Likewise.
3566         * modules/posix_spawnattr_getpgroup: Likewise.
3567         * modules/posix_spawnattr_getschedparam: Likewise.
3568         * modules/posix_spawnattr_getschedpolicy: Likewise.
3569         * modules/posix_spawnattr_getsigdefault: Likewise.
3570         * modules/posix_spawnattr_getsigmask: Likewise.
3571         * modules/posix_spawnattr_init: Likewise.
3572         * modules/posix_spawnattr_setflags: Likewise.
3573         * modules/posix_spawnattr_setpgroup: Likewise.
3574         * modules/posix_spawnattr_setschedparam: Likewise.
3575         * modules/posix_spawnattr_setschedpolicy: Likewise.
3576         * modules/posix_spawnattr_setsigdefault: Likewise.
3577         * modules/posix_spawnattr_setsigmask: Likewise.
3578         * modules/posix_spawnp: Likewise.
3579
3580 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
3581
3582         Add option to do-release-commit-and-tag to specify branch.
3583         * build-aux/do-release-commit-and-tag: Add --branch.
3584
3585 2011-05-03  Bruno Haible  <bruno@clisp.org>
3586
3587         Avoid unnecessary compilation units, through conditional dependencies.
3588         * modules/accept (Depends-on): Add conditions to the dependencies.
3589         * modules/acosl (Depends-on): Likewise.
3590         * modules/argz (Depends-on): Likewise.
3591         * modules/asinl (Depends-on): Likewise.
3592         * modules/atanl (Depends-on): Likewise.
3593         * modules/atoll (Depends-on): Likewise.
3594         * modules/bind (Depends-on): Likewise.
3595         * modules/btowc (Depends-on): Likewise.
3596         * modules/canonicalize-lgpl (Depends-on): Likewise.
3597         * modules/ceil (Depends-on): Likewise.
3598         * modules/ceilf (Depends-on): Likewise.
3599         * modules/ceill (Depends-on): Likewise.
3600         * modules/chdir-long (Depends-on): Likewise.
3601         * modules/chown (Depends-on): Likewise.
3602         * modules/close (Depends-on): Likewise.
3603         * modules/connect (Depends-on): Likewise.
3604         * modules/cosl (Depends-on): Likewise.
3605         * modules/dirfd (Depends-on): Likewise.
3606         * modules/dprintf (Depends-on): Likewise.
3607         * modules/dprintf-posix (Depends-on): Likewise.
3608         * modules/error (Depends-on): Likewise.
3609         * modules/euidaccess (Depends-on): Likewise.
3610         * modules/expl (Depends-on): Likewise.
3611         * modules/faccessat (Depends-on): Likewise.
3612         * modules/fchdir (Depends-on): Likewise.
3613         * modules/fclose (Depends-on): Likewise.
3614         * modules/fcntl (Depends-on): Likewise.
3615         * modules/fdopendir (Depends-on): Likewise.
3616         * modules/fflush (Depends-on): Likewise.
3617         * modules/floor (Depends-on): Likewise.
3618         * modules/floorf (Depends-on): Likewise.
3619         * modules/floorl (Depends-on): Likewise.
3620         * modules/fnmatch (Depends-on): Likewise.
3621         * modules/fopen (Depends-on): Likewise.
3622         * modules/fprintf-posix (Depends-on): Likewise.
3623         * modules/frexp (Depends-on): Likewise.
3624         * modules/frexp-nolibm (Depends-on): Likewise.
3625         * modules/frexpl (Depends-on): Likewise.
3626         * modules/frexpl-nolibm (Depends-on): Likewise.
3627         * modules/fseek (Depends-on): Likewise.
3628         * modules/fsusage (Depends-on): Likewise.
3629         * modules/ftell (Depends-on): Likewise.
3630         * modules/ftello (Depends-on): Likewise.
3631         * modules/futimens (Depends-on): Likewise.
3632         * modules/getcwd (Depends-on): Likewise.
3633         * modules/getcwd-lgpl (Depends-on): Likewise.
3634         * modules/getdelim (Depends-on): Likewise.
3635         * modules/getdomainname (Depends-on): Likewise.
3636         * modules/getgroups (Depends-on): Likewise.
3637         * modules/gethostname (Depends-on): Likewise.
3638         * modules/getline (Depends-on): Likewise.
3639         * modules/getlogin_r (Depends-on): Likewise.
3640         * modules/getopt-posix (Depends-on): Likewise.
3641         * modules/getpeername (Depends-on): Likewise.
3642         * modules/getsockname (Depends-on): Likewise.
3643         * modules/getsockopt (Depends-on): Likewise.
3644         * modules/getsubopt (Depends-on): Likewise.
3645         * modules/getusershell (Depends-on): Likewise.
3646         * modules/glob (Depends-on): Likewise.
3647         * modules/grantpt (Depends-on): Likewise.
3648         * modules/iconv_open (Depends-on): Likewise.
3649         * modules/iconv_open-utf (Depends-on): Likewise.
3650         * modules/inet_ntop (Depends-on): Likewise.
3651         * modules/inet_pton (Depends-on): Likewise.
3652         * modules/ioctl (Depends-on): Likewise.
3653         * modules/isapipe (Depends-on): Likewise.
3654         * modules/isfinite (Depends-on): Likewise.
3655         * modules/isinf (Depends-on): Likewise.
3656         * modules/lchown (Depends-on): Likewise.
3657         * modules/ldexpl (Depends-on): Likewise.
3658         * modules/link (Depends-on): Likewise.
3659         * modules/linkat (Depends-on): Likewise.
3660         * modules/listen (Depends-on): Likewise.
3661         * modules/logl (Depends-on): Likewise.
3662         * modules/lstat (Depends-on): Likewise.
3663         * modules/mbrlen (Depends-on): Likewise.
3664         * modules/mbrtowc (Depends-on): Likewise.
3665         * modules/mbsinit (Depends-on): Likewise.
3666         * modules/mbsnrtowcs (Depends-on): Likewise.
3667         * modules/mbsrtowcs (Depends-on): Likewise.
3668         * modules/mbtowc (Depends-on): Likewise.
3669         * modules/memcmp (Depends-on): Likewise.
3670         * modules/mkdir (Depends-on): Likewise.
3671         * modules/mkdtemp (Depends-on): Likewise.
3672         * modules/mkfifo (Depends-on): Likewise.
3673         * modules/mkfifoat (Depends-on): Likewise.
3674         * modules/mknod (Depends-on): Likewise.
3675         * modules/mkostemp (Depends-on): Likewise.
3676         * modules/mkostemps (Depends-on): Likewise.
3677         * modules/mkstemp (Depends-on): Likewise.
3678         * modules/mkstemps (Depends-on): Likewise.
3679         * modules/mktime (Depends-on): Likewise.
3680         * modules/nanosleep (Depends-on): Likewise.
3681         * modules/open (Depends-on): Likewise.
3682         * modules/openat (Depends-on): Likewise.
3683         * modules/perror (Depends-on): Likewise.
3684         * modules/poll (Depends-on): Likewise.
3685         * modules/popen (Depends-on): Likewise.
3686         * modules/posix_spawn (Depends-on): Likewise.
3687         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
3688         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
3689         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
3690         * modules/posix_spawnp (Depends-on): Likewise.
3691         * modules/pread (Depends-on): Likewise.
3692         * modules/printf-posix (Depends-on): Likewise.
3693         * modules/ptsname (Depends-on): Likewise.
3694         * modules/putenv (Depends-on): Likewise.
3695         * modules/pwrite (Depends-on): Likewise.
3696         * modules/readline (Depends-on): Likewise.
3697         * modules/readlink (Depends-on): Likewise.
3698         * modules/readlinkat (Depends-on): Likewise.
3699         * modules/recv (Depends-on): Likewise.
3700         * modules/recvfrom (Depends-on): Likewise.
3701         * modules/regex (Depends-on): Likewise.
3702         * modules/remove (Depends-on): Likewise.
3703         * modules/rename (Depends-on): Likewise.
3704         * modules/renameat (Depends-on): Likewise.
3705         * modules/rmdir (Depends-on): Likewise.
3706         * modules/round (Depends-on): Likewise.
3707         * modules/roundf (Depends-on): Likewise.
3708         * modules/roundl (Depends-on): Likewise.
3709         * modules/rpmatch (Depends-on): Likewise.
3710         * modules/select (Depends-on): Likewise.
3711         * modules/send (Depends-on): Likewise.
3712         * modules/sendto (Depends-on): Likewise.
3713         * modules/setenv (Depends-on): Likewise.
3714         * modules/setlocale (Depends-on): Likewise.
3715         * modules/setsockopt (Depends-on): Likewise.
3716         * modules/shutdown (Depends-on): Likewise.
3717         * modules/sigaction (Depends-on): Likewise.
3718         * modules/signbit (Depends-on): Likewise.
3719         * modules/sigprocmask (Depends-on): Likewise.
3720         * modules/sinl (Depends-on): Likewise.
3721         * modules/sleep (Depends-on): Likewise.
3722         * modules/snprintf (Depends-on): Likewise.
3723         * modules/snprintf-posix (Depends-on): Likewise.
3724         * modules/socket (Depends-on): Likewise.
3725         * modules/sprintf-posix (Depends-on): Likewise.
3726         * modules/sqrtl (Depends-on): Likewise.
3727         * modules/stat (Depends-on): Likewise.
3728         * modules/strchrnul (Depends-on): Likewise.
3729         * modules/strdup-posix (Depends-on): Likewise.
3730         * modules/strerror (Depends-on): Likewise.
3731         * modules/strerror_r-posix (Depends-on): Likewise.
3732         * modules/strndup (Depends-on): Likewise.
3733         * modules/strnlen (Depends-on): Likewise.
3734         * modules/strptime (Depends-on): Likewise.
3735         * modules/strsep (Depends-on): Likewise.
3736         * modules/strsignal (Depends-on): Likewise.
3737         * modules/strstr-simple (Depends-on): Likewise.
3738         * modules/strtod (Depends-on): Likewise.
3739         * modules/strtoimax (Depends-on): Likewise.
3740         * modules/strtok_r (Depends-on): Likewise.
3741         * modules/strtoumax (Depends-on): Likewise.
3742         * modules/symlink (Depends-on): Likewise.
3743         * modules/symlinkat (Depends-on): Likewise.
3744         * modules/tanl (Depends-on): Likewise.
3745         * modules/tcgetsid (Depends-on): Likewise.
3746         * modules/tmpfile (Depends-on): Likewise.
3747         * modules/trunc (Depends-on): Likewise.
3748         * modules/truncf (Depends-on): Likewise.
3749         * modules/truncl (Depends-on): Likewise.
3750         * modules/uname (Depends-on): Likewise.
3751         * modules/unlink (Depends-on): Likewise.
3752         * modules/unlockpt (Depends-on): Likewise.
3753         * modules/unsetenv (Depends-on): Likewise.
3754         * modules/usleep (Depends-on): Likewise.
3755         * modules/utimensat (Depends-on): Likewise.
3756         * modules/vasprintf (Depends-on): Likewise.
3757         * modules/vdprintf (Depends-on): Likewise.
3758         * modules/vdprintf-posix (Depends-on): Likewise.
3759         * modules/vfprintf-posix (Depends-on): Likewise.
3760         * modules/vprintf-posix (Depends-on): Likewise.
3761         * modules/vsnprintf (Depends-on): Likewise.
3762         * modules/vsnprintf-posix (Depends-on): Likewise.
3763         * modules/vsprintf-posix (Depends-on): Likewise.
3764         * modules/wcrtomb (Depends-on): Likewise.
3765         * modules/wcscasecmp (Depends-on): Likewise.
3766         * modules/wcscspn (Depends-on): Likewise.
3767         * modules/wcsdup (Depends-on): Likewise.
3768         * modules/wcsncasecmp (Depends-on): Likewise.
3769         * modules/wcsnrtombs (Depends-on): Likewise.
3770         * modules/wcspbrk (Depends-on): Likewise.
3771         * modules/wcsrtombs (Depends-on): Likewise.
3772         * modules/wcsspn (Depends-on): Likewise.
3773         * modules/wcsstr (Depends-on): Likewise.
3774         * modules/wcstok (Depends-on): Likewise.
3775         * modules/wcswidth (Depends-on): Likewise.
3776         * modules/wctob (Depends-on): Likewise.
3777         * modules/wctomb (Depends-on): Likewise.
3778         * modules/wctype (Depends-on): Likewise.
3779         * modules/wcwidth (Depends-on): Likewise.
3780         * modules/write (Depends-on): Likewise.
3781
3782 2011-05-03  Bruno Haible  <bruno@clisp.org>
3783
3784         Support for conditional dependencies.
3785         * doc/gnulib.texi (Module description): Document the syntax of
3786         conditional dependencies.
3787         * gnulib-tool: New option --conditional-dependencies.
3788         (func_usage): Document it.
3789         (cond_dependencies): New variable.
3790         (func_get_automake_snippet_conditional,
3791         func_get_automake_snippet_unconditional): New functions, extracted from
3792         func_get_automake_snippet.
3793         (func_get_automake_snippet): Use them.
3794         (sed_first_32_chars): New variable.
3795         (func_module_shellfunc_name): New function.
3796         (func_module_shellvar_name): New function.
3797         (func_module_conditional_name): New function.
3798         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
3799         func_cond_module_condition): New functions.
3800         (func_modules_transitive_closure): Add support for conditional
3801         dependencies.
3802         (func_emit_lib_Makefile_am): For a conditional module, enclose the
3803         conditional automake snippet in an automake conditional.
3804         (func_emit_autoconf_snippets): Emit shell functions that contain the
3805         code for conditional modules.
3806         (func_import, func_create_testdir): Update specification.
3807
3808 2011-05-03  Eric Blake  <eblake@redhat.com>
3809
3810         test-getaddrinfo: report error information
3811         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
3812
3813 2011-05-03  Jim Meyering  <meyering@redhat.com>
3814
3815         bootstrap: avoid build failure when $GZIP is set
3816         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
3817         program name.  If defined at all, it is supposed to list gzip options.
3818         Reported by Alan Curry in http://debbugs.gnu.org/8609
3819
3820 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
3821
3822         readme-release: new module with release instructions
3823         * modules/readme-release: New module.
3824         * top/README-release: New file, from coreutils, grep, diffutils.
3825         * MODULES.html.sh (Support for maintaining and releasing): Add it.
3826
3827 2011-05-02  Eric Blake  <eblake@redhat.com>
3828
3829         fflush: also replace fclose when fixing fflush
3830         * modules/fflush (Depends-on): Add fclose.
3831         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
3832         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
3833         memstreams with no backing fd.
3834         * doc/posix-functions/fclose.texi (fclose): Document the use of
3835         fflush module to fix the bug.
3836         * tests/test-fclose.c (main): Relax test when fclose is used in
3837         isolation.
3838
3839         fclose: add some tests
3840         * modules/fclose-tests: New test module.
3841         * tests/test-fclose.c: New file.
3842         * doc/posix-functions/fclose.texi (fclose): Document the bug.
3843
3844         fclose: reduced dependencies
3845         * modules/fclose (Depends-on): Switch from fflush/fseeko to
3846         simpler lseek.
3847         * lib/fclose.c (rpl_fclose): Likewise.
3848         Reported by Simon Josefsson.
3849
3850         exit: drop remaining clients
3851         * modules/argmatch (Depends-on): Replace exit with stdlib.
3852         * modules/copy-file (Depends-on): Likewise.
3853         * modules/execute (Depends-on): Likewise.
3854         * modules/exitfail (Depends-on): Likewise.
3855         * modules/obstack (Depends-on): Likewise.
3856         * modules/pagealign_alloc (Depends-on): Likewise.
3857         * modules/pipe-filter-gi (Depends-on): Likewise.
3858         * modules/pipe-filter-ii (Depends-on): Likewise.
3859         * modules/savewd (Depends-on): Likewise.
3860         * modules/spawn-pipe (Depends-on): Likewise.
3861         * modules/wait-process (Depends-on): Likewise.
3862         * modules/xsetenv (Depends-on): Likewise.
3863         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
3864         * modules/git-merge-changelog (Depends-on): Likewise.
3865         * modules/long-options (Depends-on): Likewise.
3866         * modules/pt_chown (Depends-on): Likewise.
3867         * modules/sysexits (Depends-on): Likewise.
3868
3869         freading: relax license from LGPLv3+ to LGPLv2+
3870         * modules/freading (License): Relax LGPL version.
3871
3872 2011-05-02  Bruno Haible  <bruno@clisp.org>
3873
3874         fchdir: Remove unused dependencies.
3875         * modules/fchdir (Depends-on): Remove include_next.
3876
3877 2011-05-02  Bruno Haible  <bruno@clisp.org>
3878
3879         gnulib-tool: Refactor.
3880         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
3881         from func_emit_autoconf_snippets.
3882         (func_emit_autoconf_snippets): Use it.
3883
3884 2011-05-02  Simon Josefsson  <simon@josefsson.org>
3885
3886         * NEWS: Document removal of 'exit'.
3887         * modules/exit: Remove file.
3888
3889 2011-05-01  Bruno Haible  <bruno@clisp.org>
3890
3891         Update DEPENDENCIES.
3892         * DEPENDENCIES (gettext): Recommend the newest release.
3893         Reported by Simon Josefsson.
3894
3895 2011-05-01  Bruno Haible  <bruno@clisp.org>
3896
3897         gnulib-tool: Reduce code duplication.
3898         * gnulib-tool (func_emit_autoconf_snippets): New function.
3899         (func_import, func_create_testdir): Use it.
3900
3901 2011-04-30  Eric Blake  <eblake@redhat.com>
3902
3903         fclose: don't fail on non-seekable input stream
3904         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
3905         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
3906         since fflush is allowed to fail in that case.
3907
3908 2011-04-30  Bruno Haible  <bruno@clisp.org>
3909
3910         dup3: cleanup
3911         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
3912
3913 2011-04-30  Bruno Haible  <bruno@clisp.org>
3914
3915         netdb: Make it work in C++ mode.
3916         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
3917         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
3918         module.
3919         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
3920         gl_MODULE_INDICATOR_FOR_TESTS.
3921         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
3922         * modules/netdb-c++-tests: New file.
3923         * tests/test-netdb-c++.cc: New file.
3924
3925 2011-04-30  Bruno Haible  <bruno@clisp.org>
3926
3927         New modules 'vfscanf', 'vscanf'.
3928         * modules/vfscanf: New file.
3929         * modules/vscanf: New file.
3930         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
3931         here.
3932         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
3933         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
3934
3935 2011-04-30  Bruno Haible  <bruno@clisp.org>
3936
3937         passfd: Add comments.
3938         * lib/passfd.c: Add comments about platforms.
3939
3940 2011-04-30  Bruno Haible  <bruno@clisp.org>
3941
3942         sys_uio: Make <sys/uio.h> self-contained.
3943         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
3944         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
3945
3946 2011-04-30  Bruno Haible  <bruno@clisp.org>
3947
3948         sys_socket: Ensure 'struct iovec' definition.
3949         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
3950         <sys/socket.h>.
3951         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
3952
3953 2011-04-30  Bruno Haible  <bruno@clisp.org>
3954
3955         sys_uio: Protect definition of 'struct iovec'.
3956         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
3957         it as a C struct.
3958
3959 2011-04-30  Bruno Haible  <bruno@clisp.org>
3960
3961         manywarnings: fix indentation
3962         * m4/manywarnings.m4: Indent by 2 spaces consistently.
3963
3964 2011-04-30  Pádraig Brady <P@draigBrady.com>
3965
3966         manywarnings: add -Wno-missing-field-initializers if needed.
3967         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
3968         option if it's needed to allow initialization with { 0, }
3969
3970 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
3971
3972         announce-gen: cosmetic improvement
3973         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
3974
3975 2011-04-29  Jim Meyering  <meyering@redhat.com>
3976
3977         vc-list-files: indent with spaces, not TABs
3978         * build-aux/vc-list-files: Convert leading TABs to spaces,
3979         to match the style of most other files in gnulib.
3980
3981         announce-gen: indent with spaces, not TABs
3982         * build-aux/announce-gen: Convert all TABs to spaces, to match
3983         the style of most other files in gnulib.
3984
3985 2011-04-29  Eric Blake  <eblake@redhat.com>
3986
3987         quotearg: avoid uninitialized variable use
3988         * lib/quotearg.c (quoting_options_from_style): Initialize
3989         remaining fields, and ensure that custom styles are only used via
3990         quoting_options rather than quoting_style.
3991
3992 2011-04-29  Jim Meyering  <meyering@redhat.com>
3993
3994         maint.mk: remove unused VC-tag variable
3995         * top/maint.mk (VC-tag): Remove unused variable.
3996
3997 2011-04-29  Bruno Haible  <bruno@clisp.org>
3998
3999         netdb: fix gai_strerror replacements
4000         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
4001         * modules/netdb: Substitute it.
4002
4003 2011-04-29  Jim Meyering  <meyering@redhat.com>
4004
4005         test-getcwd.c: avoid new set-but-not-used warning
4006         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
4007         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
4008         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
4009         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
4010
4011         test-hash.c: avoid a new shadowing warning
4012         * tests/test-hash.c (main): Don't shadow "dup".
4013
4014 2011-04-28  Eric Blake  <eblake@redhat.com>
4015
4016         getaddrinfo: fix gai_strerror signature
4017         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
4018         and work around mingw with UNICODE defined.
4019         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
4020         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
4021         * modules/netdb (Makefile.am): Substitute it.
4022         * lib/netdb.in.h (gai_strerror): Declare replacement.
4023         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
4024         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
4025         the fix.
4026
4027         getsockopt: avoid compiler warning
4028         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
4029         Reported by Matthias Bolte.
4030
4031         tests: drop unused link dependency
4032         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
4033         * modules/dirent-safer-tests (Makefile.am): Likewise.
4034         * modules/fdopendir-tests (Makefile.am): Likewise.
4035         * modules/mkfifoat-tests (Makefile.am): Likewise.
4036         * modules/openat-safer-tests (Makefile.am): Likewise.
4037         * modules/openat-tests (Makefile.am): Likewise.
4038         * modules/readlinkat-tests (Makefile.am): Likewise.
4039         * modules/symlinkat-tests (Makefile.am): Likewise.
4040         * modules/linkat-tests (Makefile.am): Likewise.
4041         (Depends-on): Switch to filenamecat-lgpl.
4042         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
4043         LIBINTL.
4044         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
4045         * tests/test-linkat.c (main): Don't require xalloc.
4046
4047         hash, mgetgroups: drop xalloc dependency
4048         * lib/hash.c (includes): Adjust includes.
4049         * lib/mgetgroups.c (includes): Likewise.
4050         (xgetgroups): Move...
4051         * lib/xgetgroups.c: ...to new file.
4052         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
4053         * modules/xgetgroups: New file, split from...
4054         * modules/mgetgroups: ...here.
4055         (Depends-on): Add xalloc-oversized.
4056         * modules/hash (Depends-on): Likewise.
4057         * modules/hash-tests (Depends-on): Drop xalloc.
4058         (test_hash_LDADD): Drop unused library.
4059         * tests/test-hash.c (main): Break xalloc dependency.
4060         (includes): Drop unused include.
4061
4062         xalloc-oversized: new module
4063         * modules/xalloc-oversized: New module.
4064         * modules/xalloc (Depends-on): Add it.
4065         * lib/xalloc.h (xalloc_oversized): Move...
4066         * lib/xalloc-oversized.h: ...into new file.
4067
4068         utimecmp: drop dependency on xmalloc
4069         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
4070         due to memory pressure.
4071         * modules/utimecmp (Depends-on): Drop xalloc.
4072
4073 2011-04-27  Eric Blake  <eblake@redhat.com>
4074
4075         getcwd: fix mingw bugs
4076         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
4077         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
4078         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
4079
4080 2011-04-27  Bruno Haible  <bruno@clisp.org>
4081
4082         mkstemps: Ensure declaration on MacOS X 10.5.
4083         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
4084         * doc/glibc-functions/mkstemps.texi: Document header file problem on
4085         MacOS X.
4086
4087 2011-04-27  Bruno Haible  <bruno@clisp.org>
4088
4089         mkstemp: More documentation.
4090         * doc/posix-functions/mkstemp.texi: Document header file problem on
4091         MacOS X.
4092
4093 2011-04-27  Bruno Haible  <bruno@clisp.org>
4094
4095         mkstemp: Tweak configure message when cross-compiling.
4096         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
4097         result as a guess.
4098
4099 2011-04-27  Bruno Haible  <bruno@clisp.org>
4100
4101         clean-temp: Clarify what it does.
4102         * lib/clean-temp.h: Add more comments.
4103         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
4104         module.
4105         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
4106         * doc/glibc-functions/mkstemps.texi: Likewise.
4107         * doc/glibc-functions/mkostemps.texi: Likewise.
4108
4109 2011-04-27  Eric Blake  <eblake@redhat.com>
4110
4111         fchdir: avoid extra chdir and fix test
4112         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
4113         getcwd-lgpl.
4114         * lib/fchdir.c (get_name): Any absolute name will do; it does not
4115         have to be canonical.
4116         (canonicalize_file_name): Drop unused macro.
4117         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
4118
4119         filenamecat-lgpl: fix licence
4120         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
4121         when it was first created.
4122
4123         linkat, renameat: add missing dependency
4124         * modules/linkat (Depends-on): Require getcwd-lgpl.
4125         * modules/renameat (Depends-on): Likewise.
4126
4127         tests: reduce dependencies
4128         * tests/test-linkat.c (main): Use lighter-weight getcwd.
4129         * tests/test-renameat.c (main): Likewise.
4130         * modules/linkat-tests (Depends-on): Relax dependency.
4131         * modules/renameat-tests (Depends-on): Likewise.
4132         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
4133         dependency explicit.
4134
4135         save-cwd: reduce default dependency
4136         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
4137         * lib/save-cwd.c: Update comments.
4138         * NEWS: Document the semantic change.
4139
4140         getcwd: enhance tests
4141         * tests/test-getcwd-lgpl.c: New file, taken from...
4142         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
4143         repeat long path stress tests from m4 probe.
4144         * modules/getcwd-lgpl-tests: New module.
4145         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
4146         * m4/getcwd-abort-bug.m4: Update comment.
4147         * m4/getcwd-path-max.m4: Likewise.
4148
4149         getcwd-lgpl: new module
4150         * modules/getcwd-lgpl: New module.
4151         * lib/getcwd-lgpl.c: New file.
4152         * doc/posix-functions/getcwd.texi (getcwd): Document it.
4153         * MODULES.html.sh (lacking POSIX:2008): Likewise.
4154         * modules/getcwd (configure.ac): Set C witness.
4155         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
4156
4157         getcwd: tweak comments
4158         * m4/getcwd-abort-bug.m4: Fix comments.
4159         * m4/getcwd-path-max.m4: Likewise.
4160         * m4/getcwd.m4: Likewise.
4161
4162 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
4163         and Eric Blake  <eblake@redhat.com>
4164
4165         mkstemp: replace if system version uses wrong permissions
4166         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
4167         read/write mode bits set in file created by mkstemp.
4168         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
4169
4170 2011-04-27  Eric Blake  <eblake@redhat.com>
4171
4172         passfd: avoid compiler warning
4173         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
4174         Reported by Laine Stump.
4175
4176 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
4177
4178         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
4179         required by the NetBSD (and perhaps other 4.4BSD derived) join.
4180
4181 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
4182         and Eric Blake  <eblake@redhat.com>
4183
4184         mkstemp: mention clean-temp module
4185         * lib/mkstemp.c: Add comment.
4186         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
4187
4188 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
4189
4190         inttypes: also provide default values for 32-bit tests
4191         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
4192         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
4193
4194 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
4195
4196         strtoumax: remove dependency on strtoimax
4197         This is like the strtoull change of yesterday.
4198         * modules/strtoumax (Files): Add lib/strtoimax.c.
4199         (Depends-on): Remove strtoimax and add verify.
4200
4201         inttypes-incomplete: new module
4202         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
4203         all but the PRI* and SCN* parts of gl_INTTYPES_H.
4204         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
4205         of gl_INTTYPES_H.
4206         (gl_INTTYPES_H): Rewrite in terms of these new macros.
4207         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
4208         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
4209         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
4210         * modules/strtoumax, modules/xstrtol (Depends-on):
4211         Depend on inttypes-incomplete, not inttypes.
4212         * modules/inttypes-incomplete: New module, containing the contents
4213         of the old modules/inttypes module, except that the Files: section
4214         omits m4/inttypes-pri.m4, and the configure.ac section invokes
4215         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
4216         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
4217         (Depends-on): Depend only on inttypes-incomplete.
4218         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
4219
4220         inttypes: omit now-redundant strtoimax and strtoumax work
4221         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
4222         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
4223
4224         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
4225         This supports apps that need pointers to strtoimax and strtoumax,
4226         and ports to HP-UX 11.00 64.bit, which has macros that expand to
4227         nonexistent functions.  See
4228         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
4229         et seq.
4230         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
4231         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
4232         a macro.
4233         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
4234
4235 2011-04-25  Simon Josefsson  <simon@josefsson.org>
4236
4237         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
4238
4239 2011-04-25  Bruno Haible  <bruno@clisp.org>
4240
4241         strtol, strtoul: Mark modules as obsolete.
4242         * modules/strtol (Status, Notice): New sections.
4243         * modules/strtoul (Status, Notice): New sections.
4244
4245 2011-04-25  Bruno Haible  <bruno@clisp.org>
4246
4247         strtod: Remove check for strtod, unless supporting old platforms.
4248         * modules/strtod-obsolete: New file.
4249         * m4/strtod-obsolete.m4: New file.
4250         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
4251         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
4252         * modules/strtod (Depends-on): Add strtod-obsolete.
4253         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
4254
4255 2011-04-25  Bruno Haible  <bruno@clisp.org>
4256
4257         strcase: Make module obsolete.
4258         * modules/strcase (Status, Notice): New sections.
4259
4260 2011-04-25  Bruno Haible  <bruno@clisp.org>
4261
4262         dup2: Remove check for dup2, unless supporting old obsolete platforms.
4263         * modules/dup2-obsolete: New file.
4264         * m4/dup2-obsolete.m4: New file.
4265         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
4266         gl_FUNC_DUP2_OBSOLETE is not also defined.
4267         * modules/dup2 (Depends-on): Add dup2-obsolete.
4268         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
4269
4270 2011-04-25  Bruno Haible  <bruno@clisp.org>
4271
4272         strnlen: Avoid memchr related link error on old obsolete platforms.
4273         * modules/memchr-obsolete: New file.
4274         * m4/memchr-obsolete.m4: New file.
4275         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
4276         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
4277         * modules/memchr (Depends-on): Add memchr-obsolete.
4278         * modules/strnlen (Depends-on): Likewise.
4279         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
4280
4281 2011-04-25  Jim Meyering  <meyering@redhat.com>
4282
4283         maint.mk: makefile_at_at_check extend and clean up
4284         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
4285         in addition to */Makefile.am.
4286         Exempt legitimate uses of @VAR@ notation, e.g.,
4287         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
4288         Remove obsolete coreutils-specific comment.
4289         Prompted by discussion here:
4290         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
4291
4292 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
4293
4294         strtoul: remove dependency on strtol
4295         This is so that 'configure' need not check for strtol merely because
4296         the application needs strtoul.
4297         * modules/strtoul (Files): Add lib/strtol.c.
4298         (Depends-on): Remove strtol.
4299
4300         strtoull: remove dependency on strtoul
4301         This is like the strtoll change.
4302         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
4303         (Depends-on): Remove strtoul.
4304
4305         strtoll: remove dependency on strtol
4306         This is so that 'configure' need not check for strtol merely because
4307         the application needs strtoll.
4308         * modules/strtoll (Files): Add lib/strtol.c.
4309         (Depends-on): Remove strtol.
4310
4311 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4312
4313         inttypes: Move some configure check to module 'imaxdiv'.
4314         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
4315         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
4316         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
4317
4318 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4319
4320         inttypes: Move some configure check to module 'imaxabs'.
4321         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
4322         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
4323         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
4324
4325 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4326
4327         inttypes: Remove configure tests that are not needed since 2009-12-31.
4328         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
4329         gl_cv_header_working_inttypes_h.
4330
4331 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4332
4333         * modules/strnlen (Depends-on): Remove memchr.
4334         The strnlen implementation doesn't need the memchr module's fixes; see
4335         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
4336
4337         strtol: remove dependency on wchar
4338         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
4339         * modules/strtol (Depends-on): Remove wchar.
4340
4341 2011-04-21  Eric Blake  <eblake@redhat.com>
4342
4343         passfd: fix test regression on Linux
4344         * modules/passfd-tests (configure.ac): Correct socketpair check.
4345
4346         passfd: speed up configure and drop unused code
4347         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
4348         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
4349         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
4350         Instead of probing at configure for unix_scm_rights_bsd44_way,
4351         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
4352         check to a struct member probe.
4353         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
4354         (sendfd, recvfd): Update preprocessor checks.
4355         * modules/passfd (Files): Reflect rename, and drop unused file.
4356         (Depends-on): Drop unused dependency.
4357
4358         passfd: allow compilation on mingw
4359         * modules/sys_socket (Depends-on): Add sys_uio.
4360         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
4361         iovec and a minimal struct msghdr.
4362         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
4363         * tests/test-sys_socket.c (main): Enhance test.
4364         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
4365         guaranteed to provide what we need.
4366         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
4367         * modules/passfd-tests (Depends-on): Add sys_wait.
4368         * tests/test-passfd.c (main): Skip test on mingw, for now.
4369         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
4370         partial 'struct msghdr' implementation.
4371
4372         sys_uio: new module
4373         * modules/sys_uio: New module.
4374         * modules/sys_uio-tests: Likewise.
4375         * lib/sys_uio.in.h: New file.
4376         * m4/sys_uio_h.m4: Likewise.
4377         * tests/test-sys_uio.c: Likewise.
4378         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
4379         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
4380
4381 2011-04-20  Jim Meyering  <meyering@redhat.com>
4382
4383         useless-if-before-free: avoid false-positive
4384         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
4385         disjunct so that it too requires a terminating ";".  Without that,
4386         this script would identify as useless one statement from gcc that
4387         was not:
4388           if (aligned_ptr)
4389             free (((void **) aligned_ptr) [-1]);
4390
4391 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
4392
4393         doc: update users.txt.
4394         * users.txt: Add barcode.
4395
4396 2011-04-19  Bruno Haible  <bruno@clisp.org>
4397
4398         ioctl: Remove link dependency on native Windows.
4399         * lib/fd-hook.h: Renamed from lib/close-hook.h.
4400         (gl_close_fn, gl_ioctl_fn): New types.
4401         (struct fd_hook): Renamed from struct close_hook. Change type of
4402         private_close_fn field. Add private_ioctl_fn field.
4403         (close_hook_fn): Add parameter for primary close method.
4404         (execute_close_hooks, execute_all_close_hooks): Likewise.
4405         (ioctl_hook_fn): New type.
4406         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
4407         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
4408         argument.
4409         (unregister_fd_hook): Renamed from unregister_close_hook.
4410         * lib/fd-hook.c: Renamed from lib/close-hook.c.
4411         Don't include <unistd.h>.
4412         (close): Remove undef.
4413         (anchor): Update.
4414         (execute_close_hooks): Add argument for primary close method.
4415         (execute_all_close_hooks): Likewise.
4416         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
4417         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
4418         argument. Allow each argument to be NULL.
4419         (unregister_fd_hook): Renamed from unregister_close_hook.
4420         * lib/close.c (rpl_close): Pass 'close' function pointer to
4421         execute_all_close_hooks.
4422         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
4423         (primary_ioctl): New function.
4424         (ioctl): Don't call ioctlsocket here. Instead, call
4425         execute_all_ioctl_hooks.
4426         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
4427         close method.
4428         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
4429         (fd_sockets_hook): Renamed from close_sockets_hook.
4430         (gl_sockets_startup, gl_sockets_cleanup): Update.
4431         * modules/fd-hook: Renamed from modules/close-hook. Update.
4432         * modules/close (Depends-on): Add fd-hook, remove close-hook.
4433         * modules/sockets (Depends-on): Likewise.
4434         * modules/ioctl (Depends-on): Add fd-hook.
4435         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
4436         GNULIB_SOCKET.
4437
4438 2011-04-19  Bruno Haible  <bruno@clisp.org>
4439
4440         Move the support of O_NONBLOCK in open() to the 'open' module.
4441         * modules/nonblocking (Depends-on): Remove 'open'.
4442         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
4443         gl_cv_have_open_O_NONBLOCK.
4444         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
4445         O_NONBLOCK support.
4446         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
4447
4448 2011-04-17  Bruno Haible  <bruno@clisp.org>
4449
4450         pipe2: Simplify code.
4451         * lib/pipe2.c (pipe2): Reduce code duplication.
4452
4453 2011-04-17  Bruno Haible  <bruno@clisp.org>
4454
4455         nonblocking: Add comment.
4456         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
4457
4458 2011-04-17  Bruno Haible  <bruno@clisp.org>
4459
4460         nonblocking: Add tests for sockets.
4461         * tests/test-nonblocking-socket.sh: New file.
4462         * tests/test-nonblocking-socket-main.c: New file.
4463         * tests/test-nonblocking-socket-child.c: New file.
4464         * tests/test-nonblocking-socket.h: New file.
4465         * tests/socket-server.h: New file.
4466         * tests/socket-client.h: New file.
4467         * modules/nonblocking-socket-tests: New file.
4468         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
4469
4470 2011-04-17  Bruno Haible  <bruno@clisp.org>
4471
4472         nonblocking: Add tests for pipes.
4473         * tests/test-nonblocking-pipe.sh: New file.
4474         * tests/test-nonblocking-pipe-main.c: New file.
4475         * tests/test-nonblocking-pipe-child.c: New file.
4476         * tests/test-nonblocking-pipe.h: New file.
4477         * tests/test-nonblocking-writer.h: New file.
4478         * tests/test-nonblocking-reader.h: New file.
4479         * tests/test-nonblocking-misc.h: New file.
4480         * modules/nonblocking-pipe-tests: New file.
4481         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
4482
4483 2011-04-16  Bruno Haible  <bruno@clisp.org>
4484
4485         gettext: Clarify the needed programmer actions.
4486         * modules/gettext (Notice): New field.
4487         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
4488
4489 2011-04-16  Bruno Haible  <bruno@clisp.org>
4490
4491         strchrnul: Tweak last commit.
4492         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
4493         bug.
4494         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
4495         as in _GL_FUNCDECL_SYS.
4496         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
4497         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
4498
4499 2011-04-15  Eric Blake  <eblake@redhat.com>
4500
4501         strchrnul: work around cygwin bug
4502         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
4503         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
4504         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
4505         * modules/string (Makefile.am): Substitute it.
4506         * lib/string.in.h (strchrnul): Use it.
4507
4508 2011-04-15  Bruno Haible  <bruno@clisp.org>
4509
4510         Don't require lib/stdio-write.c when only module 'stdio' is used.
4511         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
4512         invocation.
4513         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
4514
4515 2011-04-14  Bruno Haible  <bruno@clisp.org>
4516
4517         Support non-blocking pipe I/O in read() on native Windows.
4518         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
4519         (read): New declaration.
4520         * lib/read.c: New file.
4521         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
4522         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
4523         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
4524         vscanf): New declarations.
4525         * lib/stdio-read.c: New file.
4526         * m4/read.m4: New file.
4527         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
4528         REPLACE_READ.
4529         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
4530         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
4531         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
4532         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
4533         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
4534         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
4535         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
4536         * modules/read: New file.
4537         * modules/nonblocking (Files): Add lib/stdio-read.c.
4538         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
4539         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
4540         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
4541         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
4542         * modules/pread (Depends-on): Add read.
4543         * modules/safe-read (Depends-on): Likewise.
4544         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
4545         gets, scanf, vfscanf, vscanf): Verify signatures.
4546         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
4547         problem with non-blocking pipes.
4548         * doc/posix-functions/fgetc.texi: Likewise.
4549         * doc/posix-functions/fgets.texi: Likewise.
4550         * doc/posix-functions/fread.texi: Likewise.
4551         * doc/posix-functions/fscanf.texi: Likewise.
4552         * doc/posix-functions/getc.texi: Likewise.
4553         * doc/posix-functions/getchar.texi: Likewise.
4554         * doc/posix-functions/gets.texi: Likewise.
4555         * doc/posix-functions/scanf.texi: Likewise.
4556         * doc/posix-functions/vfscanf.texi: Likewise.
4557         * doc/posix-functions/vscanf.texi: Likewise.
4558
4559 2011-04-14  Bruno Haible  <bruno@clisp.org>
4560
4561         Support non-blocking pipe I/O in write() on native Windows.
4562         * lib/write.c (rpl_write): Split a write request that failed merely
4563         because the byte count was larger than the pipe buffer's size.
4564         * doc/posix-functions/write.texi: Mention the problem with large byte
4565         counts.
4566
4567 2011-04-14  Bruno Haible  <bruno@clisp.org>
4568
4569         wchar: Ensure that wchar_t gets defined on uClibc.
4570         * lib/wchar.in.h: On uClibc, include <stddef.h>.
4571         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
4572
4573 2011-04-13  Bruno Haible  <bruno@clisp.org>
4574
4575         safe-write, full-read: Avoid unnecessary compilation units.
4576         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
4577         (Depends-on): Remove safe-read. Add ssize_t.
4578         * modules/full-read (Files): Add lib/full-write.c.
4579         (Depends-on): Add full-write.
4580
4581 2011-04-13  Bruno Haible  <bruno@clisp.org>
4582
4583         Support non-blocking pipe I/O and SIGPIPE in pwrite().
4584         * modules/pwrite (Depends-on): Add 'write'.
4585
4586 2011-04-13  Bruno Haible  <bruno@clisp.org>
4587
4588         Support non-blocking pipe I/O in write() on native Windows.
4589         * lib/unistd.in.h (write): Enable replacement also if
4590         GNULIB_UNISTD_H_NONBLOCKING is 1.
4591         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
4592         (rpl_write): When failing to write on a non-blocking pipe, change
4593         errno from ENOSPC to EAGAIN.
4594         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
4595         putchar, puts, vfprintf, vprintf): Enable replacement also if
4596         GNULIB_STDIO_H_NONBLOCKING is 1.
4597         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
4598         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
4599         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
4600         CALL_WITH_SIGPIPE_EMULATION.
4601         (CALL_WITH_SIGPIPE_EMULATION): Use them.
4602         * m4/nonblocking.m4: New file.
4603         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
4604         for non-blocking I/O support.
4605         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
4606         GNULIB_UNISTD_H_NONBLOCKING.
4607         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
4608         required for non-blocking I/O support.
4609         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
4610         * modules/nonblocking (Files): Add m4/nonblocking.m4,
4611         lib/stdio-write.c, m4/asm-underscore.m4.
4612         (Depends-on): Add stdio, unistd.
4613         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
4614         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
4615         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
4616         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
4617         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
4618         problem with non-blocking pipes.
4619         * doc/posix-functions/fputc.texi: Likewise.
4620         * doc/posix-functions/fputs.texi: Likewise.
4621         * doc/posix-functions/fwrite.texi: Likewise.
4622         * doc/posix-functions/printf.texi: Likewise.
4623         * doc/posix-functions/putc.texi: Likewise.
4624         * doc/posix-functions/putchar.texi: Likewise.
4625         * doc/posix-functions/puts.texi: Likewise.
4626         * doc/posix-functions/vfprintf.texi: Likewise.
4627         * doc/posix-functions/vprintf.texi: Likewise.
4628         * doc/posix-functions/write.texi: Likewise.
4629
4630 2011-04-10  Jim Meyering  <meyering@redhat.com>
4631
4632         maint.mk: prohibit doubled words
4633         Detect them also when they're separated by a newline.
4634         There are 3 ways to customize it:
4635           - disable the test on a per file basis, as usual with rules using
4636             $(VC_LIST_EXCEPT)
4637           - replace the default doubled-word-selecting regexp (affects all files)
4638           - ignore a particular file-vs-doubled-word match
4639         I nearly used that last one to ignore the "is is" match in
4640         coreutils' NEWS file, since the text was "ls -is is ..."
4641         To do that, I would have added this line to cfg.mk:
4642           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
4643         but it would have ignored any "is is" match in NEWS.
4644         Low probability, but still...
4645         Instead, I changed the text, slightly:
4646           -  ls -is is now consistent with ls -lis in ignoring values returned
4647           +  "ls -is" is now consistent with ls -lis in ignoring values returned
4648         * top/maint.mk (prohibit_double_word_RE_): Provide default.
4649         (prohibit_doubled_word_): Define.
4650         (sc_prohibit_doubled_word): New rule.
4651         (sc_prohibit_the_the): Remove.  Subsumed by the above.
4652
4653 2011-04-10  Jim Meyering  <meyering@redhat.com>
4654
4655         maint: fix doubled-word typo in comment
4656         * m4/gethostname.m4: s/is is/it is/
4657         * m4/getdomainname.m4: Likewise.
4658
4659 2011-04-10  Jim Meyering  <meyering@redhat.com>
4660
4661         maint: remove doubled word: s/it it/it/
4662         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
4663
4664 2011-04-10  Jim Meyering  <meyering@redhat.com>
4665
4666         maint.mk: remove useless semicolon and backslash
4667         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
4668         semicolon and backslash.
4669
4670 2011-04-10  Bruno Haible  <bruno@clisp.org>
4671
4672         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
4673         * modules/stdint-tests (Depends-on): Add wchar.
4674
4675 2011-04-10  Jim Meyering  <meyering@redhat.com>
4676
4677         maint: remove doubled words in comments, e.g., s/a a/a/
4678         * lib/strptime.c (day_of_the_week): s/the the/the/
4679         * tests/test-chown.h (test_chown): s/a a/a/
4680
4681         test-chown.h: correct a cast
4682         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
4683         when the destination is a stat.st_gid.
4684
4685 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
4686
4687         getaddrinfo: Fix test for sa_len member.
4688         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
4689         include <sys/types.h> before <sys/socket.h>.
4690
4691 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
4692
4693         maint: change "can not" to "cannot"
4694         * doc/posix-functions/iconv.texi (iconv): This one crossed line
4695         boundaries.
4696
4697 2011-04-09  Jim Meyering  <meyering@redhat.com>
4698
4699         maint: change "a a" to "a"
4700         * tests/test-lchown.h (test_lchown): s/a a/a/
4701
4702         maint.mk: prohibit \<the the\>
4703         * top/maint.mk (sc_prohibit_the_the): New rule.
4704
4705         maint: fix "the the" in comment
4706         * lib/count-one-bits.h: s/the the/the/
4707
4708         maint: change "can not" to "cannot"
4709         But do not change the occurrences in maintain.texi or in
4710         build-aux/po/Makefile.in.in, which I presume comes from gettext.
4711         * doc/gnulib-tool.texi: s/can not/cannot/
4712         * doc/posix-functions/accept.texi (accept): Likewise.
4713         * doc/posix-functions/socket.texi (socket): Likewise.
4714         * lib/mbrtowc.c: Likewise.
4715
4716         maint.mk: prohibit use of "can not"
4717         * top/maint.mk (sc_prohibit_can_not): New rule.
4718         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
4719
4720 2011-04-09  Bruno Haible  <bruno@clisp.org>
4721
4722         careadlinkat: Guard against misuse of careadlinkatcwd.
4723         * lib/careadlinkat.c: Include <stdlib.h>.
4724         (careadlinkatcwd): Check that the fd argument is as expected.
4725
4726 2011-04-09  Bruno Haible  <bruno@clisp.org>
4727
4728         careadlinkat: Use common coding style.
4729         * lib/careadlinkat.c: Move gnulib includes after system includes.
4730
4731 2011-04-09  Bruno Haible  <bruno@clisp.org>
4732
4733         careadlinkat: Clarify specification.
4734         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
4735         (careadlinkatcwd): Add comment.
4736         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
4737
4738 2011-04-09  Bruno Haible  <bruno@clisp.org>
4739
4740         areadlinkat: Avoid link error on many platforms.
4741         * modules/areadlinkat (Depends-on): Add areadlink.
4742
4743 2011-04-09  Bruno Haible  <bruno@clisp.org>
4744
4745         allocator, careadlinkat: Fix double-inclusion guard.
4746         * lib/allocator.h: Fix double-inclusion guard.
4747         * lib/careadlinkat.h: Likewise.
4748
4749 2011-04-09  Bruno Haible  <bruno@clisp.org>
4750
4751         relocatable-prog-wrapper: Update after module 'areadlink' changed.
4752         * lib/relocwrapper.c: Update dependencies hierarchy.
4753         * build-aux/install-reloc: Update list of files to be compiled.
4754         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
4755         lib/allocator.[hc].
4756
4757 2011-04-08  Eric Blake  <eblake@redhat.com>
4758
4759         strftime: silence gnulib-tool warning
4760         * modules/strftime-tests (Depends-on): Drop automatic dependency.
4761
4762 2011-04-08  Bruno Haible  <bruno@clisp.org>
4763
4764         verify: Fix syntax error with GCC 4.6 in C++ mode.
4765         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
4766         (HAVE_STATIC_ASSERT): New macro.
4767         (verify_true, verify): Use 'static_assert' if it is supported and
4768         '_Static_assert' is not supported.
4769
4770 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
4771
4772         allocator: New module.
4773         * modules/allocator, lib/allocator.c: New files.
4774         * lib/allocator.h (stdlib_allocator): New decl.
4775         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
4776         Remove.  Do not include <stdlib.h>.
4777         (careadlinkat): Use stdlib_allocator instead of rolling our own.
4778         * modules/careadlinkat (Files): Remove lib/allocator.h.
4779         (Depends-on): Add allocator.
4780
4781         stdlib: let modules use system malloc, realloc
4782         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
4783         if !_GL_USE_STDLIB_ALLOC.
4784         (malloc, realloc): Limit this change to a smaller scope.
4785
4786         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
4787         (malloc, realloc): Don't #undef; no longer needed.
4788         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4789         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4790         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
4791         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4792         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4793         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4794         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4795         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
4796
4797         careadlinkat: rename members to avoid problem
4798         * lib/allocator.h (struct allocator): Rename members from
4799         malloc/realloc to allocate/reallocate, to avoid problems if malloc
4800         and realloc are #define'd.  Reported by Eric Blake in
4801         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
4802         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
4803
4804 2011-04-08  Eric Blake  <eblake@redhat.com>
4805
4806         nonblocking: reduce dependency
4807         * tests/test-nonblocking.c: Only test sockets when in use.
4808         * modules/nonblocking-tests (Depends-on): Drop socket.
4809         (Makefile.am): Link even if sockets are not present.
4810         * modules/pipe2-tests (Makefile.am): Likewise.
4811         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
4812
4813         pipe2: fix O_NONBLOCK support on mingw
4814         * modules/pipe2 (Depends-on): Add nonblocking.
4815         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
4816         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
4817         * tests/test-nonblocking.c (main): Likewise.
4818         * modules/pipe2-tests (Makefile.am): Avoid link failure.
4819
4820         fcntl-h: fix O_ACCMODE on cygwin
4821         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
4822         * lib/fcntl.in.h (O_ACCMODE): Fix it.
4823
4824         pipe-filter: drop O_NONBLOCK workarounds
4825         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
4826         * modules/pipe-filter-ii (Depends-on): Likewise.
4827         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
4828
4829         nonblocking: provide O_NONBLOCK for mingw
4830         * modules/nonblocking (Depends-on): Add open.
4831         (configure.ac): Set new witness macro.
4832         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
4833         * modules/fcntl-h (Makefile.am): Substitute it.
4834         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
4835         nonblocking module is in use.
4836         * lib/nonblocking.c: Adjust portability test.
4837         * lib/open.c (open): Don't let native open see gnulib flag.
4838         * tests/test-fcntl-h.c (main): Enhance test.
4839         * tests/test-open.h (test_open): Likewise.
4840         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
4841
4842         careadlinkat: fix compilation error on mingw
4843         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
4844         within struct allocator.
4845
4846 2011-04-06  Eric Blake  <eblake@redhat.com>
4847
4848         binary-io: relicense under LGPLv2+
4849         * modules/binary-io (License): Relax to LGPLv2+.
4850         Requested for libvirt, and required by pipe2.
4851
4852 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
4853
4854         verify: use _Static_assert if available
4855         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
4856         (verify_true, verify): Use it if available.  This generates better
4857         diagnostics with GCC 4.6.0 and later.
4858
4859 2011-04-05  Bruno Haible  <bruno@clisp.org>
4860
4861         Remove leftover generated .h files after config.status changed.
4862
4863         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
4864         GL_GENERATE_ALLOCA_H.
4865         * modules/alloca-opt (Makefile.am): Remove alloca.h if
4866         GL_GENERATE_ALLOCA_H evaluates to false.
4867
4868         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
4869         GL_GENERATE_ARGZ_H.
4870         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
4871         evaluates to false.
4872
4873         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
4874         GL_GENERATE_BYTESWAP_H.
4875         * modules/byteswap (Makefile.am): Remove byteswap.h if
4876         GL_GENERATE_BYTESWAP_H evaluates to false.
4877
4878         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
4879         GL_GENERATE_ERRNO_H.
4880         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
4881         evaluates to false.
4882
4883         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
4884         GL_GENERATE_FLOAT_H.
4885         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
4886         evaluates to false.
4887
4888         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
4889         GL_GENERATE_FNMATCH_H.
4890         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
4891         GL_GENERATE_FNMATCH_H evaluates to false.
4892
4893         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
4894         GL_GENERATE_GLOB_H.
4895         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
4896         evaluates to false.
4897
4898         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
4899         automake conditional GL_GENERATE_ICONV_H.
4900         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
4901         evaluates to false.
4902
4903         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
4904         GL_GENERATE_NETINET_IN_H.
4905         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
4906         GL_GENERATE_NETINET_IN_H evaluates to false.
4907
4908         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
4909         conditional GL_GENERATE_PTHREAD_H.
4910         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
4911         * modules/pthread (Makefile.am): Remove pthread.h if
4912         GL_GENERATE_PTHREAD_H evaluates to false.
4913
4914         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
4915         GL_GENERATE_SCHED_H.
4916         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
4917         evaluates to false.
4918
4919         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
4920         conditional GL_GENERATE_SELINUX_CONTEXT_H.
4921         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
4922         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
4923
4924         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
4925         GL_GENERATE_STDARG_H.
4926         * modules/stdarg (Makefile.am): Remove stdarg.h if
4927         GL_GENERATE_STDARG_H evaluates to false.
4928
4929         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
4930         GL_GENERATE_STDBOOL_H.
4931         * modules/stdbool (Makefile.am): Remove stdbool.h if
4932         GL_GENERATE_STDBOOL_H evaluates to false.
4933
4934         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
4935         conditional GL_GENERATE_STDDEF_H.
4936         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
4937         * modules/stddef (Makefile.am): Remove stddef.h if
4938         GL_GENERATE_STDDEF_H evaluates to false.
4939
4940         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
4941         GL_GENERATE_STDINT_H.
4942         * modules/stdint (Makefile.am): Remove stdint.h if
4943         GL_GENERATE_STDINT_H evaluates to false.
4944
4945         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
4946         GL_GENERATE_SYSEXITS_H.
4947         * modules/sysexits (Makefile.am): Remove sysexits.h if
4948         GL_GENERATE_SYSEXITS_H evaluates to false.
4949
4950         Reported by Karl Berry and Ralf Wildenhues.
4951
4952 2011-04-05  Bruno Haible  <bruno@clisp.org>
4953
4954         Ensure to rebuild generated .h files when config.status has changed.
4955         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
4956         config.status.
4957         * modules/ctype (Makefile.am): Likewise.
4958         * modules/dirent (Makefile.am): Likewise.
4959         * modules/errno (Makefile.am): Likewise.
4960         * modules/fcntl-h (Makefile.am): Likewise.
4961         * modules/float (Makefile.am): Likewise.
4962         * modules/getopt-posix (Makefile.am): Likewise.
4963         * modules/glob (Makefile.am): Likewise.
4964         * modules/iconv-h (Makefile.am): Likewise.
4965         * modules/inttypes (Makefile.am): Likewise.
4966         * modules/langinfo (Makefile.am): Likewise.
4967         * modules/locale (Makefile.am): Likewise.
4968         * modules/math (Makefile.am): Likewise.
4969         * modules/netdb (Makefile.am): Likewise.
4970         * modules/netinet_in (Makefile.am): Likewise.
4971         * modules/poll-h (Makefile.am): Likewise.
4972         * modules/pthread (Makefile.am): Likewise.
4973         * modules/pty (Makefile.am): Likewise.
4974         * modules/sched (Makefile.am): Likewise.
4975         * modules/search (Makefile.am): Likewise.
4976         * modules/selinux-h (Makefile.am): Likewise.
4977         * modules/signal (Makefile.am): Likewise.
4978         * modules/spawn (Makefile.am): Likewise.
4979         * modules/stdarg (Makefile.am): Likewise.
4980         * modules/stdbool (Makefile.am): Likewise.
4981         * modules/stddef (Makefile.am): Likewise.
4982         * modules/stdint (Makefile.am): Likewise.
4983         * modules/stdio (Makefile.am): Likewise.
4984         * modules/stdlib (Makefile.am): Likewise.
4985         * modules/string (Makefile.am): Likewise.
4986         * modules/strings (Makefile.am): Likewise.
4987         * modules/sys_file (Makefile.am): Likewise.
4988         * modules/sys_ioctl (Makefile.am): Likewise.
4989         * modules/sys_select (Makefile.am): Likewise.
4990         * modules/sys_socket (Makefile.am): Likewise.
4991         * modules/sys_stat (Makefile.am): Likewise.
4992         * modules/sys_time (Makefile.am): Likewise.
4993         * modules/sys_times (Makefile.am): Likewise.
4994         * modules/sys_utsname (Makefile.am): Likewise.
4995         * modules/sys_wait (Makefile.am): Likewise.
4996         * modules/sysexits (Makefile.am): Likewise.
4997         * modules/termios (Makefile.am): Likewise.
4998         * modules/time (Makefile.am): Likewise.
4999         * modules/unistd (Makefile.am): Likewise.
5000         * modules/wchar (Makefile.am): Likewise.
5001         * modules/wctype-h (Makefile.am): Likewise.
5002         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
5003
5004 2011-04-05  Bruno Haible  <bruno@clisp.org>
5005
5006         pipe2: Relicense under LGPLv2+.
5007         * modules/pipe2 (License): Change to LGPLv2+.
5008         Requested by Eric Blake, for libvirt.
5009
5010 2011-04-05  Bruce Korb  <bkorb@gnu.org>
5011
5012         bootstrap: compute gnulib_extra_files after updating build_aux
5013         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
5014         change build_aux or also supply gnulib_extra_files.  Handle correctly.
5015
5016 2011-04-05  Eric Blake  <eblake@redhat.com>
5017
5018         bootstrap: preserve git whitelist item sorting
5019         * build-aux/bootstrap (sort_patterns): New function.
5020         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
5021
5022 2011-04-05  Simon Josefsson  <simon@josefsson.org>
5023
5024         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
5025         sc_space_tab check.
5026
5027 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
5028
5029         areadlink, areadlinkat: rewrite in terms of careadlinkat
5030         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
5031         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
5032         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
5033         (malloc, realloc): Remove #undefs.
5034         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
5035         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
5036         readlink, ssize_t, stdint, unistd.
5037         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
5038         areadlink, stdint.
5039
5040         careadlinkat: new module
5041         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
5042         * modules/careadlinkat: New files, written by me with
5043         a review and feedback from Ben Pfaff in
5044         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
5045
5046 2011-04-01  Bruno Haible  <bruno@clisp.org>
5047
5048         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
5049         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
5050         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
5051         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
5052         Reported by Bruce Korb <bruce.korb@gmail.com>.
5053
5054 2011-04-01  Bruno Haible  <bruno@clisp.org>
5055
5056         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
5057         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
5058         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
5059         * modules/wcpcpy (Depends-on): Add extensions.
5060         * modules/wcpncpy (Depends-on): Likewise.
5061         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
5062         systems.
5063         * doc/posix-functions/wcpncpy.texi: Likewise.
5064         * doc/posix-functions/wcwidth.texi: Likewise.
5065
5066 2011-03-31  Eric Blake  <eblake@redhat.com>
5067
5068         nonblocking: fix mingw test failures
5069         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
5070         non-blocking flag on regular file.
5071         (get_nonblocking_flag): Set errno on invalid fd.
5072         * tests/test-nonblocking.c (main): Avoid test failure on
5073         directories if fchdir is not active.
5074         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
5075
5076 2011-03-31  Bruno Haible  <bruno@clisp.org>
5077
5078         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
5079         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
5080         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
5081         Reported by Simon Josefsson <simon@josefsson.org>.
5082
5083 2011-03-31  Bruno Haible  <bruno@clisp.org>
5084         and Eric Blake  <eblake@redhat.com>
5085
5086         nonblocking: new module
5087         * modules/nonblocking: New module.
5088         * modules/nonblocking-tests: Likewise.
5089         * lib/nonblocking.h: New file.
5090         * lib/nonblocking.c: Likewise.
5091         * tests/test-nonblocking.c: New test.
5092         * lib/ioctl.c (ioctl) [mingw]: Update comment.
5093
5094 2011-03-30  Bruno Haible  <bruno@clisp.org>
5095
5096         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
5097         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
5098         instead of 'printf' format for GCC >= 4.4.
5099         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
5100         (fprintf, printf, vfprintf, vprintf): Declare with
5101         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
5102         the system's vfprintf() function.
5103         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
5104
5105 2011-03-30  Eric Blake  <eblake@redhat.com>
5106
5107         passfd: fix scoping bug
5108         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
5109         before sendmsg/recvmsg.
5110
5111         passfd: standardize coding conventions
5112         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
5113         can be learned at compile time.
5114         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
5115         ifdefs.
5116         (sendfd, recvfd): Follow gnulib code conventions.
5117
5118         passfd: fix incorrect sendmsg arguments
5119         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
5120         incorrect msg_controllen value.
5121         * modules/passfd-tests (Depends-on): Check for alarm.
5122         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
5123         Reported by Bastien ROUCARIES.
5124
5125 2011-03-30  Bruno Haible  <bruno@clisp.org>
5126
5127         c-strcasestr: Relicense under LGPLv2+.
5128         * modules/c-strcasestr (License): Change to LGPLv2+.
5129         Requested by Eric Blake, for libvirt.
5130
5131 2011-03-30  Simon Josefsson  <simon@josefsson.org>
5132
5133         * users.txt: Add libidn2.  Fix libtasn1 link.
5134
5135 2011-03-30  Jim Meyering  <meyering@redhat.com>
5136
5137         tests: readlink* ("",... fails with EINVAL on newer kernels
5138         readlink and readlinkat have typically failed with ENOENT for
5139         the invalid, empty file name,  "".  However, with the advent
5140         of linux-2.6.39, they fail with EINVAL.
5141         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
5142         when operating on the empty file name.
5143         * tests/test-readlink.h (test_readlink): Likewise.
5144
5145 2011-03-29  Bruno Haible  <bruno@clisp.org>
5146
5147         Relicense some modules under LGPLv2+, for libidn2.
5148         * modules/array-mergesort (License): Change to LGPLv2+.
5149         * modules/c-strcaseeq (License): Likewise.
5150         * modules/striconveh (License): Likewise.
5151         * modules/striconveha (License): Likewise.
5152         * modules/uniconv/base (License): Likewise.
5153         * modules/uniconv/u8-conv-from-enc (License): Likewise.
5154         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
5155         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
5156         * modules/unictype/base (License): Likewise.
5157         * modules/unictype/bidiclass-of (License): Likewise.
5158         * modules/unictype/category-M (License): Likewise.
5159         * modules/unictype/category-none (License): Likewise.
5160         * modules/unictype/category-of (License): Likewise.
5161         * modules/unictype/category-test (License): Likewise.
5162         * modules/unictype/category-test-withtable (License): Likewise.
5163         * modules/unictype/combining-class (License): Likewise.
5164         * modules/unictype/joiningtype-of (License): Likewise.
5165         * modules/unictype/scripts (License): Likewise.
5166         * modules/uninorm/base (License): Likewise.
5167         * modules/uninorm/canonical-decomposition (License): Likewise.
5168         * modules/uninorm/composition (License): Likewise.
5169         * modules/uninorm/decompose-internal (License): Likewise.
5170         * modules/uninorm/decomposition-table (License): Likewise.
5171         * modules/uninorm/nfc (License): Likewise.
5172         * modules/uninorm/nfd (License): Likewise.
5173         * modules/uninorm/u32-normalize (License): Likewise.
5174         * modules/unistr/base (License): Likewise.
5175         * modules/unistr/u32-cpy (License): Likewise.
5176         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
5177         * modules/unistr/u32-to-u8 (License): Likewise.
5178         * modules/unistr/u32-uctomb (License): Likewise.
5179         * modules/unistr/u8-check (License): Likewise.
5180         * modules/unistr/u8-mblen (License): Likewise.
5181         * modules/unistr/u8-mbtouc (License): Likewise.
5182         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
5183         * modules/unistr/u8-mbtoucr (License): Likewise.
5184         * modules/unistr/u8-prev (License): Likewise.
5185         * modules/unistr/u8-strlen (License): Likewise.
5186         * modules/unistr/u8-to-u32 (License): Likewise.
5187         * modules/unistr/u8-uctomb (License): Likewise.
5188         * modules/unitypes (License): Likewise.
5189         Requested by Simon Josefsson.
5190
5191 2011-03-29  Simon Josefsson  <simon@josefsson.org>
5192
5193         lib-symbol-visibility: Add a notice.
5194         * modules/lib-symbol-visibility (Notice): New field.
5195
5196 2011-03-29  Bruno Haible  <bruno@clisp.org>
5197
5198         getaddrinfo: Doc fix.
5199         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
5200         section "fixed in Gnulib".
5201
5202 2011-03-28  Simon Josefsson  <simon@josefsson.org>
5203
5204         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
5205         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
5206
5207 2011-03-26  Bruno Haible  <bruno@clisp.org>
5208
5209         unictype/property-byname: Reduce the number of load-time relocations.
5210         * lib/unictype/pr_byname.c: Include <stdlib.h>.
5211         (UC_PROPERTY_INDEX_*): New enumeration values.
5212         (uc_property_byname): Convert an index from the lookup table to an
5213         uc_property_t.
5214         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
5215         values.
5216
5217 2011-03-26  Bruno Haible  <bruno@clisp.org>
5218
5219         unictype/property-byname: Allow omitted word separators and aliases.
5220         * lib/unictype/pr_byname.gperf: Add property names without word
5221         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
5222         for 'space'.
5223
5224 2011-03-26  Bruno Haible  <bruno@clisp.org>
5225
5226         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
5227         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
5228         also hyphens to space.
5229         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
5230         without spaces.
5231         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
5232
5233 2011-03-26  Bruno Haible  <bruno@clisp.org>
5234
5235         unictype/joiningtype-byname: Recognize long names as well.
5236         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
5237         a long name.
5238         * lib/unictype/joiningtype_byname.c: Include <string.h>,
5239         unictype/joiningtype_byname.h.
5240         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
5241         * lib/unictype/joiningtype_byname.gperf: New file.
5242         * modules/unictype/joiningtype-byname (Files): Add
5243         lib/unictype/joiningtype_byname.gperf.
5244         (Depends-on): Add gperf.
5245         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
5246         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
5247         long names.
5248
5249         Tests for module 'unictype/joiningtype-longname'.
5250         * modules/unictype/joiningtype-longname-tests: New file.
5251         * tests/unictype/test-joiningtype_longname.c: New file.
5252
5253         New module 'unictype/joiningtype-longname'.
5254         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
5255         * lib/unictype/joiningtype_longname.c: New file.
5256         * modules/unictype/joiningtype-longname: New file.
5257         * modules/unictype/joiningtype-all (Depends-on): Add
5258         unictype/joiningtype-longname.
5259
5260 2011-03-26  Bruno Haible  <bruno@clisp.org>
5261
5262         unictype/bidiclass-byname: Recognize long names as well.
5263         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
5264         name.
5265         * lib/unictype/bidi_byname.c: Include <string.h>,
5266         unictype/bidi_byname.h.
5267         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
5268         * lib/unictype/bidi_byname.gperf: New file.
5269         * modules/unictype/bidiclass-byname (Files): Add
5270         lib/unictype/bidi_byname.gperf.
5271         (Depends-on): Add gperf.
5272         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
5273         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
5274         long names.
5275
5276         Tests for module 'unictype/bidiclass-longname'.
5277         * modules/unictype/bidiclass-longname-tests: New file.
5278         * tests/unictype/test-bidi_longname.c: New file.
5279
5280         New module 'unictype/bidiclass-longname'.
5281         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
5282         * lib/unictype/bidi_longname.c: New file.
5283         * modules/unictype/bidiclass-longname: New file.
5284         * modules/unictype/bidiclass-all (Depends-on): Add
5285         unictype/bidiclass-longname.
5286
5287 2011-03-26  Bruno Haible  <bruno@clisp.org>
5288
5289         unictype/bidi*: Rename modules.
5290         * modules/unictype/bidiclass-all: Renamed from
5291         modules/unictype/bidicategory-all.
5292         * modules/unictype/bidiclass-name: Renamed from
5293         modules/unictype/bidiclass-name.
5294         (Description): Update.
5295         * modules/unictype/bidiclass-name-tests: Renamed from
5296         modules/unictype/bidicategory-name-tests.
5297         * modules/unictype/bidiclass-byname: Renamed from
5298         modules/unictype/bidicategory-byname.
5299         (Description): Update.
5300         * modules/unictype/bidiclass-byname-tests: Renamed from
5301         modules/unictype/bidicategory-byname-tests.
5302         * modules/unictype/bidiclass-of: Renamed from
5303         modules/unictype/bidicategory-of.
5304         (Description): Update.
5305         * modules/unictype/bidiclass-of-tests: Renamed from
5306         modules/unictype/bidicategory-of-tests.
5307         * modules/unictype/bidiclass-test: Renamed from
5308         modules/unictype/bidicategory-test.
5309         (Description): Update.
5310         * modules/unictype/bidiclass-test-tests: Renamed from
5311         modules/unictype/bidicategory-test-tests.
5312         * modules/unictype/bidicategory-all: New file, a simple redirection.
5313         * modules/unictype/bidicategory-name: Likewise.
5314         * modules/unictype/bidicategory-byname: Likewise.
5315         * modules/unictype/bidicategory-of: Likewise.
5316         * modules/unictype/bidicategory-test: Likewise.
5317         * modules/unictype/property-bidi-* (Dependencies): Update.
5318         * lib/unictype/bidi_*.c: Update comment.
5319
5320 2011-03-26  Bruno Haible  <bruno@clisp.org>
5321
5322         unictype/bidi*: Rename functions, part 2.
5323         * modules/unictype/bidicategory-name (configure.ac): Update required
5324         libunistring version.
5325         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
5326
5327 2011-03-25  Bruno Haible  <bruno@clisp.org>
5328
5329         New module 'unictype/combining-class-all'.
5330         * modules/unictype/combining-class-all: New file.
5331
5332         Tests for module 'unictype/combining-class-byname'.
5333         * modules/unictype/combining-class-byname-tests: New file.
5334         * tests/unictype/test-combiningclass_byname.c: New file.
5335
5336         New module 'unictype/combining-class-byname'.
5337         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
5338         * lib/unictype/combiningclass_byname.c: New file.
5339         * lib/unictype/combiningclass_byname.gperf: New file.
5340         * modules/unictype/combining-class-byname: New file.
5341
5342         Tests for module 'unictype/combining-class-longname'.
5343         * modules/unictype/combining-class-longname-tests: New file.
5344         * tests/unictype/test-combiningclass_longname.c: New file.
5345
5346         New module 'unictype/combining-class-longname'.
5347         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
5348         * lib/unictype/combiningclass_longname.c: New file.
5349         * modules/unictype/combining-class-longname: New file.
5350
5351         Tests for module 'unictype/combining-class-name'.
5352         * modules/unictype/combining-class-name-tests: New file.
5353         * tests/unictype/test-combiningclass_name.c: New file.
5354
5355         New module 'unictype/combining-class-name'.
5356         * lib/unictype.in.h (uc_combining_class_name): New declaration.
5357         * lib/unictype/combiningclass_name.c: New file.
5358         * modules/unictype/combining-class-name: New file.
5359
5360 2011-03-25  Bruno Haible  <bruno@clisp.org>
5361
5362         unictype/combining-class: Rename source files.
5363         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
5364         of unictype/combining.h.
5365         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
5366         Update.
5367         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
5368         * modules/unictype/combining-class (Description): Fix.
5369         (Files, Makefile.am): Update.
5370         * tests/unictype/test-combiningclass.c: Renamed from
5371         tests/unictype/test-combining.c.
5372         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
5373
5374 2011-03-25  Bruno Haible  <bruno@clisp.org>
5375
5376         unictype: Update list of canonical combining classes.
5377         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
5378
5379 2011-03-25  Bruno Haible  <bruno@clisp.org>
5380
5381         unictype/category-byname: Recognize long names as well.
5382         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
5383         a long name.
5384         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
5385         unictype/categ_byname.h.
5386         (UC_CATEGORY_INDEX_*): New enumeration values.
5387         (uc_general_category_byname): Use uc_general_category_lookup and
5388         convert from index to value.
5389         * lib/unictype/categ_byname.gperf: New file.
5390         * modules/unictype/category-byname (Files): Add
5391         lib/unictype/categ_byname.gperf.
5392         (Depends-on): Add gperf.
5393         (Makefile.am): Add rule for generating unictype/categ_byname.h.
5394         * tests/unictype/test-categ_byname.c (main): Test the recognition of
5395         long names.
5396
5397         Tests for module 'unictype/category-longname'.
5398         * modules/unictype/category-longname-tests: New file.
5399         * tests/unictype/test-categ_longname.c: New file.
5400
5401         New module 'unictype/category-longname'.
5402         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
5403         * lib/unictype/categ_longname.c: New file.
5404         * modules/unictype/category-longname: New file.
5405         * modules/unictype/category-all (Depends-on): Add it.
5406
5407 2011-03-25  Bruno Haible  <bruno@clisp.org>
5408
5409         Tests for module 'unictype/category-LC'.
5410         * modules/unictype/category-LC-tests: New file.
5411         * tests/unictype/test-categ_LC.c: New file, automatically generated.
5412
5413         New module 'unictype/category-LC'.
5414         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
5415         (UC_CATEGORY_LC): New declaration.
5416         (UC_CASED_LETTER): New macro.
5417         * lib/gen-uni-tables.c (is_category_LC): New function.
5418         (output_categories): Also handle category LC.
5419         (UC_CATEGORY_MASK_LC): New enumeration value.
5420         (general_category_byname): Also handle category LC.
5421         * lib/unictype/categ_LC.c: New file.
5422         * lib/unictype/categ_LC.h: New file, automatically generated.
5423         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
5424         category LC.
5425         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
5426         * modules/unictype/category-LC: New file.
5427         * modules/unictype/category-byname (Depends-on): Add
5428         unictype/category-LC.
5429         * modules/unictype/category-all (Depends-on): Likewise.
5430
5431 2011-03-25  Eric Blake  <eblake@redhat.com>
5432
5433         xmalloc: revert yesterday's regression
5434         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
5435         realloc's underlying behavior (allowing allocation of zero-size
5436         objects, especially if malloc-gnu is also in use).
5437
5438 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
5439
5440         maint.mk: add missing version to VC-tag
5441         * top/maint.mk: git tag was missing actual tag name; add it.
5442
5443         valgrind: do leak checking, and exit with code 1 on error (not 0)
5444         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
5445         to VALGRIND.
5446
5447 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
5448
5449         posix-modules: say what it does.
5450         * posix-modules: Add a line to the --help output saying what it does.
5451
5452 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
5453
5454         xmalloc: Do not leak if underlying realloc is C99 compatible.
5455         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
5456         This avoids a leak on C99-based systems.  See
5457         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
5458
5459 2011-03-24  Eric Blake  <eblake@redhat.com>
5460
5461         realloc: document portability problem
5462         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
5463         passing 0 size to realloc.
5464
5465 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
5466
5467         doc: update users.txt
5468         * users.txt: Add cvsps, tmpwatch
5469
5470 2011-03-23  Matt Rice  <ratmice@gmail.com>
5471
5472         doc: update users.txt
5473         * users.txt: Add gdb.
5474
5475 2011-03-23  Jim Meyering  <meyering@redhat.com>
5476
5477         doc: update users.txt
5478         Looking through matches up to the following URL (there are still
5479         several more pages), I found several projects that use gnulib:
5480         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
5481         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
5482         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
5483
5484 2011-03-22  Bruno Haible  <bruno@clisp.org>
5485
5486         unictype/bidi*: Rename functions.
5487         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
5488         uc_bidi_class, uc_is_bidi_class): New declarations.
5489         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
5490         uc_bidi_category_byname.
5491         (uc_bidi_category_byname): New function.
5492         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
5493         u_bidi_category_name.
5494         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
5495         (uc_bidi_category_name): New function.
5496         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
5497         uc_bidi_category.
5498         (uc_bidi_category): New function.
5499         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
5500         uc_is_bidi_category. Invoke uc_bidi_class.
5501         (uc_is_bidi_category): New function.
5502         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
5503         instead of uc_bidi_category_byname.
5504         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
5505         instead of uc_bidi_category_name.
5506         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
5507         uc_bidi_category.
5508         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
5509         instead of uc_is_bidi_category.
5510
5511 2011-03-21  Bruno Haible  <bruno@clisp.org>
5512
5513         New module 'unictype/joininggroup-all'.
5514         * modules/unictype/joininggroup-all: New file.
5515
5516         Tests for module 'unictype/joininggroup-of'.
5517         * modules/unictype/joininggroup-of-tests: New file.
5518         * tests/unictype/test-joininggroup_of.c: New file.
5519         * tests/unictype/test-joininggroup_of.h: New file, automatically
5520         generated by gen-uni-tables.
5521
5522         New module 'unictype/joininggroup-of'.
5523         * modules/unictype/joininggroup-of: New file.
5524         * lib/unictype/joininggroup_of.c: New file.
5525         * lib/unictype/joininggroup_of.h: New file, automatically generated by
5526         gen-uni-tables.
5527
5528         Tests for module 'unictype/joininggroup-byname'.
5529         * modules/unictype/joininggroup-byname-tests: New file.
5530         * tests/unictype/test-joininggroup_byname.c: New file.
5531
5532         New module 'unictype/joininggroup-byname'.
5533         * modules/unictype/joininggroup-byname: New file.
5534         * lib/unictype/joininggroup_byname.c: New file.
5535         * lib/unictype/joininggroup_byname.gperf: New file.
5536
5537         Tests for module 'unictype/joininggroup-name'.
5538         * modules/unictype/joininggroup-name-tests: New file.
5539         * tests/unictype/test-joininggroup_name.c: New file.
5540
5541         New module 'unictype/joininggroup-name'.
5542         * modules/unictype/joininggroup-name: New file.
5543         * lib/unictype/joininggroup_name.c: New file.
5544         * lib/unictype/joininggroup_name.h: New file.
5545
5546         New module 'unictype/joiningtype-all'.
5547         * modules/unictype/joiningtype-all: New file.
5548
5549         Tests for module 'unictype/joiningtype-of'.
5550         * modules/unictype/joiningtype-of-tests: New file.
5551         * tests/unictype/test-joiningtype_of.c: New file.
5552         * tests/unictype/test-joiningtype_of.h: New file, automatically
5553         generated by gen-uni-tables.
5554
5555         New module 'unictype/joiningtype-of'.
5556         * modules/unictype/joiningtype-of: New file.
5557         * lib/unictype/joiningtype_of.c: New file.
5558         * lib/unictype/joiningtype_of.h: New file, automatically generated by
5559         gen-uni-tables.
5560
5561         Tests for module 'unictype/joiningtype-byname'.
5562         * modules/unictype/joiningtype-byname-tests: New file.
5563         * tests/unictype/test-joiningtype_byname.c: New file.
5564
5565         New module 'unictype/joiningtype-byname'.
5566         * modules/unictype/joiningtype-byname: New file.
5567         * lib/unictype/joiningtype_byname.c: New file.
5568
5569         Tests for module 'unictype/joiningtype-name'.
5570         * modules/unictype/joiningtype-name-tests: New file.
5571         * tests/unictype/test-joiningtype_name.c: New file.
5572
5573         New module 'unictype/joiningtype-name'.
5574         * modules/unictype/joiningtype-name: New file.
5575         * lib/unictype/joiningtype_name.c: New file.
5576
5577         unictype: Add support for Arabic shaping properties.
5578         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
5579         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
5580         declarations.
5581         (UC_JOINING_GROUP_*): New enumeration values.
5582         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
5583         declarations.
5584         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
5585         (unicode_joining_type): New variable.
5586         (UC_JOINING_GROUP_*): New enumeration values.
5587         (unicode_joining_group): New variable.
5588         (fill_arabicshaping, joining_type_as_c_identifier,
5589         output_joining_type_test, output_joining_type,
5590         joining_group_as_c_identifier, output_joining_group_test,
5591         output_joining_group): New functions.
5592         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
5593         fill_arabicshaping and output_joining_type_test, output_joining_type,
5594         output_joining_group_test, output_joining_group.
5595         Reported by Simon Josefsson.
5596
5597 2011-03-21  Jim Meyering  <meyering@redhat.com>
5598
5599         strftime: fix a bug in yesterday's change
5600         * lib/strftime.c (add): Accommodate width's initial value of -1.
5601         Otherwise, nstrftime would copy uninitialized data into
5602         the result buffer.
5603
5604 2011-03-21  Jim Meyering  <meyering@redhat.com>
5605
5606         tests: add strftime-tests module
5607         * tests/test-strftime.c: New file.
5608         * modules/strftime-tests: New module.
5609
5610 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
5611
5612         strftime: don't assume a byte count fits in 'int'
5613         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
5614         found this problem by static analysis, using gcc -Wstrict-overflow
5615         (GCC 4.5.2, x86-64).  This reported an optimization that depended
5616         on an integer overflow having undefined behavior, but it turns out
5617         that the argument is a size, which might not fit in 'int' anyway,
5618
5619 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
5620
5621         stdio: don't require ignore_value around fwrite
5622
5623         This patch works around libc bug 11959
5624         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
5625         Without this patch, applications must often write
5626         ignore_value (fwrite (...)) even though the ignore_value is
5627         not helpful here.  It's common to write many objects, using
5628         fwrite/printf/etc., and then use ferror to detect output error.
5629
5630         I considered making this patch optional, but decided against it,
5631         because libc is obviously being inconsistent here: there is no
5632         reason libc should insist that user code must inspect fwrite
5633         return's value without also insisting that it inspect printf's,
5634         putchar's, etc.  If user code wants to have a strict style where
5635         all these functions' values are checked (so that ferror need not
5636         be checked), we could add support for that style in a new gnulib
5637         module, but in the meantime it's better to be consistent and to
5638         support common usage.
5639
5640         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
5641         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
5642         that we are compiling in checking mode, and if not C++, and
5643         if not already wrapping fwrite for some other reason.
5644         (fwrite): #define to rpl_fwrite if the latter is defined.
5645
5646 2011-03-20  Bruno Haible  <bruno@clisp.org>
5647
5648         verror: Fix compilation error introduced on 2011-02-13.
5649         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
5650         instead of __attribute__.
5651         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5652
5653 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
5654             Bruno Haible  <bruno@clisp.org>
5655
5656         socklen: do not depend on sys_socket
5657         While trying to modify Emacs to use gnulib's socklen module,
5658         I discovered a circular dependency: socklen depends on sys_socket
5659         and vice versa.  Emacs can use socklen, but it does not need
5660         sys_socket because it has its own substitute for sys/socket.h.
5661         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
5662         gl_TYPE_SOCKLEN_T.
5663         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
5664         gl_PREREQ_SYS_H_SOCKET.
5665         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
5666         gl_PREREQ_SYS_H_SOCKET.
5667         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
5668         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
5669         * modules/socklen (Depends-on): Do not depend on sys_socket.
5670         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
5671
5672 2011-03-20  Jim Meyering  <meyering@redhat.com>
5673
5674         maint.mk: sort file names *after* new transformation
5675         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
5676         prefix would have led to an unwarranted failure in GNU parted.
5677         Sort after that transformation.
5678
5679 2011-03-19  Jim Meyering  <meyering@redhat.com>
5680
5681         maint.mk: fix po-file syntax-check rule
5682         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
5683         Patch by Bruno Haible.
5684
5685 2011-03-19  Bruno Haible  <bruno@clisp.org>
5686
5687         socklen: Update comment.
5688         * m4/socklen.m4: Update comment about platforms.
5689
5690 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
5691             Bruno Haible  <bruno@clisp.org>
5692
5693         inet_ntop, inet_pton: Simplify.
5694         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
5695         documented to provide socklen_t and we already depend on sys_socket.
5696         * modules/inet_pton (Depends-on): Likewise.
5697         * lib/arpa_inet.in.h: Adjust comment.
5698
5699 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
5700             Bruno Haible  <bruno@clisp.org>
5701
5702         netdb: Simplify.
5703         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
5704         documented to provide socklen_t and we already depend on sys_socket.
5705         * lib/netdb.in.h: Adjust comment.
5706
5707 2011-03-19  Bruno Haible  <bruno@clisp.org>
5708
5709         sys_socket, netdb: Document problem with socklen_t.
5710         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
5711         platforms.
5712         * doc/posix-headers/netdb.texi: Likewise.
5713
5714 2011-03-18  Eric Blake  <eblake@redhat.com>
5715
5716         maint.mk: let po check work in VPATH build
5717         * top/maint.mk (po_file): Allow cfg.mk override.
5718         (sc_po_check): Allow VPATH use.
5719         Reported by Jiri Denemark.
5720
5721 2011-03-16  Jim Meyering  <meyering@redhat.com>
5722
5723         maint.mk: allow fine-grained syntax-check exclusion via Make variables
5724         Before, you would have had to create one .x-sc_ file per rule in order
5725         to exempt offending files.  Now, you may instead use a Make variable --
5726         usually defined in cfg.mk -- whose name identifies the affected rule.
5727         * top/maint.mk (_sc_excl): Define.
5728         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
5729         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
5730
5731 2011-03-13  Bruno Haible  <bruno@clisp.org>
5732
5733         ignore-value tests: Avoid warnings.
5734         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
5735         empty for gcc < 3.4.
5736
5737 2011-03-13  Bruno Haible  <bruno@clisp.org>
5738
5739         passfd: Fix link error on Solaris.
5740         * modules/passfd (Description): Correct.
5741         (Depends-on): Add socketlib.
5742         (Link): New section.
5743         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
5744
5745 2011-03-13  Bruno Haible  <bruno@clisp.org>
5746
5747         passfd: Fix link error on AIX 5.2.
5748         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
5749
5750 2011-03-13  Bruno Haible  <bruno@clisp.org>
5751
5752         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
5753         * lib/sys_socket.in.h: Include <stddef.h>.
5754         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
5755         CMSG_FIRSTHDR. Remove unused variable.
5756
5757 2011-03-13  Bruno Haible  <bruno@clisp.org>
5758
5759         passfd: Fix compilation error on OpenBSD.
5760         * lib/passfd.c: Include <sys/uio.h>.
5761
5762 2011-03-13  Bruno Haible  <bruno@clisp.org>
5763
5764         passfd test: Fix warnings.
5765         * tests/test-passfd.c: Include <sys/wait.h>.
5766         (main): Fix typo.
5767
5768 2011-03-13  Bruno Haible  <bruno@clisp.org>
5769
5770         passfd module, part 4, tweaks.
5771         * tests/test-passfd.c: Reorder includes.
5772         (main): Fix perror and printf calls.
5773
5774 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
5775
5776         passfd module, part 4.
5777         * modules/passfd-tests: New file.
5778         * tests/test-passfd.c: New file.
5779
5780 2011-03-13  Jim Meyering  <meyering@redhat.com>
5781
5782         Makefile: rely on GNU make; derive syntax-check rule names
5783         Rather than requiring that each sc_ rule be listed as a dependent
5784         of "check", use features of GNU make to derive the list.
5785         * Makefile (syntax-check-rules): Define.
5786         (check): Depend on the new variable, not the hard-coded list.
5787
5788 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
5789             Bruno Haible  <bruno@clisp.org>
5790
5791         passfd module, part 3.
5792         * lib/passfd.h (recvfd): Add a flags argument.
5793         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
5794         (recvfd): Add a flags argument.
5795         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
5796         exists.
5797         * modules/passfd (Depends-on): Add cloexec.
5798         Suggested by Eric Blake.
5799
5800 2011-03-13  Bruno Haible  <bruno@clisp.org>
5801
5802         passfd module, part 2, tweaks.
5803         * modules/passfd (Files): Reorder.
5804         (Depends-on): Remove errno.
5805         (Include): Remove <sys/socket.h>, <sys/un.h>.
5806         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
5807         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
5808         specification header. Include <sys/socket.h> always. Don't include
5809         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
5810         (sendfd): Clarify that it sets errno when it fails.
5811         (recvfd): Fix specification.
5812
5813 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
5814
5815         passfd module, part 2.
5816         * modules/passfd: New file.
5817         * lib/passfd.h: New file.
5818         * lib/passfd.c: New file.
5819
5820 2011-03-12  Bruno Haible  <bruno@clisp.org>
5821
5822         wcswidth, mbswidth: Avoid integer overflow.
5823         * lib/wcswidth.c: Include <limits.h>.
5824         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
5825         * lib/mbswidth.c: Include <limits.h>.
5826         (mbsnwidth): Avoid 'int' overflow.
5827         Reported by Jim Meyering.
5828
5829 2011-03-12  Bruno Haible  <bruno@clisp.org>
5830
5831         futimens, utimensat: Avoid endless recursion on Solaris 10.
5832         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
5833         Solaris.
5834         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
5835         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
5836
5837 2011-03-11  Jim Meyering  <meyering@redhat.com>
5838
5839         maint.mk: relax a regexp to accommodate other formatting styles
5840         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
5841         between "ngettext" and the following "(".
5842
5843 2011-03-11  Pádraig Brady <P@draigBrady.com>
5844
5845         maint.mk: suppress a false positive warning
5846         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
5847         diagnostics are marked with ngettext.
5848
5849 2011-03-10  Eric Blake  <eblake@redhat.com>
5850
5851         wchar: add explicit dependencies, for Tru64
5852         * modules/mbmemcasecoll (Depends-on): Add wchar.
5853         * modules/mbtowc (Depends-on): Likewise.
5854         * modules/vasnprintf (Depends-on): Likewise.
5855         * modules/unistdio/u-printf-args (Depends-on): Likewise.
5856         * modules/wctomb (Depends-on): Likewise.
5857         Reported by Peter O'Gorman.
5858
5859 2011-03-08  Bruno Haible  <bruno@clisp.org>
5860
5861         passfd module, part 1, tweaks.
5862         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
5863         Improve indentation. Improve AC_MSG_CHECKING messages.
5864         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
5865         gl_SOCKET_FAMILIES.
5866
5867 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
5868
5869         passfd module, part 1.
5870         * m4/afunix.m4: New file.
5871         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
5872         sockets.
5873
5874 2011-03-08  Bruno Haible  <bruno@clisp.org>
5875
5876         regex-quote: New API.
5877         * lib/regex-quote.h: Include <stdbool.h>.
5878         (struct regex_quote_spec): New type.
5879         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
5880         New declarations.
5881         (regex_quote_length, regex_quote_copy, regex_quote): Take a
5882         'const struct regex_quote_spec *' argument.
5883         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
5884         (pcre_special): New constant.
5885         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
5886         New functions.
5887         (regex_quote_length, regex_quote_copy, regex_quote): Take a
5888         'const struct regex_quote_spec *' argument.
5889         * modules/regex-quote (Depends-on): Add stdbool.
5890         * tests/test-regex-quote.c (check): Update for new API. Add test for
5891         anchored results.
5892         * NEWS: Mention the API change.
5893         Reported by Reuben Thomas and Eric Blake.
5894
5895 2011-03-06  Bruno Haible  <bruno@clisp.org>
5896
5897         regex-quote: Fix creation of POSIX extended regular expressions.
5898         * lib/regex-quote.c (ere_special): Add grouping and alternation
5899         operators.
5900
5901 2011-03-05  Bruno Haible  <bruno@clisp.org>
5902
5903         doc: Improve doc regarding autopoint vs. gnulib.
5904         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
5905         disable autopoint while running autoreconf.
5906         Suggested by Ralf Wildenhues.
5907
5908 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5909
5910         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
5911         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
5912
5913 2011-03-03  Bruce Korb  <bkorb@gnu.org>
5914
5915         parse-duration: remove xalloc.h dependency
5916         * lib/parse-duration.c (parse_period): handle NULL return from
5917         strdup instead of calling xstrdup().
5918         * modules/parse-duration: remove "xalloc" dependency
5919
5920 2011-03-03  Matthew Booth  <mbooth@redhat.com>
5921
5922         bootstrap: honor m4_base when running aclocal
5923         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
5924
5925 2011-03-02  Jim Meyering  <meyering@redhat.com>
5926
5927         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
5928         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
5929         on request from Matt Booth.
5930
5931 2011-03-01  Eric Blake  <eblake@redhat.com>
5932
5933         test-link: work on Hurd
5934         * tests/test-link.h (test_link): Hurd rejects linking directories
5935         with EISDIR instead of the POSIX-mandated EPERM.
5936
5937 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
5938
5939         stdio: simplify by moving files to printf-posix, sigpipe
5940         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
5941         since this symbol is needed only if printf is replaced.
5942         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
5943         Require gl_ASM_SYMBOL_PREFIX.
5944         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
5945         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
5946         (Depends-on): Add 'raise'.
5947         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
5948         * modules/stdio (Files): Remove lib/stdio-write.c,
5949         m4/asm-underscore.m4.
5950         (Depends-on): Remove 'raise'.
5951
5952         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
5953         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
5954         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
5955         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
5956
5957 2011-02-28  Bruno Haible  <bruno@clisp.org>
5958
5959         localcharset: Assume ANSI C behaviour of free().
5960         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
5961         calling free().
5962         Suggested by Simon Josefsson <simon@josefsson.org>.
5963
5964 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
5965             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
5966             Bruno Haible  <bruno@clisp.org>  (tiny change)
5967
5968         On Cygwin, use /proc file system instead of win32 API.
5969         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
5970         Win32 file names.
5971         (DllMain): Simplify by removing Cygwin specific code.
5972         (find_shared_library_fullname): Use Linux specific implementation also
5973         for Cygwin.
5974         (get_shared_library_fullname): Update accordingly.
5975         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
5976         Win32 file names.
5977         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
5978         Cygwin specific code.
5979
5980 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
5981             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
5982
5983         Fix OpenMP flag detection for various Fortran compilers.
5984         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
5985         OpenMP-conditional compilation construct, to force compile
5986         failure with missing OpenMP flag.
5987         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
5988
5989 2011-02-25  Eric Blake  <eblake@redhat.com>
5990
5991         strstr: expand test coverage
5992         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
5993         compilation.
5994         * tests/test-memmem.c (main): Duplicate tests.
5995         * tests/test-strcasestr.c (main): Likewise.
5996         * tests/test-c-strcasestr.c (main): Likewise.
5997
5998 2011-02-25  Jim Meyering  <meyering@redhat.com>
5999
6000         maint.mk: detect missing-NL-at-EOF, too
6001         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
6002         it also detects when a file lacks a newline at EOF.
6003         (require_exactly_one_NL_at_EOF_): Renamed from
6004         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
6005         since people may well have .x-sc_... file names tied to the
6006         existing name.  Suggested by Eric Blake.
6007
6008 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
6009
6010         dirname: move m4/dos.m4 functionality into lib/dosname.h
6011
6012         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
6013         extracts symbols from it, puts them into config.h; but it's much
6014         easier to use the symbols directly.  filename.h already does this,
6015         but it disagrees with dos.m4 in some respects.  This patch
6016         introduces a different include file dosname.h that packages up
6017         dos.m4, and then later we can work on merging filename.h and
6018         dosname.h.  Applications that need only the easy-to-configure
6019         symbols should consider including dosname.h rather than dirname.h.
6020         * NEWS: Mention incompatible changes.
6021         * m4/dos.m4: Remove.
6022         * lib/dosname.h, modules/dosname: New files.
6023         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
6024         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
6025         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
6026         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
6027         Include dosname.h, not dirname.h.
6028         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
6029         Include dosname.h, for definitions of symbols like ISSLASH
6030         that used to be in config.h.
6031         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
6032         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
6033         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
6034         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
6035         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
6036         * modules/rmdir (Files): Likewise.
6037         * modules/stat (Files): Likewise.
6038         * modules/unlink (Files): Likewise.
6039         * modules/dirname-lgpl (Depends-on): Add dosname.
6040         * modules/lstat (Depends-on): Likewise.
6041         * modules/openat (Depends-on): Likewise.
6042         * modules/rmdir (Depends-on): Likewise.
6043         * modules/savewd (Depends-on): Likewise.
6044         * modules/stat (Depends-on): Likewise.
6045         * modules/unlink (Depends-on): Likewise.
6046         * modules/openat (Depends-on): Remove dirname-lgpl.
6047         * modules/savewd (Depends-on): Likewise.
6048         * tests/test-dirname.c: Do not use removed symbols like
6049         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
6050         the remaining symbols, e.g., ISSLASH ('\\').
6051
6052 2011-02-25  Eric Blake  <eblake@redhat.com>
6053
6054         strstr: revert patches that introduced bug and pessimization
6055         * lib/str-two-way.h: Add another reference.
6056         (two_way_short_needle, two_way_long_needle): Revert changes from
6057         2011-02-24; they pessimize search speed.
6058         (critical_factorization): Partially revert changes from
6059         2010-06-22; they violate the requirement that the left half of the
6060         needle be smaller than the period of the needle.
6061
6062 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
6063
6064         filenamecat: remove unnecessary dependency on dirname-lgpl
6065         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
6066         is no direct dependency, just an indirect one via filenamecat-lgpl.
6067
6068         remove: remove unnecessary use of m4/dos.m4
6069         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
6070         * modules/remove (FILES): Remove m4/dos.m4.
6071
6072         * lib/openat-proc.c: Don't include dirname.h; not needed.
6073
6074         backupfile: remove unnecessary use of m4/dos.m4
6075         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
6076         of its symbols are used by the backupfile code.  backupfile.c does
6077         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
6078         for the rare case of programs that want all their backup file
6079         names to live within 8+3 limits, and dos.m4 doesn't address that.
6080         * modules/backupfile (Files): Remove m4/dos.m4.
6081
6082 2011-02-24  Jim Meyering  <meyering@redhat.com>
6083
6084         strstr: fix a bug whereby strstr would mistakenly return NULL
6085         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
6086         in period calculation.
6087         (two_way_long_needle): Likewise.
6088         The original problem was reported by Mike Stump in
6089         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
6090         Ralf Wildenhues provided the short needle and haystack.
6091         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
6092         Add a more involved test to trigger the bug in two_way_long_needle.
6093
6094 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
6095
6096         gnulib-tool: remove use of bold display in help screen
6097         * gnulib-tool (func_usage): Do not use bold display anymore in the
6098         help screen.  That was just meant to be a temporary emphasis for a
6099         backward-incompatible change.
6100
6101 2011-02-23  Bruno Haible  <bruno@clisp.org>
6102
6103         Fix misindentation of preprocessor directives.
6104         * lib/argp-namefrob.h: Reindent preprocessor directives.
6105         * lib/getopt_int.h (struct _getopt_data): Likewise.
6106         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
6107         * lib/vasnprintf.c (decode_long_double): Likewise.
6108         * tests/test-argmatch.c: Insert blank lines, for clarity.
6109         * tests/test-exclude.c: Likewise.
6110
6111 2011-02-22  Bruno Haible  <bruno@clisp.org>
6112
6113         ioctl: Fix for MacOS X in 64-bit mode.
6114         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
6115         value.
6116         Suggested by Eric Blake.
6117         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
6118
6119 2011-02-22  Jim Meyering  <meyering@redhat.com>
6120
6121         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
6122         * Makefile (sc_cpp_indent_check): Don't limit the check to files
6123         in lib/.
6124
6125 2011-02-22  Eric Blake  <eblake@redhat.com>
6126
6127         maint: avoid any CDPATH issue
6128         * Makefile (sc_cpp_indent_check): Anchor cd argument.
6129
6130         maint: adjust cpp indentation for my modules, as well
6131         * Makefile (sc_cpp_indent_check): Add my name.
6132         * lib/fbufmode.c: Filter through cppi.
6133         * lib/fpurge.c: Likewise.
6134         * lib/freadable.c: Likewise.
6135         * lib/freading.c: Likewise.
6136         * lib/fwritable.c: Likewise.
6137         * lib/fwriting.c: Likewise.
6138         * lib/sigaction.c: Likewise.
6139
6140 2011-02-22  Jim Meyering  <meyering@redhat.com>
6141
6142         maint: adjust cpp indentation to reflect nesting depth
6143         I.e., in a block of code that begins with an unnested "#if",
6144         put one space between the "#" in column 1 and following token.
6145         For example,
6146         -#include <sys/vfs.h>
6147         +# include <sys/vfs.h>
6148         Do this only in .c files that are part of a module I maintain.
6149         * lib/linkat.c: Filter through cppi.
6150         * lib/nanosleep.c: Likewise.
6151         * lib/openat.c: Likewise.
6152         * lib/openat-die.c: Likewise.
6153         * lib/dup3.c: Likewise.
6154         * lib/fchownat.c: Likewise.
6155         * lib/flock.c: Likewise.
6156         * lib/fsync.c: Likewise.
6157         * lib/fts.c: Likewise.
6158         * lib/getpass.c: Likewise.
6159         * lib/gettimeofday.c: Likewise.
6160         * lib/userspec.c: Likewise.
6161         * Makefile (sc_cpp_indent_check): New rule, to check this.
6162
6163 2011-02-22  Bruno Haible  <bruno@clisp.org>
6164
6165         New module 'wctomb'.
6166         * lib/stdlib.in.h (wctomb): New declaration.
6167         * lib/wctomb.c: New file.
6168         * lib/wctomb-impl.h: New file.
6169         * m4/wctomb.m4: New file.
6170         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
6171         REPLACE_WCTOMB.
6172         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
6173         REPLACE_WCTOMB.
6174         * modules/wctomb: New file.
6175         * tests/test-stdlib-c++.cc: Test signature of wctomb.
6176         * doc/posix-functions/wctomb.texi: Mention the new module.
6177         * modules/wctob (Depends-on): Add wctomb.
6178
6179 2011-02-22  Bruno Haible  <bruno@clisp.org>
6180
6181         New module 'mbtowc'.
6182         * lib/stdlib.in.h (mbtowc): New declaration.
6183         * lib/mbtowc.c: New file.
6184         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
6185         * m4/mbtowc.m4: New file.
6186         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
6187         REPLACE_MBTOWC.
6188         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
6189         REPLACE_MBTOWC.
6190         * modules/mbtowc: New file.
6191         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
6192         * doc/posix-functions/mbtowc.texi: Mention the new module.
6193         * modules/btowc (Depends-on): Add mbtowc.
6194
6195 2011-02-22  Bruno Haible  <bruno@clisp.org>
6196
6197         wcrtomb: Add more tests for native Windows platforms.
6198         * tests/test-wcrtomb-w32-1.sh: New file.
6199         * tests/test-wcrtomb-w32-2.sh: New file.
6200         * tests/test-wcrtomb-w32-3.sh: New file.
6201         * tests/test-wcrtomb-w32-4.sh: New file.
6202         * tests/test-wcrtomb-w32-5.sh: New file.
6203         * tests/test-wcrtomb-w32.c: New file.
6204         * modules/wcrtomb-tests (Files): Add them.
6205         (Makefile.am): Arrange to run these tests.
6206         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
6207         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
6208
6209 2011-02-20  Bruno Haible  <bruno@clisp.org>
6210
6211         wcrtomb: Enhance test.
6212         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
6213
6214 2011-02-20  Bruno Haible  <bruno@clisp.org>
6215
6216         mbrtowc: Tiny optimization.
6217         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
6218
6219 2011-02-20  Jim Meyering  <meyering@redhat.com>
6220
6221         test-exclude.c: remove unmatched #endif
6222         * tests/test-exclude.c: Remove stray #endif, left over from
6223         the change of a week ago.
6224
6225 2011-02-19  Jim Meyering  <meyering@redhat.com>
6226
6227         git-version-gen: skip "-dirty" check when appropriate
6228         * build-aux/git-version-gen: Don't run any git commands when the
6229         version string comes from .tarball-version.  Prior to this, we
6230         would run git update-index --refresh even from a just-unpacked
6231         tarball directory, and that could affect a .git/ directory in a
6232         parent of the build directory.  Reported by Mike Frysinger.
6233
6234 2011-02-19  Bruno Haible  <bruno@clisp.org>
6235
6236         unictype/property-byname: Reduce the size of the 'data' segment.
6237         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
6238
6239 2011-02-19  Bruno Haible  <bruno@clisp.org>
6240
6241         unictype/scripts: Reduce the size of the 'data' segment.
6242         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
6243         '%pic'.
6244         * lib/unictype/scripts_byname.gperf: Regenerated.
6245
6246 2011-02-19  Bruno Haible  <bruno@clisp.org>
6247
6248         stdint: Update documentation.
6249         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
6250
6251 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
6252
6253         stdint: omit redundant check for wchar.h
6254         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
6255         always tests whether wchar.h exists, so remove the now-redundant test.
6256
6257 2011-02-18  Bruno Haible  <bruno@clisp.org>
6258
6259         stdint: Cut dependency to module 'wchar'.
6260         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
6261         include the necessary prerequisites.
6262         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
6263         * modules/stdint (Depends-on): Remove wchar.
6264         (Makefile.am): Substitute HAVE_WCHAR_H.
6265         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
6266
6267 2011-02-18  Eric Blake  <eblake@redhat.com>
6268
6269         longlong: skip, rather than fail, on cross-compilation
6270         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
6271         when cross-compiling; regression from 2011-02-16.
6272
6273 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
6274
6275         * NEWS: Mention 2011-02-08 change to stdlib.
6276
6277 2011-02-17  Bruno Haible  <bruno@clisp.org>
6278
6279         getloadavg: Add comments about platforms.
6280         * m4/getloadavg.m4: Add comment.
6281         * lib/getloadavg.c: Likewise.
6282
6283 2011-02-17  Bruno Haible  <bruno@clisp.org>
6284
6285         getloadavg: Fix link error on Solaris 2.6.
6286         * modules/getloadavg (Link): New section.
6287         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
6288         linking test-getloadavg.
6289         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
6290         getloadavg.
6291
6292 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
6293
6294         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
6295         It was 'int', but this doesn't match the IRIX 6.5 manual.
6296         Suggested by Bruno Haible in
6297         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
6298
6299 2011-02-17  Bruno Haible  <bruno@clisp.org>
6300
6301         havelib: Fix comments.
6302         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
6303         change.
6304
6305 2011-02-17  Bruno Haible  <bruno@clisp.org>
6306
6307         havelib: Update config.rpath.
6308         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
6309
6310 2011-02-17  Bruno Haible  <bruno@clisp.org>
6311
6312         getloadavg test: Add some plausibility checks.
6313         * tests/test-getloadavg.c (check_avg): Print a warning when the value
6314         is improbable.
6315
6316 2011-02-16  Eric Blake  <eblake@redhat.com>
6317
6318         maintainer-makefile: make syntax-check a no-op from tarballs
6319         * top/maint.mk (no-vc-detected): New rule.
6320         (local-checks-available): Use it to avoid hanging if someone tries
6321         'make syntax-check' from a tarball.  Also append to any non-syntax
6322         checks already defined in cfg.mk.
6323
6324 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
6325
6326         longlong: tune, particularly for common case of c99
6327
6328         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
6329         or running anything if c99, or if unsigned long long int does not
6330         work.  In either case, we know the answer without further tests.
6331         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
6332         it at most once, and use its results for both long long int and
6333         unsigned long long int.  This is more likely to be efficient in
6334         the common case where the program wants to check for both long
6335         long int and unsigned long long int.
6336         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
6337         since the answer is already known.
6338
6339 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
6340
6341         getloadavg: set errno
6342         * lib/getloadavg.c: Set errno when returning -1.  If no other
6343         error number looks appropriate, set it to ENOSYS if the getloadavg
6344         looks like it can't possibly ever work, ENOTSUP otherwise.
6345         Suggested by Bruno Haible in
6346         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
6347
6348         getloadavg: trim unused parts and speed up 'configure'
6349         * NEWS: Document this.
6350         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
6351         always compiled if getloadavg is absent.
6352         Move test code to ...
6353         * tests/test-getloadavg.c: New file, containing previous
6354         contents of test from lib/getloadavg.c.  It also contains
6355         suggestions by Bruno Haible in
6356         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
6357         * modules/getloadavg-tests: New file.
6358         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
6359         Do tests in the same order as they're needed for getloadavg.c.
6360         Omit setgid-related tests that generate symbols KMEM_GROUP,
6361         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
6362         Do only the tests that are needed to see whether the system has
6363         getloadavg, moving the other tests into ...
6364         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
6365         NLIST_NAME_UNION; nobody should be using it.  Do not define
6366         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
6367         relevant, as the user of this module shouldn't care how getloadavg
6368         is implemented.
6369
6370         getloadavg: omit unused var
6371         * lib/getloadavg.c (getloadavg): Omit unused local variable.
6372
6373 2011-02-15  Jim Meyering  <meyering@redhat.com>
6374
6375         doc: update users.txt
6376         * users.txt: Update iwhd's URL.
6377
6378 2011-02-13  Bruno Haible  <bruno@clisp.org>
6379
6380         Consistent macro naming for macros that use GCC __attribute__.
6381         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
6382         _ATTRIBUTE_NONNULL_.
6383         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
6384         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
6385         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
6386         ATTRIBUTE_DEPRECATED.
6387         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
6388         ATTRIBUTE_NORETURN.
6389         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
6390         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
6391         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
6392         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
6393         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
6394         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
6395         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
6396         ATTRIBUTE_SENTINEL.
6397         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
6398         ATTRIBUTE_RETURN_CHECK.
6399         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
6400         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
6401         ATTRIBUTE_NORETURN.
6402         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
6403         Reported by Paul Eggert.
6404
6405 2011-02-13  Bruno Haible  <bruno@clisp.org>
6406
6407         Don't interfere with a program's definition of __attribute__.
6408         * lib/argp.h (__attribute__): Remove definition.
6409         (_GL_ATTRIBUTE_FORMAT): New macro.
6410         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
6411         * lib/argp-fmtstream.h (__attribute__): Remove definition.
6412         (_GL_ATTRIBUTE_FORMAT): New macro.
6413         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
6414         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
6415         GCC 3 or newer.
6416         * lib/error.h (__attribute__): Remove definition.
6417         (_GL_ATTRIBUTE_FORMAT): New macro.
6418         (error, error_at_line): Use it.
6419         * lib/hash.h (__attribute__): Remove definition.
6420         (ATTRIBUTE_WUR): Update definition. Define always.
6421         * lib/openat.h (__attribute__): Remove definition.
6422         (ATTRIBUTE_NORETURN): Update definition. Define always.
6423         * lib/sigpipe-die.h (__attribute__): Remove definition.
6424         (ATTRIBUTE_NORETURN): Update definition. Define always.
6425         * lib/vasnprintf.h (__attribute__): Remove definition.
6426         (_GL_ATTRIBUTE_FORMAT): New macro.
6427         (asnprintf, vasnprintf): Use it.
6428         * lib/xalloc.h (__attribute__): Remove definition.
6429         (ATTRIBUTE_NORETURN): Update definition. Define always.
6430         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
6431         * lib/xmemdup0.h (__attribute__): Remove definition.
6432         (ATTRIBUTE_NORETURN): Update definition. Define always.
6433         * lib/xprintf.h (__attribute__): Remove definition.
6434         (_GL_ATTRIBUTE_FORMAT): New macro.
6435         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
6436         * lib/xstrtol.h (__attribute__): Remove definition.
6437         (ATTRIBUTE_NORETURN): Update definition. Define always.
6438         * lib/xvasprintf.h (__attribute__): Remove definition.
6439         (_GL_ATTRIBUTE_FORMAT): New macro.
6440         (xasprintf, xvasprintf): Use it.
6441         * tests/test-argmatch.c (__attribute__): Remove definition.
6442         (ATTRIBUTE_NORETURN): Update definition. Define always.
6443         * tests/test-exclude.c (__attribute__): Remove definition.
6444         (ATTRIBUTE_NORETURN): Update definition. Define always.
6445         Reported by Paul Eggert.
6446
6447 2011-02-13  Bruno Haible  <bruno@clisp.org>
6448
6449         mbrtowc: Add more tests for native Windows platforms.
6450         * tests/test-mbrtowc-w32-1.sh: New file.
6451         * tests/test-mbrtowc-w32-2.sh: New file.
6452         * tests/test-mbrtowc-w32-3.sh: New file.
6453         * tests/test-mbrtowc-w32-4.sh: New file.
6454         * tests/test-mbrtowc-w32-5.sh: New file.
6455         * tests/test-mbrtowc-w32.c: New file.
6456         * modules/mbrtowc-tests (Files): Add them.
6457         (Makefile.am): Arrange to run these tests.
6458         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
6459         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
6460
6461 2011-02-13  Bruno Haible  <bruno@clisp.org>
6462
6463         mbrtowc: Work around native Windows bug.
6464         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
6465         guess when no suitable locale for testing was found.
6466         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
6467
6468 2011-02-13  Bruno Haible  <bruno@clisp.org>
6469
6470         mbsinit: Work around mingw bug.
6471         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
6472         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
6473         Windows.
6474         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
6475
6476 2011-02-13  Bruno Haible  <bruno@clisp.org>
6477
6478         mbsinit: Don't crash for a NULL argument.
6479         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
6480         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
6481
6482 2011-02-13  Bruno Haible  <bruno@clisp.org>
6483
6484         Don't interfere with a program's definition of __attribute__.
6485         * lib/stdio.in.h (__attribute__): Remove definition.
6486         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
6487         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
6488         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
6489         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
6490         * lib/string.in.h (__attribute__): Remove definition.
6491         Reported by Paul Eggert.
6492
6493 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
6494
6495         stdlib: don't get in the way of non-GCC __attribute__
6496         See thread starting at
6497         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
6498         Revert previous stdlib change, installing the following instead:
6499         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
6500         to get in the way of a non-GCC compiler that supports __attribute__.
6501         (_GL_ATTRIBUTE_RETURN): New macro.
6502         (_Exit): Use it instead of __attribute__.
6503
6504 2011-02-12  Bruno Haible  <bruno@clisp.org>
6505
6506         quotearg test: Avoid test failure on mingw.
6507         * tests/test-quotearg.sh: Convert the locale identifier from native
6508         Windows syntax to Unix syntax.
6509
6510 2011-02-12  Bruno Haible  <bruno@clisp.org>
6511
6512         setlocale: Prefer gnulib's override over libintl's override.
6513         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
6514         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
6515         GNULIB_defined_setlocale is set.
6516
6517 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
6518
6519         stdlib: support non-GCC __attribute__
6520
6521         Fix a serious and tricky problem encountered when attempting to
6522         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
6523         5.5, but it crashed due to memory corruption on Solaris 10 with
6524         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
6525         bits that are otherwise zero.  This tagging is optional inside
6526         Emacs but is preferred and is used when __attribute__ ((__aligned
6527         (8))) works, as it does with both recent-enough GCC and with Sun C
6528         5.11.  However, Sun C 5.11 is not GCC and does not #define
6529         __GNUC__ and __GNUC_MINOR__.
6530
6531         When I added the getloadavg module to Emacs, it brought in
6532         stdlib.in.h, which contained this fragment:
6533
6534            #ifndef __attribute__
6535            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
6536            #  define __attribute__(Spec)   /* empty */
6537            # endif
6538            #endif
6539
6540         When files that include <stdlib.h> were compiled with Sun C 5.11,
6541         the above code disabled __attribute__ ((__aligned (8))), which
6542         caused variables to not be properly aligned, which eventually led
6543         to the pointer corruption mentioned above.  (This was a bit hard
6544         to diagnose, unfortunately.)
6545
6546         Several "#define __attribute__(X) /* empty */" code snippets need
6547         to be eradicated from Gnulib to work with non-GCC compilers that
6548         support __attribute__.  The Autoconf way to do this is to test for
6549         each kind of attribute that we want support for, and selectively
6550         enable that in source code.
6551
6552         Fix this problem just for stdlib.h, by adding a test for the
6553         __noreturn__ attribute, and change stdlib.in.h to use that test
6554         when needed.  This technique can be easily generalized to the
6555         other *.in.h files and attributes, and a similar technique can be
6556         used for *.h and *.c files.  This patch is enough to solve the
6557         problem for Emacs + getloadavg, and I thought I'd publish it for
6558         feedback before undertaking further, similar fixes in other
6559         modules.
6560
6561         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
6562         because it's not needed for stdlib.h.  It merely substitutes the
6563         value directly into stdlib.h.  We may well need to #define it, or
6564         similar symbols, for other modules, but it's nice to also have an
6565         option to not #define it for applications like Emacs that do not
6566         need it.
6567
6568         * lib/stdlib.in.h (__attribute__): Do not #define.
6569         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
6570         be defined only if the _Exit module is also used.
6571         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
6572         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
6573         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
6574         platforms.
6575         * modules/_Exit (Files): Add m4/attribute.m4.
6576         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
6577         * m4/attribute.m4: New file.
6578
6579 2011-02-12  Bruno Haible  <bruno@clisp.org>
6580
6581         wcsrtombs: Work around bug on native Windows.
6582         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
6583         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
6584         instead of len.
6585         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
6586
6587 2011-02-12  Bruno Haible  <bruno@clisp.org>
6588
6589         mbsrtowcs: Work around bug on native Windows.
6590         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
6591         against mingw bug.
6592         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
6593
6594 2011-02-12  Bruno Haible  <bruno@clisp.org>
6595
6596         Avoid setlocale bugs in tests.
6597         * modules/btowc (Dependencies): Add setlocale.
6598         * modules/c-strcase (Dependencies): Likewise.
6599         * modules/mbmemcasecmp (Dependencies): Likewise.
6600         * modules/mbmemcasecoll (Dependencies): Likewise.
6601         * modules/mbrtowc (Dependencies): Likewise.
6602         * modules/mbscasecmp (Dependencies): Likewise.
6603         * modules/mbscasestr (Dependencies): Likewise.
6604         * modules/mbschr (Dependencies): Likewise.
6605         * modules/mbscspn (Dependencies): Likewise.
6606         * modules/mbsinit (Dependencies): Likewise.
6607         * modules/mbsncasecmp (Dependencies): Likewise.
6608         * modules/mbsnrtowcs (Dependencies): Likewise.
6609         * modules/mbspbrk (Dependencies): Likewise.
6610         * modules/mbspcasecmp (Dependencies): Likewise.
6611         * modules/mbsrchr (Dependencies): Likewise.
6612         * modules/mbsrtowcs (Dependencies): Likewise.
6613         * modules/mbsspn (Dependencies): Likewise.
6614         * modules/mbsstr (Dependencies): Likewise.
6615         * modules/nl_langinfo (Dependencies): Likewise.
6616         * modules/quotearg (Dependencies): Likewise.
6617         * modules/unicase/locale-language (Dependencies): Likewise.
6618         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
6619         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
6620         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
6621         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
6622         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
6623         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
6624         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
6625         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
6626         * modules/vasnprintf-posix (Dependencies): Likewise.
6627         * modules/wcrtomb (Dependencies): Likewise.
6628         * modules/wcsnrtombs (Dependencies): Likewise.
6629         * modules/wcsrtombs (Dependencies): Likewise.
6630
6631 2011-02-12  Bruno Haible  <bruno@clisp.org>
6632
6633         setlocale: Workaround native Windows bug.
6634         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
6635         succeeds but sets LC_CTYPE to "C", report a failure.
6636         * tests/test-setlocale2.sh: New file.
6637         * tests/test-setlocale2.c: New file.
6638         * modules/setlocale-tests (Files): Add the new files.
6639         (Makefile.am): Enable test-setlocale2.sh test.
6640         * doc/posix-functions/setlocale.texi: Mention workaround.
6641
6642 2011-02-11  Bruno Haible  <bruno@clisp.org>
6643
6644         Tests for module 'setlocale'.
6645         * modules/setlocale-tests: New file.
6646         * tests/test-setlocale1.sh: New file.
6647         * tests/test-setlocale1.c: New file.
6648
6649         New module 'setlocale'.
6650         * lib/locale.in.h (setlocale): New declaration.
6651         * lib/setlocale.c: New file, based on
6652         gettext/gettext-runtime/intl/setlocale.c.
6653         * m4/setlocale.m4: New file.
6654         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
6655         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
6656         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
6657         REPLACE_SETLOCALE.
6658         * modules/setlocale: New file.
6659         * tests/test-locale-c++.cc: Test the declaration of setlocale.
6660         * doc/posix-functions/setlocale.texi: Mention the new module.
6661
6662 2011-02-11  Bruno Haible  <bruno@clisp.org>
6663
6664         Prepare for locale dependent tests on mingw.
6665         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
6666         because it has the wrong locale encoding.
6667         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
6668         French_France.1252 instead of "fr".
6669         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
6670         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
6671         because it has the wrong locale encoding.
6672         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
6673         native Windows, try Turkish_Turkey.65001.
6674         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
6675         Chinese_China.54936.
6676
6677         Prepare for locale dependent tests on mingw.
6678         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
6679         differently.
6680         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
6681         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
6682         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
6683         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
6684
6685 2011-02-11  Eric Blake  <eblake@redhat.com>
6686
6687         strptime: avoid compiler warnings
6688         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
6689         compiler warnings about dead code.
6690         Reported by Daniel P. Berrange.
6691
6692 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
6693
6694         doc: update users.txt
6695         * users.txt: Add rcs.
6696
6697 2011-02-10  John W. Eaton  <jwe@gnu.org>
6698
6699         doc: update users.txt
6700         * users.txt: Add octave.
6701
6702 2011-02-10  Jim Meyering  <meyering@redhat.com>
6703
6704         doc: update users.txt
6705         * users.txt: Add iwhd.
6706
6707 2011-02-09  Bruno Haible  <bruno@clisp.org>
6708
6709         gnulib-tool: Make copyright notice adjustment more robust.
6710         * gnulib-tool (func_import): In sed_transform_main_lib_file,
6711         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
6712         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
6713         License".
6714         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
6715
6716 2011-02-06  Bruno Haible  <bruno@clisp.org>
6717
6718         New module 'towctrans'.
6719         * modules/towctrans: New file.
6720         * lib/wctype.in.h (towctrans): New declaration.
6721         * lib/towctrans.c: New file.
6722         * lib/towctrans-impl.h: New file.
6723         * m4/towctrans.m4: New file.
6724         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
6725         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
6726         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
6727         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
6728         * doc/posix-functions/towctrans.texi: Mention the new module.
6729
6730 2011-02-06  Bruno Haible  <bruno@clisp.org>
6731
6732         New module 'wctrans'.
6733         * modules/wctrans: New file.
6734         * lib/wctype.in.h (wctrans): New declaration.
6735         * lib/wctrans.c: New file.
6736         * lib/wctrans-impl.h: New file.
6737         * m4/wctrans.m4: New file.
6738         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
6739         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
6740         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
6741         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
6742         * doc/posix-functions/wctrans.texi: Mention the new module.
6743
6744 2011-02-06  Bruno Haible  <bruno@clisp.org>
6745
6746         New module 'iswctype'.
6747         * modules/iswctype: New file.
6748         * lib/wctype.in.h (iswctype): New declaration.
6749         * lib/iswctype.c: New file.
6750         * lib/iswctype-impl.h: New file.
6751         * m4/iswctype.m4: New file.
6752         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
6753         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
6754         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
6755         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
6756         * doc/posix-functions/iswctype.texi: Mention the new module and the
6757         HP-UX 11.00 problem.
6758
6759 2011-02-06  Bruno Haible  <bruno@clisp.org>
6760
6761         New module 'wctype'.
6762         * modules/wctype: Change to represent the wctype() substitute.
6763         * lib/wctype.in.h (wctype): New declaration.
6764         * lib/wctype.c: New file.
6765         * lib/wctype-impl.h: New file.
6766         * m4/wctype.m4: New file.
6767         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
6768         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
6769         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
6770         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
6771         * doc/posix-functions/wctype.texi: Mention the new module and the
6772         HP-UX 11.00 problem.
6773
6774 2011-02-06  Bruno Haible  <bruno@clisp.org>
6775
6776         wctype-h: Ensure wctype_t and wctrans_t are defined.
6777         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
6778         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
6779         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
6780         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
6781         HAVE_WCTRANS_T.
6782         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
6783
6784 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
6785
6786         flock: fix license typo
6787
6788         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
6789         omitted.
6790
6791 2011-02-08  Bruno Haible  <bruno@clisp.org>
6792
6793         Split large sed scripts, for HP-UX sed.
6794         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
6795         to avoid HP-UX limit of 99 commands, in the near future.
6796         * modules/stdlib (Makefile.am): Likewise.
6797         * modules/unistd (Makefile.am): Likewise.
6798         * modules/wchar (Makefile.am): Likewise.
6799         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
6800         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
6801         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
6802
6803 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
6804             Bruno Haible  <bruno@clisp.org>
6805
6806         stdlib: improve random_r modularization
6807         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
6808         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
6809         you also need the random_r module to get this material right.
6810         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
6811         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
6812         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
6813
6814 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
6815
6816         stdlib: don't depend on stdint
6817         * lib/stdlib.in.h: Don't include <stdint.h> merely because
6818         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
6819         be independent of whether stdint.h is needed.
6820         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
6821         here, instead of ...
6822         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
6823         struct random_data should be using the random_r module, not just
6824         the stdlib module (which wouldn't make sense: what package needs
6825         just struct random_data without also needing random_r?).
6826         * modules/stdlib (Depends-on): Remove stdint.
6827
6828         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
6829         See the thread rooted at
6830         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
6831         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
6832         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
6833         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
6834         __VMS)); previously it was always included (via fcntl--.h).
6835         (getloadavg): Do not use c_strtod.  Instead, approximate it by
6836         hand; this is good enough for load averages.  Also, do not use
6837         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
6838         flags directly if available and don't bother otherwise.  (Packages
6839         that need the extra reliability should use the modules that define
6840         these flags on older platforms that lack them.)
6841         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
6842         fcntl-safer.
6843
6844 2011-02-08  Jim Meyering  <meyering@redhat.com>
6845
6846         di-set.h, ino-map.h: add multiple-inclusion guard
6847         Technically, the guard is required only for ino-map.h, due to its
6848         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
6849         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
6850         * lib/ino-map.h: Likewise.
6851
6852 2011-02-06  Bruno Haible  <bruno@clisp.org>
6853
6854         iswblank: Ensure declaration on glibc systems.
6855         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
6856         * modules/iswblank (Dependencies): Add 'extensions'.
6857         * doc/posix-functions/iswblank.texi: Document the glibc problem.
6858
6859 2011-02-06  Bruno Haible  <bruno@clisp.org>
6860
6861         New module 'iswblank'.
6862         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
6863         * modules/iswblank: New file.
6864         * modules/wctype-h (Files): Remove lib/iswblank.c.
6865         (Makefile.am): Substitute GNULIB_ISWBLANK.
6866         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
6867         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
6868         (gl_WCTYPE_H_DEFAULTS): New macro.
6869         (gl_WCTYPE_H): Require it. Remove iswblank related code.
6870         * modules/iswblank-tests: New file.
6871         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
6872         * tests/test-wctype-h.c (main): Remove iswblank tests.
6873         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
6874         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
6875         of 'wctype-h'.
6876         * NEWS: Mention the change.
6877         * modules/mbchar (Depends-on): Add iswblank.
6878
6879 2011-02-08  Bruno Haible  <bruno@clisp.org>
6880
6881         di-set tests: Refactor.
6882         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
6883         unnecessary includes.
6884         (ASSERT): Remove macro.
6885         (main): Make C90 compliant by avoiding variable declaration after
6886         statement.
6887         * modules/di-set-tests (Files): Add tests/macros.h.
6888
6889 2011-02-08  Bruno Haible  <bruno@clisp.org>
6890
6891         ino-map tests: Refactor.
6892         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
6893         unnecessary includes.
6894         (ASSERT): Remove macro.
6895         (main): Make C90 compliant by avoiding variable declaration after
6896         statement.
6897         * modules/ino-map-tests (Files): Add tests/macros.h.
6898
6899 2011-02-08  Jim Meyering  <meyering@redhat.com>
6900
6901         di-set: add "const" to a cast
6902         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
6903         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
6904
6905 2011-02-06  Bruno Haible  <bruno@clisp.org>
6906
6907         Rename module 'wctype' to 'wctype-h'.
6908         * modules/wctype-h: Renamed from modules/wctype.
6909         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
6910         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
6911         (Files, Depends-on, Makefile.am): Update.
6912         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
6913         (Files, Makefile.am): Update.
6914         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
6915         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
6916         * doc/posix-headers/wctype.texi: Update.
6917         * doc/posix-functions/iswalnum.texi: Update.
6918         * doc/posix-functions/iswalpha.texi: Update.
6919         * doc/posix-functions/iswblank.texi: Update.
6920         * doc/posix-functions/iswcntrl.texi: Update.
6921         * doc/posix-functions/iswdigit.texi: Update.
6922         * doc/posix-functions/iswgraph.texi: Update.
6923         * doc/posix-functions/iswlower.texi: Update.
6924         * doc/posix-functions/iswprint.texi: Update.
6925         * doc/posix-functions/iswpunct.texi: Update.
6926         * doc/posix-functions/iswspace.texi: Update.
6927         * doc/posix-functions/iswupper.texi: Update.
6928         * doc/posix-functions/iswxdigit.texi: Update.
6929         * doc/posix-functions/towlower.texi: Update.
6930         * doc/posix-functions/towupper.texi: Update.
6931         * NEWS: Mention the change.
6932         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
6933         * modules/mbchar (Dependencies): Likewise.
6934         * modules/mbswidth (Dependencies): Likewise.
6935         * modules/quotearg (Dependencies): Likewise.
6936         * modules/regex (Dependencies): Likewise.
6937         * modules/wcscasecmp (Dependencies): Likewise.
6938         * modules/wcsncasecmp (Dependencies): Likewise.
6939         * modules/wcwidth (Dependencies): Likewise.
6940
6941 2011-02-06  Bruno Haible  <bruno@clisp.org>
6942
6943         New module 'wcswidth'.
6944         * modules/wcswidth: New file.
6945         * lib/wchar.in.h (wcswidth): New declaration.
6946         * lib/wcswidth.c: New file.
6947         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
6948         * m4/wcswidth.m4: New file.
6949         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
6950         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
6951         REPLACE_WCSWIDTH.
6952         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
6953         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
6954         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
6955         * doc/posix-functions/wcswidth.texi: Mention the new module.
6956
6957 2011-02-06  Bruno Haible  <bruno@clisp.org>
6958
6959         New module 'wcstok'.
6960         * modules/wcstok: New file.
6961         * lib/wchar.in.h (wcstok): New declaration.
6962         * lib/wcstok.c: New file.
6963         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
6964         * m4/wcstok.m4: New file.
6965         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
6966         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
6967         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
6968         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
6969         * doc/posix-functions/wcstok.texi: Mention the new module.
6970
6971 2011-02-06  Bruno Haible  <bruno@clisp.org>
6972
6973         New module 'wcsstr'.
6974         * modules/wcsstr: New file.
6975         * lib/wchar.in.h (wcsstr): New declaration.
6976         * lib/wcsstr.c: New file.
6977         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
6978         * m4/wcsstr.m4: New file.
6979         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
6980         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
6981         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
6982         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
6983         * doc/posix-functions/wcsstr.texi: Mention the new module.
6984
6985 2011-02-06  Bruno Haible  <bruno@clisp.org>
6986
6987         New module 'wcspbrk'.
6988         * modules/wcspbrk: New file.
6989         * lib/wchar.in.h (wcspbrk): New declaration.
6990         * lib/wcspbrk.c: New file.
6991         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
6992         * m4/wcspbrk.m4: New file.
6993         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
6994         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
6995         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
6996         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
6997         * doc/posix-functions/wcspbrk.texi: Mention the new module.
6998
6999 2011-02-06  Bruno Haible  <bruno@clisp.org>
7000
7001         New module 'wcsspn'.
7002         * modules/wcsspn: New file.
7003         * lib/wchar.in.h (wcsspn): New declaration.
7004         * lib/wcsspn.c: New file.
7005         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
7006         * m4/wcsspn.m4: New file.
7007         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
7008         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
7009         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
7010         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
7011         * doc/posix-functions/wcsspn.texi: Mention the new module.
7012
7013 2011-02-06  Bruno Haible  <bruno@clisp.org>
7014
7015         New module 'wcscspn'.
7016         * modules/wcscspn: New file.
7017         * lib/wchar.in.h (wcscspn): New declaration.
7018         * lib/wcscspn.c: New file.
7019         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
7020         * m4/wcscspn.m4: New file.
7021         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
7022         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
7023         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
7024         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
7025         * doc/posix-functions/wcscspn.texi: Mention the new module.
7026
7027 2011-02-06  Bruno Haible  <bruno@clisp.org>
7028
7029         New module 'wcsrchr'.
7030         * modules/wcsrchr: New file.
7031         * lib/wchar.in.h (wcsrchr): New declaration.
7032         * lib/wcsrchr.c: New file.
7033         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
7034         * m4/wcsrchr.m4: New file.
7035         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
7036         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
7037         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
7038         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
7039         * doc/posix-functions/wcsrchr.texi: Mention the new module.
7040
7041 2011-02-06  Bruno Haible  <bruno@clisp.org>
7042
7043         New module 'wcschr'.
7044         * modules/wcschr: New file.
7045         * lib/wchar.in.h (wcschr): New declaration.
7046         * lib/wcschr.c: New file.
7047         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
7048         * m4/wcschr.m4: New file.
7049         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
7050         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
7051         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
7052         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
7053         * doc/posix-functions/wcschr.texi: Mention the new module.
7054
7055 2011-02-06  Bruno Haible  <bruno@clisp.org>
7056
7057         New module 'wcsdup'.
7058         * modules/wcsdup: New file.
7059         * lib/wchar.in.h (wcsdup): New declaration.
7060         * lib/wcsdup.c: New file.
7061         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
7062         * m4/wcsdup.m4: New file.
7063         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
7064         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
7065         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
7066         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
7067         * doc/posix-functions/wcsdup.texi: Mention the new module.
7068
7069 2011-02-06  Bruno Haible  <bruno@clisp.org>
7070
7071         New module 'wcsxfrm'.
7072         * modules/wcsxfrm: New file.
7073         * lib/wchar.in.h (wcsxfrm): New declaration.
7074         * lib/wcsxfrm.c: New file.
7075         * lib/wcsxfrm-impl.h: New file.
7076         * m4/wcsxfrm.m4: New file.
7077         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
7078         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
7079         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
7080         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
7081         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
7082
7083 2011-02-06  Bruno Haible  <bruno@clisp.org>
7084
7085         New module 'wcscoll'.
7086         * modules/wcscoll: New file.
7087         * lib/wchar.in.h (wcscoll): New declaration.
7088         * lib/wcscoll.c: New file.
7089         * lib/wcscoll-impl.h: New file.
7090         * m4/wcscoll.m4: New file.
7091         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
7092         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
7093         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
7094         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
7095         * doc/posix-functions/wcscoll.texi: Mention the new module.
7096
7097 2011-02-06  Bruno Haible  <bruno@clisp.org>
7098
7099         New module 'wcsncasecmp'.
7100         * modules/wcsncasecmp: New file.
7101         * lib/wchar.in.h (wcsncasecmp): New declaration.
7102         * lib/wcsncasecmp.c: New file.
7103         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
7104         * m4/wcsncasecmp.m4: New file.
7105         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
7106         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
7107         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
7108         HAVE_WCSNCASECMP.
7109         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
7110         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
7111
7112 2011-02-06  Bruno Haible  <bruno@clisp.org>
7113
7114         New module 'wcscasecmp'.
7115         * modules/wcscasecmp: New file.
7116         * lib/wchar.in.h (wcscasecmp): New declaration.
7117         * lib/wcscasecmp.c: New file.
7118         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
7119         * m4/wcscasecmp.m4: New file.
7120         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
7121         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
7122         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
7123         HAVE_WCSCASECMP.
7124         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
7125         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
7126
7127 2011-02-05  Bruno Haible  <bruno@clisp.org>
7128
7129         New module 'wcsncmp'.
7130         * modules/wcsncmp: New file.
7131         * lib/wchar.in.h (wcsncmp): New declaration.
7132         * lib/wcsncmp.c: New file.
7133         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
7134         * m4/wcsncmp.m4: New file.
7135         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
7136         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
7137         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
7138         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
7139         * doc/posix-functions/wcsncmp.texi: Mention the new module.
7140
7141 2011-02-05  Bruno Haible  <bruno@clisp.org>
7142
7143         New module 'wcscmp'.
7144         * modules/wcscmp: New file.
7145         * lib/wchar.in.h (wcscmp): New declaration.
7146         * lib/wcscmp.c: New file.
7147         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
7148         * m4/wcscmp.m4: New file.
7149         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
7150         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
7151         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
7152         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
7153         * doc/posix-functions/wcscmp.texi: Mention the new module.
7154
7155 2011-02-05  Bruno Haible  <bruno@clisp.org>
7156
7157         New module 'wcsncat'.
7158         * modules/wcsncat: New file.
7159         * lib/wchar.in.h (wcsncat): New declaration.
7160         * lib/wcsncat.c: New file.
7161         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
7162         * m4/wcsncat.m4: New file.
7163         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
7164         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
7165         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
7166         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
7167         * doc/posix-functions/wcsncat.texi: Mention the new module.
7168
7169 2011-02-05  Bruno Haible  <bruno@clisp.org>
7170
7171         New module 'wcscat'.
7172         * modules/wcscat: New file.
7173         * lib/wchar.in.h (wcscat): New declaration.
7174         * lib/wcscat.c: New file.
7175         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
7176         * m4/wcscat.m4: New file.
7177         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
7178         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
7179         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
7180         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
7181         * doc/posix-functions/wcscat.texi: Mention the new module.
7182
7183 2011-02-05  Bruno Haible  <bruno@clisp.org>
7184
7185         New module 'wcpncpy'.
7186         * modules/wcpncpy: New file.
7187         * lib/wchar.in.h (wcpncpy): New declaration.
7188         * lib/wcpncpy.c: New file.
7189         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
7190         * m4/wcpncpy.m4: New file.
7191         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
7192         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
7193         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
7194         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
7195         * doc/posix-functions/wcpncpy.texi: Mention the new module.
7196
7197 2011-02-05  Bruno Haible  <bruno@clisp.org>
7198
7199         New module 'wcsncpy'.
7200         * modules/wcsncpy: New file.
7201         * lib/wchar.in.h (wcsncpy): New declaration.
7202         * lib/wcsncpy.c: New file.
7203         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
7204         * m4/wcsncpy.m4: New file.
7205         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
7206         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
7207         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
7208         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
7209         * doc/posix-functions/wcsncpy.texi: Mention the new module.
7210
7211 2011-02-05  Bruno Haible  <bruno@clisp.org>
7212
7213         New module 'wcpcpy'.
7214         * modules/wcpcpy: New file.
7215         * lib/wchar.in.h (wcpcpy): New declaration.
7216         * lib/wcpcpy.c: New file.
7217         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
7218         * m4/wcpcpy.m4: New file.
7219         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
7220         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
7221         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
7222         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
7223         * doc/posix-functions/wcpcpy.texi: Mention the new module.
7224
7225 2011-02-05  Bruno Haible  <bruno@clisp.org>
7226
7227         New module 'wcscpy'.
7228         * modules/wcscpy: New file.
7229         * lib/wchar.in.h (wcscpy): New declaration.
7230         * lib/wcscpy.c: New file.
7231         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
7232         * m4/wcscpy.m4: New file.
7233         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
7234         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
7235         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
7236         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
7237         * doc/posix-functions/wcscpy.texi: Mention the new module.
7238
7239 2011-02-05  Bruno Haible  <bruno@clisp.org>
7240
7241         New module 'wcsnlen'.
7242         * modules/wcsnlen: New file.
7243         * lib/wchar.in.h (wcsnlen): New declaration.
7244         * lib/wcsnlen.c: New file.
7245         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
7246         * m4/wcsnlen.m4: New file.
7247         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
7248         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
7249         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
7250         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
7251         * doc/posix-functions/wcsnlen.texi: Mention the new module.
7252
7253 2011-02-05  Bruno Haible  <bruno@clisp.org>
7254
7255         New module 'wcslen'.
7256         * modules/wcslen: New file.
7257         * lib/wchar.in.h (wcslen): New declaration.
7258         * lib/wcslen.c: New file.
7259         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
7260         * m4/wcslen.m4: New file.
7261         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
7262         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
7263         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
7264         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
7265         * doc/posix-functions/wcslen.texi: Mention the new module.
7266
7267 2011-02-05  Bruno Haible  <bruno@clisp.org>
7268
7269         New module 'wmemset'.
7270         * modules/wmemset: New file.
7271         * lib/wchar.in.h (wmemset): New declaration.
7272         * lib/wmemset.c: New file.
7273         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
7274         * m4/wmemset.m4: New file.
7275         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
7276         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
7277         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
7278         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
7279         * doc/posix-functions/wmemset.texi: Mention the new module.
7280
7281 2011-02-05  Bruno Haible  <bruno@clisp.org>
7282
7283         New module 'wmemmove'.
7284         * modules/wmemmove: New file.
7285         * lib/wchar.in.h (wmemmove): New declaration.
7286         * lib/wmemmove.c: New file.
7287         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
7288         * m4/wmemmove.m4: New file.
7289         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
7290         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
7291         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
7292         HAVE_WMEMMOVE.
7293         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
7294         * doc/posix-functions/wmemmove.texi: Mention the new module.
7295
7296 2011-02-05  Bruno Haible  <bruno@clisp.org>
7297
7298         New module 'wmemcpy'.
7299         * modules/wmemcpy: New file.
7300         * lib/wchar.in.h (wmemcpy): New declaration.
7301         * lib/wmemcpy.c: New file.
7302         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
7303         * m4/wmemcpy.m4: New file.
7304         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
7305         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
7306         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
7307         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
7308         * doc/posix-functions/wmemcpy.texi: Mention the new module.
7309
7310 2011-02-05  Bruno Haible  <bruno@clisp.org>
7311
7312         New module 'wmemcmp'.
7313         * modules/wmemcmp: New file.
7314         * lib/wchar.in.h (wmemcmp): New declaration.
7315         * lib/wmemcmp.c: New file.
7316         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
7317         * m4/wmemcmp.m4: New file.
7318         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
7319         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
7320         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
7321         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
7322         * doc/posix-functions/wmemcmp.texi: Mention the new module.
7323
7324 2011-02-07  Jim Meyering  <meyering@redhat.com>
7325
7326         di-set, ino-map: new modules, from coreutils
7327         * lib/di-set.c: New file.
7328         * lib/di-set.h: Likewise.
7329         * lib/ino-map.c: Likewise.
7330         * lib/ino-map.h: Likewise.
7331         * modules/di-set: Likewise.
7332         * modules/di-set-tests: Likewise.
7333         * modules/ino-map: Likewise.
7334         * modules/ino-map-tests: Likewise.
7335         * tests/test-di-set.c: Likewise.
7336         * tests/test-ino-map.c: Likewise.
7337
7338 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
7339
7340         getloadavg: merge minor changes from Emacs
7341
7342         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
7343         (getloadavg): Use memset, not bzero.
7344
7345         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
7346         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
7347         clash (bug#86).
7348
7349 2010-11-14  Bruno Haible  <bruno@clisp.org>
7350
7351         Allow multiple gnulib generated replacements to coexist.
7352         * lib/getopt.in.h (struct option): Avoid identical redefinition.
7353         * lib/inttypes.in.h (imaxdiv_t): Likewise.
7354         * lib/langinfo.in.h (nl_item): Likewise.
7355         * lib/math.in.h (_NaN, NAN): Likewise.
7356         * lib/netdb.in.h (struct addrinfo): Likewise.
7357         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
7358         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
7359         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
7360         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
7361         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
7362         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
7363         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
7364         pthread_mutexattr_init, pthread_mutexattr_settype,
7365         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
7366         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
7367         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
7368         pthread_spin_trylock, pthread_spin_unlock): Likewise.
7369         * lib/sched.in.h (struct sched_param): Likewise.
7370         * lib/se-selinux.in.h (security_class_t, security_context_t,
7371         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
7372         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
7373         lsetfilecon, fsetfilecon, security_check_context,
7374         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
7375         Likewise.
7376         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
7377         Likewise.
7378         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
7379         _gl_function_taking_int_returning_void_t, union sigval,
7380         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
7381         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
7382         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
7383         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
7384         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
7385         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
7386         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
7387         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
7388         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
7389         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
7390         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
7391         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
7392         socklen_t, rpl_fd_isset): Likewise.
7393         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
7394         * lib/sys_time.in.h (struct timeval): Likewise.
7395         * lib/sys_times.in.h (struct tms): Likewise.
7396         * lib/sys_utsname.in.h (struct utsname):
7397         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
7398         * lib/unistd.in.h (getpagesize): Likewise.
7399         * lib/wchar.in.h (mbstate_t): Likewise.
7400         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
7401         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
7402         towlower, towupper): Likewise.
7403         Reported by Sam Steingold <sds@gnu.org>.
7404
7405 2011-02-05  Eric Blake  <eblake@redhat.com>
7406
7407         unsetenv: work around Haiku issues
7408         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
7409         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
7410
7411 2010-12-30  Bruce Korb  <bkorb@gnu.org>
7412
7413         libposix: avoid calling error() within libposix
7414         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
7415         is defined.
7416
7417 2011-02-05  Eric Blake  <eblake@redhat.com>
7418
7419         strerror_r-posix: port to cygwin
7420         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
7421         implementation.
7422         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
7423         * tests/test-strerror_r.c (main): Fix test.
7424         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
7425         issue.
7426
7427 2011-02-05  Bruno Haible  <bruno@clisp.org>
7428
7429         New module 'wmemchr'.
7430         * modules/wmemchr: New file.
7431         * lib/wchar.in.h (wmemchr): New declaration.
7432         * lib/wmemchr.c: New file.
7433         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
7434         * m4/wmemchr.m4: New file.
7435         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
7436         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
7437         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
7438         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
7439         * doc/posix-functions/wmemchr.texi: Mention the new module.
7440
7441 2011-02-04  Eric Blake  <eblake@redhat.com>
7442
7443         fdopendir: detect FreeBSD bug
7444         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
7445         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
7446
7447 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
7448
7449         stdbool: do not define HAVE_STDBOOL_H
7450         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
7451         AC_HEADER_STDBOOL.  All uses changed.  Do not define
7452         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
7453         imported from the latest Autoconf git.  It was motivated by Emacs,
7454         which uses gnulib but does not need HAVE_STDBOOL_H.
7455
7456 2011-02-04  Bruno Haible  <bruno@clisp.org>
7457
7458         wcsnrtombs: Prepare for new module wwcsnrtombs.
7459         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
7460         * lib/wcsnrtombs.c: Include it.
7461         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
7462
7463         wcsrtombs: Prepare for new module wwcsrtombs.
7464         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
7465         * lib/wcsrtombs.c: Include it.
7466         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
7467
7468         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
7469         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
7470         * lib/mbsnrtowcs.c: Include it.
7471         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
7472
7473         mbsrtowcs: Prepare for new module mbsrtowwcs.
7474         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
7475         * lib/mbsrtowcs.c: Include it.
7476         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
7477
7478 2011-02-04  Bruno Haible  <bruno@clisp.org>
7479
7480         vasnprintf: Reduce use of malloc for small format strings.
7481         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
7482         (arguments): Add room for the first 7 arguments.
7483         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
7484         (char_directives, u8_directives, u16_directives, u32_directives): Add
7485         room for the first 7 directives.
7486         * lib/printf-parse.c: Include <string.h>.
7487         (PRINTF_PARSE): Change memory handling code so that it uses the first
7488         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
7489         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
7490         Reported by Pádraig Brady <P@draigbrady.com>.
7491
7492 2011-01-31  Eric Blake  <eblake@redhat.com>
7493
7494         dup2: work around Haiku bug
7495         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
7496         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
7497         * doc/posix-functions/dup2.texi (dup2): Document the bug.
7498         * tests/test-dup2.c (main): Enhance test.
7499
7500 2011-01-31  Simon Josefsson  <simon@josefsson.org>
7501
7502         doc: off_t is not available in eglibc 2.11.2 stdio.h.
7503         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
7504         declared by eglibc 2.11.2.
7505         * lib/stdio.in.h: Likewise.
7506
7507 2011-01-31  Eric Blake  <eblake@redhat.com>
7508
7509         ignore-value: add missing test dependency
7510         * tests/test-ignore-value.c: Revert previous change; stdio.h
7511         provides off_t.
7512         * modules/ignore-value-tests (Depends-on): Add missing dependency.
7513
7514 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
7515
7516         mktime: clarify long_int width checking
7517         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
7518         the top level, to make it clearer that the assumption about
7519         long_int width is being checked.  See
7520         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
7521
7522 2011-01-30  Simon Josefsson  <simon@josefsson.org>
7523
7524         ignore-value: Fix self-test.
7525         * tests/test-ignore-value.c: Include sys/types.h for off_t.
7526
7527 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
7528
7529         TYPE_MAXIMUM: avoid theoretically undefined behavior
7530         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
7531         negative number, which the C Standard says has undefined behavior.
7532         In practice this is not a problem, but might as well do it by the book.
7533         Reported by Rich Felker and Eric Blake; see
7534         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
7535         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
7536         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
7537         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7538         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
7539         * m4/stdint.m4 (gl_STDINT_H): Likewise.
7540         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
7541
7542         mktime: #undef mktime before #defining it
7543         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
7544
7545         mktime: systematically normalize tm_isdst comparisons
7546         * lib/mktime.c (isdst_differ): New function.
7547         (__mktime_internal): Use it systematically for all isdst comparisons.
7548         This completes the fix for libc BZ #6723, and removes the need for
7549         normalizing tm_isdst.  See
7550         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
7551         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
7552
7553         mktime: fix some integer overflow issues and sidestep the rest
7554
7555         This was prompted by a bug report by Benjamin Lindner for MinGW
7556         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
7557         His bug is due to signed integer overflow (0 - INT_MIN), and I
7558         I scanned through mktime.c looking for other integer overflow
7559         problems, fixing all the bugs I found.
7560
7561         Although the C Standard says the resulting code is still not safe
7562         in the presence of integer overflow, in practice it should be good
7563         enough for all real-world two's-complement implementations, except
7564         for debugging environments that deliberately trap on integer
7565         overflow (e.g., gcc -ftrapv).
7566
7567         * lib/mktime.c (WRAPV): New macro.
7568         (SHR): Also check that long_int and time_t shift right in the
7569         usual way, before using the fast-but-unportable method.
7570         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
7571         used.  The code already assumed two's complement, so there's
7572         no need to test for alternatives.  All uses removed.
7573         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
7574         the C standard.  Problem reported by Rich Felker in
7575         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
7576         (twos_complement_arithmetic): Also check long_int and time_t.
7577         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
7578         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
7579         (__mktime_internal): Avoid integer overflow with unary subtraction
7580         in two instances where -1 - X is an adequate replacement for -X,
7581         since the calculations are approximate.
7582
7583 2011-01-29  Eric Blake  <eblake@redhat.com>
7584
7585         mktime: avoid infinite loop
7586         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
7587         type; behavior is still undefined but portable to all known targets.
7588         Reported by Rich Felker.
7589
7590 2011-01-29  Simon Josefsson  <simon@josefsson.org>
7591
7592         rename, unlink, same-inode: Relicense.
7593         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
7594         * modules/unlink (License): Likewise.
7595         * modules/same-inode (License): Likewise.
7596
7597 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
7598
7599         mktime: avoid problems on NetBSD 5 / i386
7600         * lib/mktime.c (long_int): New type.  This works around a problem
7601         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
7602         but time_t is 64 bits, and where I expect the existing code is
7603         wrong in some cases.
7604         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
7605         (ydhms_diff): Bring back the compile-time check for wide-enough
7606         year and yday.
7607
7608         mktime: fix misspelling in comment
7609         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
7610         This merges all recent glibc changes of importance.
7611
7612 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7613
7614         move-if-change: cope with concurrent mv of identical file.
7615         * build-aux/move-if-change (CMPPROG): Accept environment
7616         variable as an override for `cmp'.
7617         (usage): Document CMPPROG.
7618         Adjust comparison to drop stdout.  Cope with failure of mv if
7619         the target file exists and is identical to the source, for
7620         parallel builds.
7621         Report from H.J. Lu against binutils in PR binutils/12283.
7622
7623 2011-01-28  Bruce Korb  <bkorb@gnu.org>
7624
7625         * users.txt: Mention sharutils.
7626
7627 2011-01-28  Simon Josefsson  <simon@josefsson.org>
7628
7629         * users.txt: Mention OATH Toolkit.
7630
7631 2011-01-27  Bruno Haible  <bruno@clisp.org>
7632
7633         Prepare for supporting FreeBSD 10.
7634         * build-aux/config.libpath: Remove handling of freebsd1*.
7635
7636 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
7637
7638         Prepare for supporting FreeBSD 10.
7639         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
7640         match FreeBSD 10.0.
7641
7642 2011-01-27  Bruno Haible  <bruno@clisp.org>
7643
7644         vma-iter, get-rusage-as: Add OpenBSD support.
7645         * modules/vma-iter (configure.ac): Test for mquery.
7646         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
7647         * lib/vma-iter.c: Include <sys/mman.h>.
7648         (vma_iterate): Add an implementation based on mquery().
7649         * lib/resource-ext.h (get_rusage_as): Update comments.
7650         * lib/get-rusage-as.c: Likewise.
7651         * lib/get-rusage-data.c: Likewise.
7652
7653 2011-01-26  Karl Berry  <karl@gnu.org>
7654
7655         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
7656         variables to make it easier to override the makeinfo program used.
7657
7658 2011-01-26  Eric Blake  <eblake@redhat.com>
7659
7660         fcntl: work around Haiku F_DUPFD bugs
7661         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
7662         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
7663         cloexec bit on duplication.
7664         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
7665
7666 2011-01-26  Bruno Haible  <bruno@clisp.org>
7667
7668         Enable memory leak tests on AIX.
7669         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
7670         * tests/test-fprintf-posix3.c (main): Likewise.
7671
7672 2011-01-26  Bruno Haible  <bruno@clisp.org>
7673
7674         Tests for module 'get-rusage-data'.
7675         * modules/get-rusage-data-tests: New file.
7676         * tests/test-get-rusage-data.c: New file.
7677
7678         New module 'get-rusage-data'.
7679         * lib/resource-ext.h (get_rusage_data): New declaration.
7680         * lib/get-rusage-data.c: New file.
7681         * modules/get-rusage-data: New file.
7682
7683 2011-01-25  Bruno Haible  <bruno@clisp.org>
7684
7685         get-rusage-as: Allow for easier testing.
7686         * lib/resource-ext.h (get_rusage_as): Add comment.
7687         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
7688         (main): New function for interactive testing.
7689
7690 2011-01-25  Bruno Haible  <bruno@clisp.org>
7691
7692         vma-iter: Treat Haiku like BeOS.
7693         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
7694         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
7695
7696 2011-01-25  Eric Blake  <eblake@redhat.com>
7697
7698         c-stack: fix regression on cygwin when libsigsegv is present
7699         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
7700
7701 2011-01-24  Bruno Haible  <bruno@clisp.org>
7702
7703         vma-iter: Avoid empty intervals.
7704         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
7705         on an empty interval.
7706
7707 2011-01-24  Jim Meyering  <meyering@redhat.com>
7708
7709         u64: remove unnecessary #include
7710         * lib/u64.h: Don't include <stddef.h>.  It was not used.
7711
7712 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
7713
7714         Allow the user to avoid the HAVE_RAW_DECL_* macros.
7715         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
7716
7717 2011-01-23  Bruno Haible  <bruno@clisp.org>
7718
7719         New module 'vma-iter'.
7720         * lib/vma-iter.h: New file.
7721         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
7722         * modules/vma-iter: New file.
7723         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
7724         for get_rusage_as_via_iterator.
7725         (vma_iterate_callback): New function.
7726         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
7727         * modules/get-rusage-as (Depends-on): Add vma-iter.
7728
7729 2011-01-23  Bruno Haible  <bruno@clisp.org>
7730
7731         uninorm: Tweak includes.
7732         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
7733         Reported by Jim Meyering.
7734
7735 2011-01-23  Bruno Haible  <bruno@clisp.org>
7736
7737         get-rusage-as: Improve on NetBSD.
7738         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
7739         /proc, like on FreeBSD.
7740
7741 2011-01-23  Jim Meyering  <meyering@redhat.com>
7742
7743         xreadlink.h: remove unnecessary #include
7744         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
7745
7746         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
7747         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
7748
7749 2011-01-23  Bruno Haible  <bruno@clisp.org>
7750
7751         get-rusage-as: Fix bug.
7752         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
7753         original limit when aborting the first loop.
7754
7755 2011-01-23  Bruno Haible  <bruno@clisp.org>
7756
7757         wctype: Ensure valid C syntax.
7758         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
7759         unconditionally, instead of gl_NEXT_HEADERS conditionally.
7760
7761 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
7762
7763         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
7764         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
7765         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
7766         as they are needed only for configure's test case.
7767         This removes two unnecessary symbols from config.h.
7768
7769         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
7770         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
7771         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
7772         AC_CHECK_HEADERS_ONCE on a header that we also invoke
7773         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
7774         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
7775         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
7776         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
7777         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
7778         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
7779         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
7780         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
7781         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
7782         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
7783         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
7784         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
7785         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
7786         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
7787
7788 2011-01-21  Eric Blake  <eblake@redhat.com>
7789
7790         maintainer-makefile: work with older git for submodule check
7791         * top/maint.mk (public-submodule-commit): Rewrite to avoid
7792         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
7793         Reported by Matthias Bolte.
7794
7795         bootstrap: minor portability fixes
7796         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
7797         (usage): Omit leading capital and trailing . on help phrases, per
7798         GNU Coding Standards.
7799         (check_versions, top level): Prefix messages with script name.
7800
7801 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
7802
7803         bootstrap: support --no-git option
7804         * build-aux/bootstrap: Add --no-git option, to be used when
7805         --gnulib-srcdir points to the exact desired checkout.
7806
7807 2011-01-21  Eric Blake  <eblake@redhat.com>
7808
7809         strerror_r-posix: work with glibc 2.13
7810         * lib/strerror_r.c (strerror_r): Fix return type.
7811
7812 2011-01-21  Pádraig Brady  <P@draigBrady.com>
7813             Bruno Haible  <bruno@clisp.org>
7814
7815         uN_strstr: New unit tests.
7816         * modules/unistr/u8-strstr-tests: New file.
7817         * modules/unistr/u16-strstr-tests: New file.
7818         * modules/unistr/u32-strstr-tests: New file.
7819         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
7820         * tests/unistr/test-u8-strstr.c: New file.
7821         * tests/unistr/test-u16-strstr.c: New file.
7822         * tests/unistr/test-u32-strstr.c: New file.
7823
7824 2011-01-21  Pádraig Brady  <P@draigBrady.com>
7825             Bruno Haible  <bruno@clisp.org>
7826
7827         Make uN_strstr functions O(n) worst-case.
7828         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
7829         16-bit and 32-bit unit cases, use the unibyte algorithm from
7830         lib/mbsstr.c.
7831         * lib/unistr/u8-strstr.c: Include <string.h>.
7832         (UNIT_IS_UINT8_T): New macro.
7833         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
7834         (U_STRLEN, U_STRNLEN): New macros.
7835         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
7836         (U_STRLEN, U_STRNLEN): New macros.
7837         * modules/unistr/u8-strstr (Depends-on): Add strstr.
7838         (configure.ac): Update required libunistring version.
7839         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
7840         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
7841         malloca.
7842         (configure.ac): Update required libunistring version.
7843         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
7844         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
7845         malloca.
7846         (configure.ac): Update required libunistring version.
7847
7848 2011-01-21  Pádraig Brady  <P@draigBrady.com>
7849             Bruno Haible  <bruno@clisp.org>
7850
7851         Prepare for faster uN_strstr functions.
7852         * lib/str-kmp.h: Support definable UNITs.
7853         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
7854         needle_len argument.
7855         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
7856         * lib/mbscasestr.c (mbscasestr): Likewise.
7857
7858 2011-01-21  Pádraig Brady <P@draigBrady.com>
7859
7860         malloca-tests: make faster by unsetting MALLOC_PERTURB_
7861         * tests/test-malloca.c (main): Unset the environment variable
7862         to greatly speed up the test.
7863         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
7864         * modules/malloca-tests: Depend on unsetenv.
7865
7866 2011-01-21  Pádraig Brady <P@draigBrady.com>
7867
7868         ignore-value: remove stdint dependency
7869         * lib/ignore-value.h: Remove <stdint.h>
7870         * modules/ignore-value: Remove stdint dependency.
7871
7872 2011-01-21  Jim Meyering  <meyering@redhat.com>
7873
7874         maint.mk: adjust variable name to be consistent with other gl_ vars
7875         * top/maint.mk (gl_public_submodule_commit): Rename the variable
7876         to be lower case.
7877
7878 2011-01-20  Jim Meyering  <meyering@redhat.com>
7879
7880         maint.mk: make "check" depend on public-submodule-commit by default
7881         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
7882
7883 2011-01-20  Bruno Haible  <bruno@clisp.org>
7884
7885         mbfile, mbiter: Complete change from 2008-12-21.
7886         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
7887         * m4/mbiter.m4 (gl_MBITER): Likewise.
7888
7889 2011-01-20  Jim Meyering  <meyering@redhat.com>
7890
7891         init.sh: insert space between each function name and "()"
7892         * tests/init.sh: Make it a little easier to see that a function's
7893         name is "warn_", and not "warn" when looking at the first part of
7894         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
7895
7896 2011-01-20  Jim Meyering  <meyering@redhat.com>
7897
7898         mountlist: clean up code formatting
7899         * lib/mountlist.c (read_file_system_list): Split a long line,
7900         correct bracing style, use NULL in place of "(struct statfs *)0",
7901         don't parenthesize return value, add spaces around "=" and after
7902         ";-in-for-stmt".
7903
7904 2011-01-14  Markus Duft <mduft@gentoo.org>
7905
7906         mountlist: add support for Interix
7907         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
7908         Apply statvfs to all entries of /dev/fs.
7909         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
7910         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
7911
7912 2011-01-20  Jim Meyering  <meyering@redhat.com>
7913
7914         maint.mk: improve the public-submodule-commit rule
7915         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
7916         to suppress printing of its commands... unless V=1.
7917         Add git submodule's --quiet option to suppress printing of e.g.,
7918         "Entering gnulib" output.
7919         "cd" into $(srcdir) before running git submodule.
7920
7921 2011-01-20  Bruno Haible  <bruno@clisp.org>
7922
7923         include_next: Fix bug introduced on 2011-01-18.
7924         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
7925         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
7926         ac_cv_header_... variable if the second argument is not 'check'.
7927         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
7928         gl_NEXT_HEADERS_INTERNAL.
7929
7930 2011-01-20  Bruno Haible  <bruno@clisp.org>
7931
7932         Allow the user to avoid the GNULIB_TEST_* macros.
7933         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
7934         Suggested by Paul Eggert.
7935
7936 2011-01-14  Jim Meyering  <meyering@redhat.com>
7937
7938         bootstrap: avoid failure when there is no .gitmodules file
7939         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
7940         has been assigned to, even when its value is the empty string.
7941         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
7942         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
7943         Reported by John W. Eaton <jwe@gnu.org>.
7944
7945 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
7946
7947         assume <ctype.h>, ..., <time.h> exist
7948         For years gnulib has been assuming the existence of the headers
7949         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
7950         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
7951         them, since they don't appear to be needed.
7952         * README (Portability guidelines): Document this.
7953         * lib/flock.c: Assume <fcntl.h> exists.
7954         * lib/regex_internal.h: Assume <locale.h> exists.
7955         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
7956         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
7957         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
7958         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
7959         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
7960         * m4/regex.m4 (gl_REGEX): Likewise.
7961         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
7962         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
7963         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
7964         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
7965         * tests/test-argp.c: Likewise.
7966         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
7967
7968         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
7969         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
7970         AA_APPLE_UNIVERSAL_BUILD.  See
7971         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
7972         * NEWS: Document this.
7973
7974 2011-01-19  Eric Blake  <eblake@redhat.com>
7975
7976         c-stack: assume stack overflow if SA_SIGINFO unsupported
7977         * lib/c-stack.c (SIGACTION_WORKS): Rename...
7978         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
7979         sigaction will work.
7980         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
7981         behavior match Linux.
7982         * tests/test-c-stack.c (main): Prefer NULL for pointers.
7983
7984         stdbool-tests: accomodate Haiku
7985         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
7986
7987         binary-io: fix O_TEXT on Haiku
7988         * modules/binary-io (Depends-on): Add fcntl-h.
7989         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
7990         than blindly undefining O_TEXT.
7991         Reported by Scott McCreary.
7992
7993 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
7994
7995         include_next: do not check for standard headers like stddef.h
7996
7997         I found this problem when modifying Emacs to use gnulib.
7998         I noticed that it added HAVE_STDDEF_H to config.h, even though
7999         gnulib always assumes <stddef.h> exists as per README and this
8000         symbol is unnecessary.
8001         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
8002         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
8003         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
8004         faster for headers like stddef.h that are known to exist.
8005         (gl_CHECK_NEXT_HEADERS): Use it.
8006         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
8007         rather than gl_CHECK_NEXT_HEADERS.
8008         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
8009         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
8010
8011 2011-01-18  Eric Blake  <eblake@redhat.com>
8012
8013         ansi-c++-opt: skip C++ dependency style if C++ is unused
8014         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
8015         tests when we know C++ compilation is not desired.
8016         Reported by Scott McCreary.
8017
8018 2011-01-18  Bruno Haible  <bruno@clisp.org>
8019
8020         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
8021         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
8022         (main): Perform test also when getrlimit and setrlimit don't exist or
8023         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
8024         limiting the address space size using setrlimit, compare the address
8025         space size before and after the the test.
8026         * tests/test-dprintf-posix2.c: Likewise.
8027         * tests/test-fprintf-posix3.sh: Update skip messages.
8028         * tests/test-dprintf-posix2.sh: Likewise.
8029         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
8030         * modules/dprintf-posix-tests (Depends-on): Likewise.
8031         Reported by Bruce Korb <bkorb@gnu.org> and
8032         Gary V. Vaughan <gary@gnu.org>.
8033
8034 2011-01-18  Bruno Haible  <bruno@clisp.org>
8035
8036         get-rusage-as: Improvement for Cygwin.
8037         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
8038         areas that are merely reserved.
8039
8040 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
8041
8042         strftime: remove dependencies on multibyte modules
8043
8044         strftime depended on mbrlen, mbsinit, and wchar, but these modules
8045         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
8046         only if __osf__ is defined, and I suspect OSF doesn't need these
8047         other modules.  If my guess is wrong, we'll need to come up with a
8048         variant of strftime that doesn't need the multibyte modules.
8049
8050         I discovered this problem when attempting modify Emacs to use the
8051         strftime module.  With the previous gnulib, this caused Emacs to
8052         need 31 new files, ranging from lib/config.charset to
8053         m4/wint_t.m4.  This was overkill and I expect would be offputting
8054         to the Emacs maintainers.  After this change, only 6 new files are
8055         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
8056         stdbool.m4, and tm_gmtoff.m4.
8057
8058         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
8059         Suggested by Bruno Haible in
8060         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
8061         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
8062         and do not check for wchar.h.
8063         * modules/strftime (Files): Remove m4/mbstate_t.m4.
8064         (Depends-on): Remove mbrlen, mbsinit, wchar.
8065
8066 2011-01-18  Bruno Haible  <bruno@clisp.org>
8067
8068         Tests for module 'get-rusage-as'.
8069         * modules/get-rusage-as-tests: New file.
8070         * tests/test-get-rusage-as.c: New file.
8071
8072         New module 'get-rusage-as'.
8073         * modules/get-rusage-as: New file.
8074         * lib/resource-ext.h: New file.
8075         * lib/get-rusage-as.c: New file.
8076
8077 2011-01-17  Eric Blake  <eblake@redhat.com>
8078
8079         sigaction: relax license from LGPLv3+ to LGPLv2+
8080         * modules/sigaction (License): Relax to LGPLv2+.
8081
8082 2011-01-14  Bruno Haible  <bruno@clisp.org>
8083
8084         filemode: Make function declarations usable in C++ mode.
8085         * lib/filemode.h: Enclose function declarations in extern "C" block.
8086         Reported by John W. Eaton <jwe@gnu.org>.
8087
8088 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
8089
8090         save-cwd: no longer include "xgetcwd.h"
8091         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
8092         This avoids a compilation failure in projects that use save-cwd
8093         without also using the xgetcwd module.
8094
8095 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
8096
8097         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
8098         This is so that a program like Emacs, which needs only dtoastr,
8099         does not have to bother with distributing and compiling ftoastr
8100         and ldtoastr.
8101         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
8102         * modules/dtoastr, modules/ldtoastr: New files.
8103         * modules/ftoastr: Now works just for 'float'.
8104         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
8105         (Makefile.am): Remove ftoastr.h (not needed and no effect),
8106         dtoastr.c, ldtoastr.c.
8107
8108 2011-01-11  Jim Meyering  <meyering@redhat.com>
8109
8110         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
8111         There is no need to work around the lack of the fchdir function,
8112         since gnulib can now provide a replacement when required.
8113         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
8114         * modules/save-cwd (Depends-on): Add fchdir.
8115
8116 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
8117
8118         openat, save-cwd: avoid xmalloc
8119
8120         This removes a direct (but undocumented) dependency of openat on
8121         xalloc, along with an indirect dependency via save-cwd.  It also
8122         removes a dependency of save-cwd on xgetcwd, and thereby
8123         indirectly on xalloc.  This change causes the openat substitute
8124         to fall back on save_cwd when memory is tight, and for save_cwd to
8125         fail instead of dying when memory is tight, but that's good enough.
8126         Problem and initial idea for fix reported by Bastien Roucaries in
8127         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
8128
8129         * lib/openat-proc.c: Include stdlib.h (for malloc), not
8130         xalloc.h (for xmalloc).
8131         (openat_proc_name): Use malloc, not xmalloc.
8132         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
8133         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
8134
8135         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
8136         This avoids heap allocation for file names whose lengths are in
8137         the range 512..1023, with the upper bound increasing to at most
8138         4031 depending on the platform's PATH_MAX.  (We do not want
8139         pathmax.h here as it might supply a non-constant PATH_MAX.)
8140         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
8141         Perhaps they should be moved to malloca.h?
8142         (OPENAT_BUFFER_SIZE): Use them.
8143
8144 2011-01-10  Bruno Haible  <bruno@clisp.org>
8145
8146         doc: Update users.txt.
8147         * users.txt: Add recutils.
8148
8149 2011-01-09  Karl Berry  <karl@gnu.org>
8150
8151         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
8152
8153         * doc/configmake.texi: New file.
8154         * doc/gnulib.texi: Include it.
8155         * modules/configmake: Move documentation from here.
8156
8157 2011-01-09  Bruno Haible  <bruno@clisp.org>
8158
8159         Update to Unicode 6.0.0.
8160         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
8161         (get_lbp): Update for Unicode 6.0.0.
8162         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
8163         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
8164         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
8165         U+11001, U+11038..U+11046. Remove U+06DE.
8166         (uc_width): Fix bounds of planes.
8167         * tests/uniwidth/test-uc_width2.sh: Same updates as in
8168         lib/uniwidth/width.c.
8169         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
8170         trailing whitespace removed.
8171         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
8172         without comments, but with the original copyright notice.
8173         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
8174         * lib/unicase/ignorable.h: Likewise.
8175         * lib/unicase/tocasefold.h: Likewise.
8176         * lib/unicase/tolower.h: Likewise.
8177         * lib/unicase/totitle.h: Likewise.
8178         * lib/unicase/toupper.h: Likewise.
8179         * lib/unictype/bidi_of.h: Likewise.
8180         * lib/unictype/blocks.h: Likewise.
8181         * lib/unictype/categ_C.h: Likewise.
8182         * lib/unictype/categ_Cn.h: Likewise.
8183         * lib/unictype/categ_L.h: Likewise.
8184         * lib/unictype/categ_Ll.h: Likewise.
8185         * lib/unictype/categ_Lm.h: Likewise.
8186         * lib/unictype/categ_Lo.h: Likewise.
8187         * lib/unictype/categ_Lu.h: Likewise.
8188         * lib/unictype/categ_M.h: Likewise.
8189         * lib/unictype/categ_Mc.h: Likewise.
8190         * lib/unictype/categ_Me.h: Likewise.
8191         * lib/unictype/categ_Mn.h: Likewise.
8192         * lib/unictype/categ_N.h: Likewise.
8193         * lib/unictype/categ_Nd.h: Likewise.
8194         * lib/unictype/categ_No.h: Likewise.
8195         * lib/unictype/categ_P.h: Likewise.
8196         * lib/unictype/categ_Po.h: Likewise.
8197         * lib/unictype/categ_S.h: Likewise.
8198         * lib/unictype/categ_Sc.h: Likewise.
8199         * lib/unictype/categ_Sk.h: Likewise.
8200         * lib/unictype/categ_Sm.h: Likewise.
8201         * lib/unictype/categ_So.h: Likewise.
8202         * lib/unictype/categ_of.h: Likewise.
8203         * lib/unictype/combining.h: Likewise.
8204         * lib/unictype/ctype_alnum.h: Likewise.
8205         * lib/unictype/ctype_alpha.h: Likewise.
8206         * lib/unictype/ctype_graph.h: Likewise.
8207         * lib/unictype/ctype_lower.h: Likewise.
8208         * lib/unictype/ctype_print.h: Likewise.
8209         * lib/unictype/ctype_punct.h: Likewise.
8210         * lib/unictype/ctype_upper.h: Likewise.
8211         * lib/unictype/decdigit.h: Likewise.
8212         * lib/unictype/digit.h: Likewise.
8213         * lib/unictype/numeric.h: Likewise.
8214         * lib/unictype/pr_alphabetic.h: Likewise.
8215         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
8216         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
8217         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
8218         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
8219         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
8220         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
8221         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
8222         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
8223         * lib/unictype/pr_case_ignorable.h: Likewise.
8224         * lib/unictype/pr_cased.h: Likewise.
8225         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
8226         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
8227         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
8228         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
8229         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
8230         * lib/unictype/pr_combining.h: Likewise.
8231         * lib/unictype/pr_composite.h: Likewise.
8232         * lib/unictype/pr_currency_symbol.h: Likewise.
8233         * lib/unictype/pr_decimal_digit.h: Likewise.
8234         * lib/unictype/pr_deprecated.h: Likewise.
8235         * lib/unictype/pr_format_control.h: Likewise.
8236         * lib/unictype/pr_grapheme_base.h: Likewise.
8237         * lib/unictype/pr_grapheme_extend.h: Likewise.
8238         * lib/unictype/pr_grapheme_link.h: Likewise.
8239         * lib/unictype/pr_id_continue.h: Likewise.
8240         * lib/unictype/pr_id_start.h: Likewise.
8241         * lib/unictype/pr_ideographic.h: Likewise.
8242         * lib/unictype/pr_lowercase.h: Likewise.
8243         * lib/unictype/pr_math.h: Likewise.
8244         * lib/unictype/pr_numeric.h: Likewise.
8245         * lib/unictype/pr_other_alphabetic.h: Likewise.
8246         * lib/unictype/pr_other_id_continue.h: Likewise.
8247         * lib/unictype/pr_other_math.h: Likewise.
8248         * lib/unictype/pr_punctuation.h: Likewise.
8249         * lib/unictype/pr_sentence_terminal.h: Likewise.
8250         * lib/unictype/pr_terminal_punctuation.h: Likewise.
8251         * lib/unictype/pr_unassigned_code_value.h: Likewise.
8252         * lib/unictype/pr_unified_ideograph.h: Likewise.
8253         * lib/unictype/pr_uppercase.h: Likewise.
8254         * lib/unictype/pr_xid_continue.h: Likewise.
8255         * lib/unictype/pr_xid_start.h: Likewise.
8256         * lib/unictype/scripts.h: Likewise.
8257         * lib/unictype/scripts_byname.gperf: Likewise.
8258         * lib/unictype/sy_java_ident.h: Likewise.
8259         * lib/unigbrk/gbrkprop.h: Likewise.
8260         * lib/unilbrk/lbrkprop1.h: Likewise.
8261         * lib/unilbrk/lbrkprop2.h: Likewise.
8262         * lib/uninorm/decomposition-table2.h: Likewise.
8263         * lib/uniwbrk/wbrkprop.h: Likewise.
8264         * tests/unicase/test-cased.c: Likewise.
8265         * tests/unicase/test-ignorable.c: Likewise.
8266         * tests/unicase/test-uc_tolower.c: Likewise.
8267         * tests/unicase/test-uc_totitle.c: Likewise.
8268         * tests/unicase/test-uc_toupper.c: Likewise.
8269         * tests/unictype/test-categ_C.c: Likewise.
8270         * tests/unictype/test-categ_Cn.c: Likewise.
8271         * tests/unictype/test-categ_L.c: Likewise.
8272         * tests/unictype/test-categ_Ll.c: Likewise.
8273         * tests/unictype/test-categ_Lm.c: Likewise.
8274         * tests/unictype/test-categ_Lo.c: Likewise.
8275         * tests/unictype/test-categ_Lu.c: Likewise.
8276         * tests/unictype/test-categ_M.c: Likewise.
8277         * tests/unictype/test-categ_Mc.c: Likewise.
8278         * tests/unictype/test-categ_Me.c: Likewise.
8279         * tests/unictype/test-categ_Mn.c: Likewise.
8280         * tests/unictype/test-categ_N.c: Likewise.
8281         * tests/unictype/test-categ_Nd.c: Likewise.
8282         * tests/unictype/test-categ_No.c: Likewise.
8283         * tests/unictype/test-categ_P.c: Likewise.
8284         * tests/unictype/test-categ_Po.c: Likewise.
8285         * tests/unictype/test-categ_S.c: Likewise.
8286         * tests/unictype/test-categ_Sc.c: Likewise.
8287         * tests/unictype/test-categ_Sk.c: Likewise.
8288         * tests/unictype/test-categ_Sm.c: Likewise.
8289         * tests/unictype/test-categ_So.c: Likewise.
8290         * tests/unictype/test-ctype_alnum.c: Likewise.
8291         * tests/unictype/test-ctype_alpha.c: Likewise.
8292         * tests/unictype/test-ctype_graph.c: Likewise.
8293         * tests/unictype/test-ctype_lower.c: Likewise.
8294         * tests/unictype/test-ctype_print.c: Likewise.
8295         * tests/unictype/test-ctype_punct.c: Likewise.
8296         * tests/unictype/test-ctype_upper.c: Likewise.
8297         * tests/unictype/test-decdigit.h: Likewise.
8298         * tests/unictype/test-digit.h: Likewise.
8299         * tests/unictype/test-numeric.h: Likewise.
8300         * tests/unictype/test-pr_alphabetic.c: Likewise.
8301         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
8302         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
8303         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
8304         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
8305         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
8306         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
8307         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
8308         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
8309         * tests/unictype/test-pr_case_ignorable.c: Likewise.
8310         * tests/unictype/test-pr_cased.c: Likewise.
8311         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
8312         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
8313         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
8314         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
8315         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
8316         * tests/unictype/test-pr_combining.c: Likewise.
8317         * tests/unictype/test-pr_composite.c: Likewise.
8318         * tests/unictype/test-pr_currency_symbol.c: Likewise.
8319         * tests/unictype/test-pr_decimal_digit.c: Likewise.
8320         * tests/unictype/test-pr_deprecated.c: Likewise.
8321         * tests/unictype/test-pr_format_control.c: Likewise.
8322         * tests/unictype/test-pr_grapheme_base.c: Likewise.
8323         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
8324         * tests/unictype/test-pr_grapheme_link.c: Likewise.
8325         * tests/unictype/test-pr_id_continue.c: Likewise.
8326         * tests/unictype/test-pr_id_start.c: Likewise.
8327         * tests/unictype/test-pr_ideographic.c: Likewise.
8328         * tests/unictype/test-pr_lowercase.c: Likewise.
8329         * tests/unictype/test-pr_math.c: Likewise.
8330         * tests/unictype/test-pr_numeric.c: Likewise.
8331         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
8332         * tests/unictype/test-pr_other_id_continue.c: Likewise.
8333         * tests/unictype/test-pr_other_math.c: Likewise.
8334         * tests/unictype/test-pr_punctuation.c: Likewise.
8335         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
8336         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
8337         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
8338         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
8339         * tests/unictype/test-pr_uppercase.c: Likewise.
8340         * tests/unictype/test-pr_xid_continue.c: Likewise.
8341         * tests/unictype/test-pr_xid_start.c: Likewise.
8342         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
8343         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
8344         changes.
8345         * lib/unictype/categ_Cc.h: Likewise.
8346         * lib/unictype/categ_Cf.h: Likewise.
8347         * lib/unictype/categ_Co.h: Likewise.
8348         * lib/unictype/categ_Cs.h: Likewise.
8349         * lib/unictype/categ_Lt.h: Likewise.
8350         * lib/unictype/categ_Nl.h: Likewise.
8351         * lib/unictype/categ_Pc.h: Likewise.
8352         * lib/unictype/categ_Pd.h: Likewise.
8353         * lib/unictype/categ_Pe.h: Likewise.
8354         * lib/unictype/categ_Pf.h: Likewise.
8355         * lib/unictype/categ_Pi.h: Likewise.
8356         * lib/unictype/categ_Ps.h: Likewise.
8357         * lib/unictype/categ_Z.h: Likewise.
8358         * lib/unictype/categ_Zl.h: Likewise.
8359         * lib/unictype/categ_Zp.h: Likewise.
8360         * lib/unictype/categ_Zs.h: Likewise.
8361         * lib/unictype/ctype_blank.h: Likewise.
8362         * lib/unictype/ctype_cntrl.h: Likewise.
8363         * lib/unictype/ctype_digit.h: Likewise.
8364         * lib/unictype/ctype_space.h: Likewise.
8365         * lib/unictype/ctype_xdigit.h: Likewise.
8366         * lib/unictype/mirror.h: Likewise.
8367         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
8368         * lib/unictype/pr_bidi_block_separator.h: Likewise.
8369         * lib/unictype/pr_bidi_common_separator.h: Likewise.
8370         * lib/unictype/pr_bidi_control.h: Likewise.
8371         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
8372         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
8373         * lib/unictype/pr_bidi_european_digit.h: Likewise.
8374         * lib/unictype/pr_bidi_pdf.h: Likewise.
8375         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
8376         * lib/unictype/pr_bidi_whitespace.h: Likewise.
8377         * lib/unictype/pr_dash.h: Likewise.
8378         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
8379         * lib/unictype/pr_diacritic.h: Likewise.
8380         * lib/unictype/pr_extender.h: Likewise.
8381         * lib/unictype/pr_hex_digit.h: Likewise.
8382         * lib/unictype/pr_hyphen.h: Likewise.
8383         * lib/unictype/pr_ids_binary_operator.h: Likewise.
8384         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
8385         * lib/unictype/pr_ignorable_control.h: Likewise.
8386         * lib/unictype/pr_iso_control.h: Likewise.
8387         * lib/unictype/pr_join_control.h: Likewise.
8388         * lib/unictype/pr_left_of_pair.h: Likewise.
8389         * lib/unictype/pr_line_separator.h: Likewise.
8390         * lib/unictype/pr_logical_order_exception.h: Likewise.
8391         * lib/unictype/pr_non_break.h: Likewise.
8392         * lib/unictype/pr_not_a_character.h: Likewise.
8393         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
8394         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
8395         * lib/unictype/pr_other_id_start.h: Likewise.
8396         * lib/unictype/pr_other_lowercase.h: Likewise.
8397         * lib/unictype/pr_other_uppercase.h: Likewise.
8398         * lib/unictype/pr_paired_punctuation.h: Likewise.
8399         * lib/unictype/pr_paragraph_separator.h: Likewise.
8400         * lib/unictype/pr_pattern_syntax.h: Likewise.
8401         * lib/unictype/pr_pattern_white_space.h: Likewise.
8402         * lib/unictype/pr_private_use.h: Likewise.
8403         * lib/unictype/pr_quotation_mark.h: Likewise.
8404         * lib/unictype/pr_radical.h: Likewise.
8405         * lib/unictype/pr_soft_dotted.h: Likewise.
8406         * lib/unictype/pr_space.h: Likewise.
8407         * lib/unictype/pr_titlecase.h: Likewise.
8408         * lib/unictype/pr_variation_selector.h: Likewise.
8409         * lib/unictype/pr_white_space.h: Likewise.
8410         * lib/unictype/pr_zero_width.h: Likewise.
8411         * lib/unictype/sy_c_ident.h: Likewise.
8412         * lib/unictype/sy_c_whitespace.h: Likewise.
8413         * lib/unictype/sy_java_whitespace.h: Likewise.
8414         * lib/uninorm/composition-table.gperf: Likewise.
8415         * lib/uninorm/decomposition-table1.h: Likewise.
8416         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
8417         LB8.
8418         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
8419         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
8420         * modules/unictype/*: Bump version number of expected libunistring
8421         version.
8422
8423 2011-01-09  Bruno Haible  <bruno@clisp.org>
8424
8425         Update to Unicode 5.2.0.
8426         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
8427         trailing whitespace removed.
8428
8429 2011-01-09  Bruno Haible  <bruno@clisp.org>
8430
8431         New Unicode character properties, from Unicode 5.2.0.
8432         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
8433         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
8434         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
8435         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
8436         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
8437         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
8438         uc_is_property_cased, uc_is_property_case_ignorable,
8439         uc_is_property_changes_when_lowercased,
8440         uc_is_property_changes_when_uppercased,
8441         uc_is_property_changes_when_titlecased,
8442         uc_is_property_changes_when_casefolded,
8443         uc_is_property_changes_when_casemapped): New declarations.
8444         * lib/unictype/pr_byname.gperf: Add the new properties.
8445         * modules/unictype/property-byname (Depends-on): Depend on the new
8446         properties modules.
8447         * modules/unictype/property-all (Depends-on): Likewise.
8448         * MODULES.html.sh (Unicode string functions): Add
8449         unictype/property-case-ignorable, unictype/property-cased,
8450         unictype/property-changes-when-casefolded,
8451         unictype/property-changes-when-casemapped,
8452         unictype/property-changes-when-lowercased,
8453         unictype/property-changes-when-titlecased,
8454         unictype/property-changes-when-uppercased.
8455
8456         New module 'unictype/property-changes-when-casemapped'.
8457         * modules/unictype/property-changes-when-casemapped: New file.
8458         * lib/unictype/pr_changes_when_casemapped.c: New file.
8459         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
8460         generated by gen-uni-tables.
8461         * modules/unictype/property-changes-when-casemapped-tests: New file.
8462         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
8463         automatically generated by gen-uni-tables.
8464
8465         New module 'unictype/property-changes-when-casefolded'.
8466         * modules/unictype/property-changes-when-casefolded: New file.
8467         * lib/unictype/pr_changes_when_casefolded.c: New file.
8468         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
8469         generated by gen-uni-tables.
8470         * modules/unictype/property-changes-when-casefolded-tests: New file.
8471         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
8472         automatically generated by gen-uni-tables.
8473
8474         New module 'unictype/property-changes-when-titlecased'.
8475         * modules/unictype/property-changes-when-titlecased: New file.
8476         * lib/unictype/pr_changes_when_titlecased.c: New file.
8477         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
8478         generated by gen-uni-tables.
8479         * modules/unictype/property-changes-when-titlecased-tests: New file.
8480         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
8481         automatically generated by gen-uni-tables.
8482
8483         New module 'unictype/property-changes-when-uppercased'.
8484         * modules/unictype/property-changes-when-uppercased: New file.
8485         * lib/unictype/pr_changes_when_uppercased.c: New file.
8486         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
8487         generated by gen-uni-tables.
8488         * modules/unictype/property-changes-when-uppercased-tests: New file.
8489         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
8490         automatically generated by gen-uni-tables.
8491
8492         New module 'unictype/property-changes-when-lowercased'.
8493         * modules/unictype/property-changes-when-lowercased: New file.
8494         * lib/unictype/pr_changes_when_lowercased.c: New file.
8495         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
8496         generated by gen-uni-tables.
8497         * modules/unictype/property-changes-when-lowercased-tests: New file.
8498         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
8499         automatically generated by gen-uni-tables.
8500
8501         New module 'unictype/property-case-ignorable'.
8502         * modules/unictype/property-case-ignorable: New file.
8503         * lib/unictype/pr_case_ignorable.c: New file.
8504         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
8505         by gen-uni-tables.
8506         * modules/unictype/property-case-ignorable-tests: New file.
8507         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
8508         generated by gen-uni-tables.
8509
8510         New module 'unictype/property-cased'.
8511         * modules/unictype/property-cased: New file.
8512         * lib/unictype/pr_cased.c: New file.
8513         * lib/unictype/pr_cased.h: New file, automatically generated by
8514         gen-uni-tables.
8515         * modules/unictype/property-cased-tests: New file.
8516         * tests/unictype/test-pr_cased.c: New file, automatically generated by
8517         gen-uni-tables.
8518
8519 2011-01-09  Bruno Haible  <bruno@clisp.org>
8520
8521         Update to Unicode 5.2.0.
8522         * lib/gen-uni-tables.c (output_predicate, output_category,
8523         output_combclass, output_bidi_category, output_decimal_digit_test,
8524         output_decimal_digit, output_digit_test, output_digit,
8525         output_numeric_test, output_numeric, output_mirror, output_scripts,
8526         output_scripts_byname, output_blocks, output_ident_category): Fix
8527         comment header.
8528         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
8529         get_wbp.
8530         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
8531         items.
8532         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
8533         Changes_When_Lowercased, Changes_When_Uppercased,
8534         Changes_When_Titlecased, Changes_When_Casefolded,
8535         Changes_When_Casemapped.
8536         (is_property_alphabetic, is_property_default_ignorable_code_point):
8537         Update for Unicode 5.2.0.
8538         (is_property_cased, is_property_case_ignorable,
8539         is_property_changes_when_lowercased,
8540         is_property_changes_when_uppercased,
8541         is_property_changes_when_titlecased,
8542         is_property_changes_when_casefolded,
8543         is_property_changes_when_casemapped): New functions.
8544         (output_properties): Output also the properties cased, case_ignorable,
8545         changes_when_lowercased, changes_when_uppercased,
8546         changes_when_titlecased, changes_when_casefolded,
8547         changes_when_casemapped.
8548         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
8549         Unicode TR#11 revision 17 -> 19.
8550         (LBP_CP): New enumeration value.
8551         (LBP_*): Adjust values accordingly.
8552         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
8553         TR#14 revision 22 -> 24.
8554         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
8555         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
8556         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
8557         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
8558         is_WBP_MIDLETTER.
8559         (output_composition_tables): Allow for 24 bits instead of 16 bits in
8560         the code1 and code2 of each composition rule.
8561         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
8562         * lib/unicase/ignorable.h: Likewise.
8563         * lib/unicase/tocasefold.h: Likewise.
8564         * lib/unicase/tolower.h: Likewise.
8565         * lib/unicase/totitle.h: Likewise.
8566         * lib/unicase/toupper.h: Likewise.
8567         * lib/unictype/bidi_of.h: Likewise.
8568         * lib/unictype/blocks.h: Likewise.
8569         * lib/unictype/categ_C.h: Likewise.
8570         * lib/unictype/categ_Cf.h: Likewise.
8571         * lib/unictype/categ_Cn.h: Likewise.
8572         * lib/unictype/categ_L.h: Likewise.
8573         * lib/unictype/categ_Ll.h: Likewise.
8574         * lib/unictype/categ_Lm.h: Likewise.
8575         * lib/unictype/categ_Lo.h: Likewise.
8576         * lib/unictype/categ_Lu.h: Likewise.
8577         * lib/unictype/categ_M.h: Likewise.
8578         * lib/unictype/categ_Mc.h: Likewise.
8579         * lib/unictype/categ_Mn.h: Likewise.
8580         * lib/unictype/categ_N.h: Likewise.
8581         * lib/unictype/categ_Nd.h: Likewise.
8582         * lib/unictype/categ_Nl.h: Likewise.
8583         * lib/unictype/categ_No.h: Likewise.
8584         * lib/unictype/categ_P.h: Likewise.
8585         * lib/unictype/categ_Pd.h: Likewise.
8586         * lib/unictype/categ_Po.h: Likewise.
8587         * lib/unictype/categ_S.h: Likewise.
8588         * lib/unictype/categ_Sc.h: Likewise.
8589         * lib/unictype/categ_So.h: Likewise.
8590         * lib/unictype/categ_of.h: Likewise.
8591         * lib/unictype/combining.h: Likewise.
8592         * lib/unictype/ctype_alnum.h: Likewise.
8593         * lib/unictype/ctype_alpha.h: Likewise.
8594         * lib/unictype/ctype_graph.h: Likewise.
8595         * lib/unictype/ctype_lower.h: Likewise.
8596         * lib/unictype/ctype_print.h: Likewise.
8597         * lib/unictype/ctype_punct.h: Likewise.
8598         * lib/unictype/ctype_upper.h: Likewise.
8599         * lib/unictype/decdigit.h: Likewise.
8600         * lib/unictype/digit.h: Likewise.
8601         * lib/unictype/numeric.h: Likewise.
8602         * lib/unictype/pr_alphabetic.h: Likewise.
8603         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
8604         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
8605         * lib/unictype/pr_bidi_european_digit.h: Likewise.
8606         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
8607         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
8608         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
8609         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
8610         * lib/unictype/pr_combining.h: Likewise.
8611         * lib/unictype/pr_composite.h: Likewise.
8612         * lib/unictype/pr_currency_symbol.h: Likewise.
8613         * lib/unictype/pr_dash.h: Likewise.
8614         * lib/unictype/pr_decimal_digit.h: Likewise.
8615         * lib/unictype/pr_deprecated.h: Likewise.
8616         * lib/unictype/pr_diacritic.h: Likewise.
8617         * lib/unictype/pr_extender.h: Likewise.
8618         * lib/unictype/pr_grapheme_base.h: Likewise.
8619         * lib/unictype/pr_grapheme_extend.h: Likewise.
8620         * lib/unictype/pr_grapheme_link.h: Likewise.
8621         * lib/unictype/pr_id_continue.h: Likewise.
8622         * lib/unictype/pr_id_start.h: Likewise.
8623         * lib/unictype/pr_ideographic.h: Likewise.
8624         * lib/unictype/pr_ignorable_control.h: Likewise.
8625         * lib/unictype/pr_logical_order_exception.h: Likewise.
8626         * lib/unictype/pr_lowercase.h: Likewise.
8627         * lib/unictype/pr_numeric.h: Likewise.
8628         * lib/unictype/pr_other_alphabetic.h: Likewise.
8629         * lib/unictype/pr_punctuation.h: Likewise.
8630         * lib/unictype/pr_sentence_terminal.h: Likewise.
8631         * lib/unictype/pr_terminal_punctuation.h: Likewise.
8632         * lib/unictype/pr_unassigned_code_value.h: Likewise.
8633         * lib/unictype/pr_unified_ideograph.h: Likewise.
8634         * lib/unictype/pr_uppercase.h: Likewise.
8635         * lib/unictype/pr_xid_continue.h: Likewise.
8636         * lib/unictype/pr_xid_start.h: Likewise.
8637         * lib/unictype/pr_zero_width.h: Likewise.
8638         * lib/unictype/scripts.h: Likewise.
8639         * lib/unictype/scripts_byname.gperf: Likewise.
8640         * lib/unictype/sy_java_ident.h: Likewise.
8641         * lib/unigbrk/gbrkprop.h: Likewise.
8642         * lib/unilbrk/lbrkprop1.h: Likewise.
8643         * lib/unilbrk/lbrkprop2.h: Likewise.
8644         * lib/unilbrk/lbrktables.h: Likewise.
8645         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
8646         LBP_CP. Implement rule LB30.
8647         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
8648         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
8649         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
8650         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
8651         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
8652         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
8653         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
8654         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
8655         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
8656         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
8657         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
8658         bits instead of 16 bits in the code1 and code2 of each composition
8659         rule.
8660         (uc_composition): Update for Unicode 5.2.0.
8661         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
8662         * lib/uninorm/decomposition-table2.h: Likewise.
8663         * lib/uniwbrk/wbrkprop.h: Likewise.
8664         * tests/unicase/test-cased.c: Likewise.
8665         * tests/unicase/test-ignorable.c: Likewise.
8666         * tests/unicase/test-uc_tolower.c: Likewise.
8667         * tests/unicase/test-uc_totitle.c: Likewise.
8668         * tests/unicase/test-uc_toupper.c: Likewise.
8669         * tests/unictype/test-categ_C.c: Likewise.
8670         * tests/unictype/test-categ_Cf.c: Likewise.
8671         * tests/unictype/test-categ_Cn.c: Likewise.
8672         * tests/unictype/test-categ_L.c: Likewise.
8673         * tests/unictype/test-categ_Ll.c: Likewise.
8674         * tests/unictype/test-categ_Lm.c: Likewise.
8675         * tests/unictype/test-categ_Lo.c: Likewise.
8676         * tests/unictype/test-categ_Lu.c: Likewise.
8677         * tests/unictype/test-categ_M.c: Likewise.
8678         * tests/unictype/test-categ_Mc.c: Likewise.
8679         * tests/unictype/test-categ_Mn.c: Likewise.
8680         * tests/unictype/test-categ_N.c: Likewise.
8681         * tests/unictype/test-categ_Nd.c: Likewise.
8682         * tests/unictype/test-categ_Nl.c: Likewise.
8683         * tests/unictype/test-categ_No.c: Likewise.
8684         * tests/unictype/test-categ_P.c: Likewise.
8685         * tests/unictype/test-categ_Pd.c: Likewise.
8686         * tests/unictype/test-categ_Po.c: Likewise.
8687         * tests/unictype/test-categ_S.c: Likewise.
8688         * tests/unictype/test-categ_Sc.c: Likewise.
8689         * tests/unictype/test-categ_So.c: Likewise.
8690         * tests/unictype/test-ctype_alnum.c: Likewise.
8691         * tests/unictype/test-ctype_alpha.c: Likewise.
8692         * tests/unictype/test-ctype_graph.c: Likewise.
8693         * tests/unictype/test-ctype_lower.c: Likewise.
8694         * tests/unictype/test-ctype_print.c: Likewise.
8695         * tests/unictype/test-ctype_punct.c: Likewise.
8696         * tests/unictype/test-ctype_upper.c: Likewise.
8697         * tests/unictype/test-decdigit.h: Likewise.
8698         * tests/unictype/test-digit.h: Likewise.
8699         * tests/unictype/test-numeric.h: Likewise.
8700         * tests/unictype/test-pr_alphabetic.c: Likewise.
8701         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
8702         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
8703         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
8704         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
8705         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
8706         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
8707         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
8708         * tests/unictype/test-pr_combining.c: Likewise.
8709         * tests/unictype/test-pr_composite.c: Likewise.
8710         * tests/unictype/test-pr_currency_symbol.c: Likewise.
8711         * tests/unictype/test-pr_dash.c: Likewise.
8712         * tests/unictype/test-pr_decimal_digit.c: Likewise.
8713         * tests/unictype/test-pr_deprecated.c: Likewise.
8714         * tests/unictype/test-pr_diacritic.c: Likewise.
8715         * tests/unictype/test-pr_extender.c: Likewise.
8716         * tests/unictype/test-pr_grapheme_base.c: Likewise.
8717         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
8718         * tests/unictype/test-pr_grapheme_link.c: Likewise.
8719         * tests/unictype/test-pr_id_continue.c: Likewise.
8720         * tests/unictype/test-pr_id_start.c: Likewise.
8721         * tests/unictype/test-pr_ideographic.c: Likewise.
8722         * tests/unictype/test-pr_ignorable_control.c: Likewise.
8723         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
8724         * tests/unictype/test-pr_lowercase.c: Likewise.
8725         * tests/unictype/test-pr_numeric.c: Likewise.
8726         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
8727         * tests/unictype/test-pr_punctuation.c: Likewise.
8728         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
8729         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
8730         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
8731         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
8732         * tests/unictype/test-pr_uppercase.c: Likewise.
8733         * tests/unictype/test-pr_xid_continue.c: Likewise.
8734         * tests/unictype/test-pr_xid_start.c: Likewise.
8735         * tests/unictype/test-pr_zero_width.c: Likewise.
8736         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
8737         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
8738         changed behaviour: line breaking is now disallowed between a letter
8739         or '=' and '('.
8740         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
8741         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
8742         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
8743         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
8744         * tests/uniwidth/test-uc_width2.sh: Same updates as in
8745         lib/uniwidth/width.c.
8746         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
8747         without comments, but with the original copyright notice.
8748         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
8749         changes.
8750         * lib/unictype/categ_Cc.h: Likewise.
8751         * lib/unictype/categ_Co.h: Likewise.
8752         * lib/unictype/categ_Cs.h: Likewise.
8753         * lib/unictype/categ_Lt.h: Likewise.
8754         * lib/unictype/categ_Me.h: Likewise.
8755         * lib/unictype/categ_Pc.h: Likewise.
8756         * lib/unictype/categ_Pe.h: Likewise.
8757         * lib/unictype/categ_Pf.h: Likewise.
8758         * lib/unictype/categ_Pi.h: Likewise.
8759         * lib/unictype/categ_Ps.h: Likewise.
8760         * lib/unictype/categ_Sk.h: Likewise.
8761         * lib/unictype/categ_Sm.h: Likewise.
8762         * lib/unictype/categ_Z.h: Likewise.
8763         * lib/unictype/categ_Zl.h: Likewise.
8764         * lib/unictype/categ_Zp.h: Likewise.
8765         * lib/unictype/categ_Zs.h: Likewise.
8766         * lib/unictype/ctype_blank.h: Likewise.
8767         * lib/unictype/ctype_cntrl.h: Likewise.
8768         * lib/unictype/ctype_digit.h: Likewise.
8769         * lib/unictype/ctype_space.h: Likewise.
8770         * lib/unictype/ctype_xdigit.h: Likewise.
8771         * lib/unictype/mirror.h: Likewise.
8772         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
8773         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
8774         * lib/unictype/pr_bidi_block_separator.h: Likewise.
8775         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
8776         * lib/unictype/pr_bidi_common_separator.h: Likewise.
8777         * lib/unictype/pr_bidi_control.h: Likewise.
8778         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
8779         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
8780         * lib/unictype/pr_bidi_pdf.h: Likewise.
8781         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
8782         * lib/unictype/pr_bidi_whitespace.h: Likewise.
8783         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
8784         * lib/unictype/pr_format_control.h: Likewise.
8785         * lib/unictype/pr_hex_digit.h: Likewise.
8786         * lib/unictype/pr_hyphen.h: Likewise.
8787         * lib/unictype/pr_ids_binary_operator.h: Likewise.
8788         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
8789         * lib/unictype/pr_iso_control.h: Likewise.
8790         * lib/unictype/pr_join_control.h: Likewise.
8791         * lib/unictype/pr_left_of_pair.h: Likewise.
8792         * lib/unictype/pr_line_separator.h: Likewise.
8793         * lib/unictype/pr_math.h: Likewise.
8794         * lib/unictype/pr_non_break.h: Likewise.
8795         * lib/unictype/pr_not_a_character.h: Likewise.
8796         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
8797         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
8798         * lib/unictype/pr_other_id_continue.h: Likewise.
8799         * lib/unictype/pr_other_id_start.h: Likewise.
8800         * lib/unictype/pr_other_lowercase.h: Likewise.
8801         * lib/unictype/pr_other_math.h: Likewise.
8802         * lib/unictype/pr_other_uppercase.h: Likewise.
8803         * lib/unictype/pr_paired_punctuation.h: Likewise.
8804         * lib/unictype/pr_paragraph_separator.h: Likewise.
8805         * lib/unictype/pr_pattern_syntax.h: Likewise.
8806         * lib/unictype/pr_pattern_white_space.h: Likewise.
8807         * lib/unictype/pr_private_use.h: Likewise.
8808         * lib/unictype/pr_quotation_mark.h: Likewise.
8809         * lib/unictype/pr_radical.h: Likewise.
8810         * lib/unictype/pr_soft_dotted.h: Likewise.
8811         * lib/unictype/pr_space.h: Likewise.
8812         * lib/unictype/pr_titlecase.h: Likewise.
8813         * lib/unictype/pr_variation_selector.h: Likewise.
8814         * lib/unictype/pr_white_space.h: Likewise.
8815         * lib/unictype/sy_c_ident.h: Likewise.
8816         * lib/unictype/sy_c_whitespace.h: Likewise.
8817         * lib/unictype/sy_java_whitespace.h: Likewise.
8818         * modules/uni*/*: Bump version number of expected libunistring version.
8819         Reported by Simon Josefsson.
8820
8821 2011-01-09  Karl Heuer  <kwzh@gnu.org>
8822
8823         useless-if-before-free: fix typo in --help and make the internal,
8824         automatic version date update process work once again.
8825         --help output contained a NUL character instead of the
8826         backslash-zero that was intended.  Also, the "must lie within
8827         the first 8 lines" line is on line 9, and hence not getting
8828         automatically updated.
8829         * build-aux/useless-if-before-free: Fix the former by adding a
8830         backslash, and the latter by condensing the three lines of what-it-does
8831         to a single line, leaving one line of slack for the future.
8832
8833 2011-01-09  Bruno Haible  <bruno@clisp.org>
8834
8835         uniwidth/width: Fix width of U+1D173..U+1D17A.
8836         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
8837         symbolic_width, output_width_property_test): New functions.
8838         (main): Invoke output_nonspacing_property, output_width_property_test.
8839         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
8840         U+1D173..U+1D17A.
8841         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
8842         1.
8843         * modules/uniwidth/*: Bump version number of expected libunistring
8844         version.
8845         * modules/unilbrk/*: Likewise.
8846
8847 2011-01-08  Bruno Haible  <bruno@clisp.org>
8848
8849         uninorm tests: Preserve copyright of Unicode data file.
8850         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
8851         Mention modifications.
8852
8853 2011-01-08  Bruno Haible  <bruno@clisp.org>
8854
8855         gen-uni-tables: Prepare for Unicode 5.2.0.
8856         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
8857         (debug_output_lbp, output_lbp): Update.
8858
8859 2011-01-08  Bruno Haible  <bruno@clisp.org>
8860
8861         unilbrk: Clarify gen-uni-tables.c code.
8862         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
8863         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
8864         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
8865
8866 2011-01-07  Bruno Haible  <bruno@clisp.org>
8867
8868         strtod: Restore errno when successfully parsing Infinity or NaN.
8869         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
8870         restore the original errno.
8871
8872 2011-01-07  Bruno Haible  <bruno@clisp.org>
8873
8874         remove test: Avoid failure on HP-UX 11.
8875         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
8876
8877 2011-01-07  Bruno Haible  <bruno@clisp.org>
8878
8879         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
8880         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
8881         error code.
8882
8883 2011-01-07  Pádraig Brady <P@draigBrady.com>
8884
8885         ignore-value: fixup comments, and add Eric Blake
8886         as an author since he rewrote the macros.
8887         * lib/ignore-value.h (ignore_value):  State that
8888         we now support aggregates.  Also specify exactly
8889         when the GCC warn_unused_result feature was added.
8890
8891 2011-01-06  Eric Blake  <eblake@redhat.com>
8892
8893         ignore-value: support aggregate types
8894         * lib/ignore-value.h (ignore_value): Provide separate gcc
8895         definition.
8896         * modules/ignore-value-tests: New test module.
8897         * tests/test-ignore-value.c: New test.
8898
8899         maint.mk: improve sc_prohibit_strcmp regex
8900         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
8901         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
8902         definition of STRNEQ.
8903
8904         signal: work around Haiku issue with SIGBUS
8905         * lib/siglist.h: Add comment.
8906         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
8907         strsignal's favoring of SIGSEGV.
8908         * tests/test-signal.c (main): Avoid test failure.
8909         * doc/posix-headers/signal.texi (signal.h): Document the issue.
8910         Reported by Scott McCreary.
8911
8912         maint.mk: add pre-release check to ensure submodule commits are public
8913         * top/maint.mk (public-submodule-commit): New rule.
8914         (submodule-checks): New variable.
8915         (alpha beta stable): Depend on the variable.
8916
8917 2011-01-05  Pádraig Brady <P@draigBrady.com>
8918         and Jim Meyering  <meyering@redhat.com>
8919
8920         ignore-value: make ignore_value more generic; deprecate ignore_ptr
8921         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
8922         (ATTRIBUTE_DEPRECATED): Define.
8923         (_ignore_case): New function.
8924         (ignore_value): New macro, to replace the old function.
8925         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
8926         * modules/ignore-value (Depends-on): Add stdint.
8927
8928 2011-01-04  Eric Blake  <eblake@redhat.com>
8929
8930         doc: regenerate INSTALL
8931         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
8932         @firstparagraphindent support, now that autoconf dropped it.
8933         (INSTALL_PRELUDE): Reinstate old macro.
8934         * doc/install.texi: Resync from autoconf.
8935         * doc/INSTALL: Reflect recent autoconf update.
8936         * doc/INSTALL.ISO: Likewise.
8937         * doc/INSTALL.UTF-8: Likewise.
8938         Reported by Karl Berry.
8939
8940 2011-01-04  Bruce Korb  <address@hidden>
8941
8942         git-version-gen: avoid a sub-shell
8943         * build-aux/git-version-gen: Redirect stderr in `...` via
8944         "exec 2>...", rather than via an added sub-shell.
8945
8946 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
8947
8948         git-version-gen: use (...) rather than sh -c '...'
8949         * build-aux/git-version-gen: Rather than hard-coding a shell's name
8950         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
8951
8952 2011-01-03  Jim Meyering  <meyering@redhat.com>
8953
8954         git-version-gen: convert leading TABs to spaces
8955         * build-aux/git-version-gen: Expand leading TABs.
8956
8957         git-version-gen: handle failed "git rev-list"
8958         * build-aux/git-version-gen: Rather than leaking a "fatal" error
8959         from git and proceeding as if it had succeeded but printed no SHA1
8960         checksums, suppress the diagnostic and handle the failure.
8961         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
8962
8963         git-version-gen: include command name in one more diagnostic
8964         * build-aux/git-version-gen: When the required .tarball-version file
8965         was missing or unreadable, you might see the diagnostic from "cat",
8966         but no trace of the name of the invoking script.  Now, you still see
8967         the diagnostic from cat, but also get one from "git-version-gen: ".
8968         Inspired by a patch from Bruce Korb.
8969
8970         update-copyright: adjust test to match changed code
8971         * tests/test-update-copyright.sh: Change test's expected output
8972         to match new actual output.
8973
8974 2011-01-02  Bruno Haible  <bruno@clisp.org>
8975
8976         getlogin_r: Avoid test failure on HP-UX 11.
8977         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
8978         ERANGE when the second argument is zero.
8979         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
8980         portability problem.
8981
8982 2011-01-02  Bruce Korb  <bkorb@gnu.org>
8983
8984         * build-aux/update-copyright: doc Simon's changes
8985
8986 2011-01-02  Simon Josefsson  <simon@josefsson.org>
8987
8988         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
8989         environment variable.
8990
8991 2011-01-02  Bruno Haible  <bruno@clisp.org>
8992
8993         unigbrk: Avoid gcc warnings.
8994         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
8995         unused variable.
8996         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
8997         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
8998         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
8999         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
9000         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
9001         Change type of first argument to 'const char *'.
9002         (main): Remove unused variable.
9003         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
9004         type of first argument to 'const char *'.
9005         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
9006         Likewise.
9007         (main): Change type of variable 's'.
9008         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
9009         to 'int'.
9010
9011 2011-01-02  Bruno Haible  <bruno@clisp.org>
9012
9013         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
9014         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
9015         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
9016         bug.
9017         * lib/pwrite.c: Undo 2010-12-31 patch.
9018         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
9019
9020 2011-01-02  Bruno Haible  <bruno@clisp.org>
9021
9022         pread: Fix test whether it works.
9023         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
9024
9025 2011-01-02  Bruno Haible  <bruno@clisp.org>
9026
9027         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
9028         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
9029         ends in "6". Don't require a specific month name. Try also the locale
9030         names found on HP-UX 11 and Solaris 7.
9031
9032 2011-01-02  Bruno Haible  <bruno@clisp.org>
9033
9034         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
9035         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
9036         C linkage.
9037         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
9038
9039 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
9040
9041         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
9042         for consistency, since the "cluster" term is not used elsewhere.
9043         * lib/unigbrk.in.h: Update name.
9044         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
9045         * lib/unigbrk/u16-grapheme-next.c: Update name.
9046         * lib/unigbrk/u16-grapheme-prev.c: Update name.
9047         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
9048         * lib/unigbrk/u32-grapheme-next.c: Update name.
9049         * lib/unigbrk/u32-grapheme-prev.c: Update name.
9050         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
9051         * lib/unigbrk/u8-grapheme-next.c: Update name.
9052         * lib/unigbrk/u8-grapheme-prev.c: Update name.
9053         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
9054         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
9055         Suggested by Bruno Haible.
9056
9057 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
9058
9059         Remove module 'u8-grapheme-len' as too redundant with
9060         'u8-grapheme-next'.
9061         * modules/unigbrk/u8-grapheme-len: Delete file.
9062         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
9063         * lib/unigbrk.in.h: Remove prototype for deleted function.
9064         * lib/unigbrk/u8-grapheme-len.c: Delete file.
9065         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
9066
9067         Remove module 'u16-grapheme-len' as too redundant with
9068         'u16-grapheme-next'.
9069         * modules/unigbrk/u16-grapheme-len: Delete file.
9070         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
9071         * lib/unigbrk.in.h: Remove prototype for deleted function.
9072         * lib/unigbrk/u16-grapheme-len.c: Delete file.
9073         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
9074
9075         Remove module 'u32-grapheme-len' as too redundant with
9076         'u32-grapheme-next'.
9077         * modules/unigbrk/u32-grapheme-len: Delete file.
9078         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
9079         * lib/unigbrk.in.h: Remove prototype for deleted function.
9080         * lib/unigbrk/u32-grapheme-len.c: Delete file.
9081         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
9082
9083         Suggested by Bruno Haible.
9084
9085 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
9086
9087         * unigbrk.in.h: Fix typo: "ben" => "been".
9088         Reported by Bruno Haible.
9089
9090 2011-01-01  Jim Meyering  <meyering@redhat.com>
9091
9092         maint: update almost all copyright ranges to include 2011
9093         Run the new "make update-copyright" rule.
9094
9095 2011-01-01  Jim Meyering  <meyering@redhat.com>
9096
9097         maint: update-copyright: exempt doc/INSTALL*
9098         * Makefile (update-copyright): Also exclude doc/INSTALL*,
9099         since they are generated.  Suggested by Bruno Haible.
9100
9101 2011-01-01  Jim Meyering  <meyering@redhat.com>
9102
9103         maint: refine the update-copyright rule
9104         * Makefile (update-copyright): Also exclude any file that includes
9105         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
9106         code that merely generates the comment.
9107
9108 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
9109
9110         New module 'u8-grapheme-len'.
9111         * modules/unigbrk/u8-grapheme-len: New file.
9112         * modules/unigbrk/u8-grapheme-len-tests: New file.
9113         * lib/unigbrk.in.h: Add prototype for new function.
9114         * lib/unigbrk/u8-grapheme-len.c: New file.
9115         * tests/unigbrk/test-u8-grapheme-len.c: New file.
9116
9117         New module 'u16-grapheme-len'.
9118         * modules/unigbrk/u16-grapheme-len: New file.
9119         * modules/unigbrk/u16-grapheme-len-tests: New file.
9120         * lib/unigbrk.in.h: Add prototype for new function.
9121         * lib/unigbrk/u16-grapheme-len.c: New file.
9122         * tests/unigbrk/test-u16-grapheme-len.c: New file.
9123
9124         New module 'u32-grapheme-len'.
9125         * modules/unigbrk/u32-grapheme-len: New file.
9126         * modules/unigbrk/u32-grapheme-len-tests: New file.
9127         * lib/unigbrk.in.h: Add prototype for new function.
9128         * lib/unigbrk/u32-grapheme-len.c: New file.
9129         * tests/unigbrk/test-u32-grapheme-len.c: New file.
9130
9131         New module 'u8-grapheme-next'.
9132         * modules/unigbrk/u8-grapheme-next: New file.
9133         * modules/unigbrk/u8-grapheme-next-tests: New file.
9134         * lib/unigbrk.in.h: Add prototype for new function.
9135         * lib/unigbrk/u8-grapheme-next.c: New file.
9136         * tests/unigbrk/test-u8-grapheme-next.c: New file.
9137
9138         New module 'u16-grapheme-next'.
9139         * modules/unigbrk/u16-grapheme-next: New file.
9140         * modules/unigbrk/u16-grapheme-next-tests: New file.
9141         * lib/unigbrk.in.h: Add prototype for new function.
9142         * lib/unigbrk/u16-grapheme-next.c: New file.
9143         * tests/unigbrk/test-u16-grapheme-next.c: New file.
9144
9145         New module 'u32-grapheme-next'.
9146         * modules/unigbrk/u32-grapheme-next: New file.
9147         * modules/unigbrk/u32-grapheme-next-tests: New file.
9148         * lib/unigbrk.in.h: Add prototype for new function.
9149         * lib/unigbrk/u32-grapheme-next.c: New file.
9150         * tests/unigbrk/test-u32-grapheme-next.c: New file.
9151
9152         New module 'u8-grapheme-prev'.
9153         * modules/unigbrk/u8-grapheme-prev: New file.
9154         * modules/unigbrk/u8-grapheme-prev-tests: New file.
9155         * lib/unigbrk.in.h: Add prototype for new function.
9156         * lib/unigbrk/u8-grapheme-prev.c: New file.
9157         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
9158
9159         New module 'u16-grapheme-prev'.
9160         * modules/unigbrk/u16-grapheme-prev: New file.
9161         * modules/unigbrk/u16-grapheme-prev-tests: New file.
9162         * lib/unigbrk.in.h: Add prototype for new function.
9163         * lib/unigbrk/u16-grapheme-prev.c: New file.
9164         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
9165
9166         New module 'u32-grapheme-prev'.
9167         * modules/unigbrk/u32-grapheme-prev: New file.
9168         * modules/unigbrk/u32-grapheme-prev-tests: New file.
9169         * lib/unigbrk.in.h: Add prototype for new function.
9170         * lib/unigbrk/u32-grapheme-prev.c: New file.
9171         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
9172
9173         New module 'u8-grapheme-breaks'.
9174         * modules/unigbrk/u8-grapheme-breaks: New file.
9175         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
9176         * lib/unigbrk.in.h: Add prototype for new function.
9177         * lib/unigbrk/u8-grapheme-breaks.c: New file.
9178         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
9179
9180         New module 'u16-grapheme-breaks'.
9181         * modules/unigbrk/u16-grapheme-breaks: New file.
9182         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
9183         * lib/unigbrk.in.h: Add prototype for new function.
9184         * lib/unigbrk/u16-grapheme-breaks.c: New file.
9185         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
9186
9187         New module 'u32-grapheme-breaks'.
9188         * modules/unigbrk/u32-grapheme-breaks: New file.
9189         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
9190         * lib/unigbrk.in.h: Add prototype for new function.
9191         * lib/unigbrk/u32-grapheme-breaks.c: New file.
9192         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
9193
9194         New module 'ulc-grapheme-breaks'.
9195         * modules/unigbrk/ulc-grapheme-breaks: New file.
9196         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
9197         * m4/locale-ar.m4: New file.
9198         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
9199         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
9200         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
9201
9202 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
9203
9204         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
9205         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
9206         modified how this file was generated before I initially submitted
9207         the module, but failed to regenerate it.  This meant that several
9208         of the level2 entries were wrong.
9209         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
9210         Remove the division-by-2 that is folded into the table now that
9211         gbrkprop.h has been regenerated properly.  Now -1 entries are
9212         handled correctly.
9213
9214         New module 'unigbrk/uc-gbrk-prop-tests'.
9215         * modules/unigbrk/uc-gbrk-prop-tests: New file.
9216         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
9217         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
9218         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
9219
9220 2011-01-01  Bruno Haible  <bruno@clisp.org>
9221
9222         Avoid use of hexadecimal escapes.
9223         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
9224         instead of hexadecimal escapes.
9225
9226 2011-01-01  Jim Meyering  <meyering@redhat.com>
9227
9228         maint: new rule to update copyright year ranges
9229         * Makefile (update-copyright): New rule.
9230
9231         maint: indent with TABs in Makefile
9232         * Makefile: Expand leading sequences of spaces to TABs
9233
9234         version-etc: update the copyright year it reports
9235         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
9236
9237 2010-12-31  Bruno Haible  <bruno@clisp.org>
9238
9239         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
9240         * lib/isfinite.c (zerof, zerod, zerol): New variables.
9241         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
9242         zero.
9243
9244 2010-12-31  Bruno Haible  <bruno@clisp.org>
9245
9246         pwrite: Work around HP-UX 11.11 bug.
9247         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
9248         works and set REPLACE_PWRITE if not.
9249         * lib/pwrite.c (pwrite): Add an implementation that uses the system
9250         function.
9251         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
9252
9253 2010-12-31  Bruno Haible  <bruno@clisp.org>
9254
9255         pread: Work around HP-UX 11 bugs.
9256         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
9257         and set REPLACE_PREAD if not.
9258         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
9259
9260 2010-12-31  Eric Blake  <eblake@redhat.com>
9261
9262         nl_langinfo: fix YESEXPR on Irix 6.5
9263         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
9264         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
9265         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
9266         it.
9267
9268 2010-12-31  Bruno Haible  <bruno@clisp.org>
9269
9270         iconv: Document HP-UX 11 bug.
9271         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
9272
9273 2010-12-31  Bruno Haible  <bruno@clisp.org>
9274
9275         ldexpl: Fix link error on HP-UX 11.
9276         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
9277         LDEXPL_LIBM, using $ISNANL_LIBM.
9278
9279 2010-12-31  Eric Blake  <eblake@redhat.com>
9280
9281         ftello: avoid compilation failure with SunStudio c89
9282         * lib/ftello.c (ftello): Use lseek, not llseek.
9283
9284         tests: avoid failing coreutils tests on cygwin
9285         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
9286         (create_exe_shims_): Return 0 when skipping.
9287
9288 2010-12-31  Bruno Haible  <bruno@clisp.org>
9289
9290         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
9291         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
9292
9293 2010-12-31  Bruno Haible  <bruno@clisp.org>
9294
9295         waitpid: Fix link error in C++ mode.
9296         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
9297
9298 2010-12-31  Bruno Haible  <bruno@clisp.org>
9299
9300         isnan: Use GCC built-ins when possible.
9301         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
9302         __builtin_isnan.
9303         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
9304         (isnan): Define using GCC built-ins for GCC >= 4.0.
9305
9306 2010-12-31  Bruno Haible  <bruno@clisp.org>
9307
9308         isnand: Fix mistake.
9309         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
9310         __builtin_isnand.
9311
9312 2010-12-31  Bruno Haible  <bruno@clisp.org>
9313
9314         open: Avoid C++ error on HP-UX 11.
9315         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
9316
9317 2010-12-31  Bruno Haible  <bruno@clisp.org>
9318
9319         time_r: Add missing declarations on HP-UX 11.
9320         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
9321         instead of HAVE_LOCALTIME_R.
9322         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
9323         HAVE_LOCALTIME_R always.
9324         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
9325         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
9326         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
9327         HAVE_LOCALTIME_R.
9328         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
9329         * doc/posix-functions/localtime_r.texi: Likewise.
9330
9331 2010-12-29  Eric Blake  <eblake@redhat.com>
9332
9333         mountlist: tweak previous commit
9334         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
9335         Reported by Paul Eggert.
9336
9337         mountlist: fix local drive detection on cygwin
9338         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
9339         that works for cygwin.
9340
9341 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
9342
9343         ftoastr, snprintf: ftoastr + snprintf module
9344         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
9345         since the snprintf module now should be good enough here.
9346         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
9347         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
9348         and gl_MODULE_INDICATOR([snprintf]), but the former enables
9349         GNULIB_SNPRINTF only for the test directory, and the latter
9350         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
9351         seems to suffice by itself.
9352
9353 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
9354
9355         alloca: one step towards thread-safety
9356         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
9357         need for a static variable.  All callers changed.  This does not
9358         make the alloca replacement thread-safe, but it's one step.
9359
9360         tests: minor indenting change
9361         * tests/init.sh: Sync from coreutils housekeeping patch
9362         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
9363         to keep lines within 80 columns.
9364
9365 2010-12-28  Jim Meyering  <meyering@redhat.com>
9366
9367         regex: don't infloop on persistent failing calloc
9368         * lib/regexec.c (build_trtable): Return failure indication upon
9369         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
9370         In glibc, this was fixed for version 2.13:
9371         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
9372
9373 2010-12-28  Bruno Haible  <bruno@clisp.org>
9374             Paul Eggert <eggert@cs.ucla.edu>
9375
9376         linkat: Make implementation robust against system behaviour variations.
9377         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
9378         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
9379         way, and to -2 if it needs a generic runtime test.
9380         * lib/linkat.c (solaris_optimized_link_immediate,
9381         solaris_optimized_link_follow): New functions.
9382         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
9383         (check_same_link): Use it.
9384
9385 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
9386
9387         New module 'unigbrk/base'.
9388         * modules/unigbrk/base: New file.
9389         * lib/unigbrk.in.h: New file.
9390
9391         New module 'unigbrk/uc-gbrk-prop'.
9392         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
9393         * modules/unigbrk/uc-gbrk-prop: New file.
9394         * lib/unigbrk/gbrkprop.h: New file.
9395         * lib/unigbrk/uc-gbrk-prop.c: New file.
9396
9397         New module 'unigbrk/uc-is-grapheme-break'.
9398         * modules/unigbrk/uc-is-grapheme-break: New file.
9399         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
9400         * lib/unigbrk/uc-is-grapheme-break.c: New file.
9401         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
9402         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
9403         * tests/unigbrk/GraphemeBreakTest.txt: New file.
9404
9405         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
9406
9407 2010-12-27  Bruno Haible  <bruno@clisp.org>
9408
9409         linkat test: Avoid failure on Solaris 11 2010-11.
9410         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
9411
9412 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
9413
9414         utimens: work around glibc rounding bug on more platforms
9415         * lib/utimens.c (fdutimens): Work around rounding bug even if
9416         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
9417         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
9418
9419 2010-12-27  Bruno Haible  <bruno@clisp.org>
9420
9421         select tests: Improve comments.
9422         * tests/test-select.c (do_select): Add comments.
9423
9424 2010-12-27  Bruno Haible  <bruno@clisp.org>
9425
9426         select tests: Safer way of handling timeout.
9427         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
9428         at every invocation.
9429
9430 2010-12-27  Bruno Haible  <bruno@clisp.org>
9431
9432         select tests: Use 'bool' where appropriate.
9433         * tests/test-select.c (connect_to_socket): Change argument type to
9434         'bool'.
9435
9436 2010-12-27  Bruno Haible  <bruno@clisp.org>
9437
9438         select tests: Use existing modules.
9439         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
9440         (configure.ac): Don't test for unistd.h.
9441         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
9442         declared in <unistd.h>.
9443
9444 2010-12-27  Bruno Haible  <bruno@clisp.org>
9445
9446         mbrtowc: Work around a Solaris 7 bug.
9447         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
9448         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
9449         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
9450         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
9451         MBRTOWC_NULL_ARG1_BUG.
9452         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
9453         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
9454         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
9455         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
9456
9457 2010-12-27  Jim Meyering  <meyering@redhat.com>
9458
9459         read-file.c: tweak syntax
9460         * lib/read-file.c (fread_file): Remove space after "*" in function
9461         definitions.
9462
9463 2010-12-27  Bruno Haible  <bruno@clisp.org>
9464
9465         times test: Avoid gcc warnings on OSF/1.
9466         * tests/test-times.c (main): Cast printf arguments from clock_t to
9467         'long int'.
9468
9469 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
9470
9471         utimens: work around glibc rounding bug on older Linux kernels
9472         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
9473         on Linux with a glibc whose utimes might not work, then work
9474         around a longstanding glibc bug involving rounding rather than
9475         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
9476         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
9477
9478 2010-12-26  Bruno Haible  <bruno@clisp.org>
9479
9480         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
9481         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
9482         _GL_CXXALIAS_SYS.
9483         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9484
9485 2010-12-26  Bruno Haible  <bruno@clisp.org>
9486
9487         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
9488         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
9489         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
9490         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
9491         looking for the declaration.
9492         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
9493         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
9494         problem.
9495         * doc/posix-functions/inet_pton.texi: Likewise.
9496
9497 2010-12-26  Bruno Haible  <bruno@clisp.org>
9498
9499         arpa_inet: Use the common idioms with C++ support.
9500         * lib/arpa_inet.in.h: Include c++defs.h.
9501         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
9502         support.
9503         * modules/arpa_inet (Depends-on): Add c++defs.
9504         (Makefile.am): Substitute the contents of c++defs.h.
9505         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
9506         * modules/arpa_inet-c++-tests: New file.
9507         * tests/test-arpa_inet-c++.cc: New file.
9508
9509 2010-12-25  Bruno Haible  <bruno@clisp.org>
9510
9511         Fix more C++ link errors on Solaris 8.
9512         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
9513         $(LIB_EACCESS).
9514         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
9515         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
9516         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
9517         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
9518         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
9519
9520 2010-12-25  Bruno Haible  <bruno@clisp.org>
9521
9522         printf-posix: Fix link error when a non-GCC compiler is used.
9523         * lib/stdio.in.h (printf): When not using GCC, override printf
9524         correctly.
9525         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9526
9527 2010-12-25  Bruno Haible  <bruno@clisp.org>
9528
9529         strerror_r-posix: Update doc.
9530         * doc/posix-functions/strerror_r.texi: Update doc about the return
9531         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
9532
9533 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
9534
9535         utimens: simplify the logic of the previous change
9536         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
9537         This should not affect whether the test succeeds or fails.
9538
9539         utimens: configure better on hosts with NFS clock skew
9540         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
9541         uses the clock of the local host.  It might use the clock of the
9542         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
9543         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
9544
9545 2010-12-25  Bruno Haible  <bruno@clisp.org>
9546
9547         ptsname test: Avoid failure on Solaris.
9548         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
9549         open a pseudo-terminal; don't use BSD-style ptys.
9550         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
9551
9552 2010-12-25  Bruno Haible  <bruno@clisp.org>
9553
9554         ptsname: Avoid ERANGE failure on some systems.
9555         * lib/ptsname.c (buffer): Increase size.
9556
9557 2010-12-25  Bruno Haible  <bruno@clisp.org>
9558
9559         rename, renameat: Avoid test failures at NFS mounted locations.
9560         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
9561         so that subsequent mkdir calls succeed.
9562
9563 2010-12-25  Bruno Haible  <bruno@clisp.org>
9564
9565         iswblank: Fix C++ link error on Solaris 8.
9566         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
9567         _GL_FUNCDECL_SYS.
9568
9569 2010-12-25  Bruno Haible  <bruno@clisp.org>
9570
9571         unistd: Fix C++ link error on Solaris 8.
9572         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
9573
9574 2010-12-25  Bruno Haible  <bruno@clisp.org>
9575
9576         readlink doc: Mention an old glibc bug.
9577         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
9578
9579 2010-12-25  Bruno Haible  <bruno@clisp.org>
9580
9581         fcntl-h: Fix for use of C++ on glibc systems.
9582         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
9583         also on glibc systems in C++ mode.
9584         Reported by Gary V. Vaughan <gary@gnu.org>.
9585
9586 2010-12-25  Bruno Haible  <bruno@clisp.org>
9587
9588         roundl-ieee: Make it work on OSF/1 5.1 with cc.
9589         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
9590
9591 2010-12-25  Bruno Haible  <bruno@clisp.org>
9592
9593         truncl-ieee: Make it work on OSF/1 5.1 with cc.
9594         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
9595         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
9596         test whether truncl works according to ISO C 99 with IEC 60559.
9597         * m4/truncl-ieee.m4: New file.
9598         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
9599         m4/signbit.m4.
9600         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
9601
9602 2010-12-25  Bruno Haible  <bruno@clisp.org>
9603
9604         ceill-ieee: Make it work on OSF/1 5.1 with cc.
9605         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
9606         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
9607         test whether ceill works according to ISO C 99 with IEC 60559.
9608         * m4/ceill-ieee.m4: New file.
9609         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
9610         m4/signbit.m4.
9611         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
9612
9613 2010-12-25  Bruno Haible  <bruno@clisp.org>
9614
9615         Ensure all prerequisites of <wchar.h> are included.
9616         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
9617         before <wchar.h>.
9618         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
9619         gl_MBRLEN_NUL_RETVAL): Likewise.
9620         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
9621         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
9622         AC_FUNC_MBRTOWC): Likewise.
9623         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
9624         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
9625         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
9626         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
9627         Likewise.
9628         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
9629         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
9630         (gl_WCHAR_H): Improve comments.
9631         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
9632
9633 2010-12-25  Bruno Haible  <bruno@clisp.org>
9634
9635         strtok_r: Fix C syntax error in autoconf macro.
9636         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
9637         characters in test program.
9638
9639 2010-12-24  Bruno Haible  <bruno@clisp.org>
9640
9641         ceil, trunc, round: Fix gcc warnings.
9642         * lib/ceil.c (MIN): Undefine before redefining.
9643         * lib/trunc.c (MIN): Likewise.
9644         * lib/round.c (MIN): Likewise.
9645         Include <math.h> first.
9646
9647 2010-12-24  Bruno Haible  <bruno@clisp.org>
9648
9649         select tests: Avoid failures on OSF/1 5.1.
9650         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
9651         failure of closing the last socket; it may fail with ECONNRESET.
9652
9653 2010-12-24  Eric Blake  <eblake@redhat.com>
9654
9655         stdint: avoid HP-UX 10.20 preprocessor bug
9656         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
9657         than #if.
9658         * tests/test-floor2.c (main): Likewise.
9659         Reported by Peter O'Gorman.
9660
9661         pipe: make obsoletion transition easier
9662         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
9663         * modules/pipe (Files): Include revived file.
9664         (Include): Drop reference, to mirror getdate's behavior.
9665
9666 2010-12-24  Bruno Haible  <bruno@clisp.org>
9667
9668         sys_socket: Hide mismatch of declarations on NonStop Kernel.
9669         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
9670         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
9671         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9672
9673 2010-12-24  Bruno Haible  <bruno@clisp.org>
9674
9675         gethostname: Ensure declaration on NonStop Kernel.
9676         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
9677         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9678
9679 2010-12-24  Bruno Haible  <bruno@clisp.org>
9680
9681         sys_select: Ensure all necessary types on NonStop Kernel.
9682         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
9683         include <sys/time.h>.
9684         * doc/posix-headers/sys_select.texi: Mention that it's missing on
9685         NonStop Kernel.
9686         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9687
9688 2010-12-24  Bruno Haible  <bruno@clisp.org>
9689
9690         sys_select: Remove unneeded include.
9691         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
9692         have <sys/select.h>.
9693
9694 2010-12-24  Bruno Haible  <bruno@clisp.org>
9695
9696         gethostname: Provide a fallback for HOST_NAME_MAX.
9697         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
9698         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
9699         instead.
9700         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9701
9702 2010-12-24  Bruno Haible  <bruno@clisp.org>
9703
9704         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
9705         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
9706         (SA_RESTART): Likewise.
9707         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9708
9709 2010-12-24  Bruno Haible  <bruno@clisp.org>
9710
9711         signal: Define NSIG.
9712         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
9713         * tests/test-signal.c (nsig): New variable.
9714         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9715
9716 2010-12-24  Bruno Haible  <bruno@clisp.org>
9717
9718         rename, renameat: Avoid test failures on OSF/1 5.1.
9719         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
9720         alternative error codes.
9721         * tests/test-renameat.c (main): Likewise.
9722
9723 2010-12-24  Bruno Haible  <bruno@clisp.org>
9724
9725         *printf: Detect large precisions bug on Solaris 10/SPARC.
9726         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
9727         by Paul Eggert.
9728         * tests/test-snprintf-posix.h (test_function): Add this test code here
9729         too.
9730         * tests/test-sprintf-posix.h (test_function): Likewise.
9731         * tests/test-vasnprintf-posix.c (test_function): Likewise.
9732         * tests/test-vasprintf-posix.c (test_function): Likewise.
9733         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
9734         around by gnulib.
9735         * doc/posix-functions/printf.texi: Likewise.
9736         * doc/posix-functions/snprintf.texi: Likewise.
9737         * doc/posix-functions/sprintf.texi: Likewise.
9738         * doc/posix-functions/vfprintf.texi: Likewise.
9739         * doc/posix-functions/vprintf.texi: Likewise.
9740         * doc/posix-functions/vsnprintf.texi: Likewise.
9741         * doc/posix-functions/vsprintf.texi: Likewise.
9742         * doc/posix-functions/dprintf.texi: Undo last commit.
9743         * doc/posix-functions/vdprintf.texi: Likewise.
9744
9745 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
9746
9747         tests: port test-fdutimensat.c to Solaris 8
9748         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
9749         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
9750         On Solaris 8, it fails with errno == ENOSYS, because there is no
9751         futimens (so it can't use the fd), and there is no lutimens (so it
9752         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
9753
9754         vsnprintf: make more consistent with snprintf; doc fixes
9755
9756         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
9757         the byte count return problem was promoted from the snprintf-posix
9758         to the snprintf module.
9759         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
9760         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
9761         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
9762         * tests/test-snprintf.c (main): Check the byte count returned.
9763         * tests/test-vsnprintf.c (main): Likewise.
9764
9765 2010-12-23  Eric Blake  <eblake@redhat.com>
9766
9767         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
9768         * modules/sigpipe (License): Relax license.
9769
9770 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
9771
9772         doc: document Solaris printf bug with large float precisions
9773         * doc/posix-functions/dprintf.texi (dprintf):
9774         * doc/posix-functions/fprintf.texi (fprintf):
9775         * doc/posix-functions/printf.texi (printf):
9776         * doc/posix-functions/snprintf.texi (snprintf):
9777         * doc/posix-functions/sprintf.texi (sprintf):
9778         * doc/posix-functions/vdprintf.texi (vdprintf):
9779         * doc/posix-functions/vfprintf.texi (vfprintf):
9780         * doc/posix-functions/vprintf.texi (vprintf):
9781         * doc/posix-functions/vsnprintf.texi (vsnprintf):
9782         * doc/posix-functions/vsprintf.texi (vsprintf):
9783         Mention that these functions mishandle large floating point
9784         precisions on Solaris 10.  The same bug is also present in Solaris
9785         8, and I assume earlier.  This causes "cd gnulib-tests; make
9786         check" to fail on Solaris 8 (and I assume, later) when building
9787         the latest coreutils, in test-vasprintf-posix's call to
9788         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
9789         the wide flavors (e.g., wprintf) so this patch just updates the
9790         documentation for the narrow ones.
9791
9792         test-posixtm.c: add two tests
9793         * tests/test-posixtm.c: Add two tests, to highlight the
9794         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
9795         around this bug; this is merely to document it.
9796
9797 2010-12-22  Bruno Haible  <bruno@clisp.org>
9798
9799         getlogin_r: Work around portability problem on OSF/1.
9800         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
9801         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
9802         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
9803         test for a truncated result.
9804         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
9805         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
9806         * modules/getlogin_r (Depends-on): Add memchr.
9807         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
9808
9809 2010-12-22  Bruno Haible  <bruno@clisp.org>
9810
9811         ptsname: Avoid test failure on OSF/1 5.1.
9812         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
9813         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
9814         (same_slave): New function.
9815         (main): Use it to compare ptsname's result with the expected file name.
9816
9817 2010-12-22  Bruno Haible  <bruno@clisp.org>
9818
9819         Port extended stdio modules to HP NonStop Kernel.
9820         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
9821         macros.
9822         * lib/fbufmode.c: Update comments.
9823         * lib/fflush.c: Likewise.
9824         * lib/fpurge.c: Likewise.
9825         * lib/freadable.c: Likewise.
9826         * lib/freadahead.c: Likewise.
9827         * lib/freading.c: Likewise.
9828         * lib/freadptr.c: Likewise.
9829         * lib/freadseek.c: Likewise.
9830         * lib/fseeko.c: Likewise.
9831         * lib/fseterr.c: Likewise.
9832         * lib/fwritable.c: Likewise.
9833         * lib/fwriting.c: Likewise.
9834         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9835
9836 2010-12-22  Bruno Haible  <bruno@clisp.org>
9837
9838         ttyname_r: Work around bug on OSF/1 5.1.
9839         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
9840         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
9841         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
9842         present.
9843         * lib/ttyname_r.c (ttyname_r): Update comments.
9844
9845 2010-12-22  Bruno Haible  <bruno@clisp.org>
9846
9847         round: Implement result sign according to IEEE 754.
9848         * lib/round.c (MIN, MINUS_ZERO): New macros.
9849         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
9850         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
9851         * tests/test-round-ieee.c (main): Likewise.
9852         * tests/test-roundl-ieee.c (main): Likewise.
9853
9854         trunc: Implement result sign according to IEEE 754.
9855         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
9856         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
9857         * tests/test-trunc2.c: Include minus-zero.h.
9858         (MINUS_ZERO): New macro.
9859         (trunc_reference): Keep in sync with lib/trunc.c.
9860         * tests/test-truncf2.c: Include minus-zero.h.
9861         (MINUS_ZERO): New macro.
9862         (truncf_reference): Keep in sync with lib/trunc.c.
9863         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
9864         * tests/test-trunc-ieee.c (main): Likewise.
9865         * tests/test-truncl-ieee.c (main): Likewise.
9866
9867         ceil: Implement result sign according to IEEE 754.
9868         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
9869         (FUNC): Return -0.0 for -1 < x < 0.
9870         * tests/test-ceil2.c: Include minus-zero.h.
9871         (MINUS_ZERO): New macro.
9872         (ceil_reference): Keep in sync with lib/ceil.c.
9873         * tests/test-ceilf2.c: Include minus-zero.h.
9874         (MINUS_ZERO): New macro.
9875         (ceilf_reference): Keep in sync with lib/ceil.c.
9876         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
9877         * tests/test-ceil-ieee.c (main): Likewise.
9878         * tests/test-ceill-ieee.c (main): Likewise.
9879
9880         floor: Implement result sign according to IEEE 754.
9881         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
9882         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
9883         * tests/test-floorf2.c (floorf_reference): Likewise.
9884         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
9885         * tests/test-floor-ieee.c (main): Likewise.
9886         * tests/test-floorl-ieee.c (main): Likewise.
9887
9888 2010-12-22  Bruno Haible  <bruno@clisp.org>
9889
9890         getaddrinfo: Update doc.
9891         * doc/posix-functions/gai_strerror.texi: Return type is also different
9892         on AIX and HP-UX.
9893
9894 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
9895
9896         getaddrinfo, inet_ntop: Update doc for Solaris.
9897         * doc/posix-functions/gai_strerror.texi: Return type is also an
9898         issue on Solaris 9 and earlier.
9899         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
9900         on Solaris 10 and earlier.
9901
9902 2010-12-21  Bruno Haible  <bruno@clisp.org>
9903
9904         New module 'roundl-ieee'.
9905         * modules/roundl-ieee: New file.
9906         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
9907         test whether roundl works according to ISO C 99 with IEC 60559.
9908         * m4/roundl-ieee.m4: New file.
9909         * modules/roundl-ieee-tests: New file.
9910         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
9911         * tests/test-roundl.c (main): Remove signbit tests.
9912         * modules/roundl-tests (Depends-on): Remove signbit.
9913         * doc/posix-functions/roundl.texi: Mention the new module.
9914
9915 2010-12-21  Bruno Haible  <bruno@clisp.org>
9916
9917         New module 'truncl-ieee'.
9918         * modules/truncl-ieee: New file.
9919         * modules/truncl-ieee-tests: New file.
9920         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
9921         * tests/test-truncl.c (main): Remove signbit tests.
9922         * modules/truncl-tests (Depends-on): Remove signbit.
9923         * doc/posix-functions/truncl.texi: Mention the new module.
9924
9925 2010-12-21  Bruno Haible  <bruno@clisp.org>
9926
9927         New module 'ceill-ieee'.
9928         * modules/ceill-ieee: New file.
9929         * modules/ceill-ieee-tests: New file.
9930         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
9931         * tests/test-ceill.c (main): Remove signbit tests.
9932         * modules/ceill-tests (Depends-on): Remove signbit.
9933         * doc/posix-functions/ceill.texi: Mention the new module.
9934
9935 2010-12-21  Bruno Haible  <bruno@clisp.org>
9936
9937         New module 'floorl-ieee'.
9938         * modules/floorl-ieee: New file.
9939         * modules/floorl-ieee-tests: New file.
9940         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
9941         * tests/test-floorl.c (main): Remove signbit tests.
9942         * modules/floorl-tests (Depends-on): Remove signbit.
9943         * doc/posix-functions/floorl.texi: Mention the new module.
9944
9945 2010-12-21  Bruno Haible  <bruno@clisp.org>
9946
9947         New module 'round-ieee'.
9948         * modules/round-ieee: New file.
9949         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
9950         whether round works according to ISO C 99 with IEC 60559.
9951         * m4/round-ieee.m4: New file.
9952         * modules/round-ieee-tests: New file.
9953         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
9954         * tests/test-round1.c (main): Remove signbit tests.
9955         * modules/round-tests (Depends-on): Remove 'signbit'.
9956         * doc/posix-functions/round.texi: Mention the new module.
9957
9958 2010-12-21  Bruno Haible  <bruno@clisp.org>
9959
9960         New module 'trunc-ieee'.
9961         * modules/trunc-ieee: New file.
9962         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
9963         whether trunc works according to ISO C 99 with IEC 60559.
9964         * m4/trunc-ieee.m4: New file.
9965         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
9966         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
9967         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
9968         * modules/trunc-ieee-tests: New file.
9969         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
9970         * tests/test-trunc1.c (main): Remove signbit tests.
9971         * modules/trunc-tests (Depends-on): Remove 'signbit'.
9972         * doc/posix-functions/trunc.texi: Mention the new module.
9973
9974 2010-12-21  Bruno Haible  <bruno@clisp.org>
9975
9976         New module 'ceil-ieee'.
9977         * modules/ceil-ieee: New file.
9978         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
9979         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
9980         ISO C 99 with IEC 60559.
9981         * m4/ceil-ieee.m4: New file.
9982         * modules/ceil (Files): Add lib/ceil.c.
9983         (Depends-on): Add 'float'.
9984         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
9985         * lib/math.in.h (ceil): New declaration.
9986         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
9987         REPLACE_CEIL.
9988         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
9989         * modules/ceil-ieee-tests: New file.
9990         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
9991         * tests/test-math-c++.cc: Check the signature of 'ceil'.
9992         * doc/posix-functions/ceil.texi: Mention the new module.
9993
9994 2010-12-21  Bruno Haible  <bruno@clisp.org>
9995
9996         New module 'floor-ieee'.
9997         * modules/floor-ieee: New file.
9998         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
9999         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
10000         ISO C 99 with IEC 60559.
10001         * m4/floor-ieee.m4: New file.
10002         * modules/floor (Files): Add lib/floor.c.
10003         (Depends-on): Add 'float'.
10004         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
10005         * lib/math.in.h (floor): New declaration.
10006         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
10007         REPLACE_FLOOR.
10008         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
10009         * modules/floor-ieee-tests: New file.
10010         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
10011         * tests/test-math-c++.cc: Check the signature of 'floor'.
10012         * doc/posix-functions/floor.texi: Mention the new module.
10013
10014 2010-12-21  Bruno Haible  <bruno@clisp.org>
10015
10016         New module 'roundf-ieee'.
10017         * modules/roundf-ieee: New file.
10018         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
10019         test whether roundf works according to ISO C 99 with IEC 60559.
10020         * m4/roundf-ieee.m4: New file.
10021         * modules/roundf-ieee-tests: New file.
10022         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
10023         * tests/test-roundf1.c (main): Remove signbit tests.
10024         * modules/roundf-tests (Depends-on): Remove 'signbit'.
10025         * doc/posix-functions/roundf.texi: Mention the new module.
10026
10027 2010-12-21  Bruno Haible  <bruno@clisp.org>
10028
10029         New module 'truncf-ieee'.
10030         * modules/truncf-ieee: New file.
10031         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
10032         test whether truncf works according to ISO C 99 with IEC 60559.
10033         * m4/truncf-ieee.m4: New file.
10034         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
10035         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
10036         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
10037         * modules/truncf-ieee-tests: New file.
10038         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
10039         * tests/test-truncf1.c (main): Remove signbit tests.
10040         * modules/truncf-tests (Depends-on): Remove 'signbit'.
10041         * doc/posix-functions/truncf.texi: Mention the new module.
10042
10043 2010-12-21  Bruno Haible  <bruno@clisp.org>
10044
10045         New module 'ceilf-ieee'.
10046         * modules/ceilf-ieee: New file.
10047         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
10048         test whether ceilf works according to ISO C 99 with IEC 60559.
10049         * m4/ceilf-ieee.m4: New file.
10050         * modules/ceilf-ieee-tests: New file.
10051         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
10052         * tests/test-ceilf1.c (main): Remove signbit tests.
10053         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
10054         * doc/posix-functions/ceilf.texi: Mention the new module.
10055
10056 2010-12-21  Bruno Haible  <bruno@clisp.org>
10057
10058         New module 'floorf-ieee'.
10059         * modules/floorf-ieee: New file.
10060         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
10061         test whether floorf works according to ISO C 99 with IEC 60559.
10062         * m4/floorf-ieee.m4: New file.
10063         * modules/floorf-ieee-tests: New file.
10064         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
10065         * tests/test-floorf1.c (main): Remove signbit tests.
10066         * modules/floorf-tests (Depends-on): Remove 'signbit'.
10067         * doc/posix-functions/floorf.texi: Mention the new module.
10068
10069 2010-12-21  Bruno Haible  <bruno@clisp.org>
10070
10071         Support for minus zero in autoconf macros.
10072         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
10073         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
10074         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
10075         * tests/minus-zero.h: Update comments.
10076
10077 2010-12-21  Bruno Haible  <bruno@clisp.org>
10078
10079         Tests for module 'ceil'.
10080         * modules/ceil-tests: New file.
10081         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
10082         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
10083
10084 2010-12-21  Bruno Haible  <bruno@clisp.org>
10085
10086         Tests for module 'floor'.
10087         * modules/floor-tests: New file.
10088         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
10089         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
10090
10091 2010-12-21  Bruno Haible  <bruno@clisp.org>
10092
10093         math: Fix indentation.
10094         * lib/math.in.h (floorf): Fix indentation.
10095
10096 2010-12-21  Bruno Haible  <bruno@clisp.org>
10097
10098         Fix cross-compilation guesses on Solaris.
10099         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
10100         not match "solaris2.10".
10101         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
10102         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
10103         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
10104
10105 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
10106
10107         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
10108         This fixes a problem observed with the latest coreutils snapshot
10109         that caused a test to fail on Solaris 8.  src/csplit.c's call
10110         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
10111         earlier, instead of returning the number of bytes that would have
10112         been generated; this causes csplit to incorrectly report memory
10113         exhaustion.
10114         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
10115         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
10116         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
10117         comments to match.
10118         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
10119         Fix typo in matching older versions of Solaris: "solaris2.10"
10120         is matched by the shell pattern "solaris2.[0-9]*".  This matters
10121         only for guessing while cross-compiling.
10122         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
10123
10124 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
10125
10126         ftoastr: fix comment again
10127         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
10128         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
10129         Also, simplify example a bit by using flags = 0.
10130
10131 2010-12-20  Bruno Haible  <bruno@clisp.org>
10132
10133         round*, trunc*: Update documentation regarding glibc.
10134         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
10135         * doc/posix-functions/round.texi: Likewise.
10136         * doc/posix-functions/roundl.texi: Likewise.
10137         * doc/posix-functions/truncf.texi: Likewise.
10138         * doc/posix-functions/trunc.texi: Likewise.
10139         * doc/posix-functions/truncl.texi: Likewise.
10140
10141 2010-12-20  Bruno Haible  <bruno@clisp.org>
10142
10143         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
10144         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
10145         * doc/posix-functions/round.texi: Likewise.
10146         * doc/posix-functions/roundl.texi: Likewise.
10147
10148 2010-12-20  Bruno Haible  <bruno@clisp.org>
10149
10150         ttyname_r: Add missing declaration on HP-UX 11.
10151         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
10152         HAVE_TTYNAME_R.
10153         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
10154         declared. Set HAVE_TTYNAME_R always.
10155         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10156         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
10157         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
10158         HAVE_TTYNAME_R.
10159         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
10160
10161 2010-12-20  Bruno Haible  <bruno@clisp.org>
10162
10163         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
10164         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
10165         * doc/posix-functions/getlogin_r.texi: Likewise.
10166         * tests/test-getlogin.c: Include <errno.h>.
10167         (main): Avoid test failure on HP-UX 11.11.
10168         * tests/test-getlogin_r.c (main): Likewise.
10169
10170 2010-12-20  Bruno Haible  <bruno@clisp.org>
10171
10172         getlogin_r: Add missing declaration on HP-UX 11.
10173         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
10174         declared also when it exists as a function.
10175         * doc/posix-functions/getlogin_r.texi: Document this workaround.
10176
10177 2010-12-20  Bruno Haible  <bruno@clisp.org>
10178
10179         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
10180         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
10181         through wcrtomb.
10182
10183 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
10184
10185         ftoastr: fix comment
10186         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
10187         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
10188
10189 2010-12-19  Bruno Haible  <bruno@clisp.org>
10190
10191         isnan: Ensure it is a macro.
10192         * lib/math.in.h (isnan): Define as a macro if not already a macro.
10193         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
10194         Solaris.
10195
10196 2010-12-19  Bruno Haible  <bruno@clisp.org>
10197
10198         ldexpl test: Fix link error on OSF/1 5.1.
10199         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
10200
10201 2010-12-19  Bruno Haible  <bruno@clisp.org>
10202
10203         wctype: Make it work in C++ mode on OSF/1 5.1.
10204         * lib/wctype.in.h (iswblank): Declare but not define here.
10205         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
10206         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
10207         * modules/wctype (Files): Add lib/iswblank.c.
10208
10209 2010-12-19  Bruno Haible  <bruno@clisp.org>
10210
10211         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
10212         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
10213         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
10214
10215 2010-12-19  Bruno Haible  <bruno@clisp.org>
10216
10217         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
10218         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
10219         _POSIX_PII_SOCKET.
10220         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
10221         * doc/posix-functions/recvfrom.texi: Likewise.
10222         * doc/posix-functions/send.texi: Likewise.
10223         * doc/posix-functions/sendto.texi: Likewise.
10224
10225 2010-12-19  Bruno Haible  <bruno@clisp.org>
10226
10227         tcgetsid: Add missing declaration on OSF/1 5.1.
10228         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
10229         HAVE_TCGETSID.
10230         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
10231         Don't set HAVE_TCGETSID.
10232         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
10233         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
10234         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
10235         HAVE_TCGETSID.
10236         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
10237
10238 2010-12-19  Bruno Haible  <bruno@clisp.org>
10239
10240         stdio: Fix problem with popen() declaration on OSF/1 5.1.
10241         * lib/stdio.in.h: During the include_next statement, let recursive
10242         includes of this file include only the system header file.
10243
10244 2010-12-19  Bruno Haible  <bruno@clisp.org>
10245
10246         iconv_open: Fix regression from 2010-12-04.
10247         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
10248         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
10249
10250 2010-12-19  Bruno Haible  <bruno@clisp.org>
10251
10252         stdbool test: Avoid a gcc warning.
10253         * tests/test-stdbool.c (main): Fail if e1 is false.
10254         Reported by Jim Meyering.
10255
10256 2010-12-19  Jim Meyering  <meyering@redhat.com>
10257
10258         setenv: restore to working order
10259         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
10260         mistakenly removed.
10261         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
10262         HAVE_SETENV.
10263         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
10264         HAVE_SETENV.
10265
10266 2010-12-19  Bruno Haible  <bruno@clisp.org>
10267
10268         Document some different function declarations on OSF/1 5.1.
10269         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
10270         * doc/posix-functions/inet_ntop.texi: Likewise.
10271         * doc/posix-functions/gethostname.texi: Likewise.
10272         * lib/unistd.in.h (gethostname): Update comment.
10273
10274 2010-12-19  Bruno Haible  <bruno@clisp.org>
10275
10276         doc: Mention vasprintf-posix module.
10277         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
10278         the 'vasprintf-posix' module.
10279         * doc/glibc-functions/vasprintf.texi: Likewise.
10280
10281 2010-12-19  Bruno Haible  <bruno@clisp.org>
10282
10283         unsetenv: Add missing declaration on OSF/1 5.1.
10284         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
10285         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
10286         Don't set HAVE_UNSETENV. In the test program, set _BSD.
10287         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
10288         not HAVE_UNSETENV.
10289         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
10290         HAVE_UNSETENV.
10291         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
10292
10293 2010-12-19  Bruno Haible  <bruno@clisp.org>
10294
10295         setenv: Add missing declaration on OSF/1 5.1.
10296         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
10297         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
10298         declared. Don't set HAVE_SETENV.
10299         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
10300         not HAVE_SETENV.
10301         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
10302         HAVE_SETENV.
10303         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
10304
10305 2010-12-19  Bruno Haible  <bruno@clisp.org>
10306
10307         nl_langinfo tests: Avoid gcc warning.
10308         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
10309
10310 2010-12-19  Bruno Haible  <bruno@clisp.org>
10311
10312         mknod: Avoid error in C++ mode on OSF/1 with GCC.
10313         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
10314         _GL_CXXALIAS_SYS.
10315
10316 2010-12-19  Bruno Haible  <bruno@clisp.org>
10317
10318         stdbool: Relax test.
10319         * tests/test-stdbool.c (e): Don't require that casts from a variable's
10320         address to 'bool' work in static initializer, for compilers other than
10321         GCC.
10322
10323 2010-12-19  Bruno Haible  <bruno@clisp.org>
10324
10325         ftello: Add missing declaration on OSF/1 5.1.
10326         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
10327         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
10328         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
10329         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
10330         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
10331
10332 2010-12-19  Bruno Haible  <bruno@clisp.org>
10333
10334         fseeko: Add missing declaration on OSF/1 5.1.
10335         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
10336         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
10337         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
10338         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
10339         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
10340
10341 2010-12-19  Bruno Haible  <bruno@clisp.org>
10342
10343         fchdir: Add missing declaration on OSF/1 5.1.
10344         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
10345         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
10346         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
10347         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
10348         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
10349
10350 2010-12-19  Bruno Haible  <bruno@clisp.org>
10351
10352         relocatable-prog-wrapper: Separate from relocatable-prog.
10353         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
10354         uninstall-relocwrapper rule here.
10355         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
10356         Reported by Ian Beckwith <ianb@erislabs.net>.
10357
10358 2010-12-19  Bruno Haible  <bruno@clisp.org>
10359
10360         unistr/u8-mbsnlen: Add missing dependency.
10361         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
10362         Reported by Ian Beckwith <ianb@erislabs.net>.
10363
10364 2010-12-19  Bruno Haible  <bruno@clisp.org>
10365
10366         iconv: Make it possible again to use this module without 'iconv-h'.
10367         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
10368         if it is not defined.
10369         Reported by Ian Beckwith <ianb@erislabs.net>.
10370
10371 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
10372
10373         acl: port to Solaris 8 when copying from tmpfs to ufs
10374         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
10375         error number.  Problem observed on Solaris 8 with latest
10376         coreutils, with "mv A B", where A is on a tmpfs file system and B
10377         is on a ufs file system.  This caused coreutils' mv/part-symlink
10378         test to fail.
10379
10380         tests: set fail=0 at start
10381         * tests/init.sh (setup_): Move fail=0 initialization here ...
10382         (mktempd_): ... from here, so that tests can rely on fail being
10383         set to 0 initially.  This fixes a problem in coreutils; see:
10384         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
10385
10386 2010-12-18  Bruno Haible  <bruno@clisp.org>
10387
10388         memmem-simple: Stylistic changes.
10389         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
10390         Fix preprocessor directive indentation.
10391
10392 2010-12-15  Pádraig Brady <P@draigBrady.com>
10393
10394         memmem, memmem-simple: reorganize and expand empty needle check
10395         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
10396         functional checks to memmem-simple so that one has a fully functional
10397         memmem by using just this module.
10398         Restrict the performance only check to the memmem module.
10399         Also expand the empty needle check to ensure the correct
10400         pointer is returned, not just a non NULL pointer.
10401         * doc/glibc-functions/memmem.texi: Rearrange the portability
10402         documentation to correlate with the rearranged checks.
10403         Clarify exactly how the memmem and memmem-simple modules
10404         relate to each other.
10405
10406 2010-12-15  Pádraig Brady <P@draigBrady.com>
10407             Bruno Haible  <bruno@clisp.org>
10408
10409         Improve cross-compilation guesses for uClibc.
10410         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
10411         that uClibc does not have the glibc bug.
10412         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
10413         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
10414
10415 2010-12-14  Eric Blake  <eblake@redhat.com>
10416
10417         configmake: provide fallbacks for oldest supported autotools
10418         * m4/configmake.m4: New file.
10419         * modules/configmake (Files): Ship it.
10420         (configure.ac): Use it to guarantee fallbacks.
10421
10422 2010-12-13  Pádraig Brady <P@draigBrady.com>
10423
10424         read-file: Improve handling of large files
10425         * lib/read-file.c (fread_file): Minimize realloc()s
10426         for regular files, and better manage sizes around SIZE_MAX.
10427
10428 2010-12-13  Eric Blake  <eblake@redhat.com>
10429
10430         cloexec, fcntl: relax license
10431         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
10432         consent from all contributors.
10433         * modules/fcntl (License): Likewise.
10434
10435 2010-12-10  Bruno Haible  <bruno@clisp.org>
10436
10437         Tests for module 'pipe-posix'.
10438         * modules/pipe-posix-tests: New file.
10439         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
10440
10441 2010-12-10  Bruno Haible  <bruno@clisp.org>
10442
10443         pipe-posix: Make it work in C++ mode.
10444         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
10445         (pipe): Use common idiom, not a macro definition.
10446         * lib/pipe.c: New file.
10447         * m4/pipe.m4: New file.
10448         * modules/pipe-posix (Description): Enhance.
10449         (Files): Add lib/pipe.c, m4/pipe.m4.
10450         (configure.ac): Invoke gl_FUNC_PIPE.
10451         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
10452         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
10453         * tests/test-unistd-c++.cc: Check the signature of pipe.
10454
10455 2010-12-10  Bruno Haible  <bruno@clisp.org>
10456
10457         Rename module 'pipe' to 'spawn-pipe'.
10458         * modules/spawn-pipe: New file, renamed from modules/pipe.
10459         (Files, configure.ac, Makefile.am): Update.
10460         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
10461         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
10462         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
10463         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
10464         "spawn-pipe.h" instead of "pipe.h".
10465         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
10466         to gl_SPAWN_PIPE.
10467         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
10468         (Files, Makefile.am): Update.
10469         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
10470         Update.
10471         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
10472         Include "spawn-pipe.h" instead of "pipe.h".
10473         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
10474         * lib/javacomp.c: Likewise.
10475         * lib/javaversion.c: Likewise.
10476         * lib/pipe-filter-gi.c: Likewise.
10477         * lib/pipe-filter-ii.c: Likewise.
10478         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
10479         * modules/javacomp (Depends-on): Likewise.
10480         * modules/javaversion (Depends-on): Likewise.
10481         * modules/pipe-filter-gi (Depends-on): Likewise.
10482         * modules/pipe-filter-ii (Depends-on): Likewise.
10483         * MODULES.html.sh (Executing programs): Update.
10484         * NEWS: Mention the change.
10485
10486 2010-12-10  Eric Blake  <eblake@redhat.com>
10487
10488         pipe-posix: new module
10489         * modules/pipe-posix: New file.
10490         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
10491         (gl_UNISTD_H): Check for declaration.
10492         * modules/unistd (Makefile.am): Substitute it.
10493         * lib/unistd.in.h (pipe): Provide it for mingw.
10494         * doc/posix-functions/pipe.texi (pipe): Update documentation.
10495         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
10496
10497 2010-12-07  Bruno Haible  <bruno@clisp.org>
10498
10499         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
10500         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
10501         u8_strcmp_gnu.
10502         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
10503
10504 2010-12-06  Bruno Haible  <bruno@clisp.org>
10505
10506         Update internal documentation.
10507         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
10508
10509 2010-12-04  Bruno Haible  <bruno@clisp.org>
10510
10511         Put more information about failed tests into the test return codes.
10512         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
10513         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
10514         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
10515         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
10516         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
10517         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
10518         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10519         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
10520         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
10521         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
10522         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
10523         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
10524         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
10525         * m4/stdint.m4 (gl_STDINT_H): Likewise.
10526         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
10527         returns a bit mask.
10528         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
10529         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
10530         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
10531         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
10532         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
10533         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
10534         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
10535         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
10536         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
10537         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
10538         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
10539         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
10540         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
10541         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
10542         * m4/link.m4 (gl_FUNC_LINK): Likewise.
10543         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
10544         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
10545         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
10546         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
10547         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
10548         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
10549         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
10550         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
10551         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
10552         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
10553         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
10554         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
10555         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
10556         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
10557         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
10558         gl_PRINTF_PRECISION): Likewise.
10559         * m4/regex.m4 (gl_REGEX): Likewise.
10560         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
10561         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
10562         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
10563         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
10564         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
10565         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
10566         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
10567         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
10568         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
10569         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
10570         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
10571         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
10572         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
10573         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
10574         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
10575         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
10576         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
10577         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
10578         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10579         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
10580         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
10581         enumerated value.
10582         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
10583
10584 2010-12-04  Bruno Haible  <bruno@clisp.org>
10585
10586         Update for Solaris 11 2010-11.
10587         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
10588         Express, released in November 2010.
10589
10590 2010-12-04  Bruno Haible  <bruno@clisp.org>
10591
10592         nproc: Relax license.
10593         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
10594         and Paul Eggert.
10595         Requested by Ludovic Courtès <ludo@gnu.org>.
10596
10597 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
10598
10599         utimecmp: fine-grained src to nearby coarse-grained dest
10600
10601         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
10602         and the source is on a file system with higher-resolution time
10603         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
10604         not work, and the time stamps are close together, the algorithm to
10605         determine the exact resolution from the read-back mtime was buggy:
10606         it had a "!=" where it should have had an "==".  This bug has been
10607         in the code ever since it was introduced to gnulib.
10608         Problem reported by Dan Jacobson in
10609         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
10610
10611 2010-11-30  Bruno Haible  <bruno@clisp.org>
10612
10613         strerror_r-posix: Fix autoconf test.
10614         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
10615
10616 2010-11-28  Bruno Haible  <bruno@clisp.org>
10617             Paul Eggert  <eggert@cs.ucla.edu>
10618
10619         Tests for module 'getdomainname'.
10620         * modules/getdomainname-tests: New file.
10621         * tests/test-getdomainname.c: New file, based on
10622         tests/test-gethostname.c.
10623
10624 2010-11-28  Bruno Haible  <bruno@clisp.org>
10625             Paul Eggert  <eggert@cs.ucla.edu>
10626
10627         getdomainname: Use the system function when possible.
10628         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
10629         (getdomainname): Replace if needed. Provide the declaration if it is
10630         missing. Don't use _GL_CXXALIAS_SYS_CAST.
10631         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
10632         (getdomainname): When the system has getdomainname, call the system
10633         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
10634         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
10635         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
10636         found in libnsl. Look for the declaration also in <netdb.h>. Replace
10637         the function if its second argument is of type 'int' or if it is found
10638         in libnsl.
10639         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
10640         <sys/systeminfo.h> and sysinfo().
10641         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
10642         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10643         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
10644         HAVE_GETDOMAINNAME.
10645         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
10646         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
10647         * doc/glibc-functions/getdomainname.texi: Document the problems with
10648         the getdomainname declaration.
10649
10650 2010-11-28  Bruno Haible  <bruno@clisp.org>
10651
10652         sys_socket: Ensure ss_family field on AIX.
10653         * lib/sys_socket.in.h (ss_family): New macro definition.
10654         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
10655         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
10656         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
10657         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
10658         * modules/sys_socket (Makefile.am): Substitute
10659         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
10660         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
10661
10662 2010-11-27  Bruno Haible  <bruno@clisp.org>
10663
10664         readline: Improve configure output.
10665         * m4/readline.m4 (gl_FUNC_READLINE): Make the
10666         "checking for readline..." result understandable.
10667
10668 2010-11-27  Bruno Haible  <bruno@clisp.org>
10669
10670         *printf-posix: Detect a bug on Solaris 10/x86.
10671         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
10672         for floating-point output.
10673         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
10674         directive.
10675         * tests/test-snprintf-posix.h (test_function): Likewise.
10676         * tests/test-sprintf-posix.h (test_function): Likewise.
10677         * tests/test-vasprintf-posix.c (test_function): Likewise.
10678         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
10679         * doc/posix-functions/printf.texi: Likewise.
10680         * doc/posix-functions/snprintf.texi: Likewise.
10681         * doc/posix-functions/sprintf.texi: Likewise.
10682         * doc/posix-functions/vfprintf.texi: Likewise.
10683         * doc/posix-functions/vprintf.texi: Likewise.
10684         * doc/posix-functions/vsnprintf.texi: Likewise.
10685         * doc/posix-functions/vsprintf.texi: Likewise.
10686         * doc/glibc-functions/obstack_printf.texi: Likewise.
10687         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
10688
10689 2010-11-27  Bruno Haible  <bruno@clisp.org>
10690
10691         Fix link error when module libunistring-optional is in use.
10692         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
10693         * modules/striconveha-tests (Makefile.am): Likewise.
10694
10695 2010-11-27  Bruno Haible  <bruno@clisp.org>
10696
10697         regex: Mention link dependencies.
10698         * modules/regex (Link): New section.
10699         * modules/rpmatch (Link): Likewise.
10700         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
10701
10702 2010-11-27  Bruno Haible  <bruno@clisp.org>
10703
10704         ftoastr: Fix compilation error on Solaris.
10705         * lib/ftoastr.c: Include <config.h>.
10706
10707 2010-11-27  Bruno Haible  <bruno@clisp.org>
10708
10709         getloadavg: Update documentation.
10710         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
10711
10712 2010-11-27  Bruno Haible  <bruno@clisp.org>
10713
10714         sys_socket: Fix test whether the functions are declared.
10715         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
10716         not <sys/select.h>.
10717
10718 2010-11-27  Bruno Haible  <bruno@clisp.org>
10719
10720         getpass: Make sure to get system declaration on some platforms.
10721         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
10722         gl_USE_SYSTEM_EXTENSIONS.
10723         * modules/getpass (Depends-on): Add extensions.
10724
10725 2010-11-26  Bruno Haible  <bruno@clisp.org>
10726
10727         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
10728         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
10729         'iconv' module is present.
10730         (ICONV_CONST): New macro.
10731         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
10732         ICONV_CONST.
10733         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
10734         set ICONV_CONST.
10735         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
10736         here.
10737         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
10738         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
10739         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
10740         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
10741         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
10742         present.
10743
10744 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
10745
10746         ftoastr: comment fix
10747         * lib/ftoastr.c: "little" -> "little or no" in comment
10748
10749 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
10750
10751         stdint: port to GCC 4.3 + OSX + Octave
10752         On this platform, stdint.h is buggy and defines int64_t to long
10753         long int.  The replacement defined it to long int, causing
10754         problems with C++ style name mangling.  Instead, trust the system
10755         definition if INT64_MAX is defined, and likewise for the unsigned
10756         variant.   Problem reported by Jarno Rajahalme in
10757         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
10758         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
10759         and don't mess with int64_t and INT64_MAX in this case.
10760         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
10761
10762 2010-11-24  Bruno Haible  <bruno@clisp.org>
10763
10764         doc: Corrections regarding MacOS X 10.4 and 10.5.
10765         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
10766         MacOS X.
10767         Reported by Simon Josefsson.
10768
10769 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
10770
10771         Uninstall ".bin" files installed by relocwrapper.
10772         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
10773         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
10774         unless it is already there.
10775
10776 2010-11-21  Bruno Haible  <bruno@clisp.org>
10777
10778         Update for NetBSD 5.0.
10779         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
10780         NetBSD; the test fails on NetBSD 5.0.
10781         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
10782         about NetBSD.
10783
10784 2010-11-21  Bruno Haible  <bruno@clisp.org>
10785
10786         Update for HP-UX 11.23 and HP-UX 11.31.
10787         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
10788         HP-UX.
10789
10790 2010-11-21  Bruno Haible  <bruno@clisp.org>
10791
10792         Update for MacOS X 10.5.
10793         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
10794         MacOS X; the test fails on MacOS X 10.5.8.
10795         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
10796         about MacOS X.
10797
10798 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
10799
10800         bootstrap: add bootstrap_sync option.
10801         See discussion at
10802         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
10803         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
10804         * build-aux/bootstrap: Accept --bootstrap-sync to update
10805         bootstrap if it is not identical to the local gnulib's
10806         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
10807         enable this by default.  Accept --no-bootstrap-sync to disable
10808         it.
10809
10810 2010-11-20  Bruno Haible  <bruno@clisp.org>
10811
10812         Ensure that <features.h> is included before __GLIBC__ is tested.
10813         * lib/printf-parse.h: Include <features.h>.
10814         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
10815         Reported by Mike Frysinger <vapier@gentoo.org>.
10816
10817         Ensure that <features.h> is included before __GLIBC__ is tested.
10818         * lib/wchar.in.h: Include <features.h>.
10819         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
10820         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
10821         Reported by Mike Frysinger <vapier@gentoo.org>.
10822
10823         Ensure that <features.h> is included before __GLIBC__ is tested.
10824         * lib/arpa_inet.in.h: Include <features.h>.
10825         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
10826         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
10827         Reported by Mike Frysinger <vapier@gentoo.org>.
10828
10829         Ensure that <features.h> is included before __GLIBC__ is tested.
10830         * build-aux/link-warning.h: Include <features.h>.
10831         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
10832         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
10833         Reported by Mike Frysinger <vapier@gentoo.org>.
10834
10835         Ensure that <features.h> is included before __GLIBC__ is tested.
10836         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
10837         Reported by Mike Frysinger <vapier@gentoo.org>.
10838
10839 2010-11-20  Bruno Haible  <bruno@clisp.org>
10840
10841         memmem: Fix autoconf test.
10842         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
10843
10844 2010-11-20  Bruno Haible  <bruno@clisp.org>
10845
10846         Port to uClibc.
10847         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
10848         * lib/fcntl.in.h: Likewise.
10849         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
10850         * lib/mbrtowc.c (mbrtowc): Likewise.
10851         * lib/relocatable.c (find_shared_library_fullname): Likewise.
10852         * lib/strerror_r.c: Likewise.
10853         * lib/unistr/u8-strnlen.c: Likewise.
10854         * lib/vasnprintf.c (decimal_point_char): Likewise.
10855         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
10856         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
10857         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
10858         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
10859         * tests/test-sigaction.c (handler, main): Likewise.
10860         * lib/freading.h: Treat uClibc like a non-glibc platform.
10861         * lib/freading.c: Likewise.
10862         * lib/gettext.h: Likewise.
10863         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
10864         Likewise.
10865         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
10866         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
10867         * lib/propername.c (proper_name_utf8): Likewise.
10868         * lib/spawn.in.h: Likewise.
10869         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
10870         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
10871         mem_cd_iconveh_internal): Likewise.
10872         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
10873         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
10874         strstr, strcasestr): Likewise.
10875         * lib/unicodeio.c (unicode_to_mb): Likewise.
10876         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
10877         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
10878         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
10879         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
10880         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
10881         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
10882         * lib/unistr/u8-stpncpy.c: Likewise.
10883         * lib/vasnprintf.c (VASNPRINTF): Likewise.
10884         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
10885         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
10886         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10887         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
10888         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
10889         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
10890         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
10891         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
10892         Likewise.
10893         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
10894         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
10895         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
10896         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
10897         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
10898         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
10899         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
10900         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
10901         * tests/test-getopt.h (OPTIND_MIN): Likewise.
10902         * tests/test-striconveha.c (main): Likewise.
10903         * tests/test-vasnprintf-posix.c (test_function): Likewise.
10904         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
10905         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
10906         * doc/posix-functions/getline.texi: Likewise.
10907         Reported by Mike Frysinger <vapier@gentoo.org>.
10908
10909 2010-11-20  Bruno Haible  <bruno@clisp.org>
10910
10911         nproc: Fix condition.
10912         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
10913         HAVE_PTHREAD_AFFINITY_NP.
10914
10915 2010-11-20  Bruno Haible  <bruno@clisp.org>
10916
10917         Fix a comment.
10918         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
10919
10920 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
10921
10922         ftoastr: don't assume snprintf
10923         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
10924         Implement a subset of snprintf here, by using sprintf safely.
10925         * modules/ftoastr (Depends-on): Remove snprintf.
10926
10927 2010-11-19  Jim Meyering  <meyering@redhat.com>
10928
10929         test-rename.h: fix compilation failure
10930         * tests/test-rename.h (test_rename): Add omitted "}".
10931
10932 2010-11-17  Jim Meyering  <meyering@redhat.com>
10933
10934         maint.mk: add a URL discussing the no-@acronym policy
10935         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
10936
10937 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
10938
10939         ftoastr: depend on snprintf, improve comments
10940         * lib/ftoastr.c: Also mention Loitsch's draft.
10941         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
10942         needed in the current implementation, but it might simplify
10943         speeding up the code later.
10944         * modules/ftoastr: Depend on snprintf; this improves portability.
10945         Suggested by Bruno Haible in the same email.
10946
10947         ftoastr: port to hosts lacking strtof and strtold
10948         Problem reported by Bruno Haible in
10949         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
10950         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
10951         environment and strtold (and presumably strtof) are not available.
10952         * modules/ftoastr (Files): Add m4/c-strtod.m4.
10953         (configure.ac): Require gl_C99_STRTOLD.
10954
10955 2010-11-18  Bruno Haible  <bruno@clisp.org>
10956
10957         c-strtold: Avoid link error on AIX 7.
10958         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
10959         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
10960         (gl_C_STRTOLD): Test whether strtold_l exists.
10961         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
10962
10963 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
10964
10965         intprops: new macro INT_BITS_STRLEN_BOUND
10966         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
10967         ftoastr.h.  This exposes an internal of intprops.h that was formerly
10968         not exposed.  Also, it uses a slightly tighter bound than before;
10969         though this makes no practical difference, we might as well be as
10970         tight as we easily can.
10971
10972         ftoastr: new module, for lossless conversion of floats to short strings
10973         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
10974         * modules/ftoastr: New files.
10975
10976 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
10977
10978         bootstrap: port to Solaris sed
10979         * build-aux/bootstrap (get_version): Port to Solaris sed.
10980         See Ralf Wildenhues's note in
10981         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
10982
10983 2010-11-14  Jim Meyering  <meyering@redhat.com>
10984
10985         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
10986         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
10987         and move definition closer to sole use.
10988
10989 2010-11-13  Jim Meyering  <meyering@redhat.com>
10990
10991         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
10992         Now we require at least autoconf-2.59, which means the work-around
10993         is no longer needed.
10994         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
10995         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
10996         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
10997         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
10998         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
10999
11000 2010-11-13  Bruno Haible  <bruno@clisp.org>
11001
11002         rename, renameat: Avoid test failures at NFS mounted locations.
11003         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
11004         functions.
11005         (test_rename): Use assert_nonexistent.
11006         * tests/test-rename.c: Include <dirent.h>.
11007         * tests/test-renameat.c: Likewise.
11008         Reported by Gary V. Vaughan <gary@gnu.org>.
11009
11010         rename, renameat: Document Linux bug with NFS
11011         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
11012         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
11013         * doc/posix-functions/renameat.texi: Likewise.
11014         Suggested by Eric Blake.
11015
11016 2010-11-13  Bruno Haible  <bruno@clisp.org>
11017
11018         rename test: Add comments.
11019         * tests/test-rename.h (test_rename): Add structure and comments.
11020
11021 2010-11-13  Eric Blake  <eblake@redhat.com>
11022
11023         maintainer-makefile: cover a few more files
11024         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
11025         scripts generated within C files, for libvirt.
11026
11027 2010-11-13  Bruno Haible  <bruno@clisp.org>
11028
11029         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
11030         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
11031         character, return the number of bytes that belong together, not always
11032         1.
11033         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
11034         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
11035         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
11036         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
11037         number of bytes of an invalid character.
11038         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
11039         (main): Invoke it.
11040         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
11041         results.
11042         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
11043         malformed byte sequences.
11044         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
11045         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
11046         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
11047         Reported by Ben Pfaff and Paolo Bonzini.
11048
11049 2010-11-13  Bruno Haible  <bruno@clisp.org>
11050
11051         openat: Work around glibc bug with fchownat() and empty file names.
11052         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
11053         (gl_FUNC_FCHOWNAT): Invoke it.
11054         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
11055         * doc/posix-functions/fchownat.texi: Document the glibc bug.
11056         Reported by Gary V. Vaughan <gary@gnu.org>.
11057
11058 2010-11-13  Bruno Haible  <bruno@clisp.org>
11059
11060         openat: Ensure autoconf macro ordering.
11061         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
11062         gl_USE_SYSTEM_EXTENSIONS.
11063         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
11064
11065 2010-11-13  Bruno Haible  <bruno@clisp.org>
11066
11067         Update comments.
11068         * lib/unistr/u8-check.c: Update file name in comments.
11069         * lib/unistr/u8-mblen.c: Likewise.
11070         * lib/unistr/u8-prev.c: Likewise.
11071         * lib/unistr/u8-strmblen.c: Likewise.
11072         * lib/unistr/u8-strmbtouc.c: Likewise.
11073
11074 2010-11-13  Jim Meyering  <meyering@redhat.com>
11075
11076         tests: avoid test failure on Solaris 10 due to lack of PATH export
11077         * tests/test-update-copyright.sh: Don't forget to export PATH.
11078
11079         init.sh: ensure that IFS is defined, just in case...
11080         * tests/init.sh (setup_): Ensure that IFS is defined,
11081         so that saving and restoring it works as expected.  This
11082         appears to be useful at least for an old version of dash
11083         from a long time ago (RH 6).  See here for details:
11084         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
11085
11086         maint.mk: tighten "test a == b" check
11087         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
11088         test to files that contain something like #!/bin/sh.
11089         Without this, coreutils would get two false positives in
11090         the comments of C source files.
11091
11092 2010-11-12  Eric Blake  <eblake@redhat.com>
11093
11094         bootstrap: fix typo in previous attempt
11095         * build-aux/bootstrap (buildreq): Correct the grouping.
11096         Reported by Paul Eggert.
11097
11098         maintainer-makefile: prohibit test x == x
11099         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
11100         Based on a report by Matthias Bolte.
11101
11102         bootstrap: allow FreeBSD gzip
11103         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
11104         which has no '.' and goes to stderr.
11105         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
11106         Reported by Matthias Bolte.
11107
11108         maintainer-makefile: check for i18n setup
11109         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
11110         will likely work.
11111
11112 2010-11-12  Bruno Haible  <bruno@clisp.org>
11113
11114         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
11115         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
11116         * lib/nanosleep.c (nanosleep): Likewise.
11117
11118 2010-11-11  Bruno Haible  <bruno@clisp.org>
11119
11120         fcntl-h: Fix for use of C++ on glibc systems.
11121         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
11122         also on glibc systems in C++ mode.
11123         Reported by Gary V. Vaughan <gary@gnu.org>.
11124
11125 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
11126
11127         mknod: avoid false failure with dash
11128         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
11129
11130 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
11131
11132         unlink: Fix "is it should" typo in diagnostic.
11133         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
11134         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
11135
11136 2010-11-11  Bruno Haible  <bruno@clisp.org>
11137
11138         Tests for module 'strerror_r-posix'.
11139         * modules/strerror_r-posix-tests: New file.
11140         * tests/test-strerror_r.c: New file.
11141         * tests/test-string-c++.cc: Check the signature of strerror_r.
11142
11143         New module 'strerror_r-posix'.
11144         * lib/string.in.h (strerror_r): New declaration.
11145         * lib/strerror_r.c: New file.
11146         * m4/strerror_r.m4: New file.
11147         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
11148         of strerror_r.
11149         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
11150         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
11151         * modules/strerror_r-posix: New file.
11152         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
11153         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
11154         * doc/posix-functions/strerror_r.texi: Mention the new module and the
11155         portability problems.
11156
11157 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
11158
11159         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
11160         line is also considered for output. Quoted function name in shell
11161         command, so temporary files for functions like MyClass::operator()
11162         are removed correctly without errors.
11163
11164 2010-11-09  Bruno Haible  <bruno@clisp.org>
11165
11166         * doc/posix-functions/strerror.texi: List more failing platforms.
11167
11168         * doc/posix-functions/strerror.texi: Add a comment.
11169
11170 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
11171
11172         fdopendir: fix bug on MacOS X when low on file descriptors
11173
11174         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
11175         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
11176         All callers changed.
11177         (fdopendir): Invoke save_cwd at the top level, not after using
11178         multiple dup() calls to use up file descriptors.  Then retry
11179         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
11180         less than the maximum number of open file descriptors, because
11181         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
11182         on Mac OS X 10.6.4 for tar 1.24
11183         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
11184         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
11185         and for tar 1.25
11186         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
11187
11188 2010-11-07  Bruno Haible  <bruno@clisp.org>
11189
11190         vasnprintf: Support I flag on glibc systems.
11191         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
11192         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
11193         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
11194         snprintf function.
11195         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
11196         glibc systems.
11197         * tests/test-vasnprintf-posix3.c: New file.
11198         * modules/vasnprintf-posix-tests (Files): Add it.
11199         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
11200
11201 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
11202
11203         [html] Fix copy/paste bug: Use unique name for compiler warnings.
11204         * MODULES.html.sh: For compiler warnings, use name
11205         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
11206
11207 2010-11-05  Eric Blake  <eblake@redhat.com>
11208
11209         ceil, floor: avoid spurious failure with icc
11210         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
11211         [denormals-as-zero] when optimizing without -mieee-fp option.
11212         * tests/test-floorf2.c (floorf_reference): Likewise.
11213         * tests/test-ceilf1.c (dummy): New function.
11214         (main): Use it to outsmart icc's optimization.
11215         * tests/test-floorf1.c (dummy, main): Likewise.
11216
11217         tests: require working signbit
11218         * modules/ceilf-tests (Depends-on): Add signbit.
11219         * modules/ceill-tests (Depends-on): Likewise.
11220         * modules/floorf-tests (Depends-on): Likewise.
11221         * modules/floorl-tests (Depends-on): Likewise.
11222         * modules/round-tests (Depends-on): Likewise.
11223         * modules/roundf-tests (Depends-on): Likewise.
11224         * modules/roundl-tests (Depends-on): Likewise.
11225         * modules/trunc-tests (Depends-on): Likewise.
11226         * modules/truncf-tests (Depends-on): Likewise.
11227         * modules/truncl-tests (Depends-on): Likewise.
11228
11229         strtod: work around icc bug
11230         * lib/strtod.c (minus_zero): Define to working value.
11231         (strtod): Use it to avoid icc bug.
11232
11233         copysign: enhance tests
11234         * modules/copysign-tests (Files): Add minus-zero.h.
11235         * tests/test-copysign.c (main): Also test zeros.
11236
11237 2010-11-04  Eric Blake  <eblake@redhat.com>
11238
11239         ceil, floor, round, trunc: enhance tests of -0
11240         * tests/test-ceilf1.c (main): Ensure correct sign of result.
11241         * tests/test-ceill.c (main): Likewise.
11242         * tests/test-floorf1.c (main): Likewise.
11243         * tests/test-floorl.c (main): Likewise.
11244         * tests/test-round1.c (main): Likewise.
11245         * tests/test-roundf1.c (main): Likewise.
11246         * tests/test-roundl.c (main): Likewise.
11247         * tests/test-trunc1.c (main): Likewise.
11248         * tests/test-truncf1.c (main): Likewise.
11249         * tests/test-truncl.c (main): Likewise.
11250
11251 2010-11-04  Eric Blake  <eblake@redhat.com>
11252
11253         frexp, tests: work around ICC bug with -zero
11254         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
11255         works with more compilers.
11256         * tests/minus-zero.h: New file.
11257         * modules/ceilf-tests (Files): Include it.
11258         * modules/ceill-tests (Files): Likewise.
11259         * modules/floorf-tests (Files): Likewise.
11260         * modules/floorl-tests (Files): Likewise.
11261         * modules/frexp-nolibm-tests (Files): Likewise.
11262         * modules/frexp-tests (Files): Likewise.
11263         * modules/frexpl-nolibm-tests (Files): Likewise.
11264         * modules/frexpl-tests (Files): Likewise.
11265         * modules/isnan-tests (Files): Likewise.
11266         * modules/isnand-nolibm-tests (Files): Likewise.
11267         * modules/isnand-tests (Files): Likewise.
11268         * modules/isnanf-nolibm-tests (Files): Likewise.
11269         * modules/isnanf-tests (Files): Likewise.
11270         * modules/isnanl-nolibm-tests (Files): Likewise.
11271         * modules/isnanl-tests (Files): Likewise.
11272         * modules/round-tests (Files): Likewise.
11273         * modules/roundf-tests (Files): Likewise.
11274         * modules/roundl-tests (Files): Likewise.
11275         * modules/ldexpl-tests (Files): Likewise.
11276         * modules/signbit-tests (Files): Likewise.
11277         * modules/snprintf-posix-tests (Files): Likewise.
11278         * modules/sprintf-posix-tests (Files): Likewise.
11279         * modules/strtod-tests (Files): Likewise.
11280         * modules/trunc-tests (Files): Likewise.
11281         * modules/truncf-tests (Files): Likewise.
11282         * modules/truncl-tests (Files): Likewise.
11283         * modules/vsnprintf-posix-tests (Files): Likewise.
11284         * modules/vsprintf-posix-tests (Files): Likewise.
11285         * modules/vasnprintf-posix-tests (Files): Likewise.
11286         * modules/vasprintf-posix-tests (Files): Likewise.
11287         * tests/test-ceilf1.c (main): Use it.
11288         * tests/test-ceill.c (main): Likewise.
11289         * tests/test-floorf1.c (main): Likewise.
11290         * tests/test-floorl.c (main): Likewise.
11291         * tests/test-frexp.c (main): Likewise.
11292         * tests/test-frexpl.c (main): Likewise.
11293         * tests/test-isnan.c (main): Likewise.
11294         * tests/test-isnand.h (main): Likewise.
11295         * tests/test-isnanf.h (main): Likewise.
11296         * tests/test-isnanl.h (main): Likewise.
11297         * tests/test-ldexpl.c (main): Likewise.
11298         * tests/test-round.c (main): Likewise.
11299         * tests/test-roundf.c (main): Likewise.
11300         * tests/test-roundl.c (main): Likewise.
11301         * tests/test-signbit.c (test_signbitf, test_signbitd)
11302         (test_signbitl): Likewise.
11303         * tests/test-snprintf-posix.h (test_function): Likewise.
11304         * tests/test-sprintf-posix.h (test_function): Likewise.
11305         * tests/test-strtod.c (main): Likewise.
11306         * tests/test-trunc1.c (main): Likewise.
11307         * tests/test-truncf1.c (main): Likewise.
11308         * tests/test-truncl.c (main): Likewise.
11309
11310         isnanl: work around icc bug
11311         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
11312
11313 2010-11-03  Eric Blake  <eblake@redhat.com>
11314
11315         tests: fix compiler warnings
11316         * tests/test-getopt.h (test_getopt): Fix condition.
11317         * tests/test-getopt_long.h (test_getopt_long): Likewise.
11318         * tests/test-pipe2.c (main): Likewise.
11319         * tests/test-quotearg-simple.c (main): Avoid icc warning.
11320
11321         utimens: fix broken m4 test
11322         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
11323
11324 2010-10-28  Bruno Haible  <bruno@clisp.org>
11325
11326         posix_spawn*, getdtablesize: Relax license.
11327         * modules/posix_spawn (License): Change to LGPLv2+.
11328         * modules/posix_spawnp (License): Likewise.
11329         * modules/posix_spawn-internal (License): Likewise.
11330         * modules/posix_spawnattr_init (License): Likewise.
11331         * modules/posix_spawnattr_getflags (License): Likewise.
11332         * modules/posix_spawnattr_setflags (License): Likewise.
11333         * modules/posix_spawnattr_getpgroup (License): Likewise.
11334         * modules/posix_spawnattr_setpgroup (License): Likewise.
11335         * modules/posix_spawnattr_getschedparam (License): Likewise.
11336         * modules/posix_spawnattr_setschedparam (License): Likewise.
11337         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
11338         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
11339         * modules/posix_spawnattr_getsigdefault (License): Likewise.
11340         * modules/posix_spawnattr_setsigdefault (License): Likewise.
11341         * modules/posix_spawnattr_getsigmask (License): Likewise.
11342         * modules/posix_spawnattr_setsigmask (License): Likewise.
11343         * modules/posix_spawnattr_destroy (License): Likewise.
11344         * modules/posix_spawn_file_actions_init (License): Likewise.
11345         * modules/posix_spawn_file_actions_addclose (License): Likewise.
11346         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
11347         * modules/posix_spawn_file_actions_addopen (License): Likewise.
11348         * modules/posix_spawn_file_actions_destroy (License): Likewise.
11349         * modules/getdtablesize (License): Likewise.
11350         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
11351
11352 2010-10-26  Bruno Haible  <bruno@clisp.org>
11353
11354         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
11355         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
11356         Cygwin and mingw.
11357         Suggested by Eric Blake.
11358
11359 2010-10-26  Bruno Haible  <bruno@clisp.org>
11360
11361         stdio: Work around compilation error due to renameat() on Solaris 10.
11362         * lib/stdio.in.h: Include <unistd.h> on Solaris.
11363         * lib/renameat.c: Don't include <unistd.h> here.
11364         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
11365         Reported by Paul Eggert and Eric Blake.
11366
11367 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
11368
11369         renameat: port to Solaris 10, which declares renameat in unistd.h
11370
11371         * lib/renameat.c: Include unistd.h before stdio.h, because
11372         Solaris 10 declares renameat in unistd.h.  Problem encountered
11373         when building GNU tar 1.24 on Solaris 10.
11374
11375 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
11376
11377         fdopendir: fix C89 compilation
11378         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
11379         compilers.
11380
11381 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
11382
11383         inttostr: simplify by removing unnecessary redundancy
11384         * lib/anytostr.c: Don't include verify.h.
11385         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
11386         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
11387         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
11388         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
11389         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
11390         Likewise.
11391         * modules/inttostr (Depends-on): Remove 'verify'.
11392
11393 2010-10-23  Bruno Haible  <bruno@clisp.org>
11394
11395         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
11396         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
11397         Reported by Eric Blake.
11398
11399 2010-10-23  Bruno Haible  <bruno@clisp.org>
11400
11401         Tests: Fix LOCALE_JA on MirBSD 10.
11402         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
11403         to an UTF-8 locale.
11404         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
11405         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
11406         Reported by Eric Blake.
11407
11408 2010-10-21  Bruno Haible  <bruno@clisp.org>
11409
11410         nl_langinfo test: Avoid test failure on NetBSD 5.
11411         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
11412         Reported by Eric Blake.
11413
11414 2010-10-21  Eric Blake  <eblake@redhat.com>
11415
11416         c-stack: work around libsigsegv 2.8 bug
11417         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
11418         overflow on at least PowerPC64.
11419
11420 2010-10-17  Bruno Haible  <bruno@clisp.org>
11421
11422         userspec: Drop redundant file.
11423         * modules/userspec (Files): Remove lib/inttostr.h.
11424
11425 2010-10-17  Bruno Haible  <bruno@clisp.org>
11426
11427         nl_langinfo tests: Silence some warnings.
11428         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
11429         Reported by Jim Meyering.
11430
11431 2010-10-17  Bruno Haible  <bruno@clisp.org>
11432
11433         Make use of GCC's attribute __alloc_size__.
11434         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
11435         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
11436         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
11437         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
11438         __alloc_size__.
11439         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
11440         Suggested by Jim Meyering.
11441
11442 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
11443
11444         bootstrap: anchor .gitignore entries.
11445         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
11446         with...
11447         (insert_vc_ignore): ... this new function, which prepends `/' to
11448         all .gitignore entries before passing them to
11449         insert_sorted_if_absent.
11450
11451 2010-10-16  Bruno Haible  <bruno@clisp.org>
11452
11453         nextafter: Fix configure check.
11454         * modules/nextafter (configure.ac): Correct expected prototype.
11455
11456 2010-10-16  Bruno Haible  <bruno@clisp.org>
11457
11458         termios: Update documentation.
11459         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
11460
11461 2010-10-16  Bruno Haible  <bruno@clisp.org>
11462
11463         tests: Make them compile with TinyCC.
11464         * tests/test-strstr.c (main): Remove parentheses around array
11465         initializer.
11466
11467 2010-10-15  Eric Blake  <eblake@redhat.com>
11468
11469         ignore-value: make header idempotent
11470         * lib/ignore-value.h: Add double-inclusion guards.
11471         Reported by Stefan Berger.
11472
11473 2010-10-15  Jim Meyering  <meyering@redhat.com>
11474
11475         GNUmakefile: handle "stable" target, not "major"
11476         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
11477         lists in maint.mk and announce-gen.  Without this, "make stable"
11478         would fail to ensure that $(VERSION) is up to date.
11479
11480 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
11481
11482         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
11483         & co.
11484
11485 2010-10-14  Bruno Haible  <bruno@clisp.org>
11486
11487         vasnprintf: Don't set errno to 0.
11488         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
11489         block that sets it to 0.
11490         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
11491
11492 2010-10-14  Bruno Haible  <bruno@clisp.org>
11493
11494         socketlib: Fix.
11495         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
11496         gl_PREREQ_SYS_H_WINSOCK2.
11497         Reported by Ian Beckwith <ianb@erislabs.net>.
11498
11499 2010-10-13  Jim Meyering  <meyering@redhat.com>
11500
11501         test-select-stdin.c: avoid warn_unused_result warnings
11502         * tests/test-select-stdin.c: Include "macros.h".
11503         ASSERT that read and fflush succeed.
11504
11505 2010-10-13  Jim Meyering  <meyering@redhat.com>
11506
11507         git-version-gen: do require git-VC'd files in cwd
11508         * build-aux/git-version-gen: Reject a git version string
11509         if there are no commits associated with the current directory.
11510         This avoids an unlikely false-positive (unrelated dir whose parent
11511         repository also contains a tag matching v*), as pointed out
11512         by Giuseppe Scrivano in
11513         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
11514
11515 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
11516
11517         argv-iter: omit nonconforming declaration
11518         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
11519         enum arg_iter_err declaration, which doesn't conform to C99.
11520         Solaris 10 cc warns about this.
11521
11522 2010-10-13  Eric Blake  <eblake@redhat.com>
11523
11524         termios: fix compilation on mingw
11525         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
11526         (gl_TERMIOS_H): Adjust it on mingw.
11527         * modules/termios (Makefile.am): Substitute new key.
11528         * lib/termios.in.h (includes): Make include_next conditional.
11529         * doc/posix-headers/termios.texi (termios.h): Update
11530         documentation.
11531         Reported by Daniel P. Berrange.
11532
11533 2010-10-13  Jim Meyering  <meyering@redhat.com>
11534
11535         git-version-gen: don't require that .git/ be in the current dir
11536         * build-aux/git-version-gen: Adjust this script so that it works
11537         when run from any working directory beneath the top-level .git/-
11538         containing directory.  Inspired by a patch from Giuseppe Scrivano,
11539         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
11540
11541         test-select: avoid warn_unused_result warnings
11542         * tests/test-select.c: Include "macros.h".
11543         ASSERT that each call to read, write, and pipe succeeds.
11544         While not technically required, also check each "close".
11545         * modules/select-tests (Files): Add tests/macros.h.
11546
11547         test-symlinkat: remove declaration of unused local
11548         * tests/test-symlinkat.c (main): Remove unused local, "buf".
11549
11550         test-inttostr: avoid shadowing warnings
11551         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
11552         and use malloc rather than the stack for the same reason as
11553         mentioned in the comment justifying the other allocation.
11554
11555 2010-10-11  Bruno Haible  <bruno@clisp.org>
11556
11557         stdlib: Allow multiple gnulib generated replacements to coexist.
11558         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
11559         Reported by Sam Steingold <sds@gnu.org>.
11560
11561 2010-10-11  Jim Meyering  <meyering@redhat.com>
11562
11563         fix a documentation typo
11564         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
11565
11566 2010-10-11  Eric Blake  <eblake@redhat.com>
11567
11568         futimens: work around Solaris 11 bug
11569         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
11570         * tests/test-futimens.h (test_futimens): Enhance, rather than
11571         weaken test.
11572         * doc/posix-functions/futimens.texi (futimens): Document the bug.
11573
11574 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
11575
11576         Indentation.
11577         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
11578         higher-level operators more to the left.
11579
11580 2010-10-11  Jim Meyering  <meyering@redhat.com>
11581
11582         test-futimens: avoid unwarranted test failure on Solaris 5.11
11583         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
11584         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
11585         because it tries to dereference the NULL name argument.
11586
11587 2010-10-11  Bruno Haible  <bruno@clisp.org>
11588
11589         Indentation.
11590         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
11591         indentation.
11592
11593 2010-10-11  Jim Meyering  <meyering@redhat.com>
11594
11595         spawn.in.h: make indentation consistent with parentheses
11596         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
11597         Make indentation consistent with parentheses.
11598
11599 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
11600
11601         Fix mismatched parens in previous commit
11602         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
11603         parens.
11604
11605 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
11606
11607         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
11608
11609         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
11610         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
11611         * lib/malloca.c: Include "verify.h".
11612         (verify1): Remove, replacing with a verify call.
11613         * lib/relocwrapper.c (verify1): Likewise.
11614         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
11615         Likewise.
11616         * modules/malloca (Depends-on): Add 'verify'.
11617         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
11618         * modules/vasnprintf (Depends-on): Add 'verify'.
11619         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
11620         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
11621         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
11622         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
11623         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
11624         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
11625         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
11626
11627         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
11628
11629         Formerly the style was sometimes 2*X - 1, because the C standard
11630         was wrongly thought to disallow ?: in integral constant expressions.
11631         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
11632         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
11633         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
11634         * lib/stdint.in.h (_verify_intmax_size): Likewise.
11635         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
11636         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
11637         verify that time_t cannot be floating.
11638
11639 2010-10-08  Eric Blake  <eblake@redhat.com>
11640
11641         time: enforce recent POSIX ruling that time_t is integral
11642         * lib/time.in.h (__time_t_must_be_integral): Detect any
11643         problematic systems, allowing the rest of gnulib to assume POSIX.
11644
11645 2010-10-08  Jim Meyering  <meyering@redhat.com>
11646
11647         fdopendir: fix a bug on systems lacking openat and /proc support
11648         OpenBSD 4.7 is one such system.  The most noticeable effect was
11649         failure of any application making nontrivial use of fts: rm, du,
11650         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
11651           ./rm: traversal failed: `a': Bad file descriptor
11652         Debugging that, you see that even though FD 6 was closed just
11653         prior to the opendir call in fd_clone_opendir, its resulting
11654         dir->dd_fd was 8, rather than the expected value of 6:
11655
11656         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
11657         93                close (fd);
11658         (gdb) n
11659         94                dir = fd_clone_opendir (dupfd);
11660         (gdb) n
11661         95                saved_errno = errno;
11662         (gdb) p dir->dd_fd
11663         $11 = 8
11664
11665         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
11666         The problem is that on OpenBSD, fd_clone_opendir has to resort
11667         to using the old-style save/restore CWD mechanism, due to its
11668         lack of openat/proc support, and *that* would steal the FD (6)
11669         that opendir was supposed to use.
11670
11671         The fix is to squirrel away the desired FD so that save_cwd uses a
11672         different one, and then free the dest FD right before calling opendir.
11673         That guarantees opendir will use the required file descriptor.
11674
11675         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
11676
11677 2010-10-08  Bruno Haible  <bruno@clisp.org>
11678
11679         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
11680         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
11681
11682 2010-10-08  Bruno Haible  <bruno@clisp.org>
11683
11684         nanosleep: Make replacement POSIX compliant.
11685         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
11686         is out of range.
11687         Reported by Jim Meyering.
11688
11689 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
11690
11691         bootstrap: add hook for altering gnulib.mk, for Bison
11692         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
11693         the Bison bootstrapping process can rewrite file names and variables
11694         in this file before later parts of 'bootstrap' use the file.
11695         Bison wants to include lib/gnulib.mk from the top-level makefile,
11696         so it needs the file names in this file to be relative to the top
11697         level, not relative to lib; plus it needs variable names to be
11698         rewritten.
11699         (slurp): Use the new function.
11700
11701         bootstrap: reformat for readability
11702         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
11703
11704 2010-10-08  Eric Blake  <eblake@redhat.com>
11705
11706         docs: update cygwin progress
11707         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
11708         1.7.7.
11709         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
11710         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
11711         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
11712         * doc/posix-functions/carg.texi (carg): Likewise.
11713         * doc/posix-functions/cargf.texi (cargf): Likewise.
11714         * doc/posix-functions/casin.texi (casin): Likewise.
11715         * doc/posix-functions/casinf.texi (casinf): Likewise.
11716         * doc/posix-functions/casinh.texi (casinh): Likewise.
11717         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
11718         * doc/posix-functions/catan.texi (catan): Likewise.
11719         * doc/posix-functions/catanf.texi (catanf): Likewise.
11720         * doc/posix-functions/catanh.texi (catanh): Likewise.
11721         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
11722         * doc/posix-functions/ccos.texi (ccos): Likewise.
11723         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
11724         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
11725         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
11726         * doc/posix-functions/cexp.texi (cexp): Likewise.
11727         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
11728         * doc/posix-functions/cimag.texi (cimag): Likewise.
11729         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
11730         * doc/posix-functions/clog.texi (clog): Likewise.
11731         * doc/posix-functions/clogf.texi (clogf): Likewise.
11732         * doc/posix-functions/conj.texi (conj): Likewise.
11733         * doc/posix-functions/conjf.texi (conjf): Likewise.
11734         * doc/posix-functions/cpow.texi (cpow): Likewise.
11735         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
11736         * doc/posix-functions/cproj.texi (cproj): Likewise.
11737         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
11738         * doc/posix-functions/creal.texi (creal): Likewise.
11739         * doc/posix-functions/crealf.texi (crealf): Likewise.
11740         * doc/posix-functions/csin.texi (csin): Likewise.
11741         * doc/posix-functions/csinf.texi (csinf): Likewise.
11742         * doc/posix-functions/csinh.texi (csinh): Likewise.
11743         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
11744         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
11745         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
11746         * doc/posix-functions/ctan.texi (ctan): Likewise.
11747         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
11748         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
11749         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
11750         * doc/posix-headers/complex.texi (complex.h): Likewise.
11751
11752 2010-10-07  Jim Meyering  <meyering@redhat.com>
11753
11754         parse-datetime: avoid compilation failure on OpenBSD 4.7
11755         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
11756         This works around a compilation failure on OpenBSD 4.7:
11757         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
11758
11759 2010-10-07  Eric Blake  <eblake@redhat.com>
11760
11761         docs: update cygwin progress
11762         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
11763         1.7.6.
11764         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
11765         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
11766         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
11767         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
11768         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
11769         Likewise.
11770         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
11771         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
11772         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
11773         Likewise.
11774         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
11775         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
11776         Likewise.
11777         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
11778         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
11779         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
11780         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
11781         Likewise.
11782         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
11783         Likewise.
11784         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
11785
11786         docs: update parse-datetime history
11787         * doc/parse-datetime.texi (Authors of parse_datetime): Better
11788         documentation of this function's history and alternatives.
11789
11790         cygwin: use more robust version check
11791         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
11792         exclude an eventual cygwin 1.9.1.
11793         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
11794         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
11795         (gl_FUNC_STRCASESTR): Likewise.
11796         Reported by Bruno Haible.
11797
11798 2010-10-06  Bruno Haible  <bruno@clisp.org>
11799
11800         string, sys_select: Avoid #including large headers unless necessary.
11801         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
11802         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
11803         OSF/1, BeOS, Haiku.
11804         Reported by Jim Meyering.
11805
11806 2010-10-05  Eric Blake  <eblake@redhat.com>
11807
11808         memmem, strstr, strcasestr: fix bug with long periodic needle
11809         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
11810         periodic needle having false positive.
11811         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
11812         and cygwin 1.7.7.
11813         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
11814         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
11815         (gl_FUNC_STRCASESTR): Likewise.
11816         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
11817         * tests/test-memmem.c (main): Expose the bug.
11818         * tests/test-strcasestr.c (main): Likewise.
11819         * tests/test-strstr.c (main): Likewise.
11820         * tests/test-c-strcasestr.c (main): Likewise.
11821         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
11822         * doc/posix-functions/strstr.texi (strstr): Likewise.
11823         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
11824         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
11825
11826 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
11827
11828         parse-datetime: do some more renaming
11829         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
11830         parse_datetime, not get_date.  Mention the renaming.
11831         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
11832         in comments.
11833         * m4/bison.m4: Likewise.
11834
11835 2010-10-05  Eric Blake  <eblake@redhat.com>
11836
11837         parse-datetime: better name than get_date
11838         * NEWS: Reword the deprecation notice.
11839         * modules/get_date: Rename to modules/parse-datetime.
11840         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
11841         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
11842         * lib/get_date.y: Rename to lib/parse-datetime.y.
11843         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
11844         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
11845         * doc/getdate.texi: Provide fallback wrapper.
11846         * lib/getdate.h: Move guts, and wrap...
11847         * lib/parse-datetime.h: ...new file.
11848         * lib/parse-datetime.y (get_date): Rename...
11849         (parse_datetime): ...to this.
11850         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
11851         (gl_PARSE_DATETIME): ...to this.
11852         * doc/posix-functions/getdate.texi (get_date): Provide fallback
11853         documentation.
11854         * modules/getdate (Files): Provide fallback docs and header.
11855         (Notice, Depends-on): Update references.
11856         * tests/test-parse-datetime.c: Likewise.
11857         * DEPENDENCIES: Likewise.
11858         * MODULES.html.sh (Date and time <time.h>): Likewise.
11859         * doc/parse-datetime.texi (Date input formats)
11860         (Authors of parse_datetime): Likewise.
11861         * modules/parse-datetime (Files, configure.ac, Makefile.am)
11862         (Include): Likewise.
11863         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
11864         * gnulib-tool: Likewise.
11865         * m4/bison.m4 (gl_BISON): Likewise.
11866         Suggested by Bruno Haible.
11867
11868 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
11869
11870         more ports to Solaris tr, which needs [] around ranges
11871         * gnulib-tool: Solaris tr needs [] around ranges.
11872         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
11873         * tests/test-pipe-filter-gi1.c (main): Likewise.
11874         * tests/test-pipe-filter-ii1.c (main): Likewise.
11875
11876 2010-10-05  Eric Blake  <eblake@redhat.com>
11877
11878         bootstrap: fix Solaris regression
11879         * build-aux/bootstrap (check_versions): Solaris tr still needs []
11880         around ranges.
11881         Reported by Pádraig Brady.
11882
11883         bootstrap: work with pkg-config
11884         * build-aux/bootstrap (check_versions): Also transliterate - in
11885         prerequisite name.
11886         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
11887         prerequisites that were already found, to avoid confusion.
11888         Reported by Justin Clift.
11889
11890         faccessat: remove unused wrappers
11891         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
11892         presence of these wrappers dragged in -lgen on Solaris.
11893         Reported by Clemens Brogi; fix suggested by Paul Eggert.
11894
11895 2010-10-05  Jim Meyering  <meyering@redhat.com>
11896
11897         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
11898         * Makefile (sc_pragma_columns): New syntax-check rule.
11899
11900 2010-10-04  Bruno Haible  <bruno@clisp.org>
11901
11902         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
11903         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
11904         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
11905         Reported by Bruce Korb and Eric Blake.
11906
11907 2010-10-04  Bruno Haible  <bruno@clisp.org>
11908
11909         threadlib: Make option --with-libpth-prefix work.
11910         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
11911         use $LIBPTH, not just -lpth.
11912
11913 2010-10-04  Bruno Haible  <bruno@clisp.org>
11914
11915         Avoid line length limitation from HP NonStop system header files.
11916         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
11917         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
11918         * lib/ctype.in.h: Likewise.
11919         * lib/dirent.in.h: Likewise.
11920         * lib/errno.in.h: Likewise.
11921         * lib/fcntl.in.h: Likewise.
11922         * lib/float.in.h: Likewise.
11923         * lib/getopt.in.h: Likewise.
11924         * lib/iconv.in.h: Likewise.
11925         * lib/inttypes.in.h: Likewise.
11926         * lib/langinfo.in.h: Likewise.
11927         * lib/locale.in.h: Likewise.
11928         * lib/math.in.h: Likewise.
11929         * lib/netdb.in.h: Likewise.
11930         * lib/netinet_in.in.h: Likewise.
11931         * lib/poll.in.h: Likewise.
11932         * lib/pthread.in.h: Likewise.
11933         * lib/pty.in.h: Likewise.
11934         * lib/sched.in.h: Likewise.
11935         * lib/se-selinux.in.h: Likewise.
11936         * lib/search.in.h: Likewise.
11937         * lib/signal.in.h: Likewise.
11938         * lib/spawn.in.h: Likewise.
11939         * lib/stdarg.in.h: Likewise.
11940         * lib/stddef.in.h: Likewise.
11941         * lib/stdint.in.h: Likewise.
11942         * lib/stdio.in.h: Likewise.
11943         * lib/stdlib.in.h: Likewise.
11944         * lib/string.in.h: Likewise.
11945         * lib/strings.in.h: Likewise.
11946         * lib/sys_file.in.h: Likewise.
11947         * lib/sys_ioctl.in.h: Likewise.
11948         * lib/sys_select.in.h: Likewise.
11949         * lib/sys_socket.in.h: Likewise.
11950         * lib/sys_stat.in.h: Likewise.
11951         * lib/sys_time.in.h: Likewise.
11952         * lib/sys_times.in.h: Likewise.
11953         * lib/sys_utsname.in.h: Likewise.
11954         * lib/sys_wait.in.h: Likewise.
11955         * lib/sysexits.in.h: Likewise.
11956         * lib/termios.in.h: Likewise.
11957         * lib/time.in.h: Likewise.
11958         * lib/unistd.in.h: Likewise.
11959         * lib/wchar.in.h: Likewise.
11960         * lib/wctype.in.h: Likewise.
11961         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
11962         * modules/ctype (Makefile.am): Likewise.
11963         * modules/dirent (Makefile.am): Likewise.
11964         * modules/errno (Makefile.am): Likewise.
11965         * modules/fcntl-h (Makefile.am): Likewise.
11966         * modules/float (Makefile.am): Likewise.
11967         * modules/getopt-posix (Makefile.am): Likewise.
11968         * modules/iconv-h (Makefile.am): Likewise.
11969         * modules/inttypes (Makefile.am): Likewise.
11970         * modules/langinfo (Makefile.am): Likewise.
11971         * modules/locale (Makefile.am): Likewise.
11972         * modules/math (Makefile.am): Likewise.
11973         * modules/netdb (Makefile.am): Likewise.
11974         * modules/netinet_in (Makefile.am): Likewise.
11975         * modules/poll-h (Makefile.am): Likewise.
11976         * modules/pthread (Makefile.am): Likewise.
11977         * modules/pty (Makefile.am): Likewise.
11978         * modules/sched (Makefile.am): Likewise.
11979         * modules/search (Makefile.am): Likewise.
11980         * modules/selinux-h (Makefile.am): Likewise.
11981         * modules/signal (Makefile.am): Likewise.
11982         * modules/spawn (Makefile.am): Likewise.
11983         * modules/stdarg (Makefile.am): Likewise.
11984         * modules/stddef (Makefile.am): Likewise.
11985         * modules/stdint (Makefile.am): Likewise.
11986         * modules/stdio (Makefile.am): Likewise.
11987         * modules/stdlib (Makefile.am): Likewise.
11988         * modules/string (Makefile.am): Likewise.
11989         * modules/strings (Makefile.am): Likewise.
11990         * modules/sys_file (Makefile.am): Likewise.
11991         * modules/sys_ioctl (Makefile.am): Likewise.
11992         * modules/sys_select (Makefile.am): Likewise.
11993         * modules/sys_socket (Makefile.am): Likewise.
11994         * modules/sys_stat (Makefile.am): Likewise.
11995         * modules/sys_time (Makefile.am): Likewise.
11996         * modules/sys_times (Makefile.am): Likewise.
11997         * modules/sys_utsname (Makefile.am): Likewise.
11998         * modules/sys_wait (Makefile.am): Likewise.
11999         * modules/sysexits (Makefile.am): Likewise.
12000         * modules/termios (Makefile.am): Likewise.
12001         * modules/time (Makefile.am): Likewise.
12002         * modules/unistd (Makefile.am): Likewise.
12003         * modules/wchar (Makefile.am): Likewise.
12004         * modules/wctype (Makefile.am): Likewise.
12005
12006 2010-10-04  Bruno Haible  <bruno@clisp.org>
12007
12008         read-file tests: Avoid a test failure on NonStop Kernel.
12009         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
12010         a regular file.
12011         Reported by Joachim Schmitz <schmitz@hp.com>.
12012
12013 2010-10-03  Bruno Haible  <bruno@clisp.org>
12014
12015         gnulib-tool: Fixes for --create-testdir with --libtool.
12016         * gnulib-tool (func_get_automake_snippet): Don't augment
12017         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
12018         an executable.
12019         (func_create_testdir): Handle module 'alloca' like func_import.
12020         Reported by Bruce Korb <bruce.korb@gmail.com>.
12021
12022 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
12023
12024         Avoid some lines longer than 80 characters.
12025         * lib/stdint.in.h: Break long comment lines.
12026         * lib/math.in.h: Likewise.
12027         (_GL_NUM_UINT_WORDS): New macro, for readability.
12028         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
12029         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
12030         * lib/stdlib.in.h: Likewise.
12031         * lib/spawn.in.h: Likewise.
12032         * lib/sys_socket.in.h: Update an URL.
12033         * lib/sys_stat.in.h: Break long line.
12034
12035 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
12036
12037         Improve pmccabe2html.
12038         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
12039         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
12040         when the sources change. Remove the line in the HTML about "Used
12041         ranges" (which implied that there might be other unused ranges),
12042         rename "Resume" to "Summary" (easier to understand for more users).
12043         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
12044         styles, and some unnecessary blank lines.
12045
12046 2010-10-03  Bruno Haible  <bruno@clisp.org>
12047             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
12048
12049         acl: Add support for ACLs on NonStop Kernel.
12050         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
12051         Check whether the function aclsort() exists.
12052         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
12053         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
12054         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
12055         (acl_nontrivial [HAVE_ACLSORT]: New function.
12056         (file_has_acl): Implement for NonStop Kernel.
12057         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
12058         (qset_acl): Implement for NonStop Kernel.
12059         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
12060         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
12061         (main): Implement for NonStop Kernel.
12062         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
12063         Kernel. Handle this flavor.
12064         * tests/test-set-mode-acl.sh: Likewise.
12065         * tests/test-copy-acl.sh: Likewise.
12066         * tests/test-copy-file.sh: Likewise.
12067
12068 2010-10-03  Bruno Haible  <bruno@clisp.org>
12069
12070         Info about ACLs on NonStop Kernel.
12071         * doc/acl-resources.txt: Add info about NonStop Kernel.
12072         References by Joachim Schmitz <schmitz@hp.com>.
12073
12074 2010-10-02  Bruno Haible  <bruno@clisp.org>
12075
12076         Define missing EDQUOT on NonStop Kernel.
12077         * lib/errno.in.h (EDQUOT): Assign a value if missing.
12078         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
12079         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
12080         missing.
12081         * doc/posix-headers/errno.texi: Mention the NSK bug.
12082         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
12083         Reported by Joachim Schmitz <schmitz@hp.com>.
12084
12085 2010-10-02  Bruno Haible  <bruno@clisp.org>
12086
12087         Update doc for POSIX:2008.
12088         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
12089         Update URL of POSIX specification.
12090
12091 2010-10-02  Bruno Haible  <bruno@clisp.org>
12092
12093         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
12094         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
12095         from gnulib, not from Automake.
12096
12097 2010-10-02  Bruno Haible  <bruno@clisp.org>
12098
12099         New module 'system-posix'.
12100         * modules/system-posix: New file.
12101         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
12102         module is present.
12103         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
12104         GNULIB_SYSTEM_POSIX.
12105         * modules/stdlib (Depends-on): Remove sys_wait.
12106         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
12107         * doc/posix-functions/system.texi: Mention the new module.
12108         * doc/posix-headers/stdlib.texi: Likewise.
12109         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
12110         define test_sys_wait_macros to a no-op.
12111         Reported by Sam Steingold <sds@gnu.org>.
12112
12113 2010-09-30  Bruno Haible  <bruno@clisp.org>
12114
12115         More renaming from 'getdate' to 'get_date'.
12116         * doc/get_date.texi: Renamed from doc/getdate.texi.
12117         * modules/get_date (Files): Update.
12118         * MODULES.html.sh (Date and time <time.h>): Update.
12119         * DEPENDENCIES: Update.
12120         * gnulib-tool: Update comment.
12121         * m4/bison.m4 (gl_BISON): Likewise.
12122         * m4/get_date.m4 (gl_GET_DATE): Likewise.
12123
12124 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
12125
12126         bootstrap: support ACLOCAL_FLAGS during aclocal
12127         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
12128         can add additional -I dir for third-party .m4 files.
12129
12130 2010-09-30  Eric Blake  <eblake@redhat.com>
12131
12132         bootstrap: use glibtoolize on MacOS
12133         * build-aux/bootstrap (check_versions): Convert libtool into
12134         libtoolize.
12135         (tool search): Move libtool check earlier, and look for
12136         glibtoolize for MacOS.
12137         (gnulib_tool_options): Auto-add --libtool when appropriate.
12138         Reported by Justin Clift.
12139
12140         poll: fix typo that broke test on MacOS
12141         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
12142         Reported by Justin Clift.
12143
12144         getdate: rename to get_date
12145         Note: getdate.h is not renamed, to minimize client impact.
12146         * modules/getdate: Mark obsolete.  Move old contents...
12147         * modules/get_date: ...to new module name.
12148         * modules/getdate-tests: Move...
12149         * modules/get_date-tests: ...here.
12150         * m4/getdate.m4: Move...
12151         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
12152         * lib/getdate.y: Move...
12153         * lib/get_date.y: ...here.
12154         * tests/test-getdate.c: Move...
12155         * tests/test-get_date.c: ...here.
12156         * doc/posix-functions/getdate.texi (getdate): Update name.
12157         * NEWS: Mention the change.
12158
12159 2010-09-29  Bruno Haible  <bruno@clisp.org>
12160
12161         Separate the module 'waitpid' from the module 'sys_wait'.
12162         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
12163         present.
12164         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
12165         gl_MODULE_INDICATOR_FOR_TESTS.
12166         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
12167         * modules/sys_wait (Depends-on): Remove waitpid.
12168         (Makefile.am): Substitute GNULIB_WAITPID.
12169         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
12170         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
12171         signature only if the 'waitpid' module is present.
12172         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
12173         * NEWS: Mention the change.
12174         * modules/grantpt (Depends-on): Add waitpid.
12175         * modules/wait-process (Depends-on): Likewise.
12176
12177 2010-09-29  Bruno Haible  <bruno@clisp.org>
12178
12179         More tests for module 'sys_wait'.
12180         * modules/sys_wait-c++-tests: New file.
12181         * tests/test-sys_wait-c++.cc: New file.
12182         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
12183         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
12184
12185 2010-09-29  Bruno Haible  <bruno@clisp.org>
12186
12187         New module 'waitpid'.
12188         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
12189         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
12190         Don't include <process.h>.
12191         (waitpid): Declare only, using modern idiom.
12192         * m4/waitpid.m4: New file.
12193         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
12194         * modules/waitpid: New file.
12195         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
12196         (Makefile.am): Update.
12197         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
12198
12199 2010-09-28  Bruno Haible  <bruno@clisp.org>
12200
12201         poll: Assume ANSI C.
12202         * lib/poll.c (poll): Use an ANSI C declaration.
12203
12204 2010-09-28  Bruno Haible  <bruno@clisp.org>
12205
12206         poll-h: Create poll.h on all platforms.
12207         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
12208         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
12209         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
12210         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
12211         (gl_REPLACE_POLL_H): Don't set POLL_H.
12212         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
12213         * modules/poll-h (Depends-on): Add include_next.
12214         (Makefile.am): Create poll.h unconditionally. Substitute also
12215         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
12216
12217 2010-09-28  Bruno Haible  <bruno@clisp.org>
12218
12219         Tests for module 'poll-h'.
12220         * modules/poll-h-c++-tests: New file.
12221         * tests/test-poll-h-c++.cc: New file.
12222
12223         Tests for module 'poll-h'.
12224         * modules/poll-h-tests: New file.
12225         * tests/test-poll-h.c: New file.
12226
12227 2010-09-28  Bruno Haible  <bruno@clisp.org>
12228
12229         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
12230         * modules/poll-h (Depends-on): Add 'extensions'.
12231
12232 2010-09-28  Bruno Haible  <bruno@clisp.org>
12233
12234         New module 'poll-h'.
12235         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
12236         (poll): Use modern idiom.
12237         * modules/poll-h: New file.
12238         * modules/poll (Files): Remove lib/poll.in.h.
12239         (Depends-on): Add poll-h.
12240         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
12241         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
12242         * m4/poll_h.m4: New file.
12243         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
12244         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
12245         and invoke gl_REPLACE_POLL_H.
12246         * lib/poll.c: Use common idiom.
12247         * tests/test-poll.c: Likewise.
12248         * doc/posix-headers/poll.texi: Mention the poll-h module.
12249         Suggested by Eric Blake.
12250
12251 2010-09-26  Bruno Haible  <bruno@clisp.org>
12252
12253         sys_wait: Implement WSTOPSIG.
12254         * lib/sys_wait.in.h (WSTOPSIG): New macro.
12255         Reported by Simon Josefsson.
12256
12257 2010-09-26  Simon Josefsson  <simon@josefsson.org>
12258
12259         stdlib, sys_wait: Avoid compilation error on mingw.
12260         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
12261
12262 2010-09-26  Bruno Haible  <bruno@clisp.org>
12263
12264         stdlib tests: Avoid code duplication.
12265         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
12266         * modules/sys_wait-tests (Files): Likewise.
12267         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
12268         * tests/test-stdlib.c: Include test-sys_wait.h.
12269         (main): Invoke test_sys_wait_macros.
12270         * tests/test-sys_wait.c: Include test-sys_wait.h.
12271         (main): Invoke test_sys_wait_macros.
12272
12273 2010-09-25  Simon Josefsson  <simon@josefsson.org>
12274
12275         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
12276         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
12277         sure Windows sockets are working before calling getaddrinfo.
12278         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
12279         * doc/gnulib.texi (Windows sockets): Fix typo.
12280
12281 2010-09-25  Bruno Haible  <bruno@clisp.org>
12282
12283         Tests for module 'regex-quote'.
12284         * modules/regex-quote-tests: New file.
12285         * tests/test-regex-quote.c: New file.
12286
12287         New module 'regex-quote'.
12288         * lib/regex-quote.h: New file.
12289         * lib/regex-quote.c: New file.
12290         * modules/regex-quote: New file.
12291         Suggested by Reuben Thomas <rrt@sc3d.org>.
12292
12293 2010-09-24  Bruno Haible  <bruno@clisp.org>
12294
12295         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
12296         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
12297
12298 2010-09-23  Bruno Haible  <bruno@clisp.org>
12299
12300         setenv: Relax license.
12301         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
12302         Blake.
12303         Requested by Eric Blake.
12304
12305 2010-09-22  Bruno Haible  <bruno@clisp.org>
12306
12307         termios: Relax license.
12308         * modules/termios (License): Change to LGPLv2+.
12309         Requested by Eric Blake.
12310
12311 2010-09-22  Bruno Haible  <bruno@clisp.org>
12312
12313         threadlib: Allow the package to change the default to 'no'.
12314         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
12315         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
12316         Reported by Paul Eggert.
12317
12318 2010-09-22  Pádraig Brady  <P@draigbrady.com>
12319             Bruno Haible  <bruno@clisp.org>
12320
12321         Fix endless loop in mbmemcasecoll.
12322         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
12323         byte.
12324         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
12325
12326 2010-09-22  Bruno Haible  <bruno@clisp.org>
12327
12328         Tests for module 'memcoll'.
12329         * modules/memcoll-tests: New file.
12330         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
12331
12332         memcoll, xmemcoll: Clarify size vs. length.
12333         * modules/memcoll.c (memcoll0): Clarify specification.
12334         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
12335         passed to collate_error.
12336
12337 2010-09-22  Bruno Haible  <bruno@clisp.org>
12338
12339         Tests for module 'memcasecmp'.
12340         * modules/memcasecmp-tests: New file.
12341         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
12342
12343 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
12344
12345         * lib/pthread.in.h: Add split double-inclusion guard, and include
12346         system <pthread.h> if there is one.  Use @@-style as in other
12347         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
12348         pthread.h doesn't.
12349         (pthread_mutexattr_destroy, pthread_mutexattr_init):
12350         (pthread_mutexattr_settype, pthread_mutex_trylock):
12351         New static inline functions, if there's no system <pthread.h>.
12352         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
12353         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
12354         Approximate with mutexes if the system lacks spinlocks, as in
12355         MacOS.
12356         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
12357         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
12358         @@-style.  Check for spinlocks separately.
12359         (gl_PTHREAD_DEFAULTS): New macro.
12360         * modules/pthread: Redo to use a more typical style for in.h files.
12361
12362 2010-09-21  Eric Blake  <eblake@redhat.com>
12363
12364         net_if: enhance tests
12365         * tests/test-net_if.c (main): Move signature checks earlier.
12366         Print failures to stderr.
12367         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
12368         Document the bug that we do not yet fix.
12369
12370 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
12371
12372         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
12373         about gnulib, not GSS.
12374
12375 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
12376
12377         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
12378         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
12379         for Emacs.
12380         * build-aux/pmccabe2html: Make Makefile.am example code more
12381         cut-and-paste friendly.
12382
12383 2010-09-21  Simon Josefsson  <simon@josefsson.org>
12384
12385         * tests/test-net_if.c: New file.
12386         * modules/net_if-tests: New file.
12387
12388 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
12389
12390         pthread: add pthread_spin_destroy
12391         * lib/pthread.in.h (pthread_spin_destroy): New function.
12392
12393 2010-09-19  Bruno Haible  <bruno@clisp.org>
12394
12395         gnulib-tool: Fix --help output.
12396         * gnulib-tool (func_usage): Fix help message.
12397         Reported by Reuben Thomas <rrt@sc3d.org>.
12398
12399 2010-09-18  Jim Meyering  <meyering@redhat.com>
12400
12401         maint.mk: avoid unexpanded \n in two diagnostics
12402         * top/maint.mk (sc_prohibit_always_true_header_tests):
12403         Don't use a literal \n in a halt=... assignment.  It would not be
12404         expanded, and the two \n bytes would appear in the diagnostic output
12405         rather than the desired newline.  Use halt=$$(printf ... instead.
12406         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
12407
12408 2010-09-18  Bruno Haible  <bruno@clisp.org>
12409
12410         netinet_in: Doc tweak.
12411         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
12412         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12413
12414 2010-09-18  Jim Meyering  <meyering@redhat.com>
12415
12416         init.sh: correct an outdated comment
12417         * tests/init.sh (create_exe_shims_):  s/function/alias/
12418
12419         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
12420         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
12421         a file named "*.exe" is removed between the glob expansion and the
12422         processing of that oddly named file.
12423
12424 2010-09-17  Eric Blake  <eblake@redhat.com>
12425
12426         mirbsd: add some more support
12427         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
12428         in BSD family.
12429         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
12430         devices as OpenBSD.
12431         * m4/host-os.m4 (mirbsd): Add MirBSD.
12432
12433         tests: fix unportable assumption on sys/wait.h
12434         * tests/test-sys_wait.c (main): Relax test.
12435         * tests/test-stdlib.c (main): Likewise.
12436
12437         init.sh: accomodate directory with no .exes
12438         * tests/init.sh: Accomodate directory containing only scripts.
12439
12440         tests: avoid compiler warning
12441         * tests/test-stdlib.c (main): Use the variable.
12442
12443         fdutimens, fdutimensat: update signature, again
12444         * lib/utimens.h (gl_futimens): Delete, and move signature...
12445         (fdutimens): ...here.
12446         (fdutimensat): Rearrange signature.
12447         (lutimensat): Rename variable for clarity.
12448         * lib/fdutimensat.c (fdutimensat): Update signature.
12449         * lib/utimens.c (fdutimens): Likewise.
12450         (gl_futimens): Delete.
12451         (utimens, lutimens): Update callers.
12452         * lib/futimens.c (futimens): Likewise.
12453         * tests/test-fdutimensat.c: Likewise.
12454         * tests/test-utimens.c: Likewise.
12455         * tests/test-futimens.h: Update comment.
12456         * NEWS: Mention this.
12457         Suggested by Paul Eggert.
12458
12459 2010-09-17  Bruno Haible  <bruno@clisp.org>
12460
12461         Take over the maintenance of some older macros from Autoconf.
12462         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
12463         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
12464         GNU Autoconf.
12465         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
12466         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
12467
12468 2010-09-17  Eric Blake  <eblake@redhat.com>
12469
12470         fdutimensat: drop atflag validation
12471         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
12472         with valid fd, to close a race scenario where futimens is
12473         unsupported and FILE was replaced by a symlink.
12474         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
12475         accordingly.
12476         Suggested by Paul Eggert.
12477
12478 2010-09-16  Bruno Haible  <bruno@clisp.org>
12479
12480         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
12481         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
12482
12483 2010-09-16  Bruno Haible  <bruno@clisp.org>
12484
12485         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
12486         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
12487         login_tty exists.
12488         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12489
12490 2010-09-16  Bruno Haible  <bruno@clisp.org>
12491
12492         login_tty: Make the replacement code work on BSD systems.
12493         * lib/login_tty.c: Include <sys/ioctl.h>.
12494         (login_tty): Use ioctl TIOCSCTTY when available.
12495         * modules/login_tty (Depends-on): Add sys_ioctl.
12496         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12497
12498 2010-09-16  Bruno Haible  <bruno@clisp.org>
12499
12500         login_tty: Stricter unit test.
12501         * modules/login_tty-tests (Depends-on): Add tcgetsid.
12502         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
12503         and tcgetsid() after login_tty.
12504         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12505
12506 2010-09-16  Bruno Haible  <bruno@clisp.org>
12507
12508         New module 'tcgetsid'.
12509         * lib/tcgetsid.c: New file.
12510         * m4/tcgetsid.m4: New file.
12511         * modules/tcgetsid: New file.
12512         * modules/termios (Depends-on): Add c++defs, warn-on-use.
12513         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
12514         GNULIB_TCGETSID, HAVE_TCGETSID.
12515         * lib/termios.in.h: Include <sys/types.h>.
12516         (tcgetsid): New declaration.
12517         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
12518         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
12519         * doc/posix-functions/tcgetsid.texi: Mention the new module.
12520         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
12521
12522 2010-09-16  Bruno Haible  <bruno@clisp.org>
12523
12524         Tests for module 'termios'.
12525         * modules/termios-c++-tests: New file.
12526         * modules/termios-tests: New file.
12527         * tests/test-termios-c++.cc: New file.
12528         * tests/test-termios.c: New file.
12529
12530         New module 'termios'.
12531         * modules/termios: New file.
12532         * lib/termios.in.h: New file.
12533         * m4/termios_h.m4: New file.
12534         * doc/posix-headers/termios.texi: Mention the new module.
12535
12536 2010-09-16  Eric Blake  <eblake@redhat.com>
12537
12538         fdutimensat: add an atflag parameter
12539         * lib/fdutimensat.c (fdutimensat): Add new parameter.
12540         * lib/utimens.h (fdutimensat): Update prototype.
12541         * tests/test-fdutimensat.c: Adjust test to match.
12542         * NEWS: Document the change.
12543         Suggested by Paul Eggert.
12544
12545 2010-09-16  Bruno Haible  <bruno@clisp.org>
12546
12547         Fix typos in comments.
12548         * lib/striconveh.h: Fix typo in comment.
12549         * lib/login_tty.c (login_tty): Likewise.
12550
12551 2010-09-15  Bruno Haible  <bruno@clisp.org>
12552
12553         stdlib: clarify MirBSD WEXITSTATUS bug
12554         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
12555         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
12556
12557 2010-09-15  Eric Blake  <eblake@redhat.com>
12558
12559         stdlib: work around MirBSD WEXITSTATUS bug
12560         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
12561         * modules/stdlib (Depends-on): Add sys_wait.
12562         * tests/test-sys_wait.c (main): Enhance test.
12563         * tests/test-stdlib.c (main): Likewise.
12564         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
12565
12566         docs: mention MacOS issue with WEXITSTATUS(constant)
12567         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
12568         issue.
12569         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
12570
12571         strnlen: add tests
12572         * modules/strnlen-tests: New file.
12573         * tests/test-strnlen.c: Likewise.
12574
12575 2010-09-14  Bruno Haible  <bruno@clisp.org>
12576
12577         unistr/base: Avoid link errors when module 'libunistring' is also used.
12578         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
12579         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
12580         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
12581         Declare also when HAVE_LIBUNISTRING is set.
12582         Reported by Pádraig Brady <P@draigbrady.com>.
12583
12584 2010-09-14  Eric Blake  <eblake@redhat.com>
12585
12586         test-rawmemchr: make more robust
12587         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
12588         (Depends-on, configure.ac): Add needed prerequisites to use it.
12589         * modules/memchr-tests (Files, Depends-on, configure.ac):
12590         Likewise, to avoid implicit reliance on memchr module prereqs.
12591         * tests/test-memchr.c (main): Ensure proper masking.
12592         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
12593         reads.
12594
12595         memchr: detect glibc Alpha bug
12596         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
12597         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
12598         Alpha.
12599         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
12600         * tests/test-memchr.c (main): Enhance test.
12601         Reported by Nelson H. F. Beebe.
12602
12603 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
12604
12605         fts, getcwd, glob: audit for dirfd returning -1
12606         * lib/fts.c (opendir): Remove #define; no longer used.
12607         (opendirat): New arg PDIR_FD.  All callers changed.
12608         (fts_build, _opendir2): Use new opendirat to avoid the need for
12609         dirfd, or for checking whether dirfd returns a negative value.
12610         Don't use opendir; always use openat followed by fdopendir.
12611         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
12612         it.
12613         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
12614         returns -1 here.
12615         * modules/fts (Depends-on): Remove dirfd.
12616         * modules/getcwd (Depends-on): Likewise.
12617
12618 2010-09-13  Eric Blake  <eblake@redhat.com>
12619
12620         float: fix broken MirBSD header
12621         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
12622         * doc/posix-headers/float.texi (float.h): Document it.
12623
12624 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
12625
12626         fts: use O_NOFOLLOW to avoid race condition when opening a directory
12627         * lib/fts.c (opendirat): New arg extra_flags.
12628         (__opendir2): Use it to avoid following symlinks when opening
12629         a directory, if symlinks are not supposed to be followed.  See
12630         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
12631
12632         fdopendir: preserve argument fd before returning
12633         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
12634         (fdopendir_with_dup, fd_clone_opendir): New static functions.
12635         (fdopendir): Use them, arranging for FD to be open to the same
12636         directory that it was when it started.  (It might be temporarily
12637         closed while fdopendir is running, so this not thread- or
12638         signal-safe.)  Be careful to do the right thing even when file
12639         descriptors are scarce and dup fails with errno == EMFILE.  See
12640         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
12641
12642 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
12643
12644         regex: Pass the system regex if its only problem is 32-bit regoff_t.
12645         * NEWS: Document change.
12646         * m4/regex.m4: Disable test for regoff_t size.
12647
12648 2010-09-13  Jim Meyering  <meyering@redhat.com>
12649
12650         fts: don't operate on an invalid file descriptor after failed dup
12651         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
12652         negative file descriptor.
12653
12654 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
12655
12656         savedir: add streamsavedir, deprecate fdsavedir
12657         * NEWS: Mention deprecation of fdsavedir.
12658         * lib/savedir.c (streamsavedir): New extern function, whose name
12659         ends in "savedir" to be consistent with the others.  This differs
12660         from savedirstream in that it doesn't close its argument.  The
12661         next version of GNU tar will use this instead of fdsavedir, to
12662         avoid some race conditions and conserve file descriptors.
12663         (savedirstream): Reimplement as a wrapper around streamsavedir.
12664         (fdsavedir): Add a comment deprecating this function.  As far as
12665         I know, only GNU tar used it, and GNU tar doesn't need it any more.
12666         * lib/savedir.h (streamsavedir): New decl.
12667         (fdsavedir): Add a comment deprecating this.
12668
12669 2010-09-10  Bruno Haible  <bruno@clisp.org>
12670
12671         langinfo: Fix last commit.
12672         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
12673         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
12674         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12675
12676 2010-09-10  Bruno Haible  <bruno@clisp.org>
12677
12678         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
12679         * lib/progreloc.c (O_EXEC): Define fallback.
12680
12681 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
12682
12683         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
12684         * NEWS: Document recent changes to fcntl-h.
12685         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
12686         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
12687         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
12688         Similarly for O_SEARCH; this last was already true, but not documented.
12689         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
12690         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
12691         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
12692         Likewise.
12693         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
12694         is zero, not whether it is defined.
12695         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
12696         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
12697         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
12698
12699 2010-09-10  Bruno Haible  <bruno@clisp.org>
12700
12701         langinfo, nl_langinfo: Fix for IRIX 5.3.
12702         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
12703         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
12704         HAVE_LANGINFO_YESEXPR.
12705         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
12706         HAVE_LANGINFO_YESEXPR.
12707         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
12708         HAVE_LANGINFO_T_FMT_AMPM is 0.
12709         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
12710         HAVE_LANGINFO_YESEXPR is 0.
12711         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
12712         NOEXPR.
12713         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
12714         * doc/posix-functions/nl_langinfo.texi: Likewise.
12715         Reported by Eric Blake.
12716
12717 2010-09-10  Bruno Haible  <bruno@clisp.org>
12718
12719         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
12720         * doc/glibc-functions/login_tty.texi: Mention the include file problem
12721         on FreeBSD 8.0 and OpenBSD 4.6.
12722         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
12723         * m4/pty_h.m4 (gl_PTY_H): Likewise.
12724         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
12725         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
12726         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
12727         ac_includes_default.
12728         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12729
12730 2010-09-09  Eric Blake  <eblake@redhat.com>
12731
12732         strsignal: work around NetBSD bug
12733         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
12734         * lib/string.in.h (includes): Likewise.
12735         * doc/posix-functions/strsignal.texi (strsignal): Document the
12736         bug.
12737         Reported by Nelson H. F. Beebe.
12738
12739         gnulib-tool: work with NetBSD /bin/sh
12740         * gnulib-tool (func_cache_var, func_cache_lookup_module)
12741         (func_get_description, func_get_comment, func_get_status)
12742         (func_get_notice, func_get_applicability, func_get_filelist)
12743         (func_get_dependencies, func_get_autoconf_early_snippet)
12744         (func_get_autoconf_snippet, func_get_automake_snippet)
12745         (func_get_include_directive, func_get_link_directive)
12746         (func_get_license, func_get_maintainer, func_import): Avoid
12747         shell syntax errors from parsing syntax extensions.
12748
12749 2010-09-09  Bruno Haible  <bruno@clisp.org>
12750
12751         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
12752         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
12753         a reliable way to determine whether the 'alias' command works.
12754
12755 2010-09-08  Jim Meyering  <meyering@redhat.com>
12756
12757         init.sh: penalize a set-x-impaired shell; don't disqualify it
12758         * tests/init.sh: Too many shells corrupt application stderr when
12759         you set -x, so we can't afford to disqualify them, since at least
12760         on Irix-6.5, that would disqualify all bourne shells.
12761         Instead, use a two-pass approach.
12762         On the first pass, try to find a shell that meets the stricter
12763         condition that set -x does not corrupt stderr.
12764         If no shell meets the stricter condition, retest each candidate
12765         shell, but without that extra condition.  Finally, when
12766         VERBOSE=yes is requested and set -x might cause trouble, simply
12767         issue a warning and refrain from enabling debug output.
12768
12769 2010-09-08  Eric Blake  <eblake@redhat.com>
12770
12771         unsetenv: fix OpenBSD bug
12772         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
12773         * doc/posix-functions/unsetenv.texi (unsetenv): Update
12774         documentation.
12775         Reported by Jim Meyering.
12776
12777         strtod: work around IRIX 6.5 bug
12778         * lib/strtod.c (strtod): Reparse number on shorter string if
12779         exponent parse was invalid.
12780         * tests/test-strtod.c (main): Add check for "0x1p 2".
12781         Reported by Tom G. Christensen.
12782
12783         getopt: optimize previous patch
12784         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
12785         empty variable.  Speed up awk script.
12786         Reported by Paolo Bonzini.
12787
12788 2010-09-08  Jim Meyering  <meyering@redhat.com>
12789
12790         test.sh: disqualify shells for which set -x corrupts stderr
12791         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
12792         and OpenBSD 4.7.  They make it so with "set -x", environment settings
12793         appear in stderr output.  For example, this command:
12794             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
12795         prints "P=1" on those two systems:
12796
12797 2010-09-08  Bruno Haible  <bruno@clisp.org>
12798
12799         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
12800         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
12801         commands, because some shells ignore redirections when there is an
12802         error in the command lookup.
12803         Reported by Eric Blake.
12804
12805 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
12806
12807         * lib/regex.h: Fix a mention of `regex_compile' (should be
12808         `re_compile_pattern').
12809         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
12810         (re_set_registers): Correct name of parameter in comment.
12811
12812         * doc/regex.texi: Add documentation for missing syntax flags.
12813         Remove commented-out documentation of defunct syntax option
12814         RE_NO_EMPTY_ALTS.
12815         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
12816         Add documentation of re_set_registers.
12817         Document trick to re-use a pattern buffer by setting fastmap manually.
12818         Update documentation of struct re_pattern_buffer per public members.
12819         Uncomment documentation of equivalence class operators and
12820         collating symbol operators, since they are now implemented,
12821         Explain leftmost-longest matching in relation to alternatives.
12822         Tidy documentation of substring matching.
12823         Remove POSIX documentation, which is done better in
12824         glibc, and refer the reader there. Keep BSD API documentation, as
12825         that is not readily available elsewhere.
12826
12827 2010-09-07  Eric Blake  <eblake@redhat.com>
12828
12829         getopt: handle POSIXLY_CORRECT set but not exported
12830         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
12831         export state of POSIXLY_CORRECT, due to bash set -o posix.
12832         Reported by Dustin J. Mitchell.
12833
12834 2010-09-05  Bruno Haible  <bruno@clisp.org>
12835
12836         gnulib-tool: Highlight the changed options.
12837         * gnulib-tool (func_usage): Display the --import, --add-import,
12838         --remove-import explanations in bold font.
12839
12840 2010-09-06  Karl Berry  <karl@gnu.org>
12841
12842         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
12843
12844 2010-09-05  Bruno Haible  <bruno@clisp.org>
12845
12846         uniwidth/width: Update comment.
12847         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
12848         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
12849
12850 2010-09-05  Bruno Haible  <bruno@clisp.org>
12851
12852         isinf, isnan: Relax license.
12853         * modules/isinf (License): Change from GPL to LGPL, with consent from
12854         Ben Pfaff.
12855         * modules/isnan (License): Likewise.
12856         Requested by Ludovic Courtès.
12857
12858 2010-09-04  Bruno Haible  <bruno@clisp.org>
12859
12860         gnulib-tool: Help migration from --import to --add-import or --update.
12861         * gnulib-tool: Emit a verbose error message when --import is used
12862         without any module name.
12863
12864 2010-09-04  Bruno Haible  <bruno@clisp.org>
12865
12866         Update doc about gnulib-tool.
12867         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
12868         'gnulib-tool --update' in more detail.
12869         Reported by Eric Blake.
12870
12871 2010-09-04  Bruno Haible  <bruno@clisp.org>
12872
12873         gnulib-tool: Change --import. New options --add/remove-import.
12874         * gnulib-tool: New options --add-import, --remove-import.
12875         (func_usage): Document them.
12876         (have_associative): Define always.
12877         (func_import): In import mode, don't merge the specified settings with
12878         the cached settings. Implement remove-import mode.
12879         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
12880         Explain when to use them versus --import.
12881         (Simple update): Use --add-import instead of --import.
12882         * NEWS: Mention the change.
12883
12884 2010-09-04  Bruno Haible  <bruno@clisp.org>
12885
12886         * doc/gnulib-tool.texi (Initial import): Update paragraph about
12887         separate gnulib.mk.
12888
12889 2010-09-04  Bruno Haible  <bruno@clisp.org>
12890
12891         gnulib-tool: Don't talk about CVS any more.
12892         * gnulib-tool (func_usage, func_import): Write "version control"
12893         instead of CVS.
12894
12895 2010-09-04  Jim Meyering  <meyering@redhat.com>
12896
12897         maint.mk: avoid obscure sc_copyright_check failure in coreutils
12898         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
12899         false positives (whose names may be ill-chosen) when searching
12900         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
12901         would cause a false-positive.
12902
12903         avoid coreutils "make distcheck" failure
12904         Coreutils tests with an absolute build directory name that contains
12905         a space.  Not quoting this directory name caused a failure.
12906         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
12907         * tests/test-vc-list-files-cvs.sh: Likewise.
12908
12909 2010-09-04  Bruno Haible  <bruno@clisp.org>
12910
12911         gnulib-tool: Avoid error when run in a package without Makefile.am.
12912         * gnulib-tool: When collecting the m4dirs in a package that does not
12913         have a Makefile.am, eliminate those directories that contain no
12914         gnulib-cache.m4. Fix expression that counts these directories.
12915
12916 2010-09-04  Bruno Haible  <bruno@clisp.org>
12917
12918         update-copyright test: Improve output when perl is missing or too old.
12919         * tests/test-update-copyright.sh: Move test of Perl version down after
12920         the test whether Perl exists. Provide an explanation relating Perl's
12921         error message to Automake's SKIP: message.
12922
12923 2010-09-04  Bruno Haible  <bruno@clisp.org>
12924
12925         Don't augment PATH in TESTS_ENVIRONMENT.
12926         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
12927         set abs_aux_dir instead of augmenting PATH.
12928         * modules/vc-list-files-tests (Makefile.am): Likewise.
12929         * tests/test-update-copyright.sh: Augment PATH here.
12930         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
12931         path_prepend_.
12932         * tests/test-vc-list-files-git.sh: Likewise.
12933
12934 2010-09-04  Jim Meyering  <meyering@redhat.com>
12935
12936         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
12937         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
12938
12939 2010-09-04  Bruno Haible  <bruno@clisp.org>
12940
12941         strdup: Fix compilation error in C++ mode.
12942         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
12943         the macro.
12944
12945 2010-09-04  Bruno Haible  <bruno@clisp.org>
12946
12947         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
12948         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
12949         macro into a function.
12950         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
12951
12952 2010-09-04  Bruno Haible  <bruno@clisp.org>
12953
12954         Set PATH_SEPARATOR the same way autoconf does.
12955         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
12956         the value of PATH_SEPARATOR the same way autoconf-generated configure
12957         scripts do.
12958         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
12959         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
12960
12961 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
12962
12963         Set PATH_SEPARATOR the same way autoconf does.
12964         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
12965         the same way autoconf-generated configure scripts do.
12966         * posix-modules: Likewise.
12967
12968 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
12969
12970         hash: fix safe_hasher const typo
12971         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
12972         const; otherwise, there is a type error later.
12973
12974 2010-09-02  Jim Meyering  <meyering@redhat.com>
12975
12976         test-update-copyright.sh: require perl 5.8.0
12977         * tests/test-update-copyright.sh: Require 5.8.0,
12978         which Tom G. Christensen has confirmed is adequate,
12979         while 5.6.1 is not.
12980
12981 2010-09-02  Eric Blake  <eblake@redhat.com>
12982
12983         tests: init.sh improvements for re-exec'ing with zsh
12984         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
12985         -vx through shell re-exec.
12986         Reported by Tom G. Christensen.
12987
12988         wctype: fix typo in previous commit
12989         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
12990         Reported by Ludovic Courtès.
12991
12992 2010-09-02  Jim Meyering  <meyering@redhat.com>
12993
12994         test-update-copyright.sh: skip test if Perl is too old
12995         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
12996         Reported by Tom G. Christensen.
12997
12998 2010-09-02  Bruno Haible  <bruno@clisp.org>
12999
13000         wctype: Avoid compilation error on IRIX 6.5.30.
13001         * lib/wctype.in.h (iswblank): Declare with a replacement if
13002         REPLACE_ISWBLANK is set.
13003         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
13004         declared. Set REPLACE_ISWBLANK.
13005         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
13006         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
13007         * doc/posix-headers/wctype.texi: Likewise.
13008         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13009
13010 2010-09-01  Bruno Haible  <bruno@clisp.org>
13011
13012         New module 'socketlib'.
13013         * modules/socketlib: New file.
13014         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
13015         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
13016         * modules/sockets (Depends-on): Add socketlib.
13017         Suggested by Sam Steingold <sds@gnu.org>.
13018
13019 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
13020
13021         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
13022
13023         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
13024         when one needs search access to a directory but not read access.
13025         On systems where it is available, it works in some cases where
13026         O_RDONLY does not, namely on directories that are searchable but
13027         not readable, and which need only to be searchable.  If O_SEARCH
13028         is not available, fall back to the traditional method of using
13029         O_RDONLY.
13030
13031         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
13032         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
13033         when opening a directory that needs only to be searchable.
13034         * lib/chdir-safer.c (chdir_no_follow): Likewise.
13035         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
13036         * lib/openat-proc.c (openat_proc_name): Likewise.
13037         * lib/openat.c (openat_needs_fchdir): Likewise.
13038         * lib/save-cwd.c (save_cwd): Likewise.
13039         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
13040
13041 2010-08-28  Bruno Haible  <bruno@clisp.org>
13042
13043         New module 'host-cpu-c-abi'.
13044         * modules/host-cpu-c-abi: New file.
13045         * m4/host-cpu-c-abi.m4: New file, based on part of
13046         clisp/src/m4/general.m4.
13047         Requested by Sam Steingold <sds@gnu.org>.
13048
13049 2010-08-31  Eric Blake  <eblake@redhat.com>
13050         and Jim Meyering  <meyering@redhat.com>
13051
13052         hash: factor, and guard against misbehaving hasher function
13053         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
13054         of table->hasher's return value.  Also protect against a hash value
13055         so large that adding it to table->bucket results in a NULL pointer.
13056         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
13057         Use it in place of open-coded check-and-abort.
13058
13059 2010-08-30  Bruno Haible  <bruno@clisp.org>
13060
13061         hash: silence spurious clang warning
13062         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
13063         Reported by Eric Blake.
13064
13065 2010-08-30  Eric Blake  <eblake@redhat.com>
13066
13067         strstr, memmem, strcasestr: avoid leaked shell message
13068         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
13069         FreeBSD.
13070         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
13071         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
13072
13073         tests: silence clang warning
13074         * tests/test-malloca.c (do_allocation): Avoid dead store.
13075
13076 2010-08-29  Bruno Haible  <bruno@clisp.org>
13077
13078         gettext: Fix recent mistake.
13079         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
13080
13081 2010-08-29  Bruno Haible  <bruno@clisp.org>
13082
13083         selinux-h: Offer a --without-selinux option.
13084         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
13085         --without-selinux was specified, skip all tests and define
13086         HAVE_SELINUX_SELINUX_H to 0.
13087         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
13088         set LIB_SELINUX to empty.
13089         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
13090         gl_LIBSELINUX. If --without-selinux was specified, replace
13091         selinux/context.h.
13092         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
13093
13094 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13095             Bruno Haible  <bruno@clisp.org>
13096
13097         Make the module 'realloc-gnu' work again on AIX and OSF/1.
13098         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
13099         of HAVE_REALLOC.
13100         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
13101         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
13102         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
13103         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
13104
13105 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13106             Bruno Haible  <bruno@clisp.org>
13107
13108         Make the module 'calloc-gnu' work again on AIX and OSF/1.
13109         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
13110         HAVE_CALLOC.
13111         * lib/xmalloc.c: Update accordingly.
13112         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
13113         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
13114         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
13115
13116 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13117             Bruno Haible  <bruno@clisp.org>
13118
13119         Make the module 'malloc-gnu' work again on AIX and OSF/1.
13120         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
13121         HAVE_MALLOC.
13122         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
13123         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
13124         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
13125
13126 2010-08-29  Bruno Haible  <bruno@clisp.org>
13127
13128         Update modules list.
13129         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
13130         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
13131         (String handling <string.h>): Add astrxfrm.
13132         (File system functions): Add readlinkat.
13133
13134 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13135
13136         Tests for module 'realloc-gnu'.
13137         * modules/realloc-gnu-tests: New file.
13138         * tests/test-realloc-gnu.c: New file.
13139
13140         Tests for module 'calloc-gnu'.
13141         * modules/calloc-gnu-tests: New file.
13142         * tests/test-calloc-gnu.c: New file.
13143
13144         Tests for module 'malloc-gnu'.
13145         * modules/malloc-gnu-tests: New file.
13146         * tests/test-malloc-gnu.c: New file.
13147
13148 2010-08-28  Bruno Haible  <bruno@clisp.org>
13149
13150         Rename module 'realloc' -> 'realloc-gnu'.
13151         * modules/realloc-gnu: New file, copied from modules/realloc.
13152         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
13153         obsolete.
13154         * modules/mgetgroups (Depends-on): Update.
13155         * doc/posix-functions/realloc.texi: Update.
13156         * NEWS: Mention the change.
13157
13158         Rename module 'calloc' -> 'calloc-gnu'.
13159         * modules/calloc-gnu: New file, copied from modules/calloc.
13160         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
13161         obsolete.
13162         * doc/posix-functions/calloc.texi: Update.
13163         * NEWS: Mention the change.
13164
13165         Rename module 'malloc' -> 'malloc-gnu'.
13166         * modules/malloc-gnu: New file, copied from modules/malloc.
13167         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
13168         obsolete.
13169         * modules/argp (Depends-on): Update.
13170         * modules/regex (Depends-on): Update.
13171         * doc/posix-functions/malloc.texi: Update.
13172         * NEWS: Mention the change.
13173
13174 2010-08-28  Eric Blake  <eblake@redhat.com>
13175
13176         pread, pwrite: add missing dependency
13177         * modules/pread (Depends-on): Add extensions.
13178         * modules/pwrite (Depends-on): Likewise.
13179
13180 2010-08-28  Bruno Haible  <bruno@clisp.org>
13181
13182         unistr/u*-strchr: Fix tests dependencies.
13183         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
13184         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
13185         Reported by Ian Beckwith <ianb@erislabs.net>.
13186
13187 2010-08-28  Bruno Haible  <bruno@clisp.org>
13188
13189         read-file: Don't occupy too much unused memory.
13190         * lib/read-file.c (fread_file): Shrink the buffer at the end.
13191
13192 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
13193             Eric Blake  <eblake@redhat.com>
13194             Bruno Haible  <bruno@clisp.org>
13195
13196         read-file: Avoid memory reallocations with regular files.
13197         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
13198         (fread_file): With regular files, use the remaining length as the
13199         initial buffer size.  Check against overflow.
13200         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
13201         sys_stat.
13202
13203 2010-08-28  Bruno Haible  <bruno@clisp.org>
13204
13205         ftello: Relax license.
13206         * modules/ftello (License): Relax to LGPLv2+.
13207         Reported by Eric Blake.
13208
13209 2010-08-28  Bruno Haible  <bruno@clisp.org>
13210
13211         Avoid relocwrapper link errors due to gnulib replacement functions.
13212         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
13213         function.
13214         Reported by Ben Pfaff <blp@cs.stanford.edu>.
13215
13216 2010-08-28  Bruno Haible  <bruno@clisp.org>
13217
13218         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
13219         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
13220         defined.
13221         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
13222         Suggested by Eric Blake.
13223
13224 2010-08-28  Bruno Haible  <bruno@clisp.org>
13225
13226         sys_socket, netdb: Ensure socklen_t gets defined.
13227         * modules/sys_socket (Depends-on): Add socklen.
13228         * modules/netdb (Depends-on): Likewise.
13229         * modules/getaddrinfo (Depends-on): Remove socklen.
13230         * modules/getsockopt (Depends-on): Likewise.
13231         * modules/setsockopt (Depends-on): Likewise.
13232         * tests/test-sys_socket.c: Check that socklen_t is defined.
13233         * tests/test-netdb.c: Likewise.
13234         * m4/socklen.m4: Update comments.
13235         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13236
13237 2010-08-27  Eric Blake  <eblake@redhat.com>
13238
13239         login_tty: add missing dependency
13240         * modules/login_tty (Depends-on): Add pty.
13241
13242 2010-08-26  Eric Blake  <eblake@redhat.com>
13243
13244         lib-symbol-versions: fix m4 quoting
13245         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
13246         format for AC_LINK_IFELSE.
13247
13248         glob: fix compile test
13249         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
13250
13251         btowc: fix missing file
13252         * modules/btowc (Files): Also ship locale-fr.m4.
13253
13254         lseek: fix link test
13255         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
13256         AC_LINK_IFELSE.
13257
13258         include_next: silence autoconf 2.68 warning
13259         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
13260         AC_COMPILE_IFELSE as special.
13261         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
13262         autoconf < 2.68.
13263
13264         acl: fix compilation test
13265         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
13266         AC_COMPILE_IFELSE.
13267
13268 2010-08-26  Bruno Haible  <bruno@clisp.org>
13269
13270         Modernize AC_TRY_RUN invocations.
13271         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
13272         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
13273         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
13274         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
13275         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
13276         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
13277         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
13278         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
13279         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
13280         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
13281         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
13282         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
13283         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
13284         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
13285         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
13286         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
13287         gl_MBRLEN_NUL_RETVAL): Likewise.
13288         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
13289         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
13290         Likewise.
13291         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13292         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
13293         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
13294         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
13295         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
13296         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
13297         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
13298         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
13299         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
13300         Likewise.
13301         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
13302         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
13303         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
13304         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
13305         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13306         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
13307         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
13308         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
13309         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13310         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
13311
13312 2010-08-26  Bruno Haible  <bruno@clisp.org>
13313
13314         Modernize AC_TRY_LINK invocations.
13315         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
13316         AC_TRY_LINK.
13317         * m4/argp.m4 (gl_ARGP): Likewise.
13318         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
13319         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
13320         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
13321         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
13322         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
13323         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
13324         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
13325         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
13326         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
13327         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
13328         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
13329         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
13330         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
13331         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
13332         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
13333         * m4/hostent.m4 (gl_HOSTENT): Likewise.
13334         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
13335         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
13336         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
13337         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
13338         Likewise.
13339         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
13340         Likewise.
13341         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
13342         Likewise.
13343         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
13344         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
13345         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
13346         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
13347         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
13348         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
13349         * m4/servent.m4 (gl_SERVENT): Likewise.
13350         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
13351         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
13352         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
13353         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
13354         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
13355         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
13356         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13357         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13358         * modules/tsearch-tests (configure.ac): Likewise.
13359
13360 2010-08-26  Bruno Haible  <bruno@clisp.org>
13361
13362         Modernize AC_TRY_COMPILE invocations.
13363         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
13364         AC_TRY_COMPILE.
13365         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
13366         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
13367         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
13368         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
13369         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
13370         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
13371         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
13372         * m4/lock.m4 (gl_LOCK): Likewise.
13373         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
13374         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
13375         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
13376         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
13377         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
13378         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
13379         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
13380         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
13381         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
13382         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
13383         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
13384         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
13385         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
13386         extraneous semicolon.
13387
13388 2010-08-26  Jim Meyering  <meyering@redhat.com>
13389
13390         stat-time: relax license LGPL
13391         * modules/stat-time (License): Change from GPL to LGPL,
13392         with consent from all contributors, for use in libguile.
13393         Requested by Ludovic Courtès.
13394
13395 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
13396
13397         poll: return immediately on POLLHUP.
13398         * lib/poll.c (poll): Always set timeout before wait_timeout is
13399         computed.
13400
13401 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13402
13403         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
13404         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
13405         rmdir ("dir/.//"), unlinkat.
13406
13407 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
13408
13409         stdbool: avoid spurious failure with modern xlc
13410         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
13411
13412 2010-08-24  Bruno Haible  <bruno@clisp.org>
13413
13414         getloadavg: simplify code
13415         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
13416         gl_have_func. Update comments.
13417
13418 2010-08-24  Eric Blake  <eblake@redhat.com>
13419
13420         getloadavg: don't define SVR4 on cygwin
13421         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
13422         only define SVR4 when -lkvm is required.
13423         Reported by Yaakov Selkowitz.
13424
13425 2010-08-24  Bruno Haible  <bruno@clisp.org>
13426
13427         priv-set: fix comment
13428         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
13429
13430 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
13431
13432         priv-set: fix comments
13433         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
13434         to match code, as suggested by David Bartley in:
13435         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
13436
13437 2010-08-23  Eric Blake  <eblake@redhat.com>
13438
13439         stdbool: avoid rejecting clang
13440         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
13441         * tests/test-stdbool.c: Enable more tests if using the system
13442         <stdbool.h> instead of the gnulib replacement.
13443         (main): Move xlc bug test to a runtime test for all compilers.
13444         Reported by Anders Kaseorg.
13445
13446         argz: fix shell quoting issue
13447         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
13448         Reported by Charles Wilson.
13449
13450 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
13451             Erik Faye-Lund <kusmabite@gmail.com>
13452
13453         poll, select: handle ERROR_BROKEN_PIPE.
13454         * lib/poll.c (win32_compute_revents): Return POLLHUP when
13455         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
13456         * lib/select.c (win32_compute_revents): Do not mark a pipe
13457         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
13458
13459 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
13460
13461         fts: allow compilation with C++
13462         * lib/fts_.h: Specify extern "C" linkage with C++.
13463
13464 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13465
13466         Fix gnulib-tool sed script de-commentation for AIX sed.
13467         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
13468         sed.
13469
13470 2010-08-17  Eric Blake  <eblake@redhat.com>
13471
13472         test-stddef: test for (some) offsetof bugs
13473         * tests/test-stddef.c: Enhance test to ensure correct type of
13474         offsetof.
13475         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
13476         that we are not fixing at this time.
13477
13478 2010-08-15  Bruno Haible  <bruno@clisp.org>
13479
13480         stpncpy: Allow stpncpy to be defined as a macro.
13481         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
13482         if it's already correctly declared.
13483         * lib/string.in.h (stpncpy): Undefine before redefining.
13484         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
13485
13486 2010-08-14  Bruno Haible  <bruno@clisp.org>
13487
13488         Rename module 'memxfrm' to 'amemxfrm'.
13489         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
13490         (amemxfrm): Renamed from memxfrm.
13491         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
13492         (amemxfrm): Renamed from memxfrm.
13493         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
13494         * NEWS: Mention the change.
13495         * MODULES.html.sh (String handling <string.h>): Update.
13496         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
13497         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
13498         * lib/unicase/u16-casexfrm.c: Likewise.
13499         * lib/unicase/u32-casexfrm.c: Likewise.
13500         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
13501         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
13502         * lib/uninorm/u16-normxfrm.c: Likewise.
13503         * lib/uninorm/u32-normxfrm.c: Likewise.
13504         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
13505         memxfrm.
13506         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
13507         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
13508         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
13509         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
13510         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
13511         Suggested by Paul Eggert.
13512
13513 2010-08-14  Bruno Haible  <bruno@clisp.org>
13514
13515         Tests for module 'astrxfrm'.
13516         * modules/astrxfrm-tests: New file.
13517         * tests/test-astrxfrm.c: New file.
13518
13519         New module 'astrxfrm'.
13520         * lib/astrxfrm.h: New file.
13521         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
13522         * modules/astrxfrm: New file.
13523
13524 2010-08-14  Reuben Thomas <rrt@sc3d.org>
13525
13526         regex: Tweak doc.
13527         * doc/regex.texi (Overview): Don't mention regex.c.
13528         (GNU Regular Expression Compiling): Likewise.
13529         (Match-end-of-line Operator): Mention 'not_eol'.
13530
13531 2010-08-14  Brian Gough  <bjg@gnu.org>
13532             Bruno Haible  <bruno@clisp.org>
13533
13534         git-merge-changelog: add doc relating to use with bzr and hg.
13535         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
13536
13537 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
13538
13539         pthread: fix pthread.h creation for srcdir != builddir
13540         * modules/pthread (Makefile.am): Fix the rule to work also in a
13541         non-srcdir build.
13542
13543 2010-08-13  Karl Berry  <karl@gnu.org>
13544
13545         * doc/regex.texi (Predefined Syntaxes): @smallexample.
13546         * doc/posix-*/*: force line break before @url of POSIX
13547         specifications.
13548         Suggested by Werner Lemberg.
13549
13550 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
13551
13552         strtod: fix const diagnostic
13553         * lib/strtod.c (strtod): Don't assign const char * to char *,
13554         as this elicits a warning from GCC when warnings are enabled.
13555
13556 2010-08-10  Pádraig Brady <P@draigbrady.com>
13557         and Eric Blake  <eblake@redhat.com>
13558
13559         copy-acl: ignore ENOTSUP on HP-UX
13560         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
13561         so that it is available for HP-UX.
13562         * lib/copy-acl.c (qcopy_acl): Use it.
13563         Reported by Patrick M. Callahan.
13564
13565 2010-08-10  Eric Blake  <eblake@redhat.com>
13566
13567         open, chown: relax license
13568         * modules/open (License): Change to LGPLv2+, with consent by all
13569         authors, for use in augeas.
13570         * modules/chown (License): Likewise.
13571         * modules/lchown (Likewise): Likewise.
13572         Requested by Adam Stokes.
13573
13574 2010-08-09  Karl Berry  <karl@gnu.org>
13575
13576         * build-aux/ar-lib: new file, import from Automake.
13577         * config/srclist.txt: autocheck for updates.
13578
13579 2010-08-09  Eric Blake  <eblake@redhat.com>
13580
13581         readlinkat: adjust client modules
13582         * modules/areadlinkat (Depends-on): Use readlinkat, not
13583         symlinkat.
13584         * modules/areadlinkat-with-size (Depends-on): Likewise.
13585
13586         mknod: be more vocal about danger of running tests as root
13587         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
13588         root, since that is just asking for problems.
13589         Suggested by Bruno Haible, based on a report by Rainer Tammer.
13590
13591         readlinkat: split into its own module
13592         * modules/symlinkat: Split readlinkat...
13593         * modules/readlinkat: ...into separate module.
13594         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
13595         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
13596         * lib/symlinkat.c (readlinkat): Move...
13597         * lib/readlinkat.c: ...into new file.
13598         * modules/symlinkat-tests: Split readlinkat test...
13599         * modules/readlinkat-tests: ...into separate module.
13600         * tests/test-symlinkat.c: Split...
13601         * tests/test-readlinkat.c: ...into new file.
13602         * NEWS: Document the split.
13603         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
13604         * lib/unistd.in.h (readlinkat): Likewise.
13605         Suggested by Bruno Haible.
13606
13607 2010-08-08  Bruno Haible  <bruno@clisp.org>
13608
13609         memxfrm: Speed up.
13610         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
13611         that usually only one call to strxfrm is necessary for each string
13612         part.
13613         Reported by Paul Eggert <eggert@cs.ucla.edu>.
13614
13615 2010-08-07  Karl Berry  <karl@gnu.org>
13616
13617         * doc/posix-headers/limits.texi,
13618         * doc/posix-functions/malloc.texi,
13619         * doc/posix-functions/strsignal.texi: missing @item.
13620         * doc/ld-version-script.texi: spurious leading i.
13621         * doc/regex.texi (Interval Operators): no commas inside @var.
13622
13623 2010-08-01  Bruno Haible  <bruno@clisp.org>
13624
13625         Integrate the regex documentation.
13626         * doc/gnulib.texi: Define 'cn' index.
13627         (Regular expressions): New a chapter that includes regex.texi and
13628         regexprops-generic.texi.
13629         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
13630         syntax.
13631
13632         Whitespace cleanup.
13633         * doc/regex.texi: Remove trailing spaces.
13634
13635         Add regex documentation.
13636         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
13637         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
13638         Written by Kathy A. Hargreaves and Karl Berry.
13639
13640 2010-08-01  Bruno Haible  <bruno@clisp.org>
13641
13642         link: Update documentation.
13643         * doc/posix-functions/link.texi: Update regarding Solaris.
13644
13645 2010-07-31  Bruno Haible  <bruno@clisp.org>
13646
13647         Update modules list.
13648         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
13649         (String handling <string.h>): Add memcmp2, memxfrm.
13650         (Container data structures): Add xlist, xsublist, xoset.
13651         (Core language properties): Add alignof, unused-parameter.
13652         (Process control, Numeric conversion functions <stdlib.h>): Renamed
13653         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
13654         (Unibyte characters <ctype.h>): New section.
13655         (String handling <string.h>): New section.
13656         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
13657         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
13658         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
13659         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
13660         tan, tanh, tanl, y0, y1, yn.
13661         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
13662         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
13663         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
13664         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
13665         unlockpt, vdprintf, vdprintf-posix.
13666         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
13667         (File system functions): Add concat-filename, sys_file, sys_ioctl,
13668         xconcat-filename.
13669         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
13670         getdtablesize, pipe2, pipe2-safer.
13671         (Security): New section.
13672         (Networking functions): Add accept4.
13673         (Signal handling): Add sigpipe.
13674         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
13675         mbmemcasecoll.
13676         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
13677         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
13678         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
13679         pipe-filter-ii.
13680         (Misc): Add argp-version-etc, login_tty, parse-duration.
13681
13682 2010-07-31  Bruno Haible  <bruno@clisp.org>
13683
13684         Improve doc in MODULES.html.
13685         * modules/linkat (Description): Add the word "function".
13686         * modules/mkfifo (Description): Likewise.
13687         * modules/mknod (Description): Likewise.
13688         * modules/remove (Description): Likewise.
13689         * modules/renameat (Description): Likewise.
13690         * modules/stat (Description): Likewise.
13691         * modules/symlink (Description): Likewise.
13692         * modules/unlink (Description): Likewise.
13693
13694 2010-07-31  Bruno Haible  <bruno@clisp.org>
13695
13696         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
13697         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
13698         option --enable/disable-c++ instead of --enable/disable-cxx.
13699         * NEWS: Mention the change.
13700
13701 2010-07-31  Bruno Haible  <bruno@clisp.org>
13702
13703         readlink, areadlink: Relax test a bit.
13704         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
13705         alternative to ENOTDIR.
13706         * tests/test-areadlink.h (test_areadlink): Likewise.
13707         Reported by Rainer Tammer.
13708
13709 2010-07-31  Bruno Haible  <bruno@clisp.org>
13710
13711         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
13712         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
13713         character, perform the search using U_STRCHR.
13714         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
13715         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
13716         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
13717         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
13718         Suggested by Paolo Bonzini.
13719
13720 2010-07-31  Bruno Haible  <bruno@clisp.org>
13721
13722         unistr/u*-strstr: Fix dependencies.
13723         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
13724         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
13725         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
13726
13727 2010-07-31  Bruno Haible  <bruno@clisp.org>
13728
13729         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
13730         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
13731         the beginning of the loop.
13732         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
13733         cases in 'switch' statement.
13734
13735         unistr/u8-strchr: Fix several bugs.
13736         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
13737         the string. When not found, return NULL, not a pointer near the end.
13738
13739         More tests for unistr/u8-strchr.
13740         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
13741         that the function does not read past the first occurrence of the byte
13742         being searched.
13743         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
13744         * tests/unistr/test-u16-strchr.c (main): New function.
13745         * tests/unistr/test-u32-strchr.c (main): New function.
13746
13747 2010-07-31  Bruno Haible  <bruno@clisp.org>
13748
13749         posix-modules: Ignore backup files of documentation files.
13750         * posix-modules: grep only through files named *.texi.
13751
13752 2010-07-31  Bruno Haible  <bruno@clisp.org>
13753
13754         symlinkat: Fix documentation.
13755         * doc/posix-functions/readlinkat.texi: Fix module name.
13756
13757 2010-07-31  Bruno Haible  <bruno@clisp.org>
13758
13759         fchownat: Replace also when chown has the trailing slash bug.
13760         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
13761         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
13762         introduced on 2010-04-10.
13763         Reported by Rainer Tammer.
13764
13765 2010-07-31  Bruno Haible  <bruno@clisp.org>
13766
13767         linkat: Work around AIX 7.1 bug.
13768         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
13769         whether linkat handles trailing slash correctly. If not, replace linkat
13770         and define LINKAT_TRAILING_SLASH_BUG.
13771         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
13772         check whether (fd1,file1) points to a directory if file1 or file2 ends
13773         in a slash. Code taken from lib/link.c.
13774         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
13775         Reported by Rainer Tammer.
13776
13777 2010-07-31  Bruno Haible  <bruno@clisp.org>
13778
13779         Correctly determine whether pow is available in libc on AIX 7 with xlc.
13780         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
13781         This disables an xlc optimization that was causing wrong test results.
13782         Reported by Rainer Tammer.
13783
13784 2010-07-31  Bruno Haible  <bruno@clisp.org>
13785
13786         iconv: Work around AIX 6.1..7.1 bug.
13787         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
13788         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
13789         cross-compiling, guess no on all versions of AIX.
13790         Reported by Rainer Tammer.
13791
13792 2010-07-31  Bruno Haible  <bruno@clisp.org>
13793
13794         readlink: Relax test a bit.
13795         * tests/test-readlink.h (test_readlink): Allow different errno value
13796         when readlink is called with a file name that ends in / and refers to
13797         a file.
13798         Suggested by Eric Blake.
13799         Reported by Rainer Tammer.
13800
13801 2010-07-31  Bruno Haible  <bruno@clisp.org>
13802
13803         copysign: Does not require -lm on glibc systems.
13804         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
13805         gl_COMMON_DOUBLE_MATHFUNC.
13806         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
13807
13808 2010-07-31  Bruno Haible  <bruno@clisp.org>
13809
13810         duplocale: Work around AIX 7.1 bug.
13811         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
13812         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
13813         * lib/duplocale.c (rpl_duplocale): Update comment.
13814         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
13815         Reported by Rainer Tammer.
13816
13817 2010-07-30  Bruno Haible  <bruno@clisp.org>
13818
13819         dirfd: Avoid link error on AIX 7.1.
13820         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
13821         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
13822         exist, set REPLACE_DIRFD.
13823         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
13824         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
13825         * doc/posix-functions/dirfd.texi: Update.
13826         Reported by Rainer Tammer.
13827
13828 2010-07-30  Eric Blake  <eblake@redhat.com>
13829
13830         strtod: next round of AIX fixes
13831         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
13832         exponent.
13833         * tests/test-strtod.c (main): Enhance tests.
13834         * doc/posix-functions/strtod.texi (strtod): Document next bug.
13835         Reported by Rainer Tammer.
13836
13837         futimens: fix configure check
13838         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
13839         Reported by Bruno Haible.
13840
13841 2010-07-30  Bruno Haible  <bruno@clisp.org>
13842
13843         getline: Update regarding AIX.
13844         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
13845         Reported by Rainer Tammer.
13846
13847 2010-07-30  Bruno Haible  <bruno@clisp.org>
13848
13849         wcwidth: Drop replacement on AIX 7.
13850         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
13851         AIX 7.
13852         Reported by Rainer Tammer.
13853
13854 2010-07-30  Bruno Haible  <bruno@clisp.org>
13855
13856         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
13857         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
13858         a 'char *'.
13859         Reported by Rainer Tammer.
13860
13861 2010-07-30  Bruno Haible  <bruno@clisp.org>
13862
13863         unlink: Update regarding AIX.
13864         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
13865         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
13866         Reported by Rainer Tammer.
13867
13868 2010-07-30  Bruno Haible  <bruno@clisp.org>
13869
13870         symlink: Update regarding AIX.
13871         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
13872         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
13873         Reported by Rainer Tammer.
13874
13875 2010-07-30  Bruno Haible  <bruno@clisp.org>
13876
13877         strndup: Update regarding AIX.
13878         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
13879         AIX 7.
13880         Reported by Rainer Tammer.
13881
13882 2010-07-30  Bruno Haible  <bruno@clisp.org>
13883
13884         stat: Update regarding AIX.
13885         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
13886         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
13887         Reported by Rainer Tammer.
13888
13889 2010-07-30  Bruno Haible  <bruno@clisp.org>
13890
13891         truncl: Fix autoconf test.
13892         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
13893         whether truncl works.
13894         Reported by Rainer Tammer.
13895
13896 2010-07-30  Bruno Haible  <bruno@clisp.org>
13897
13898         round: Update regarding AIX.
13899         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
13900         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
13901         Reported by Rainer Tammer.
13902
13903 2010-07-30  Bruno Haible  <bruno@clisp.org>
13904
13905         rename: Update regarding AIX.
13906         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
13907         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
13908         Reported by Rainer Tammer.
13909
13910 2010-07-30  Bruno Haible  <bruno@clisp.org>
13911
13912         printf.m4: Update regarding AIX.
13913         * m4/printf.m4: Update comments regarding AIX.
13914         Reported by Rainer Tammer.
13915
13916 2010-07-30  Bruno Haible  <bruno@clisp.org>
13917
13918         iconv: Update regarding AIX.
13919         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
13920         AIX 7.
13921         Reported by Rainer Tammer.
13922
13923 2010-07-30  Bruno Haible  <bruno@clisp.org>
13924
13925         getopt: Update regarding AIX.
13926         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
13927         no on AIX.
13928         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
13929         Reported by Rainer Tammer.
13930
13931 2010-07-30  Bruno Haible  <bruno@clisp.org>
13932
13933         ldexpl; Update regarding AIX.
13934         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
13935         on AIX 7.
13936         Reported by Rainer Tammer.
13937
13938 2010-07-30  Bruno Haible  <bruno@clisp.org>
13939
13940         frexpl: Update regarding AIX.
13941         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
13942         on AIX 7.
13943         Reported by Rainer Tammer.
13944
13945 2010-07-30  Bruno Haible  <bruno@clisp.org>
13946
13947         open, fopen: Update regarding AIX.
13948         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
13949         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
13950         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
13951         * doc/posix-functions/fopen.texi: Likewise.
13952         Reported by Rainer Tammer.
13953
13954 2010-07-30  Bruno Haible  <bruno@clisp.org>
13955
13956         chown: Update doc regarding AIX.
13957         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
13958         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
13959         Reported by Rainer Tammer.
13960
13961 2010-07-30  Eric Blake  <eblake@redhat.com>
13962
13963         strtod: fix bug in replacement function on AIX
13964         * lib/strtod.c (strtod): Special case broken "0x" parse in
13965         underlying strtod.
13966         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
13967         * doc/posix-functions/strtod.texi (strtod): Likewise.
13968         Reported by Rainer Tammer.
13969
13970 2010-07-30  Bruno Haible  <bruno@clisp.org>
13971
13972         mbrlen: Fix cross-compilation guess for AIX.
13973         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
13974         guess. Leftover from 2008-12-22.
13975
13976 2010-07-30  Bruno Haible  <bruno@clisp.org>
13977
13978         mbrtowc: Fix cross-compilation guess for AIX.
13979         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
13980         guess. Leftover from 2008-12-21.
13981
13982 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
13983
13984         init.sh: work around trap limitation of some shells
13985         * tests/init.sh (setup_): Move exit trap outside of shell function.
13986
13987 2010-07-29  Eric Blake  <eblake@redhat.com>
13988
13989         strtod: aid debugging
13990         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
13991         understanding why strtod is rejected.
13992
13993 2010-07-28  Bruno Haible  <bruno@clisp.org>
13994
13995         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
13996         * lib/unistr/u8-chr.c: Include <string.h>.
13997         * tests/unistr/test-u8-chr.c: Likewise.
13998         * tests/unistr/test-u16-chr.c: Likewise.
13999         * tests/unistr/test-u32-chr.c: Likewise.
14000         * tests/unistr/test-u8-strchr.c: Likewise.
14001         * tests/unistr/test-u16-strchr.c: Likewise.
14002         * tests/unistr/test-u32-strchr.c: Likewise.
14003         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
14004         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
14005         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
14006         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
14007
14008 2010-07-28  Bruno Haible  <bruno@clisp.org>
14009
14010         Use spaces for indentation, not tabs.
14011         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
14012
14013 2010-07-27  Bruno Haible  <bruno@clisp.org>
14014
14015         mbspcasecmp: Fix function specification.
14016         * lib/string.in.h (mbspcasecmp): Fix specification comment.
14017         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
14018         Reported by Eric Blake <eblake@redhat.com>.
14019
14020 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
14021
14022         timespec: use cast and not conditional, as truncation isn't possible
14023         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
14024         instead of a conditional.  Comment about the situation in more detail.
14025         This undoes most of the 2009-10-29 patch.
14026
14027 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
14028
14029         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
14030         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
14031         * lib/unistr/u8-strchr.c: Likewise.
14032         * modules/unistr/u8-chr: Depend on memchr.
14033
14034         unistr/u*-strchr: add tests
14035         * modules/unistr/u8-strchr-tests: New file.
14036         * modules/unistr/u16-strchr-tests: New file.
14037         * modules/unistr/u32-strchr-tests: New file.
14038         * tests/unistr/test-strchr.h: New file.
14039         * tests/unistr/test-u8-strchr.c: New file.
14040         * tests/unistr/test-u16-strchr.c: New file.
14041         * tests/unistr/test-u32-strchr.c: New file.
14042
14043         unistr/u*-chr: test multibyte sequences more
14044         * tests/unistr/test-chr.h: Do complete testing of the characters in the
14045         test vector.
14046         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
14047         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
14048         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
14049
14050         unistr/u*-chr: test multibyte sequences
14051         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
14052
14053         unistr/u*-chr: prepare for multibyte tests
14054         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
14055         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
14056         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
14057         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
14058         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
14059         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
14060
14061 2010-07-18  Bruno Haible  <bruno@clisp.org>
14062
14063         unistr/u8-strchr: Optimize non-ASCII argument case.
14064         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
14065         because the first byte often matches anyway.
14066         Reported by Pádraig Brady <P@draigbrady.com>.
14067
14068 2010-07-15  Karl Berry  <karl@gnu.org>
14069
14070         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
14071
14072 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
14073
14074         getcwd: on Solaris, work better if ancestors are inaccessible
14075         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
14076         buffer and size, try again with a large buffer.  This works better
14077         on Solaris, since its getcwd succeeds even if the path to the root
14078         is inaccessible, and this is helpful in common cases such as .zfs
14079         hidden directories.  Problem reported by J Chapman Flack in
14080         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
14081         Use system getcwd if it's declared, not merely if it's partly
14082         working; use the partly-working test only to avoid needless effort
14083         if the system getcwd fails.
14084         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
14085         comment that was already obsolete and is now even more obsolete.
14086         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
14087         now might call strdup.
14088
14089 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
14090
14091         pthread: Add enough so that coreutils/src/sort.c compiles.
14092         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
14093         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
14094         gnulib. Include <sched.h> and <time.h>, as per POSIX.
14095         Include <sys/types.h>, in case it defines pthread_t.
14096         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
14097         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
14098         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
14099         (pthread_rwlockattr_t, pthread_spinlock_t):
14100         New typedefs, if HAVE_PTHREAD_T is not defined.
14101         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
14102         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
14103         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
14104         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
14105         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
14106         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
14107         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
14108         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
14109         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
14110         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
14111         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
14112         New macros.
14113         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
14114         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
14115         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
14116         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
14117         (pthread_spin_unlock): New dummy functions.
14118         (pthread_create): Return EAGAIN; don't set errno.
14119         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
14120         require AC_C_INLINE.
14121         * modules/pthread (Depends-on): Add sched, time.
14122         (pthread.h): Use AM_V_GEN.
14123
14124 2010-07-13  Bruno Haible  <bruno@clisp.org>
14125
14126         striconveh: Don't malloc memory if the result buffer is sufficient.
14127         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
14128         buffer if its size is sufficient.
14129         Reported by Ludovic Courtès <ludo@gnu.org>.
14130
14131 2010-07-13  Bruno Haible  <bruno@clisp.org>
14132
14133         strtod: Add safety check.
14134         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
14135
14136 2010-07-12  Bruno Haible  <bruno@clisp.org>
14137
14138         Unify tests that set gl_cv_func_ldexpl_no_libm.
14139         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
14140         gl_FUNC_LDEXPL.
14141         (gl_FUNC_LDEXPL): Invoke it.
14142         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
14143
14144 2010-07-12  Bruno Haible  <bruno@clisp.org>
14145
14146         Unify tests that set gl_cv_func_ldexp_no_libm.
14147         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
14148         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
14149         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
14150         (configure.ac): Simply invoke gl_FUNC_LDEXP.
14151         * modules/strtod (Files): Add m4/ldexp.m4.
14152
14153 2010-07-12  Bruno Haible  <bruno@clisp.org>
14154
14155         Unify tests that set gl_cv_func_frexpl_no_libm.
14156         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
14157         gl_FUNC_FREXPL_NO_LIBM.
14158         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
14159         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
14160
14161 2010-07-12  Bruno Haible  <bruno@clisp.org>
14162
14163         Unify tests that set gl_cv_func_frexp_no_libm.
14164         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
14165         gl_FUNC_FREXP_NO_LIBM.
14166         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
14167         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
14168
14169 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
14170
14171         memcoll: clarify sizes versus lengths, document better, and tweak perf
14172         * lib/memcoll.c (strcoll_loop, memcoll0):
14173         Improve quality of descriptive comments.  Name variables
14174         consistently as to whether they are lengths (which do not include
14175         terminating null) versus sizes (which do).
14176         * lib/xmemcoll.c (xmemcoll0): Likewise.
14177         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
14178         returned when s1size == 0; this is easier to compile and saves
14179         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
14180
14181 2010-07-12  Bruno Haible  <bruno@clisp.org>
14182
14183         Tests for module '_Exit'.
14184         * modules/_Exit-tests: New file.
14185         * tests/test-_Exit.sh: New file.
14186         * tests/test-_Exit.c: New file.
14187
14188         New module '_Exit'.
14189         * lib/stdlib.in.h (__attribute__): New macro.
14190         (_Exit): New declaration.
14191         * lib/_Exit.c: New file.
14192         * m4/_Exit.m4: New file.
14193         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
14194         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
14195         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
14196         * modules/_Exit: New file.
14197         * tests/test-stdlib-c++.cc (_Exit): Check signature.
14198         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
14199
14200 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
14201
14202         strtod: make it more-accurate typically, and don't require libm
14203         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
14204         Include limits.h.  Don't include string.h.
14205         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
14206         (locale_isspace): New function, so that no casts are needed to
14207         check whether *s is a space.
14208         (ldexp): Provide an unused dummy if not available.
14209         (scale_radix_exp, parse_number, underlying_strtod): New functions.
14210         (strtod): Use them.  This implementation prefers to use the
14211         underlying strtod if available, falling back on our own code
14212         only to fix known bugs.  This is more likely to produce an
14213         accurate result.  Also, it avoids the use of libm functions.
14214         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
14215         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
14216         was absent, but it caused a test failure with coreutils.
14217         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
14218         with libm.
14219         * modules/strtod (Makefile.am, Link): libm is no longer needed.
14220         * modules/strtod-tests (Makefile.am): Likewise.
14221
14222 2010-07-11  Pádraig Brady  <P@draigBrady.com>
14223             Bruno Haible  <bruno@clisp.org>
14224
14225         unistr/u8-strchr: Optimize ASCII argument case.
14226         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
14227
14228 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
14229
14230         (x)memcoll: minor tweaks
14231         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
14232         is after the type that it qualifies.
14233         (memcoll0): Likewise.
14234         * lib/memcoll.h (memcoll0): Likewise.
14235         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
14236         * lib/xmemcoll.h (xmemcoll0): Likewise.
14237         * lib/memcoll.c (memcoll0): Correct the comment.  This function
14238         differs from memcoll in that the NUL byte is part of the argument.
14239         Omit the abort-checks, as performance is a real issue here.  Plus,
14240         the checks were wrong anyway (an off-by-one error).  Omit local
14241         variable 'diff', as it's a bit clearer that way.
14242         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
14243         no longer needed.
14244
14245 2010-07-08  Chen Guo <chenguo4@yahoo.com>
14246
14247         (x)memcoll: speedup when input is known to be NUL delimited
14248         * lib/memcoll.c: Include stdlib.
14249         (memcoll0): New function.
14250         (strcoll_loop): New function, refactored for use in both memcoll
14251         and memcoll0.
14252         * lib/memcoll.h (memcoll0): Add prototype.
14253         * lib/xmemcoll.c (xmemcoll0): New function.
14254         (collate_error): New function, refactored for use in both xmemcoll
14255         and xmemcoll0.
14256         * lib/xmemcoll.h (xmemcoll0): Add prototype.
14257         * m4/memcoll.m4: add inline invocation.
14258
14259 2010-07-06  Pádraig Brady  <P@draigBrady.com>
14260
14261         * build-aux/bootstrap: Remove any local translations
14262         from the translation project synchronization directory,
14263         so that local only translations are not distributed.
14264
14265 2010-07-04  Bruno Haible  <bruno@clisp.org>
14266
14267         fsusage: Clarify which code applies to which platforms.
14268         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
14269         platform.
14270         * lib/fsusage.c (get_fs_usage): Likewise.
14271
14272 2010-07-04  Bruno Haible  <bruno@clisp.org>
14273
14274         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
14275         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
14276         Reported by Martin Lambers <marlam@marlam.de>.
14277
14278 2010-07-04  Jim Meyering  <meyering@redhat.com>
14279
14280         hash: once again explicitly disallow insertion of NULL
14281         * lib/hash.c (hash_insert0): Reinstate just-removed test:
14282         inserting a NULL pointer cannot work with these functions.
14283         Add a comment with details.
14284         This reverts part of the 2010-07-01 commit, 5bef1a35
14285         "hash: extend module to deal with non-pointer keys".
14286
14287 2010-07-01  Bruno Haible  <bruno@clisp.org>
14288
14289         stdbool: Update doc.
14290         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
14291         Info from Christian Weisgerber <naddy@mips.inka.de>.
14292
14293 2010-07-01  Jim Meyering  <meyering@redhat.com>
14294
14295         hash: extend module to deal with non-pointer keys
14296         * lib/hash.c (hash_insert0): New interface, much like hash_insert
14297         but that allows insertion of non-pointer entries.
14298         Do not disallow an ENTRY value of NULL.
14299         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
14300         * lib/hash.h (hash_insert0): Declare.
14301
14302 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
14303
14304         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
14305         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
14306         not present (i.e. with autoconf 2.59 and when using gettextize, not
14307         gnulib), require AC_GNU_SOURCE instead.
14308
14309 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
14310
14311         idpriv-drop: Fix tests.
14312         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
14313         not to the test-idpriv-droptemp program.
14314
14315 2010-06-29  Bruno Haible  <bruno@clisp.org>
14316
14317         string: Fix syntax error with g++ 2.96.
14318         * lib/string.in.h (__pure__): Remove definition.
14319         (_GL_ATTRIBUTE_PURE): New macro.
14320         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
14321         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
14322         Reported by Christian Weisgerber <naddy@mips.inka.de>.
14323
14324 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
14325
14326         unitypes: Fix bug introduced on 2010-05-18.
14327         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
14328
14329 2010-06-22  Eric Blake  <eblake@redhat.com>
14330
14331         memmem: slight optimization
14332         * lib/str-two-way.h (critical_factorization): Update comments.
14333         Reduce work during factorization phase.
14334         Reported by Carlos Bueno <carlos@bueno.org>.
14335
14336 2010-06-21  Bruno Haible  <bruno@clisp.org>
14337
14338         Fix HAVE_CALLOC_POSIX misnomer.
14339         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
14340         !HAVE_CALLOC_POSIX.
14341         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
14342         HAVE_CALLOC_POSIX.
14343         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
14344         instead of HAVE_CALLOC_POSIX.
14345         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
14346         HAVE_CALLOC_POSIX.
14347
14348         Use modern idiom for calloc() replacement.
14349         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
14350         AC_FUNC_CALLOC.
14351         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
14352         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
14353         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
14354         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
14355         (gl_REPLACE_CALLOC): New macro.
14356
14357 2010-06-21  Bruno Haible  <bruno@clisp.org>
14358
14359         Fix HAVE_REALLOC_POSIX misnomer.
14360         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
14361         !HAVE_REALLOC_POSIX.
14362         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
14363         HAVE_REALLOC_POSIX.
14364         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
14365         instead of HAVE_REALLOC_POSIX.
14366         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
14367         HAVE_REALLOC_POSIX.
14368
14369         Use modern idiom for realloc() replacement.
14370         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
14371         AC_FUNC_REALLOC.
14372         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
14373         Autoconf's AC_FUNC_REALLOC.
14374         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
14375         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
14376         (gl_REPLACE_REALLOC): New macro.
14377         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
14378
14379 2010-06-21  Bruno Haible  <bruno@clisp.org>
14380
14381         Fix HAVE_MALLOC_POSIX misnomer.
14382         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
14383         !HAVE_MALLOC_POSIX.
14384         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
14385         HAVE_MALLOC_POSIX.
14386         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
14387         instead of HAVE_MALLOC_POSIX.
14388         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
14389         HAVE_MALLOC_POSIX.
14390
14391         Use modern idiom for malloc() replacement.
14392         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
14393         AC_FUNC_MALLOC.
14394         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
14395         Autoconf's AC_FUNC_MALLOC.
14396         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
14397         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
14398         (gl_REPLACE_MALLOC): New macro.
14399         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
14400
14401 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
14402
14403         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
14404         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
14405         This macro takes 3 arguments, not 4.
14406
14407 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
14408
14409         ipv6: fix detection under mingw
14410         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
14411         in6_addr.
14412
14413 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
14414
14415         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
14416         that strtod() works when cross-compiling to a glibc version known
14417         to work.
14418
14419 2010-06-15  Bruno Haible  <bruno@clisp.org>
14420
14421         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
14422
14423 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
14424
14425         select: Correct timeout.
14426         * lib/select.c (rpl_select): Compute wait_timeout correctly.
14427
14428 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
14429
14430         git-version-gen: init shell var to avoid env var influence
14431         * build-aux/git-version-gen (v): Init shell var to empty.
14432
14433 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
14434
14435         priv-set: Don't assume that priv.h exists merely because getppriv does.
14436         See Jan Andersen's bug report about AIX 5L in
14437         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
14438         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
14439         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
14440         * lib/priv-set.h: Likewise.
14441         * tests/test-priv-set.c: Likewise.
14442
14443 2010-06-13  Bruno Haible  <bruno@clisp.org>
14444
14445         relocatable: Make it easier to test whether to install wrappers.
14446         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
14447         RELOCATABLE_VIA_WRAPPER.
14448
14449 2010-06-13  Bruno Haible  <bruno@clisp.org>
14450
14451         gnulib-tool: Display specified modules and dependencies differently.
14452         * gnulib-tool (func_show_module_list): New function.
14453         (func_import, func_create_testdir): Invoke it.
14454         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
14455
14456 2010-06-13  Bruno Haible  <bruno@clisp.org>
14457
14458         gnulib-tool: Align code of func_import and func_create_testdir.
14459         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
14460         specified_modules.
14461
14462 2010-06-12  Jim Meyering  <meyering@redhat.com>
14463
14464         test-inttostr: avoid spurious failure on Solaris 9
14465         * tests/test-inttostr.c (main): Skip the test when snprintf fails
14466         to accept "%ju".  Reported by Bruno Haible.
14467
14468 2010-06-11  Jim Meyering  <meyering@redhat.com>
14469
14470         test-sys_socket: mark variables as used more readably
14471         * tests/test-sys_socket.c (main): Mark otherwise unused variables
14472         as "used" explicitly via (void) statement casts.  This is more
14473         readable than using them in an artificial return expression.
14474         Suggestion from Bruno Haible.
14475
14476 2010-06-11  Bruno Haible  <bruno@clisp.org>
14477
14478         Avoid some more warnings from "gcc -Wwrite-strings".
14479         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
14480         to 'const char *'.
14481         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
14482         * tests/test-c-strcasestr.c (main): Likewise.
14483         * tests/test-mbscasestr1.c (main): Likewise.
14484         * tests/test-mbscasestr2.c (main): Likewise.
14485         * tests/test-memmem.c (main): Likewise.
14486         * tests/test-strstr.c (main): Likewise.
14487         * tests/test-strcasestr.c (main): Likewise.
14488
14489 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14490
14491         init.sh: change framework_failure_ to fail with status 99, not 1
14492         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
14493         automake's parallel-tests rule that this is an unexpected failure,
14494         even if the test is listed in XFAIL_TESTS.
14495
14496 2010-06-11  Jim Meyering  <meyering@redhat.com>
14497
14498         test-inttostr: avoid warnings about 4-6KB literal strings
14499         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
14500         Include "macros.h", for its definition of ASSERT.
14501         (CK): s/assert/ASSERT/
14502         * modules/inttostr-tests (Files): Add macros.h.
14503
14504         init.sh: don't use $ME_ or skip_ before they are defined
14505         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
14506         their first uses.  Also hoist their companions: warn_, fail_,
14507         framework_failure_, $stderr_fileno.  Prompted by a patch from
14508         Stefano Lattarini.
14509
14510         test-sys_socket: avoid set-but-not-used warnings from gcc
14511         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
14512         avoid warning about set-but-not-used variables.
14513
14514         test-xvasprintf: avoid 'const' discard warnings
14515         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
14516         "const" when assigning from literal strings.
14517         (test_xasprintf): Add "void" in function argument list to placate
14518         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
14519
14520         tests: avoid compilation warnings in argmatch and exclude tests...
14521         in packages that define ARGMATCH_DIE_DECL, like coreutils.
14522         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
14523         Since it always exits, declare with the "noreturn" attribute.
14524         * tests/test-argmatch.c: Likewise.
14525
14526         tests: avoid 'const' discard warnings in mbsstr tests
14527         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
14528         * tests/test-mbsstr2.c (main): Likewise.
14529
14530         test-verify: avoid warning from gcc's -Wmissing-declarations
14531         * tests/test-verify.c (function): Declare to be static.
14532
14533         test-inttostr.c: include <string.h> for use of strcmp
14534         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
14535
14536         test-linkat: avoid failed assertion on "other" architectures
14537         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
14538         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
14539         sparc: https://bugs.launchpad.net/bugs/591968
14540
14541 2010-06-11  Jim Meyering  <meyering@redhat.com>
14542
14543         printf.m4: avoid autoconf's "Expanded Before Required" warning
14544         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
14545         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
14546         autoconf warning.
14547
14548 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
14549
14550         Replacement header templates are now named with ".in", not "_".
14551         * doc/gnulib-intro.texi: Correct.
14552
14553 2010-06-10  Jim Meyering  <meyering@redhat.com>
14554
14555         inttostr-tests: depend on snprintf, not snprintf-posix
14556         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
14557         snprintf-posix, to avoid this aclocal failure:
14558           missing file gnulib-tests/vasnprintf.c
14559           configure.ac:45: error: expected source file, required through \
14560           AC_LIBSOURCES, not found
14561
14562 2010-06-10  Jim Meyering  <meyering@redhat.com>
14563
14564         inttostr: add a new function, inttostr, and tests
14565         The namesake function was not available.  The existence of the
14566         template file, inttostr.c makes its addition nontrivial.
14567         * lib/anytostr.c: Rename from inttostr.c.
14568         (anytostr): Rename from inttostr.
14569         * lib/inttostr.c: New file.
14570         * modules/inttostr (Files): Add anytostr.c.
14571         (Makefile.am): Set lib_SOURCES instead of ...
14572         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
14573         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
14574         * lib/offtostr.c: Likewise.
14575         * lib/uinttostr.c: Likewise.
14576         * lib/umaxtostr.c: Likewise.
14577         * modules/inttostr-tests: New file.
14578         * tests/test-inttostr.c: New file.  Test these functions.
14579
14580 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
14581             Bruno Haible  <bruno@clisp.org>
14582
14583         Add "Extending Gnulib" chapter to manual.
14584         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
14585         chapter.
14586         (Extending Gnulib): New chapter.
14587         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
14588         chapter.
14589
14590 2010-06-09  Bruno Haible  <bruno@clisp.org>
14591
14592         Avoid relocwrapper link errors due to gnulib replacement functions.
14593         * lib/areadlink.c: Use the system's malloc, realloc functions.
14594         (areadlink): Set errno to ENOMEM explicitly.
14595         * modules/areadlink (Depends-on): Remove malloc-posix.
14596         Reported by Ben Pfaff <blp@cs.stanford.edu>.
14597
14598 2010-06-09  Bruno Haible  <bruno@clisp.org>
14599
14600         Avoid relocwrapper link errors due to gnulib replacement functions.
14601         * lib/canonicalize-lgpl.c: Use the system's malloc function.
14602         * lib/malloca.c: Likewise.
14603         * lib/relocatable.c: Likewise.
14604         * lib/progreloc.c: Use the system's malloc, sprintf functions.
14605         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
14606         * lib/setenv.c: Use the system's malloc, realloc functions.
14607         * lib/strerror.c: Use the system's sprintf function.
14608         Reported by Ben Pfaff <blp@cs.stanford.edu>.
14609
14610 2010-06-04  Bruno Haible  <bruno@clisp.org>
14611
14612         Prefer documented low-level autoconf macro names.
14613         * m4/lib-link.m4: Use m4_translit instead of translit.
14614         * m4/environ.m4: Likewise.
14615         * m4/mathfunc.m4: Likewise.
14616         * m4/onceonly.m4: Likewise.
14617         * m4/stdint.m4: Likewise.
14618         Suggested by Eric Blake.
14619
14620 2010-06-04  Martin Lambers  <marlam@marlam.de>
14621             Bruno Haible  <bruno@clisp.org>
14622
14623         havelib: Allow library names with '+' characters.
14624         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
14625         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
14626
14627 2010-06-09  Bruno Haible  <bruno@clisp.org>
14628
14629         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
14630         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
14631         realloc failed.
14632
14633 2010-06-08  Peter Simons  <simons@cryp.to>
14634
14635         maint.mk: make the news-check rule more configurable
14636         * top/maint.mk (news-check-lines-spec): New variable.
14637         (news-check): Use "sed -n 1,10p" in place of "head".
14638
14639 2010-06-07  Jim Meyering  <meyering@redhat.com>
14640
14641         do-release-commit-and-tag: fix typo in --help
14642         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
14643
14644         regex: avoid new dead-code warning with gcc-4.6.0
14645         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
14646         if-block containing a while-loop.  It's been unused for at least
14647         5 years.
14648
14649 2010-06-05  Bruno Haible  <bruno@clisp.org>
14650
14651         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
14652         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
14653
14654 2010-06-04  Bruno Haible  <bruno@clisp.org>
14655
14656         Update to GNU gettext 0.18.1.
14657         * modules/gettext (configure.ac): Require gettext infrastructure from
14658         version 0.18.1.
14659
14660 2010-06-03  Bruno Haible  <bruno@clisp.org>
14661
14662         Don't use AC_LIBOBJ with file names in subdirectories.
14663         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
14664         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
14665         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
14666         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
14667         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
14668         gl_LIBUNISTRING_LIBSOURCE.
14669         (Makefile.am): Augment lib_SOURCES here, conditionally.
14670         * NEWS: Drop requirement for Automake option 'subdir-objects'.
14671
14672 2010-06-03  Bruno Haible  <bruno@clisp.org>
14673
14674         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
14675         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
14676         expansion does not end with a newline.
14677         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
14678         unnecessary newline.
14679
14680 2010-06-03  Bruno Haible  <bruno@clisp.org>
14681
14682         Reduce dependencies.
14683         * tests/test-quotearg.h: New file, extracted from
14684         tests/test-quotearg.c.
14685         * tests/test-quotearg-simple.c: New file, extracted from
14686         tests/test-quotearg.c.
14687         * tests/test-quotearg.c: Don't include <ctype.h>.
14688         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
14689         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
14690         use_quote_double_quotes, use_quotearg_colon): Moved to
14691         tests/test-quotearg.h.
14692         (results_g, flag_results, custom_quotes, custom_results): Moved
14693         to tests/test-quotearg-simple.c.
14694         (main): Moved the part that does not depend on gettext to
14695         tests/test-quotearg-simple.c. Return 77 if the test cannot be
14696         performed.
14697         * modules/quotearg-simple: New file.
14698         * modules/quotearg-simple-tests: New file.
14699         * modules/quotearg (Depends-on): Add quotearg-simple.
14700         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
14701         (Files): Add tests/test-quotearg.h.
14702         Reported by Paolo Bonzini.
14703
14704 2010-06-03  Bruno Haible  <bruno@clisp.org>
14705
14706         Reduce dependencies.
14707         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
14708
14709 2010-06-03  Bruno Haible  <bruno@clisp.org>
14710
14711         time: Undefine more broken macros.
14712         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
14713         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
14714         Reported by Eric Blake.
14715
14716 2010-06-03  Bruno Haible  <bruno@clisp.org>
14717
14718         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
14719         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
14720         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
14721         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
14722         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
14723         Reported by Ludovic Courtès <ludo@gnu.org>.
14724
14725 2010-06-02  Eric Blake  <eblake@redhat.com>
14726
14727         time: work with mingw + pthreads-win32 library
14728         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
14729         if timespec is defined only in pthread.h.
14730         * modules/time (Makefile.am): Substitute it.
14731         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
14732         <pthread.h>, when needed.
14733         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
14734         from the library.
14735
14736 2010-05-31  Bruno Haible  <bruno@clisp.org>
14737
14738         Avoid expanding two macros in the wrong order.
14739         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
14740         gl_LIBUNISTRING if it is defined.
14741         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
14742         autoconf >= 2.64.
14743         Reported by Ludovic Courtès <ludo@gnu.org>.
14744
14745 2010-05-27  Jim Meyering  <meyering@redhat.com>
14746
14747         maint.mk: also prohibit "#undef" of always-defined symbols
14748         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
14749         Allow more than one space before the symbol name.
14750         (sc_prohibit_always-defined_macros): Use grep's -E, now that
14751         the regexp uses alternation.
14752
14753 2010-05-26  Eric Blake  <eblake@redhat.com>
14754
14755         maint.mk: avoid echo -e
14756         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
14757         Convert all uses of echo -* to printf.
14758         Reported by Matthias Bolte.
14759
14760 2010-05-25  Bruno Haible  <bruno@clisp.org>
14761
14762         Update to GNU gettext 0.18, part 2.
14763         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
14764         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
14765
14766 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14767
14768         Add missing include in test-pwrite.c.
14769         * tests/test-pwrite.c: Include string.h, for strcmp.
14770
14771 2010-05-24  Bruno Haible  <bruno@clisp.org>
14772
14773         * NEWS: Mention requirement for Automake option 'subdir-objects'.
14774
14775 2010-05-24  Bruno Haible  <bruno@clisp.org>
14776
14777         Don't use conversion with transliteration in u{8,16,32}_strcoll.
14778         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
14779         iconveh_error argument.
14780         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
14781         U_STRCONV_TO_LOCALE.
14782         * lib/unistr/u16-strcoll.c: Likewise.
14783         * lib/unistr/u32-strcoll.c: Likewise.
14784         * modules/unistr/u8-strcoll (Depends-on): Add
14785         uniconv/u8-strconv-to-enc, localcharset. Remove
14786         uniconv/u8-strconv-to-locale.
14787         (configure.ac): Bump version number.
14788         * modules/unistr/u16-strcoll (Depends-on): Add
14789         uniconv/u16-strconv-to-enc, localcharset. Remove
14790         uniconv/u16-strconv-to-locale.
14791         (configure.ac): Bump version number.
14792         * modules/unistr/u32-strcoll (Depends-on): Add
14793         uniconv/u32-strconv-to-enc, localcharset. Remove
14794         uniconv/u32-strconv-to-locale.
14795         (configure.ac): Bump version number.
14796
14797 2010-05-24  Bruno Haible  <bruno@clisp.org>
14798
14799         Avoid a test failure on NetBSD 5.0.
14800         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
14801         an iconv() bug.
14802
14803 2010-05-24  Bruno Haible  <bruno@clisp.org>
14804
14805         Adjust #include directive style.
14806         * modules/regex (Includes): Recommend to write <regex.h>.
14807
14808 2010-05-24  Bruno Haible  <bruno@clisp.org>
14809
14810         regex: Don't require alloca.
14811         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
14812         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
14813         only inside if (0).
14814
14815 2010-05-23  Jim Meyering  <meyering@redhat.com>
14816
14817         test-renameat.c: include <sys/stat.h>
14818         * tests/test-renameat.c: Include <sys/stat.h>; required for
14819         definition of S_IS* macros.
14820
14821 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
14822
14823         Update maintainer documentation for 'relocatable-prog' module.
14824         * doc/relocatable-maint.texi: Update.
14825         Comments by Bruno Haible.
14826
14827 2010-05-23  Bruno Haible  <bruno@clisp.org>
14828
14829         git-merge-changelog: Enable --split-merged-entry by default.
14830         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
14831         (usage): Don't mention this option any more.
14832         Reported by Ralf Wildenhues.
14833
14834 2010-05-23  Jim Meyering  <meyering@redhat.com>
14835
14836         test-pwrite: do not leave behind a test file named "out"
14837         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
14838         The trivial-looking use of init.sh is really necessary.
14839         It ensures that the temporary file, "out", is created in
14840         a temporary directory, and removed upon termination.
14841         * tests/test-pwrite.sh: Re-add file.
14842         * modules/pwrite-tests: Reference it.
14843
14844 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14845
14846         Fix output redirection buglet in init.sh.
14847         * tests/init.sh: Fix redirection of stderr.
14848
14849 2010-05-20  Simon Josefsson  <simon@josefsson.org>
14850
14851         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
14852
14853 2010-05-17  Simon Josefsson  <simon@josefsson.org>
14854
14855         * modules/valgrind-tests: New file.
14856         * m4/valgrind-tests.m4: New file.
14857         * doc/valgrind-tests.texi: New file.
14858         * doc/gnulib.texi (Running self-tests under valgrind): New
14859         section.
14860
14861 2010-05-19  Bruno Haible  <bruno@clisp.org>
14862
14863         Clean up dead code in recent commit.
14864         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
14865         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
14866         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
14867         Suggested by Paolo Bonzini.
14868
14869 2010-05-19  Bruno Haible  <bruno@clisp.org>
14870
14871         Avoid valgrind error reports from libunistring.
14872         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
14873         * modules/libunistring (Files): Add it.
14874         * modules/libunistring-optional (Files): Likewise.
14875
14876 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
14877             Bruno Haible  <bruno@clisp.org>
14878
14879         New module 'libunistring-optional'.
14880         * modules/libunistring-optional: New file.
14881         * m4/libunistring-base.m4: New file.
14882         * m4/libunistring-optional.m4: New file.
14883         * lib/unicase.in.h: Renamed from lib/unicase.h.
14884         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
14885         * lib/unictype.in.h: Renamed from lib/unictype.h.
14886         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
14887         * lib/uniname.in.h: Renamed from lib/uniname.h.
14888         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
14889         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
14890         * lib/unistr.in.h: Renamed from lib/unistr.h.
14891         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
14892         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
14893         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
14894         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
14895         gl_LIBUNISTRING. If the library was found, determine the installed
14896         version and set LIBUNISTRING_VERSION.
14897         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
14898         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
14899         handle a configuration option --with-included-libunistring.
14900         * modules/libunistring (Files): Add m4/absolute-header.m4.
14901         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
14902         Add m4/libunistring-base.m4.
14903         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14904         (Makefile.am): Build unicase.h from unicase.in.h.
14905         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
14906         Add m4/libunistring-base.m4.
14907         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14908         (Makefile.am): Build uniconv.h from uniconv.in.h.
14909         * modules/unictype/base (Files): Use unictype.in.h instead of
14910         unictype.h. Add m4/libunistring-base.m4.
14911         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14912         (Makefile.am): Build unictype.h from unictype.in.h.
14913         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
14914         Add m4/libunistring-base.m4.
14915         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14916         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
14917         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
14918         Add m4/libunistring-base.m4.
14919         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14920         (Makefile.am): Build uniname.h from uniname.in.h.
14921         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
14922         Add m4/libunistring-base.m4.
14923         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14924         (Makefile.am): Build uninorm.h from uninorm.in.h.
14925         * modules/unistdio/base (Files): Use unistdio.in.h instead of
14926         unistdio.h. Add m4/libunistring-base.m4.
14927         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14928         (Makefile.am): Build unistdio.h from unistdio.in.h.
14929         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
14930         Add m4/libunistring-base.m4.
14931         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14932         (Makefile.am): Build unistr.h from unistr.in.h.
14933         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
14934         Add m4/libunistring-base.m4.
14935         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14936         (Makefile.am): Build unitypes.h from unitypes.in.h.
14937         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
14938         Add m4/libunistring-base.m4.
14939         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14940         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
14941         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
14942         uniwidth.h. Add m4/libunistring-base.m4.
14943         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14944         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
14945         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
14946         instead of augmenting lib_SOURCES.
14947         * modules/unicase/empty-suffix-context: Likewise.
14948         * modules/unicase/locale-language: Likewise.
14949         * modules/unicase/tolower: Likewise.
14950         * modules/unicase/totitle: Likewise.
14951         * modules/unicase/toupper: Likewise.
14952         * modules/unicase/u8-casecmp: Likewise.
14953         * modules/unicase/u8-casecoll: Likewise.
14954         * modules/unicase/u8-casefold: Likewise.
14955         * modules/unicase/u8-casexfrm: Likewise.
14956         * modules/unicase/u8-ct-casefold: Likewise.
14957         * modules/unicase/u8-ct-tolower: Likewise.
14958         * modules/unicase/u8-ct-totitle: Likewise.
14959         * modules/unicase/u8-ct-toupper: Likewise.
14960         * modules/unicase/u8-is-cased: Likewise.
14961         * modules/unicase/u8-is-casefolded: Likewise.
14962         * modules/unicase/u8-is-lowercase: Likewise.
14963         * modules/unicase/u8-is-titlecase: Likewise.
14964         * modules/unicase/u8-is-uppercase: Likewise.
14965         * modules/unicase/u8-prefix-context: Likewise.
14966         * modules/unicase/u8-suffix-context: Likewise.
14967         * modules/unicase/u8-tolower: Likewise.
14968         * modules/unicase/u8-totitle: Likewise.
14969         * modules/unicase/u8-toupper: Likewise.
14970         * modules/unicase/u16-casecmp: Likewise.
14971         * modules/unicase/u16-casecoll: Likewise.
14972         * modules/unicase/u16-casefold: Likewise.
14973         * modules/unicase/u16-casexfrm: Likewise.
14974         * modules/unicase/u16-ct-casefold: Likewise.
14975         * modules/unicase/u16-ct-tolower: Likewise.
14976         * modules/unicase/u16-ct-totitle: Likewise.
14977         * modules/unicase/u16-ct-toupper: Likewise.
14978         * modules/unicase/u16-is-cased: Likewise.
14979         * modules/unicase/u16-is-casefolded: Likewise.
14980         * modules/unicase/u16-is-lowercase: Likewise.
14981         * modules/unicase/u16-is-titlecase: Likewise.
14982         * modules/unicase/u16-is-uppercase: Likewise.
14983         * modules/unicase/u16-prefix-context: Likewise.
14984         * modules/unicase/u16-suffix-context: Likewise.
14985         * modules/unicase/u16-tolower: Likewise.
14986         * modules/unicase/u16-totitle: Likewise.
14987         * modules/unicase/u16-toupper: Likewise.
14988         * modules/unicase/u32-casecmp: Likewise.
14989         * modules/unicase/u32-casecoll: Likewise.
14990         * modules/unicase/u32-casefold: Likewise.
14991         * modules/unicase/u32-casexfrm: Likewise.
14992         * modules/unicase/u32-ct-casefold: Likewise.
14993         * modules/unicase/u32-ct-tolower: Likewise.
14994         * modules/unicase/u32-ct-totitle: Likewise.
14995         * modules/unicase/u32-ct-toupper: Likewise.
14996         * modules/unicase/u32-is-cased: Likewise.
14997         * modules/unicase/u32-is-casefolded: Likewise.
14998         * modules/unicase/u32-is-lowercase: Likewise.
14999         * modules/unicase/u32-is-titlecase: Likewise.
15000         * modules/unicase/u32-is-uppercase: Likewise.
15001         * modules/unicase/u32-prefix-context: Likewise.
15002         * modules/unicase/u32-suffix-context: Likewise.
15003         * modules/unicase/u32-tolower: Likewise.
15004         * modules/unicase/u32-totitle: Likewise.
15005         * modules/unicase/u32-toupper: Likewise.
15006         * modules/unicase/ulc-casecmp: Likewise.
15007         * modules/unicase/ulc-casecoll: Likewise.
15008         * modules/unicase/ulc-casexfrm: Likewise.
15009         * modules/uniconv/u8-conv-from-enc: Likewise.
15010         * modules/uniconv/u8-conv-to-enc: Likewise.
15011         * modules/uniconv/u8-strconv-from-enc: Likewise.
15012         * modules/uniconv/u8-strconv-from-locale: Likewise.
15013         * modules/uniconv/u8-strconv-to-enc: Likewise.
15014         * modules/uniconv/u8-strconv-to-locale: Likewise.
15015         * modules/uniconv/u16-conv-from-enc: Likewise.
15016         * modules/uniconv/u16-conv-to-enc: Likewise.
15017         * modules/uniconv/u16-strconv-from-enc: Likewise.
15018         * modules/uniconv/u16-strconv-from-locale: Likewise.
15019         * modules/uniconv/u16-strconv-to-enc: Likewise.
15020         * modules/uniconv/u16-strconv-to-locale: Likewise.
15021         * modules/uniconv/u32-conv-from-enc: Likewise.
15022         * modules/uniconv/u32-conv-to-enc: Likewise.
15023         * modules/uniconv/u32-strconv-from-enc: Likewise.
15024         * modules/uniconv/u32-strconv-from-locale: Likewise.
15025         * modules/uniconv/u32-strconv-to-enc: Likewise.
15026         * modules/uniconv/u32-strconv-to-locale: Likewise.
15027         * modules/unictype/bidicategory-byname: Likewise.
15028         * modules/unictype/bidicategory-name: Likewise.
15029         * modules/unictype/bidicategory-of: Likewise.
15030         * modules/unictype/bidicategory-test: Likewise.
15031         * modules/unictype/block-list: Likewise.
15032         * modules/unictype/block-test: Likewise.
15033         * modules/unictype/category-C: Likewise.
15034         * modules/unictype/category-Cc: Likewise.
15035         * modules/unictype/category-Cf: Likewise.
15036         * modules/unictype/category-Cn: Likewise.
15037         * modules/unictype/category-Co: Likewise.
15038         * modules/unictype/category-Cs: Likewise.
15039         * modules/unictype/category-L: Likewise.
15040         * modules/unictype/category-Ll: Likewise.
15041         * modules/unictype/category-Lm: Likewise.
15042         * modules/unictype/category-Lo: Likewise.
15043         * modules/unictype/category-Lt: Likewise.
15044         * modules/unictype/category-Lu: Likewise.
15045         * modules/unictype/category-M: Likewise.
15046         * modules/unictype/category-Mc: Likewise.
15047         * modules/unictype/category-Me: Likewise.
15048         * modules/unictype/category-Mn: Likewise.
15049         * modules/unictype/category-N: Likewise.
15050         * modules/unictype/category-Nd: Likewise.
15051         * modules/unictype/category-Nl: Likewise.
15052         * modules/unictype/category-No: Likewise.
15053         * modules/unictype/category-P: Likewise.
15054         * modules/unictype/category-Pc: Likewise.
15055         * modules/unictype/category-Pd: Likewise.
15056         * modules/unictype/category-Pe: Likewise.
15057         * modules/unictype/category-Pf: Likewise.
15058         * modules/unictype/category-Pi: Likewise.
15059         * modules/unictype/category-Po: Likewise.
15060         * modules/unictype/category-Ps: Likewise.
15061         * modules/unictype/category-S: Likewise.
15062         * modules/unictype/category-Sc: Likewise.
15063         * modules/unictype/category-Sk: Likewise.
15064         * modules/unictype/category-Sm: Likewise.
15065         * modules/unictype/category-So: Likewise.
15066         * modules/unictype/category-Z: Likewise.
15067         * modules/unictype/category-Zl: Likewise.
15068         * modules/unictype/category-Zp: Likewise.
15069         * modules/unictype/category-Zs: Likewise.
15070         * modules/unictype/category-and: Likewise.
15071         * modules/unictype/category-and-not: Likewise.
15072         * modules/unictype/category-byname: Likewise.
15073         * modules/unictype/category-name: Likewise.
15074         * modules/unictype/category-none: Likewise.
15075         * modules/unictype/category-of: Likewise.
15076         * modules/unictype/category-or: Likewise.
15077         * modules/unictype/category-test: Likewise.
15078         * modules/unictype/combining-class: Likewise.
15079         * modules/unictype/ctype-alnum: Likewise.
15080         * modules/unictype/ctype-alpha: Likewise.
15081         * modules/unictype/ctype-blank: Likewise.
15082         * modules/unictype/ctype-cntrl: Likewise.
15083         * modules/unictype/ctype-digit: Likewise.
15084         * modules/unictype/ctype-graph: Likewise.
15085         * modules/unictype/ctype-lower: Likewise.
15086         * modules/unictype/ctype-print: Likewise.
15087         * modules/unictype/ctype-punct: Likewise.
15088         * modules/unictype/ctype-space: Likewise.
15089         * modules/unictype/ctype-upper: Likewise.
15090         * modules/unictype/ctype-xdigit: Likewise.
15091         * modules/unictype/decimal-digit: Likewise.
15092         * modules/unictype/digit: Likewise.
15093         * modules/unictype/mirror: Likewise.
15094         * modules/unictype/numeric: Likewise.
15095         * modules/unictype/property-alphabetic: Likewise.
15096         * modules/unictype/property-ascii-hex-digit: Likewise.
15097         * modules/unictype/property-bidi-arabic-digit: Likewise.
15098         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
15099         * modules/unictype/property-bidi-block-separator: Likewise.
15100         * modules/unictype/property-bidi-boundary-neutral: Likewise.
15101         * modules/unictype/property-bidi-common-separator: Likewise.
15102         * modules/unictype/property-bidi-control: Likewise.
15103         * modules/unictype/property-bidi-embedding-or-override: Likewise.
15104         * modules/unictype/property-bidi-eur-num-separator: Likewise.
15105         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
15106         * modules/unictype/property-bidi-european-digit: Likewise.
15107         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
15108         * modules/unictype/property-bidi-left-to-right: Likewise.
15109         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
15110         * modules/unictype/property-bidi-other-neutral: Likewise.
15111         * modules/unictype/property-bidi-pdf: Likewise.
15112         * modules/unictype/property-bidi-segment-separator: Likewise.
15113         * modules/unictype/property-bidi-whitespace: Likewise.
15114         * modules/unictype/property-byname: Likewise.
15115         * modules/unictype/property-combining: Likewise.
15116         * modules/unictype/property-composite: Likewise.
15117         * modules/unictype/property-currency-symbol: Likewise.
15118         * modules/unictype/property-dash: Likewise.
15119         * modules/unictype/property-decimal-digit: Likewise.
15120         * modules/unictype/property-default-ignorable-code-point: Likewise.
15121         * modules/unictype/property-deprecated: Likewise.
15122         * modules/unictype/property-diacritic: Likewise.
15123         * modules/unictype/property-extender: Likewise.
15124         * modules/unictype/property-format-control: Likewise.
15125         * modules/unictype/property-grapheme-base: Likewise.
15126         * modules/unictype/property-grapheme-extend: Likewise.
15127         * modules/unictype/property-grapheme-link: Likewise.
15128         * modules/unictype/property-hex-digit: Likewise.
15129         * modules/unictype/property-hyphen: Likewise.
15130         * modules/unictype/property-id-continue: Likewise.
15131         * modules/unictype/property-id-start: Likewise.
15132         * modules/unictype/property-ideographic: Likewise.
15133         * modules/unictype/property-ids-binary-operator: Likewise.
15134         * modules/unictype/property-ids-trinary-operator: Likewise.
15135         * modules/unictype/property-ignorable-control: Likewise.
15136         * modules/unictype/property-iso-control: Likewise.
15137         * modules/unictype/property-join-control: Likewise.
15138         * modules/unictype/property-left-of-pair: Likewise.
15139         * modules/unictype/property-line-separator: Likewise.
15140         * modules/unictype/property-logical-order-exception: Likewise.
15141         * modules/unictype/property-lowercase: Likewise.
15142         * modules/unictype/property-math: Likewise.
15143         * modules/unictype/property-non-break: Likewise.
15144         * modules/unictype/property-not-a-character: Likewise.
15145         * modules/unictype/property-numeric: Likewise.
15146         * modules/unictype/property-other-alphabetic: Likewise.
15147         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
15148         * modules/unictype/property-other-grapheme-extend: Likewise.
15149         * modules/unictype/property-other-id-continue: Likewise.
15150         * modules/unictype/property-other-id-start: Likewise.
15151         * modules/unictype/property-other-lowercase: Likewise.
15152         * modules/unictype/property-other-math: Likewise.
15153         * modules/unictype/property-other-uppercase: Likewise.
15154         * modules/unictype/property-paired-punctuation: Likewise.
15155         * modules/unictype/property-paragraph-separator: Likewise.
15156         * modules/unictype/property-pattern-syntax: Likewise.
15157         * modules/unictype/property-pattern-white-space: Likewise.
15158         * modules/unictype/property-private-use: Likewise.
15159         * modules/unictype/property-punctuation: Likewise.
15160         * modules/unictype/property-quotation-mark: Likewise.
15161         * modules/unictype/property-radical: Likewise.
15162         * modules/unictype/property-sentence-terminal: Likewise.
15163         * modules/unictype/property-soft-dotted: Likewise.
15164         * modules/unictype/property-space: Likewise.
15165         * modules/unictype/property-terminal-punctuation: Likewise.
15166         * modules/unictype/property-test: Likewise.
15167         * modules/unictype/property-titlecase: Likewise.
15168         * modules/unictype/property-unassigned-code-value: Likewise.
15169         * modules/unictype/property-unified-ideograph: Likewise.
15170         * modules/unictype/property-uppercase: Likewise.
15171         * modules/unictype/property-variation-selector: Likewise.
15172         * modules/unictype/property-white-space: Likewise.
15173         * modules/unictype/property-xid-continue: Likewise.
15174         * modules/unictype/property-xid-start: Likewise.
15175         * modules/unictype/property-zero-width: Likewise.
15176         * modules/unictype/scripts: Likewise.
15177         * modules/unictype/syntax-c-ident: Likewise.
15178         * modules/unictype/syntax-c-whitespace: Likewise.
15179         * modules/unictype/syntax-java-ident: Likewise.
15180         * modules/unictype/syntax-java-whitespace: Likewise.
15181         * modules/unilbrk/u8-possible-linebreaks: Likewise.
15182         * modules/unilbrk/u8-width-linebreaks: Likewise.
15183         * modules/unilbrk/u16-possible-linebreaks: Likewise.
15184         * modules/unilbrk/u16-width-linebreaks: Likewise.
15185         * modules/unilbrk/u32-possible-linebreaks: Likewise.
15186         * modules/unilbrk/u32-width-linebreaks: Likewise.
15187         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
15188         * modules/unilbrk/ulc-width-linebreaks: Likewise.
15189         * modules/uniname/uniname: Likewise.
15190         * modules/uninorm/canonical-decomposition: Likewise.
15191         * modules/uninorm/composition: Likewise.
15192         * modules/uninorm/decomposing-form: Likewise.
15193         * modules/uninorm/decomposition: Likewise.
15194         * modules/uninorm/filter: Likewise.
15195         * modules/uninorm/nfc: Likewise.
15196         * modules/uninorm/nfd: Likewise.
15197         * modules/uninorm/nfkc: Likewise.
15198         * modules/uninorm/nfkd: Likewise.
15199         * modules/uninorm/u8-normalize: Likewise.
15200         * modules/uninorm/u8-normcmp: Likewise.
15201         * modules/uninorm/u8-normcoll: Likewise.
15202         * modules/uninorm/u8-normxfrm: Likewise.
15203         * modules/uninorm/u16-normalize: Likewise.
15204         * modules/uninorm/u16-normcmp: Likewise.
15205         * modules/uninorm/u16-normcoll: Likewise.
15206         * modules/uninorm/u16-normxfrm: Likewise.
15207         * modules/uninorm/u32-normalize: Likewise.
15208         * modules/uninorm/u32-normcmp: Likewise.
15209         * modules/uninorm/u32-normcoll: Likewise.
15210         * modules/uninorm/u32-normxfrm: Likewise.
15211         * modules/unistdio/u8-asnprintf: Likewise.
15212         * modules/unistdio/u8-asprintf: Likewise.
15213         * modules/unistdio/u8-snprintf: Likewise.
15214         * modules/unistdio/u8-sprintf: Likewise.
15215         * modules/unistdio/u8-u8-asnprintf: Likewise.
15216         * modules/unistdio/u8-u8-asprintf: Likewise.
15217         * modules/unistdio/u8-u8-snprintf: Likewise.
15218         * modules/unistdio/u8-u8-sprintf: Likewise.
15219         * modules/unistdio/u8-u8-vasnprintf: Likewise.
15220         * modules/unistdio/u8-u8-vasprintf: Likewise.
15221         * modules/unistdio/u8-u8-vsnprintf: Likewise.
15222         * modules/unistdio/u8-u8-vsprintf: Likewise.
15223         * modules/unistdio/u8-vasnprintf: Likewise.
15224         * modules/unistdio/u8-vasprintf: Likewise.
15225         * modules/unistdio/u8-vsnprintf: Likewise.
15226         * modules/unistdio/u8-vsprintf: Likewise.
15227         * modules/unistdio/u16-asnprintf: Likewise.
15228         * modules/unistdio/u16-asprintf: Likewise.
15229         * modules/unistdio/u16-snprintf: Likewise.
15230         * modules/unistdio/u16-sprintf: Likewise.
15231         * modules/unistdio/u16-u16-asnprintf: Likewise.
15232         * modules/unistdio/u16-u16-asprintf: Likewise.
15233         * modules/unistdio/u16-u16-snprintf: Likewise.
15234         * modules/unistdio/u16-u16-sprintf: Likewise.
15235         * modules/unistdio/u16-u16-vasnprintf: Likewise.
15236         * modules/unistdio/u16-u16-vasprintf: Likewise.
15237         * modules/unistdio/u16-u16-vsnprintf: Likewise.
15238         * modules/unistdio/u16-u16-vsprintf: Likewise.
15239         * modules/unistdio/u16-vasnprintf: Likewise.
15240         * modules/unistdio/u16-vasprintf: Likewise.
15241         * modules/unistdio/u16-vsnprintf: Likewise.
15242         * modules/unistdio/u16-vsprintf: Likewise.
15243         * modules/unistdio/u32-asnprintf: Likewise.
15244         * modules/unistdio/u32-asprintf: Likewise.
15245         * modules/unistdio/u32-snprintf: Likewise.
15246         * modules/unistdio/u32-sprintf: Likewise.
15247         * modules/unistdio/u32-u32-asnprintf: Likewise.
15248         * modules/unistdio/u32-u32-asprintf: Likewise.
15249         * modules/unistdio/u32-u32-snprintf: Likewise.
15250         * modules/unistdio/u32-u32-sprintf: Likewise.
15251         * modules/unistdio/u32-u32-vasnprintf: Likewise.
15252         * modules/unistdio/u32-u32-vasprintf: Likewise.
15253         * modules/unistdio/u32-u32-vsnprintf: Likewise.
15254         * modules/unistdio/u32-u32-vsprintf: Likewise.
15255         * modules/unistdio/u32-vasnprintf: Likewise.
15256         * modules/unistdio/u32-vasprintf: Likewise.
15257         * modules/unistdio/u32-vsnprintf: Likewise.
15258         * modules/unistdio/u32-vsprintf: Likewise.
15259         * modules/unistdio/ulc-asnprintf: Likewise.
15260         * modules/unistdio/ulc-asprintf: Likewise.
15261         * modules/unistdio/ulc-fprintf: Likewise.
15262         * modules/unistdio/ulc-snprintf: Likewise.
15263         * modules/unistdio/ulc-sprintf: Likewise.
15264         * modules/unistdio/ulc-vasnprintf: Likewise.
15265         * modules/unistdio/ulc-vasprintf: Likewise.
15266         * modules/unistdio/ulc-vfprintf: Likewise.
15267         * modules/unistdio/ulc-vsnprintf: Likewise.
15268         * modules/unistdio/ulc-vsprintf: Likewise.
15269         * modules/unistr/u8-check: Likewise.
15270         * modules/unistr/u8-chr: Likewise.
15271         * modules/unistr/u8-cmp: Likewise.
15272         * modules/unistr/u8-cmp2: Likewise.
15273         * modules/unistr/u8-cpy: Likewise.
15274         * modules/unistr/u8-cpy-alloc: Likewise.
15275         * modules/unistr/u8-endswith: Likewise.
15276         * modules/unistr/u8-mblen: Likewise.
15277         * modules/unistr/u8-mbsnlen: Likewise.
15278         * modules/unistr/u8-mbtouc: Likewise.
15279         * modules/unistr/u8-mbtouc-unsafe: Likewise.
15280         * modules/unistr/u8-mbtoucr: Likewise.
15281         * modules/unistr/u8-move: Likewise.
15282         * modules/unistr/u8-next: Likewise.
15283         * modules/unistr/u8-prev: Likewise.
15284         * modules/unistr/u8-set: Likewise.
15285         * modules/unistr/u8-startswith: Likewise.
15286         * modules/unistr/u8-stpcpy: Likewise.
15287         * modules/unistr/u8-stpncpy: Likewise.
15288         * modules/unistr/u8-strcat: Likewise.
15289         * modules/unistr/u8-strchr: Likewise.
15290         * modules/unistr/u8-strcmp: Likewise.
15291         * modules/unistr/u8-strcoll: Likewise.
15292         * modules/unistr/u8-strcpy: Likewise.
15293         * modules/unistr/u8-strcspn: Likewise.
15294         * modules/unistr/u8-strdup: Likewise.
15295         * modules/unistr/u8-strlen: Likewise.
15296         * modules/unistr/u8-strmblen: Likewise.
15297         * modules/unistr/u8-strmbtouc: Likewise.
15298         * modules/unistr/u8-strncat: Likewise.
15299         * modules/unistr/u8-strncmp: Likewise.
15300         * modules/unistr/u8-strncpy: Likewise.
15301         * modules/unistr/u8-strnlen: Likewise.
15302         * modules/unistr/u8-strpbrk: Likewise.
15303         * modules/unistr/u8-strrchr: Likewise.
15304         * modules/unistr/u8-strspn: Likewise.
15305         * modules/unistr/u8-strstr: Likewise.
15306         * modules/unistr/u8-strtok: Likewise.
15307         * modules/unistr/u8-to-u16: Likewise.
15308         * modules/unistr/u8-to-u32: Likewise.
15309         * modules/unistr/u8-uctomb: Likewise.
15310         * modules/unistr/u16-check: Likewise.
15311         * modules/unistr/u16-chr: Likewise.
15312         * modules/unistr/u16-cmp: Likewise.
15313         * modules/unistr/u16-cmp2: Likewise.
15314         * modules/unistr/u16-cpy: Likewise.
15315         * modules/unistr/u16-cpy-alloc: Likewise.
15316         * modules/unistr/u16-endswith: Likewise.
15317         * modules/unistr/u16-mblen: Likewise.
15318         * modules/unistr/u16-mbsnlen: Likewise.
15319         * modules/unistr/u16-mbtouc: Likewise.
15320         * modules/unistr/u16-mbtouc-unsafe: Likewise.
15321         * modules/unistr/u16-mbtoucr: Likewise.
15322         * modules/unistr/u16-move: Likewise.
15323         * modules/unistr/u16-next: Likewise.
15324         * modules/unistr/u16-prev: Likewise.
15325         * modules/unistr/u16-set: Likewise.
15326         * modules/unistr/u16-startswith: Likewise.
15327         * modules/unistr/u16-stpcpy: Likewise.
15328         * modules/unistr/u16-stpncpy: Likewise.
15329         * modules/unistr/u16-strcat: Likewise.
15330         * modules/unistr/u16-strchr: Likewise.
15331         * modules/unistr/u16-strcmp: Likewise.
15332         * modules/unistr/u16-strcoll: Likewise.
15333         * modules/unistr/u16-strcpy: Likewise.
15334         * modules/unistr/u16-strcspn: Likewise.
15335         * modules/unistr/u16-strdup: Likewise.
15336         * modules/unistr/u16-strlen: Likewise.
15337         * modules/unistr/u16-strmblen: Likewise.
15338         * modules/unistr/u16-strmbtouc: Likewise.
15339         * modules/unistr/u16-strncat: Likewise.
15340         * modules/unistr/u16-strncmp: Likewise.
15341         * modules/unistr/u16-strncpy: Likewise.
15342         * modules/unistr/u16-strnlen: Likewise.
15343         * modules/unistr/u16-strpbrk: Likewise.
15344         * modules/unistr/u16-strrchr: Likewise.
15345         * modules/unistr/u16-strspn: Likewise.
15346         * modules/unistr/u16-strstr: Likewise.
15347         * modules/unistr/u16-strtok: Likewise.
15348         * modules/unistr/u16-to-u32: Likewise.
15349         * modules/unistr/u16-to-u8: Likewise.
15350         * modules/unistr/u16-uctomb: Likewise.
15351         * modules/unistr/u32-check: Likewise.
15352         * modules/unistr/u32-chr: Likewise.
15353         * modules/unistr/u32-cmp: Likewise.
15354         * modules/unistr/u32-cmp2: Likewise.
15355         * modules/unistr/u32-cpy: Likewise.
15356         * modules/unistr/u32-cpy-alloc: Likewise.
15357         * modules/unistr/u32-endswith: Likewise.
15358         * modules/unistr/u32-mblen: Likewise.
15359         * modules/unistr/u32-mbsnlen: Likewise.
15360         * modules/unistr/u32-mbtouc: Likewise.
15361         * modules/unistr/u32-mbtouc-unsafe: Likewise.
15362         * modules/unistr/u32-mbtoucr: Likewise.
15363         * modules/unistr/u32-move: Likewise.
15364         * modules/unistr/u32-next: Likewise.
15365         * modules/unistr/u32-prev: Likewise.
15366         * modules/unistr/u32-set: Likewise.
15367         * modules/unistr/u32-startswith: Likewise.
15368         * modules/unistr/u32-stpcpy: Likewise.
15369         * modules/unistr/u32-stpncpy: Likewise.
15370         * modules/unistr/u32-strcat: Likewise.
15371         * modules/unistr/u32-strchr: Likewise.
15372         * modules/unistr/u32-strcmp: Likewise.
15373         * modules/unistr/u32-strcoll: Likewise.
15374         * modules/unistr/u32-strcpy: Likewise.
15375         * modules/unistr/u32-strcspn: Likewise.
15376         * modules/unistr/u32-strdup: Likewise.
15377         * modules/unistr/u32-strlen: Likewise.
15378         * modules/unistr/u32-strmblen: Likewise.
15379         * modules/unistr/u32-strmbtouc: Likewise.
15380         * modules/unistr/u32-strncat: Likewise.
15381         * modules/unistr/u32-strncmp: Likewise.
15382         * modules/unistr/u32-strncpy: Likewise.
15383         * modules/unistr/u32-strnlen: Likewise.
15384         * modules/unistr/u32-strpbrk: Likewise.
15385         * modules/unistr/u32-strrchr: Likewise.
15386         * modules/unistr/u32-strspn: Likewise.
15387         * modules/unistr/u32-strstr: Likewise.
15388         * modules/unistr/u32-strtok: Likewise.
15389         * modules/unistr/u32-to-u16: Likewise.
15390         * modules/unistr/u32-to-u8: Likewise.
15391         * modules/unistr/u32-uctomb: Likewise.
15392         * modules/uniwbrk/u8-wordbreaks: Likewise.
15393         * modules/uniwbrk/u16-wordbreaks: Likewise.
15394         * modules/uniwbrk/u32-wordbreaks: Likewise.
15395         * modules/uniwbrk/ulc-wordbreaks: Likewise.
15396         * modules/uniwbrk/wordbreak-property: Likewise.
15397         * modules/uniwidth/u8-strwidth: Likewise.
15398         * modules/uniwidth/u8-width: Likewise.
15399         * modules/uniwidth/u16-strwidth: Likewise.
15400         * modules/uniwidth/u16-width: Likewise.
15401         * modules/uniwidth/u32-strwidth: Likewise.
15402         * modules/uniwidth/u32-width: Likewise.
15403         * modules/uniwidth/width: Likewise.
15404         * modules/unicase/cased-tests (Makefile.am): Link all test programs
15405         with $(LIBUNISTRING).
15406         * modules/unicase/ignorable-tests: Likewise.
15407         * modules/unicase/locale-language-tests: Likewise.
15408         * modules/unicase/tolower-tests: Likewise.
15409         * modules/unicase/totitle-tests: Likewise.
15410         * modules/unicase/toupper-tests: Likewise.
15411         * modules/unicase/u8-casecmp-tests: Likewise.
15412         * modules/unicase/u8-casecoll-tests: Likewise.
15413         * modules/unicase/u8-casefold-tests: Likewise.
15414         * modules/unicase/u8-is-cased-tests: Likewise.
15415         * modules/unicase/u8-is-casefolded-tests: Likewise.
15416         * modules/unicase/u8-is-lowercase-tests: Likewise.
15417         * modules/unicase/u8-is-titlecase-tests: Likewise.
15418         * modules/unicase/u8-is-uppercase-tests: Likewise.
15419         * modules/unicase/u8-tolower-tests: Likewise.
15420         * modules/unicase/u8-totitle-tests: Likewise.
15421         * modules/unicase/u8-toupper-tests: Likewise.
15422         * modules/unicase/u16-casecmp-tests: Likewise.
15423         * modules/unicase/u16-casecoll-tests: Likewise.
15424         * modules/unicase/u16-casefold-tests: Likewise.
15425         * modules/unicase/u16-is-cased-tests: Likewise.
15426         * modules/unicase/u16-is-casefolded-tests: Likewise.
15427         * modules/unicase/u16-is-lowercase-tests: Likewise.
15428         * modules/unicase/u16-is-titlecase-tests: Likewise.
15429         * modules/unicase/u16-is-uppercase-tests: Likewise.
15430         * modules/unicase/u16-tolower-tests: Likewise.
15431         * modules/unicase/u16-totitle-tests: Likewise.
15432         * modules/unicase/u16-toupper-tests: Likewise.
15433         * modules/unicase/u32-casecmp-tests: Likewise.
15434         * modules/unicase/u32-casecoll-tests: Likewise.
15435         * modules/unicase/u32-casefold-tests: Likewise.
15436         * modules/unicase/u32-is-cased-tests: Likewise.
15437         * modules/unicase/u32-is-casefolded-tests: Likewise.
15438         * modules/unicase/u32-is-lowercase-tests: Likewise.
15439         * modules/unicase/u32-is-titlecase-tests: Likewise.
15440         * modules/unicase/u32-is-uppercase-tests: Likewise.
15441         * modules/unicase/u32-tolower-tests: Likewise.
15442         * modules/unicase/u32-totitle-tests: Likewise.
15443         * modules/unicase/u32-toupper-tests: Likewise.
15444         * modules/unicase/ulc-casecmp-tests: Likewise.
15445         * modules/unicase/ulc-casecoll-tests: Likewise.
15446         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
15447         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
15448         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
15449         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
15450         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
15451         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
15452         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
15453         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
15454         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
15455         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
15456         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
15457         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
15458         * modules/unictype/bidicategory-byname-tests: Likewise.
15459         * modules/unictype/bidicategory-name-tests: Likewise.
15460         * modules/unictype/bidicategory-of-tests: Likewise.
15461         * modules/unictype/bidicategory-test-tests: Likewise.
15462         * modules/unictype/block-list-tests: Likewise.
15463         * modules/unictype/block-of-tests: Likewise.
15464         * modules/unictype/block-test-tests: Likewise.
15465         * modules/unictype/category-C-tests: Likewise.
15466         * modules/unictype/category-Cc-tests: Likewise.
15467         * modules/unictype/category-Cf-tests: Likewise.
15468         * modules/unictype/category-Cn-tests: Likewise.
15469         * modules/unictype/category-Co-tests: Likewise.
15470         * modules/unictype/category-Cs-tests: Likewise.
15471         * modules/unictype/category-L-tests: Likewise.
15472         * modules/unictype/category-Ll-tests: Likewise.
15473         * modules/unictype/category-Lm-tests: Likewise.
15474         * modules/unictype/category-Lo-tests: Likewise.
15475         * modules/unictype/category-Lt-tests: Likewise.
15476         * modules/unictype/category-Lu-tests: Likewise.
15477         * modules/unictype/category-M-tests: Likewise.
15478         * modules/unictype/category-Mc-tests: Likewise.
15479         * modules/unictype/category-Me-tests: Likewise.
15480         * modules/unictype/category-Mn-tests: Likewise.
15481         * modules/unictype/category-N-tests: Likewise.
15482         * modules/unictype/category-Nd-tests: Likewise.
15483         * modules/unictype/category-Nl-tests: Likewise.
15484         * modules/unictype/category-No-tests: Likewise.
15485         * modules/unictype/category-P-tests: Likewise.
15486         * modules/unictype/category-Pc-tests: Likewise.
15487         * modules/unictype/category-Pd-tests: Likewise.
15488         * modules/unictype/category-Pe-tests: Likewise.
15489         * modules/unictype/category-Pf-tests: Likewise.
15490         * modules/unictype/category-Pi-tests: Likewise.
15491         * modules/unictype/category-Po-tests: Likewise.
15492         * modules/unictype/category-Ps-tests: Likewise.
15493         * modules/unictype/category-S-tests: Likewise.
15494         * modules/unictype/category-Sc-tests: Likewise.
15495         * modules/unictype/category-Sk-tests: Likewise.
15496         * modules/unictype/category-Sm-tests: Likewise.
15497         * modules/unictype/category-So-tests: Likewise.
15498         * modules/unictype/category-Z-tests: Likewise.
15499         * modules/unictype/category-Zl-tests: Likewise.
15500         * modules/unictype/category-Zp-tests: Likewise.
15501         * modules/unictype/category-Zs-tests: Likewise.
15502         * modules/unictype/category-and-not-tests: Likewise.
15503         * modules/unictype/category-and-tests: Likewise.
15504         * modules/unictype/category-byname-tests: Likewise.
15505         * modules/unictype/category-name-tests: Likewise.
15506         * modules/unictype/category-none-tests: Likewise.
15507         * modules/unictype/category-of-tests: Likewise.
15508         * modules/unictype/category-or-tests: Likewise.
15509         * modules/unictype/category-test-withtable-tests: Likewise.
15510         * modules/unictype/combining-class-tests: Likewise.
15511         * modules/unictype/ctype-alnum-tests: Likewise.
15512         * modules/unictype/ctype-alpha-tests: Likewise.
15513         * modules/unictype/ctype-blank-tests: Likewise.
15514         * modules/unictype/ctype-cntrl-tests: Likewise.
15515         * modules/unictype/ctype-digit-tests: Likewise.
15516         * modules/unictype/ctype-graph-tests: Likewise.
15517         * modules/unictype/ctype-lower-tests: Likewise.
15518         * modules/unictype/ctype-print-tests: Likewise.
15519         * modules/unictype/ctype-punct-tests: Likewise.
15520         * modules/unictype/ctype-space-tests: Likewise.
15521         * modules/unictype/ctype-upper-tests: Likewise.
15522         * modules/unictype/ctype-xdigit-tests: Likewise.
15523         * modules/unictype/decimal-digit-tests: Likewise.
15524         * modules/unictype/digit-tests: Likewise.
15525         * modules/unictype/mirror-tests: Likewise.
15526         * modules/unictype/numeric-tests: Likewise.
15527         * modules/unictype/property-alphabetic-tests: Likewise.
15528         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
15529         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
15530         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
15531         * modules/unictype/property-bidi-block-separator-tests: Likewise.
15532         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
15533         * modules/unictype/property-bidi-common-separator-tests: Likewise.
15534         * modules/unictype/property-bidi-control-tests: Likewise.
15535         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
15536         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
15537         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
15538         * modules/unictype/property-bidi-european-digit-tests: Likewise.
15539         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
15540         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
15541         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
15542         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
15543         * modules/unictype/property-bidi-pdf-tests: Likewise.
15544         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
15545         * modules/unictype/property-bidi-whitespace-tests: Likewise.
15546         * modules/unictype/property-byname-tests: Likewise.
15547         * modules/unictype/property-combining-tests: Likewise.
15548         * modules/unictype/property-composite-tests: Likewise.
15549         * modules/unictype/property-currency-symbol-tests: Likewise.
15550         * modules/unictype/property-dash-tests: Likewise.
15551         * modules/unictype/property-decimal-digit-tests: Likewise.
15552         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
15553         * modules/unictype/property-deprecated-tests: Likewise.
15554         * modules/unictype/property-diacritic-tests: Likewise.
15555         * modules/unictype/property-extender-tests: Likewise.
15556         * modules/unictype/property-format-control-tests: Likewise.
15557         * modules/unictype/property-grapheme-base-tests: Likewise.
15558         * modules/unictype/property-grapheme-extend-tests: Likewise.
15559         * modules/unictype/property-grapheme-link-tests: Likewise.
15560         * modules/unictype/property-hex-digit-tests: Likewise.
15561         * modules/unictype/property-hyphen-tests: Likewise.
15562         * modules/unictype/property-id-continue-tests: Likewise.
15563         * modules/unictype/property-id-start-tests: Likewise.
15564         * modules/unictype/property-ideographic-tests: Likewise.
15565         * modules/unictype/property-ids-binary-operator-tests: Likewise.
15566         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
15567         * modules/unictype/property-ignorable-control-tests: Likewise.
15568         * modules/unictype/property-iso-control-tests: Likewise.
15569         * modules/unictype/property-join-control-tests: Likewise.
15570         * modules/unictype/property-left-of-pair-tests: Likewise.
15571         * modules/unictype/property-line-separator-tests: Likewise.
15572         * modules/unictype/property-logical-order-exception-tests: Likewise.
15573         * modules/unictype/property-lowercase-tests: Likewise.
15574         * modules/unictype/property-math-tests: Likewise.
15575         * modules/unictype/property-non-break-tests: Likewise.
15576         * modules/unictype/property-not-a-character-tests: Likewise.
15577         * modules/unictype/property-numeric-tests: Likewise.
15578         * modules/unictype/property-other-alphabetic-tests: Likewise.
15579         * modules/unictype/property-other-default-ignorable-code-point-tests:
15580         Likewise.
15581         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
15582         * modules/unictype/property-other-id-continue-tests: Likewise.
15583         * modules/unictype/property-other-id-start-tests: Likewise.
15584         * modules/unictype/property-other-lowercase-tests: Likewise.
15585         * modules/unictype/property-other-math-tests: Likewise.
15586         * modules/unictype/property-other-uppercase-tests: Likewise.
15587         * modules/unictype/property-paired-punctuation-tests: Likewise.
15588         * modules/unictype/property-paragraph-separator-tests: Likewise.
15589         * modules/unictype/property-pattern-syntax-tests: Likewise.
15590         * modules/unictype/property-pattern-white-space-tests: Likewise.
15591         * modules/unictype/property-private-use-tests: Likewise.
15592         * modules/unictype/property-punctuation-tests: Likewise.
15593         * modules/unictype/property-quotation-mark-tests: Likewise.
15594         * modules/unictype/property-radical-tests: Likewise.
15595         * modules/unictype/property-sentence-terminal-tests: Likewise.
15596         * modules/unictype/property-soft-dotted-tests: Likewise.
15597         * modules/unictype/property-space-tests: Likewise.
15598         * modules/unictype/property-terminal-punctuation-tests: Likewise.
15599         * modules/unictype/property-test-tests: Likewise.
15600         * modules/unictype/property-titlecase-tests: Likewise.
15601         * modules/unictype/property-unassigned-code-value-tests: Likewise.
15602         * modules/unictype/property-unified-ideograph-tests: Likewise.
15603         * modules/unictype/property-uppercase-tests: Likewise.
15604         * modules/unictype/property-variation-selector-tests: Likewise.
15605         * modules/unictype/property-white-space-tests: Likewise.
15606         * modules/unictype/property-xid-continue-tests: Likewise.
15607         * modules/unictype/property-xid-start-tests: Likewise.
15608         * modules/unictype/property-zero-width-tests: Likewise.
15609         * modules/unictype/scripts-tests: Likewise.
15610         * modules/unictype/syntax-c-ident-tests: Likewise.
15611         * modules/unictype/syntax-c-whitespace-tests: Likewise.
15612         * modules/unictype/syntax-java-ident-tests: Likewise.
15613         * modules/unictype/syntax-java-whitespace-tests: Likewise.
15614         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
15615         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
15616         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
15617         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
15618         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
15619         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
15620         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
15621         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
15622         * modules/uniname/uniname-tests: Likewise.
15623         * modules/uninorm/canonical-decomposition-tests: Likewise.
15624         * modules/uninorm/compat-decomposition-tests: Likewise.
15625         * modules/uninorm/composition-tests: Likewise.
15626         * modules/uninorm/decomposing-form-tests: Likewise.
15627         * modules/uninorm/decomposition-tests: Likewise.
15628         * modules/uninorm/filter-tests: Likewise.
15629         * modules/uninorm/nfc-tests: Likewise.
15630         * modules/uninorm/nfd-tests: Likewise.
15631         * modules/uninorm/nfkc-tests: Likewise.
15632         * modules/uninorm/nfkd-tests: Likewise.
15633         * modules/uninorm/u8-normcmp-tests: Likewise.
15634         * modules/uninorm/u8-normcoll-tests: Likewise.
15635         * modules/uninorm/u16-normcmp-tests: Likewise.
15636         * modules/uninorm/u16-normcoll-tests: Likewise.
15637         * modules/uninorm/u32-normcmp-tests: Likewise.
15638         * modules/uninorm/u32-normcoll-tests: Likewise.
15639         * modules/unistdio/u8-asnprintf-tests: Likewise.
15640         * modules/unistdio/u8-vasnprintf-tests: Likewise.
15641         * modules/unistdio/u8-vasprintf-tests: Likewise.
15642         * modules/unistdio/u8-vsnprintf-tests: Likewise.
15643         * modules/unistdio/u8-vsprintf-tests: Likewise.
15644         * modules/unistdio/u16-asnprintf-tests: Likewise.
15645         * modules/unistdio/u16-vasnprintf-tests: Likewise.
15646         * modules/unistdio/u16-vasprintf-tests: Likewise.
15647         * modules/unistdio/u16-vsnprintf-tests: Likewise.
15648         * modules/unistdio/u16-vsprintf-tests: Likewise.
15649         * modules/unistdio/u32-asnprintf-tests: Likewise.
15650         * modules/unistdio/u32-vasnprintf-tests: Likewise.
15651         * modules/unistdio/u32-vasprintf-tests: Likewise.
15652         * modules/unistdio/u32-vsnprintf-tests: Likewise.
15653         * modules/unistdio/u32-vsprintf-tests: Likewise.
15654         * modules/unistdio/ulc-asnprintf-tests: Likewise.
15655         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
15656         * modules/unistdio/ulc-vasprintf-tests: Likewise.
15657         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
15658         * modules/unistdio/ulc-vsprintf-tests: Likewise.
15659         * modules/unistr/u8-check-tests: Likewise.
15660         * modules/unistr/u8-chr-tests: Likewise.
15661         * modules/unistr/u8-cmp-tests: Likewise.
15662         * modules/unistr/u8-cmp2-tests: Likewise.
15663         * modules/unistr/u8-cpy-alloc-tests: Likewise.
15664         * modules/unistr/u8-cpy-tests: Likewise.
15665         * modules/unistr/u8-mblen-tests: Likewise.
15666         * modules/unistr/u8-mbsnlen-tests: Likewise.
15667         * modules/unistr/u8-mbtouc-tests: Likewise.
15668         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
15669         * modules/unistr/u8-mbtoucr-tests: Likewise.
15670         * modules/unistr/u8-move-tests: Likewise.
15671         * modules/unistr/u8-next-tests: Likewise.
15672         * modules/unistr/u8-prev-tests: Likewise.
15673         * modules/unistr/u8-set-tests: Likewise.
15674         * modules/unistr/u8-stpcpy-tests: Likewise.
15675         * modules/unistr/u8-stpncpy-tests: Likewise.
15676         * modules/unistr/u8-strcat-tests: Likewise.
15677         * modules/unistr/u8-strcmp-tests: Likewise.
15678         * modules/unistr/u8-strcoll-tests: Likewise.
15679         * modules/unistr/u8-strcpy-tests: Likewise.
15680         * modules/unistr/u8-strdup-tests: Likewise.
15681         * modules/unistr/u8-strlen-tests: Likewise.
15682         * modules/unistr/u8-strmblen-tests: Likewise.
15683         * modules/unistr/u8-strmbtouc-tests: Likewise.
15684         * modules/unistr/u8-strncat-tests: Likewise.
15685         * modules/unistr/u8-strncmp-tests: Likewise.
15686         * modules/unistr/u8-strncpy-tests: Likewise.
15687         * modules/unistr/u8-strnlen-tests: Likewise.
15688         * modules/unistr/u8-to-u16-tests: Likewise.
15689         * modules/unistr/u8-to-u32-tests: Likewise.
15690         * modules/unistr/u8-uctomb-tests: Likewise.
15691         * modules/unistr/u16-check-tests: Likewise.
15692         * modules/unistr/u16-chr-tests: Likewise.
15693         * modules/unistr/u16-cmp-tests: Likewise.
15694         * modules/unistr/u16-cmp2-tests: Likewise.
15695         * modules/unistr/u16-cpy-alloc-tests: Likewise.
15696         * modules/unistr/u16-cpy-tests: Likewise.
15697         * modules/unistr/u16-mblen-tests: Likewise.
15698         * modules/unistr/u16-mbsnlen-tests: Likewise.
15699         * modules/unistr/u16-mbtouc-tests: Likewise.
15700         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
15701         * modules/unistr/u16-mbtoucr-tests: Likewise.
15702         * modules/unistr/u16-move-tests: Likewise.
15703         * modules/unistr/u16-next-tests: Likewise.
15704         * modules/unistr/u16-prev-tests: Likewise.
15705         * modules/unistr/u16-set-tests: Likewise.
15706         * modules/unistr/u16-stpcpy-tests: Likewise.
15707         * modules/unistr/u16-stpncpy-tests: Likewise.
15708         * modules/unistr/u16-strcat-tests: Likewise.
15709         * modules/unistr/u16-strcmp-tests: Likewise.
15710         * modules/unistr/u16-strcoll-tests: Likewise.
15711         * modules/unistr/u16-strcpy-tests: Likewise.
15712         * modules/unistr/u16-strdup-tests: Likewise.
15713         * modules/unistr/u16-strlen-tests: Likewise.
15714         * modules/unistr/u16-strmblen-tests: Likewise.
15715         * modules/unistr/u16-strmbtouc-tests: Likewise.
15716         * modules/unistr/u16-strncat-tests: Likewise.
15717         * modules/unistr/u16-strncmp-tests: Likewise.
15718         * modules/unistr/u16-strncpy-tests: Likewise.
15719         * modules/unistr/u16-strnlen-tests: Likewise.
15720         * modules/unistr/u16-to-u32-tests: Likewise.
15721         * modules/unistr/u16-to-u8-tests: Likewise.
15722         * modules/unistr/u16-uctomb-tests: Likewise.
15723         * modules/unistr/u32-check-tests: Likewise.
15724         * modules/unistr/u32-chr-tests: Likewise.
15725         * modules/unistr/u32-cmp-tests: Likewise.
15726         * modules/unistr/u32-cmp2-tests: Likewise.
15727         * modules/unistr/u32-cpy-alloc-tests: Likewise.
15728         * modules/unistr/u32-cpy-tests: Likewise.
15729         * modules/unistr/u32-mblen-tests: Likewise.
15730         * modules/unistr/u32-mbsnlen-tests: Likewise.
15731         * modules/unistr/u32-mbtouc-tests: Likewise.
15732         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
15733         * modules/unistr/u32-mbtoucr-tests: Likewise.
15734         * modules/unistr/u32-move-tests: Likewise.
15735         * modules/unistr/u32-next-tests: Likewise.
15736         * modules/unistr/u32-prev-tests: Likewise.
15737         * modules/unistr/u32-set-tests: Likewise.
15738         * modules/unistr/u32-stpcpy-tests: Likewise.
15739         * modules/unistr/u32-stpncpy-tests: Likewise.
15740         * modules/unistr/u32-strcat-tests: Likewise.
15741         * modules/unistr/u32-strcmp-tests: Likewise.
15742         * modules/unistr/u32-strcoll-tests: Likewise.
15743         * modules/unistr/u32-strcpy-tests: Likewise.
15744         * modules/unistr/u32-strdup-tests: Likewise.
15745         * modules/unistr/u32-strlen-tests: Likewise.
15746         * modules/unistr/u32-strmblen-tests: Likewise.
15747         * modules/unistr/u32-strmbtouc-tests: Likewise.
15748         * modules/unistr/u32-strncat-tests: Likewise.
15749         * modules/unistr/u32-strncmp-tests: Likewise.
15750         * modules/unistr/u32-strncpy-tests: Likewise.
15751         * modules/unistr/u32-strnlen-tests: Likewise.
15752         * modules/unistr/u32-to-u16-tests: Likewise.
15753         * modules/unistr/u32-to-u8-tests: Likewise.
15754         * modules/unistr/u32-uctomb-tests: Likewise.
15755         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
15756         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
15757         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
15758         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
15759         * modules/uniwidth/u8-strwidth-tests: Likewise.
15760         * modules/uniwidth/u8-width-tests: Likewise.
15761         * modules/uniwidth/u16-strwidth-tests: Likewise.
15762         * modules/uniwidth/u16-width-tests: Likewise.
15763         * modules/uniwidth/u32-strwidth-tests: Likewise.
15764         * modules/uniwidth/u32-width-tests: Likewise.
15765         * modules/uniwidth/width-tests: Likewise.
15766
15767 2010-05-18  Richard Jones  <rjones@redhat.com>
15768
15769         doc: users.txt: list hivex
15770         * users.txt: Add hivex.
15771
15772 2010-05-18  Richard Jones  <rjones@redhat.com>
15773
15774         doc: users.txt: list febootstrap
15775         * users.txt: Add febootstrap.
15776
15777 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
15778
15779         bootstrap: fix an error when gnulib is not used as a git submodule
15780         * build-aux/bootstrap (gnulib_path): If its length is zero then
15781         assign "gnulib" to it.
15782         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
15783
15784 2010-05-16  Bruno Haible  <bruno@clisp.org>
15785
15786         Avoid autoconf warnings about AM_ICONV.
15787         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
15788         2.64.
15789
15790 2010-05-16  Bruno Haible  <bruno@clisp.org>
15791
15792         absolute-header: Make the macro usable in more situations.
15793         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
15794         from gl_ABSOLUTE_HEADER.
15795         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
15796
15797 2010-05-16  James Youngman  <jay@gnu.org>
15798
15799         doc: update users.txt
15800         * users.txt: Add CSSC.
15801
15802 2010-05-16  Jim Meyering  <meyering@redhat.com>
15803
15804         init.sh: fix an error in the previous change; add more comments
15805         * tests/init.sh: Compare exit code in loop against 9, not 2.
15806         Patch by Bruno Haible.
15807         Make the two tests more similar by adding an empty "then" clause.
15808         Add comments.
15809
15810         init.sh: avoid unnecessary shell re-exec
15811         * tests/init.sh: Improve the re-exec-required check to first test the
15812         current shell.  If it passes the test, do not search for a shell that
15813         does pass, and do not re-exec.  This test is particularly contorted to
15814         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
15815         of $(...) evokes a syntax error and causes immediate shell exit with
15816         status 2.  Bruno Haible reported that the re-exec made it impossible
15817         to single-step through any init.sh-using script.
15818
15819 2010-05-16  Bruno Haible  <bruno@clisp.org>
15820
15821         Fix collision between gnulib's and libintl's printf replacements.
15822         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
15823         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
15824         (printf): When using GNU C, map the __printf__ function to rpl_printf
15825         via __asm__. When not using GNU C, define rpl_printf instead of
15826         __printf__.
15827         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
15828         commit.
15829         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
15830         commit.
15831         * m4/asm-underscore.m4: New file.
15832         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
15833         * modules/stdio (Files): Add m4/asm-underscore.m4.
15834         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
15835         Reported by Ben Pfaff.
15836
15837 2010-05-16  Bruno Haible  <bruno@clisp.org>
15838
15839         verify: Avoid skipping the test on openSUSE 11.0.
15840         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
15841
15842 2010-05-13  Bruno Haible  <bruno@clisp.org>
15843
15844         Avoid useless warnings from G++.
15845         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
15846         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
15847         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15848
15849 2010-05-11  Jim Meyering  <meyering@redhat.com>
15850
15851         maint.mk: tweak preceding change
15852         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
15853         regexps tighter by anchoring at EOL, and make the new group "shy"
15854         for slightly decreased overhead.
15855
15856 2010-05-11  Eric Blake  <eblake@redhat.com>
15857
15858         maint.mk: gnulib doesn't guarantee NSIG
15859         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
15860
15861 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
15862
15863         test-pwrite.c: Remove unused variable declaration.
15864         * tests/test-pwrite.c (main): Remove read_buf declaration.
15865
15866         Remove useless test-pwrite.sh file.
15867         * tests/test-pwrite.sh: Delete file.
15868         * modules/pwrite-tests: Remove references.
15869         Reported by Bruno Haible.
15870
15871 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
15872
15873         init.sh: fix a typo
15874         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
15875
15876 2010-05-10  Jim Meyering  <meyering@redhat.com>
15877
15878         maint.mk: avoid using a temporary file in the always-defined-macros check
15879         * top/maint.mk (.re-defmac): Remove rule.
15880         (gl_trap_): Remove definition.
15881         (sc_prohibit_always-defined_macros): Rewrite not to create and
15882         depend on a temporary file.  Instead, depend on GNU grep's ability
15883         to read a list of regular expressions from stdin when given "-f -".
15884
15885 2010-05-09  Bruno Haible  <bruno@clisp.org>
15886
15887         Update to GNU gettext 0.18, part 1.
15888         * m4/gettext.m4: Update to GNU gettext 0.18.
15889         * m4/intl.m4: Likewise.
15890         * m4/po.m4: Likewise.
15891         * modules/gettext (Files): Add m4/fcntl-o.m4.
15892         (configure.ac): Require gettext infrastructure from version 0.18.
15893
15894 2010-05-09  Jim Meyering  <meyering@redhat.com>
15895
15896         init.sh: enable MALLOC_PERTURB_
15897         * tests/init.sh: Enable glibc's malloc-perturbing option.
15898
15899         maint.mk: improve sc_cross_check_PATH_usage_in_tests
15900         With my recent change in init.sh from the two-line form:
15901             -#   : ${srcdir=.}
15902             -#   . "$srcdir/init.sh"; path_prepend_ .
15903             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
15904         I noticed that using the one-line form would cause this test
15905         to fail with a false-positive, or to stop working altogether,
15906         depending on whether help-version changed or all the tests did.
15907         * top/maint.mk (_hv_regex): Remove this definition.
15908         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
15909         (_hv_regex_strong): Use a stronger regex to check for conformance.
15910         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
15911         Give a separate diagnostic for lack of conforming use.
15912
15913         maint.mk: prohibit definition of symbols defined by gnulib
15914         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
15915         definition of symbols defined by gnulib.
15916
15917 2010-05-09  Bruno Haible  <bruno@clisp.org>
15918
15919         acl: Avoid test failure on Cygwin-hosted mingw.
15920         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
15921
15922 2010-05-09  Bruno Haible  <bruno@clisp.org>
15923
15924         error: Use system's fcntl function.
15925         * lib/error.c (fcntl): Undefine.
15926
15927 2010-05-09  Jim Meyering  <meyering@redhat.com>
15928
15929         verify: adjust formatting to be more consistent
15930         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
15931         argument-list '('s, and after one comma.
15932
15933 2010-05-09  Bruno Haible  <bruno@clisp.org>
15934
15935         error: More reliable output on mingw.
15936         * lib/error.c: Include <windows.h>.
15937         (is_open): New function.
15938         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
15939         defined.
15940
15941 2010-05-09  Bruno Haible  <bruno@clisp.org>
15942
15943         vasnprintf: Fix syntax errors in libintl build on mingw.
15944         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
15945         pad_ourselves and prec_ourselves after use.
15946
15947 2010-05-08  Bruno Haible  <bruno@clisp.org>
15948
15949         * lib/config.charset: Update comments for Cygwin 1.7.
15950         * lib/localcharset.c: Likewise.
15951
15952 2010-05-07  Jim Meyering  <meyering@redhat.com>
15953
15954         init.sh: improve comments
15955         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
15956         . "${srcdir=.}/init.sh"; path_prepend_ .
15957         Add a note about path_prepend_ and the alternative of using
15958         TESTS_ENVIRONMENT.
15959
15960 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
15961
15962         exclude: Unescape hashed patterns in wildcard mode.
15963         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
15964         to the hash list.
15965         * tests/test-exclude8.sh: New test case.
15966         * modules/exclude-tests: Add new test.
15967
15968 2010-05-05  Eric Blake  <eblake@redhat.com>
15969
15970         verify: automate tests
15971         * modules/verify-tests: New module.
15972         * tests/test-verify.sh: New file.
15973         * tests/test-verify.c: Guard each negative test with a unique id.
15974         Also avoid warning about unused left hand of comma expressions.
15975
15976 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
15977
15978         Further improvements to verify.h, suggested by Eric Blake.
15979         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
15980         the GL_* versions, to avoid collision with OpenGL.
15981         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
15982         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
15983         than testing merely whether it's defined.
15984
15985         Modify verify.h to pacify gcc -Wredundant_decls.
15986         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
15987         These use the prefix "GL_" since they're likely to be useful elsewhere.
15988         We may need to break them out into a different .h file.
15989         (__COUNTER__): Define to 0 if the compiler doesn't support it.
15990         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
15991         of verify_function__.
15992
15993 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
15994
15995         Tests for module pwrite.
15996         * modules/pwrite-tests: New file.
15997         * tests/test-pwrite.sh: New file.
15998         * tests/test-pwrite.c: New file.
15999
16000         New module pwrite.
16001         * lib/unistd.in.h (pwrite): New declaration.
16002         * lib/pwrite.c: New file, from glibc with modifications.
16003         * m4/pwrite.m4: New file.
16004         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
16005         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
16006         REPLACE_PWRITE.
16007         * modules/pwrite: New file.
16008         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
16009         REPLACE_PWRITE.
16010         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
16011         * doc/posix-functions/pwrite.texi: Mention the new module.
16012
16013 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
16014
16015         pread: Update documentation.
16016         * doc/posix-functions/pread.texi: Mention the 'pread' module.
16017
16018 2010-05-04  Eric Blake  <eblake@redhat.com>
16019
16020         docs: update cygwin progress
16021         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
16022         this bug.
16023         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
16024         Added in cygwin 1.7.2.
16025         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
16026         Likewise.
16027         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
16028         Likewise.
16029         * doc/glibc-functions/dup3.texi (dup3): Likewise.
16030         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
16031         * doc/glibc-functions/accept4.texi (accept4): Likewise.
16032         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
16033         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
16034         Mention nproc module.
16035         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
16036         bug in cygwin 1.7.5 addition.
16037         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
16038         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
16039         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
16040         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
16041         1.7.5.
16042         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
16043         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
16044         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
16045         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
16046         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
16047         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
16048         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
16049         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
16050         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
16051         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
16052         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
16053         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
16054         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
16055         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
16056         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
16057         Likewise.
16058         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
16059         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
16060         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
16061         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
16062         Likewise.
16063         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
16064         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
16065         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
16066         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
16067         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
16068         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
16069         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
16070         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
16071         Likewise.
16072         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
16073         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
16074         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
16075         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
16076         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
16077         Likewise.
16078         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
16079         Likewise.
16080         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
16081         Likewise.
16082         * doc/glibc-functions/xdrrec_endofrecord.texi
16083         (xdrrec_endofrecord): Likewise.
16084         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
16085         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
16086         Likewise.
16087         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
16088         Likewise.
16089
16090 2010-05-04  Jim Meyering  <meyering@redhat.com>
16091
16092         gendocs.sh: make its "-s FILE" option more useful
16093         * build-aux/gendocs.sh: When honoring the -s FILE option, update
16094         $PACKAGE to reflect the probably-different basename of "FILE".
16095
16096 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
16097
16098         bootstrap: don't ignore download_po_files failure
16099         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
16100         failure.
16101
16102 2010-05-03  Jim Meyering  <meyering@redhat.com>
16103
16104         maint.mk: allow to pass options to gendocs.sh
16105         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
16106         (gendocs_options_): New overridable variable.
16107
16108         gnu-web-doc-update: don't ignore configure or build failure
16109         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
16110
16111         announce-gen: backslash-escape '@'s in --help output
16112         * build-aux/announce-gen: Fix syntax errors.
16113
16114         maint.mk, announce-gen: allow project-specific announcement mail headers
16115         * top/maint.mk (translation_project_): Define default.
16116         (announcement_Cc_, announcement_mail_headers_): Likewise.
16117         (announcement): Invoke announce-gen with new --mail-headers option.
16118         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
16119
16120         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
16121         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
16122         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
16123         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
16124         line in the "err2" output file when running "make check" in verbose
16125         mode (i.e., with set -x enabled).
16126
16127 2010-05-03  Bruno Haible  <bruno@clisp.org>
16128
16129         wctob: Fix for weird platforms.
16130         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
16131         argument value.
16132
16133 2010-05-03  Jim Meyering  <meyering@redhat.com>
16134
16135         maint.mk: prohibit unwarranted use of <strings.h>
16136         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
16137         strings.h in a file that does not also use strcasecmp, strncasecmp,
16138         ffs or ffsll.
16139
16140         maint.mk: remove obsolete comments
16141         * top/maint.mk: Remove stale, commented-out rules.
16142
16143 2010-05-02  Bruno Haible  <bruno@clisp.org>
16144
16145         wcwidth: Declare also when it's aliased.
16146         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
16147         macro.
16148
16149 2010-05-02  Bruno Haible  <bruno@clisp.org>
16150
16151         Fix regression from 2010-04-25.
16152         * gnulib-tool (func_modules_transitive_closure): Check the status of
16153         all modules, not only of the tests that are of the form foo-tests where
16154         foo is a module.
16155
16156 2010-05-02  Bruno Haible  <bruno@clisp.org>
16157
16158         wctob: Work around nasty Cygwin 1.7.2 bug.
16159         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
16160         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
16161
16162 2010-05-01  Bruno Haible  <bruno@clisp.org>
16163
16164         fpurge: Sharper test.
16165         * tests/test-fpurge.c (main): Add one more ftell check.
16166         * modules/fpurge-tests (Depends-on): Add ftell.
16167         Suggested by Eric Blake.
16168
16169 2010-05-01  Bruno Haible  <bruno@clisp.org>
16170
16171         ftello: Another test.
16172         * tests/test-ftello3.c: New file.
16173         * modules/ftello-tests (Files): Add it.
16174         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
16175         MOSTLYCLEANFILES.
16176
16177         ftell: Another test.
16178         * tests/test-ftell3.c: New file.
16179         * modules/ftell-tests (Files): Add it.
16180         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
16181         MOSTLYCLEANFILES.
16182
16183 2010-05-01  Bruno Haible  <bruno@clisp.org>
16184
16185         ftell, ftello: Work around Solaris bug.
16186         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
16187         * lib/ftello.c: Include stdio-impl.h.
16188         (ftello): On Solaris, when _IOWRT is set, compute the result without
16189         looking at _IOREAD.
16190         * modules/ftello (Files): Add lib/stdio-impl.h.
16191         * doc/posix-functions/ftell.texi: Mention Solaris bug.
16192         * doc/posix-functions/ftello.texi: Likewise.
16193         Reported by Eric Blake.
16194
16195 2010-05-01  Bruno Haible  <bruno@clisp.org>
16196
16197         freading: Adapt to special meaning of _IOREAD flag on Solaris.
16198         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
16199         the _IOWRT flag is also set.
16200
16201 2010-05-01  Bruno Haible  <bruno@clisp.org>
16202
16203         Fix doc about a HP-UX stdio bug.
16204         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
16205         * doc/posix-functions/ftello.texi: Likewise.
16206
16207 2010-05-01  Bruno Haible  <bruno@clisp.org>
16208
16209         lseek test: Fix failure on Solaris.
16210         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
16211         output.
16212
16213 2010-04-30  Jim Meyering  <meyering@redhat.com>
16214
16215         bootstrap: don't ignore failure to generate po*/Makevars
16216         * build-aux/bootstrap (with_gettext): Don't ignore failure
16217         to create po/Makevars or runtime-po/Makevars.
16218
16219 2010-04-29  Eric Blake  <eblake@redhat.com>
16220
16221         headers: relax license to LGPLv2+
16222         * modules/fcntl-h (License): Relax license.
16223         * modules/getopt-posix (License): Likewise.
16224         * modules/locale (License): Likewise.
16225         * modules/math (License): Likewise.
16226         * modules/pty (License): Likewise.
16227         * modules/sched (License): Likewise.
16228         * modules/search (License): Likewise.
16229         * modules/spawn (License): Likewise.
16230         * modules/stdarg (License): Likewise.
16231         * modules/sysexits (License): Likewise.
16232
16233 2010-04-29  Jim Meyering  <meyering@redhat.com>
16234
16235         inttypes: relax license to LGPLv2+
16236         * modules/inttypes (License): Relax license.
16237
16238 2010-04-29  Simon Josefsson  <simon@josefsson.org>
16239
16240         * top/maint.mk (indent): Run twice to produce idempotent results.
16241
16242 2010-04-28  Bruno Haible  <bruno@clisp.org>
16243
16244         getdate: Generate getdate.c in the source directory.
16245         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
16246         MOSTLYCLEANFILES.
16247         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
16248
16249 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
16250
16251         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
16252         is not declared as a const *; avoid warnings in that case.
16253
16254 2010-04-28  Eric Blake  <eblake@redhat.com>
16255
16256         canonicalize-lgpl: avoid compiler warning
16257         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
16258         declaration' / 'extraneous semicolon' warning with some compilers.
16259         Reported by Andreas Gruenbacher.
16260
16261 2010-04-28  Jim Meyering  <meyering@redhat.com>
16262
16263         init.sh: ensure a more reliable exit status when exiting via trap
16264         * tests/init.sh (setup_): Don't rely on $? in signal handler.
16265         Inspired by patches from Dmitry V. Levin.
16266         Also trap on signal 3 (SIGQUIT).
16267
16268 2010-04-27  Bruno Haible  <bruno@clisp.org>
16269
16270         Update doc about utimes().
16271         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
16272         'utimens' module.
16273         Reported by Andreas Gruenbacher <agruen@suse.de>.
16274
16275 2010-04-27  Eric Blake  <eblake@redhat.com>
16276
16277         full-read, full-write: relax license
16278         * modules/full-read (License): Drop to LGPLv2+.
16279         * modules/full-write (License): Likewise.
16280         * modules/safe-read (License): Likewise.
16281         * modules/safe-write (License): Likewise.
16282
16283         pthread: mention library for linking
16284         * modules/pthread (Link): Mention $(LIB_PTHREAD).
16285
16286 2010-04-27  Jim Meyering  <meyering@redhat.com>
16287
16288         maint.mk: fix a bug introduced in last change
16289         * top/maint.mk (gl_assured_headers_): Now that all names are on
16290         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
16291         is not anchored to end of word, it should be adequate.
16292
16293         maint.mk: avoid side-effect in latest syntax-check
16294         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
16295         to run commands via $(shell...), and hence to incur cost only when
16296         the new rule is actually run.
16297
16298         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
16299         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
16300         and use that to create a regexp used to detect all #if HAVE_..._H uses.
16301         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
16302         (gl_assured_headers_, az_, AZ_): Define.
16303         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
16304
16305 2010-04-26  Jim Meyering  <jim@meyering.net>
16306             Bruno Haible  <bruno@clisp.org>
16307
16308         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
16309         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
16310         Prompted by an exchange with Gilles Espinasse.
16311
16312 2010-04-26  Jim Meyering  <meyering@redhat.com>
16313
16314         git-version-gen: aesthetic tweak
16315         * build-aux/git-version-gen: Use "$nl" rather than a literal,
16316         so that the command remains on a single line.
16317
16318 2010-04-26  Eric Blake  <eblake@redhat.com>
16319
16320         git-version-gen: allow use on EBCDIC hosts
16321         * build-aux/git-version-gen (dirty): Use literal rather than tying
16322         ourselves to ascii.
16323         Reported by Steve Goetze.
16324
16325 2010-04-25  Bruno Haible  <bruno@clisp.org>
16326
16327         netdb: Add support for GNULIB_POSIXCHECK.
16328         * lib/netdb.in.h: Include warn-on-use.h.
16329         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
16330         functions are used when GNULIB_POSIXCHECK is defined and the
16331         getaddrinfo module is not in use.
16332         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
16333         freeaddrinfo, gai_strerror, getnameinfo are declared.
16334         * modules/netdb (Depends-on): Add warn-on-use.
16335         (Makefile.am): Include warn-on-use.h in netdb.h.
16336
16337 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
16338
16339         build: avoid "make check" failure without .git/ directory
16340         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
16341         there is no .git/ directory.
16342
16343 2010-04-25  Bruno Haible  <bruno@clisp.org>
16344
16345         ptsname: Fix misuse of ttyname_r.
16346         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
16347         of errno.
16348
16349 2010-04-25  Bruno Haible  <bruno@clisp.org>
16350
16351         ttyname_r: Make it work on Solaris 10.
16352         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
16353         if the system function has the POSIX declaration. Test whether the
16354         function fails if the buffer is less than 128 bytes large.
16355         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
16356         system's ttyname_r function. Provide a reasonably large buffer.
16357         * modules/ttyname_r (Depends-on): Add extensions.
16358         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
16359
16360 2010-04-25  Bruno Haible  <bruno@clisp.org>
16361
16362         Use the 'extensions' module for some more functions on Solaris.
16363         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
16364         module.
16365         * doc/posix-functions/ctime_r.texi: Likewise.
16366         * doc/posix-functions/getgrgid_r.texi: Likewise.
16367         * doc/posix-functions/getgrnam_r.texi: Likewise.
16368         * doc/posix-functions/getpwnam_r.texi: Likewise.
16369         * doc/posix-functions/getpwuid_r.texi: Likewise.
16370         * doc/posix-functions/readdir_r.texi: Likewise.
16371         * doc/posix-functions/sigwait.texi: Likewise.
16372         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
16373         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
16374
16375 2010-04-25  Bruno Haible  <bruno@clisp.org>
16376
16377         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
16378         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
16379         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
16380         * lib/ttyname_r.c: Include <limits.h>.
16381         (ttyname_r): Define using the system's ttyname_r function, if it exists
16382         and not on Solaris.
16383         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
16384         set.
16385         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
16386         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
16387         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
16388         Reported by Simon Josefsson.
16389
16390 2010-04-25  Bruno Haible  <bruno@clisp.org>
16391
16392         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
16393         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
16394         * doc/posix-functions/ctime_r.texi: Likewise.
16395         * doc/posix-functions/getgrgid_r.texi: Likewise.
16396         * doc/posix-functions/getgrnam_r.texi: Likewise.
16397         * doc/posix-functions/getlogin_r.texi: Likewise.
16398         * doc/posix-functions/getpwnam_r.texi: Likewise.
16399         * doc/posix-functions/getpwuid_r.texi: Likewise.
16400         * doc/posix-functions/readdir_r.texi: Likewise.
16401         * doc/posix-functions/sigwait.texi: Likewise.
16402         * doc/posix-functions/ttyname_r.texi: Likewise.
16403         Reported by Simon Josefsson.
16404
16405 2010-04-25  Bruno Haible  <bruno@clisp.org>
16406
16407         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
16408         * gnulib-tool (func_usage): Document that --with-*-tests options apply
16409         also to --create-testdir.
16410         (func_acceptable): Don't consider the status of *-tests modules here.
16411         (func_modules_transitive_closure): Consider it here, before including a
16412         test module.
16413         (func_import, func_create_testdir): Set inc_all_direct_tests,
16414         inc_all_indirect_tests.
16415         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
16416         --create-testdir and --create-megatestdir.
16417
16418 2010-04-25  Bruno Haible  <bruno@clisp.org>
16419
16420         gnulib-tool: Add --without-*-tests options.
16421         * gnulib-tool (func_usage): Document the --without-*-tests options.
16422         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
16423         excl_unportable_tests): New variables.
16424         Fail if they are specified with --import or --update.
16425         (func_acceptable): Respect the excl_*_tests variables.
16426         (func_import): Set the excl_*_tests variables to empty.
16427
16428 2010-04-25  Simon Josefsson  <simon@josefsson.org>
16429             Bruno Haible  <bruno@clisp.org>
16430
16431         Work around a MacOS X 10.4 bug with openpty.
16432         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
16433         * tests/test-openpty.c (main): Close the master side explicitly.
16434
16435 2010-04-25  Bruno Haible  <bruno@clisp.org>
16436
16437         strnlen: Fix a C++ test error on MacOS X and Solaris.
16438         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
16439         the function is not declared.
16440         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
16441         Simon Josefsson.
16442
16443 2010-04-24  Bruno Haible  <bruno@clisp.org>
16444
16445         Avoid a gcc warning.
16446         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
16447         of correct type for %08lx directive.
16448         Reported by Eric Blake.
16449
16450 2010-04-24  Bruno Haible  <bruno@clisp.org>
16451
16452         vasnprintf: Correct errno value in case of out-of-memory.
16453         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
16454         or sprintf. Use the errno value from SNPRINTF or sprintf.
16455         Reported by Ian Beckwith <ianb@erislabs.net>.
16456
16457 2010-04-24  Bruno Haible  <bruno@clisp.org>
16458
16459         ansi-c++-opt: Find correct compiler when cross-compiling.
16460         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
16461         AC_CHECK_PROGS.
16462         Reported by Simon Josefsson.
16463
16464 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
16465
16466         vc-list-files: Add support for subversion
16467         * build-aux/vc-list-files: Use "svn list" to generate the list of
16468         files controlled by subversion.
16469
16470 2010-04-23  Jim Meyering  <meyering@redhat.com>
16471
16472         vc-list-files tests: convert to use init.sh
16473         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
16474         path_prepend_.
16475         Use Exit, not exit.
16476         Use skip_ rather than open coding it.
16477         Remove trap set-up and compare definitions.
16478         * tests/test-vc-list-files-git.sh: Likewise.
16479         * modules/vc-list-files-tests (Files): Add tests/init.sh.
16480
16481 2010-04-22  Simon Josefsson  <simon@josefsson.org>
16482
16483         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
16484         backup files.
16485
16486 2010-04-21  Simon Josefsson  <simon@josefsson.org>
16487
16488         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
16489
16490 2010-04-20  Eric Blake  <eblake@redhat.com>
16491
16492         tests: be robust to ignored SIGPIPE
16493         * tests/test-select-in.sh: Consume all output.
16494         * tests/test-lseek.sh: Check correct exit status, while avoiding
16495         EPIPE.
16496
16497 2010-04-20  Simon Josefsson  <simon@josefsson.org>
16498             Bruno Haible  <bruno@clisp.org>
16499
16500         visibility: Don't use -fvisibility if it leads to a warning.
16501         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
16502         yes, don't pretend that visibility works if it leads to a warning.
16503         Reported by Mike Gran <spk121@yahoo.com>.
16504
16505 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
16506
16507         * build-aux/bootstrap: Use "git -h" for testing for supported options
16508         instead of "git --help".  The short-form option only shows a summary,
16509         and doesn't layout the full man page.  Grep for the full option name
16510         in the summary, too.
16511
16512 2010-04-19  Bruno Haible  <bruno@clisp.org>
16513
16514         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
16515         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
16516         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
16517         mention of RELOCATABLE_STRIP.
16518         Reported by Sylvain Beucler <beuc@beuc.net>.
16519
16520 2010-04-19  Bruno Haible  <bruno@clisp.org>
16521
16522         * lib/diffseq.h: Fix typo in comment.
16523         Reported by Eric Blake.
16524
16525 2010-04-19  Bruno Haible  <bruno@clisp.org>
16526
16527         ioctl: Move autoconf macro to a .m4 file.
16528         * m4/ioctl.m4: New file, extracted from modules/ioctl.
16529         * modules/ioctl (Files): Add it.
16530         (configure.ac): Simply invoke gl_FUNC_IOCTL.
16531         Reported by Ian Beckwith <ianb@erislabs.net>.
16532
16533 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
16534             Bruno Haible  <bruno@clisp.org>
16535
16536         diffseq: Accommodate use-case with abstract arrays.
16537         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
16538         is not defined.
16539         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
16540         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
16541
16542 2010-04-18  Bruno Haible  <bruno@clisp.org>
16543
16544         * doc/posix-headers/stdbool.texi: More precise wording.
16545
16546 2010-04-17  Jim Meyering  <meyering@redhat.com>
16547
16548         maint.mk: use gnu-style indentation in an embedded perl script
16549         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
16550         Rename variable: s/two/last_two_bytes/
16551
16552 2010-04-16  Eric Blake  <eblake@redhat.com>
16553
16554         test-stdbool: skip test that fails with Solaris CC
16555         * tests/test-stdbool.c (f): Skip test that causes compilation
16556         error under buggy C++ compiler.
16557         * lib/stdbool.in.h: Document the limitation.
16558         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
16559
16560         setenv: allow compilation with C++
16561         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
16562         register keyword.
16563
16564         stdint: allow test to pass with C++
16565         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
16566
16567         getopt: allow compilation with C++
16568         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
16569         struct.
16570         * lib/getopt.c (_getopt_internal_r): Use correct type.
16571         Reported by Dagobert Michelson, via Joel E. Denny.
16572
16573 2010-04-16  Bruno Haible  <bruno@clisp.org>
16574
16575         Override netdb.h always.
16576         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
16577         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
16578         Reported by Ludovic Courtès <ludo@gnu.org>.
16579
16580 2010-04-15  Bruno Haible  <bruno@clisp.org>
16581
16582         openpty: Fix mistake from 2010-03-21.
16583         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
16584         Reported by Simon Josefsson.
16585
16586 2010-04-15  Eric Blake  <eblake@redhat.com>
16587
16588         test-forkpty: fix expected signature
16589         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
16590         Reported by Simon Josefsson.
16591
16592 2010-04-15  Jim Meyering  <meyering@redhat.com>
16593
16594         maint.mk: texinfo_suffix_re_: correct the default regexp
16595         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
16596
16597         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
16598         make it configurable via texinfo_suffix_re_.
16599
16600 2010-04-14  Eric Blake  <eblake@redhat.com>
16601
16602         strtok_r: relax license to LGPLv2+
16603         * modules/strtok_r (License): Relax license.
16604         Reported by Matthias Bolte.
16605
16606 2010-04-14  Simon Josefsson  <simon@josefsson.org>
16607
16608         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
16609         version 1.4.4 by default instead of requiring the libgcrypt
16610         version used during build.  This makes it possible to use the
16611         application with older but still binary compatible libgcrypt
16612         versions.
16613
16614 2010-04-13  Eric Blake  <eblake@redhat.com>
16615
16616         getopt-gnu: match recent glibc fixes and posix ruling
16617         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
16618         '+' handling, when requesting extensions.
16619         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
16620         'W;' handling.
16621         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
16622         * doc/posix-functions/getopt.texi (getopt): Document this.
16623         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
16624         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
16625         Likewise.
16626
16627         getopt: merge bug fixes from glibc
16628         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
16629         diagnostics.  Honor '+:' correctly.  Reject ';'.
16630
16631         getopt-posix: detect MacOS bug
16632         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
16633         optind when missing a required argument.
16634         * doc/posix-functions/getopt.texi (getopt): Document the bug.
16635         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
16636         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
16637         Likewise.
16638
16639         getopt-posix: avoid spurious failure on Solaris
16640         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
16641         an indicator that setting optind=1 is sufficient for reset.
16642
16643         getopt-posix: avoid spurious failure on FreeBSD
16644         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
16645         in POSIX mode, since the m4 test uses it.
16646
16647         gnulib-tool: silence warning on BSD sh
16648         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
16649
16650 2010-04-13  Jim Meyering  <meyering@redhat.com>
16651
16652         doc: users.txt: GNU patch now uses gnulib
16653         * users.txt: Add patch.
16654
16655 2010-04-12  Jim Meyering  <meyering@redhat.com>
16656
16657         maint.mk: generate more concise timing data for syntax-check rules
16658         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
16659         " done" from each line that reports a syntax-check test duration.
16660
16661 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
16662
16663         git-version-gen: use "git update-index..." rather than "git status"
16664         * build-aux/git-version-gen: Use git update-index --refresh, not
16665         "git status".  With some versions of git, "git status" would fail
16666         to update the index and result in an unwarranted "-dirty" suffix.
16667
16668 2010-04-11  Jim Meyering  <meyering@redhat.com>
16669
16670         openat: correct formatting (no semantic change)
16671         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
16672         Suggested by Bruno Haible.
16673
16674 2010-04-11  Bruno Haible  <bruno@clisp.org>
16675
16676         Stricter declaration checking in testdirs.
16677         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
16678         If for_tests is true, augment AM_CPPFLAGS to define
16679         GNULIB_STRICT_CHECKING.
16680         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
16681         GNULIB_STRICT_CHECKING is defined, verify that the function is
16682         declared.
16683
16684 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
16685             Bruno Haible  <bruno@clisp.org>
16686
16687         libunistring: Improve configure output.
16688         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
16689         Don't say "consider installing GNU libunistring" when checking again
16690         with libiconv.
16691
16692 2010-04-11  Bruno Haible  <bruno@clisp.org>
16693
16694         libunistring: Correct value of $LTLIBUNISTRING.
16695         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
16696         correct the value of $LTLIBUNISTRING.
16697
16698 2010-04-11  Bruno Haible  <bruno@clisp.org>
16699
16700         havelib: Add static libraries to LIBS in the right order.
16701         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
16702         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
16703
16704 2010-04-11  Bruno Haible  <bruno@clisp.org>
16705
16706         libunistring: Detect libunistring also when it depends on libiconv.
16707         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
16708         the second AC_LIB_HAVE_LINKFLAGS invocation.
16709
16710 2010-04-11  James Youngman  <jay@gnu.org>
16711
16712         close-stream: declare local scalars to be "const"
16713         * lib/close-stream.c (close_stream): Make boolean variables const
16714         to document the fact that we set but do not change them.
16715
16716 2010-04-11  Bruno Haible  <bruno@clisp.org>
16717
16718         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
16719
16720 2010-04-11  Jim Meyering  <meyering@redhat.com>
16721
16722         maint.mk: don't include dist-check.mk
16723         * top/maint.mk: Remove bogus include directive.
16724
16725         maint.mk: improve empty-line-at-EOF check
16726         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
16727         solution, rather than tail+Perl-based one.  The latter would read
16728         a few kilobytes from the end of each file, and did not handle empty
16729         files properly.
16730
16731         maint.mk: print the elapsed time for each syntax-check rule
16732         * top/maint.mk (sc_m_rules_): Save start time in a file.
16733         (sc_z_rules_): New rules: remove temp file and print elapsed time.
16734         (local-check): Interpose the .z rules
16735
16736 2010-04-11  Jim Meyering  <meyering@redhat.com>
16737
16738         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
16739         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
16740         empty file with one that ends in an empty line.
16741
16742 2010-04-10  Bruno Haible  <bruno@clisp.org>
16743
16744         mkdir: Make it work on mingw64.
16745         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
16746         * lib/mkdir.c: Update comment.
16747         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
16748
16749 2010-04-10  Bruno Haible  <bruno@clisp.org>
16750
16751         Don't override improved macro from newer autoconf.
16752         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
16753         autoconf >= 2.62.
16754         Reported by Joel E. Denny <jdenny@clemson.edu>.
16755
16756 2010-04-10  Jim Meyering  <meyering@redhat.com>
16757
16758         maint.mk: new syntax-check rule: prohibit empty lines at end of file
16759         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
16760
16761         maint.mk: correct a diagnostic
16762         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
16763         in diagnostic; now use $prohibit.
16764
16765 2010-04-10  Bruno Haible  <address@hidden>
16766
16767         fchownat: Fix a C++ test error on Solaris 8.
16768         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
16769         the function does not exist.
16770
16771 2010-04-10  Bruno Haible  <bruno@clisp.org>
16772
16773         vasnprintf: Add more tests.
16774         * tests/test-vasnprintf-posix.c: Include <errno.h>.
16775         (test_function): Test converting an invalid wide string.
16776
16777         vasnprintf: Correct handling of unconvertible wide string arguments.
16778         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
16779         VASNPRINTF.
16780         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
16781         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
16782         smaller than the expected maximum need for the directive. Set errno to
16783         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
16784         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
16785         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
16786         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
16787         * modules/vasnprintf (Files): Add m4/printf.m4.
16788         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16789
16790 2010-04-10  Bruno Haible  <bruno@clisp.org>
16791
16792         vasnprintf: Fix crash in %ls directive.
16793         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
16794         string is passed as argument to %ls, with no precision and no width.
16795         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16796
16797 2010-04-10  Bruno Haible  <bruno@clisp.org>
16798
16799         vasnprintf: Fix multiple test failures on mingw.
16800         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
16801         _snprintf, or snwprintf, not _snwprintf.
16802
16803 2010-04-10  Bruno Haible  <bruno@clisp.org>
16804
16805         write: Fix a C++ test error on mingw.
16806         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
16807
16808 2010-04-10  Bruno Haible  <bruno@clisp.org>
16809
16810         vasnprintf test: Reduce code duplication.
16811         * tests/test-vasnprintf.c (test_function): New function, extracted from
16812         test_vasnprintf.
16813         (test_vasnprintf, test_asnprintf): Invoke it.
16814
16815 2010-04-10  Bruno Haible  <bruno@clisp.org>
16816
16817         strnlen: Fix warning in C++ mode on MacOS X.
16818         * lib/string.in.h (strnlen): Use the modern idiom.
16819         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
16820         defining strnlen as a macro already in <config.h>.
16821         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
16822         REPLACE_STRNLEN.
16823         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
16824         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16825
16826 2010-04-08  James Youngman  <jay@gnu.org>
16827
16828         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
16829         the example.
16830
16831 2010-04-09  Jim Meyering  <meyering@redhat.com>
16832
16833         maint.mk: print better diagnostic when there is no $(_hv_file)
16834         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
16835         announce that when $(_hv_file) (aka help-version) does not exist.
16836
16837         init.sh: run tr in the "C" locale to avoid multibyte interpretation
16838         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
16839         not try to interpret its random input bytes.  Jarno Rajahalme reported
16840         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
16841         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
16842         (mktempd_): Likewise, just in case.
16843
16844         ftruncate: add two years to projected module removal date: 2012
16845         * m4/ftruncate.m4: Adjust comments.
16846
16847         ftruncate: mark module as obsolete; even MinGW provides it, now
16848         * modules/ftruncate (Status): Obsolete.
16849         (Notice): Say that.
16850         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
16851         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
16852
16853 2010-04-08  Bruno Haible  <bruno@clisp.org>
16854
16855         Fix side effects from tests-related modules.
16856         * modules/dprintf-posix (Comment): New section.
16857         * modules/fprintf-posix (Comment): Likewise.
16858         * modules/obstack-printf-posix (Comment): Likewise.
16859         * modules/printf-posix (Comment): Likewise.
16860         * modules/snprintf-posix (Comment): Likewise.
16861         * modules/sprintf-posix (Comment): Likewise.
16862         * modules/vasnprintf-posix (Comment): Likewise.
16863         * modules/vasprintf-posix (Comment): Likewise.
16864         * modules/vdprintf-posix (Comment): Likewise.
16865         * modules/vfprintf-posix (Comment): Likewise.
16866         * modules/vprintf-posix (Comment): Likewise.
16867         * modules/vsnprintf-posix (Comment): Likewise.
16868         * modules/vsprintf-posix (Comment): Likewise.
16869         * modules/xprintf-posix (Comment): Likewise.
16870         * modules/xvasprintf-posix (Comment): Likewise.
16871         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
16872         * modules/floorf-tests (Depends-on): Likewise.
16873         * modules/round-tests (Depends-on): Likewise.
16874         * modules/roundf-tests (Depends-on): Likewise.
16875         * modules/trunc-tests (Depends-on): Likewise.
16876         * modules/truncf-tests (Depends-on): Likewise.
16877         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
16878         'fprintf-posix' module is not present.
16879         * tests/test-floorf2.c (check): Likewise.
16880         * tests/test-trunc2.c (check): Likewise.
16881         * tests/test-truncf2.c (check): Likewise.
16882         * tests/test-round2.c (equal): Likewise.
16883         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16884
16885 2010-04-07  Karl Berry  <karl@gnu.org>
16886
16887         * config/srclist.txt,
16888         * config/srclistvars.sh,
16889         * config/srclist-update: doc fixes.
16890
16891 2010-04-07  Jim Meyering  <meyering@redhat.com>
16892
16893         maint.mk: add a PATH crosschecking syntax-check rule
16894         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
16895         Useful if you use a test like the one in help-version (coreutils,
16896         diffutils, grep, gzip) that ensures $(VERSION) matches what is
16897         printed by prog --version.
16898
16899 2010-04-06  Bruno Haible  <bruno@clisp.org>
16900
16901         Fix link error on mingw.
16902         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
16903         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
16904
16905 2010-04-06  Bruno Haible  <bruno@clisp.org>
16906
16907         Assume rmdir exists.
16908         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
16909
16910 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
16911
16912         doc: update users.txt
16913         * users.txt: Add gcal.
16914
16915 2010-04-06  Jim Meyering  <meyering@redhat.com>
16916
16917         init.sh: simply unset TMPDIR rather than risking env -i
16918         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
16919         although it probably works fine on all Unix-based systems, some
16920         systems (Cygwin?) cannot tolerate a totally cleared environment.
16921         Suggestion from Eric Blake.
16922
16923 2010-04-06  Jim Meyering  <meyering@redhat.com>
16924
16925         init.sh: portability fix: use env's POSIX-specified -i option not -u
16926         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
16927         than unportable env -u.  Solaris 5.11's env lacks support for -u.
16928
16929 2010-04-05  Bruno Haible  <bruno@clisp.org>
16930
16931         btowc: Work around Cygwin 1.7.2 bug.
16932         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
16933         does not map NUL to 0.
16934         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
16935
16936 2010-04-05  Bruno Haible  <bruno@clisp.org>
16937
16938         Make the multithread modules work on Cygwin 1.7.2.
16939         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
16940         imported symbols can be declared weak, so that it returns "no" on
16941         Cygwin 1.7.2.
16942
16943 2010-04-05  Bruno Haible  <bruno@clisp.org>
16944
16945         Use the module 'strncat'.
16946         * modules/unistr/u8-strncat (Depends-on): Add strncat.
16947
16948         Tests for module 'strncat'.
16949         * modules/strncat-tests: New file.
16950         * tests/test-strncat.c: New file.
16951
16952         New module 'strncat'.
16953         * lib/string.in.h (strncat): New declaration.
16954         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
16955         * m4/strncat.m4: New file, based on m4/memchr.m4.
16956         * modules/strncat: New file.
16957         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
16958         is declared.
16959         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
16960         REPLACE_STRNCAT.
16961         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
16962         REPLACE_STRNCAT.
16963         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
16964         module.
16965         * tests/test-string-c++.cc: Check signature of strncat.
16966
16967 2010-04-05  Jim Meyering  <meyering@redhat.com>
16968
16969         xstrtoumax-tests: convert to use init.sh
16970         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
16971         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
16972         Use Exit, not exit.
16973         Remove uses of $EXEEXT and "./" to run a program in the current dir.
16974
16975         xstrtoimax-tests: convert to use init.sh
16976         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
16977         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
16978         Use Exit, not exit.
16979         Remove uses of $EXEEXT and "./" to run a program in the current dir.
16980
16981 2010-04-05  Bruno Haible  <bruno@clisp.org>
16982
16983         sys_socket: Avoid #define replacements in C++ mode.
16984         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
16985         warning to the function if possible, rather than #defining the symbol
16986         to a dysfunctional alias.
16987
16988 2010-04-05  Bruno Haible  <bruno@clisp.org>
16989
16990         fseeko: Fix C++ test error on mingw.
16991         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
16992         gl_FUNC_FSEEKO.
16993         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
16994         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
16995         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
16996         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
16997
16998 2010-04-05  Bruno Haible  <bruno@clisp.org>
16999
17000         duplocale: Improve test output.
17001         * tests/test-duplocale.c (main): Print reason for skipped test.
17002
17003 2010-04-05  Bruno Haible  <bruno@clisp.org>
17004
17005         Assume rmdir exists.
17006         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
17007         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
17008
17009 2010-04-05  Bruno Haible  <bruno@clisp.org>
17010
17011         Fix link error on Solaris 8 with cc.
17012         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
17013
17014 2010-04-05  Bruno Haible  <bruno@clisp.org>
17015
17016         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
17017         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
17018
17019 2010-04-05  Bruno Haible  <bruno@clisp.org>
17020
17021         vasprintf: Update documentation.
17022         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
17023
17024 2010-04-05  Bruno Haible  <bruno@clisp.org>
17025
17026         ptsname: Improve test.
17027         * tests/test-ptsname.c (main): Also try the various master names of BSD
17028         systems.
17029
17030 2010-04-05  Bruno Haible  <bruno@clisp.org>
17031
17032         memchr: Avoid a possible C++ test error.
17033         * lib/string.in.h (memchr): Provide declaration if function is missing.
17034         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
17035         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
17036         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
17037         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
17038
17039 2010-04-05  Bruno Haible  <bruno@clisp.org>
17040
17041         strtok_r: Improve idiom.
17042         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
17043         AC_LIBOBJ is used.
17044
17045 2010-04-05  Bruno Haible  <bruno@clisp.org>
17046
17047         strdup: Improve idiom.
17048         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
17049         AC_LIBOBJ is used.
17050         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
17051         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
17052         when AC_LIBOBJ is used.
17053
17054 2010-04-05  Bruno Haible  <bruno@clisp.org>
17055
17056         mbsinit, mbrtowc, wcrtomb: Improve idioms.
17057         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
17058         don't set REPLACE_MBSINIT to 1.
17059         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
17060         don't set REPLACE_MBRTOWC to 1.
17061         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
17062         exist, don't set REPLACE_MBSRTOWCS to 1.
17063         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
17064         exist, don't set REPLACE_MBSNRTOWCS to 1.
17065         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
17066         don't set REPLACE_WCRTOMB to 1.
17067         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
17068         exist, don't set REPLACE_WCSRTOMBS to 1.
17069         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
17070         exist, don't set REPLACE_WCSNRTOMBS to 1.
17071
17072 2010-04-05  Bruno Haible  <bruno@clisp.org>
17073
17074         ldexpl: Improve idiom.
17075         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
17076         make sure to set HAVE_DECL_LDEXPL to 0.
17077
17078 2010-04-05  Jim Meyering  <meyering@redhat.com>
17079
17080         xstrtol-tests: convert to use init.sh
17081         * modules/xstrtol-tests (Files): Add tests/init.sh.
17082         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
17083         Use Exit, not exit.
17084         Remove uses of $EXEEXT and "./" to run a program in the current dir.
17085
17086         atexit-tests: convert to use init.sh
17087         * modules/atexit-tests (Files): Add tests/init.sh.
17088         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
17089         Use Exit, not exit.
17090         Remove uses of $EXEEXT and "./" to run a program in the current dir.
17091
17092         init.sh: fix typo
17093         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
17094
17095         init.sh: make it easier for a test script to write to the tty, ...
17096         when using automake's parallel-tests mode.
17097         * tests/init.sh (stderr_fileno_): Define overridable variable.
17098         (warn_): New function, to use it.
17099         (fail_, skip_, framework_failure_): Use warn_.
17100
17101 2010-04-04  Bruno Haible  <bruno@clisp.org>
17102
17103         btowc: Avoid warning.
17104         * lib/btowc.c: Include <stdlib.h>.
17105         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
17106
17107 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
17108             Bruno Haible  <bruno@clisp.org>
17109
17110         wchar: Port to NetBSD 1.5.
17111         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
17112         * lib/wctype.in.h (WEOF): Likewise.
17113
17114 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
17115             Bruno Haible  <bruno@clisp.org>
17116
17117         Port extended stdio to NetBSD 1.5.
17118         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
17119         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
17120         older.
17121
17122 2010-04-04  Bruno Haible  <bruno@clisp.org>
17123
17124         string: Remove unused substitution.
17125         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
17126         HAVE_DECL_STRERROR.
17127         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
17128
17129 2010-04-04  Bruno Haible  <bruno@clisp.org>
17130
17131         strtod: Avoid a possible C++ test error.
17132         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
17133         set REPLACE_STRTOD.
17134
17135 2010-04-04  Bruno Haible  <bruno@clisp.org>
17136
17137         strerror: Update documentation.
17138         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
17139
17140 2010-04-04  Bruno Haible  <bruno@clisp.org>
17141
17142         stdio: Fix some C++ test errors on Solaris 8 with GCC.
17143         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
17144         _GL_CXXALIAS_SYS_CAST.
17145
17146 2010-04-04  Bruno Haible  <bruno@clisp.org>
17147
17148         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
17149         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
17150         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
17151         REPLACE_FREXPL to 1.
17152         * doc/posix-functions/frexpl.texi: Update documentation.
17153
17154 2010-04-04  Bruno Haible  <bruno@clisp.org>
17155
17156         math: Fix some C++ test errors on Solaris 8 and Cygwin.
17157         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
17158
17159 2010-04-04  Bruno Haible  <bruno@clisp.org>
17160
17161         Implement nanosleep for native Windows.
17162         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
17163
17164 2010-04-04  Bruno Haible  <bruno@clisp.org>
17165
17166         math: Fix some C++ test errors on Solaris 8.
17167         * lib/math.in.h (truncf, trunc): Use simpler idiom.
17168
17169 2010-04-04  Bruno Haible  <bruno@clisp.org>
17170
17171         math: Fix some C++ test errors on Cygwin.
17172         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
17173         truncl): Provide declaration if the system does not have it.
17174         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
17175         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
17176         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
17177         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
17178         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
17179         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
17180         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
17181         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
17182         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
17183         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
17184         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
17185         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
17186         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
17187         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
17188         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
17189         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
17190         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
17191         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
17192         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
17193         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
17194         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
17195         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
17196
17197 2010-04-04  Bruno Haible  <bruno@clisp.org>
17198
17199         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
17200         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
17201         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
17202         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
17203         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
17204         * m4/isinf.m4 (gl_ISINF): Likewise.
17205         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17206
17207 2010-04-04  Bruno Haible  <bruno@clisp.org>
17208
17209         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
17210         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
17211
17212 2010-04-04  Bruno Haible  <bruno@clisp.org>
17213
17214         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
17215         * modules/tmpfile (configure.ac): Update.
17216
17217         tmpfile: Fix C++ test error on mingw.
17218         * lib/stdio.in.h (tmpfile): New declaration.
17219         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
17220         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
17221         * modules/tmpfile (Depends-on): Add stdio.
17222         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
17223         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
17224         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
17225         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
17226         REPLACE_TMPFILE.
17227         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
17228
17229 2010-04-04  Bruno Haible  <bruno@clisp.org>
17230
17231         ioctl: Fix C++ test error on mingw.
17232         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
17233         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
17234         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
17235
17236 2010-04-03  Bruno Haible  <bruno@clisp.org>
17237
17238         wcwidth: Fix C++ test error on mingw.
17239         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
17240         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
17241         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
17242
17243 2010-04-03  Bruno Haible  <bruno@clisp.org>
17244
17245         nanosleep: Fix C++ test error on mingw.
17246         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
17247         * lib/time.in.h (nanosleep): Use modern idiom.
17248         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
17249         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
17250         REPLACE_NANOSLEEP to 1.
17251         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
17252         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
17253
17254 2010-04-03  Bruno Haible  <bruno@clisp.org>
17255
17256         strptime: Fix C++ test error on mingw.
17257         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
17258         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
17259         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
17260         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
17261         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
17262         not REPLACE_STRPTIME.
17263         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
17264         REPLACE_STRPTIME.
17265
17266 2010-04-03  Bruno Haible  <bruno@clisp.org>
17267
17268         timegm: Fix C++ test error on mingw.
17269         * lib/time.in.h (timegm): Use modern idiom.
17270         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
17271         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
17272         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
17273         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
17274
17275 2010-04-03  Bruno Haible  <bruno@clisp.org>
17276
17277         timegm: Assume declaration if function exists.
17278         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
17279         if it exists. Don't clobber ac_cv_func_timegm.
17280
17281 2010-04-03  Bruno Haible  <bruno@clisp.org>
17282
17283         time_r: Fix C++ test error on mingw.
17284         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
17285         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
17286         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
17287         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
17288         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
17289
17290 2010-04-03  Bruno Haible  <bruno@clisp.org>
17291
17292         time_r: Minor updates.
17293         * modules/time_r (Description): Mention the provided functions.
17294         * lib/time_r.c: Don't include <string.h>.
17295         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
17296         * doc/posix-functions/localtime_r.texi: Likewise.
17297
17298 2010-04-03  Bruno Haible  <bruno@clisp.org>
17299
17300         time: Fix regression introduced on 2010-03-08.
17301         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
17302         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
17303
17304 2010-04-03  Jim Meyering  <meyering@redhat.com>
17305
17306         maint.mk: don't silently disable project-specific syntax-check rules
17307         * top/maint.mk (_prohibit_regexp): Define, to help people realize
17308         that they need to convert their project-specific syntax-check rules
17309         to use the new _sc_search_regexp.
17310
17311 2010-04-03  Bruno Haible  <bruno@clisp.org>
17312
17313         fchdir: Fix regression introduced on 2010-03-08.
17314         * lib/unistd.in.h (fchdir): Fix declaration.
17315         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
17316         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
17317         REPLACE_FCHDIR.
17318         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
17319         REPLACE_FCHDIR.
17320
17321 2010-04-03  Bruno Haible  <bruno@clisp.org>
17322
17323         getpagesize: Fix C++ test error on mingw.
17324         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
17325         system does not declare the function.
17326         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
17327         declared.
17328         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17329         HAVE_DECL_GETPAGESIZE.
17330         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
17331
17332 2010-04-03  Bruno Haible  <bruno@clisp.org>
17333
17334         stdio: Make C++ tests work on mingw.
17335         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
17336         does not declare the function.
17337
17338 2010-04-03  Bruno Haible  <bruno@clisp.org>
17339
17340         ftello: Fix C++ test error on mingw.
17341         * lib/stdio.in.h (ftello): Use modern idiom.
17342         * lib/ftello.c (ftello): Renamed from rpl_ftello.
17343         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
17344         is missing and that it needs to be replaced.
17345         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
17346         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
17347         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
17348
17349 2010-04-03  Bruno Haible  <bruno@clisp.org>
17350
17351         fseeko: Fix C++ test error on mingw.
17352         * lib/stdio.in.h (fseeko): Use modern idiom.
17353         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
17354         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
17355         is missing and that it needs to be replaced.
17356         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
17357         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
17358         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
17359
17360 2010-04-03  Bruno Haible  <bruno@clisp.org>
17361
17362         mkstemp: Fix C++ test error on mingw.
17363         * lib/stdlib.in.h (mkstemp): Use modern idiom.
17364         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
17365         function is missing and that it needs to be replaced.
17366         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
17367         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
17368
17369 2010-04-03  Bruno Haible  <bruno@clisp.org>
17370
17371         stpncpy: Fix C++ test error on mingw.
17372         * lib/string.in.h (stpncpy): Use modern idiom.
17373         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
17374         function is missing and that it needs to be replaced.
17375         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
17376         REPLACE_STPNCPY.
17377         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
17378
17379 2010-04-03  Bruno Haible  <bruno@clisp.org>
17380
17381         sys_stat: Fix C++ test error on mingw.
17382         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
17383         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
17384
17385 2010-04-03  Bruno Haible  <bruno@clisp.org>
17386
17387         pty: Update doc.
17388         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
17389
17390 2010-04-03  Bruno Haible  <bruno@clisp.org>
17391
17392         unistd: Fix C++ test error on mingw.
17393         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
17394
17395 2010-04-03  Bruno Haible  <bruno@clisp.org>
17396
17397         Update doc regarding mingw.
17398         * doc/glibc-functions/openpty.texi: Update regarding mingw.
17399         * doc/glibc-functions/login_tty.texi: Likewise.
17400         * doc/glibc-functions/forkpty.texi: Likewise.
17401
17402 2010-04-03  Bruno Haible  <bruno@clisp.org>
17403
17404         stdlib: Avoid compilation failure of c-strtold on mingw.
17405         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
17406
17407 2010-04-03  Bruno Haible  <bruno@clisp.org>
17408
17409         locale: Make C++ tests work on Cygwin and mingw.
17410         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
17411         cannot provide the function.
17412         Reported by Simon Josefsson.
17413
17414 2010-04-03  Bruno Haible  <bruno@clisp.org>
17415
17416         localename: Port to MacOS X 10.6.
17417         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
17418         memory layout of the locales in MacOS X 10.6 as well.
17419         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
17420
17421 2010-04-02  Bruno Haible  <bruno@clisp.org>
17422
17423         gnulib-tool: Ensure that long-running tests are executed last.
17424         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
17425         running tests after the one for the other tests.
17426
17427 2010-04-02  Bruno Haible  <bruno@clisp.org>
17428
17429         gnulib-tool: Ensure the tests in the main directory are executed first.
17430         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
17431         start with the current directory.
17432
17433 2010-04-02  Bruno Haible  <bruno@clisp.org>
17434
17435         Tests for module 'havelib', moved here from GNU gettext.
17436         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
17437         modifications.
17438         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
17439         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
17440         with modifications.
17441         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
17442         modifications.
17443         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
17444         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
17445         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
17446         with modifications.
17447         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
17448         with modifications.
17449         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
17450         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
17451         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
17452         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
17453         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
17454         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
17455         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
17456         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
17457         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
17458         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
17459         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
17460         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
17461         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
17462         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
17463         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
17464         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
17465         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
17466         with modifications.
17467         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
17468         with modifications.
17469         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
17470         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
17471         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
17472         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
17473         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
17474         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
17475         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
17476         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
17477         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
17478         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
17479         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
17480         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
17481         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
17482         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
17483         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
17484         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
17485         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
17486         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
17487         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
17488         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
17489         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
17490         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
17491         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
17492         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
17493         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
17494         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
17495         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
17496         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
17497         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
17498         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
17499         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
17500         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
17501         * tests/havelib/rpathx/rpathx.c: New file, from
17502         gettext/autoconf-lib-link.
17503         * tests/havelib/rpathx/Makefile.am: New file, from
17504         gettext/autoconf-lib-link.
17505         * tests/havelib/rpathx/configure.ac: New file, from
17506         gettext/autoconf-lib-link with modifications.
17507         * tests/havelib/rpathy/rpathy.c: New file, from
17508         gettext/autoconf-lib-link.
17509         * tests/havelib/rpathy/Makefile.am: New file, from
17510         gettext/autoconf-lib-link.
17511         * tests/havelib/rpathy/configure.ac: New file, from
17512         gettext/autoconf-lib-link with modifications.
17513         * tests/havelib/rpathz/rpathz.c: New file, from
17514         gettext/autoconf-lib-link.
17515         * tests/havelib/rpathz/Makefile.am: New file, from
17516         gettext/autoconf-lib-link.
17517         * tests/havelib/rpathz/configure.ac: New file, from
17518         gettext/autoconf-lib-link with modifications.
17519         * tests/havelib/rpathlx/usex.c: New file, from
17520         gettext/autoconf-lib-link.
17521         * tests/havelib/rpathlx/Makefile.am: New file, from
17522         gettext/autoconf-lib-link.
17523         * tests/havelib/rpathlx/configure.ac: New file, from
17524         gettext/autoconf-lib-link with modifications.
17525         * tests/havelib/rpathly/usey.c: New file, from
17526         gettext/autoconf-lib-link.
17527         * tests/havelib/rpathly/Makefile.am: New file, from
17528         gettext/autoconf-lib-link.
17529         * tests/havelib/rpathly/configure.ac: New file, from
17530         gettext/autoconf-lib-link with modifications.
17531         * tests/havelib/rpathlz/usez.c: New file, from
17532         gettext/autoconf-lib-link.
17533         * tests/havelib/rpathlz/Makefile.am: New file, from
17534         gettext/autoconf-lib-link.
17535         * tests/havelib/rpathlz/configure.ac: New file, from
17536         gettext/autoconf-lib-link with modifications.
17537         * tests/havelib/rpathlyx/usey.c: New file, from
17538         gettext/autoconf-lib-link.
17539         * tests/havelib/rpathlyx/Makefile.am: New file, from
17540         gettext/autoconf-lib-link.
17541         * tests/havelib/rpathlyx/configure.ac: New file, from
17542         gettext/autoconf-lib-link with modifications.
17543         * tests/havelib/rpathlzyx/usez.c: New file, from
17544         gettext/autoconf-lib-link.
17545         * tests/havelib/rpathlzyx/Makefile.am: New file, from
17546         gettext/autoconf-lib-link.
17547         * tests/havelib/rpathlzyx/configure.ac: New file, from
17548         gettext/autoconf-lib-link with modifications.
17549         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
17550         with modifications.
17551
17552 2010-04-02  Bruno Haible  <bruno@clisp.org>
17553
17554         gnulib-tool: Create distributed built sources also for the tests.
17555         * gnulib-tool (func_create_testdir): Also generate distributed built
17556         sources in the tests directory.
17557
17558 2010-04-02  Bruno Haible  <bruno@clisp.org>
17559
17560         gnulib-tool: Obey user's environment variables.
17561         * gnulib-tool (func_create_testdir): When creating built sources,
17562         respect the environment variables for autoconf, automake, etc. given by
17563         the user.
17564
17565 2010-04-02  Bruno Haible  <bruno@clisp.org>
17566
17567         gnulib-tool: Provide the value of --m4-base to modules.
17568         * gnulib-tool (func_import, func_create_testdir): Emit a definition
17569         of gl_m4_base.
17570
17571 2010-04-02  Eric Blake  <eblake@redhat.com>
17572
17573         maint.mk: fix some fallout
17574         * NEWS: Document the incompatible change, and its effect on cfg.mk.
17575         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
17576
17577 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
17578
17579         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
17580         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
17581         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
17582         (sc_cast_of_x_alloc_return_value): Likewise.
17583         (sc_cast_of_alloca_return_value): Likewise.
17584         (sc_space_tab): Likewise.
17585         (sc_prohibit_atoi_atof): Likewise.
17586         (sc_prohibit_magic_number_exit): Likewise.
17587         (sc_error_exit_success): Likewise.
17588         (sc_file_system): Likewise.
17589         (sc_prohibit_have_config_h): Likewise.
17590         (sc_require_config_h): Likewise.
17591         (sc_prohibit_HAVE_MBRTOWC): Likewise.
17592         (sc_obsolete_symbols): Likewise.
17593         (sc_changelog): Likewise.
17594         (sc_program_name): Likewise.
17595         (sc_the_the): Likewise.
17596         (sc_trailing_blank): Likewise.
17597         (sc_two_space_separator_in_usage): Likewise.
17598         (sc_useless_cpp_parens): Likewise.
17599         (sc_GPL_version): Likewise.
17600         (sc_GFDL_version): Likewise.
17601         (sc_texinfo_acronym): Likewise.
17602         (sc_prohibit_cvs_keyword): Likewise.
17603         (sc_prohibit_stat_st_blocks): Likewise.
17604         (sc_prohibit_S_IS_definition): Likewise.
17605         (sc_redundant_const): Likewise.
17606         (sc_makefile_TAB_only_indentation): Likewise.
17607         (sc_m4_quote_check): Likewise.
17608         (sc_makefile_path_separator_check): Likewise.
17609         (sc_copyright_check): Likewise.
17610         (sc_Wundef_boolean): Likewise.
17611         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
17612
17613         maint.mk: match 0 or more whitespace-before-function-call '('
17614         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
17615         that have zero or two-and-more spaces between the function name
17616         and the open parenthesis.
17617         (sc_error_message_warn_fatal): Likewise.
17618         (sc_error_message_uppercase): Likewise.
17619         (sc_error_message_period): Likewise.
17620
17621 2010-03-31  Eric Blake  <eblake@redhat.com>
17622
17623         maint.mk: check for [ as well as test
17624         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
17625         Based on a libvirt report by Matthias Bolte.
17626
17627         gnumakefile: don't squelch _version output
17628         * top/GNUmakefile (_version): Create one-shot dependency rather
17629         than using $(shell) when version must be regenerated.
17630         (_autoreconf): Run verbosely, by default.
17631
17632         sys_time: avoid compiler warnings
17633         * lib/sys_time.in.h (includes): Ensure gcc pragma is
17634         unconditional, fixing regression from 2010-03-29.
17635         Reported by Simon Josefsson.
17636
17637 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
17638
17639         maint.mk: s/_header_without_use/_sc_header_without_use/
17640         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
17641         (sc_prohibit_assert_without_use): Use the new name.
17642         (sc_prohibit_close_stream_without_use): Likewise.
17643         (sc_prohibit_getopt_without_use): Likewise.
17644         (sc_prohibit_quotearg_without_use): Likewise.
17645         (sc_prohibit_quote_without_use): Likewise.
17646         (sc_prohibit_long_options_without_use): Likewise.
17647         (sc_prohibit_inttostr_without_use): Likewise.
17648         (sc_prohibit_ignore_value_without_use): Likewise.
17649         (sc_prohibit_error_without_use): Likewise.
17650         (sc_prohibit_xalloc_without_use): Likewise.
17651         (sc_prohibit_hash_without_use): Likewise.
17652         (sc_prohibit_hash_pjw_without_use): Likewise.
17653         (sc_prohibit_safe_read_without_use): Likewise.
17654         (sc_prohibit_argmatch_without_use): Likewise.
17655         (sc_prohibit_canonicalize_without_use): Likewise.
17656         (sc_prohibit_root_dev_ino_without_use): Likewise.
17657         (sc_prohibit_openat_without_use): Likewise.
17658         (sc_prohibit_c_ctype_without_use): Likewise.
17659         (sc_prohibit_signal_without_use): Likewise.
17660         (sc_prohibit_intprops_without_use): Likewise.
17661
17662 2010-03-30  Eric Blake  <eblake@redhat.com>
17663
17664         maint: improve module indicators
17665         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
17666         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
17667         columns, and avoid extra macro expansion.
17668
17669         fdopendir: work around FreeBSD bug
17670         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
17671         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
17672         * modules/dirent (Makefile.am): Substitute it.
17673         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
17674         declaration.
17675         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
17676         fix.
17677         Reported by Christian Weisgerber <naddy@mips.inka.de>.
17678
17679 2010-03-29  Bruno Haible  <bruno@clisp.org>
17680
17681         Emit #pragma system_header after the inclusion guard, not before.
17682         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
17683         guard that spans the entire file, not before. This enables an
17684         optimization in GCC's preprocessor.
17685         * lib/ctype.in.h: Likewise.
17686         * lib/dirent.in.h: Likewise.
17687         * lib/errno.in.h: Likewise.
17688         * lib/float.in.h: Likewise.
17689         * lib/getopt.in.h: Likewise.
17690         * lib/iconv.in.h: Likewise.
17691         * lib/langinfo.in.h: Likewise.
17692         * lib/locale.in.h: Likewise.
17693         * lib/math.in.h: Likewise.
17694         * lib/netdb.in.h: Likewise.
17695         * lib/netinet_in.in.h: Likewise.
17696         * lib/pty.in.h: Likewise.
17697         * lib/sched.in.h: Likewise.
17698         * lib/se-selinux.in.h: Likewise.
17699         * lib/search.in.h: Likewise.
17700         * lib/spawn.in.h: Likewise.
17701         * lib/stdarg.in.h: Likewise.
17702         * lib/stdint.in.h: Likewise.
17703         * lib/string.in.h: Likewise.
17704         * lib/strings.in.h: Likewise.
17705         * lib/sys_file.in.h: Likewise.
17706         * lib/sys_ioctl.in.h: Likewise.
17707         * lib/sys_time.in.h: Likewise.
17708         * lib/sys_times.in.h: Likewise.
17709         * lib/sys_utsname.in.h: Likewise.
17710         * lib/sys_wait.in.h: Likewise.
17711         * lib/sysexits.in.h: Likewise.
17712         * lib/wctype.in.h: Likewise.
17713
17714 2010-03-28  James Youngman  <jay@gnu.org>
17715
17716         save-cwd: don't leak a file descriptor when the caller execs.
17717         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
17718         saved file descriptor.
17719         * modules/save-cwd (Depends-on): Depend on cloexec.
17720
17721 2010-03-29  Bruno Haible  <bruno@clisp.org>
17722
17723         Remove vestiges of fts-lgpl module.
17724         * lib/fts_.h: Assume GNULIB_FTS is 1.
17725         * lib/fts.c: Likewise.
17726         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
17727
17728 2010-03-28  Bruno Haible  <bruno@clisp.org>
17729
17730         Fix definition of tests witness macro.
17731         * gnulib-tool (func_import): Fix definition of witness macro.
17732
17733 2010-03-28  Bruno Haible  <bruno@clisp.org>
17734
17735         Fix ioctl's protoype on glibc systems.
17736         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
17737         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
17738         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
17739         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
17740         signature. If not, arrange to replace the ioctl function.
17741         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
17742         REPLACE_IOCTL.
17743         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
17744         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
17745         Reported by Ludovic Courtès <ludo@gnu.org>.
17746
17747 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
17748
17749         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
17750         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
17751         made it so grep -r --include=GLOB* ... did not work.
17752
17753 2010-03-26  Jim Meyering  <meyering@redhat.com>
17754             Eric Blake  <eblake@redhat.com>
17755
17756         maint.mk: prohibit use of test's -o and -a operators
17757         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
17758
17759 2010-03-28  Bruno Haible  <bruno@clisp.org>
17760
17761         Remove unused GNULIB_XYZ macro definitions.
17762         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
17763         invocation.
17764
17765 2010-03-28  Bruno Haible  <bruno@clisp.org>
17766
17767         Mark privileged tests modules.
17768         * modules/idpriv-drop-tests (Status): New section.
17769         * modules/idpriv-droptemp-tests (Status): New section.
17770
17771 2010-03-28  Bruno Haible  <bruno@clisp.org>
17772
17773         Split C++ tests into separate tests modules.
17774         * modules/dirent-c++-tests: New file, extracted from
17775         modules/dirent-tests.
17776         * modules/dirent-tests: Depend on it.
17777         * modules/fcntl-h-c++-tests: New file, extracted from
17778         modules/fcntl-h-tests.
17779         * modules/fcntl-h-tests: Depend on it.
17780         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
17781         * modules/glob-tests: Depend on it.
17782         * modules/iconv-h-c++-tests: New file, extracted from
17783         modules/iconv-h-tests.
17784         * modules/iconv-h-tests: Depend on it.
17785         * modules/langinfo-c++-tests: New file, extracted from
17786         modules/langinfo-tests.
17787         * modules/langinfo-tests: Depend on it.
17788         * modules/locale-c++-tests: New file, extracted from
17789         modules/locale-tests.
17790         * modules/locale-tests: Depend on it.
17791         * modules/math-c++-tests: New file, extracted from modules/math-tests.
17792         * modules/math-tests: Depend on it.
17793         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
17794         * modules/pty-tests: Depend on it.
17795         * modules/search-c++-tests: New file, extracted from
17796         modules/search-tests.
17797         * modules/search-tests: Depend on it.
17798         * modules/signal-c++-tests: New file, extracted from
17799         modules/signal-tests.
17800         * modules/signal-tests: Depend on it.
17801         * modules/spawn-c++-tests: New file, extracted from
17802         modules/spawn-tests.
17803         * modules/spawn-tests: Depend on it.
17804         * modules/stdio-c++-tests: New file, extracted from
17805         modules/stdio-tests.
17806         * modules/stdio-tests: Depend on it.
17807         * modules/stdlib-c++-tests: New file, extracted from
17808         modules/stdlib-tests.
17809         * modules/stdlib-tests: Depend on it.
17810         * modules/string-c++-tests: New file, extracted from
17811         modules/string-tests.
17812         * modules/string-tests: Depend on it.
17813         * modules/sys_ioctl-c++-tests: New file, extracted from
17814         modules/sys_ioctl-tests.
17815         * modules/sys_ioctl-tests: Depend on it.
17816         * modules/sys_select-c++-tests: New file, extracted from
17817         modules/sys_select-tests.
17818         * modules/sys_select-tests: Depend on it.
17819         * modules/sys_socket-c++-tests: New file, extracted from
17820         modules/sys_socket-tests.
17821         * modules/sys_socket-tests: Depend on it.
17822         * modules/sys_stat-c++-tests: New file, extracted from
17823         modules/sys_stat-tests.
17824         * modules/sys_stat-tests: Depend on it.
17825         * modules/sys_time-c++-tests: New file, extracted from
17826         modules/sys_time-tests.
17827         * modules/sys_time-tests: Depend on it.
17828         * modules/time-c++-tests: New file, extracted from modules/time-tests.
17829         * modules/time-tests: Depend on it.
17830         * modules/unistd-c++-tests: New file, extracted from
17831         modules/unistd-tests.
17832         * modules/unistd-tests: Depend on it.
17833         * modules/wchar-c++-tests: New file, extracted from
17834         modules/wchar-tests.
17835         * modules/wchar-tests: Depend on it.
17836         * modules/wctype-c++-tests: New file, extracted from
17837         modules/wctype-tests.
17838         * modules/wctype-tests: Depend on it.
17839         Reported by Simon Josefsson.
17840
17841 2010-03-28  Bruno Haible  <bruno@clisp.org>
17842
17843         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
17844         * gnulib-tool (func_exists_module): New function, extracted from
17845         func_verify_module.
17846         (func_verify_module): Use it.
17847         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
17848         'foo' only if 'foo' exists.
17849         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
17850         module.
17851
17852 2010-03-28  Bruno Haible  <bruno@clisp.org>
17853
17854         gnulib-tool: Add support for special categories of tests.
17855         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
17856         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
17857         (func_usage): Document them.
17858         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
17859         inc_unportable_tests, inc_all_tests): New variables.
17860         (func_acceptable): Consider these variables.
17861         (func_modules_transitive_closure): Make it work when the 'Status' field
17862         consists of multiple words.
17863         (func_import): Store and restore the values of inc_cxx_tests,
17864         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
17865         inc_all_tests in gnulib-comp.m4.
17866         (func_create_testdir): Set inc_all_tests to true.
17867         * doc/gnulib.texi (Extra tests modules): New section.
17868         Suggested by Jim Meyering.
17869
17870 2010-03-28  Bruno Haible  <bruno@clisp.org>
17871
17872         ansi-c++-opt: Allow turning off the C++ build by default.
17873         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
17874         gl_CXX_CHOICE_DEFAULT_NO is defined.
17875         Requested by Eric Blake.
17876
17877 2010-03-28  Bruno Haible  <bruno@clisp.org>
17878
17879         unistd: Avoid #define replacements in C++ mode.
17880         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
17881         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
17882         setsockopt, shutdown, select): In C++, attach a warning to the function
17883         if possible, rather than #defining the symbol to a dysfunctional alias.
17884         Reported by John W. Eaton <jwe@gnu.org>.
17885
17886 2010-03-28  Bruno Haible  <bruno@clisp.org>
17887
17888         Fix link errors on mingw.
17889         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
17890         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
17891         $(LIBSOCKET).
17892         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
17893         $(LIBSOCKET).
17894
17895 2010-03-28  Bruno Haible  <bruno@clisp.org>
17896             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17897
17898         lib-ignore: Determine different options for different compilers.
17899         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
17900         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
17901         Add comments.
17902         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
17903         * NEWS: Mention the change.
17904
17905 2010-03-27  Bruno Haible  <bruno@clisp.org>
17906
17907         Remove unused GNULIB_XYZ macro definitions.
17908         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
17909         * modules/fseek (configure.ac): Likewise.
17910         * modules/ioctl (configure.ac): Likewise.
17911         * modules/open (configure.ac): Likewise.
17912         * modules/stdlib-safer (configure.ac): Likewise.
17913
17914 2010-03-27  Bruno Haible  <bruno@clisp.org>
17915
17916         Add a remark about certain modules.
17917         * modules/malloc (Comment): New section.
17918         * modules/realloc (Comment): Likewise.
17919         * modules/sigpipe (Comment): Likewise.
17920
17921 2010-03-27  Bruno Haible  <bruno@clisp.org>
17922
17923         Resolve conflict between the two kinds of module indicators.
17924         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
17925         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
17926         * modules/canonicalize (configure.ac): Invoke
17927         gl_MODULE_INDICATOR_FOR_TESTS.
17928         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
17929         GNULIB_XYZ.
17930         * tests/test-dirent-c++.cc: Likewise.
17931         * tests/test-dirent-safer.c: Likewise.
17932         * tests/test-dup2.c: Likewise.
17933         * tests/test-fchdir.c: Likewise.
17934         * tests/test-fcntl-h-c++.cc: Likewise.
17935         * tests/test-getopt.c: Likewise.
17936         * tests/test-getopt.h: Likewise.
17937         * tests/test-langinfo-c++.cc: Likewise.
17938         * tests/test-locale-c++.cc: Likewise.
17939         * tests/test-math-c++.cc: Likewise.
17940         * tests/test-pty-c++.cc: Likewise.
17941         * tests/test-search-c++.cc: Likewise.
17942         * tests/test-signal-c++.cc: Likewise.
17943         * tests/test-spawn-c++.cc: Likewise.
17944         * tests/test-stdio-c++.cc: Likewise.
17945         * tests/test-stdlib-c++.cc: Likewise.
17946         * tests/test-string-c++.cc: Likewise.
17947         * tests/test-sys_ioctl-c++.cc: Likewise.
17948         * tests/test-sys_select-c++.cc: Likewise.
17949         * tests/test-sys_socket-c++.cc: Likewise.
17950         * tests/test-sys_stat-c++.cc: Likewise.
17951         * tests/test-sys_time-c++.cc: Likewise.
17952         * tests/test-time-c++.cc: Likewise.
17953         * tests/test-unistd-c++.cc: Likewise.
17954         * tests/test-wchar-c++.cc: Likewise.
17955         * tests/uninorm/test-u8-nfc.c: Likewise.
17956         * tests/uninorm/test-u8-nfd.c: Likewise.
17957         * tests/uninorm/test-u8-nfkc.c: Likewise.
17958         * tests/uninorm/test-u8-nfkd.c: Likewise.
17959         * tests/uninorm/test-u16-nfc.c: Likewise.
17960         * tests/uninorm/test-u16-nfd.c: Likewise.
17961         * tests/uninorm/test-u16-nfkc.c: Likewise.
17962         * tests/uninorm/test-u16-nfkd.c: Likewise.
17963         * tests/uninorm/test-u32-nfc.c: Likewise.
17964         * tests/uninorm/test-u32-nfc-big.c: Likewise.
17965         * tests/uninorm/test-u32-nfd.c: Likewise.
17966         * tests/uninorm/test-u32-nfd-big.c: Likewise.
17967         * tests/uninorm/test-u32-nfkc.c: Likewise.
17968         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
17969         * tests/uninorm/test-u32-nfkd.c: Likewise.
17970         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
17971         * tests/uninorm/test-u32-normalize-big.c: Likewise.
17972
17973 2010-03-27  Bruno Haible  <bruno@clisp.org>
17974
17975         Distinguish two kinds of module indicators.
17976         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
17977         gl_MODULE_INDICATOR.
17978         (gl_MODULE_INDICATOR): New macro.
17979         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
17980         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
17981         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
17982         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
17983         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
17984         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
17985         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
17986         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
17987         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
17988         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
17989         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
17990         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
17991         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
17992         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
17993         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
17994         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
17995         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
17996         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
17997         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
17998         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
17999         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
18000         * modules/cloexec (configure.ac): Likewise.
18001         * modules/getopt-gnu (configure.ac): Likewise.
18002         * modules/uninorm/u8-normalize (configure.ac): Likewise.
18003         * modules/uninorm/u16-normalize (configure.ac): Likewise.
18004         * modules/uninorm/u32-normalize (configure.ac): Likewise.
18005         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
18006
18007 2010-03-27  Bruno Haible  <bruno@clisp.org>
18008
18009         New module description field 'Comment'.
18010         * gnulib-tool: New option --extract-comment.
18011         (func_usage): Document it.
18012         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
18013         (func_get_comment): New function.
18014         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
18015
18016 2010-03-27  Bruno Haible  <bruno@clisp.org>
18017
18018         Addendum to 2010-02-07 commit.
18019         * gnulib-tool (func_usage): Document --extract-applicability option.
18020
18021 2010-03-27  Bruno Haible  <bruno@clisp.org>
18022
18023         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
18024         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
18025         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
18026         rather than link errors.
18027
18028 2010-03-27  Bruno Haible  <bruno@clisp.org>
18029
18030         Avoid side effects from tests-related modules on the compilation of lib.
18031         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
18032         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
18033         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
18034         parameter. Emit into AM_CPPFLAGS a definition of the designated C
18035         macro.
18036         (func_import): Define a witness macro. Assign it a value that depends
18037         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
18038         tests-related modules.
18039         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
18040         Reported by Jim Meyering.
18041
18042 2010-03-27  Bruno Haible  <bruno@clisp.org>
18043
18044         Factorize common .m4 code.
18045         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
18046         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
18047         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
18048         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
18049         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
18050         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
18051         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
18052         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
18053         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
18054         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
18055         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
18056         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
18057         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
18058         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
18059         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
18060         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
18061         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
18062         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
18063         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
18064         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
18065         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
18066         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
18067         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
18068         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
18069         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
18070         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
18071         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
18072         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
18073         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
18074         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
18075         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
18076         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
18077
18078 2010-03-27  Bruno Haible  <bruno@clisp.org>
18079
18080         Fix a compilation error on Cygwin with g++ >= 4.3.
18081         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
18082         if it is undefined or if we alias it to chmod.
18083         (lstat): Don't warn about the use of this function if it is undefined
18084         or if we alias it to stat.
18085         Reported by Simon Josefsson.
18086
18087 2010-03-27  Bruno Haible  <bruno@clisp.org>
18088
18089         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
18090         * modules/getlogin (configure.ac): Update.
18091
18092         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
18093         * modules/getlogin_r (configure.ac): Update.
18094
18095         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
18096         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
18097         * modules/inet_ntop (configure.ac): Update.
18098
18099         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
18100         * modules/inet_pton (configure.ac): Update.
18101
18102         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
18103         * modules/mbslen (configure.ac): Update.
18104
18105         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
18106         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
18107         * modules/forkpty (configure.ac): Update.
18108         * modules/openpty (configure.ac): Update.
18109
18110 2010-03-26  Simon Josefsson  <simon@josefsson.org>
18111
18112         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
18113         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
18114
18115 2010-03-25  Eric Blake  <eblake@redhat.com>
18116
18117         maint: use pragma consistently across replacement headers
18118         * lib/ctype.in.h (system_header): Hoist for consistent placement.
18119         * lib/dirent.in.h (system_header): Likewise.
18120         * lib/errno.in.h (system_header): Likewise.
18121         * lib/float.in.h (system_header): Likewise.
18122         * lib/getopt.in.h (system_header): Likewise.
18123         * lib/iconv.in.h (system_header): Likewise.
18124         * lib/inttypes.in.h (system_header): Likewise.
18125         * lib/langinfo.in.h (system_header): Likewise.
18126         * lib/locale.in.h (system_header): Likewise.
18127         * lib/math.in.h (system_header): Likewise.
18128         * lib/netdb.in.h (system_header): Likewise.
18129         * lib/netinet_in.in.h (system_header): Likewise.
18130         * lib/pty.in.h (system_header): Likewise.
18131         * lib/sched.in.h (system_header): Likewise.
18132         * lib/se-selinux.in.h (system_header): Likewise.
18133         * lib/search.in.h (system_header): Likewise.
18134         * lib/spawn.in.h (system_header): Likewise.
18135         * lib/stdarg.in.h (system_header): Likewise.
18136         * lib/stdint.in.h (system_header): Likewise.
18137         * lib/string.in.h (system_header): Likewise.
18138         * lib/strings.in.h (system_header): Likewise.
18139         * lib/sys_file.in.h (system_header): Likewise.
18140         * lib/sys_ioctl.in.h (system_header): Likewise.
18141         * lib/sys_socket.in.h (system_header): Likewise.
18142         * lib/sys_times.in.h (system_header): Likewise.
18143         * lib/sys_utsname.in.h (system_header): Likewise.
18144         * lib/sys_wait.in.h (system_header): Likewise.
18145         * lib/sysexits.in.h (system_header): Likewise.
18146         * lib/unistd.in.h (system_header): Likewise.
18147         * lib/wctype.in.h (system_header): Likewise.
18148
18149         arpa/inet: fix mingw compilation warning
18150         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
18151         Reported by Matthew Bolte.
18152
18153 2010-03-25  Bruno Haible  <bruno@clisp.org>
18154
18155         Avoid collision between gnulib wrapper and libintl wrapper.
18156         * lib/printf.c (printf): Don't define if a printf wrapper is already
18157         defined in intl/printf.c.
18158         Reported by Michel Boaventura <michel@michelboaventura.com>.
18159
18160 2010-03-25  Bruno Haible  <bruno@clisp.org>
18161
18162         Use ANSI C.
18163         * lib/readutmp.h (getutent): Provide ANSI C prototype.
18164
18165 2010-03-25  Bruno Haible  <bruno@clisp.org>
18166
18167         Minor formatting changes.
18168         * lib/acosl.c: Insert space before function argument list.
18169         * lib/argz.c: Likewise.
18170         * lib/asinl.c: Likewise.
18171         * lib/expl.c: Likewise.
18172         * lib/gen-uni-tables.c: Likewise.
18173         * lib/gettext.h: Likewise.
18174         * lib/glthread/lock.h: Likewise.
18175         * lib/tanl.c: Likewise.
18176         * lib/uniname/uniname.c: Likewise.
18177         * tests/test-idpriv-drop.c: Likewise.
18178         * tests/test-idpriv-droptemp.c: Likewise.
18179         * tests/test-lock.c: Likewise.
18180         * tests/test-tls.c: Likewise.
18181         * lib/argp-help.c: Insert space before function-like macro argument
18182         list.
18183         * lib/memcmp.c: Likewise.
18184         * tests/test-base64.c: Likewise.
18185         * lib/localename.c: Insert space before sizeof's argument list.
18186         * lib/safe-alloc.h: Likewise.
18187         * lib/file-set.h: Insert space before macro argument list.
18188         * tests/test-argp.c: Likewise.
18189         * lib/argp-namefrob.h: Insert space before function parameter list.
18190         * lib/getaddrinfo.c: Likewise.
18191         * lib/netdb.in.h: Likewise.
18192         * lib/parse-duration.h: Likewise.
18193         * lib/parse-duration.c: Likewise.
18194         * lib/poll.c: Likewise.
18195         * lib/select.c: Likewise.
18196         * lib/trim.h: Likewise.
18197         * tests/test-usleep.c: Likewise.
18198         * lib/ldexpl.c: Insert space before function parameter list and before
18199         function argument list.
18200         * lib/logl.c: Likewise.
18201         * lib/sqrtl.c: Likewise.
18202         * lib/trim.c: Likewise.
18203         * lib/cosl.c: Use GNU style indentation. Insert space before function
18204         argument list.
18205         * lib/sinl.c: Likewise.
18206         * lib/tsearch.c: Insert space after 'for'.
18207         Reported by Jim Meyering.
18208
18209 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
18210
18211         * maint.mk (sc_Wundef_boolean): Check for the presence of the
18212         config header before grepping, as it's not present before
18213         autoreconf/configure are run.  Reported by Simon Josefsson.
18214
18215 2010-03-23  Bruno Haible  <bruno@clisp.org>
18216
18217         pt_chown: Make it work with automake < 1.11.
18218         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
18219         Reported by Simon Josefsson.
18220
18221 2010-03-23  Bruno Haible  <bruno@clisp.org>
18222
18223         pt_chown: Don't depend on GPLed modules.
18224         * lib/pt_chown.c: Don't include idpriv.h.
18225         (main): Don't drop privileges.
18226         * modules/pt_chown (Depends-on): Remove idpriv-drop.
18227         Reported by Simon Josefsson.
18228
18229 2010-03-24  Simon Josefsson  <simon@josefsson.org>
18230
18231         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
18232         suggestions from karl@freefriends.org (Karl Berry).
18233
18234 2010-03-22  Eric Blake  <eblake@redhat.com>
18235
18236         gethostname: further tweaks
18237         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
18238         are overriding gethostname.
18239         Suggested by Bruno Haible.
18240
18241 2010-03-21  Bruno Haible  <bruno@clisp.org>
18242
18243         Fix comments.
18244         * lib/forkpty.c (rpl_forkpty): Fix comment.
18245         * lib/openpty.c (rpl_openpty): Likewise.
18246         Reported by Eric Blake.
18247
18248 2010-03-22  Eric Blake  <eblake@redhat.com>
18249
18250         gethostname: fix build on mingw
18251         * lib/unistd.in.h (includes): Work around fact that mingw
18252         <winsock2.h> re-includes <unistd.h>, by avoiding any
18253         redeclarations if we are being included by <winsock2.h>.
18254         Reported by Matthias Bolte.
18255
18256 2010-03-21  Bruno Haible  <bruno@clisp.org>
18257
18258         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
18259         * lib/forkpty.c (forkpty): New replacement function, from glibc with
18260         modifications.
18261         * lib/pty.in.h (forkpty): Update declaration. Add comments.
18262         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
18263         provide the replacement.
18264         * modules/forkpty (Depends-on): Add openpty, login_tty.
18265         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
18266         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
18267         * doc/glibc-functions/forkpty.texi: More supported platforms.
18268         * config/srclist.txt: Add forkpty.c (commented).
18269
18270 2010-03-21  Bruno Haible  <bruno@clisp.org>
18271
18272         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
18273         (Makefile.am): Verify that PTY_LIB is defined.
18274
18275         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
18276
18277 2010-03-21  Bruno Haible  <bruno@clisp.org>
18278
18279         Tests for module 'login_tty'.
18280         * modules/login_tty-tests: New file.
18281         * tests/test-login_tty.c: New file.
18282
18283         New module 'login_tty'.
18284         * lib/login_tty.c: New file.
18285         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
18286         * modules/login_tty: New file.
18287         * doc/glibc-functions/login_tty.texi: Mention the new module.
18288
18289 2010-03-21  Bruno Haible  <bruno@clisp.org>
18290
18291         login_tty: Documentation.
18292         * doc/glibc-functions/login_tty.texi: New file.
18293         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
18294
18295 2010-03-21  Bruno Haible  <bruno@clisp.org>
18296
18297         pty: Consistent macro naming.
18298         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
18299         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
18300         * modules/pty (configure.ac): Update.
18301
18302 2010-03-21  Bruno Haible  <bruno@clisp.org>
18303
18304         Tests for openpty: Make stricter.
18305         * tests/test-openpty.c (main): Add test of canonical processing and
18306         erase.
18307         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
18308
18309         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
18310         * lib/openpty.c (openpty): New replacement function.
18311         * lib/pty.in.h: Include <termios.h>.
18312         (openpty): Update declaration. Add comments.
18313         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
18314         is not declared, arrange to provide the replacement. Check for _getpty
18315         and posix_openpt.
18316         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
18317         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
18318         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
18319         * modules/pty-tests (test_pty_c___LDADD): New variable.
18320         * doc/glibc-functions/openpty.texi: More supported platforms.
18321
18322 2010-03-21  Bruno Haible  <bruno@clisp.org>
18323
18324         setenv: Tweaks.
18325         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
18326         the test program.
18327         * doc/posix-functions/setenv.texi: Update platforms list.
18328
18329 2010-03-21  Bruno Haible  <bruno@clisp.org>
18330
18331         New module 'unlockpt'.
18332         * lib/unlockpt.c: New file, from glibc with modifications.
18333         * m4/unlockpt.m4: New file.
18334         * modules/unlockpt: New file.
18335         * lib/stdlib.in.h (unlockpt): New declaration.
18336         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
18337         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
18338         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
18339         HAVE_UNLOCKPT.
18340         * doc/posix-functions/unlockpt.texi: Mention the new module.
18341         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
18342         * config/srclist.txt: Add unlockpt.c (commented).
18343
18344 2010-03-21  Jim Meyering  <meyering@redhat.com>
18345
18346         maint.mk: prohibit inclusion of "intprops.h" without use
18347         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
18348
18349 2010-03-21  Bruno Haible  <bruno@clisp.org>
18350
18351         New module 'grantpt'.
18352         * lib/grantpt.c: New file, from glibc with modifications.
18353         * m4/grantpt.m4: New file.
18354         * modules/grantpt: New file.
18355         * lib/stdlib.in.h (grantpt): New declaration.
18356         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
18357         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
18358         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
18359         HAVE_GRANTPT.
18360         * doc/posix-functions/grantpt.texi: Mention the new module.
18361         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
18362         * config/srclist.txt: Add grantpt.c (commented).
18363
18364 2010-03-21  Bruno Haible  <bruno@clisp.org>
18365
18366         New module 'pt_chown'.
18367         * lib/pt_chown.c: New file, from glibc with modifications.
18368         * lib/pty-private.h: New file, from glibc with modifications.
18369         * modules/pt_chown: New file.
18370         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
18371
18372 2010-03-21  Bruno Haible  <bruno@clisp.org>
18373
18374         Tests for module 'ptsname'.
18375         * modules/ptsname-tests: New file.
18376         * tests/test-ptsname.c: New file.
18377
18378         New module 'ptsname'.
18379         * lib/ptsname.c: New file, from glibc with modifications.
18380         * m4/ptsname.m4: New file.
18381         * modules/ptsname: New file.
18382         * lib/stdlib.in.h (ptsname): New declaration.
18383         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
18384         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
18385         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
18386         HAVE_PTSNAME.
18387         * doc/posix-functions/ptsname.texi: Mention the new module.
18388         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
18389         * config/srclist.txt: Add ptsname.c (commented).
18390
18391 2010-03-21  Bruno Haible  <bruno@clisp.org>
18392
18393         Tests for module 'ttyname_r'.
18394         * modules/ttyname_r-tests: New file.
18395         * tests/test-ttyname_r.c: New file.
18396
18397         New module 'ttyname_r'.
18398         * lib/ttyname_r.c: New file.
18399         * m4/ttyname_r.m4: New file.
18400         * modules/ttyname_r: New file.
18401         * lib/unistd.in.h (ttyname_r): New declaration.
18402         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
18403         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
18404         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
18405         HAVE_TTYNAME_R.
18406         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
18407         * doc/posix-functions/ttyname_r.texi: Mention the new module.
18408
18409 2010-03-20  Bruno Haible  <bruno@clisp.org>
18410
18411         signal: Undefine macro definitions in C++ mode.
18412         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
18413         sigfillset): Undefine macro definitions from the system header in C++
18414         mode.
18415         Reported by John W. Eaton <jwe@gnu.org>.
18416
18417 2010-03-20  Bruno Haible  <bruno@clisp.org>
18418
18419         Ensure no #include statements inside extern "C" { ... }.
18420         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
18421         contain #include statements.
18422         * lib/time.in.h: Likewise.
18423
18424 2010-03-20  Bruno Haible  <bruno@clisp.org>
18425
18426         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
18427         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
18428         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
18429         Reported by John W. Eaton <jwe@gnu.org>.
18430
18431 2010-03-20  Bruno Haible  <bruno@clisp.org>
18432
18433         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
18434         Reported by Jim Meyering.
18435
18436 2010-03-20  Bruno Haible  <bruno@clisp.org>
18437
18438         pipe: Set errno upon failure.
18439         * lib/pipe.h: Specify that when -1 is returned, errno is set.
18440         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
18441         errno value in error message.
18442
18443 2010-03-20  Bruno Haible  <bruno@clisp.org>
18444             Jim Meyering  <meyering@redhat.com>
18445
18446         lchown: Avoid "unused variable" warning.
18447         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
18448
18449 2010-03-20  Bruno Haible  <bruno@clisp.org>
18450
18451         Work around unlink() bug on MacOS X 10.5.6.
18452         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
18453         attempting to unlink a parent directory.
18454         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
18455         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
18456         activate for the replacement function.
18457         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
18458
18459 2010-03-20  Bruno Haible  <bruno@clisp.org>
18460
18461         Fix link errors on Solaris 8.
18462         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
18463         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
18464
18465 2010-03-19  Jim Meyering  <meyering@redhat.com>
18466
18467         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
18468         The _LIBC implementation of build_range_exp correctly honors the
18469         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
18470         However, the non-_LIBC implementation would ignore that syntax-bit
18471         flag and return REG_ERANGE unconditionally.
18472         This change makes it honor that flag.
18473         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
18474         Make two pointer parameters "const".
18475         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
18476         (parse_bracket_exp): Update caller.
18477
18478         regex.m4: correct the reversed range endpoint ([b-a]) test
18479         * m4/regex.m4: When requiring that [b-a] evoke failure,
18480         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
18481         test pass once again for x86-based systems.
18482
18483 2010-03-19  Bruno Haible  <bruno@clisp.org>
18484
18485         scandir: Fix link error on Solaris 8.
18486         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
18487         macros.
18488
18489 2010-03-19  Bruno Haible  <bruno@clisp.org>
18490
18491         getusershell: Fix documentation.
18492         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
18493         module.
18494         * doc/glibc-functions/setusershell.texi: Likewise.
18495
18496         getusershell: Provide declaration, missing on Solaris 9.
18497         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
18498         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
18499         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
18500         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
18501         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18502         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
18503         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
18504         HAVE_GETUSERSHELL.
18505         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
18506
18507 2010-03-19  Bruno Haible  <bruno@clisp.org>
18508
18509         wctype: Provide iswblank function.
18510         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
18511         exists and is fine.
18512         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
18513         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
18514         * tests/test-wctype.c (main): Re-enable the iswblank tests.
18515         * doc/posix-functions/iswblank.texi: Update.
18516
18517 2010-03-19  Bruno Haible  <bruno@clisp.org>
18518
18519         Tests of module 'pty' in C++ mode.
18520         * modules/pty-tests: New file.
18521         * tests/test-pty-c++.cc: New file.
18522         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
18523
18524 2010-03-19  Eric Blake  <eblake@redhat.com>
18525
18526         logb: fix documentation
18527         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
18528         1.5 declaration bug.
18529
18530         forkpty, openpty: prefer glibc's const-safe prototype
18531         * lib/forkpty.c (rpl_forkpty): New file.
18532         * lib/openpty.c (rpl_openpty): Likewise.
18533         * modules/forkpty (Files): Distribute it.
18534         * modules/openpty (Files): Likewise.
18535         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
18536         check...
18537         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
18538         replacement for for non-const BSD signature.
18539         * modules/pty (Makefile.am): Substitute witnesses.
18540         * lib/pty.in.h (forkpty, openpty): Declare replacements.
18541         * tests/test-forkpty.c: Update signature check.
18542         * tests/test-openpty.c: Likewise.
18543         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
18544         * doc/glibc-functions/openpty.texi (openpty): Likewise.
18545
18546         forkpty, openpty: split functions into new modules
18547         * modules/pty (Makefile.am): Substitute new witnesses.
18548         (Libraries): Move library detection...
18549         * modules/forkpty: ...into new module.
18550         * modules/openpty: Another new module.
18551         * modules/pty-tests: Rename and split...
18552         * modules/forkpty-tests: ...to this...
18553         * modules/openpty-tests: ...and this.
18554         * tests/test-pty.c: Rename and split...
18555         * tests/test-forkpty.c: ...to this...
18556         * tests/test-openpty.c: ...and this.
18557         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
18558         (gl_PTY): Split library searching...
18559         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
18560         (gl_FORKPTY, gl_OPENPTY): New macros.
18561         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
18562         * NEWS: Mention the split.
18563         * MODULES.html.sh (Misc): Document the modules.
18564         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
18565         * doc/glibc-functions/openpty.texi (openpty): Likewise.
18566
18567         pty: improve replacement header
18568         * lib/pty.in.h: New file.
18569         * modules/pty (Files): Ship it.
18570         (Makefile.am): Always build replacement.
18571         * m4/pty.m4: Rename...
18572         * m4/pty_h.m4: ...to this.
18573         (gl_PTY): Modernize setting of witness macros; update check of
18574         forkpty to take proper advantage of cache.
18575         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
18576
18577         getopt: avoid compiler warning
18578         * lib/getopt.c (attribute_hidden): Remove unused macro.
18579
18580 2010-03-18  Bruno Haible  <bruno@clisp.org>
18581
18582         Fix link errors on Solaris 8.
18583         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
18584         * modules/search-tests (test_search_c___LDADD): Likewise.
18585         * modules/signal-tests (test_signal_c___LDADD): Likewise.
18586         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
18587         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
18588         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
18589         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
18590         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
18591         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
18592
18593 2010-03-18  Bruno Haible  <bruno@clisp.org>
18594
18595         Fix bug introduced on 2010-03-14.
18596         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
18597         (gl_SPAWN_H): Require it.
18598         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
18599         Reported by Simon Josefsson.
18600
18601 2010-03-18  Bruno Haible  <bruno@clisp.org>
18602
18603         Fix typo introduced on 2009-12-31.
18604         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
18605         posix_spawn_file_actions_adddup2.
18606
18607 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
18608         and Eric Blake  <eblake@redhat.com>
18609
18610         test-vc-list-files-git: make more robust
18611         * tests/test-vc-list-files-git.sh: Unset problematic environment
18612         variables.  Chain commands together.
18613
18614 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
18615
18616         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
18617         `AC_CHECK_DECL' invocation.
18618
18619 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
18620
18621         * lib/inttostr.c (inttostr): Make sure the invocation of verify
18622         appears before executable statements. Suggested by Petr Sumbera
18623         <Petr.Sumbera@Sun.COM>.
18624
18625 2010-03-14  Bruno Haible  <bruno@clisp.org>
18626
18627         * tests/test-flock.c (test_exclusive): Comment out a test that causes
18628         portability problems. Instead use a simpler test.
18629         (main): Check that invalid arguments are rejected only on Linux.
18630
18631 2010-03-14  Bruno Haible  <bruno@clisp.org>
18632
18633         Fix bug introduced on 2009-12-31.
18634         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
18635         gl_PREREQ_SYS_H_WINSOCK2 always.
18636         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
18637         SYS_SOCKET_H variable.
18638         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
18639         Update comments.
18640         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
18641         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
18642         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18643         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
18644         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
18645
18646 2010-03-14  Bruno Haible  <bruno@clisp.org>
18647
18648         Fix values returned by sinl, cosl.
18649         * lib/trigl.h: Add specification comments.
18650         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
18651         that combines the values from the precomputed table with the values of
18652         the Chebyshev polynomials.
18653
18654 2010-03-14  Bruno Haible  <bruno@clisp.org>
18655
18656         Fix compilation error when modules 'posix_spawn[p]' are not used.
18657         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
18658         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
18659
18660 2010-03-14  Bruno Haible  <bruno@clisp.org>
18661
18662         Fix compilation error on mingw when module 'time_r' is not used.
18663         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
18664         is 1.
18665         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
18666         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
18667         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
18668         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
18669
18670 2010-03-14  Bruno Haible  <bruno@clisp.org>
18671
18672         Fix compilation error with Sun C.
18673         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
18674         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
18675         instead of GCC specific ULONG_LONG_MAX.
18676         * lib/xstrtoll.c: Likewise.
18677         * lib/xstrtoull.c: Likewise.
18678
18679 2010-03-13  Bruno Haible  <bruno@clisp.org>
18680
18681         Allow the user to disable C++ code and tests.
18682         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
18683         (gl_PROG_ANSI_CXX): Require it.
18684
18685 2010-03-13  Bruno Haible  <bruno@clisp.org>
18686
18687         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
18688         cases.
18689
18690 2010-03-13  Bruno Haible  <bruno@clisp.org>
18691
18692         Test that gnulib does not break the standard C++ headers.
18693         * tests/test-locale-c++2.cc: New file.
18694         * modules/locale-tests (Files): Add it.
18695         (Makefile.am): Compile it for test-locale-c++.
18696         * tests/test-math-c++2.cc: New file.
18697         * modules/math-tests (Files): Add it.
18698         (Makefile.am): Compile it for test-math-c++.
18699         * tests/test-signal-c++2.cc: New file.
18700         * modules/signal-tests (Files): Add it.
18701         (Makefile.am): Compile it for test-signal-c++.
18702         * tests/test-stdio-c++2.cc: New file.
18703         * modules/stdio-tests (Files): Add it.
18704         (Makefile.am): Compile it for test-stdio-c++.
18705         * tests/test-stdlib-c++2.cc: New file.
18706         * modules/stdlib-tests (Files): Add it.
18707         (Makefile.am): Compile it for test-stdlib-c++.
18708         * tests/test-string-c++2.cc: New file.
18709         * modules/string-tests (Files): Add it.
18710         (Makefile.am): Compile it for test-string-c++.
18711         * tests/test-time-c++2.cc: New file.
18712         * modules/time-tests (Files): Add it.
18713         (Makefile.am): Compile it for test-time-c++.
18714         Reported by John W. Eaton <jwe@gnu.org>.
18715
18716 2010-03-13  Bruno Haible  <bruno@clisp.org>
18717
18718         * gnulib-tool (func_usage): Clarify which options are available for
18719         --create-testdir and --create-megatestdir.
18720
18721 2010-03-13  Bruno Haible  <bruno@clisp.org>
18722
18723         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
18724         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
18725         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
18726         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
18727         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
18728         when appropriate.
18729         Reported by Jim Meyering.
18730
18731 2010-03-12  Simon Josefsson  <simon@josefsson.org>
18732
18733         * gnulib-tool (func_import): Explain origin of code.
18734
18735 2010-03-12  Bruno Haible  <bruno@clisp.org>
18736
18737         Fix problem with automake's definition of CXXLINK.
18738         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
18739         Reported by Simon Josefsson and Ludovic Courtès.
18740
18741 2010-03-12  Bruno Haible  <bruno@clisp.org>
18742
18743         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
18744         stable releases.
18745
18746 2010-03-11  Bruno Haible  <bruno@clisp.org>
18747
18748         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
18749         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
18750         whether the system provides one variant or multiple variants of the
18751         function.
18752         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
18753         C++ compilers.
18754         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
18755         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
18756         Reported by Jim Meyering.
18757
18758 2010-03-09  Simon Josefsson  <simon@josefsson.org>
18759
18760         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
18761
18762 2010-03-08  Bruno Haible  <bruno@clisp.org>
18763
18764         gnulib-tool: Add support for --libtool in --create-testdir.
18765         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
18766         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
18767
18768 2010-03-08  Eric Blake  <eblake@redhat.com>
18769
18770         gnulib-tool.texi: mention possibility of git submodule
18771         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
18772         submodules.
18773         * doc/.gitignore: Ignore another generated file.
18774
18775 2010-03-08  Karl Berry  <karl@gnu.org>
18776
18777         * doc/gnulib-tool.texi (VCS Issues): Mention third option
18778         of committing gnulib files while skipping others.
18779
18780 2010-03-07  Bruno Haible  <bruno@clisp.org>
18781
18782         Tests of module 'wctype' in C++ mode.
18783         * tests/test-wctype-c++.cc: New file.
18784         * modules/wctype-tests (Files): Add it and tests/signature.h.
18785         (Depends-on): Add ansi-c++-opt.
18786         (Makefile.am): Arrange to compile and run test-wctype-c++.
18787
18788         Tests of module 'wchar' in C++ mode.
18789         * tests/test-wchar-c++.cc: New file.
18790         * modules/wchar-tests (Files): Add it and tests/signature.h.
18791         (Depends-on): Add ansi-c++-opt.
18792         (Makefile.am): Arrange to compile and run test-wchar-c++.
18793         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
18794         gl_MODULE_INDICATOR.
18795
18796         Tests of module 'unistd' in C++ mode.
18797         * tests/test-unistd-c++.cc: New file.
18798         * modules/unistd-tests (Files): Add it and tests/signature.h.
18799         (Depends-on): Add ansi-c++-opt.
18800         (Makefile.am): Arrange to compile and run test-unistd-c++.
18801         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
18802         gl_MODULE_INDICATOR.
18803
18804         Tests of module 'time' in C++ mode.
18805         * tests/test-time-c++.cc: New file.
18806         * modules/time-tests (Files): Add it and tests/signature.h.
18807         (Depends-on): Add ansi-c++-opt.
18808         (Makefile.am): Arrange to compile and run test-time-c++.
18809         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
18810
18811         Tests of module 'sys_time' in C++ mode.
18812         * tests/test-sys_time-c++.cc: New file.
18813         * modules/sys_time-tests (Files): Add it and tests/signature.h.
18814         (Depends-on): Add ansi-c++-opt.
18815         (Makefile.am): Arrange to compile and run test-sys_time-c++.
18816         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
18817         gl_MODULE_INDICATOR.
18818
18819         Tests of module 'sys_stat' in C++ mode.
18820         * tests/test-sys_stat-c++.cc: New file.
18821         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
18822         (Depends-on): Add ansi-c++-opt.
18823         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
18824         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
18825         gl_MODULE_INDICATOR.
18826
18827         Tests of module 'sys_socket' in C++ mode.
18828         * tests/test-sys_socket-c++.cc: New file.
18829         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
18830         (Depends-on): Add ansi-c++-opt.
18831         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
18832         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
18833         gl_MODULE_INDICATOR.
18834
18835         Tests of module 'sys_select' in C++ mode.
18836         * tests/test-sys_select-c++.cc: New file.
18837         * modules/sys_select-tests (Files): Add it and tests/signature.h.
18838         (Depends-on): Add ansi-c++-opt.
18839         (Makefile.am): Arrange to compile and run test-sys_select-c++.
18840         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
18841         gl_MODULE_INDICATOR.
18842
18843         Tests of module 'sys_ioctl' in C++ mode.
18844         * tests/test-sys_ioctl-c++.cc: New file.
18845         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
18846         (Depends-on): Add ansi-c++-opt.
18847         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
18848         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
18849         gl_MODULE_INDICATOR.
18850
18851         Tests of module 'string' in C++ mode.
18852         * tests/test-string-c++.cc: New file.
18853         * modules/string-tests (Files): Add it and tests/signature.h.
18854         (Depends-on): Add ansi-c++-opt.
18855         (Makefile.am): Arrange to compile and run test-string-c++.
18856         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
18857         gl_MODULE_INDICATOR.
18858
18859         Tests of module 'stdlib' in C++ mode.
18860         * tests/test-stdlib-c++.cc: New file.
18861         * modules/stdlib-tests (Files): Add it and tests/signature.h.
18862         (Depends-on): Add ansi-c++-opt.
18863         (Makefile.am): Arrange to compile and run test-stdlib-c++.
18864         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
18865         gl_MODULE_INDICATOR.
18866
18867         Tests of module 'stdio' in C++ mode.
18868         * tests/test-stdio-c++.cc: New file.
18869         * modules/stdio-tests (Files): Add it and tests/signature.h.
18870         (Depends-on): Add ansi-c++-opt.
18871         (Makefile.am): Arrange to compile and run test-stdio-c++.
18872         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
18873         gl_MODULE_INDICATOR.
18874
18875         Tests of module 'spawn' in C++ mode.
18876         * tests/test-spawn-c++.cc: New file.
18877         * modules/spawn-tests (Files): Add it and tests/signature.h.
18878         (Depends-on): Add ansi-c++-opt.
18879         (Makefile.am): Arrange to compile and run test-spawn-c++.
18880         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
18881         gl_MODULE_INDICATOR.
18882
18883         Tests of module 'signal' in C++ mode.
18884         * tests/test-signal-c++.cc: New file.
18885         * modules/signal-tests (Files): Add it and tests/signature.h.
18886         (Depends-on): Add ansi-c++-opt.
18887         (Makefile.am): Arrange to compile and run test-signal-c++.
18888         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
18889         gl_MODULE_INDICATOR.
18890
18891         Tests of module 'search' in C++ mode.
18892         * tests/test-search-c++.cc: New file.
18893         * modules/search-tests (Files): Add it and tests/signature.h.
18894         (Depends-on): Add ansi-c++-opt.
18895         (Makefile.am): Arrange to compile and run test-search-c++.
18896         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
18897         gl_MODULE_INDICATOR.
18898
18899         Tests of module 'math' in C++ mode.
18900         * tests/test-math-c++.cc: New file.
18901         * modules/math-tests (Files): Add it and tests/signature.h.
18902         (Depends-on): Add ansi-c++-opt.
18903         (Makefile.am): Arrange to compile and run test-math-c++.
18904         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
18905
18906         Tests of module 'locale' in C++ mode.
18907         * tests/test-locale-c++.cc: New file.
18908         * modules/locale-tests (Files): Add it and tests/signature.h.
18909         (Depends-on): Add ansi-c++-opt.
18910         (Makefile.am): Arrange to compile and run test-locale-c++.
18911         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
18912         gl_MODULE_INDICATOR.
18913
18914         Tests of module 'langinfo' in C++ mode.
18915         * tests/test-langinfo-c++.cc: New file.
18916         * modules/langinfo-tests (Files): Add it and tests/signature.h.
18917         (Depends-on): Add ansi-c++-opt.
18918         (Makefile.am): Arrange to compile and run test-langinfo-c++.
18919         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
18920         gl_MODULE_INDICATOR.
18921
18922         Tests of module 'iconv-h' in C++ mode.
18923         * tests/test-iconv-h-c++.cc: New file.
18924         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
18925         (Depends-on): Add ansi-c++-opt.
18926         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
18927
18928         Tests of module 'glob' in C++ mode.
18929         * tests/test-glob-c++.cc: New file.
18930         * modules/glob-tests (Files): Add it.
18931         (Depends-on): Add ansi-c++-opt.
18932         (Makefile.am): Arrange to compile and run test-glob-c++.
18933
18934         Tests of module 'fcntl-h' in C++ mode.
18935         * tests/test-fcntl-h-c++.cc: New file.
18936         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
18937         (Depends-on): Add ansi-c++-opt.
18938         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
18939         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
18940         gl_MODULE_INDICATOR.
18941
18942         Tests of module 'dirent' in C++ mode.
18943         * tests/test-dirent-c++.cc: New file.
18944         * modules/dirent-tests (Files): Add it and tests/signature.h.
18945         (Depends-on): Add ansi-c++-opt.
18946         (Makefile.am): Arrange to compile and run test-dirent-c++.
18947         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
18948         gl_MODULE_INDICATOR.
18949
18950         New module 'ansi-c++-opt'.
18951         * modules/ansi-c++-opt: New file.
18952         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
18953
18954         Document C++ namespace mode.
18955         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
18956
18957         wctype: Avoid #define replacements in C++ mode.
18958         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
18959         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
18960         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
18961         In C++, define a namespaced alias symbol.
18962         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
18963         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
18964         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
18965         rule.
18966
18967         wchar: Avoid #define replacements in C++ mode.
18968         * lib/wchar.in.h: Include c++defs.h.
18969         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
18970         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
18971         symbol.
18972         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
18973         * modules/wchar (Depends-on): Add c++defs.
18974         (Makefile.am): Update wchar.h rule.
18975
18976         unistd: Avoid #define replacements in C++ mode.
18977         * lib/unistd.in.h: Include c++defs.h.
18978         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
18979         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
18980         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
18981         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
18982         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
18983         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
18984         symbol.
18985         (environ): Update.
18986         * modules/unistd (Depends-on): Add c++defs.
18987         (Makefile.am): Update unistd.h rule.
18988
18989         time: Avoid #define replacements in C++ mode.
18990         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
18991         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
18992         define a namespaced alias symbol.
18993         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
18994         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
18995         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
18996         * modules/time (Depends-on): Add c++defs, warn-on-use.
18997         (Makefile.am): Update time.h rule.
18998         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
18999         * modules/nanosleep (configure.ac): Likewise.
19000         * modules/strptime (configure.ac): Likewise.
19001         * modules/timegm (configure.ac): Likewise.
19002
19003         sys_time: Avoid #define replacements in C++ mode.
19004         * lib/sys_time.in.h: Include c++defs.h.
19005         (gettimeofday): In C++, define a namespaced alias symbol.
19006         * modules/sys_time (Depends-on): Add c++defs.
19007         (Makefile.am): Update sys/time.h rule.
19008
19009         sys_stat: Avoid #define replacements in C++ mode.
19010         * lib/sys_stat.in.h: Include c++defs.h.
19011         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
19012         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
19013         namespaced alias symbol.
19014         In C++, define a namespaced alias symbol.
19015         * modules/sys_stat (Depends-on): Add c++defs.
19016         (Makefile.am): Update sys/stat.h rule.
19017
19018         sys_socket: Avoid #define replacements in C++ mode.
19019         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
19020         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
19021         definitions also when the system has a <sys/socket.h>.
19022         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
19023         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
19024         In C++, define a namespaced alias symbol.
19025         * modules/sys_socket (Depends-on): Add c++defs.
19026         (Makefile.am): Update sys/socket.h rule.
19027
19028         sys_select: Avoid #define replacements in C++ mode.
19029         * lib/sys_select.in.h: Include c++defs.h. Enable the function
19030         definitions also when the system has a <sys/select.h>.
19031         (select): In C++, define a namespaced alias symbol.
19032         * modules/sys_select (Depends-on): Add c++defs.
19033         (Makefile.am): Update sys/select.h rule.
19034
19035         sys_ioctl: Avoid #define replacements in C++ mode.
19036         * lib/sys_ioctl.in.h: Include c++defs.h.
19037         (ioctl): In C++, define a namespaced alias symbol.
19038         * modules/sys_ioctl (Depends-on): Add c++defs.
19039         (Makefile.am): Update sys/ioctl.h rule.
19040
19041         string: Avoid #define replacements in C++ mode.
19042         * lib/string.in.h: Include c++defs.h.
19043         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
19044         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
19045         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
19046         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
19047         strsignal, strverscmp): In C++, define a namespaced alias symbol.
19048         * modules/string (Depends-on): Add c++defs.
19049         (Makefile.am): Update string.h rule.
19050
19051         stdlib: Avoid #define replacements in C++ mode.
19052         * lib/stdlib.in.h: Include c++defs.h.
19053         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
19054         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
19055         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
19056         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
19057         symbol.
19058         * modules/stdlib (Depends-on): Add c++defs.
19059         (Makefile.am): Update stdlib.h rule.
19060
19061         stdio: Avoid #define replacements in C++ mode.
19062         * lib/stdio.in.h: Include c++defs.h.
19063         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
19064         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
19065         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
19066         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
19067         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
19068         namespaced alias symbol.
19069         * modules/stdio (Depends-on): Add c++defs.
19070         (Makefile.am): Update stdio.h rule.
19071
19072         spawn: Avoid #define replacements in C++ mode.
19073         * lib/spawn.in.h: Include c++defs.h.
19074         (posix_spawn, posix_spawnp, posix_spawnattr_init,
19075         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
19076         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
19077         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
19078         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
19079         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
19080         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
19081         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
19082         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
19083         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
19084         In C++, define a namespaced alias symbol.
19085         * modules/spawn (Depends-on): Add c++defs.
19086         (Makefile.am): Update spawn.h rule.
19087
19088         signal: Avoid #define replacements in C++ mode.
19089         * lib/signal.in.h: Include c++defs.h.
19090         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
19091         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
19092         namespaced alias symbol.
19093         * modules/signal (Depends-on): Add c++defs.
19094         (Makefile.am): Update signal.h rule.
19095
19096         search: Avoid #define replacements in C++ mode.
19097         * lib/search.in.h: Include c++defs.h.
19098         (_gl_search_compar_fn, _gl_search_action_fn): New types.
19099         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
19100         symbol.
19101         * modules/search (Depends-on): Add c++defs.
19102         (Makefile.am): Update search.h rule.
19103
19104         math: Avoid #define replacements in C++ mode.
19105         * lib/math.in.h: Include c++defs.h.
19106         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
19107         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
19108         trunc, truncl): In C++, define a namespaced alias symbol.
19109         * modules/math (Depends-on): Add c++defs.
19110         (Makefile.am): Update math.h rule.
19111
19112         locale: Avoid #define replacements in C++ mode.
19113         * lib/locale.in.h: Include c++defs.h.
19114         (duplocale): In C++, define a namespaced alias symbol.
19115         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
19116         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
19117         * modules/locale (Depends-on): Add c++defs.
19118         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
19119
19120         langinfo: Avoid #define replacements in C++ mode.
19121         * lib/langinfo.in.h: Include c++defs.h.
19122         (nl_langinfo): In C++, define a namespaced alias symbol.
19123         * modules/langinfo (Depends-on): Add c++defs.
19124         (Makefile.am): Update langinfo.h rule.
19125
19126         iconv-h: Avoid #define replacements in C++ mode.
19127         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
19128         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
19129         symbol.
19130         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
19131         whenever iconv is present.
19132         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
19133         (Makefile.am): Update iconv.h rule.
19134
19135         glob: Avoid #define replacements in C++ mode.
19136         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
19137         (_gl_glob_errfunc_fn): New type.
19138         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
19139         symbol.
19140         * modules/glob (Depends-on): Add c++defs, warn-on-use.
19141         (Makefile.am): Update glob.h rule.
19142
19143         fcntl-h: Avoid #define replacements in C++ mode.
19144         * lib/fcntl.in.h: Include c++defs.h.
19145         (fcntl, open, openat): In C++, define a namespaced alias symbol.
19146         * modules/fcntl-h (Depends-on): Add c++defs.
19147         (Makefile.am): Update fcntl.h rule.
19148
19149         dirent: Avoid #define replacements in C++ mode.
19150         * lib/dirent.in.h: Include c++defs.h.
19151         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
19152         namespaced alias symbol.
19153         (dirfd): Update declaration.
19154         * modules/dirent (Depends-on): Add c++defs.
19155         (Makefile.am): Update dirent.h rule.
19156
19157         ctype: Make it usable in C++ code.
19158         * lib/ctype.in.h: Include c++defs.h.
19159         (isblank): Declare as extern "C".
19160         * modules/ctype (Depends-on): Add c++defs.
19161         (Makefile.am): Update ctype.h rule.
19162
19163         New module 'c++defs'.
19164         * modules/c++defs: New file.
19165         * build-aux/c++defs.h: New file.
19166         Reported by John W. Eaton <jwe@gnu.org>.
19167
19168 2010-03-07  Bruno Haible  <bruno@clisp.org>
19169
19170         logb: Provide missing declaration for Cygwin.
19171         * lib/math.in.h (logb): New declaration.
19172         * m4/logb.m4: New file.
19173         * modules/logb (Files): Add m4/logb.m4.
19174         (Depends-on): Add math.
19175         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
19176         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
19177         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
19178         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
19179         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
19180
19181 2010-03-07  Bruno Haible  <bruno@clisp.org>
19182
19183         Fix test-cond link error.
19184         * tests/test-cond.c: Include <stdio.h>.
19185
19186 2010-03-07  Bruno Haible  <bruno@clisp.org>
19187
19188         Fix test-dirent-safer link error.
19189         * modules/dirent-safer-tests (Makefile.am): Define
19190         test_dirent_safer_LDADD.
19191
19192 2010-03-07  Bruno Haible  <bruno@clisp.org>
19193
19194         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
19195         among default module list.
19196
19197 2010-03-07  Bruno Haible  <bruno@clisp.org>
19198
19199         Fix link error on platforms with GNU libiconv.
19200         * modules/unistr/u8-strcoll-tests (Makefile): Define
19201         test_u8_strcoll_LDADD.
19202         * modules/unistr/u16-strcoll-tests (Makefile): Define
19203         test_u16_strcoll_LDADD.
19204         * modules/unistr/u32-strcoll-tests (Makefile): Define
19205         test_u32_strcoll_LDADD.
19206
19207 2010-03-07  Bruno Haible  <bruno@clisp.org>
19208
19209         Use POSIX declarations for socket functions.
19210         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
19211         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
19212         rpl_sendto): Change declaration to match POSIX.
19213         * lib/connect.c (rpl_connect): Likewise.
19214         * lib/accept.c (rpl_accept): Likewise.
19215         * lib/bind.c (rpl_bind): Likewise.
19216         * lib/getpeername.c (rpl_getpeername): Likewise.
19217         * lib/getsockname.c (rpl_getsockname): Likewise.
19218         * lib/recv.c (rpl_recv): Likewise.
19219         * lib/send.c (rpl_send): Likewise.
19220         * lib/recvfrom.c (rpl_recvfrom): Likewise.
19221         * lib/sendto.c (rpl_sendto): Likewise.
19222
19223 2010-03-06  Bruno Haible  <bruno@clisp.org>
19224
19225         Clarify access, euidaccess, faccessat.
19226         * doc/posix-functions/faccessat.texi: Mention security problem under
19227         "Other problems", not "Portability problems".
19228         * doc/posix-functions/access.texi: Likewise. Mention a related security
19229         problem.
19230         * doc/glibc-functions/euidaccess.texi: Mention security problems.
19231         * lib/euidaccess.c: Add comments about platforms.
19232         * lib/unistd.in.h (access, euidaccess): Add warnings.
19233
19234 2010-03-07  Bruno Haible  <bruno@clisp.org>
19235
19236         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
19237         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
19238         (POSIX_SPAWN_SETSCHEDULER): Likewise.
19239         (POSIX_SPAWN_USEVFORK): Define in a way that works when
19240         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
19241         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
19242         declare when POSIX_SPAWN_SETSCHEDULER is zero.
19243         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
19244         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
19245         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
19246         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
19247         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
19248         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
19249         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
19250         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
19251         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
19252         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
19253         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
19254         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
19255         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
19256         Likewise.
19257         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
19258         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
19259         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
19260         Likewise.
19261         * tests/test-spawn.c (main): Make it work when
19262         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
19263
19264 2010-03-07  Bruno Haible  <bruno@clisp.org>
19265
19266         Fix incorrect Makefile.am generation in German locale.
19267         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
19268         Execute sed command with character range in C locale.
19269
19270 2010-03-06  Bruno Haible  <bruno@clisp.org>
19271
19272         Tests for module 'iconv-h'.
19273         * modules/iconv-h-tests: New file.
19274         * tests/test-iconv-h.c: New file.
19275
19276         New module 'iconv-h'.
19277         * modules/iconv-h: New file.
19278         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
19279         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
19280         (configure.ac): Remove gl_ICONV_H.
19281         (Makefile.am): Remove rule for iconv.h.
19282
19283 2010-03-06  Bruno Haible  <bruno@clisp.org>
19284
19285         More consistent naming of *.m4 files.
19286         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
19287         * modules/wctype (Files): Update.
19288
19289         More consistent naming of *.m4 files.
19290         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
19291         * modules/wchar (Files): Update.
19292
19293 2010-03-06  Jim Meyering  <meyering@redhat.com>
19294
19295         euidaccess: relax license to LGPLv2+
19296         * modules/euidaccess (License): Relax to LGPLv2+.
19297
19298 2010-03-06  Bruno Haible  <bruno@clisp.org>
19299
19300         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
19301         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
19302         (Makefile.am): Augment lib_SOURCES instead.
19303
19304 2010-03-04  Jim Meyering  <meyering@redhat.com>
19305
19306         utime: remove obsolete module
19307         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
19308         unnecessary for years, and has been marked as obsolete for 10 months.
19309         * modules/utime: Remove file.
19310         * lib/utime.c: Remove file.
19311         * m4/utime.m4: Remove file.
19312         * m4/utimes-null.m4: Remove file.
19313         * doc/posix-functions/utime.texi (utime): Remove reference to
19314         the module.  Move the sole "fixed by gnulib" item into the
19315         "problems not fixed by Gnulib" list.
19316         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
19317
19318 2010-03-05  Simon Josefsson  <simon@josefsson.org>
19319
19320         * modules/exit (License): Relax license to LGPLv2+.
19321         (Status): Mark as obsolete.
19322         * NEWS: Mention deprecated 'exit' module.
19323         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
19324         of now obsolete 'exit'.
19325
19326 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19327
19328         fts-lgpl: remove unused module
19329         * modules/fts-lgpl: Remove.
19330         * MODULES.html.sh (func_all_modules): Adjust.
19331         * check-module (find_included_lib_files): Adjust.
19332         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
19333
19334 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
19335
19336         copy-acl: enhance Solaris ACL error handling
19337         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
19338         * lib/set-mode-acl.c (qset_acl): Likewise.
19339
19340 2010-03-02  Bruno Haible  <bruno@clisp.org>
19341
19342         spawn: Don't override the system defined values on FreeBSD 8.
19343         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
19344         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
19345         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
19346         if HAVE_POSIX_SPAWN is 1.
19347         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
19348
19349 2010-03-01  Bruno Haible  <bruno@clisp.org>
19350
19351         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
19352         regarding Automake.
19353
19354 2010-02-25  Bruno Haible  <bruno@clisp.org>
19355
19356         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
19357         * gnulib-tool: Define 'echo' as a function only before the ksh alias
19358         setting, not afterwards.
19359         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
19360
19361 2010-02-24  Eric Blake  <eblake@redhat.com>
19362
19363         bootstrap, git-version-gen: use timestamp
19364         * build-aux/git-version-gen (scriptversion): Force UTC.
19365         * build-aux/bootstrap (scriptversion): New variable.
19366
19367         bootstrap: allow older git
19368         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
19369         older than 1.6.4.  Requested by the libvirt project.
19370
19371 2010-02-23  Eric Blake  <eblake@redhat.com>
19372
19373         warn-on-use: work with old autoconf
19374         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
19375         AS_VAR semantics of autoconf 2.60.
19376         Reported by Bruno Haible.
19377
19378         bootstrap: improve some comments
19379         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
19380         clarification comments.
19381
19382         gettimeofday: provide correct function
19383         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
19384         when replacement is declared, otherwise provide gettimeofday.
19385         Reported by Michael Goffioul.
19386
19387 2010-02-23  Jim Meyering  <meyering@redhat.com>
19388
19389         lib-ignore: relax license to "unlimited", not LGPLv2+
19390         * modules/lib-ignore (License): Relax to "unlimited".
19391
19392 2010-02-23  Jim Meyering  <meyering@redhat.com>
19393
19394         lib-ignore: relax license to LGPLv2+
19395         * modules/lib-ignore (License): Relax to LGPLv2+.
19396
19397 2010-02-22  Eric Blake  <eblake@redhat.com>
19398
19399         lseek: avoid bash 3.2 broken pipe bug
19400         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
19401         warning from bash 3.2.
19402         Reported by Ben Pfaff, with analysis from Bruno Haible.
19403
19404         bootstrap: support non-FSF copyright holder
19405         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
19406         bootstrap.conf override of COPYRIGHT_HOLDER.
19407         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
19408
19409         bootstrap: interoperate with gettext 0.14.1
19410         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
19411
19412         bootstrap: allow for alternate submodule location
19413         * build-aux/bootstrap (gnulib_path): New variable; use instead of
19414         hardcoding submodule location.
19415         (gnulib_mk): Allow direct use of Makefile.am.
19416
19417         bootstrap: use GNULIB_SRCDIR to reduce disk usage
19418         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
19419         rather than reconfiguring where the submodule points.
19420
19421         gettimeofday: restore support for platforms that lack function
19422         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
19423         replacement if function is missing.
19424         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
19425         * modules/sys_time (Makefile.am): Substitute it.
19426         * lib/sys_time.in.h (gettimeofday): Check it.
19427         Reported by Michael Goffioul.
19428
19429 2010-02-21  Bruno Haible  <bruno@clisp.org>
19430
19431         * lib/stdio.in.h (obstack_printf): Fix typo.
19432
19433 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
19434
19435         vc-list-files: use bzr ls's -R option
19436         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
19437         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
19438
19439 2010-02-21  Jim Meyering  <meyering@redhat.com>
19440
19441         init.sh: fix EXEEXT shims to work also for names like test-prog
19442         * tests/init.sh: Re-exec a better shell, when needed.
19443         If the current shell lacks support for posix $(...), an init.sh-using
19444         test will now try to find a shell that supports that.  If EXEEXT is
19445         nonempty, we also require support for hyphen-in-alias-name and shell
19446         substitutions like ${var#glob}.  Failure to find such a shell results
19447         in a skipped test.
19448
19449 2010-02-21  Bruno Haible  <bruno@clisp.org>
19450
19451         Really work around around "broken pipe" error message from bash 3.2.
19452         * gnulib-tool (func_reset_sigpipe): Remove function.
19453         (echo): In bash 3.2, define to a function that uses printf.
19454         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
19455
19456 2010-02-20  Bruno Haible  <bruno@clisp.org>
19457
19458         Restore support for automake 1.9.6 with autoconf 2.61.
19459         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
19460         Reported by James Youngman <jay@gnu.org>.
19461
19462 2010-02-20  Bruno Haible  <bruno@clisp.org>
19463
19464         Improve *printf warning condition.
19465         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
19466         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
19467         and the function is overridden due to SIGPIPE emulation.
19468
19469 2010-02-20  Bruno Haible  <bruno@clisp.org>
19470
19471         * lib/stdio.in.h: Tweak comments.
19472
19473 2010-02-19  Bruno Haible  <bruno@clisp.org>
19474
19475         Make it easier to find modules. New gnulib-tool option '--find'.
19476         * gnulib-tool: New option --find.
19477         (func_usage): Document it.
19478         (func_sanitize_modulelist): New function, extracted from
19479         func_all_modules.
19480         (func_all_modules): Invoke it.
19481         * doc/gnulib-tool.texi (Which modules?): New node.
19482
19483 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
19484
19485         * lib/sys_select.in.h: Provide select replacement even if
19486         sys/select.h exists on a system, for Interix.
19487
19488 2010-02-18  Jim Meyering  <meyering@redhat.com>
19489
19490         init.sh: don't use $(...) just yet
19491         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
19492         to accommodate e.g., Solaris' /bin/sh.
19493
19494 2010-02-17  Bruno Haible  <bruno@clisp.org>
19495
19496         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
19497         Reported by Ludovic Courtès <ludo@gnu.org>.
19498
19499 2010-02-16  Simon Josefsson  <simon@josefsson.org>
19500
19501         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
19502         linking with -lintl.
19503
19504 2010-02-17  Simon Josefsson  <simon@josefsson.org>
19505
19506         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
19507         if not provided by the system's netdb.h.  Reported by
19508         ludo@gnu.org (Ludovic Courtès).
19509
19510 2010-02-15  Jim Meyering  <meyering@redhat.com>
19511
19512         init.sh: improve portability and efficiency
19513         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
19514         "dummy" in a for loop.
19515         Use '!', not '^' to select the complement of a character set used
19516         in a "case" statement.
19517         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
19518         Suggestions from Eric Blake.
19519
19520         init.sh: automatically accommodate programs with the .exe suffix
19521         Automatically arrange for an invocation of "prog" to execute the
19522         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
19523         may use the simpler "prog", yet still work when built on a system
19524         that requires specifying the added suffix.
19525         Do this by constructing a function named "prog" that invokes
19526         "prog.exe" for each .exe file in selected directories.
19527         * tests/init.sh (find_exe_basenames_): New function.
19528         (create_exe_shim_functions_): New function.
19529         (path_prepend_): Use it.
19530
19531         maint.mk: mark syntax-check sc_*.m rules as .PHONY
19532         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
19533         "make -t syntax-check" doesn't create a ton of sc_*.m files.
19534
19535 2010-02-14  Jim Meyering  <meyering@redhat.com>
19536
19537         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
19538         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
19539         (sc_prohibit_hash_pjw_without_use): New rule.
19540
19541         maint.mk: allow the default upload destination dir to be overridden
19542         * top/maint.mk (upload_dest_dir_): Define with a default that
19543         preserves the status quo.
19544         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
19545         Reported by Peter Simons.
19546
19547         maint.mk: prohibit inclusion of "hash.h" without_use
19548         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
19549
19550 2010-02-10  Jim Meyering  <meyering@redhat.com>
19551
19552         maint.mk: prohibit inclusion of "ignore-value.h" without_use
19553         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
19554
19555 2010-02-09  Eric Blake  <ebb9@byu.net>
19556         and Bruno Haible  <bruno@clisp.org>
19557
19558         obstack-printf-posix: ensure declaration
19559         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
19560         extracted from gl_FUNC_OBSTACK_PRINTF.
19561         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
19562         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
19563         Likewise.
19564         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
19565         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
19566         0.
19567
19568 2010-02-08  Bruno Haible  <bruno@clisp.org>
19569
19570         gnulib-tool: Fix typo in 2010-02-07 commit.
19571         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
19572         Reported by Eric Blake.
19573
19574 2010-02-07  Bruno Haible  <bruno@clisp.org>
19575
19576         gnulib-tool: Fix up caching patches.
19577         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
19578         option --no-cache. Use associative arrays when supported by the shell.
19579         (sed_comments): New variable.
19580         (modcache): Renamed from do_cache.
19581         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
19582         abbreviate unnecessarily.
19583         (have_associative): New variable.
19584         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
19585         way also for ksh and zsh.
19586         (func_init_sed_convert_to_cache_statements): New function, extracted
19587         from func_cache_lookup_module. Add support for associative arrays.
19588         Don't set the c_MODULE_cached variable here. Ignore all lines before
19589         the first field header. Remove only the final newline, not all trailing
19590         newlines. Support empty fields correctly. Limit the use of 'eval' to
19591         assignments.
19592         (func_get_description, func_get_status, func_get_notice,
19593         func_get_applicability, func_get_filelist, func_get_dependencies,
19594         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
19595         func_get_automake_snippet, func_get_include_directive,
19596         func_get_link_directive, func_get_license, func_get_maintainer):
19597         Update documentation. List the unoptimized code first. Add support for
19598         associative arrays. Limit the use of 'eval' to assignments.
19599         (func_get_applicability): Undo stylistic pessimisations.
19600         (func_get_automake_snippet, func_get_include_directive): Reduce code
19601         duplication.
19602         (func_modules_transitive_closure, func_modules_add_dummy,
19603         func_modules_notice, func_modules_to_filelist, func_add_file,
19604         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
19605         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
19606         func_create_testdir, func_create_megatestdir): Update documentation.
19607
19608 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19609
19610         * gnulib-tool (func_cache_lookup_module): Store the module name
19611         belonging to the cache variable; error out if two different
19612         module names map to the same cache variable name.
19613
19614 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19615
19616         gnulib-tool: Make caching optional.
19617         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
19618         Update matching short versions of --no-changelog.
19619         (func_usage): Update.
19620         (sed_extract_cache_prog): Renamed from ...
19621         (sed_extract_prog): ... this; revert to old extraction script.
19622         (func_get_description, func_get_status)
19623         (func_get_notice, func_get_applicability, func_get_filelist)
19624         (func_get_dependencies, func_get_autoconf_early_snippet)
19625         (func_get_autoconf_snippet, func_get_automake_snippet)
19626         (func_get_include_directive, func_get_link_directive)
19627         (func_get_license, func_get_maintainer): If $do_cache is false,
19628         use old, non-caching extraction scripts.
19629         Suggestion by Bruno Haible.
19630
19631 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19632
19633         gnulib-tool: cache module metainformation.
19634         * gnulib-tool (sed_extract_prog): Match newline before each
19635         header, and rewrite header to a shell variable suffix.
19636         (func_cache_var, func_cache_lookup_module): New functions,
19637         to turn a module name into a cache variable prefix, and to
19638         look up and cache module metainformation.
19639         (func_get_description, func_get_status)
19640         (func_get_notice, func_get_applicability, func_get_filelist)
19641         (func_get_dependencies, func_get_autoconf_early_snippet)
19642         (func_get_autoconf_snippet, func_get_automake_snippet)
19643         (func_get_include_directive, func_get_link_directive)
19644         (func_get_license, func_get_maintainer): Use
19645         func_cache_lookup_module.
19646
19647 2010-02-07  Bruno Haible  <bruno@clisp.org>
19648
19649         fnctl: Fix missing dependency.
19650         * modules/fcntl (Depends-on): Add getdtablesize.
19651         Reported by John W. Eaton <jwe@gnu.org>.
19652
19653 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
19654
19655         Argp: fix recognition of short alias options.
19656
19657         * lib/argp-parse.c (convert_options): Fix improper use of
19658         `|' between character values.
19659         * tests/test-argp.c (group1_option): New alias option
19660         --read (-r).
19661         (group1_parser): Special handling for 'r'.
19662         (test15): New test case.
19663         (test_fun): Add test15.
19664         * tests/test-argp-2.sh: Update expected --help and --usage
19665         outputs.
19666
19667 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
19668
19669         * tests/test-argp.c: Fix indentation.
19670
19671 2010-02-04  Eric Blake  <ebb9@byu.net>
19672
19673         gettimeofday: expose type of second argument
19674         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
19675         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
19676         * tests/test-gettimeofday.c: Use it to silence warning.
19677         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
19678         the issue.
19679
19680 2010-02-03  Jim Meyering  <meyering@redhat.com>
19681
19682         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
19683         * lib/regcomp.c (TYPE_SIGNED): Define.
19684         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
19685
19686         regcomp.c: avoid a new -Wshadow warning
19687         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
19688
19689 2010-02-01  Jim Meyering  <meyering@redhat.com>
19690
19691         removing useless parentheses in cpp #define directives
19692         For motivation, see commit c0221df4, "define STREQ(a,b)
19693         consistently, removing useless parentheses"
19694         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
19695         * lib/mountlist.c (MNT_IGNORE): Likewise.
19696         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
19697
19698 2010-02-01  Eric Blake  <ebb9@byu.net>
19699
19700         sys_time: use link-warning
19701         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
19702         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
19703         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
19704         * modules/sys_time (Depends-on): Add warn-on-use.
19705         (Makefile.am): Always build replacement.
19706         (configure.ac): Update substitutions.
19707         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
19708         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
19709         bother with SYS_TIME_H.
19710         * modules/gettimeofday (configure.ac): Declare indicator.
19711         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
19712         in use.
19713
19714         closein-tests: silence compiler warning
19715         * tests/test-closein.c (main): Ignore fread result.
19716         * modules/closein-tests (Depends-on): Add ignore-value.
19717
19718         tests: silence warning about system return
19719         * tests/test-areadlink-with-size.c (main): Ignore system result.
19720         * tests/test-areadlink.c (main): Likewise.
19721         * tests/test-areadlinkat-with-size.c (main): Likewise.
19722         * tests/test-areadlinkat.c (main): Likewise.
19723         * tests/test-canonicalize-lgpl.c (main): Likewise.
19724         * tests/test-canonicalize.c (main): Likewise.
19725         * tests/test-chown.c (main): Likewise.
19726         * tests/test-fchownat.c (main): Likewise.
19727         * tests/test-fdutimensat.c (main): Likewise.
19728         * tests/test-fstatat.c (main): Likewise.
19729         * tests/test-futimens.c (main): Likewise.
19730         * tests/test-lchown.c (main): Likewise.
19731         * tests/test-link.c (main): Likewise.
19732         * tests/test-linkat.c (main): Likewise.
19733         * tests/test-lstat.c (main): Likewise.
19734         * tests/test-mkdir.c (main): Likewise.
19735         * tests/test-mkdirat.c (main): Likewise.
19736         * tests/test-mkfifo.c (main): Likewise.
19737         * tests/test-mkfifoat.c (main): Likewise.
19738         * tests/test-mknod.c (main): Likewise.
19739         * tests/test-readlink.c (main): Likewise.
19740         * tests/test-remove.c (main): Likewise.
19741         * tests/test-rename.c (main): Likewise.
19742         * tests/test-renameat.c (main): Likewise.
19743         * tests/test-rmdir.c (main): Likewise.
19744         * tests/test-symlink.c (main): Likewise.
19745         * tests/test-symlinkat.c (main): Likewise.
19746         * tests/test-unlink.c (main): Likewise.
19747         * tests/test-unlinkat.c (main): Likewise.
19748         * tests/test-utimens.c (main): Likewise.
19749         * tests/test-utimensat.c (main): Likewise.
19750         * modules/areadlink-tests (Depends-on): Add ignore-value.
19751         * modules/areadlink-with-size-tests (Depends-on): Likewise.
19752         * modules/areadlinkat-tests (Depends-on): Likewise.
19753         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
19754         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
19755         * modules/canonicalize-tests (Depends-on): Likewise.
19756         * modules/chown-tests (Depends-on): Likewise.
19757         * modules/fdutimensat-tests (Depends-on): Likewise.
19758         * modules/futimens-tests (Depends-on): Likewise.
19759         * modules/lchown-tests (Depends-on): Likewise.
19760         * modules/link-tests (Depends-on): Likewise.
19761         * modules/linkat-tests (Depends-on): Likewise.
19762         * modules/lstat-tests (Depends-on): Likewise.
19763         * modules/mkdir-tests (Depends-on): Likewise.
19764         * modules/mkfifo-tests (Depends-on): Likewise.
19765         * modules/mkfifoat-tests (Depends-on): Likewise.
19766         * modules/mknod-tests (Depends-on): Likewise.
19767         * modules/openat-tests (Depends-on): Likewise.
19768         * modules/readlink-tests (Depends-on): Likewise.
19769         * modules/remove-tests (Depends-on): Likewise.
19770         * modules/rename-tests (Depends-on): Likewise.
19771         * modules/renameat-tests (Depends-on): Likewise.
19772         * modules/rmdir-tests (Depends-on): Likewise.
19773         * modules/symlink-tests (Depends-on): Likewise.
19774         * modules/symlinkat-tests (Depends-on): Likewise.
19775         * modules/unlink-tests (Depends-on): Likewise.
19776         * modules/utimens-tests (Depends-on): Likewise.
19777         * modules/utimensat-tests (Depends-on): Likewise.
19778
19779 2010-01-31  Bruno Haible  <bruno@clisp.org>
19780
19781         Perform the same test for many <math.h> functions.
19782         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
19783         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
19784         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
19785         of gl_MATHFUNC.
19786         * modules/acos (configure.ac): Likewise.
19787         * modules/asin (configure.ac): Likewise.
19788         * modules/atan (configure.ac): Likewise.
19789         * modules/atan2 (configure.ac): Likewise.
19790         * modules/cbrt (configure.ac): Likewise.
19791         * modules/copysign (configure.ac): Likewise.
19792         * modules/cos (configure.ac): Likewise.
19793         * modules/cosh (configure.ac): Likewise.
19794         * modules/erf (configure.ac): Likewise.
19795         * modules/erfc (configure.ac): Likewise.
19796         * modules/exp (configure.ac): Likewise.
19797         * modules/fmod (configure.ac): Likewise.
19798         * modules/hypot (configure.ac): Likewise.
19799         * modules/j0 (configure.ac): Likewise.
19800         * modules/j1 (configure.ac): Likewise.
19801         * modules/jn (configure.ac): Likewise.
19802         * modules/lgamma (configure.ac): Likewise.
19803         * modules/log (configure.ac): Likewise.
19804         * modules/log10 (configure.ac): Likewise.
19805         * modules/log1p (configure.ac): Likewise.
19806         * modules/pow (configure.ac): Likewise.
19807         * modules/remainder (configure.ac): Likewise.
19808         * modules/sin (configure.ac): Likewise.
19809         * modules/sinh (configure.ac): Likewise.
19810         * modules/tan (configure.ac): Likewise.
19811         * modules/tanh (configure.ac): Likewise.
19812         * modules/y0 (configure.ac): Likewise.
19813         * modules/y1 (configure.ac): Likewise.
19814         * modules/yn (configure.ac): Likewise.
19815         Suggested by Paolo Bonzini.
19816
19817 2010-01-31  Bruno Haible  <bruno@clisp.org>
19818
19819         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
19820
19821 2010-01-31  Bruno Haible  <bruno@clisp.org>
19822
19823         Work around getdelim() bug on FreeBSD 8.0.
19824         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
19825         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
19826         not work.
19827         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
19828         is 1.
19829         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
19830         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
19831         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
19832         a non-zero size.
19833         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
19834
19835 2010-01-31  Bruno Haible  <bruno@clisp.org>
19836
19837         Work around getline() bug on FreeBSD 8.0.
19838         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
19839         and a non-zero size.
19840         * tests/test-getline.c (main): Likewise.
19841         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
19842         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
19843
19844 2010-01-28  Eric Blake  <ebb9@byu.net>
19845
19846         regex: fix build failure
19847         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
19848         platforms.
19849
19850 2010-01-28  Jim Meyering  <meyering@redhat.com>
19851
19852         regex: do not ignore memory allocation failure
19853         * lib/regex_internal.c (create_cd_newstate): Detect
19854         re_node_set_init_copy failure.   Extracted from glibc commit
19855         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
19856
19857         regex: sync more white-space changes from libc
19858         * lib/regex_internal.c: White-space only changes.
19859         * lib/regexec.c: Likewise.
19860
19861         regex: add many uses of __attribute_warn_unused_result__
19862         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
19863         * lib/regexec.c: Likewise.
19864         Extracted from a messy glibc commit.
19865
19866         regcomp.c: spelling and merge-artifact from glibc
19867         * lib/regcomp.c: Merge remainder of glibc's
19868         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
19869
19870         regcomp.c: sync white-space changes from glibc
19871         * lib/regcomp.c: Merge to accommodate white space
19872         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
19873
19874         regcomp.c: do not ignore internal return values
19875         * lib/regcomp.c: Do not ignore internal return values.
19876         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
19877         but without its white-space changes and spelling fixes.
19878
19879         regex_internal.h: define __attribute_warn_unused_result__
19880         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
19881
19882         maint: add a syntax-check rule to check for vulnerable Makefile.in
19883         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
19884
19885 2010-01-27  Jim Meyering  <meyering@redhat.com>
19886
19887         ncftpput-ftp: clean up spaces
19888         * build-aux/ncftpput-ftp: Make Copyright line consistent.
19889         Remove trailing blanks.
19890
19891 2010-01-27  Simon Josefsson  <simon@josefsson.org>
19892
19893         * build-aux/git-version-gen: Fix copyright statement.
19894         * build-aux/gnupload: Likewise.
19895         * tests/test-arcfour.c: Likewise.
19896         * tests/test-arctwo.c: Likewise.
19897         * tests/test-count-one-bits.c: Likewise.
19898         * tests/test-crc.c: Likewise.
19899         * tests/test-des.c: Likewise.
19900         * tests/test-gc-arcfour.c: Likewise.
19901         * tests/test-gc-arctwo.c: Likewise.
19902         * tests/test-gc-des.c: Likewise.
19903         * tests/test-gc-hmac-md5.c: Likewise.
19904         * tests/test-gc-hmac-sha1.c: Likewise.
19905         * tests/test-gc-md2.c: Likewise.
19906         * tests/test-gc-md4.c: Likewise.
19907         * tests/test-gc-md5.c: Likewise.
19908         * tests/test-gc-pbkdf2-sha1.c: Likewise.
19909         * tests/test-gc-rijndael.c: Likewise.
19910         * tests/test-gc-sha1.c: Likewise.
19911         * tests/test-gc.c: Likewise.
19912         * tests/test-gethostname.c: Likewise.
19913         * tests/test-gettimeofday.c: Likewise.
19914         * tests/test-hash.c: Likewise.
19915         * tests/test-hmac-md5.c: Likewise.
19916         * tests/test-hmac-sha1.c: Likewise.
19917         * tests/test-md2.c: Likewise.
19918         * tests/test-md4.c: Likewise.
19919         * tests/test-md5.c: Likewise.
19920         * tests/test-memchr.c: Likewise.
19921         * tests/test-memchr2.c: Likewise.
19922         * tests/test-memcmp.c: Likewise.
19923         * tests/test-memmem.c: Likewise.
19924         * tests/test-memrchr.c: Likewise.
19925         * tests/test-rawmemchr.c: Likewise.
19926         * tests/test-read-file.c: Likewise.
19927         * tests/test-rijndael.c: Likewise.
19928         * tests/test-sockets.c: Likewise.
19929         * tests/test-strchrnul.c: Likewise.
19930         * tests/test-strstr.c: Likewise.
19931         * tests/test-strtod.c: Likewise.
19932         * build-aux/ncftpput-ftp: Likewise.
19933
19934 2010-01-26  Eric Blake  <ebb9@byu.net>
19935
19936         ignore-value: update recommended header name
19937         * modules/ignore-value (Include): Only use <> for headers that
19938         exist in glibc.
19939
19940 2010-01-26  Jim Meyering  <meyering@redhat.com>
19941
19942         test-userspec.c: avoid compiler warnings
19943         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
19944         and "initialization discards qualifiers..." warnings.
19945         Put the first "uid" in its own scope, and make char* members "const".
19946
19947 2010-01-25  Bruno Haible  <bruno@clisp.org>
19948
19949         gnulib-tool: Make warning diagnostics consistent.
19950         * gnulib-tool (func_warning): New function.
19951         Use it everywhere where gnulib-tool produces output to stderr and it is
19952         not a fatal error.
19953
19954 2010-01-25  Bruno Haible  <bruno@clisp.org>
19955
19956         Fix test dependencies.
19957         * modules/xstrtol-tests (Depends-on): Add inttypes.
19958         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
19959
19960 2010-01-25 Pádraig Brady <P@draigBrady.com>
19961
19962         syntax-check: detect incorrect boolean macro values in config.h
19963         * modules/maintainer-makefile (configure.ac): Parameterize the location
19964         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
19965         The logic is from Eric Blake and the location indicated by Jim Meyering.
19966         Note the more natural CONFIG_HEADER name is prohibited by automake
19967         for backwards compatibility reasons.
19968         * top/maint.mk (sc_Wundef_boolean): New rule.
19969
19970 2010-01-25  Jim Meyering  <meyering@redhat.com>
19971
19972         bootstrap: detect MacOS 10.6's shasum, too
19973         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
19974         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
19975
19976 2010-01-23  Jim Meyering  <meyering@redhat.com>
19977
19978         xstrtoll: new module
19979         * modules/xstrtoll: New file.
19980         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
19981         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
19982         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
19983         ./configure fails if you use this module and lack "long long".
19984         * modules/xstrtoll-tests: New module.
19985         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
19986         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
19987         new init.sh-based test framework.
19988
19989 2010-01-24  Bruno Haible  <bruno@clisp.org>
19990
19991         Tests for module 'yn'.
19992         * modules/yn-tests: New file.
19993         * tests/test-yn.c: New file.
19994
19995         Tests for module 'y1'.
19996         * modules/y1-tests: New file.
19997         * tests/test-y1.c: New file.
19998
19999         Tests for module 'y0'.
20000         * modules/y0-tests: New file.
20001         * tests/test-y0.c: New file.
20002
20003         Tests for module 'tanh'.
20004         * modules/tanh-tests: New file.
20005         * tests/test-tanh.c: New file.
20006
20007         Tests for module 'tan'.
20008         * modules/tan-tests: New file.
20009         * tests/test-tan.c: New file.
20010
20011         Tests for module 'sqrt'.
20012         * modules/sqrt-tests: New file.
20013         * tests/test-sqrt.c: New file.
20014
20015         Tests for module 'sinh'.
20016         * modules/sinh-tests: New file.
20017         * tests/test-sinh.c: New file.
20018
20019         Tests for module 'sin'.
20020         * modules/sin-tests: New file.
20021         * tests/test-sin.c: New file.
20022
20023         Tests for module 'rint'.
20024         * modules/rint-tests: New file.
20025         * tests/test-rint.c: New file.
20026
20027         Tests for module 'remainder'.
20028         * modules/remainder-tests: New file.
20029         * tests/test-remainder.c: New file.
20030
20031         Tests for module 'pow'.
20032         * modules/pow-tests: New file.
20033         * tests/test-pow.c: New file.
20034
20035         Tests for module 'nextafter'.
20036         * modules/nextafter-tests: New file.
20037         * tests/test-nextafter.c: New file.
20038
20039         Tests for module 'modf'.
20040         * modules/modf-tests: New file.
20041         * tests/test-modf.c: New file.
20042
20043         Tests for module 'logb'.
20044         * modules/logb-tests: New file.
20045         * tests/test-logb.c: New file.
20046
20047         Tests for module 'log1p'.
20048         * modules/log1p-tests: New file.
20049         * tests/test-log1p.c: New file.
20050
20051         Tests for module 'log10'.
20052         * modules/log10-tests: New file.
20053         * tests/test-log10.c: New file.
20054
20055         Tests for module 'log'.
20056         * modules/log-tests: New file.
20057         * tests/test-log.c: New file.
20058
20059         Tests for module 'lgamma'.
20060         * modules/lgamma-tests: New file.
20061         * tests/test-lgamma.c: New file.
20062
20063         Tests for module 'ldexp'.
20064         * modules/ldexp-tests: New file.
20065         * tests/test-ldexp.c: New file.
20066
20067         Tests for module 'jn'.
20068         * modules/jn-tests: New file.
20069         * tests/test-jn.c: New file.
20070
20071         Tests for module 'j1'.
20072         * modules/j1-tests: New file.
20073         * tests/test-j1.c: New file.
20074
20075         Tests for module 'j0'.
20076         * modules/j0-tests: New file.
20077         * tests/test-j0.c: New file.
20078
20079         Tests for module 'hypot'.
20080         * modules/hypot-tests: New file.
20081         * tests/test-hypot.c: New file.
20082
20083         Tests for module 'fmod'.
20084         * modules/fmod-tests: New file.
20085         * tests/test-fmod.c: New file.
20086
20087         Tests for module 'fabs'.
20088         * modules/fabs-tests: New file.
20089         * tests/test-fabs.c: New file.
20090
20091         Tests for module 'exp'.
20092         * modules/exp-tests: New file.
20093         * tests/test-exp.c: New file.
20094
20095         Tests for module 'erfc'.
20096         * modules/erfc-tests: New file.
20097         * tests/test-erfc.c: New file.
20098
20099         Tests for module 'erf'.
20100         * modules/erf-tests: New file.
20101         * tests/test-erf.c: New file.
20102
20103         Tests for module 'cosh'.
20104         * modules/cosh-tests: New file.
20105         * tests/test-cosh.c: New file.
20106
20107         Tests for module 'cos'.
20108         * modules/cos-tests: New file.
20109         * tests/test-cos.c: New file.
20110
20111         Tests for module 'copysign'.
20112         * modules/copysign-tests: New file.
20113         * tests/test-copysign.c: New file.
20114
20115         Tests for module 'cbrt'.
20116         * modules/cbrt-tests: New file.
20117         * tests/test-cbrt.c: New file.
20118
20119         Tests for module 'atan2'.
20120         * modules/atan2-tests: New file.
20121         * tests/test-atan2.c: New file.
20122
20123         Tests for module 'atan'.
20124         * modules/atan-tests: New file.
20125         * tests/test-atan.c: New file.
20126
20127         Tests for module 'asin'.
20128         * modules/asin-tests: New file.
20129         * tests/test-asin.c: New file.
20130
20131         Tests for module 'acos'.
20132         * modules/acos-tests: New file.
20133         * tests/test-acos.c: New file.
20134
20135 2010-01-24  Bruno Haible  <bruno@clisp.org>
20136
20137         Fix tests for common <math.h> functions.
20138         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
20139         code snippet that references the function pointer, rather than merely
20140         calling the function. Substitute the FUNC_LIBM variable.
20141         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
20142         * modules/acos (configure.ac): Likewise.
20143         * modules/asin (configure.ac): Likewise.
20144         * modules/atan (configure.ac): Likewise.
20145         * modules/atan2 (configure.ac): Likewise.
20146         * modules/cbrt (configure.ac): Likewise.
20147         * modules/copysign (configure.ac): Likewise.
20148         * modules/cos (configure.ac): Likewise.
20149         * modules/cosh (configure.ac): Likewise.
20150         * modules/erf (configure.ac): Likewise.
20151         * modules/erfc (configure.ac): Likewise.
20152         * modules/exp (configure.ac): Likewise.
20153         * modules/fabs (configure.ac): Likewise.
20154         * modules/fmod (configure.ac): Likewise.
20155         * modules/hypot (configure.ac): Likewise.
20156         * modules/j0 (configure.ac): Likewise.
20157         * modules/j1 (configure.ac): Likewise.
20158         * modules/jn (configure.ac): Likewise.
20159         * modules/ldexp (configure.ac): Likewise.
20160         * modules/lgamma (configure.ac): Likewise.
20161         * modules/log (configure.ac): Likewise.
20162         * modules/log10 (configure.ac): Likewise.
20163         * modules/log1p (configure.ac): Likewise.
20164         * modules/logb (configure.ac): Likewise.
20165         * modules/modf (configure.ac): Likewise.
20166         * modules/nextafter (configure.ac): Likewise.
20167         * modules/pow (configure.ac): Likewise.
20168         * modules/remainder (configure.ac): Likewise.
20169         * modules/rint (configure.ac): Likewise.
20170         * modules/sin (configure.ac): Likewise.
20171         * modules/sinh (configure.ac): Likewise.
20172         * modules/tan (configure.ac): Likewise.
20173         * modules/tanh (configure.ac): Likewise.
20174         * modules/y0 (configure.ac): Likewise.
20175         * modules/y1 (configure.ac): Likewise.
20176         * modules/yn (configure.ac): Likewise.
20177
20178 2010-01-24  Bruno Haible  <bruno@clisp.org>
20179
20180         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
20181         * tests/test-acosl.c (x): New variable.
20182         (main): Store argument in x and fetch it from x.
20183         * tests/test-asinl.c (x): New variable.
20184         (main): Store argument in x and fetch it from x.
20185         * tests/test-atanl.c (x): New variable.
20186         (main): Store argument in x and fetch it from x.
20187         * tests/test-cosl.c (x): New variable.
20188         (main): Store argument in x and fetch it from x.
20189         * tests/test-expl.c (x): New variable.
20190         (main): Store argument in x and fetch it from x.
20191         * tests/test-logl.c (x): New variable.
20192         (main): Store argument in x and fetch it from x.
20193         * tests/test-sinl.c (x): New variable.
20194         (main): Store argument in x and fetch it from x.
20195         * tests/test-sqrtl.c (x): New variable.
20196         (main): Store argument in x and fetch it from x.
20197         * tests/test-tanl.c (x): New variable.
20198         (main): Store argument in x and fetch it from x.
20199
20200 2010-01-24  Bruno Haible  <bruno@clisp.org>
20201
20202         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
20203         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
20204         assignments to the initial TESTS_ENVIRONMENT.
20205         * doc/gnulib.texi (Unit test modules): Document it.
20206         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
20207         TESTS_ENVIRONMENT.
20208         * modules/btowc-tests (Makefile.am): Likewise.
20209         * modules/c-stack-tests (Makefile.am): Likewise.
20210         * modules/c-strcase-tests (Makefile.am): Likewise.
20211         * modules/copy-file-tests (Makefile.am): Likewise.
20212         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
20213         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
20214         * modules/mbrtowc-tests (Makefile.am): Likewise.
20215         * modules/mbscasecmp-tests (Makefile.am): Likewise.
20216         * modules/mbscasestr-tests (Makefile.am): Likewise.
20217         * modules/mbschr-tests (Makefile.am): Likewise.
20218         * modules/mbscspn-tests (Makefile.am): Likewise.
20219         * modules/mbsinit-tests (Makefile.am): Likewise.
20220         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
20221         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
20222         * modules/mbspbrk-tests (Makefile.am): Likewise.
20223         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
20224         * modules/mbsrchr-tests (Makefile.am): Likewise.
20225         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
20226         * modules/mbsspn-tests (Makefile.am): Likewise.
20227         * modules/mbsstr-tests (Makefile.am): Likewise.
20228         * modules/nl_langinfo-tests (Makefile.am): Likewise.
20229         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
20230         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
20231         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
20232         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
20233         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
20234         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
20235         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
20236         * modules/wcrtomb-tests (Makefile.am): Likewise.
20237         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
20238         * modules/wcsrtombs-tests (Makefile.am): Likewise.
20239         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
20240         assignments from TESTS_ENVIRONMENT.
20241         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
20242         augmentation.
20243         * modules/argp-version-etc-tests (Makefile.am): Likewise.
20244         * modules/atexit-tests (Makefile.am): Likewise.
20245         * modules/binary-io-tests (Makefile.am): Likewise.
20246         * modules/closein-tests (Makefile.am): Likewise.
20247         * modules/dprintf-posix-tests (Makefile.am): Likewise.
20248         * modules/exclude-tests (Makefile.am): Likewise.
20249         * modules/fflush-tests (Makefile.am): Likewise.
20250         * modules/fpending-tests (Makefile.am): Likewise.
20251         * modules/fprintf-posix-tests (Makefile.am): Likewise.
20252         * modules/freadahead-tests (Makefile.am): Likewise.
20253         * modules/freadptr-tests (Makefile.am): Likewise.
20254         * modules/freadseek-tests (Makefile.am): Likewise.
20255         * modules/fseek-tests (Makefile.am): Likewise.
20256         * modules/fseeko-tests (Makefile.am): Likewise.
20257         * modules/ftell-tests (Makefile.am): Likewise.
20258         * modules/ftello-tests (Makefile.am): Likewise.
20259         * modules/idpriv-drop-tests (Makefile.am): Likewise.
20260         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
20261         * modules/lseek-tests (Makefile.am): Likewise.
20262         * modules/parse-duration-tests (Makefile.am): Likewise.
20263         * modules/perror-tests (Makefile.am): Likewise.
20264         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
20265         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
20266         * modules/pipe-tests (Makefile.am): Likewise.
20267         * modules/pread-tests (Makefile.am): Likewise.
20268         * modules/printf-posix-tests (Makefile.am): Likewise.
20269         * modules/select-tests (Makefile.am): Likewise.
20270         * modules/sigpipe-tests (Makefile.am): Likewise.
20271         * modules/tsearch-tests (Makefile.am): Likewise.
20272         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
20273         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
20274         * modules/uniname/uniname-tests (Makefile.am): Likewise.
20275         * modules/uniwidth/width-tests (Makefile.am): Likewise.
20276         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
20277         * modules/version-etc-tests (Makefile.am): Likewise.
20278         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
20279         * modules/vprintf-posix-tests (Makefile.am): Likewise.
20280         * modules/xalloc-die-tests (Makefile.am): Likewise.
20281         * modules/xprintf-posix-tests (Makefile.am): Likewise.
20282         * modules/xstrtoimax-tests (Makefile.am): Likewise.
20283         * modules/xstrtol-tests (Makefile.am): Likewise.
20284         * modules/xstrtoumax-tests (Makefile.am): Likewise.
20285         * modules/yesno-tests (Makefile.am): Likewise.
20286         Suggested by Jim Meyering.
20287
20288 2010-01-24  Bruno Haible  <bruno@clisp.org>
20289
20290         More documentation.
20291         * doc/gnulib.texi (Writing modules): New chapter.
20292         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
20293         the new chapter.
20294
20295 2010-01-24  Jim Meyering  <meyering@redhat.com>
20296
20297         maint.mk: do not prepend "./" after filtering
20298         * top/maint.mk (_prepend_srcdir_prefix): New variable
20299         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
20300         "./" when $(srcdir) is ".".
20301
20302         define STREQ(a,b) consistently, removing useless parentheses
20303         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
20304         since the only risk is that "a" or "b" contains an unparenthesized
20305         comma, but if either did that, STREQ would have 3 or more arguments.
20306         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
20307         * lib/fts.c (STREQ): Remove unnecessary parentheses.
20308         * lib/hash-triple.c (STREQ): Likewise.
20309         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
20310         * lib/getugroups.c (STREQ): Likewise.
20311
20312 2010-01-23  Jim Meyering  <meyering@redhat.com>
20313
20314         maint.mk: fix syntax-check in a non-srcdir build directory
20315         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
20316         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
20317
20318 2010-01-22  Jim Meyering  <meyering@redhat.com>
20319
20320         userspec: add unit tests
20321         * tests/test-userspec.c: New file.
20322         * modules/userspec-tests: Likewise.
20323
20324 2010-01-21  Jim Meyering  <meyering@redhat.com>
20325
20326         maint.mk: handle source file names containing "." robustly
20327         * top/maint.mk (_dot_escaped_srcdir): Define.
20328         (VC_LIST): Use it in LHS of sed substitution.
20329
20330 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
20331
20332         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
20333         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
20334         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
20335         from a non-srcdir build.
20336
20337 2010-01-20  Eric Blake  <ebb9@byu.net>
20338
20339         warn-on-use: use instead of link-warning
20340         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
20341         * modules/unistd (Depends-on, Makefile.am): Likewise.
20342         * modules/arpa_inet (Depends-on): Replace link-warning with
20343         warn-on-use.
20344         (Makefile.am): Update rules accordingly.
20345         * modules/ctype (Depends-on, Makefile.am): Likewise.
20346         * modules/dirent (Depends-on, Makefile.am): Likewise.
20347         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
20348         * modules/inttypes (Depends-on, Makefile.am): Likewise.
20349         * modules/langinfo (Depends-on, Makefile.am): Likewise.
20350         * modules/locale (Depends-on, Makefile.am): Likewise.
20351         * modules/math (Depends-on, Makefile.am): Likewise.
20352         * modules/search (Depends-on, Makefile.am): Likewise.
20353         * modules/signal (Depends-on, Makefile.am): Likewise.
20354         * modules/spawn (Depends-on, Makefile.am): Likewise.
20355         * modules/stdlib (Depends-on, Makefile.am): Likewise.
20356         * modules/string (Depends-on, Makefile.am): Likewise.
20357         * modules/strings (Depends-on, Makefile.am): Likewise.
20358         * modules/sys_file (Depends-on, Makefile.am): Likewise.
20359         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
20360         * modules/sys_select (Depends-on, Makefile.am): Likewise.
20361         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
20362         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
20363         * modules/sys_times (Depends-on, Makefile.am): Likewise.
20364         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
20365         * modules/wchar (Depends-on, Makefile.am): Likewise.
20366         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
20367         should be poisoned.
20368         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
20369         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
20370         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
20371         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
20372         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
20373         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
20374         * m4/math_h.m4 (gl_MATH_H): Likewise.
20375         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
20376         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
20377         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
20378         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
20379         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
20380         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
20381         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
20382         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
20383         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
20384         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20385         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
20386         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
20387         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20388         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
20389         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
20390         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
20391         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
20392         GL_LINK_WARNING.
20393         * lib/ctype.in.h: Likewise.
20394         * lib/dirent.in.h: Likewise.
20395         * lib/fcntl.in.h: Likewise.
20396         * lib/inttypes.in.h: Likewise.
20397         * lib/langinfo.in.h: Likewise.
20398         * lib/locale.in.h: Likewise.
20399         * lib/math.in.h: Likewise.
20400         * lib/search.in.h: Likewise.
20401         * lib/signal.in.h: Likewise.
20402         * lib/spawn.in.h: Likewise.
20403         * lib/stdio.in.h: Likewise.
20404         * lib/stdlib.in.h: Likewise.
20405         * lib/string.in.h: Likewise.
20406         * lib/strings.in.h: Likewise.
20407         * lib/sys_file.in.h: Likewise.
20408         * lib/sys_ioctl.in.h: Likewise.
20409         * lib/sys_select.in.h: Likewise.
20410         * lib/sys_socket.in.h: Likewise.
20411         * lib/sys_stat.in.h: Likewise.
20412         * lib/sys_times.in.h: Likewise.
20413         * lib/sys_utsname.in.h: Likewise.
20414         * lib/unistd.in.h: Likewise.
20415         * lib/wchar.in.h: Likewise.
20416
20417 2010-01-20  Bruno Haible  <bruno@clisp.org>
20418
20419         Avoid duplicate -lm.
20420         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
20421         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
20422         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
20423         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
20424         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
20425         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
20426         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
20427         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
20428         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
20429         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
20430         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
20431         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
20432         Reported by Paolo Bonzini.
20433
20434 2010-01-19  Bruno Haible  <bruno@clisp.org>
20435
20436         langinfo, nl_langinfo: Relicense under LGPLv2+.
20437         * modules/langinfo (License): Change to LGPLv2+.
20438         * modules/nl_langinfo (License): Likewise.
20439         Patch by David Lutterkort <lutter@redhat.com>.
20440
20441 2010-01-19  Bruno Haible  <bruno@clisp.org>
20442
20443         Avoid compilation error with cc on OSF/1 5.1.
20444         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
20445         statement, not before.
20446         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20447
20448 2010-01-18  Bruno Haible  <bruno@clisp.org>
20449
20450         Avoid a link error due to the __printf__ symbol.
20451         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
20452         and 2.6.x.
20453         (__format__, __printf__): Remove definitions.
20454         * lib/argp-fmtstream.h: Likewise.
20455         * lib/argp.h: Likewise.
20456         * lib/error.h: Likewise.
20457         * lib/vasnprintf.h: Likewise.
20458         * lib/xprintf.h: Likewise.
20459         * lib/xvasprintf.h: Likewise.
20460         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20461
20462 2010-01-18  Bruno Haible  <bruno@clisp.org>
20463
20464         Tests for module 'tanl'.
20465         * modules/tanl-tests: New file.
20466         * tests/test-tanl.c: New file.
20467
20468         Tests for module 'sqrtl'.
20469         * modules/sqrtl-tests: New file.
20470         * tests/test-sqrtl.c: New file.
20471
20472         Tests for module 'sinl'.
20473         * modules/sinl-tests: New file.
20474         * tests/test-sinl.c: New file.
20475
20476         Tests for module 'logl'.
20477         * modules/logl-tests: New file.
20478         * tests/test-logl.c: New file.
20479
20480         Tests for module 'expl'.
20481         * modules/expl-tests: New file.
20482         * tests/test-expl.c: New file.
20483
20484         Tests for module 'cosl'.
20485         * modules/cosl-tests: New file.
20486         * tests/test-cosl.c: New file.
20487
20488         Tests for module 'atanl'.
20489         * modules/atanl-tests: New file.
20490         * tests/test-atanl.c: New file.
20491
20492         Tests for module 'asinl'.
20493         * modules/asinl-tests: New file.
20494         * tests/test-asinl.c: New file.
20495
20496         Tests for module 'acosl'.
20497         * modules/acosl-tests: New file.
20498         * tests/test-acosl.c: New file.
20499
20500         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
20501         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
20502         tanl): Use the standard gnulib idiom.
20503         * lib/cosl.c: Don't include trigl.c and sincosl.c.
20504         * lib/sinl.c: Likewise.
20505         * lib/tanl.c: Don't include trigl.c.
20506         (kernel_tanl): Make static.
20507         * lib/sincosl.c: Include trigl.h first.
20508         * lib/trigl.c: Likewise.
20509         * m4/acosl.m4: New file.
20510         * m4/asinl.m4: New file.
20511         * m4/atanl.m4: New file.
20512         * m4/cosl.m4: New file.
20513         * m4/expl.m4: New file.
20514         * m4/logl.m4: New file.
20515         * m4/sinl.m4: New file.
20516         * m4/sqrtl.m4: New file.
20517         * m4/tanl.m4: New file.
20518         * m4/mathl.m4: Remove file.
20519         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
20520         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
20521         Don't initialize GNULIB_MATHL.
20522         * modules/acosl: New file.
20523         * modules/asinl: New file.
20524         * modules/atanl: New file.
20525         * modules/cosl: New file.
20526         * modules/expl: New file.
20527         * modules/logl: New file.
20528         * modules/sinl: New file.
20529         * modules/sqrtl: New file.
20530         * modules/tanl: New file.
20531         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
20532         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
20533         substitute GNULIB_MATHL.
20534         * modules/mathl: Rewritten.
20535         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
20536         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
20537         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
20538         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
20539         * doc/posix-functions/expl.texi: Mention the 'expl' module.
20540         * doc/posix-functions/logl.texi: Mention the 'logl' module.
20541         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
20542         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
20543         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
20544
20545 2010-01-18  Bruno Haible  <bruno@clisp.org>
20546
20547         sqrt: Make gl_FUNC_SQRT requirable.
20548         * m4/sqrt.m4: New file.
20549         * modules/sqrt (Files): Add it.
20550         (configure.ac): Invoke gl_FUNC_SQRT.
20551
20552 2010-01-18  Bruno Haible  <bruno@clisp.org>
20553
20554         New modules for common <math.h> functions.
20555         * m4/mathfunc.m4: New file.
20556         * modules/acos: New file.
20557         * modules/asin: New file.
20558         * modules/atan: New file.
20559         * modules/atan2: New file.
20560         * modules/cbrt: New file.
20561         * modules/copysign: New file.
20562         * modules/cos: New file.
20563         * modules/cosh: New file.
20564         * modules/erf: New file.
20565         * modules/erfc: New file.
20566         * modules/exp: New file.
20567         * modules/fabs: New file.
20568         * modules/fmod: New file.
20569         * modules/hypot: New file.
20570         * modules/j0: New file.
20571         * modules/j1: New file.
20572         * modules/jn: New file.
20573         * modules/ldexp: New file.
20574         * modules/lgamma: New file.
20575         * modules/log: New file.
20576         * modules/log10: New file.
20577         * modules/log1p: New file.
20578         * modules/logb: New file.
20579         * modules/modf: New file.
20580         * modules/nextafter: New file.
20581         * modules/pow: New file.
20582         * modules/remainder: New file.
20583         * modules/rint: New file.
20584         * modules/sin: New file.
20585         * modules/sinh: New file.
20586         * modules/sqrt: New file.
20587         * modules/tan: New file.
20588         * modules/tanh: New file.
20589         * modules/y0: New file.
20590         * modules/y1: New file.
20591         * modules/yn: New file.
20592         * doc/posix-functions/acos.texi: Mention the 'acos' module.
20593         * doc/posix-functions/asin.texi: Mention the 'asin' module.
20594         * doc/posix-functions/atan.texi: Mention the 'atan' module.
20595         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
20596         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
20597         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
20598         * doc/posix-functions/cos.texi: Mention the 'cos' module.
20599         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
20600         * doc/posix-functions/erf.texi: Mention the 'erf' module.
20601         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
20602         * doc/posix-functions/exp.texi: Mention the 'exp' module.
20603         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
20604         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
20605         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
20606         * doc/posix-functions/j0.texi: Mention the 'j0' module.
20607         * doc/posix-functions/j1.texi: Mention the 'j1' module.
20608         * doc/posix-functions/jn.texi: Mention the 'jn' module.
20609         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
20610         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
20611         * doc/posix-functions/log.texi: Mention the 'log' module.
20612         * doc/posix-functions/log10.texi: Mention the 'log10' module.
20613         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
20614         * doc/posix-functions/logb.texi: Mention the 'logb' module.
20615         * doc/posix-functions/modf.texi: Mention the 'modf' module.
20616         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
20617         * doc/posix-functions/pow.texi: Mention the 'pow' module.
20618         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
20619         * doc/posix-functions/rint.texi: Mention the 'rint' module.
20620         * doc/posix-functions/sin.texi: Mention the 'sin' module.
20621         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
20622         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
20623         * doc/posix-functions/tan.texi: Mention the 'tan' module.
20624         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
20625         * doc/posix-functions/y0.texi: Mention the 'y0' module.
20626         * doc/posix-functions/y1.texi: Mention the 'y1' module.
20627         * doc/posix-functions/yn.texi: Mention the 'yn' module.
20628
20629 2010-01-18  Jim Meyering  <meyering@redhat.com>
20630
20631         ignore-value: relax license to LGPLv2+
20632         * modules/ignore-value (License): Relax to LGPLv2+.
20633
20634         getdate: don't leak when TZ contains two or more '"'s
20635         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
20636         double quote in TZ after the first one.
20637
20638         readtokens: do not leak internal token_lengths buffer
20639         * lib/readtokens.c (readtokens): Free the local, lengths,
20640         when the supplied "token_lengths" parameter is NULL.
20641
20642 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20643
20644         Fix a couple of missing LIBTHREAD link failures on AIX.
20645         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
20646         $(LIBTHREAD).
20647         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
20648
20649         Link test-poll against INET_PTON_LIB.
20650         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
20651         for inet_pton on Solaris 10.
20652
20653 2010-01-17  Bruno Haible  <bruno@clisp.org>
20654
20655         unistdio/*-sprintf: Fix typo in module description.
20656         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
20657         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
20658         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
20659         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
20660         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
20661         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
20662         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
20663         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20664
20665 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20666
20667         gnulib-tool: fix filelist for AIX, HP-UX ksh.
20668         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
20669         variables in shell case patterns, for AIX and HP-UX ksh.
20670
20671         Split large sed scripts, for HP-UX sed.
20672         * modules/stdio: Split sed scripts around 50 sed commands,
20673         to avoid HP-UX limit of 99 commands, in the near future.
20674         * modules/string: Likewise.
20675         * modules/unistd: Likewise.
20676
20677         gnulib-tool: avoid writing in the current directory.
20678         * gnulib-tool (func_emit_lib_Makefile_am)
20679         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
20680         not in the current directory, so concurrent gnulib-tool
20681         instances do not interfere.
20682
20683 2010-01-16  Jim Meyering  <meyering@redhat.com>
20684
20685         doc: update users.txt
20686         * users.txt: Add grep.
20687         (diffutils, gzip): Update URLs.
20688
20689 2010-01-12  Bruno Haible  <bruno@clisp.org>
20690
20691         posix_spawn: Avoid test failure on Cygwin.
20692         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
20693         characters.
20694         Reported by Simon Josefsson.
20695
20696 2010-01-12  Bruno Haible  <bruno@clisp.org>
20697
20698         * tests/test-cond.c (main): When skipping the test, show the reason.
20699
20700 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20701
20702         * lib/striconv.c (str_cd_iconv): Avoid if before free.
20703
20704 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20705
20706         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
20707         VC_LIST_ALWAYS_EXCLUDE_REGEX.
20708
20709 2010-01-12  Eric Blake  <ebb9@byu.net>
20710
20711         build: guarantee AS_VAR_IF
20712         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
20713         (gl_AS_VAR_IF): Move...
20714         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
20715         Reported by Simon Josefsson.
20716
20717 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20718
20719         * lib/stdio.in.h: Fix typo.
20720
20721 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20722
20723         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
20724         libgpg-error.
20725
20726 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20727
20728         * tests/test-xalloc-die.sh: Use $EXEEXT.
20729
20730 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20731             Bruno Haible  <bruno@clisp.org>
20732
20733         getlogin, getlogin_r: Avoid test failure.
20734         * tests/test-getlogin.c: Include <stdio.h>.
20735         (main): Skip the test when the function fails because stdin is not a
20736         tty.
20737         * tests/test-getlogin_r.c: Include <stdio.h>.
20738         (main): Skip the test when the function fails because stdin is not a
20739         tty.
20740
20741 2010-01-11  Eric Blake  <ebb9@byu.net>
20742
20743         tests: avoid more large file warnings
20744         * tests/test-fflush.c: Avoid warning about ftell use.
20745         * tests/test-fseek.c: Avoid warning about fseek use.
20746
20747 2010-01-10  Bruno Haible  <bruno@clisp.org>
20748
20749         nproc: Work better on Linux when /proc and /sys are not mounted.
20750         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
20751         as lower bound when, on glibc/Linux systems,
20752         sysconf (_SC_NPROCESSORS_CONF) returns 1.
20753         Suggested by Pádraig Brady <P@draigbrady.com>.
20754         Reported by Dmitry V. Levin <ldv@altlinux.org>.
20755
20756         nproc: Refactor.
20757         * lib/nproc.c (num_processors_via_affinity_mask): New function,
20758         extracted from num_processors.
20759         (num_processors): Call it.
20760
20761 2010-01-11  Jim Meyering  <meyering@redhat.com>
20762
20763         utimecmp: avoid new warning from upcoming gcc-4.5.0
20764         * lib/utimecmp.c (BILLION): Define using #define rather than an
20765         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
20766
20767 2010-01-11  Eric Blake  <ebb9@byu.net>
20768
20769         math: add portability warnings for classification macros
20770         * modules/math (Depends-on): Add warn-on-use.
20771         (Makefile.am): Provide new substitutions.
20772         * m4/math_h.m4 (gl_MATH_H): Require inline.
20773         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
20774         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
20775         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
20776         implement warnings.
20777
20778         unistd: warn on use of environ without module
20779         * modules/unistd (Depends-on): Add warn-on-use.
20780         (Makefile.am): Provide new substitutions.
20781         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
20782         * lib/unistd.in.h (environ): Wrap with a warning helper function.
20783
20784         stdio: warn on suspicious uses
20785         * modules/stdio (Depends-on): Add warn-on-use.
20786         (Makefile.am): Provide new substitutions.
20787         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
20788         fseeko.
20789         * lib/stdio.in.h (gets): Always warn on use.
20790         (fseek, ftell): Adjust when warnings are issued, and honor
20791         _GL_NO_LARGE_FILES as a way to silence the warning.
20792         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
20793         any warning about large file offsets.
20794         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
20795         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
20796         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
20797         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
20798         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
20799         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
20800         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
20801         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
20802
20803         warn-on-use: new module
20804         * modules/warn-on-use: New file.
20805         * build-aux/warn-on-use.h: Likewise.
20806         * m4/warn-on-use.m4: Likewise.
20807         * MODULES.html.sh (Support for building): Mention it.
20808
20809 2010-01-10  Bruno Haible  <bruno@clisp.org>
20810
20811         Tests for module 'unistr/u32-strdup'.
20812         * modules/unistr/u32-strdup-tests: New file.
20813         * tests/unistr/test-u32-strdup.c: New file.
20814
20815         Tests for module 'unistr/u16-strdup'.
20816         * modules/unistr/u16-strdup-tests: New file.
20817         * tests/unistr/test-u16-strdup.c: New file.
20818
20819         Tests for module 'unistr/u8-strdup'.
20820         * modules/unistr/u8-strdup-tests: New file.
20821         * tests/unistr/test-u8-strdup.c: New file.
20822         * tests/unistr/test-strdup.h: New file.
20823
20824         Tests for module 'unistr/u32-strncmp'.
20825         * modules/unistr/u32-strncmp-tests: New file.
20826         * tests/unistr/test-u32-strncmp.c: New file.
20827
20828         Tests for module 'unistr/u16-strncmp'.
20829         * modules/unistr/u16-strncmp-tests: New file.
20830         * tests/unistr/test-u16-strncmp.c: New file.
20831
20832         Tests for module 'unistr/u8-strncmp'.
20833         * modules/unistr/u8-strncmp-tests: New file.
20834         * tests/unistr/test-u8-strncmp.c: New file.
20835         * tests/unistr/test-strncmp.h: New file.
20836
20837         Tests for module 'unistr/u32-strcoll'.
20838         * modules/unistr/u32-strcoll-tests: New file.
20839         * tests/unistr/test-u32-strcoll.c: New file.
20840
20841         Tests for module 'unistr/u16-strcoll'.
20842         * modules/unistr/u16-strcoll-tests: New file.
20843         * tests/unistr/test-u16-strcoll.c: New file.
20844
20845         Tests for module 'unistr/u8-strcoll'.
20846         * modules/unistr/u8-strcoll-tests: New file.
20847         * tests/unistr/test-u8-strcoll.c: New file.
20848
20849         Tests for module 'unistr/u32-strcmp'.
20850         * modules/unistr/u32-strcmp-tests: New file.
20851         * tests/unistr/test-u32-strcmp.c: New file.
20852         * tests/unistr/test-u32-strcmp.h: New file.
20853
20854         Tests for module 'unistr/u16-strcmp'.
20855         * modules/unistr/u16-strcmp-tests: New file.
20856         * tests/unistr/test-u16-strcmp.c: New file.
20857         * tests/unistr/test-u16-strcmp.h: New file.
20858
20859         Tests for module 'unistr/u8-strcmp'.
20860         * modules/unistr/u8-strcmp-tests: New file.
20861         * tests/unistr/test-u8-strcmp.c: New file.
20862         * tests/unistr/test-u8-strcmp.h: New file.
20863         * tests/unistr/test-strcmp.h: New file.
20864
20865         Tests for module 'unistr/u32-strncat'.
20866         * modules/unistr/u32-strncat-tests: New file.
20867         * tests/unistr/test-u32-strncat.c: New file.
20868
20869         Tests for module 'unistr/u16-strncat'.
20870         * modules/unistr/u16-strncat-tests: New file.
20871         * tests/unistr/test-u16-strncat.c: New file.
20872
20873         Tests for module 'unistr/u8-strncat'.
20874         * modules/unistr/u8-strncat-tests: New file.
20875         * tests/unistr/test-u8-strncat.c: New file.
20876         * tests/unistr/test-strncat.h: New file.
20877
20878         Tests for module 'unistr/u32-strcat'.
20879         * modules/unistr/u32-strcat-tests: New file.
20880         * tests/unistr/test-u32-strcat.c: New file.
20881
20882         Tests for module 'unistr/u16-strcat'.
20883         * modules/unistr/u16-strcat-tests: New file.
20884         * tests/unistr/test-u16-strcat.c: New file.
20885
20886         Tests for module 'unistr/u8-strcat'.
20887         * modules/unistr/u8-strcat-tests: New file.
20888         * tests/unistr/test-u8-strcat.c: New file.
20889         * tests/unistr/test-strcat.h: New file.
20890
20891         Tests for module 'unistr/u32-stpncpy'.
20892         * modules/unistr/u32-stpncpy-tests: New file.
20893         * tests/unistr/test-u32-stpncpy.c: New file.
20894
20895         Tests for module 'unistr/u16-stpncpy'.
20896         * modules/unistr/u16-stpncpy-tests: New file.
20897         * tests/unistr/test-u16-stpncpy.c: New file.
20898
20899         Tests for module 'unistr/u8-stpncpy'.
20900         * modules/unistr/u8-stpncpy-tests: New file.
20901         * tests/unistr/test-u8-stpncpy.c: New file.
20902         * tests/unistr/test-stpncpy.h: New file.
20903
20904         Tests for module 'unistr/u32-strncpy'.
20905         * modules/unistr/u32-strncpy-tests: New file.
20906         * tests/unistr/test-u32-strncpy.c: New file.
20907
20908         Tests for module 'unistr/u16-strncpy'.
20909         * modules/unistr/u16-strncpy-tests: New file.
20910         * tests/unistr/test-u16-strncpy.c: New file.
20911
20912         Tests for module 'unistr/u8-strncpy'.
20913         * modules/unistr/u8-strncpy-tests: New file.
20914         * tests/unistr/test-u8-strncpy.c: New file.
20915         * tests/unistr/test-strncpy.h: New file.
20916
20917         Tests for module 'unistr/u32-stpcpy'.
20918         * modules/unistr/u32-stpcpy-tests: New file.
20919         * tests/unistr/test-u32-stpcpy.c: New file.
20920
20921         Tests for module 'unistr/u16-stpcpy'.
20922         * modules/unistr/u16-stpcpy-tests: New file.
20923         * tests/unistr/test-u16-stpcpy.c: New file.
20924
20925         Tests for module 'unistr/u8-stpcpy'.
20926         * modules/unistr/u8-stpcpy-tests: New file.
20927         * tests/unistr/test-u8-stpcpy.c: New file.
20928         * tests/unistr/test-stpcpy.h: New file.
20929
20930         Tests for module 'unistr/u32-strcpy'.
20931         * modules/unistr/u32-strcpy-tests: New file.
20932         * tests/unistr/test-u32-strcpy.c: New file.
20933
20934         Tests for module 'unistr/u16-strcpy'.
20935         * modules/unistr/u16-strcpy-tests: New file.
20936         * tests/unistr/test-u16-strcpy.c: New file.
20937
20938         Tests for module 'unistr/u8-strcpy'.
20939         * modules/unistr/u8-strcpy-tests: New file.
20940         * tests/unistr/test-u8-strcpy.c: New file.
20941         * tests/unistr/test-strcpy.h: New file.
20942
20943         Tests for module 'unistr/u32-strnlen'.
20944         * modules/unistr/u32-strnlen-tests: New file.
20945         * tests/unistr/test-u32-strnlen.c: New file.
20946
20947         Tests for module 'unistr/u16-strnlen'.
20948         * modules/unistr/u16-strnlen-tests: New file.
20949         * tests/unistr/test-u16-strnlen.c: New file.
20950
20951         Tests for module 'unistr/u8-strnlen'.
20952         * modules/unistr/u8-strnlen-tests: New file.
20953         * tests/unistr/test-u8-strnlen.c: New file.
20954         * tests/unistr/test-strnlen.h: New file.
20955
20956         Tests for module 'unistr/u32-strlen'.
20957         * modules/unistr/u32-strlen-tests: New file.
20958         * tests/unistr/test-u32-strlen.c: New file.
20959
20960         Tests for module 'unistr/u16-strlen'.
20961         * modules/unistr/u16-strlen-tests: New file.
20962         * tests/unistr/test-u16-strlen.c: New file.
20963
20964         Tests for module 'unistr/u8-strlen'.
20965         * modules/unistr/u8-strlen-tests: New file.
20966         * tests/unistr/test-u8-strlen.c: New file.
20967
20968         Tests for module 'unistr/u32-prev'.
20969         * modules/unistr/u32-prev-tests: New file.
20970         * tests/unistr/test-u32-prev.c: New file.
20971
20972         Tests for module 'unistr/u16-prev'.
20973         * modules/unistr/u16-prev-tests: New file.
20974         * tests/unistr/test-u16-prev.c: New file.
20975
20976         Tests for module 'unistr/u8-prev'.
20977         * modules/unistr/u8-prev-tests: New file.
20978         * tests/unistr/test-u8-prev.c: New file.
20979
20980         Tests for module 'unistr/u32-next'.
20981         * modules/unistr/u32-next-tests: New file.
20982         * tests/unistr/test-u32-next.c: New file.
20983
20984         Tests for module 'unistr/u16-next'.
20985         * modules/unistr/u16-next-tests: New file.
20986         * tests/unistr/test-u16-next.c: New file.
20987
20988         Tests for module 'unistr/u8-next'.
20989         * modules/unistr/u8-next-tests: New file.
20990         * tests/unistr/test-u8-next.c: New file.
20991
20992         Tests for module 'unistr/u32-strmbtouc'.
20993         * modules/unistr/u32-strmbtouc-tests: New file.
20994         * tests/unistr/test-u32-strmbtouc.c: New file.
20995
20996         Tests for module 'unistr/u16-strmbtouc'.
20997         * modules/unistr/u16-strmbtouc-tests: New file.
20998         * tests/unistr/test-u16-strmbtouc.c: New file.
20999
21000         Tests for module 'unistr/u8-strmbtouc'.
21001         * modules/unistr/u8-strmbtouc-tests: New file.
21002         * tests/unistr/test-u8-strmbtouc.c: New file.
21003
21004         Tests for module 'unistr/u32-strmblen'.
21005         * modules/unistr/u32-strmblen-tests: New file.
21006         * tests/unistr/test-u32-strmblen.c: New file.
21007
21008         Tests for module 'unistr/u16-strmblen'.
21009         * modules/unistr/u16-strmblen-tests: New file.
21010         * tests/unistr/test-u16-strmblen.c: New file.
21011
21012         Tests for module 'unistr/u8-strmblen'.
21013         * modules/unistr/u8-strmblen-tests: New file.
21014         * tests/unistr/test-u8-strmblen.c: New file.
21015
21016         Tests for module 'unistr/u32-cpy-alloc'.
21017         * modules/unistr/u32-cpy-alloc-tests: New file.
21018         * tests/unistr/test-u32-cpy-alloc.c: New file.
21019
21020         Tests for module 'unistr/u16-cpy-alloc'.
21021         * modules/unistr/u16-cpy-alloc-tests: New file.
21022         * tests/unistr/test-u16-cpy-alloc.c: New file.
21023
21024         Tests for module 'unistr/u8-cpy-alloc'.
21025         * modules/unistr/u8-cpy-alloc-tests: New file.
21026         * tests/unistr/test-u8-cpy-alloc.c: New file.
21027         * tests/unistr/test-cpy-alloc.h: New file.
21028
21029         Tests for module 'unistr/u32-mbsnlen'.
21030         * modules/unistr/u32-mbsnlen-tests: New file.
21031         * tests/unistr/test-u32-mbsnlen.c: New file.
21032
21033         Tests for module 'unistr/u16-mbsnlen'.
21034         * modules/unistr/u16-mbsnlen-tests: New file.
21035         * tests/unistr/test-u16-mbsnlen.c: New file.
21036
21037         Tests for module 'unistr/u8-mbsnlen'.
21038         * modules/unistr/u8-mbsnlen-tests: New file.
21039         * tests/unistr/test-u8-mbsnlen.c: New file.
21040
21041         Tests for module 'unistr/u32-chr'.
21042         * modules/unistr/u32-chr-tests: New file.
21043         * tests/unistr/test-u32-chr.c: New file.
21044
21045         Tests for module 'unistr/u16-chr'.
21046         * modules/unistr/u16-chr-tests: New file.
21047         * tests/unistr/test-u16-chr.c: New file.
21048
21049         Tests for module 'unistr/u8-chr'.
21050         * modules/unistr/u8-chr-tests: New file.
21051         * tests/unistr/test-u8-chr.c: New file.
21052         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
21053
21054         Tests for module 'unistr/u32-cmp2'.
21055         * modules/unistr/u32-cmp2-tests: New file.
21056         * tests/unistr/test-u32-cmp2.c: New file.
21057
21058         Tests for module 'unistr/u16-cmp2'.
21059         * modules/unistr/u16-cmp2-tests: New file.
21060         * tests/unistr/test-u16-cmp2.c: New file.
21061
21062         Tests for module 'unistr/u8-cmp2'.
21063         * modules/unistr/u8-cmp2-tests: New file.
21064         * tests/unistr/test-u8-cmp2.c: New file.
21065         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
21066
21067         Tests for module 'unistr/u32-cmp'.
21068         * modules/unistr/u32-cmp-tests: New file.
21069         * tests/unistr/test-u32-cmp.c: New file.
21070
21071         Tests for module 'unistr/u16-cmp'.
21072         * modules/unistr/u16-cmp-tests: New file.
21073         * tests/unistr/test-u16-cmp.c: New file.
21074
21075         Tests for module 'unistr/u8-cmp'.
21076         * modules/unistr/u8-cmp-tests: New file.
21077         * tests/unistr/test-u8-cmp.c: New file.
21078         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
21079
21080         Tests for module 'unistr/u32-set'.
21081         * modules/unistr/u32-set-tests: New file.
21082         * tests/unistr/test-u32-set.c: New file.
21083
21084         Tests for module 'unistr/u16-set'.
21085         * modules/unistr/u16-set-tests: New file.
21086         * tests/unistr/test-u16-set.c: New file.
21087
21088         Tests for module 'unistr/u8-set'.
21089         * modules/unistr/u8-set-tests: New file.
21090         * tests/unistr/test-u8-set.c: New file.
21091         * tests/unistr/test-set.h: New file.
21092
21093         Tests for module 'unistr/u32-move'.
21094         * modules/unistr/u32-move-tests: New file.
21095         * tests/unistr/test-u32-move.c: New file.
21096
21097         Tests for module 'unistr/u16-move'.
21098         * modules/unistr/u16-move-tests: New file.
21099         * tests/unistr/test-u16-move.c: New file.
21100
21101         Tests for module 'unistr/u8-move'.
21102         * modules/unistr/u8-move-tests: New file.
21103         * tests/unistr/test-u8-move.c: New file.
21104         * tests/unistr/test-move.h: New file.
21105
21106         Tests for module 'unistr/u32-cpy'.
21107         * modules/unistr/u32-cpy-tests: New file.
21108         * tests/unistr/test-u32-cpy.c: New file.
21109
21110         Tests for module 'unistr/u16-cpy'.
21111         * modules/unistr/u16-cpy-tests: New file.
21112         * tests/unistr/test-u16-cpy.c: New file.
21113
21114         Tests for module 'unistr/u8-cpy'.
21115         * modules/unistr/u8-cpy-tests: New file.
21116         * tests/unistr/test-u8-cpy.c: New file.
21117         * tests/unistr/test-cpy.h: New file.
21118
21119 2010-01-09  Bruno Haible  <bruno@clisp.org>
21120
21121         Tests for module 'unistr/u32-uctomb'.
21122         * modules/unistr/u32-uctomb-tests: New file.
21123         * tests/unistr/test-u32-uctomb.c: New file.
21124
21125         Tests for module 'unistr/u16-uctomb'.
21126         * modules/unistr/u16-uctomb-tests: New file.
21127         * tests/unistr/test-u16-uctomb.c: New file.
21128
21129         Tests for module 'unistr/u8-uctomb'.
21130         * modules/unistr/u8-uctomb-tests: New file.
21131         * tests/unistr/test-u8-uctomb.c: New file.
21132
21133         Tests for module 'unistr/u32-mbtoucr'.
21134         * modules/unistr/u32-mbtoucr-tests: New file.
21135         * tests/unistr/test-u32-mbtoucr.c: New file.
21136
21137         Tests for module 'unistr/u16-mbtoucr'.
21138         * modules/unistr/u16-mbtoucr-tests: New file.
21139         * tests/unistr/test-u16-mbtoucr.c: New file.
21140
21141         Tests for module 'unistr/u8-mbtoucr'.
21142         * modules/unistr/u8-mbtoucr-tests: New file.
21143         * tests/unistr/test-u8-mbtoucr.c: New file.
21144
21145         Tests for module 'unistr/u32-mbtouc'.
21146         * modules/unistr/u32-mbtouc-tests: New file.
21147         * tests/unistr/test-u32-mbtouc.c: New file.
21148
21149         Tests for module 'unistr/u16-mbtouc'.
21150         * modules/unistr/u16-mbtouc-tests: New file.
21151         * tests/unistr/test-u16-mbtouc.c: New file.
21152
21153         Tests for module 'unistr/u8-mbtouc'.
21154         * modules/unistr/u8-mbtouc-tests: New file.
21155         * tests/unistr/test-u8-mbtouc.c: New file.
21156
21157         Tests for module 'unistr/u32-mbtouc-unsafe'.
21158         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
21159         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
21160         * tests/unistr/test-u32-mbtouc.h: New file.
21161
21162         Tests for module 'unistr/u16-mbtouc-unsafe'.
21163         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
21164         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
21165         * tests/unistr/test-u16-mbtouc.h: New file.
21166
21167         Tests for module 'unistr/u8-mbtouc-unsafe'.
21168         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
21169         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
21170         * tests/unistr/test-u8-mbtouc.h: New file.
21171
21172         Tests for module 'unistr/u32-mblen'.
21173         * modules/unistr/u32-mblen-tests: New file.
21174         * tests/unistr/test-u32-mblen.c: New file.
21175
21176         Tests for module 'unistr/u16-mblen'.
21177         * modules/unistr/u16-mblen-tests: New file.
21178         * tests/unistr/test-u16-mblen.c: New file.
21179
21180         Tests for module 'unistr/u8-mblen'.
21181         * modules/unistr/u8-mblen-tests: New file.
21182         * tests/unistr/test-u8-mblen.c: New file.
21183
21184         Tests for module 'unistr/u32-to-u16'.
21185         * modules/unistr/u32-to-u16-tests: New file.
21186         * tests/unistr/test-u32-to-u16.c: New file.
21187
21188         Tests for module 'unistr/u32-to-u8'.
21189         * modules/unistr/u32-to-u8-tests: New file.
21190         * tests/unistr/test-u32-to-u8.c: New file.
21191
21192         Tests for module 'unistr/u16-to-u32'.
21193         * modules/unistr/u16-to-u32-tests: New file.
21194         * tests/unistr/test-u16-to-u32.c: New file.
21195
21196         Tests for module 'unistr/u16-to-u8'.
21197         * modules/unistr/u16-to-u8-tests: New file.
21198         * tests/unistr/test-u16-to-u8.c: New file.
21199
21200         Tests for module 'unistr/u8-to-u32'.
21201         * modules/unistr/u8-to-u32-tests: New file.
21202         * tests/unistr/test-u8-to-u32.c: New file.
21203
21204         Tests for module 'unistr/u8-to-u16'.
21205         * modules/unistr/u8-to-u16-tests: New file.
21206         * tests/unistr/test-u8-to-u16.c: New file.
21207
21208         Tests for module 'unistr/u32-check'.
21209         * modules/unistr/u32-check-tests: New file.
21210         * tests/unistr/test-u32-check.c: New file.
21211
21212         Tests for module 'unistr/u16-check'.
21213         * modules/unistr/u16-check-tests: New file.
21214         * tests/unistr/test-u16-check.c: New file.
21215
21216         Tests for module 'unistr/u8-check'.
21217         * modules/unistr/u8-check-tests: New file.
21218         * tests/unistr/test-u8-check.c: New file.
21219
21220         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
21221         (category_equals): New function.
21222         (main): Add more tests.
21223         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
21224
21225         * tests/unictype/test-bidi_byname.c (main): Add more tests.
21226
21227 2010-01-10  Bruno Haible  <bruno@clisp.org>
21228
21229         unistr/u*-strcoll: Try harder to distinguish different strings.
21230         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
21231         compare s1 and s2 to see if they are different.
21232
21233 2010-01-10  Bruno Haible  <bruno@clisp.org>
21234
21235         unistr/u*-stpncpy: Fix the return value.
21236         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
21237         description of the return value consistent with stpncpy in glibc.
21238         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
21239         written non-NUL unit.
21240
21241 2010-01-10  Bruno Haible  <bruno@clisp.org>
21242
21243         unistr/u*-next: Add missing dependencies.
21244         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
21245         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
21246         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
21247
21248 2010-01-10  Bruno Haible  <bruno@clisp.org>
21249
21250         unistr/u8-mbsnlen: Fix return value for incomplete character.
21251         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
21252         u8_mblen.
21253         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
21254         Remove unistr/u8-mblen.
21255         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
21256         u16_mblen.
21257         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
21258         Remove unistr/u16-mblen.
21259
21260 2010-01-10  Bruno Haible  <bruno@clisp.org>
21261
21262         wchar: Fix compilation error when <wchar.h> is used from coreutils.
21263         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
21264         Reported by Brian Gough <bjg@gnu.org> and
21265         Chris Clayton <chris2553@googlemail.com> via
21266         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
21267
21268 2010-01-09  Bruno Haible  <bruno@clisp.org>
21269
21270         unistr/u16-to-u32: Reject invalid input.
21271         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
21272         u16_mbtouc.
21273         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
21274         Remove unistr/u16-mbtouc.
21275
21276         unistr/u16-to-u8: Reject invalid input.
21277         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
21278         u16_mbtouc.
21279         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
21280         Remove unistr/u16-mbtouc.
21281
21282         unistr/u8-to-u32: Reject invalid input.
21283         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
21284         u8_mbtouc.
21285         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
21286         Remove unistr/u8-mbtouc.
21287
21288         unistr/u8-to-u16: Reject invalid input.
21289         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
21290         u8_mbtouc.
21291         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
21292         Remove unistr/u8-mbtouc.
21293
21294 2010-01-09  Bruno Haible  <bruno@clisp.org>
21295
21296         Tests for module 'getlogin'.
21297         * modules/getlogin-tests: New file.
21298         * tests/test-getlogin.c: New file.
21299
21300         New module 'getlogin'.
21301         * lib/unistd.in.h (getlogin): New declaration.
21302         * lib/getlogin.c: New file.
21303         * m4/getlogin.m4: New file.
21304         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
21305         HAVE_GETLOGIN.
21306         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
21307         HAVE_GETLOGIN.
21308         * modules/getlogin: New file.
21309         * doc/posix-functions/getlogin.texi: Mention the new module.
21310         Reported by John W. Eaton <jwe@gnu.org>.
21311
21312 2010-01-09  Bruno Haible  <bruno@clisp.org>
21313
21314         getlogin_r: Support for native Windows.
21315         * lib/getlogin_r.c: Include <windows.h>
21316         (getlogin_r): Implement for native Windows.
21317         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
21318         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
21319         via John W. Eaton <jwe@gnu.org>.
21320
21321 2010-01-09  Bruno Haible  <bruno@clisp.org>
21322
21323         getlogin_r: Small fixes.
21324         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
21325         succeeds.
21326         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
21327         before testing whether getlogin_r is declared. No need to set
21328         HAVE_DECL_GETLOGIN_R to 1.
21329         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
21330
21331 2010-01-09  Bruno Haible  <bruno@clisp.org>
21332
21333         * lib/unistd.in.h (getlogin_r): Add comment.
21334
21335 2010-01-09  Bruno Haible  <bruno@clisp.org>
21336
21337         Tests for module 'getlogin_r'.
21338         * modules/getlogin_r-tests: New file.
21339         * tests/test-getlogin_r.c: New file.
21340
21341 2010-01-09  Jim Meyering  <meyering@redhat.com>
21342
21343         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
21344         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
21345         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
21346
21347 2010-01-08  Simon Josefsson  <simon@josefsson.org>
21348
21349         * lib/dup2.c (rpl_dup2): Improve comment.
21350
21351 2010-01-08  Eric Blake  <ebb9@byu.net>
21352
21353         maint.mk: allow packages to add makefile @@ exceptions
21354         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
21355         (sc_makefile_check): Rename...
21356         (sc_makefile_at_at_check): ...to this, and use hook.
21357
21358         dup2: work around mingw bug
21359         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
21360         Reported by Simon Josefsson.
21361
21362 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
21363
21364         glob: Fix C++ compilation.
21365         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
21366         C++.
21367
21368 2010-01-07  Bruno Haible  <bruno@clisp.org>
21369
21370         Fix indentation of wctype.in.h, broken since 2007-01-06.
21371         * lib/wctype.in.h: Fix indentation of preprocessor directives.
21372
21373 2010-01-07  Bruno Haible  <bruno@clisp.org>
21374
21375         mbslen: Avoid collision with system function.
21376         * lib/string.in.h [MirBSD]: Include <wchar.h>.
21377         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
21378         * m4/mbslen.m4: New file.
21379         * modules/mbslen (Files): Add it.
21380         (configure.ac): Invoke gl_MBSLEN.
21381         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
21382         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
21383         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
21384         via Ian Beckwith <ianb@erislabs.net>.
21385
21386 2010-01-07  Bruno Haible  <bruno@clisp.org>
21387
21388         dirent: Document the last fix.
21389         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
21390
21391 2010-01-07  Bruno Haible  <bruno@clisp.org>
21392
21393         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
21394         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
21395         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
21396         va_list are defined.
21397         * doc/posix-headers/stdio.texi: Document the bug of missing types.
21398         Reported by Eric Blake.
21399
21400 2010-01-07  Bruno Haible  <bruno@clisp.org>
21401
21402         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
21403         * modules/xlist (Depends-on): Add 'list',
21404         * modules/xoset (Depends-on): Add 'oset'.
21405         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21406
21407 2010-01-07  Bruno Haible  <bruno@clisp.org>
21408
21409         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
21410         * doc/posix-functions/strncasecmp.texi: Likewise.
21411
21412 2010-01-07  Bruno Haible  <bruno@clisp.org>
21413
21414         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
21415
21416 2010-01-07  John W. Eaton  <jwe@octave.org>
21417
21418         wctype: allow C++ use
21419         * lib/wctype.in.h: Add extern "C" block for C++.
21420
21421 2010-01-06  Eric Blake  <ebb9@byu.net>
21422
21423         maint.mk: detect incorrect GFDL usage
21424         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
21425
21426 2010-01-06  Jim Meyering  <meyering@redhat.com>
21427         and Eric Blake  <ebb9@byu.net>
21428
21429         maint.mk: ignore multi-line copyright in NEWS
21430         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
21431
21432 2010-01-06  Eric Blake  <ebb9@byu.net>
21433
21434         select: add missing dependency
21435         * modules/select-tests (Depends-on): Move sockets dependency...
21436         * modules/select (Depends-on): ...here.
21437         Reported by Ian Beckwith.
21438
21439         doc: regenerate INSTALL
21440         * doc/INSTALL: Reflect recent autoconf update.
21441         * doc/INSTALL.ISO: Likewise.
21442         * doc/INSTALL.UTF-8: Likewise.
21443
21444         pread: fix compilation on glibc
21445         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
21446         Reported by Ralf Wildenhues.
21447
21448         dirent: fix test failure
21449         * lib/dirent.in.h (includes): Guarantee ino_t.
21450         Reported by Ralf Wildenhues.
21451
21452 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
21453
21454         linkat, renameat: avoid bad free
21455         * lib/at-func2.c (at_func2): Fix typo.
21456         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
21457
21458 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21459
21460         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
21461         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
21462         to avoid failure of symlink test later.
21463
21464 2010-01-06  Eric Blake  <ebb9@byu.net>
21465
21466         stdio, unistd: guarantee ssize_t
21467         * lib/unistd.in.h (includes): Ensure that types required by POSIX
21468         2008 are exposed when needed.
21469         * lib/stdio.in.h (includes): Likewise.
21470         Reported by Ralf Wildenhues.
21471
21472 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
21473
21474         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
21475         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
21476         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
21477
21478 2010-01-06  Jim Meyering  <meyering@redhat.com>
21479
21480         readtokens: this module *does* require xalloc.h
21481         It uses only functions that were omitted by the old syntax-check rule.
21482         * lib/readtokens.c: Include "xalloc.h" once again.
21483         * modules/readtokens (Depends-on): Add xalloc.
21484         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
21485
21486 2010-01-05  Eric Blake  <ebb9@byu.net>
21487
21488         maint: support 'make announcement' from a VPATH build
21489         * top/maint.mk (announcement): Look for correct NEWS file.
21490
21491 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
21492
21493         utimens (fdutimens): ignore a negative FD, per contract
21494         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
21495         when we have a valid file descriptor.  Otherwise, using a brand
21496         new glibc (with just-patched futimens that now fails with EBADF)
21497         would cause this function to fail with ENOSYS.
21498         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
21499         See also http://bugzilla.redhat.com/552320.
21500
21501 2010-01-05  Eric Blake  <ebb9@byu.net>
21502
21503         strcase: document what it provides
21504         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
21505         gnulib module.
21506         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
21507         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
21508
21509 2010-01-05  Jim Meyering  <meyering@redhat.com>
21510
21511         maint: remove useless inclusions of "xalloc.h"
21512         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
21513         * lib/readtokens.c: Likewise.
21514         * lib/same.c: Likewise.
21515         * modules/getloadavg (Depends-on): Remove xalloc.
21516         * modules/readtokens: Likewise.
21517         * modules/same: Likewise.
21518
21519         maint.mk: include 4 more function names in alloca.h-checking regexp
21520         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
21521         regexp.  Before, we would give a false-positive (saying alloca.h
21522         is included unnecessarily) when the only uses involved omitted symbols.
21523
21524         xalloc.h: use consistent formatting
21525         * lib/xalloc.h: Move declarations to start in the first column.
21526
21527 2010-01-05  Eric Blake  <ebb9@byu.net>
21528
21529         mkdir: avoid xalloc
21530         * lib/mkdir.c (includes): Drop unused header.
21531         Reported by John W. Eaton.
21532
21533 2010-01-04  Jim Meyering  <meyering@redhat.com>
21534
21535         nl_langinfo: avoid configure-time syntax error
21536         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
21537         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
21538         the empty string.  Don't let that provoke a shell syntax error.
21539
21540         regcomp, regexec, fnmatch: avoid array bounds read error
21541         * lib/regcomp.c (build_equiv_class): From glibc:
21542         Use only the low 24 bits of a findidx return value as an index
21543         into the weights array.  Patch by Ulrich Drepper:
21544         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
21545         * lib/regexec.c (check_node_accept_bytes): Likewise.
21546         * lib/fnmatch_loop.c (FCT): Likewise.
21547
21548         regcomp: skip collseq lookup when there are no rules
21549         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
21550         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
21551
21552         regcomp: recognize ill-formed { } expressions
21553         * lib/regcomp.c (parse_dup_op): From glibc:
21554         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
21555
21556         regcomp: fix typo in comment
21557         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
21558         s/satisfy/satisfies/.
21559
21560         regcomp: sync from glibc: remove dead store
21561         * lib/regcomp.c (duplicate_node_closure): Remove useless
21562         search_duplicated_node call and dead store.
21563
21564         regcomp: sync from glibc; always use nl_langinfo
21565         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
21566         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
21567         * modules/regex (Depends-on): Add nl_langinfo.
21568
21569 2010-01-04  Eric Blake  <ebb9@byu.net>
21570
21571         fdopendir: fix configure test
21572         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
21573
21574 2010-01-01  Bruno Haible  <bruno@clisp.org>
21575
21576         wchar: Remove unused configure check.
21577         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
21578
21579 2010-01-01  Eric Blake  <ebb9@byu.net>
21580
21581         headers: make check of system header explicit
21582         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
21583         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
21584         ourselves.
21585         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
21586         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21587         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
21588         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
21589         internals.
21590         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
21591         missing.
21592         Suggested by Bruno Haible.
21593
21594 2010-01-01  Jim Meyering  <meyering@redhat.com>
21595
21596         ChangeLog: tweak to eliminate unnecessary copyright line
21597         * ChangeLog: Remove a copyright line that was mistakenly updated
21598         by today's update-copyright run.  Reported by Eric Blake.
21599
21600         test-update-copyright: don't let envvar setting cause test failure
21601         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
21602
21603 2010-01-01  Bruno Haible  <bruno@clisp.org>
21604
21605         localename: Avoid gcc warning.
21606         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
21607         function if it is not used.
21608
21609 2010-01-01  Jim Meyering  <meyering@redhat.com>
21610
21611         update nearly all FSF copyright year lists to include 2010
21612         Use the same procedure as for 2009, outlined in
21613         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
21614
21615         version-etc: set COPYRIGHT_YEAR to 2010
21616         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
21617
21618 2009-12-31  Eric Blake  <ebb9@byu.net>
21619
21620         doc: correct availability of cygwin 1.5.x getopt
21621         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
21622         variables.
21623         * doc/posix-functions/opterr.texi (opterr): Likewise.
21624         * doc/posix-functions/optind.texi (optind): Likewise.
21625         * doc/posix-functions/optopt.texi (optopt): Likewise.
21626         * doc/posix-functions/tzname.texi (tzname): Likewise.
21627
21628         openat: update maintainer
21629         * modules/openat (Maintainer): Add myself.
21630
21631         utimens: avoid shadowing warning
21632         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
21633         buffers into one, to avoid shadowing, as well as avoiding a
21634         redundant stat.
21635         Reported by Jim Meyering.
21636
21637         test-dup2: avoid compiler warning
21638         * tests/test-dup2.c (is_inheritable): Only define if used.
21639
21640 2010-01-01  Bruno Haible  <bruno@clisp.org>
21641
21642         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
21643         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
21644         defined, use wctomb instead of wcrtomb.
21645
21646 2010-01-01  Bruno Haible  <bruno@clisp.org>
21647
21648         iconv: Reject native Solaris iconv.
21649         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
21650         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
21651
21652 2009-12-31  Bruno Haible  <bruno@clisp.org>
21653
21654         * tests/test-signal.c (main): Remove test of 'SIG'.
21655
21656 2009-12-31  Bruno Haible  <bruno@clisp.org>
21657
21658         spawn: Fix incomplete fix.
21659         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
21660         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
21661         warnings for GNULIB_POSIXCHECK again.
21662         Reported by Eric Blake.
21663
21664 2009-12-31  Bruno Haible  <bruno@clisp.org>
21665
21666         Avoid namespace pollution on glibc systems.
21667         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
21668         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
21669         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
21670         glibc systems.
21671
21672 2009-12-31  Bruno Haible  <bruno@clisp.org>
21673
21674         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
21675         (gl_REPLACE_WCHAR_H): Turn into a no-op.
21676         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
21677         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
21678         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
21679         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
21680         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
21681
21682 2009-12-31  Bruno Haible  <bruno@clisp.org>
21683
21684         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
21685         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
21686         afterwards.
21687
21688 2009-12-31  Bruno Haible  <bruno@clisp.org>
21689
21690         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
21691         SYS_UTSNAME_H.
21692
21693 2009-12-31  Bruno Haible  <bruno@clisp.org>
21694
21695         spawn: Fix misapplied patch.
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.
21699
21700 2009-12-31  Bruno Haible  <bruno@clisp.org>
21701
21702         times: Update after sys_times changed.
21703         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
21704         * modules/times (Files): Add it.
21705         (configure.ac): Invoke gl_FUNC_TIMES.
21706
21707 2009-12-31  Bruno Haible  <bruno@clisp.org>
21708
21709         Use AC_C_INLINE where necessary.
21710         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
21711         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
21712         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
21713         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
21714         * m4/mbfile.m4 (gl_MBFILE): Likewise.
21715         * m4/mbiter.m4 (gl_MBITER): Likewise.
21716         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
21717         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
21718         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
21719         * modules/u64 (configure.ac): Likewise.
21720
21721 2009-12-31  Bruno Haible  <bruno@clisp.org>
21722
21723         Use AC_C_INLINE instead of module 'inline' where possible.
21724         * modules/inline (Description): Clarify purpose.
21725         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
21726         * modules/count-one-bits (Depends-on): Remove inline.
21727         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
21728         * modules/openat (Depends-on): Remove inline.
21729         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
21730         instead of depending on module 'inline'.
21731         * modules/filevercmp (Depends-on, configure.ac): Likewise.
21732         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
21733         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
21734         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
21735         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
21736         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
21737         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
21738         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
21739         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
21740         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
21741         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
21742         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
21743         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
21744         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
21745         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
21746         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
21747         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
21748         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
21749         Likewise.
21750         * modules/unictype/property-ascii-hex-digit (Depends-on,
21751         configure.ac): Likewise.
21752         * modules/unictype/property-bidi-arabic-digit (Depends-on,
21753         configure.ac): Likewise.
21754         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
21755         configure.ac): Likewise.
21756         * modules/unictype/property-bidi-block-separator (Depends-on,
21757         configure.ac): Likewise.
21758         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
21759         configure.ac): Likewise.
21760         * modules/unictype/property-bidi-common-separator (Depends-on,
21761         configure.ac): Likewise.
21762         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
21763         Likewise.
21764         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
21765         configure.ac): Likewise.
21766         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
21767         configure.ac): Likewise.
21768         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
21769         configure.ac): Likewise.
21770         * modules/unictype/property-bidi-european-digit (Depends-on,
21771         configure.ac): Likewise.
21772         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
21773         configure.ac): Likewise.
21774         * modules/unictype/property-bidi-left-to-right (Depends-on,
21775         configure.ac): Likewise.
21776         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
21777         configure.ac): Likewise.
21778         * modules/unictype/property-bidi-other-neutral (Depends-on,
21779         configure.ac): Likewise.
21780         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
21781         Likewise.
21782         * modules/unictype/property-bidi-segment-separator (Depends-on,
21783         configure.ac): Likewise.
21784         * modules/unictype/property-bidi-whitespace (Depends-on,
21785         configure.ac): Likewise.
21786         * modules/unictype/property-combining (Depends-on, configure.ac):
21787         Likewise.
21788         * modules/unictype/property-composite (Depends-on, configure.ac):
21789         Likewise.
21790         * modules/unictype/property-currency-symbol (Depends-on,
21791         configure.ac): Likewise.
21792         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
21793         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
21794         Likewise.
21795         * modules/unictype/property-default-ignorable-code-point (Depends-on,
21796         configure.ac): Likewise.
21797         * modules/unictype/property-deprecated (Depends-on, configure.ac):
21798         Likewise.
21799         * modules/unictype/property-diacritic (Depends-on, configure.ac):
21800         Likewise.
21801         * modules/unictype/property-extender (Depends-on, configure.ac):
21802         Likewise.
21803         * modules/unictype/property-format-control (Depends-on, configure.ac):
21804         Likewise.
21805         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
21806         Likewise.
21807         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
21808         Likewise.
21809         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
21810         Likewise.
21811         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
21812         Likewise.
21813         * modules/unictype/property-hyphen (Depends-on, configure.ac):
21814         Likewise.
21815         * modules/unictype/property-id-continue (Depends-on, configure.ac):
21816         Likewise.
21817         * modules/unictype/property-id-start (Depends-on, configure.ac):
21818         Likewise.
21819         * modules/unictype/property-ideographic (Depends-on, configure.ac):
21820         Likewise.
21821         * modules/unictype/property-ids-binary-operator (Depends-on,
21822         configure.ac): Likewise.
21823         * modules/unictype/property-ids-trinary-operator (Depends-on,
21824         configure.ac): Likewise.
21825         * modules/unictype/property-ignorable-control (Depends-on,
21826         configure.ac): Likewise.
21827         * modules/unictype/property-iso-control (Depends-on, configure.ac):
21828         Likewise.
21829         * modules/unictype/property-join-control (Depends-on, configure.ac):
21830         Likewise.
21831         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
21832         Likewise.
21833         * modules/unictype/property-line-separator (Depends-on, configure.ac):
21834         Likewise.
21835         * modules/unictype/property-logical-order-exception (Depends-on,
21836         configure.ac): Likewise.
21837         * modules/unictype/property-lowercase (Depends-on, configure.ac):
21838         Likewise.
21839         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
21840         * modules/unictype/property-non-break (Depends-on, configure.ac):
21841         Likewise.
21842         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
21843         Likewise.
21844         * modules/unictype/property-numeric (Depends-on, configure.ac):
21845         Likewise.
21846         * modules/unictype/property-other-alphabetic (Depends-on,
21847         configure.ac): Likewise.
21848         * modules/unictype/property-other-default-ignorable-code-point
21849         (Depends-on, configure.ac): Likewise.
21850         * modules/unictype/property-other-grapheme-extend (Depends-on,
21851         configure.ac): Likewise.
21852         * modules/unictype/property-other-id-continue (Depends-on,
21853         configure.ac): Likewise.
21854         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
21855         Likewise.
21856         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
21857         Likewise.
21858         * modules/unictype/property-other-math (Depends-on, configure.ac):
21859         Likewise.
21860         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
21861         Likewise.
21862         * modules/unictype/property-paired-punctuation (Depends-on,
21863         configure.ac): Likewise.
21864         * modules/unictype/property-paragraph-separator (Depends-on,
21865         configure.ac): Likewise.
21866         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
21867         Likewise.
21868         * modules/unictype/property-pattern-white-space (Depends-on,
21869         configure.ac): Likewise.
21870         * modules/unictype/property-private-use (Depends-on, configure.ac):
21871         Likewise.
21872         * modules/unictype/property-punctuation (Depends-on, configure.ac):
21873         Likewise.
21874         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
21875         Likewise.
21876         * modules/unictype/property-radical (Depends-on, configure.ac):
21877         Likewise.
21878         * modules/unictype/property-sentence-terminal (Depends-on,
21879         configure.ac): Likewise.
21880         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
21881         Likewise.
21882         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
21883         * modules/unictype/property-terminal-punctuation (Depends-on,
21884         configure.ac): Likewise.
21885         * modules/unictype/property-titlecase (Depends-on, configure.ac):
21886         Likewise.
21887         * modules/unictype/property-unassigned-code-value (Depends-on,
21888         configure.ac): Likewise.
21889         * modules/unictype/property-unified-ideograph (Depends-on,
21890         configure.ac): Likewise.
21891         * modules/unictype/property-uppercase (Depends-on, configure.ac):
21892         Likewise.
21893         * modules/unictype/property-variation-selector (Depends-on,
21894         configure.ac): Likewise.
21895         * modules/unictype/property-white-space (Depends-on, configure.ac):
21896         Likewise.
21897         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
21898         Likewise.
21899         * modules/unictype/property-xid-start (Depends-on, configure.ac):
21900         Likewise.
21901         * modules/unictype/property-zero-width (Depends-on, configure.ac):
21902         Likewise.
21903         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
21904         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
21905         Likewise.
21906
21907 2009-12-31  Bruno Haible  <bruno@clisp.org>
21908
21909         Remove unnecessary AC_C_INLINE invocation.
21910         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
21911         since 2009-08-21.
21912
21913 2009-12-31  Jim Meyering  <meyering@redhat.com>
21914
21915         maint.mk: don't require explicit gpg_key_ID in cfg.mk
21916         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
21917         With this change, we can all remove the gpg_key_ID = ... definition
21918         from our respective cfg.mk files.
21919
21920         maint.mk: create announcement template in ~/, not in /tmp
21921         * top/maint.mk (emit_upload_commands): Adjust.
21922         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
21923         Remove temporary file, .ci-msg.
21924
21925 2009-12-31  Eric Blake  <ebb9@byu.net>
21926
21927         link-warning: always build headers with link warnings
21928         * modules/arpa_inet (Makefile.am): Always build replacement
21929         header.
21930         * modules/ctype (Makefile.am): Likewise.
21931         * modules/dirent (Makefile.am): Likewise.
21932         * modules/inttypes (Makefile.am): Likewise.
21933         * modules/langinfo (Makefile.am): Likewise.
21934         * modules/locale (Makefile.am): Likewise.
21935         * modules/spawn (Makefile.am): Likewise.
21936         * modules/sys_file (Makefile.am): Likewise.
21937         * modules/sys_ioctl (Makefile.am): Likewise.
21938         * modules/sys_select (Makefile.am): Likewise.
21939         * modules/sys_socket (Makefile.am): Likewise.
21940         * modules/sys_times (Makefile.am): Likewise.
21941         * modules/sys_utsname (Makefile.am): Likewise.
21942         * modules/sys_wait (Makefile.am): Likewise.
21943         * modules/wchar (Makefile.am): Likewise.
21944         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
21945         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
21946         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
21947         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
21948         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
21949         Likewise.
21950         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
21951         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
21952         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
21953         Likewise.
21954         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
21955         Likewise.
21956         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
21957         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
21958         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
21959         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21960         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
21961         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
21962         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
21963         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
21964         (gl_WCHAR_H_DEFAULTS): Likewise.
21965
21966 2009-12-31  Eric Blake  <ebb9@byu.net>
21967
21968         signal, spawn: use link warnings
21969         * lib/signal.in.h (sigset_t): Make unconditional.
21970         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
21971         (sigpending, sigprocmask, sigaction): Add link warnings.
21972         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
21973         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
21974         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
21975         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
21976         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
21977         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
21978         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
21979         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
21980         (posix_spawn_file_actions_destroy)
21981         (posix_spawn_file_actions_addopen)
21982         (posix_spawn_file_actions_addclose)
21983         (posix_spawn_file_actions_adddup2): Likewise.
21984         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
21985         * tests/test-signal.c (main): Enhance test.
21986
21987         spawn: improve wrapper support
21988         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
21989         (gl_SPAWN_H_DEFAULTS): New defaults.
21990         * modules/spawn (Makefile.am): Substitute them.
21991         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
21992         Only declare if missing or broken.
21993
21994         sys_times, sys_utsname: use include_next
21995         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
21996         header.
21997         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
21998         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
21999         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
22000         * modules/sys_times (Depends-on): Add include_next.
22001         (Makefile.am): Substitute additional values.
22002         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
22003         * lib/sys_times.in.h (includes): Include native header, if
22004         available.
22005         * lib/sys_utsname.in.h (includes): Likewise.
22006         * tests/test-sys_times.c (main): Enhance test.
22007
22008         fdutimensat: revert prior patch
22009         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
22010         utimens.h.
22011         Reported by Bruno Haible.
22012
22013 2009-12-30  Eric Blake  <ebb9@byu.net>
22014
22015         sys_wait: drop link-warning dependency
22016         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
22017         link-warning efforts.
22018         * lib/sys_wait.in.h: Likewise.
22019
22020         fdutimensat: remove bogus dependency
22021         * modules/fdutimensat (Depends-on): Drop inline.
22022
22023         unistd: fix typo
22024         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
22025
22026 2009-12-30  Bruno Haible  <bruno@clisp.org>
22027
22028         Fix compilation error with Solaris cc.
22029         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
22030         * lib/unicase/u16-is-invariant.c: Likewise.
22031         * lib/unicase/u32-is-invariant.c: Likewise.
22032         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
22033
22034 2009-12-30  Bruno Haible  <bruno@clisp.org>
22035
22036         Fix test crash.
22037         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
22038         locales.
22039         Reported by Simon Josefsson <simon@josefsson.org>.
22040
22041 2009-12-30  Bruno Haible  <bruno@clisp.org>
22042
22043         Fix compilation error on most platforms.
22044         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
22045         Reported by Simon Josefsson <simon@josefsson.org>
22046         and Nelson H. F. Beebe <beebe@math.utah.edu>.
22047
22048 2009-12-30  Eric Blake  <ebb9@byu.net>
22049
22050         futimens, utimensat: work around ntfs-3g bug
22051         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
22052         a ctime bug is present, and expand workaround to cover ntfs-3g.
22053         * lib/utimens.c (fdutimens, lutimens): Likewise.
22054         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
22055         (validate_timespec): Adjust return value.
22056         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
22057         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
22058         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
22059
22060 2009-12-29  Eric Blake  <ebb9@byu.net>
22061
22062         link-warning: make usage consistent
22063         * modules/ctype (Depends-on): Add link-warning.
22064         (Makefile.am): Update rules accordingly.
22065         * modules/langinfo (Depends-on, Makefile.am): Likewise.
22066         * modules/locale (Depends-on, Makefile.am): Likewise.
22067         * modules/sys_file (Makefile.am): Likewise.
22068         * modules/getopt-posix (Makefile.am): Delete unused link warning
22069         efforts.
22070         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
22071         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
22072         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
22073         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
22074
22075         stdio: remove unused variables
22076         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
22077         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
22078         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
22079
22080         tests: test more substitute headers
22081         * modules/ctype-tests: New file.
22082         * modules/dirent-tests: Likewise.
22083         * modules/spawn-tests: Likewise.
22084         * modules/sys_file-tests: Likewise.
22085         * modules/sys_ioctl-tests: Likewise.
22086         * modules/sys_wait-tests: Likewise.
22087         * tests/test-ctype.c: Likewise.
22088         * tests/test-dirent.c: Likewise.
22089         * tests/test-spawn.c: Likewise.
22090         * tests/test-sys_file.c: Likewise.
22091         * tests/test-sys_ioctl.c: Likewise.
22092         * tests/test-sys_wait.c: Likewise.
22093         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
22094         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
22095         whether or not flock is in use.
22096
22097         tests: remove License section from module
22098         * modules/arpa_inet-tests: Remove unneeded section.
22099         * modules/byteswap-tests: Likewise.
22100         * modules/ceilf-tests: Likewise.
22101         * modules/ceill-tests: Likewise.
22102         * modules/crypto/des-tests: Likewise.
22103         * modules/crypto/gc-arcfour-tests: Likewise.
22104         * modules/crypto/gc-arctwo-tests: Likewise.
22105         * modules/crypto/gc-des-tests: Likewise.
22106         * modules/crypto/gc-hmac-md5-tests: Likewise.
22107         * modules/crypto/gc-hmac-sha1-tests: Likewise.
22108         * modules/crypto/gc-md2-tests: Likewise.
22109         * modules/crypto/gc-md4-tests: Likewise.
22110         * modules/crypto/gc-md5-tests: Likewise.
22111         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
22112         * modules/crypto/gc-rijndael-tests: Likewise.
22113         * modules/crypto/gc-sha1-tests: Likewise.
22114         * modules/crypto/gc-tests: Likewise.
22115         * modules/crypto/md2-tests: Likewise.
22116         * modules/crypto/md4-tests: Likewise.
22117         * modules/fcntl-h-tests: Likewise.
22118         * modules/floorf-tests: Likewise.
22119         * modules/floorl-tests: Likewise.
22120         * modules/frexp-nolibm-tests: Likewise.
22121         * modules/frexp-tests: Likewise.
22122         * modules/frexpl-nolibm-tests: Likewise.
22123         * modules/frexpl-tests: Likewise.
22124         * modules/getaddrinfo-tests: Likewise.
22125         * modules/inttypes-tests: Likewise.
22126         * modules/isfinite-tests: Likewise.
22127         * modules/isinf-tests: Likewise.
22128         * modules/ldexpl-tests: Likewise.
22129         * modules/locale-tests: Likewise.
22130         * modules/math-tests: Likewise.
22131         * modules/netdb-tests: Likewise.
22132         * modules/netinet_in-tests: Likewise.
22133         * modules/printf-frexp-tests: Likewise.
22134         * modules/printf-frexpl-tests: Likewise.
22135         * modules/priv-set-tests: Likewise.
22136         * modules/random_r-tests: Likewise.
22137         * modules/round-tests: Likewise.
22138         * modules/roundf-tests: Likewise.
22139         * modules/roundl-tests: Likewise.
22140         * modules/search-tests: Likewise.
22141         * modules/select-tests: Likewise.
22142         * modules/signal-tests: Likewise.
22143         * modules/stdbool-tests: Likewise.
22144         * modules/stddef-tests: Likewise.
22145         * modules/stdint-tests: Likewise.
22146         * modules/stdio-tests: Likewise.
22147         * modules/stdlib-tests: Likewise.
22148         * modules/string-tests: Likewise.
22149         * modules/strings-tests: Likewise.
22150         * modules/sys_select-tests: Likewise.
22151         * modules/sys_socket-tests: Likewise.
22152         * modules/sys_stat-tests: Likewise.
22153         * modules/sys_time-tests: Likewise.
22154         * modules/sys_utsname-tests: Likewise.
22155         * modules/sysexits-tests: Likewise.
22156         * modules/time-tests: Likewise.
22157         * modules/trunc-tests: Likewise.
22158         * modules/truncf-tests: Likewise.
22159         * modules/truncl-tests: Likewise.
22160         * modules/tsearch-tests: Likewise.
22161         * modules/unistd-tests: Likewise.
22162         * modules/wchar-tests: Likewise.
22163         * modules/wctype-tests: Likewise.
22164
22165         tests: fix license on several tests
22166         * tests/test-des.c: Update to GPLv3+.
22167         * tests/test-flock.c: Likewise.
22168         * tests/test-fsync.c: Likewise.
22169         * tests/test-futimens.h: Likewise.
22170         * tests/test-gc-arcfour.c: Likewise.
22171         * tests/test-gc-arctwo.c: Likewise.
22172         * tests/test-gc-des.c: Likewise.
22173         * tests/test-gc-hmac-md5.c: Likewise.
22174         * tests/test-gc-hmac-sha1.c: Likewise.
22175         * tests/test-gc-md2.c: Likewise.
22176         * tests/test-gc-md4.c: Likewise.
22177         * tests/test-gc-md5.c: Likewise.
22178         * tests/test-gc-pbkdf2-sha1.c: Likewise.
22179         * tests/test-gc-rijndael.c: Likewise.
22180         * tests/test-gc-sha1.c: Likewise.
22181         * tests/test-gc.c: Likewise.
22182         * tests/test-getcwd.c: Likewise.
22183         * tests/test-link.c: Likewise.
22184         * tests/test-link.h: Likewise.
22185         * tests/test-lutimens.h: Likewise.
22186         * tests/test-md2.c: Likewise.
22187         * tests/test-md4.c: Likewise.
22188         * tests/test-mkdir.h: Likewise.
22189         * tests/test-rename.c: Likewise.
22190         * tests/test-rename.h: Likewise.
22191         * tests/test-safe-alloc.c: Likewise.
22192         * tests/test-utimens-common.h: Likewise.
22193         * tests/test-utimens.h: Likewise.
22194
22195         maint: sync license texts
22196         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
22197         * doc/gpl-3.0.texi: Revert copyright year update.
22198         * doc/lgpl-3.0.texi: Likewise.
22199
22200 2009-12-29  Jim Meyering  <meyering@redhat.com>
22201
22202         update nearly all FSF copyright year lists to include 2009
22203         The files named by the following are exempted:
22204             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
22205               test -f "$dst" && { echo "$dst"; continue; }
22206               test -d "$dst" || continue
22207               echo "$dst"/$(basename "$src")
22208             done > exempt
22209             git ls-files tests/unictype >> exempt
22210         In the remaining files, convert to all-interval notation if
22211         - there is already at least one year interval like 2000-2003
22212         - the file is maintained by me
22213         - the file is in lib/uni*/, where that style already prevails
22214         Otherwise, use update-copyright's default.
22215
22216 2009-12-29  Simon Josefsson  <simon@josefsson.org>
22217         and Eric Blake  <ebb9@byu.net>
22218
22219         tests: don't require debug system() to pass
22220         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
22221         * tests/test-rmdir.h (test_rmdir_func): Likewise.
22222         * tests/test-unlink.h (test_unlink_func): Likewise.
22223         * tests/test-fstatat.c (main): ...into callers.
22224         * tests/test-lstat.c (main): Likewise.
22225         * tests/test-rmdir.c (main): Likewise.
22226         * tests/test-unlink.c (main): Likewise.
22227         * tests/test-unlinkat.c (main): Likewise.
22228         * tests/test-areadlink-with-size.c (main): Don't require a
22229         debug-only system call to pass, aiding cross-testing to mingw.
22230         * tests/test-areadlink.c (main): Likewise.
22231         * tests/test-areadlinkat-with-size.c (main): Likewise.
22232         * tests/test-areadlinkat.c (main): Likewise.
22233         * tests/test-canonicalize-lgpl.c (main): Likewise.
22234         * tests/test-canonicalize.c (main): Likewise.
22235         * tests/test-chown.c (main): Likewise.
22236         * tests/test-fchownat.c (main): Likewise.
22237         * tests/test-lchown.c (main): Likewise.
22238         * tests/test-fdutimensat.c (main): Likewise.
22239         * tests/test-futimens.c (main): Likewise.
22240         * tests/test-link.c (main): Likewise.
22241         * tests/test-linkat.c (main): Likewise.
22242         * tests/test-mkdir.c (main): Likewise.
22243         * tests/test-mkdirat.c (main): Likewise.
22244         * tests/test-mkfifo.c (main): Likewise.
22245         * tests/test-mkfifoat.c (main): Likewise.
22246         * tests/test-mknod.c (main): Likewise.
22247         * tests/test-readlink.c (main): Likewise.
22248         * tests/test-remove.c (main): Likewise.
22249         * tests/test-rename.c (main): Likewise.
22250         * tests/test-renameat.c (main): Likewise.
22251         * tests/test-symlink.c (main): Likewise.
22252         * tests/test-symlinkat.c (main): Likewise.
22253         * tests/test-utimens.c (main): Likewise.
22254         * tests/test-utimensat.c (main): Likewise.
22255
22256 2009-12-29  Simon Josefsson  <simon@josefsson.org>
22257
22258         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
22259         on $(UNUSED_PARAMETER_H) to avoid build failure.
22260
22261 2009-12-28  Jim Meyering  <meyering@redhat.com>
22262
22263         update-copyright: you may specify a max. line length other than 72
22264         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
22265
22266         maint: use consistent FSF copyright line syntax
22267         * lib/posixtm.c: Add missing comma in FSF copyright line.
22268         * lib/posixtm.h: Likewise.
22269         * lib/getugroups.c: Add missing ", Inc.".
22270
22271         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
22272         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
22273         FSF copyright line.  Remove trailing blanks.
22274
22275 2009-12-28  Eric Blake  <ebb9@byu.net>
22276
22277         test-dup2: reduce dependencies
22278         * modules/cloexec (Configure.ac): Set witness.
22279         * modules/dup2-tests (Depends-on): Drop cloexec.
22280         * tests/test-dup2.c (main): Skip portion of test if cloexec module
22281         not present.
22282         Suggested by Bruno Haible.
22283
22284 2009-12-26  Bruno Haible  <bruno@clisp.org>
22285
22286         Remove an unneeded dependency.
22287         * modules/fseterr (Depends-on): Remove dup2.
22288
22289 2009-12-26  Eric Blake  <ebb9@byu.net>
22290
22291         tests: use macros.h in more places
22292         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
22293         (ASSERT_STREAM): Provide default of stderr.
22294         * tests/test-dirent-safer.c: Include macros.h, using alternate
22295         stream for assertions.
22296         * tests/test-dup-safer.c: Likewise.
22297         * tests/test-freopen-safer.c: Likewise.
22298         * tests/test-getopt.c: Likewise.
22299         * tests/test-openat-safer.c: Likewise.
22300         * tests/test-pipe.c: Likewise.
22301         * tests/test-popen-safer.c: Likewise.
22302         * modules/dirent-safer-tests (Files): Include macros.h.
22303         * modules/unistd-safer-tests (Files): Likewise.
22304         * modules/freopen-safer-tests (Files): Likewise.
22305         * modules/getopt-posix-tests (Files): Likewise.
22306         * modules/openat-safer-tests (Files): Likewise.
22307         * modules/pipe-tests (Files): Likewise.
22308
22309 2009-12-26  Bruno Haible  <bruno@clisp.org>
22310
22311         javacomp: Portability fix.
22312         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
22313         that it also works on Solaris.
22314
22315 2009-12-26  Bruno Haible  <bruno@clisp.org>
22316
22317         localename: Fix storage allocation of gl_locale_name_thread's result.
22318         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
22319         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
22320         all platforms that have 'uselocale'.
22321         (gl_locale_name_thread_unsafe): New function, extracted from
22322         gl_locale_name_thread.
22323         (gl_locale_name_thread): Call struniq on all platforms that have
22324         'uselocale'.
22325         * tests/test-localename.c (test_locale_name_thread): Check that the
22326         resulting strings are permanently allocated.
22327         * modules/localename-tests (Depends-on): Add strdup.
22328
22329 2009-12-26  Bruno Haible  <bruno@clisp.org>
22330
22331         * tests/test-localename.c (categories): Fill in the strings.
22332
22333 2009-12-26  Jim Meyering  <meyering@redhat.com>
22334
22335         isdir: complete the removal of m4/isdir.m4
22336         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
22337
22338         isdir: clean up, since at least grep still uses it
22339         * lib/isdir.c: Include "isdir.h".
22340         (S_ISDIR): Remove now-unneeded definition.
22341         * modules/isdir (Files): Add lib/isdir.h.
22342         * lib/isdir.h: New file, with declaration.
22343         * m4/isdir.m4: Remove file -- unneeded.
22344
22345 2009-12-25  Bruno Haible  <bruno@clisp.org>
22346
22347         selinux-h: Make generated .h files standalone.
22348         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
22349         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
22350         * lib/se-selinux.in.h: Likewise.
22351         * modules/selinux-h (Depends-on): Add unused-parameter.
22352         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
22353         selinux/selinux.h and selinux/context.h.
22354         Suggested by Eric Blake.
22355
22356 2009-12-25  Bruno Haible  <bruno@clisp.org>
22357
22358         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
22359         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
22360         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
22361         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
22362         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
22363
22364 2009-12-24  Bruno Haible  <bruno@clisp.org>
22365
22366         openat: Fix warning.
22367         * lib/openat-proc.c: Include <unistd.h>.
22368
22369 2009-12-24  Bruno Haible  <bruno@clisp.org>
22370
22371         New module 'unused-parameter'.
22372         * build-aux/unused-parameter.h: New file, extracted from earlier
22373         gnulib-common.m4.
22374         * modules/unused-parameter: New file.
22375         * lib/unistr.h: Include unused-parameter.h.
22376         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
22377         _GL_UNUSED.
22378         * modules/unistr/base (Depends-on): Add unused-parameter.
22379
22380 2009-12-24  Bruno Haible  <bruno@clisp.org>
22381
22382         Add missing dependencies to 'extensions' module.
22383         * m4/extensions.m4: Add comment.
22384         * modules/accept4 (Depends-on): Add extensions.
22385         * modules/dup3 (Depends-on): Likewise.
22386         * modules/fcntl (Depends-on): Likewise.
22387         * modules/futimens (Depends-on): Likewise.
22388         * modules/mknod (Depends-on): Likewise.
22389         * modules/pipe2 (Depends-on): Likewise.
22390         * modules/stat-time (Depends-on): Likewise.
22391         * modules/strcasestr-simple (Depends-on): Likewise.
22392         * modules/strsignal (Depends-on): Likewise.
22393         * modules/utimensat (Depends-on): Likewise.
22394         * modules/localcharset (Depends-on): Likewise. Needed because of
22395         gl_FCNTL_O_FLAGS.
22396         * modules/wcrtomb (Depends-on): Likewise. Needed because of
22397         AC_TYPE_MBSTATE_T.
22398         * modules/wcsnrtombs (Depends-on): Likewise.
22399         * modules/wcsrtombs (Depends-on): Likewise.
22400
22401 2009-12-24  Bruno Haible  <bruno@clisp.org>
22402
22403         binary-io: Avoid gcc warning due to SET_BINARY.
22404         * lib/binary-io.h (SET_BINARY): Cast the result to void.
22405         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
22406
22407 2009-12-24  Bruno Haible  <bruno@clisp.org>
22408
22409         Avoid future namespace pollution on glibc systems.
22410         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
22411         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
22412         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
22413         glibc systems.
22414
22415 2009-12-24  Bruno Haible  <bruno@clisp.org>
22416
22417         Refactor common macros used in tests.
22418         * tests/macros.h: New file.
22419         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
22420         and/or <stdlib.h>, if appropriate.
22421         (ASSERT, SIZEOF): Remove macros.
22422         * tests/test-areadlink-with-size.c: Likewise.
22423         * tests/test-areadlinkat.c: Likewise.
22424         * tests/test-areadlinkat-with-size.c: Likewise.
22425         * tests/test-argmatch.c: Likewise.
22426         * tests/test-argv-iter.c: Likewise.
22427         * tests/test-array-mergesort.c: Likewise.
22428         * tests/test-array_list.c: Likewise.
22429         * tests/test-array_oset.c: Likewise.
22430         * tests/test-avltree_list.c: Likewise.
22431         * tests/test-avltree_oset.c: Likewise.
22432         * tests/test-avltreehash_list.c: Likewise.
22433         * tests/test-base64.c: Likewise.
22434         * tests/test-binary-io.c: Likewise.
22435         * tests/test-bitrotate.c: Likewise.
22436         * tests/test-btowc.c: Likewise.
22437         * tests/test-byteswap.c: Likewise.
22438         * tests/test-c-ctype.c: Likewise.
22439         * tests/test-c-stack.c: Likewise.
22440         * tests/test-c-strcasecmp.c: Likewise.
22441         * tests/test-c-strcasestr.c: Likewise.
22442         * tests/test-c-strncasecmp.c: Likewise.
22443         * tests/test-c-strstr.c: Likewise.
22444         * tests/test-canonicalize-lgpl.c: Likewise.
22445         * tests/test-canonicalize.c: Likewise.
22446         * tests/test-carray_list.c: Likewise.
22447         * tests/test-ceilf1.c: Likewise.
22448         * tests/test-ceilf2.c: Likewise.
22449         * tests/test-ceill.c: Likewise.
22450         * tests/test-chown.c: Likewise.
22451         * tests/test-cloexec.c: Likewise.
22452         * tests/test-copy-acl.c: Likewise.
22453         * tests/test-copy-file.c: Likewise.
22454         * tests/test-count-one-bits.c: Likewise.
22455         * tests/test-dprintf-posix.c: Likewise.
22456         * tests/test-dup2.c: Likewise.
22457         * tests/test-dup3.c: Likewise.
22458         * tests/test-duplocale.c: Likewise.
22459         * tests/test-fbufmode.c: Likewise.
22460         * tests/test-fchdir.c: Likewise.
22461         * tests/test-fchownat.c: Likewise.
22462         * tests/test-fcntl-safer.c: Likewise.
22463         * tests/test-fcntl.c: Likewise.
22464         * tests/test-fdopendir.c: Likewise.
22465         * tests/test-fdutimensat.c: Likewise.
22466         * tests/test-fflush2.c: Likewise.
22467         * tests/test-file-has-acl.c: Likewise.
22468         * tests/test-filevercmp.c: Likewise.
22469         * tests/test-flock.c: Likewise.
22470         * tests/test-floorf1.c: Likewise.
22471         * tests/test-floorf2.c: Likewise.
22472         * tests/test-floorl.c: Likewise.
22473         * tests/test-fnmatch.c: Likewise.
22474         * tests/test-fopen.h: Likewise.
22475         * tests/test-fpending.c: Likewise.
22476         * tests/test-fprintf-posix.c: Likewise.
22477         * tests/test-fpurge.c: Likewise.
22478         * tests/test-freadable.c: Likewise.
22479         * tests/test-freadahead.c: Likewise.
22480         * tests/test-freading.c: Likewise.
22481         * tests/test-freadptr.c: Likewise.
22482         * tests/test-freadptr2.c: Likewise.
22483         * tests/test-freadseek.c: Likewise.
22484         * tests/test-freopen.c: Likewise.
22485         * tests/test-frexp.c: Likewise.
22486         * tests/test-frexpl.c: Likewise.
22487         * tests/test-fseek.c: Likewise.
22488         * tests/test-fseeko.c: Likewise.
22489         * tests/test-fstatat.c: Likewise.
22490         * tests/test-fstrcmp.c: Likewise.
22491         * tests/test-fsync.c: Likewise.
22492         * tests/test-ftell.c: Likewise.
22493         * tests/test-ftello.c: Likewise.
22494         * tests/test-func.c: Likewise.
22495         * tests/test-futimens.c: Likewise.
22496         * tests/test-fwritable.c: Likewise.
22497         * tests/test-fwriting.c: Likewise.
22498         * tests/test-getcwd.c: Likewise.
22499         * tests/test-getdate.c: Likewise.
22500         * tests/test-getdelim.c: Likewise.
22501         * tests/test-getdtablesize.c: Likewise.
22502         * tests/test-getgroups.c: Likewise.
22503         * tests/test-getline.c: Likewise.
22504         * tests/test-getndelim2.c: Likewise.
22505         * tests/test-glob.c: Likewise.
22506         * tests/test-hash.c: Likewise.
22507         * tests/test-i-ring.c: Likewise.
22508         * tests/test-iconv-utf.c: Likewise.
22509         * tests/test-iconv.c: Likewise.
22510         * tests/test-idpriv-drop.c: Likewise.
22511         * tests/test-idpriv-droptemp.c: Likewise.
22512         * tests/test-inet_ntop.c: Likewise.
22513         * tests/test-inet_pton.c: Likewise.
22514         * tests/test-isblank.c: Likewise.
22515         * tests/test-isfinite.c: Likewise.
22516         * tests/test-isinf.c: Likewise.
22517         * tests/test-isnan.c: Likewise.
22518         * tests/test-isnand.h: Likewise.
22519         * tests/test-isnanf.h: Likewise.
22520         * tests/test-isnanl.h: Likewise.
22521         * tests/test-lchown.c: Likewise.
22522         * tests/test-ldexpl.c: Likewise.
22523         * tests/test-link.c: Likewise.
22524         * tests/test-linkat.c: Likewise.
22525         * tests/test-linked_list.c: Likewise.
22526         * tests/test-linkedhash_list.c: Likewise.
22527         * tests/test-localename.c: Likewise.
22528         * tests/test-lseek.c: Likewise.
22529         * tests/test-lstat.c: Likewise.
22530         * tests/test-mbmemcasecmp.c: Likewise.
22531         * tests/test-mbmemcasecoll.c: Likewise.
22532         * tests/test-mbrtowc.c: Likewise.
22533         * tests/test-mbscasecmp.c: Likewise.
22534         * tests/test-mbscasestr1.c: Likewise.
22535         * tests/test-mbscasestr2.c: Likewise.
22536         * tests/test-mbscasestr3.c: Likewise.
22537         * tests/test-mbscasestr4.c: Likewise.
22538         * tests/test-mbschr.c: Likewise.
22539         * tests/test-mbscspn.c: Likewise.
22540         * tests/test-mbsinit.c: Likewise.
22541         * tests/test-mbsncasecmp.c: Likewise.
22542         * tests/test-mbsnrtowcs.c: Likewise.
22543         * tests/test-mbspbrk.c: Likewise.
22544         * tests/test-mbspcasecmp.c: Likewise.
22545         * tests/test-mbsrchr.c: Likewise.
22546         * tests/test-mbsrtowcs.c: Likewise.
22547         * tests/test-mbsspn.c: Likewise.
22548         * tests/test-mbsstr1.c: Likewise.
22549         * tests/test-mbsstr2.c: Likewise.
22550         * tests/test-mbsstr3.c: Likewise.
22551         * tests/test-memchr.c: Likewise.
22552         * tests/test-memchr2.c: Likewise.
22553         * tests/test-memcmp.c: Likewise.
22554         * tests/test-memmem.c: Likewise.
22555         * tests/test-memrchr.c: Likewise.
22556         * tests/test-mkdir.c: Likewise.
22557         * tests/test-mkdirat.c: Likewise.
22558         * tests/test-mkfifo.c: Likewise.
22559         * tests/test-mkfifoat.c: Likewise.
22560         * tests/test-mknod.c: Likewise.
22561         * tests/test-nanosleep.c: Likewise.
22562         * tests/test-nl_langinfo.c: Likewise.
22563         * tests/test-obstack-printf.c: Likewise.
22564         * tests/test-open.c: Likewise.
22565         * tests/test-openat.c: Likewise.
22566         * tests/test-pipe-filter-gi1.c: Likewise.
22567         * tests/test-pipe-filter-gi2-main.c: Likewise.
22568         * tests/test-pipe-filter-ii1.c: Likewise.
22569         * tests/test-pipe-filter-ii2-main.c: Likewise.
22570         * tests/test-pipe2.c: Likewise.
22571         * tests/test-popen.h: Likewise.
22572         * tests/test-posixtm.c: Likewise.
22573         * tests/test-pread.c: Likewise.
22574         * tests/test-printf-frexp.c: Likewise.
22575         * tests/test-printf-frexpl.c: Likewise.
22576         * tests/test-printf-posix.c: Likewise.
22577         * tests/test-priv-set.c: Likewise.
22578         * tests/test-quotearg.c: Likewise.
22579         * tests/test-random_r.c: Likewise.
22580         * tests/test-rawmemchr.c: Likewise.
22581         * tests/test-rbtree_list.c: Likewise.
22582         * tests/test-rbtree_oset.c: Likewise.
22583         * tests/test-rbtreehash_list.c: Likewise.
22584         * tests/test-readlink.c: Likewise.
22585         * tests/test-remove.c: Likewise.
22586         * tests/test-rename.c: Likewise.
22587         * tests/test-renameat.c: Likewise.
22588         * tests/test-rmdir.c: Likewise.
22589         * tests/test-round1.c: Likewise.
22590         * tests/test-roundf1.c: Likewise.
22591         * tests/test-roundl.c: Likewise.
22592         * tests/test-safe-alloc.c: Likewise.
22593         * tests/test-sameacls.c: Likewise.
22594         * tests/test-set-mode-acl.c: Likewise.
22595         * tests/test-setenv.c: Likewise.
22596         * tests/test-sigaction.c: Likewise.
22597         * tests/test-signbit.c: Likewise.
22598         * tests/test-sleep.c: Likewise.
22599         * tests/test-snprintf-posix.c: Likewise.
22600         * tests/test-snprintf.c: Likewise.
22601         * tests/test-sprintf-posix.c: Likewise.
22602         * tests/test-stat-time.c: Likewise.
22603         * tests/test-stat.c: Likewise.
22604         * tests/test-strcasestr.c: Likewise.
22605         * tests/test-strchrnul.c: Likewise.
22606         * tests/test-strerror.c: Likewise.
22607         * tests/test-striconv.c: Likewise.
22608         * tests/test-striconveh.c: Likewise.
22609         * tests/test-striconveha.c: Likewise.
22610         * tests/test-strsignal.c: Likewise.
22611         * tests/test-strstr.c: Likewise.
22612         * tests/test-strtod.c: Likewise.
22613         * tests/test-strverscmp.c: Likewise.
22614         * tests/test-symlink.c: Likewise.
22615         * tests/test-symlinkat.c: Likewise.
22616         * tests/test-trunc1.c: Likewise.
22617         * tests/test-trunc2.c: Likewise.
22618         * tests/test-truncf1.c: Likewise.
22619         * tests/test-truncf2.c: Likewise.
22620         * tests/test-truncl.c: Likewise.
22621         * tests/test-uname.c: Likewise.
22622         * tests/test-unlink.c: Likewise.
22623         * tests/test-unlinkat.c: Likewise.
22624         * tests/test-unsetenv.c: Likewise.
22625         * tests/test-usleep.c: Likewise.
22626         * tests/test-utimens.c: Likewise.
22627         * tests/test-utimensat.c: Likewise.
22628         * tests/test-vasnprintf-posix.c: Likewise.
22629         * tests/test-vasnprintf-posix2.c: Likewise.
22630         * tests/test-vasnprintf.c: Likewise.
22631         * tests/test-vasprintf-posix.c: Likewise.
22632         * tests/test-vasprintf.c: Likewise.
22633         * tests/test-vdprintf-posix.c: Likewise.
22634         * tests/test-vfprintf-posix.c: Likewise.
22635         * tests/test-vprintf-posix.c: Likewise.
22636         * tests/test-vsnprintf-posix.c: Likewise.
22637         * tests/test-vsnprintf.c: Likewise.
22638         * tests/test-vsprintf-posix.c: Likewise.
22639         * tests/test-wcrtomb.c: Likewise.
22640         * tests/test-wcsnrtombs.c: Likewise.
22641         * tests/test-wcsrtombs.c: Likewise.
22642         * tests/test-wctype.c: Likewise.
22643         * tests/test-wcwidth.c: Likewise.
22644         * tests/test-xfprintf-posix.c: Likewise.
22645         * tests/test-xmemdup0.c: Likewise.
22646         * tests/test-xprintf-posix.c: Likewise.
22647         * tests/test-xvasprintf.c: Likewise.
22648         * tests/unicase/test-locale-language.c: Likewise.
22649         * tests/unicase/test-mapping-part1.h: Likewise.
22650         * tests/unicase/test-predicate-part1.h: Likewise.
22651         * tests/unicase/test-u8-casecmp.c: Likewise.
22652         * tests/unicase/test-u8-casecoll.c: Likewise.
22653         * tests/unicase/test-u8-casefold.c: Likewise.
22654         * tests/unicase/test-u8-is-cased.c: Likewise.
22655         * tests/unicase/test-u8-is-casefolded.c: Likewise.
22656         * tests/unicase/test-u8-is-lowercase.c: Likewise.
22657         * tests/unicase/test-u8-is-titlecase.c: Likewise.
22658         * tests/unicase/test-u8-is-uppercase.c: Likewise.
22659         * tests/unicase/test-u8-tolower.c: Likewise.
22660         * tests/unicase/test-u8-totitle.c: Likewise.
22661         * tests/unicase/test-u8-toupper.c: Likewise.
22662         * tests/unicase/test-u16-casecmp.c: Likewise.
22663         * tests/unicase/test-u16-casecoll.c: Likewise.
22664         * tests/unicase/test-u16-casefold.c: Likewise.
22665         * tests/unicase/test-u16-is-cased.c: Likewise.
22666         * tests/unicase/test-u16-is-casefolded.c: Likewise.
22667         * tests/unicase/test-u16-is-lowercase.c: Likewise.
22668         * tests/unicase/test-u16-is-titlecase.c: Likewise.
22669         * tests/unicase/test-u16-is-uppercase.c: Likewise.
22670         * tests/unicase/test-u16-tolower.c: Likewise.
22671         * tests/unicase/test-u16-totitle.c: Likewise.
22672         * tests/unicase/test-u16-toupper.c: Likewise.
22673         * tests/unicase/test-u32-casecmp.c: Likewise.
22674         * tests/unicase/test-u32-casecoll.c: Likewise.
22675         * tests/unicase/test-u32-casefold.c: Likewise.
22676         * tests/unicase/test-u32-is-cased.c: Likewise.
22677         * tests/unicase/test-u32-is-casefolded.c: Likewise.
22678         * tests/unicase/test-u32-is-lowercase.c: Likewise.
22679         * tests/unicase/test-u32-is-titlecase.c: Likewise.
22680         * tests/unicase/test-u32-is-uppercase.c: Likewise.
22681         * tests/unicase/test-u32-tolower.c: Likewise.
22682         * tests/unicase/test-u32-totitle.c: Likewise.
22683         * tests/unicase/test-u32-toupper.c: Likewise.
22684         * tests/unicase/test-ulc-casecmp.c: Likewise.
22685         * tests/unicase/test-ulc-casecoll.c: Likewise.
22686         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
22687         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
22688         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
22689         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
22690         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
22691         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
22692         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
22693         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
22694         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
22695         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
22696         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
22697         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
22698         * tests/unictype/test-bidi_byname.c: Likewise.
22699         * tests/unictype/test-bidi_name.c: Likewise.
22700         * tests/unictype/test-bidi_of.c: Likewise.
22701         * tests/unictype/test-bidi_test.c: Likewise.
22702         * tests/unictype/test-block_list.c: Likewise.
22703         * tests/unictype/test-block_of.c: Likewise.
22704         * tests/unictype/test-block_test.c: Likewise.
22705         * tests/unictype/test-categ_and.c: Likewise.
22706         * tests/unictype/test-categ_and_not.c: Likewise.
22707         * tests/unictype/test-categ_byname.c: Likewise.
22708         * tests/unictype/test-categ_name.c: Likewise.
22709         * tests/unictype/test-categ_none.c: Likewise.
22710         * tests/unictype/test-categ_of.c: Likewise.
22711         * tests/unictype/test-categ_or.c: Likewise.
22712         * tests/unictype/test-categ_test_withtable.c: Likewise.
22713         * tests/unictype/test-combining.c: Likewise.
22714         * tests/unictype/test-decdigit.c: Likewise.
22715         * tests/unictype/test-digit.c: Likewise.
22716         * tests/unictype/test-mirror.c: Likewise.
22717         * tests/unictype/test-numeric.c: Likewise.
22718         * tests/unictype/test-pr_byname.c: Likewise.
22719         * tests/unictype/test-pr_test.c: Likewise.
22720         * tests/unictype/test-predicate-part1.h: Likewise.
22721         * tests/unictype/test-scripts.c: Likewise.
22722         * tests/unictype/test-sy_c_ident.c: Likewise.
22723         * tests/unictype/test-sy_java_ident.c: Likewise.
22724         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
22725         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
22726         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
22727         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
22728         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
22729         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
22730         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
22731         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
22732         * tests/uninorm/test-canonical-decomposition.c: Likewise.
22733         * tests/uninorm/test-compat-decomposition.c: Likewise.
22734         * tests/uninorm/test-composition.c: Likewise.
22735         * tests/uninorm/test-decomposing-form.c: Likewise.
22736         * tests/uninorm/test-decomposition.c: Likewise.
22737         * tests/uninorm/test-u8-nfc.c: Likewise.
22738         * tests/uninorm/test-u8-nfd.c: Likewise.
22739         * tests/uninorm/test-u8-nfkc.c: Likewise.
22740         * tests/uninorm/test-u8-nfkd.c: Likewise.
22741         * tests/uninorm/test-u8-normcmp.c: Likewise.
22742         * tests/uninorm/test-u8-normcoll.c: Likewise.
22743         * tests/uninorm/test-u16-nfc.c: Likewise.
22744         * tests/uninorm/test-u16-nfd.c: Likewise.
22745         * tests/uninorm/test-u16-nfkc.c: Likewise.
22746         * tests/uninorm/test-u16-nfkd.c: Likewise.
22747         * tests/uninorm/test-u16-normcmp.c: Likewise.
22748         * tests/uninorm/test-u16-normcoll.c: Likewise.
22749         * tests/uninorm/test-u32-nfc.c: Likewise.
22750         * tests/uninorm/test-u32-nfd.c: Likewise.
22751         * tests/uninorm/test-u32-nfkc.c: Likewise.
22752         * tests/uninorm/test-u32-nfkd.c: Likewise.
22753         * tests/uninorm/test-u32-normalize-big.c: Likewise.
22754         * tests/uninorm/test-u32-normcmp.c: Likewise.
22755         * tests/uninorm/test-u32-normcoll.c: Likewise.
22756         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
22757         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
22758         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
22759         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
22760         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
22761         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
22762         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
22763         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
22764         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
22765         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
22766         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
22767         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
22768         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
22769         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
22770         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
22771         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
22772         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
22773         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
22774         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
22775         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
22776         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
22777         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
22778         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
22779         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
22780         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
22781         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
22782         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
22783         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
22784         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
22785         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
22786         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
22787         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
22788         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
22789         * tests/uniwidth/test-u8-strwidth.c: Likewise.
22790         * tests/uniwidth/test-u8-width.c: Likewise.
22791         * tests/uniwidth/test-u16-strwidth.c: Likewise.
22792         * tests/uniwidth/test-u16-width.c: Likewise.
22793         * tests/uniwidth/test-u32-strwidth.c: Likewise.
22794         * tests/uniwidth/test-u32-width.c: Likewise.
22795         * tests/uniwidth/test-uc_width.c: Likewise.
22796         * tests/uniwidth/test-uc_width2.c: Likewise.
22797         * modules/acl-tests (Files): Add tests/macros.h.
22798         * modules/areadlink-tests (Files): Likewise.
22799         * modules/areadlink-with-size-tests (Files): Likewise.
22800         * modules/areadlinkat-tests (Files): Likewise.
22801         * modules/areadlinkat-with-size-tests (Files): Likewise.
22802         * modules/argmatch-tests (Files): Likewise.
22803         * modules/argv-iter-tests (Files): Likewise.
22804         * modules/array-list-tests (Files): Likewise.
22805         * modules/array-mergesort-tests (Files): Likewise.
22806         * modules/array-oset-tests (Files): Likewise.
22807         * modules/avltree-list-tests (Files): Likewise.
22808         * modules/avltree-oset-tests (Files): Likewise.
22809         * modules/avltreehash-list-tests (Files): Likewise.
22810         * modules/base64-tests (Files): Likewise.
22811         * modules/binary-io-tests (Files): Likewise.
22812         * modules/bitrotate-tests (Files): Likewise.
22813         * modules/btowc-tests (Files): Likewise.
22814         * modules/byteswap-tests (Files): Likewise.
22815         * modules/c-ctype-tests (Files): Likewise.
22816         * modules/c-stack-tests (Files): Likewise.
22817         * modules/c-strcase-tests (Files): Likewise.
22818         * modules/c-strcasestr-tests (Files): Likewise.
22819         * modules/c-strstr-tests (Files): Likewise.
22820         * modules/canonicalize-lgpl-tests (Files): Likewise.
22821         * modules/canonicalize-tests (Files): Likewise.
22822         * modules/carray-list-tests (Files): Likewise.
22823         * modules/ceilf-tests (Files): Likewise.
22824         * modules/ceill-tests (Files): Likewise.
22825         * modules/chown-tests (Files): Likewise.
22826         * modules/cloexec-tests (Files): Likewise.
22827         * modules/copy-file-tests (Files): Likewise.
22828         * modules/count-one-bits-tests (Files): Likewise.
22829         * modules/dprintf-posix-tests (Files): Likewise.
22830         * modules/dup2-tests (Files): Likewise.
22831         * modules/dup3-tests (Files): Likewise.
22832         * modules/duplocale-tests (Files): Likewise.
22833         * modules/fbufmode-tests (Files): Likewise.
22834         * modules/fchdir-tests (Files): Likewise.
22835         * modules/fcntl-safer-tests (Files): Likewise.
22836         * modules/fcntl-tests (Files): Likewise.
22837         * modules/fdopendir-tests (Files): Likewise.
22838         * modules/fdutimensat-tests (Files): Likewise.
22839         * modules/fflush-tests (Files): Likewise.
22840         * modules/filevercmp-tests (Files): Likewise.
22841         * modules/flock-tests (Files): Likewise.
22842         * modules/floorf-tests (Files): Likewise.
22843         * modules/floorl-tests (Files): Likewise.
22844         * modules/fnmatch-tests (Files): Likewise.
22845         * modules/fopen-safer-tests (Files): Likewise.
22846         * modules/fopen-tests (Files): Likewise.
22847         * modules/fpending-tests (Files): Likewise.
22848         * modules/fprintf-posix-tests (Files): Likewise.
22849         * modules/fpurge-tests (Files): Likewise.
22850         * modules/freadable-tests (Files): Likewise.
22851         * modules/freadahead-tests (Files): Likewise.
22852         * modules/freading-tests (Files): Likewise.
22853         * modules/freadptr-tests (Files): Likewise.
22854         * modules/freadseek-tests (Files): Likewise.
22855         * modules/freopen-tests (Files): Likewise.
22856         * modules/frexp-nolibm-tests (Files): Likewise.
22857         * modules/frexp-tests (Files): Likewise.
22858         * modules/frexpl-nolibm-tests (Files): Likewise.
22859         * modules/frexpl-tests (Files): Likewise.
22860         * modules/fseek-tests (Files): Likewise.
22861         * modules/fseeko-tests (Files): Likewise.
22862         * modules/fstrcmp-tests (Files): Likewise.
22863         * modules/fsync-tests (Files): Likewise.
22864         * modules/ftell-tests (Files): Likewise.
22865         * modules/ftello-tests (Files): Likewise.
22866         * modules/func-tests (Files): Likewise.
22867         * modules/futimens-tests (Files): Likewise.
22868         * modules/fwritable-tests (Files): Likewise.
22869         * modules/fwriting-tests (Files): Likewise.
22870         * modules/getcwd-tests (Files): Likewise.
22871         * modules/getdate-tests (Files): Likewise.
22872         * modules/getdelim-tests (Files): Likewise.
22873         * modules/getdtablesize-tests (Files): Likewise.
22874         * modules/getgroups-tests (Files): Likewise.
22875         * modules/getline-tests (Files): Likewise.
22876         * modules/getndelim2-tests (Files): Likewise.
22877         * modules/glob-tests (Files): Likewise.
22878         * modules/hash-tests (Files): Likewise.
22879         * modules/i-ring-tests (Files): Likewise.
22880         * modules/iconv-tests (Files): Likewise.
22881         * modules/iconv_open-utf-tests (Files): Likewise.
22882         * modules/idpriv-drop-tests (Files): Likewise.
22883         * modules/idpriv-droptemp-tests (Files): Likewise.
22884         * modules/inet_ntop-tests (Files): Likewise.
22885         * modules/inet_pton-tests (Files): Likewise.
22886         * modules/isblank-tests (Files): Likewise.
22887         * modules/isfinite-tests (Files): Likewise.
22888         * modules/isinf-tests (Files): Likewise.
22889         * modules/isnan-tests (Files): Likewise.
22890         * modules/isnand-nolibm-tests (Files): Likewise.
22891         * modules/isnand-tests (Files): Likewise.
22892         * modules/isnanf-nolibm-tests (Files): Likewise.
22893         * modules/isnanf-tests (Files): Likewise.
22894         * modules/isnanl-nolibm-tests (Files): Likewise.
22895         * modules/isnanl-tests (Files): Likewise.
22896         * modules/lchown-tests (Files): Likewise.
22897         * modules/ldexpl-tests (Files): Likewise.
22898         * modules/link-tests (Files): Likewise.
22899         * modules/linkat-tests (Files): Likewise.
22900         * modules/linked-list-tests (Files): Likewise.
22901         * modules/linkedhash-list-tests (Files): Likewise.
22902         * modules/localename-tests (Files): Likewise.
22903         * modules/lseek-tests (Files): Likewise.
22904         * modules/lstat-tests (Files): Likewise.
22905         * modules/mbmemcasecmp-tests (Files): Likewise.
22906         * modules/mbmemcasecoll-tests (Files): Likewise.
22907         * modules/mbrtowc-tests (Files): Likewise.
22908         * modules/mbscasecmp-tests (Files): Likewise.
22909         * modules/mbscasestr-tests (Files): Likewise.
22910         * modules/mbschr-tests (Files): Likewise.
22911         * modules/mbscspn-tests (Files): Likewise.
22912         * modules/mbsinit-tests (Files): Likewise.
22913         * modules/mbsncasecmp-tests (Files): Likewise.
22914         * modules/mbsnrtowcs-tests (Files): Likewise.
22915         * modules/mbspbrk-tests (Files): Likewise.
22916         * modules/mbspcasecmp-tests (Files): Likewise.
22917         * modules/mbsrchr-tests (Files): Likewise.
22918         * modules/mbsrtowcs-tests (Files): Likewise.
22919         * modules/mbsspn-tests (Files): Likewise.
22920         * modules/mbsstr-tests (Files): Likewise.
22921         * modules/memchr-tests (Files): Likewise.
22922         * modules/memchr2-tests (Files): Likewise.
22923         * modules/memcmp-tests (Files): Likewise.
22924         * modules/memmem-tests (Files): Likewise.
22925         * modules/memrchr-tests (Files): Likewise.
22926         * modules/mkdir-tests (Files): Likewise.
22927         * modules/mkfifo-tests (Files): Likewise.
22928         * modules/mkfifoat-tests (Files): Likewise.
22929         * modules/mknod-tests (Files): Likewise.
22930         * modules/nanosleep-tests (Files): Likewise.
22931         * modules/nl_langinfo-tests (Files): Likewise.
22932         * modules/obstack-printf-tests (Files): Likewise.
22933         * modules/open-tests (Files): Likewise.
22934         * modules/openat-tests (Files): Likewise.
22935         * modules/pipe-filter-gi-tests (Files): Likewise.
22936         * modules/pipe-filter-ii-tests (Files): Likewise.
22937         * modules/pipe2-tests (Files): Likewise.
22938         * modules/popen-safer-tests (Files): Likewise.
22939         * modules/popen-tests (Files): Likewise.
22940         * modules/posixtm-tests (Files): Likewise.
22941         * modules/pread-tests (Files): Likewise.
22942         * modules/printf-frexp-tests (Files): Likewise.
22943         * modules/printf-frexpl-tests (Files): Likewise.
22944         * modules/printf-posix-tests (Files): Likewise.
22945         * modules/priv-set-tests (Files): Likewise.
22946         * modules/quotearg-tests (Files): Likewise.
22947         * modules/random_r-tests (Files): Likewise.
22948         * modules/rawmemchr-tests (Files): Likewise.
22949         * modules/rbtree-list-tests (Files): Likewise.
22950         * modules/rbtree-oset-tests (Files): Likewise.
22951         * modules/rbtreehash-list-tests (Files): Likewise.
22952         * modules/readlink-tests (Files): Likewise.
22953         * modules/remove-tests (Files): Likewise.
22954         * modules/rename-tests (Files): Likewise.
22955         * modules/renameat-tests (Files): Likewise.
22956         * modules/rmdir-tests (Files): Likewise.
22957         * modules/round-tests (Files): Likewise.
22958         * modules/roundf-tests (Files): Likewise.
22959         * modules/roundl-tests (Files): Likewise.
22960         * modules/safe-alloc-tests (Files): Likewise.
22961         * modules/setenv-tests (Files): Likewise.
22962         * modules/sigaction-tests (Files): Likewise.
22963         * modules/signbit-tests (Files): Likewise.
22964         * modules/sleep-tests (Files): Likewise.
22965         * modules/snprintf-posix-tests (Files): Likewise.
22966         * modules/snprintf-tests (Files): Likewise.
22967         * modules/sprintf-posix-tests (Files): Likewise.
22968         * modules/stat-tests (Files): Likewise.
22969         * modules/stat-time-tests (Files): Likewise.
22970         * modules/strcasestr-tests (Files): Likewise.
22971         * modules/strchrnul-tests (Files): Likewise.
22972         * modules/strerror-tests (Files): Likewise.
22973         * modules/striconv-tests (Files): Likewise.
22974         * modules/striconveh-tests (Files): Likewise.
22975         * modules/striconveha-tests (Files): Likewise.
22976         * modules/strsignal-tests (Files): Likewise.
22977         * modules/strstr-tests (Files): Likewise.
22978         * modules/strtod-tests (Files): Likewise.
22979         * modules/strverscmp-tests (Files): Likewise.
22980         * modules/symlink-tests (Files): Likewise.
22981         * modules/symlinkat-tests (Files): Likewise.
22982         * modules/trunc-tests (Files): Likewise.
22983         * modules/truncf-tests (Files): Likewise.
22984         * modules/truncl-tests (Files): Likewise.
22985         * modules/uname-tests (Files): Likewise.
22986         * modules/unicase/cased-tests (Files): Likewise.
22987         * modules/unicase/ignorable-tests (Files): Likewise.
22988         * modules/unicase/locale-language-tests (Files): Likewise.
22989         * modules/unicase/tolower-tests (Files): Likewise.
22990         * modules/unicase/totitle-tests (Files): Likewise.
22991         * modules/unicase/toupper-tests (Files): Likewise.
22992         * modules/unicase/u8-casecmp-tests (Files): Likewise.
22993         * modules/unicase/u8-casecoll-tests (Files): Likewise.
22994         * modules/unicase/u8-casefold-tests (Files): Likewise.
22995         * modules/unicase/u8-is-cased-tests (Files): Likewise.
22996         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
22997         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
22998         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
22999         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
23000         * modules/unicase/u8-tolower-tests (Files): Likewise.
23001         * modules/unicase/u8-totitle-tests (Files): Likewise.
23002         * modules/unicase/u8-toupper-tests (Files): Likewise.
23003         * modules/unicase/u16-casecmp-tests (Files): Likewise.
23004         * modules/unicase/u16-casecoll-tests (Files): Likewise.
23005         * modules/unicase/u16-casefold-tests (Files): Likewise.
23006         * modules/unicase/u16-is-cased-tests (Files): Likewise.
23007         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
23008         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
23009         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
23010         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
23011         * modules/unicase/u16-tolower-tests (Files): Likewise.
23012         * modules/unicase/u16-totitle-tests (Files): Likewise.
23013         * modules/unicase/u16-toupper-tests (Files): Likewise.
23014         * modules/unicase/u32-casecmp-tests (Files): Likewise.
23015         * modules/unicase/u32-casecoll-tests (Files): Likewise.
23016         * modules/unicase/u32-casefold-tests (Files): Likewise.
23017         * modules/unicase/u32-is-cased-tests (Files): Likewise.
23018         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
23019         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
23020         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
23021         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
23022         * modules/unicase/u32-tolower-tests (Files): Likewise.
23023         * modules/unicase/u32-totitle-tests (Files): Likewise.
23024         * modules/unicase/u32-toupper-tests (Files): Likewise.
23025         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
23026         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
23027         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
23028         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
23029         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
23030         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
23031         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
23032         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
23033         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
23034         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
23035         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
23036         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
23037         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
23038         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
23039         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
23040         * modules/unictype/bidicategory-name-tests (Files): Likewise.
23041         * modules/unictype/bidicategory-of-tests (Files): Likewise.
23042         * modules/unictype/bidicategory-test-tests (Files): Likewise.
23043         * modules/unictype/block-list-tests (Files): Likewise.
23044         * modules/unictype/block-of-tests (Files): Likewise.
23045         * modules/unictype/block-test-tests (Files): Likewise.
23046         * modules/unictype/category-C-tests (Files): Likewise.
23047         * modules/unictype/category-Cc-tests (Files): Likewise.
23048         * modules/unictype/category-Cf-tests (Files): Likewise.
23049         * modules/unictype/category-Cn-tests (Files): Likewise.
23050         * modules/unictype/category-Co-tests (Files): Likewise.
23051         * modules/unictype/category-Cs-tests (Files): Likewise.
23052         * modules/unictype/category-L-tests (Files): Likewise.
23053         * modules/unictype/category-Ll-tests (Files): Likewise.
23054         * modules/unictype/category-Lm-tests (Files): Likewise.
23055         * modules/unictype/category-Lo-tests (Files): Likewise.
23056         * modules/unictype/category-Lt-tests (Files): Likewise.
23057         * modules/unictype/category-Lu-tests (Files): Likewise.
23058         * modules/unictype/category-M-tests (Files): Likewise.
23059         * modules/unictype/category-Mc-tests (Files): Likewise.
23060         * modules/unictype/category-Me-tests (Files): Likewise.
23061         * modules/unictype/category-Mn-tests (Files): Likewise.
23062         * modules/unictype/category-N-tests (Files): Likewise.
23063         * modules/unictype/category-Nd-tests (Files): Likewise.
23064         * modules/unictype/category-Nl-tests (Files): Likewise.
23065         * modules/unictype/category-No-tests (Files): Likewise.
23066         * modules/unictype/category-P-tests (Files): Likewise.
23067         * modules/unictype/category-Pc-tests (Files): Likewise.
23068         * modules/unictype/category-Pd-tests (Files): Likewise.
23069         * modules/unictype/category-Pe-tests (Files): Likewise.
23070         * modules/unictype/category-Pf-tests (Files): Likewise.
23071         * modules/unictype/category-Pi-tests (Files): Likewise.
23072         * modules/unictype/category-Po-tests (Files): Likewise.
23073         * modules/unictype/category-Ps-tests (Files): Likewise.
23074         * modules/unictype/category-S-tests (Files): Likewise.
23075         * modules/unictype/category-Sc-tests (Files): Likewise.
23076         * modules/unictype/category-Sk-tests (Files): Likewise.
23077         * modules/unictype/category-Sm-tests (Files): Likewise.
23078         * modules/unictype/category-So-tests (Files): Likewise.
23079         * modules/unictype/category-Z-tests (Files): Likewise.
23080         * modules/unictype/category-Zl-tests (Files): Likewise.
23081         * modules/unictype/category-Zp-tests (Files): Likewise.
23082         * modules/unictype/category-Zs-tests (Files): Likewise.
23083         * modules/unictype/category-and-not-tests (Files): Likewise.
23084         * modules/unictype/category-and-tests (Files): Likewise.
23085         * modules/unictype/category-byname-tests (Files): Likewise.
23086         * modules/unictype/category-name-tests (Files): Likewise.
23087         * modules/unictype/category-none-tests (Files): Likewise.
23088         * modules/unictype/category-of-tests (Files): Likewise.
23089         * modules/unictype/category-or-tests (Files): Likewise.
23090         * modules/unictype/category-test-withtable-tests (Files): Likewise.
23091         * modules/unictype/combining-class-tests (Files): Likewise.
23092         * modules/unictype/ctype-alnum-tests (Files): Likewise.
23093         * modules/unictype/ctype-alpha-tests (Files): Likewise.
23094         * modules/unictype/ctype-blank-tests (Files): Likewise.
23095         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
23096         * modules/unictype/ctype-digit-tests (Files): Likewise.
23097         * modules/unictype/ctype-graph-tests (Files): Likewise.
23098         * modules/unictype/ctype-lower-tests (Files): Likewise.
23099         * modules/unictype/ctype-print-tests (Files): Likewise.
23100         * modules/unictype/ctype-punct-tests (Files): Likewise.
23101         * modules/unictype/ctype-space-tests (Files): Likewise.
23102         * modules/unictype/ctype-upper-tests (Files): Likewise.
23103         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
23104         * modules/unictype/decimal-digit-tests (Files): Likewise.
23105         * modules/unictype/digit-tests (Files): Likewise.
23106         * modules/unictype/mirror-tests (Files): Likewise.
23107         * modules/unictype/numeric-tests (Files): Likewise.
23108         * modules/unictype/property-alphabetic-tests (Files): Likewise.
23109         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
23110         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
23111         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
23112         Likewise.
23113         * modules/unictype/property-bidi-block-separator-tests (Files):
23114         Likewise.
23115         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
23116         Likewise.
23117         * modules/unictype/property-bidi-common-separator-tests (Files):
23118         Likewise.
23119         * modules/unictype/property-bidi-control-tests (Files): Likewise.
23120         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
23121         Likewise.
23122         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
23123         Likewise.
23124         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
23125         Likewise.
23126         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
23127         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
23128         Likewise.
23129         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
23130         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
23131         Likewise.
23132         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
23133         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
23134         * modules/unictype/property-bidi-segment-separator-tests (Files):
23135         Likewise.
23136         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
23137         * modules/unictype/property-byname-tests (Files): Likewise.
23138         * modules/unictype/property-combining-tests (Files): Likewise.
23139         * modules/unictype/property-composite-tests (Files): Likewise.
23140         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
23141         * modules/unictype/property-dash-tests (Files): Likewise.
23142         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
23143         * modules/unictype/property-default-ignorable-code-point-tests (Files):
23144         Likewise.
23145         * modules/unictype/property-deprecated-tests (Files): Likewise.
23146         * modules/unictype/property-diacritic-tests (Files): Likewise.
23147         * modules/unictype/property-extender-tests (Files): Likewise.
23148         * modules/unictype/property-format-control-tests (Files): Likewise.
23149         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
23150         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
23151         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
23152         * modules/unictype/property-hex-digit-tests (Files): Likewise.
23153         * modules/unictype/property-hyphen-tests (Files): Likewise.
23154         * modules/unictype/property-id-continue-tests (Files): Likewise.
23155         * modules/unictype/property-id-start-tests (Files): Likewise.
23156         * modules/unictype/property-ideographic-tests (Files): Likewise.
23157         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
23158         * modules/unictype/property-ids-trinary-operator-tests (Files):
23159         Likewise.
23160         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
23161         * modules/unictype/property-iso-control-tests (Files): Likewise.
23162         * modules/unictype/property-join-control-tests (Files): Likewise.
23163         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
23164         * modules/unictype/property-line-separator-tests (Files): Likewise.
23165         * modules/unictype/property-logical-order-exception-tests (Files):
23166         Likewise.
23167         * modules/unictype/property-lowercase-tests (Files): Likewise.
23168         * modules/unictype/property-math-tests (Files): Likewise.
23169         * modules/unictype/property-non-break-tests (Files): Likewise.
23170         * modules/unictype/property-not-a-character-tests (Files): Likewise.
23171         * modules/unictype/property-numeric-tests (Files): Likewise.
23172         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
23173         * modules/unictype/property-other-default-ignorable-code-point-tests
23174         (Files): Likewise.
23175         * modules/unictype/property-other-grapheme-extend-tests (Files):
23176         Likewise.
23177         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
23178         * modules/unictype/property-other-id-start-tests (Files): Likewise.
23179         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
23180         * modules/unictype/property-other-math-tests (Files): Likewise.
23181         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
23182         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
23183         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
23184         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
23185         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
23186         * modules/unictype/property-private-use-tests (Files): Likewise.
23187         * modules/unictype/property-punctuation-tests (Files): Likewise.
23188         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
23189         * modules/unictype/property-radical-tests (Files): Likewise.
23190         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
23191         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
23192         * modules/unictype/property-space-tests (Files): Likewise.
23193         * modules/unictype/property-terminal-punctuation-tests (Files):
23194         Likewise.
23195         * modules/unictype/property-test-tests (Files): Likewise.
23196         * modules/unictype/property-titlecase-tests (Files): Likewise.
23197         * modules/unictype/property-unassigned-code-value-tests (Files):
23198         Likewise.
23199         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
23200         * modules/unictype/property-uppercase-tests (Files): Likewise.
23201         * modules/unictype/property-variation-selector-tests (Files): Likewise.
23202         * modules/unictype/property-white-space-tests (Files): Likewise.
23203         * modules/unictype/property-xid-continue-tests (Files): Likewise.
23204         * modules/unictype/property-xid-start-tests (Files): Likewise.
23205         * modules/unictype/property-zero-width-tests (Files): Likewise.
23206         * modules/unictype/scripts-tests (Files): Likewise.
23207         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
23208         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
23209         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
23210         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
23211         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
23212         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
23213         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
23214         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
23215         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
23216         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
23217         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
23218         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
23219         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
23220         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
23221         * modules/uninorm/composition-tests (Files): Likewise.
23222         * modules/uninorm/decomposing-form-tests (Files): Likewise.
23223         * modules/uninorm/decomposition-tests (Files): Likewise.
23224         * modules/uninorm/filter-tests (Files): Likewise.
23225         * modules/uninorm/nfc-tests (Files): Likewise.
23226         * modules/uninorm/nfd-tests (Files): Likewise.
23227         * modules/uninorm/nfkc-tests (Files): Likewise.
23228         * modules/uninorm/nfkd-tests (Files): Likewise.
23229         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
23230         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
23231         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
23232         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
23233         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
23234         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
23235         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
23236         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
23237         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
23238         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
23239         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
23240         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
23241         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
23242         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
23243         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
23244         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
23245         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
23246         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
23247         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
23248         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
23249         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
23250         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
23251         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
23252         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
23253         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
23254         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
23255         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
23256         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
23257         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
23258         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
23259         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
23260         * modules/uniwidth/u8-width-tests (Files): Likewise.
23261         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
23262         * modules/uniwidth/u16-width-tests (Files): Likewise.
23263         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
23264         * modules/uniwidth/u32-width-tests (Files): Likewise.
23265         * modules/uniwidth/width-tests (Files): Likewise.
23266         * modules/unlink-tests (Files): Likewise.
23267         * modules/unsetenv-tests (Files): Likewise.
23268         * modules/usleep-tests (Files): Likewise.
23269         * modules/utimens-tests (Files): Likewise.
23270         * modules/utimensat-tests (Files): Likewise.
23271         * modules/vasnprintf-posix-tests (Files): Likewise.
23272         * modules/vasnprintf-tests (Files): Likewise.
23273         * modules/vasprintf-posix-tests (Files): Likewise.
23274         * modules/vasprintf-tests (Files): Likewise.
23275         * modules/vdprintf-posix-tests (Files): Likewise.
23276         * modules/vfprintf-posix-tests (Files): Likewise.
23277         * modules/vprintf-posix-tests (Files): Likewise.
23278         * modules/vsnprintf-posix-tests (Files): Likewise.
23279         * modules/vsnprintf-tests (Files): Likewise.
23280         * modules/vsprintf-posix-tests (Files): Likewise.
23281         * modules/wcrtomb-tests (Files): Likewise.
23282         * modules/wcsnrtombs-tests (Files): Likewise.
23283         * modules/wcsrtombs-tests (Files): Likewise.
23284         * modules/wctype-tests (Files): Likewise.
23285         * modules/wcwidth-tests (Files): Likewise.
23286         * modules/xmemdup0-tests (Files): Likewise.
23287         * modules/xprintf-posix-tests (Files): Likewise.
23288         * modules/xvasprintf-tests (Files): Likewise.
23289
23290 2009-12-24  Eric Blake  <ebb9@byu.net>
23291
23292         test-nanosleep: fix typo
23293         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
23294         patch.
23295         Reported by Bruno Haible.
23296
23297 2009-12-24  Bruno Haible  <bruno@clisp.org>
23298
23299         Reduce namespace pollution on glibc systems.
23300         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
23301         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
23302         systems.
23303         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
23304         <getopt.h> on glibc systems.
23305         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
23306         systems.
23307         * lib/fcntl.c: Include <unistd.h> here instead.
23308
23309 2009-12-24  Bruno Haible  <bruno@clisp.org>
23310
23311         * lib/stdlib.in.h (includes): Fix typo in today's commit.
23312
23313 2009-12-24  Eric Blake  <ebb9@byu.net>
23314
23315         tests: add signature checks
23316         * tests/signature.h (SIGNATURE_CHECK): New file.
23317         * modules/atexit-tests (Files): Use it.
23318         * modules/btowc-tests (Files): Likewise.
23319         * modules/canonicalize-lgpl-tests (Files): Likewise.
23320         * modules/ceilf-tests (Files): Likewise.
23321         * modules/ceill-tests (Files): Likewise.
23322         * modules/chown-tests (Files): Likewise.
23323         * modules/dprintf-posix-tests (Files): Likewise.
23324         * modules/dup2-tests (Files): Likewise.
23325         * modules/dup3-tests (Files): Likewise.
23326         * modules/duplocale-tests (Files): Likewise.
23327         * modules/fchdir-tests (Files): Likewise.
23328         * modules/fcntl-tests (Files): Likewise.
23329         * modules/fdopendir-tests (Files): Likewise.
23330         * modules/fflush-tests (Files): Likewise.
23331         * modules/flock-tests (Files): Likewise.
23332         * modules/floorf-tests (Files): Likewise.
23333         * modules/floorl-tests (Files): Likewise.
23334         * modules/fnmatch-tests (Files): Likewise.
23335         * modules/fopen-tests (Files): Likewise.
23336         * modules/fprintf-posix-tests (Files): Likewise.
23337         * modules/freopen-tests (Files): Likewise.
23338         * modules/frexp-nolibm-tests (Files): Likewise.
23339         * modules/frexp-tests (Files): Likewise.
23340         * modules/frexpl-nolibm-tests (Files): Likewise.
23341         * modules/frexpl-tests (Files): Likewise.
23342         * modules/fseek-tests (Files): Likewise.
23343         * modules/fseeko-tests (Files): Likewise.
23344         * modules/fsync-tests (Files): Likewise.
23345         * modules/ftell-tests (Files): Likewise.
23346         * modules/ftello-tests (Files): Likewise.
23347         * modules/futimens-tests (Files): Likewise.
23348         * modules/getaddrinfo-tests (Files): Likewise.
23349         * modules/getcwd-tests (Files): Likewise.
23350         * modules/getdelim-tests (Files): Likewise.
23351         * modules/getdtablesize-tests (Files): Likewise.
23352         * modules/getgroups-tests (Files): Likewise.
23353         * modules/gethostname-tests (Files): Likewise.
23354         * modules/getline-tests (Files): Likewise.
23355         * modules/getopt-posix-tests (Files): Likewise.
23356         * modules/gettimeofday-tests (Files): Likewise.
23357         * modules/glob-tests (Files): Likewise.
23358         * modules/iconv-tests (Files): Likewise.
23359         * modules/inet_ntop-tests (Files): Likewise.
23360         * modules/inet_pton-tests (Files): Likewise.
23361         * modules/isblank-tests (Files): Likewise.
23362         * modules/lchown-tests (Files): Likewise.
23363         * modules/ldexpl-tests (Files): Likewise.
23364         * modules/link-tests (Files): Likewise.
23365         * modules/linkat-tests (Files): Likewise.
23366         * modules/lseek-tests (Files): Likewise.
23367         * modules/lstat-tests (Files): Likewise.
23368         * modules/mbrtowc-tests (Files): Likewise.
23369         * modules/mbsinit-tests (Files): Likewise.
23370         * modules/mbsnrtowcs-tests (Files): Likewise.
23371         * modules/mbsrtowcs-tests (Files): Likewise.
23372         * modules/memchr-tests (Files): Likewise.
23373         * modules/memcmp-tests (Files): Likewise.
23374         * modules/memmem-tests (Files): Likewise.
23375         * modules/memrchr-tests (Files): Likewise.
23376         * modules/mkdir-tests (Files): Likewise.
23377         * modules/mkfifo-tests (Files): Likewise.
23378         * modules/mkfifoat-tests (Files): Likewise.
23379         * modules/mknod-tests (Files): Likewise.
23380         * modules/nanosleep-tests (Files): Likewise.
23381         * modules/nl_langinfo-tests (Files): Likewise.
23382         * modules/obstack-printf-tests (Files): Likewise.
23383         * modules/open-tests (Files): Likewise.
23384         * modules/openat-tests (Files): Likewise.
23385         * modules/perror-tests (Files): Likewise.
23386         * modules/pipe2-tests (Files): Likewise.
23387         * modules/poll-tests (Files): Likewise.
23388         * modules/popen-tests (Files): Likewise.
23389         * modules/posix_spawn-tests (Files): Likewise.
23390         * modules/posix_spawnp-tests (Files): Likewise.
23391         * modules/pread-tests (Files): Likewise.
23392         * modules/printf-posix-tests (Files): Likewise.
23393         * modules/pty-tests (Files): Likewise.
23394         * modules/random_r-tests (Files): Likewise.
23395         * modules/rawmemchr-tests (Files): Likewise.
23396         * modules/readlink-tests (Files): Likewise.
23397         * modules/remove-tests (Files): Likewise.
23398         * modules/rename-tests (Files): Likewise.
23399         * modules/renameat-tests (Files): Likewise.
23400         * modules/rmdir-tests (Files): Likewise.
23401         * modules/round-tests (Files): Likewise.
23402         * modules/roundf-tests (Files): Likewise.
23403         * modules/roundl-tests (Files): Likewise.
23404         * modules/select-tests (Files): Likewise.
23405         * modules/setenv-tests (Files): Likewise.
23406         * modules/sigaction-tests (Files): Likewise.
23407         * modules/sleep-tests (Files): Likewise.
23408         * modules/snprintf-posix-tests (Files): Likewise.
23409         * modules/snprintf-tests (Files): Likewise.
23410         * modules/sprintf-posix-tests (Files): Likewise.
23411         * modules/stat-tests (Files): Likewise.
23412         * modules/strcasestr-tests (Files): Likewise.
23413         * modules/strchrnul-tests (Files): Likewise.
23414         * modules/strerror-tests (Files): Likewise.
23415         * modules/strsignal-tests (Files): Likewise.
23416         * modules/strstr-tests (Files): Likewise.
23417         * modules/strtod-tests (Files): Likewise.
23418         * modules/strverscmp-tests (Files): Likewise.
23419         * modules/symlink-tests (Files): Likewise.
23420         * modules/symlinkat-tests (Files): Likewise.
23421         * modules/times-tests (Files): Likewise.
23422         * modules/trunc-tests (Files): Likewise.
23423         * modules/truncf-tests (Files): Likewise.
23424         * modules/truncl-tests (Files): Likewise.
23425         * modules/tsearch-tests (Files): Likewise.
23426         * modules/uname-tests (Files): Likewise.
23427         * modules/unlink-tests (Files): Likewise.
23428         * modules/unsetenv-tests (Files): Likewise.
23429         * modules/usleep-tests (Files): Likewise.
23430         * modules/utimensat-tests (Files): Likewise.
23431         * modules/vasprintf-tests (Files): Likewise.
23432         * modules/vdprintf-posix-tests (Files): Likewise.
23433         * modules/vfprintf-posix-tests (Files): Likewise.
23434         * modules/vprintf-posix-tests (Files): Likewise.
23435         * modules/vsnprintf-posix-tests (Files): Likewise.
23436         * modules/vsnprintf-tests (Files): Likewise.
23437         * modules/vsprintf-posix-tests (Files): Likewise.
23438         * modules/wcrtomb-tests (Files): Likewise.
23439         * modules/wcsnrtombs-tests (Files): Likewise.
23440         * modules/wcsrtombs-tests (Files): Likewise.
23441         * modules/wcwidth-tests (Files): Likewise.
23442         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
23443         * tests/test-isinf.c (isinf): Likewise.
23444         * tests/test-isnan.c (isnan): Likewise.
23445         * tests/test-signbit.c (signbit): Likewise.
23446         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
23447         declaration, either as macro or with correct signature.
23448         (select): Ensure function under test is declared with correct
23449         signature in correct header.
23450         * tests/test-atexit.c (atexit): Likewise.
23451         * tests/test-btowc.c (btowc): Likewise.
23452         * tests/test-canonicalize-lgpl.c (realpath)
23453         (canonicalize_file_name): Likewise.
23454         * tests/test-ceilf1.c (ceilf): Likewise.
23455         * tests/test-ceill.c (ceill): Likewise.
23456         * tests/test-chown.c (chown): Likewise.
23457         * tests/test-dprintf-posix.c (dprintf): Likewise.
23458         * tests/test-dup2.c (dup2): Likewise.
23459         * tests/test-dup3.c (dup3): Likewise.
23460         * tests/test-duplocale.c (duplocale): Likewise.
23461         * tests/test-fchdir.c (fchdir): Likewise.
23462         * tests/test-fchownat.c (fchownat): Likewise.
23463         * tests/test-fcntl.c (fcntl): Likewise.
23464         * tests/test-fdopendir.c (fdopendir): Likewise.
23465         * tests/test-fflush.c (fflush): Likewise.
23466         * tests/test-flock.c (flock): Likewise.
23467         * tests/test-floorf1.c (floorf): Likewise.
23468         * tests/test-floorl.c (floorl): Likewise.
23469         * tests/test-fnmatch.c (fnmatch): Likewise.
23470         * tests/test-fopen.c (fopen): Likewise.
23471         * tests/test-fprintf-posix.c (fprintf): Likewise.
23472         * tests/test-freopen.c (freopen): Likewise.
23473         * tests/test-frexp.c (frexp): Likewise.
23474         * tests/test-frexpl.c (frexpl): Likewise.
23475         * tests/test-fseek.c (fseek): Likewise.
23476         * tests/test-fseeko.c (fseeko): Likewise.
23477         * tests/test-fstatat.c (fstatat): Likewise.
23478         * tests/test-fsync.c (fsync): Likewise.
23479         * tests/test-ftell.c (ftell): Likewise.
23480         * tests/test-ftello.c (ftello): Likewise.
23481         * tests/test-futimens.c (futimens): Likewise.
23482         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
23483         (gai_strerror): Likewise.
23484         * tests/test-getcwd.c (getcwd): Likewise.
23485         * tests/test-getdelim.c (getdelim): Likewise.
23486         * tests/test-getdtablesize.c (getdtablesize): Likewise.
23487         * tests/test-getgroups.c (getgroups): Likewise.
23488         * tests/test-gethostname.c (gethostname): Likewise.
23489         * tests/test-getline.c (getline): Likewise.
23490         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
23491         Likewise.
23492         * tests/test-gettimeofday.c (gettimeofday): Likewise.
23493         * tests/test-glob.c (glob, globfree): Likewise.
23494         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
23495         * tests/test-inet_ntop.c (inet_ntop): Likewise.
23496         * tests/test-inet_pton.c (inet_pton): Likewise.
23497         * tests/test-isblank.c (isblank): Likewise.
23498         * tests/test-lchown.c (lchown): Likewise.
23499         * tests/test-ldexpl.c (ldexpl): Likewise.
23500         * tests/test-link.c (link): Likewise.
23501         * tests/test-linkat.c (linkat): Likewise.
23502         * tests/test-lseek.c (lseek): Likewise.
23503         * tests/test-lstat.c (lstat): Likewise.
23504         * tests/test-mbrtowc.c (mbrtowc): Likewise.
23505         * tests/test-mbsinit.c (mbsinit): Likewise.
23506         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
23507         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
23508         * tests/test-memchr.c (memchr): Likewise.
23509         * tests/test-memcmp.c (memcmp): Likewise.
23510         * tests/test-memmem.c (memmem): Likewise.
23511         * tests/test-memrchr.c (memrchr): Likewise.
23512         * tests/test-mkdir.c (mkdir): Likewise.
23513         * tests/test-mkdirat.c (mkdirat): Likewise.
23514         * tests/test-mkfifo.c (mkfifo): Likewise.
23515         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
23516         * tests/test-mknod.c (mknod): Likewise.
23517         * tests/test-nanosleep.c (nanosleep): Likewise.
23518         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
23519         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
23520         Likewise.
23521         * tests/test-open.c (open): Likewise.
23522         * tests/test-openat.c (openat): Likewise.
23523         * tests/test-perror.c (perror): Likewise.
23524         * tests/test-pipe2.c (pipe2): Likewise.
23525         * tests/test-poll.c (poll): Likewise.
23526         * tests/test-popen.c (popen, pclose): Likewise.
23527         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
23528         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
23529         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
23530         (posix_spawn_file_actions_destroy)
23531         (posix_spawn_file_actions_addclose)
23532         (posix_spawn_file_actions_addopen)
23533         (posix_spawn_file_actions_adddup2): Likewise.
23534         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
23535         * tests/test-pread.c (pread): Likewise.
23536         * tests/test-printf-posix.c (printf): Likewise.
23537         * tests/test-pty.c (openpty, forkpty): Likewise.
23538         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
23539         (random_r): Likewise.
23540         * tests/test-rawmemchr.c (rawmemchr): Likewise.
23541         * tests/test-readlink.c (readlink): Likewise.
23542         * tests/test-remove.c (remove): Likewise.
23543         * tests/test-rename.c (rename): Likewise.
23544         * tests/test-renameat.c (renameat): Likewise.
23545         * tests/test-rmdir.c (rmdir): Likewise.
23546         * tests/test-round1.c (round): Likewise.
23547         * tests/test-roundf1.c (roundf): Likewise.
23548         * tests/test-roundl.c (roundl): Likewise.
23549         * tests/test-setenv.c (setenv): Likewise.
23550         * tests/test-sigaction.c (sigaction): Likewise.
23551         * tests/test-sleep.c (sleep): Likewise.
23552         * tests/test-snprintf.c (snprintf): Likewise.
23553         * tests/test-sprintf-posix.c (sprintf): Likewise.
23554         * tests/test-stat.c (stat): Likewise.
23555         * tests/test-stpncpy.c (stpncpy): Likewise.
23556         * tests/test-strcasestr.c (strcasestr): Likewise.
23557         * tests/test-strchrnul.c (strchrnul): Likewise.
23558         * tests/test-strerror.c (strerror): Likewise.
23559         * tests/test-strsignal.c (strsignal): Likewise.
23560         * tests/test-strstr.c (strstr): Likewise.
23561         * tests/test-strtod.c (strtod): Likewise.
23562         * tests/test-strverscmp.c (strverscmp): Likewise.
23563         * tests/test-symlink.c (symlink): Likewise.
23564         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
23565         * tests/test-times.c (times): Likewise.
23566         * tests/test-trunc1.c (trunc): Likewise.
23567         * tests/test-truncf1.c (truncf): Likewise.
23568         * tests/test-truncl.c (truncl): Likewise.
23569         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
23570         Likewise.
23571         * tests/test-uname.c (uname): Likewise.
23572         * tests/test-unlink.c (unlink): Likewise.
23573         * tests/test-unlinkat.c (unlinkat): Likewise.
23574         * tests/test-unsetenv.c (unsetenv): Likewise.
23575         * tests/test-usleep.c (usleep): Likewise.
23576         * tests/test-utimensat.c (utimensat): Likewise.
23577         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
23578         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
23579         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
23580         * tests/test-vprintf-posix.c (vprintf): Likewise.
23581         * tests/test-vsnprintf.c (vsnprintf): Likewise.
23582         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
23583         * tests/test-wcrtomb.c (wcrtomb): Likewise.
23584         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
23585         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
23586         * tests/test-wcwidth.c (wcwidth): Likewise.
23587
23588         build: pull in conditional headers during GNULIB_POSIXCHECK
23589         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
23590         definitions from any conditionally-included headers.
23591         * lib/stdlib.in.h (includes): Likewise.
23592         * lib/unistd.in.h (includes): Likewise.
23593
23594 2009-12-24  Bruno Haible  <bruno@clisp.org>
23595
23596         * tests/test-argv-iter.c: Include header file being tested immediately
23597         after config.h.
23598         * tests/test-base64.c: Likewise.
23599         * tests/test-flock.c: Likewise.
23600         * tests/test-fsync.c: Likewise.
23601         * tests/test-getdate.c: Likewise.
23602         * tests/test-getndelim2.c: Likewise.
23603         * tests/test-isfinite.c: Likewise.
23604         * tests/test-isinf.c: Likewise.
23605         * tests/test-strerror.c: Likewise.
23606         * tests/test-strsignal.c: Likewise.
23607
23608 2009-12-23  Eric Blake  <ebb9@byu.net>
23609
23610         unistd: work around cygwin bug
23611         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
23612         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
23613         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
23614
23615 2009-12-23  Bruno Haible  <bruno@clisp.org>
23616
23617         localename: More tests.
23618         * tests/test-localename.c (SIZEOF): New macro.
23619         (categories): New variable.
23620         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
23621         test_locale_name_default): Add test w.r.t. thread locale.
23622         (test_locale_name_thread): New function.
23623         (main): Invoke it.
23624
23625         localename: Make aware of thread locale.
23626         * lib/localename.h (gl_locale_name_thread): New declaration.
23627         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
23628         behaviour with respect to thread locale.
23629         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
23630         <langinfo.h>, glthread/lock.h.
23631         (SIZE_BITS): New macro.
23632         (string_hash): New function.
23633         (struct hash_node): New type.
23634         (HASH_TABLE_SIZE): New macro.
23635         (struniq_hash_table, struniq_lock): New variables.
23636         (struniq): New function.
23637         (gl_locale_name_thread): New function.
23638         (gl_locale_name): Invoke it.
23639         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
23640         * modules/localename (Depends-on): Add lock.
23641         Reported by Mike Gran <spk121@yahoo.com>.
23642
23643 2009-12-23  Eric Blake  <ebb9@byu.net>
23644
23645         va-args: new module
23646         * modules/va-args: New file.
23647         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
23648         * MODULES.html.sh (Core language properties): Mention it.
23649
23650         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
23651         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
23652         named alias for __attribute__((__unused__)).
23653         * lib/chown.c: Update client.
23654         * lib/fchmodat.c: Likewise.
23655         * lib/fts.c: Likewise.
23656         * lib/getdate.y: Likewise.
23657         * lib/getgroups.c: Likewise.
23658         * lib/getopt.c: Likewise.
23659         * lib/getugroups.c: Likewise.
23660         * lib/mkdir.c: Likewise.
23661         * lib/mkfifo.c: Likewise.
23662         * lib/mkfifoat.c: Likewise.
23663         * lib/mknod.c: Likewise.
23664         * lib/mknodat.c: Likewise.
23665         * lib/readlink.c: Likewise.
23666         * lib/se-context.in.h: Likewise.
23667         * lib/se-selinux.in.h: Likewise.
23668         * lib/sockets.c: Likewise.
23669         * lib/symlink.c: Likewise.
23670         * lib/symlinkat.c: Likewise.
23671         * lib/unicodeio.c: Likewise.
23672         * lib/unistr.h: Likewise.
23673         * tests/test-areadlink.c: Likewise.
23674         * tests/test-areadlinkat.c: Likewise.
23675         * tests/test-filenamecat.c: Likewise.
23676         * tests/test-fseeko.c: Likewise.
23677         * tests/test-ftello.c: Likewise.
23678         * tests/test-getdate.c: Likewise.
23679         * tests/test-getgroups.c: Likewise.
23680         * tests/test-gethostname.c: Likewise.
23681         * tests/test-quotearg.c: Likewise.
23682         * tests/test-version-etc.c: Likewise.
23683         * tests/test-xalloc-die.c: Likewise.
23684         * tests/test-xfprintf-posix.c: Likewise.
23685         * tests/test-xprintf-posix.c: Likewise.
23686         * tests/test-xvasprintf.c: Likewise.
23687
23688         tests: avoid compiler warnings
23689         * tests/test-fcntl.c (main): Delete unused parameters.
23690         * tests/test-freopen-safer.c (main): Likewise.
23691         * tests/test-xalloc-die.c (main): Mark unused parameters.
23692         * tests/test-fseeko.c (main): Likewise.
23693         * tests/test-ftello.c (main): Likewise.
23694         * tests/test-nanosleep.c (main): Avoid declaration warning.
23695         * tests/test-sleep.c (main): Likewise.
23696         * tests/test-unsetenv.c (main): Silence warning about string
23697         literal.
23698         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
23699
23700 2009-12-23  Bruno Haible  <bruno@clisp.org>
23701
23702         * tests/test-localename.c (test_locale_name): New function, extracted
23703         from main. Also test mixed situations.
23704         (test_locale_name_posix, test_locale_name_environ,
23705         test_locale_name_default): New functions.
23706         (main): Invoke them all.
23707         * modules/localename-tests (configure.ac): Test for newlocale.
23708
23709 2009-12-23  Bruno Haible  <bruno@clisp.org>
23710
23711         unistd: Ensure getcwd gets declared before being overridden.
23712         * lib/unistd.in.h: Conditionally include <io.h>.
23713
23714 2009-12-22  Bruno Haible  <bruno@clisp.org>
23715
23716         wchar: Diagnose broken combination of glibc and gcc versions and flags.
23717         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
23718         (gl_WCHAR_H): Invoke it.
23719         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
23720         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
23721         Reported by Karl Berry <karl@freefriends.org>.
23722
23723 2009-12-22  Eric Blake  <ebb9@byu.net>
23724
23725         math, unistd: avoid redundant includes
23726         * lib/math.in.h (isnan): No need to re-include <math.h>.
23727         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
23728
23729         getsubopt: work around cygwin bug
23730         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
23731         avoid conflicting with system getsubopt.
23732         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
23733         bug.
23734
23735         getopt: synchronize from glibc
23736         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
23737         parameter order.  Adjust all callers.
23738         (_getopt_internal_r, main): Adjust quoting in error messages.
23739         Drop considerations for outdated POSIX 1003.2 error message.
23740         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
23741         callers.
23742         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
23743
23744         test-getopt: test stderr behavior
23745         * modules/getopt-posix-tests (Depends-on): Add dup2.
23746         * tests/test-getopt.c (ASSERT): Avoid stderr.
23747         (main): Move stderr to a temporary file.
23748         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
23749         Instead, add parameter to inform caller if output occurred.
23750         (test_getopt): Adjust all existing tests to expect silence, and
23751         add new tests of leading ":".
23752         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
23753         glibc shortcomings with leading "-:" or "+:" in optstring.
23754         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23755         Likewise.
23756         * doc/posix-functions/getopt.texi (getopt): Likewise.
23757
23758         test-getopt: enhance test
23759         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
23760         supports optind=0.
23761         * tests/test-getopt.c (OPTIND_MIN): Move...
23762         * tests/test-getopt.h (OPTIND_MIN): ...here.
23763         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
23764         Require that optind=0 works, since modern BSD supports it in
23765         addition to optreset, and since coreutils expects it.
23766         (test_getopt_long_only): New test.
23767         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
23768         glibc shortcomings with 'W;', and enforcement of optind=0.
23769         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23770         Likewise.
23771
23772 2009-12-21  Bruno Haible  <bruno@clisp.org>
23773
23774         localename: Improvements for MacOS X and Cygwin.
23775         * lib/localename.h (gl_locale_name_environ): New declaration.
23776         * lib/localename.c (gl_locale_name_environ): New function, extracted from
23777         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
23778         (gl_locale_name_posix): Invoke it.
23779         (gl_locale_name_default): Add comments. Use Windows native API also on
23780         Cygwin.
23781
23782 2009-12-21  Bruno Haible  <bruno@clisp.org>
23783
23784         Update list of Win32 locale ids.
23785         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
23786         (LANG_SAMI): Renamed from LANG_SAAMI.
23787         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
23788         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
23789         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
23790         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
23791         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
23792         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
23793         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
23794         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
23795         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
23796         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
23797         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
23798         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
23799         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
23800         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
23801         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
23802         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
23803         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
23804         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
23805         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
23806         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
23807         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
23808         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
23809         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
23810         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
23811         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
23812         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
23813         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
23814         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
23815         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
23816         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
23817         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
23818         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
23819         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
23820         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
23821         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
23822         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
23823         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
23824         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
23825         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
23826         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
23827         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
23828         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
23829         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
23830         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
23831         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
23832         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
23833         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
23834         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
23835         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
23836         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
23837         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
23838         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
23839         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
23840         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
23841         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
23842         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
23843         Add more languages and countries for Sami, Sorbian. Add more countries
23844         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
23845         for Pashto. Change country for Syriac, Tswana.
23846
23847 2009-12-21  Eric Blake  <ebb9@byu.net>
23848
23849         test-utimens: avoid spurious failure
23850         * tests/test-chown.h (nap): Factor...
23851         * tests/nap.h: ...into new file.
23852         * tests/test-lchown.h (nap): Avoid duplication.
23853         * tests/test-utimens-common.h (nap): Use shared implementation,
23854         necessary on file systems with 1-second resolution.
23855         * modules/chown-tests (Files): Include new file.
23856         * modules/fdutimensat-tests (Files): Likewise.
23857         * modules/futimens-tests (Files): Likewise.
23858         * modules/lchown-tests (Files): Likewise.
23859         * modules/openat-tests (Files): Likewise.
23860         * modules/utimens-tests (Files): Likewise.
23861         * modules/utimensat-tests (Files): Likewise.
23862
23863 2009-12-19  Eric Blake  <ebb9@byu.net>
23864
23865         futimens, utimensat: work around Linux bug
23866         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
23867         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23868         * lib/utimensat.c (rpl_utimensat): Work around it.
23869         * lib/futimens.c (rpl_futimens): Adjust comment.
23870
23871         utimens: work around Linux ctime bug
23872         * lib/utimens.c (detect_ctime_bug): New helper function.
23873         (update_timespec): Differentiate between workaround needed for
23874         this bug vs. what is needed for systems that lack utimensat.
23875         (fdutimens, lutimens): Work around bug.
23876
23877         utimens: check for ctime update
23878         * tests/test-utimens-common.h (check_ctime): Define.
23879         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
23880         * tests/test-futimens.h (test_futimens): Likewise.
23881         * tests/test-lutimens.h (test_lutimens): Likewise.
23882         * doc/posix-functions/futimens.texi (futimens): Document the bug.
23883         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
23884
23885 2009-12-19  Bruno Haible  <bruno@clisp.org>
23886
23887         dprintf-posix: Check against memory leak fixed on 2009-12-15.
23888         * tests/test-dprintf-posix2.sh: New file.
23889         * tests/test-dprintf-posix2.c: New file.
23890         * modules/dprintf-posix-tests (Files): Add them.
23891         (configure.ac): Check for getrlimit and setrlimit.
23892         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
23893
23894 2009-12-19  Bruno Haible  <bruno@clisp.org>
23895
23896         fprintf-posix: Check against memory leak fixed on 2009-12-15.
23897         * tests/test-fprintf-posix3.sh: New file.
23898         * tests/test-fprintf-posix3.c: New file.
23899         * modules/fprintf-posix-tests (Files): Add them.
23900         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
23901
23902 2009-12-19  Eric Blake  <ebb9@byu.net>
23903
23904         dirfd: fix prototype
23905         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
23906         * lib/dirfd.c (dirfd): Likewise.
23907
23908         canonicalize: reduce memory usage
23909         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
23910         allocation to size.
23911         Reported by Solar Designer <solar@openwall.com>.
23912
23913 2009-12-19  Bruno Haible  <bruno@clisp.org>
23914
23915         New module attribute 'Applicability'.
23916         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
23917         * gnulib-tool: New option --extract-applicability.
23918         (func_usage): Document it.
23919         (sed_extract_prog): Recognize it.
23920         (func_get_applicability): New function.
23921         (func_import): Generalize handling of 'link-warning' module.
23922         * modules/link-warning (Applicability): New section.
23923         * modules/arg-nonnull (Applicability): New section.
23924         Repoted by Simon Josefsson <simon@josefsson.org>.
23925
23926 2009-12-19  Bruno Haible  <bruno@clisp.org>
23927
23928         fflush: tweak
23929         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
23930         * lib/fseeko.c (rpl_fseeko): Likewise.
23931
23932 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
23933
23934         * lib/gl_list.h: Fix typo in comment.
23935
23936 2009-12-16  Eric Blake  <ebb9@byu.net>
23937
23938         fcntl: use to simplify other modules
23939         * modules/cloexec (Depends-on): Add fcntl.
23940         * modules/fchdir (Depends-on): Likewise.
23941         * modules/fd-safer-flag (Depends-on): Likewise.
23942         * modules/unistd-safer (Depends-on): Likewise.
23943         * modules/dup3 (configure.ac): Set module indicator.
23944         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
23945         missing.
23946         * lib/fchdir.c (_gl_register_dup): Fix comment.
23947         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
23948         * lib/dup-safer.c (dup_safer): Likewise.
23949         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
23950         * lib/dup3.c (dup3): Likewise.
23951         * tests/test-fchdir.c (main): Enhance test.
23952         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
23953
23954         fcntl: port portions of fcntl to mingw
23955         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
23956         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
23957         replacement for mingw.
23958         * modules/fcntl (Description): Update.
23959         (Depends-on): Add dup2.
23960         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
23961         * modules/fcntl-h (Makefile.am): Substitute it.
23962         * lib/fcntl.in.h (fcntl): Update declaration.
23963         (F_DUPFD, F_GETFD): New macros, when needed.
23964         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
23965         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
23966         * tests/test-fcntl.c (check_flags, main): Enhance test for items
23967         we now guarantee.
23968
23969         fcntl: work around cygwin bug in F_DUPFD
23970         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
23971         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
23972         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
23973         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
23974         * doc/posix-functions/fcntl.texi (fcntl): Document it.
23975
23976         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
23977         * modules/fcntl (Files): List new files.
23978         (configure.ac): Run a test.
23979         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
23980         * lib/fcntl.c (rpl_fcntl): Likewise.
23981         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
23982         (gl_FCNTL_H): Always replace fcntl.h.
23983         * modules/fcntl-h (Makefile.am): Substitute witnesses.
23984         * lib/fcntl.in.h (fcntl): Declare replacement.
23985         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
23986         needed, plus a witness.
23987         * doc/posix-functions/fcntl.texi (fcntl): Document this.
23988         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
23989         * tests/test-fcntl.c: New file.
23990         * modules/fcntl-tests: Likewise.
23991
23992         binary-io: avoid potential compilation warning
23993         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
23994         directives.
23995
23996         fflush: avoid compilation error on NetBSD
23997         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
23998         between off_t and fpos_t, since the latter is sometimes a struct.
23999         * lib/fseeko.c (rpl_fseeko): Likewise.
24000         Reported by Alexander Nasonov <alnsn@yandex.ru>.
24001
24002 2009-12-15  Eric Blake  <ebb9@byu.net>
24003
24004         fcntl-h, stdio, sys_ioctl: fix declarations
24005         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
24006         function must not take arguments.
24007         * lib/sys_ioctl.in.h (ioctl): Likewise.
24008         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
24009         (open): Add a link warning.
24010
24011 2009-12-15  Jim Meyering  <meyering@redhat.com>
24012
24013         areadlink, areadlink-with-size: relax license to LGPLv2+
24014         * modules/areadlink (License): Relax to LGPLv2+.
24015         * modules/areadlink-with-size (License): Likewise.
24016
24017 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
24018             Bruno Haible  <bruno@clisp.org>
24019
24020         *printf: Fix memory leak.
24021         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
24022         * lib/vfprintf.c (vfprintf): Likewise.
24023         * lib/dprintf.c (dprintf): Likewise.
24024         * lib/vdprintf.c (vdprintf): Likewise.
24025
24026 2009-12-14  Eric Blake  <ebb9@byu.net>
24027
24028         accept4: adjust module dependencies
24029         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
24030
24031         utimens: one more try at avoiding compiler warning
24032         * lib/utimens.c (lutimens): Lower scope of result.
24033
24034 2009-12-13  Bruno Haible  <bruno@clisp.org>
24035
24036         Move the malloc checking from module 'list' to new module 'xlist'.
24037         * modules/xlist: New file.
24038         * lib/gl_xlist.h: New file.
24039         * lib/gl_xlist.c: New file.
24040         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
24041         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
24042         gl_list_add_last, gl_list_add_before, gl_list_add_after,
24043         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
24044         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
24045         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
24046         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
24047         gl_sortedlist_nx_add): New declarations.
24048         (struct gl_list_implementation): Rename and change methods accordingly.
24049         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
24050         (gl_list_nx_create): Renamed from gl_list_create.
24051         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
24052         (gl_list_nx_set_at): Renamed from gl_list_set_at.
24053         (gl_list_nx_add_first): Renamed from gl_list_add_first.
24054         (gl_list_nx_add_last): Renamed from gl_list_add_last.
24055         (gl_list_nx_add_before): Renamed from gl_list_add_before.
24056         (gl_list_nx_add_after): Renamed from gl_list_add_after.
24057         (gl_list_nx_add_at): Renamed from gl_list_add_at.
24058         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
24059         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
24060         gl_list_create_empty.
24061         (gl_list_nx_create): Renamed from gl_list_create.
24062         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
24063         (gl_list_nx_set_at): Renamed from gl_list_set_at.
24064         (gl_list_nx_add_first): Renamed from gl_list_add_first.
24065         (gl_list_nx_add_last): Renamed from gl_list_add_last.
24066         (gl_list_nx_add_before): Renamed from gl_list_add_before.
24067         (gl_list_nx_add_after): Renamed from gl_list_add_after.
24068         (gl_list_nx_add_at): Renamed from gl_list_add_at.
24069         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
24070         * lib/gl_array_list.c: Don't include xalloc.h.
24071         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
24072         NULL upon out-of-memory.
24073         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
24074         out-of-memory.
24075         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
24076         Change return type to 'int'.
24077         (gl_array_nx_set_at): Renamed from gl_array_set_at.
24078         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
24079         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
24080         upon out-of-memory.
24081         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
24082         upon out-of-memory.
24083         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
24084         upon out-of-memory.
24085         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
24086         upon out-of-memory.
24087         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
24088         out-of-memory.
24089         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
24090         Update.
24091         (gl_array_list_implementation): Update.
24092         * lib/gl_carray_list.c: Don't include xalloc.h.
24093         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
24094         Return NULL upon out-of-memory.
24095         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
24096         out-of-memory.
24097         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
24098         Change return type to 'int'.
24099         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
24100         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
24101         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
24102         upon out-of-memory.
24103         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
24104         upon out-of-memory.
24105         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
24106         out-of-memory.
24107         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
24108         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
24109         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
24110         Update.
24111         (gl_carray_list_implementation): Update.
24112         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
24113         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
24114         gl_linked_create_empty. Return NULL upon out-of-memory.
24115         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
24116         out-of-memory.
24117         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
24118         Change return type to 'int'. Return -1 upon out-of-memory.
24119         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
24120         out-of-memory.
24121         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
24122         upon out-of-memory.
24123         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
24124         upon out-of-memory.
24125         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
24126         NULL upon out-of-memory.
24127         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
24128         upon out-of-memory.
24129         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
24130         out-of-memory.
24131         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
24132         Update.
24133         * lib/gl_linked_list.c: Don't include xalloc.h.
24134         (gl_linked_list_implementation): Update.
24135         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
24136         (add_to_bucket): Change return type to 'int'.
24137         (gl_linkedhash_list_implementation): Update.
24138         * lib/gl_anytree_list1.h (free_subtree): New function.
24139         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
24140         gl_tree_create_empty. Return NULL upon out-of-memory.
24141         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
24142         Change return type to 'int'. Return -1 upon out-of-memory.
24143         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
24144         out-of-memory.
24145         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
24146         (gl_tree_remove_node): New function, moved here from
24147         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
24148         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
24149         Update.
24150         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
24151         malloc, not xmalloc. Return NULL upon out-of-memory.
24152         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
24153         out-of-memory.
24154         (gl_tree_remove_node_from_tree): New function, extracted from
24155         gl_tree_remove_node.
24156         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
24157         upon out-of-memory.
24158         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
24159         out-of-memory.
24160         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
24161         upon out-of-memory.
24162         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
24163         upon out-of-memory.
24164         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
24165         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
24166         not xmalloc. Return NULL upon out-of-memory.
24167         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
24168         out-of-memory.
24169         (gl_tree_remove_node_from_tree): New function, extracted from
24170         gl_tree_remove_node.
24171         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
24172         upon out-of-memory.
24173         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
24174         out-of-memory.
24175         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
24176         upon out-of-memory.
24177         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
24178         upon out-of-memory.
24179         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
24180         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
24181         gl_anytree_list1.h before gl_anyavltree_list2.h.
24182         (gl_avltree_list_implementation): Update.
24183         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
24184         gl_anytree_list1.h before gl_anyavltree_list2.h.
24185         (gl_rbtree_list_implementation): Update.
24186         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
24187         Change return type to 'int'. Return -1 upon out-of-memory. Use
24188         __builtin_expect.
24189         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
24190         (gl_avltreehash_list_implementation): Update.
24191         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
24192         (gl_rbtreehash_list_implementation): Update.
24193         * modules/array-list (Depends-on): Remove xalloc.
24194         * modules/carray-list (Depends-on): Likewise.
24195         * modules/linked-list (Depends-on): Likewise.
24196         * modules/linkedhash-list (Depends-on): Likewise.
24197         * modules/avltree-list (Depends-on): Likewise.
24198         * modules/rbtree-list (Depends-on): Likewise.
24199         * modules/avltreehash-list (Depends-on): Likewise.
24200         * modules/rbtreehash-list (Depends-on): Likewise.
24201
24202         * modules/xsublist: New file.
24203         * lib/gl_xsublist.h: New file.
24204         * lib/gl_xsublist.c: New file.
24205         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
24206         (gl_sublist_nx_create): New declaration.
24207         * lib/gl_sublist.c: Don't include xalloc.h.
24208         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
24209         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
24210         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
24211         Change return type to 'int'. Return -1 upon out-of-memory.
24212         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
24213         upon out-of-memory.
24214         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
24215         NULL upon out-of-memory.
24216         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
24217         upon out-of-memory.
24218         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
24219         NULL upon out-of-memory.
24220         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
24221         NULL upon out-of-memory.
24222         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
24223         upon out-of-memory.
24224         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
24225         (gl_sublist_list_implementation): Update.
24226         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
24227         upon out-of-memory.
24228         * modules/sublist (Depends-on): Remove xalloc.
24229
24230         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
24231         * tests/test-carray_list.c: Likewise.
24232         * tests/test-linked_list.c: Likewise.
24233         * tests/test-linkedhash_list.c: Likewise.
24234         * tests/test-avltree_list.c: Likewise.
24235         * tests/test-rbtree_list.c: Likewise.
24236         * tests/test-avltreehash_list.c: Likewise.
24237         * tests/test-rbtreehash_list.c: Likewise.
24238         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
24239         * modules/carray-list-tests (Makefile.am): Likewise.
24240         * modules/linked-list-tests (Makefile.am): Likewise.
24241         * modules/linkedhash-list-tests (Makefile.am): Likewise.
24242         * modules/avltree-list-tests (Makefile.am): Likewise.
24243         * modules/rbtree-list-tests (Makefile.am): Likewise.
24244         * modules/avltreehash-list-tests (Makefile.am): Likewise.
24245         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
24246
24247         * NEWS: Mention the changes.
24248
24249         * lib/clean-temp.c: Include gl_xlist.h.
24250         * modules/clean-temp (Depends-on): Add xlist.
24251
24252         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
24253         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
24254
24255         * tests/test-array_oset.c: Include gl_xlist.h.
24256         * modules/array-oset-tests (Depends-on): Add xlist.
24257
24258         Reported by José E. Marchesi <jemarch@gnu.org>.
24259
24260 2009-12-13  Bruno Haible  <bruno@clisp.org>
24261
24262         Move the malloc checking from module 'oset' to new module 'xoset'.
24263         * modules/xoset: New file.
24264         * lib/gl_xoset.h: New file.
24265         * lib/gl_xoset.c: New file.
24266         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
24267         declarations.
24268         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
24269         (struct gl_oset_implementation): Rename and change methods accordingly.
24270         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
24271         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
24272         'int'. Mark as __warn_unused_result__.
24273         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
24274         gl_oset_create_empty.
24275         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
24276         'int'.
24277         * lib/gl_array_oset.c: Don't include xalloc.h.
24278         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
24279         malloc, not xmalloc.
24280         (grow): Change return type to 'int'. Don't call xalloc_die.
24281         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
24282         to 'int'.
24283         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
24284         'int'.
24285         (gl_array_oset_implementation): Update.
24286         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
24287         gl_tree_create_empty.
24288         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
24289         'int'.
24290         * lib/gl_avltree_oset.c: Don't include xalloc.h.
24291         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
24292         xmalloc.
24293         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
24294         not xmalloc.
24295         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
24296         xmalloc.
24297         (gl_avltree_oset_implementation): Update.
24298         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
24299         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
24300         xmalloc.
24301         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
24302         not xmalloc.
24303         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
24304         xmalloc.
24305         (gl_rbtree_oset_implementation): Update.
24306         * modules/array-oset (Depends-on): Remove xalloc.
24307         * modules/avltree-oset (Depends-on): Likewise.
24308         * modules/rbtree-oset (Depends-on): Likewise.
24309         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
24310         * tests/test-avltree_oset.c: Likewise.
24311         * tests/test-rbtree_oset.c: Likewise.
24312         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
24313         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
24314         * modules/rbtree-oset-tests (Makefile.am): Likewise.
24315         * NEWS: Mention the change.
24316
24317 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
24318
24319         maint.mk: allow a project to override release-prep commands
24320         * top/maint.mk (alpha, beta, stable): Move release-preparatory
24321         commands into a new rule.
24322         (release-prep): New rule.
24323         (release-prep-hook): New overridable variable.
24324
24325 2009-12-13  Bruno Haible  <bruno@clisp.org>
24326
24327         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
24328
24329 2009-12-13  Jim Meyering  <meyering@redhat.com>
24330
24331         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
24332         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
24333
24334 2009-12-12  Bruno Haible  <bruno@clisp.org>
24335
24336         duplocale: Tweak.
24337         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
24338
24339 2009-12-12  Karl Berry  <karl@gnu.org>
24340
24341         * config/srclist.txt (strtoll.c): tab changes, no more sync.
24342
24343 2009-12-12  Bruno Haible  <bruno@clisp.org>
24344
24345         * m4/po.m4: Undo incorrect untabification.
24346
24347 2009-12-12  Bruno Haible  <bruno@clisp.org>
24348
24349         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
24350         * modules/c-strtod (Depends-on): Add locale.
24351         * modules/c-strtold (Depends-on): Likewise.
24352
24353 2009-12-12  Bruno Haible  <bruno@clisp.org>
24354
24355         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
24356
24357 2009-12-11  Eric Blake  <ebb9@byu.net>
24358
24359         setenv: relax requirement in light of POSIX ruling
24360         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
24361         not NULL.
24362         * tests/test-setenv.c (main): Relax test.
24363         * tests/test-unsetenv.c (main): Likewise.
24364         * doc/posix-functions/setenv.texi (setenv): Document this.
24365         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
24366
24367 2009-12-11  Bruno Haible  <bruno@clisp.org>
24368
24369         New module 'fd-safer-flag'.
24370         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
24371         * lib/dup-safer.c (dup_safer_flag): Remove function.
24372         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
24373         * lib/fd-safer.c (fd_safer_flag): Remove function.
24374         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
24375         * modules/cloexec (configure.ac): Drop indicator macro.
24376         * modules/fd-safer-flag: New file.
24377         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
24378         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
24379         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
24380
24381 2009-12-11  Bruno Haible  <bruno@clisp.org>
24382
24383         Tests for module 'nl_langinfo'.
24384         * modules/nl_langinfo-tests: New file.
24385         * tests/test-nl_langinfo.sh: New file.
24386         * tests/test-nl_langinfo.c: New file.
24387
24388         New module 'nl_langinfo'.
24389         * lib/nl_langinfo.c: New file.
24390         * m4/nl_langinfo.m4: New file.
24391         * modules/nl_langinfo: New file.
24392         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
24393
24394 2009-12-11  Bruno Haible  <bruno@clisp.org>
24395
24396         Tests for module 'langinfo'.
24397         * modules/langinfo-tests: New file.
24398         * tests/test-langinfo.c: New file.
24399
24400         New module 'langinfo'.
24401         * lib/langinfo.in.h: New file.
24402         * m4/langinfo_h.m4: New file.
24403         * modules/langinfo: New file.
24404         * doc/posix-headers/langinfo.texi: Mention the new module.
24405
24406 2009-12-11  Bruno Haible  <bruno@clisp.org>
24407
24408         * lib/config.charset: Untabify.
24409
24410 2009-12-11  Bruno Haible  <bruno@clisp.org>
24411
24412         * modules/unistd-safer (configure.ac): Drop indicator macro.
24413
24414 2009-12-11  Bruno Haible  <bruno@clisp.org>
24415
24416         Move pipe2-safer code to its own file.
24417         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
24418         * lib/pipe-safer.c (pipe2_safer): Remove function.
24419         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
24420         (Makefile.am): Add it to lib_SOURCES.
24421
24422 2009-12-10  Bruno Haible  <bruno@clisp.org>
24423
24424         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
24425
24426 2009-12-10  Bruno Haible  <bruno@clisp.org>
24427
24428         Declare which arguments expect non-NULL values, for GCC and clang.
24429         * build-aux/arg-nonnull.h: New file.
24430         * modules/arg-nonnull: New file.
24431         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
24432         (inet_ntop, inet_pton): Use it.
24433         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
24434         (closedir, dirfd, opendir, scandir, alphasort): Use it.
24435         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
24436         (open, openat): Use it.
24437         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
24438         (fnmatch): Use it.
24439         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
24440         (getopt, getopt_long, getopt_long_only): Use it.
24441         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
24442         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
24443         Use it.
24444         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
24445         (iconv_open): Use it.
24446         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
24447         (strtoimax, strtoumax): Use it.
24448         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
24449         (duplocale): Use it.
24450         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
24451         (frexp, frexpl): Use it.
24452         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
24453         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
24454         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
24455         (tsearch, tfind, tdelete, twalk): Use it.
24456         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
24457         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
24458         sigpending): Use it.
24459         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
24460         (posix_spawn, posix_spawnp, posix_spawnattr_init,
24461         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
24462         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
24463         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
24464         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
24465         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
24466         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
24467         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
24468         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
24469         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
24470         Use it.
24471         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
24472         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
24473         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
24474         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
24475         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
24476         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
24477         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
24478         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
24479         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
24480         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
24481         strtoull, unsetenv): Use it.
24482         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
24483         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
24484         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
24485         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
24486         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
24487         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
24488         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
24489         (strcasecmp, strncasecmp): Use it.
24490         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
24491         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
24492         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
24493         rpl_setsockopt): Use it.
24494         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
24495         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
24496         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
24497         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
24498         (gettimeofday): Use it.
24499         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
24500         (times): Use it.
24501         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
24502         (uname): Use it.
24503         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
24504         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
24505         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
24506         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
24507         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
24508         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
24509         unlinkat, write): Use it.
24510         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
24511         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
24512         * lib/argv-iter.h: Include arg-nonnull.h.
24513         (_ATTRIBUTE_NONNULL_): Remove macro.
24514         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
24515         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
24516         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
24517         optimization.
24518         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
24519         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
24520         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
24521         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
24522         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
24523         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
24524         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
24525         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
24526         * modules/arpa_inet (Depends-on): Add arg-nonnull.
24527         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
24528         * modules/dirent (Depends-on): Add arg-nonnull.
24529         (Makefile.am): Insert arg-nonnull.h into dirent.h.
24530         * modules/fcntl-h (Depends-on): Add arg-nonnull.
24531         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
24532         * modules/fnmatch (Depends-on): Add arg-nonnull.
24533         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
24534         * modules/getopt-posix (Depends-on): Add arg-nonnull.
24535         (Makefile.am): Insert arg-nonnull.h into getopt.h.
24536         * modules/glob (Depends-on): Add arg-nonnull.
24537         (Makefile.am): Insert arg-nonnull.h into glob.h.
24538         * modules/iconv_open (Depends-on): Add arg-nonnull.
24539         (Makefile.am): Insert arg-nonnull.h into iconv.h.
24540         * modules/inttypes (Depends-on): Add arg-nonnull.
24541         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
24542         * modules/locale (Depends-on): Add arg-nonnull.
24543         (Makefile.am): Insert arg-nonnull.h into locale.h.
24544         * modules/math (Depends-on): Add arg-nonnull.
24545         (Makefile.am): Insert arg-nonnull.h into math.h.
24546         * modules/netdb (Depends-on): Add arg-nonnull.
24547         (Makefile.am): Insert arg-nonnull.h into netdb.h.
24548         * modules/search (Depends-on): Add arg-nonnull.
24549         (Makefile.am): Insert arg-nonnull.h into search.h.
24550         * modules/signal (Depends-on): Add arg-nonnull.
24551         (Makefile.am): Insert arg-nonnull.h into signal.h.
24552         * modules/spawn (Depends-on): Add arg-nonnull.
24553         (Makefile.am): Insert arg-nonnull.h into spawn.h.
24554         * modules/stdio (Depends-on): Add arg-nonnull.
24555         (Makefile.am): Insert arg-nonnull.h into stdio.h.
24556         * modules/stdlib (Depends-on): Add arg-nonnull.
24557         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
24558         * modules/string (Depends-on): Add arg-nonnull.
24559         (Makefile.am): Insert arg-nonnull.h into string.h.
24560         * modules/strings (Depends-on): Add arg-nonnull.
24561         (Makefile.am): Insert arg-nonnull.h into strings.h.
24562         * modules/sys_socket (Depends-on): Add arg-nonnull.
24563         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
24564         * modules/sys_stat (Depends-on): Add arg-nonnull.
24565         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
24566         * modules/sys_time (Depends-on): Add arg-nonnull.
24567         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
24568         * modules/sys_times (Depends-on): Add arg-nonnull.
24569         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
24570         * modules/sys_utsname (Depends-on): Add arg-nonnull.
24571         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
24572         * modules/time (Depends-on): Add arg-nonnull.
24573         (Makefile.am): Insert arg-nonnull.h into time.h.
24574         * modules/unistd (Depends-on): Add arg-nonnull.
24575         (Makefile.am): Insert arg-nonnull.h into unistd.h.
24576         * modules/wchar (Depends-on): Add arg-nonnull.
24577         (Makefile.am): Insert arg-nonnull.h into wchar.h.
24578         * modules/argv-iter (Depends-on): Add arg-nonnull.
24579         * tests/test-canonicalize.c (null_ptr): New function.
24580         (main): Use it.
24581         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
24582         (main): Use it.
24583         * tests/test-memmem.c (null_ptr): New function.
24584         (main): Use it.
24585         Reported by Jim Meyering.
24586
24587 2009-12-10  Bruno Haible  <bruno@clisp.org>
24588
24589         Use spaces for indentation, not tabs.
24590         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
24591         * m4/*.m4: Untabify.
24592         * build-aux/*.h: Untabify.
24593         * tests/**/*.[hc]: Untabify.
24594         * README: New section "Indent with spaces, not TABs", based on
24595         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
24596         * NEWS: Mention the change.
24597
24598 2009-12-10  Bruno Haible  <bruno@clisp.org>
24599
24600         pty test: Fix link error.
24601         * modules/pty-tests (Makefile.am): Add the default LDADD value to
24602         test_pty_LDADD.
24603
24604 2009-12-07  Simon Josefsson  <simon@josefsson.org>
24605
24606         * modules/pty: New file.
24607         * modules/pty-tests: New file.
24608         * m4/pty.m4: New file.
24609         * tests/test-pty.c: New file.
24610         * doc/glibc-headers/pty.texi: Modified.
24611         * doc/glibc-functions/forkpty.texi: Modified.
24612         * doc/glibc-functions/openpty.texi: Modified.
24613
24614 2009-12-10  Bruno Haible  <bruno@clisp.org>
24615
24616         Avoid syntax error in C++ mode.
24617         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
24618
24619 2009-12-10  Bruno Haible  <bruno@clisp.org>
24620
24621         Use sed with option -e.
24622         * gnulib-tool (func_version, func_emit_copyright_notice,
24623         func_emit_initmacro_end, func_import, func_create_testdir): Pass
24624         option -e to sed.
24625         * modules/link-warning (Makefile.am): Likewise.
24626
24627 2009-12-10  Jim Meyering  <meyering@redhat.com>
24628
24629         mgetgroups: do not write bytes beyond end of malloc'd buffer
24630         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
24631         username, we call getgroups with a one-element-shorter buffer,
24632         but still told it the length was original, max_n_groups.
24633
24634 2009-12-09  Eric Blake  <ebb9@byu.net>
24635
24636         cloexec: relax license
24637         * modules/cloexec (Maintainer): Add myself.
24638         (License): Use LGPL, not GPL.
24639
24640         link-warning: optimize generation
24641         * modules/link-warning (Makefile.am): Reduce process usage.
24642
24643 2009-12-09  Bruno Haible  <bruno@clisp.org>
24644
24645         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
24646         workaround was added on 2009-11-17.
24647
24648 2009-12-09  Jim Meyering  <meyering@redhat.com>
24649             Bruno Haible  <bruno@clisp.org>
24650
24651         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
24652         * modules/link-warning (Makefile.am): Make the comment-removing sed
24653         command more robust in the face of bootstrap-prepended comment lines.
24654
24655 2009-12-09  Bruno Haible  <bruno@clisp.org>
24656
24657         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
24658         most one group.
24659
24660 2009-12-09  Simon Josefsson <simon@josefsson.org>
24661             Bruno Haible  <bruno@clisp.org>
24662
24663         * build-aux/link-warning.h: Add copyright notice.
24664         * modules/link-warning (Makefile.am): Generate link-warning.h from
24665         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
24666         * NEWS: Mention change in link-warning module.
24667         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
24668         * modules/dirent (Makefile.am): Add dependency to dirent.h.
24669         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
24670         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
24671         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
24672         * modules/math (Makefile.am): Add dependency to math.h.
24673         * modules/search (Makefile.am): Add dependency to search.h.
24674         * modules/signal (Makefile.am): Add dependency to signal.h.
24675         * modules/spawn (Makefile.am): Add dependency to spawn.h.
24676         * modules/stdio (Makefile.am): Add dependency to stdio.h.
24677         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
24678         * modules/string (Makefile.am): Add dependency to string.h.
24679         * modules/strings (Makefile.am): Add dependency to strings.h.
24680         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
24681         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
24682         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
24683         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
24684         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
24685         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
24686         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
24687         * modules/unistd (Makefile.am): Add dependency to unistd.h.
24688         * modules/wchar (Makefile.am): Add dependency to wchar.h.
24689
24690 2009-12-09  Bruno Haible  <bruno@clisp.org>
24691
24692         fchdir: Optimize away rpl_fstat when possible.
24693         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
24694         REPLACE_OPEN_DIRECTORY.
24695         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
24696
24697 2009-12-09  Bruno Haible  <bruno@clisp.org>
24698
24699         * lib/fchdir.c: Update comment.
24700
24701 2009-12-09  Bruno Haible  <bruno@clisp.org>
24702
24703         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
24704
24705 2009-12-08  Eric Blake  <ebb9@byu.net>
24706
24707         fchdir: avoid memory leak on re-registration.
24708         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
24709
24710 2009-12-08  Jim Meyering  <meyering@redhat.com>
24711
24712         init.sh: avoid Solaris 10 /bin/sh portability problem
24713         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
24714         sourced script:
24715           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
24716           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
24717           bar
24718         tests/init.sh relied on that, accepting a --set-path=DIR argument,
24719         and two tests used that idiom.
24720         * tests/init.sh: Update suggested usage comments.
24721         (path_prepend_): New function, to be used in place
24722         of the --src-path=DIR option.
24723         (setup_): Move PATH-prepending code into path_prepend_.
24724         * tests/test-pread.sh: Adapt to new usage.
24725         * tests/test-xalloc-die.sh: Likewise.
24726
24727 2009-12-08  Simon Josefsson  <simon@josefsson.org>
24728
24729         * doc/gnulib.texi (Glibc pty.h): Add.
24730         * doc/glibc-functions/forkpty.texi: Add.
24731         * doc/glibc-functions/openpty.texi: Add.
24732         Suggested by Bruno Haible.
24733
24734 2009-12-08  Eric Blake  <ebb9@byu.net>
24735
24736         fchdir: fix logic bugs
24737         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
24738         * tests/test-fchdir.c (main): Enhance test.
24739         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
24740         is in use.
24741
24742         dup2: fix logic bugs
24743         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
24744         REPLACE_DUP2 to decide when rpl_dup2 is needed.
24745         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
24746         exists.
24747         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
24748
24749 2009-12-07  Eric Blake  <ebb9@byu.net>
24750
24751         unlink: fix m4 detection
24752         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
24753
24754         unistd-safer: add unit test
24755         * modules/unistd-safer-tests: New file.
24756         * tests/test-dup-safer.c: Likewise.
24757         * tests/test-cloexec.c (setmode): Avoid compiler warning.
24758         * tests/test-dup2.c (setmode): Likewise.
24759         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
24760
24761         cloexec: preserve text vs. binary across dup_cloexec
24762         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
24763         mode.
24764         * modules/dup2-tests (Depends-on): Add binary-io.
24765         * modules/cloexec-tests (Depends-on): Likewise.
24766         * tests/test-dup2.c (setmode, is_mode): New helpers.
24767         (main): Add tests that translation mode is preserved.
24768         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
24769         Reported by Bruno Haible.
24770
24771         mgetgroups: reduce duplicate listings
24772         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
24773         resulting array.
24774         * tests/test-chown.h (test_chown): Simplify client.
24775         * tests/test-lchown.h (test_lchown): Likewise.
24776
24777 2009-12-06  Bruno Haible  <bruno@clisp.org>
24778
24779         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
24780         value.
24781
24782 2009-12-06  Bruno Haible  <bruno@clisp.org>
24783
24784         * lib/progname.c: Include stdio.h, stdlib.h.
24785         (set_program_name): Reject a NULL argument.
24786
24787 2009-12-05  Eric Blake  <ebb9@byu.net>
24788
24789         pipe2-safer: new module
24790         * modules/pipe2-safer: New file.
24791         * lib/unistd-safer.h (pipe2_safer): New prototype.
24792         * lib/unistd--.h (pipe2): New wrapper.
24793         * lib/pipe-safer.c (pipe2_safer): New function.
24794         * modules/pipe (Depends-on): Add pipe2-safer.
24795         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
24796
24797         stdlib-safer: preserve cloexec flag for mkostemp[s]
24798         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
24799         fd_safer_flag.
24800
24801         unistd-safer: allow preservation of cloexec status via flag
24802         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
24803         prototypes.
24804         * lib/dup-safer.c (dup_safer_flag): New function.
24805         * lib/fd-safer.c (fd_safer_flag): Likewise.
24806         * modules/cloexec (configure.ac): Set witness.
24807
24808         test-dup2: enhance test
24809         * modules/dup2-tests (Depends-on): Add cloexec.
24810         * tests/test-dup2.c (main): Enhance test.
24811
24812         cloexec: add dup_cloexec
24813         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
24814         header and comments.
24815         * lib/cloexec.c (set_cloexec_flag): Add comments.
24816         (dup_cloexec): New function, with mingw implementation borrowed
24817         from...
24818         * lib/w32spawn.h (dup_noinherit): ...here.
24819         * modules/execute (Depends-on): Add cloexec.
24820         * modules/pipe (Depends-on): Likewise.
24821         * modules/cloexec (Depends-on): Add dup2.
24822         * modules/cloexec-tests (Files): New file.
24823         * tests/test-cloexec.c: Likewise.
24824
24825         test-xalloc-die: fix test for mingw
24826         * modules/xalloc-die-tests (Files): Add tests/init.sh.
24827         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
24828         directory and .exe suffix off argv[0] output.
24829
24830         test-fseeko: fix test for mingw
24831         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
24832         than undefining fseek, so test will pass on mingw.
24833
24834 2009-12-05  Bruno Haible  <bruno@clisp.org>
24835
24836         * lib/progname.h (set_program_name): Clarify specification.
24837         * lib/progname.c (set_program_name): Likewise.
24838         Reported by Jim Meyering.
24839
24840 2009-12-05  Jim Meyering  <meyering@redhat.com>
24841
24842         maint.mk: backslash-escape parens in default regexp
24843         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
24844         backslash-escape the literal parentheses.
24845
24846         maint.mk: news-date-check: use grep -E
24847         * top/maint.mk (today): Define a Make variable, not a...
24848         (news-date-check): ...shell variable.
24849         (news-date-regexp): Use the Make variable.
24850         Use grep's -E option.  Change the failing diagnostic to mention
24851         the variable, $(news-date-regexp).
24852
24853 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
24854
24855         maintainer-makefile: allow customization of NEWS entry format
24856         * top/maint.mk (news-date-regexp): New overridable variable.
24857         (news-date-check): Use it.
24858
24859 2009-12-04  Eric Blake  <ebb9@byu.net>
24860
24861         mgetgroups: add xgetgroups, and avoid ENOSYS failures
24862         * lib/mgetgroups.h (xgetgroups): New prototype.
24863         * lib/mgetgroups.c (xgetgroups): New wrapper.
24864         (mgetgroups): Handle ENOSYS.
24865         * modules/mgetgroups (Depends-on): Add realloc.
24866         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
24867
24868         mgetgroups: avoid argument promotion issues with -1
24869         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
24870         for invalid gid_t.
24871         * tests/test-chown.h (getegid, test_chown): Likewise.
24872         * tests/test-lchown.h (getegid, test_lchown): Likewise.
24873
24874 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
24875
24876         exclude: Fix header file problems.
24877         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
24878
24879 2009-12-01  Jim Meyering  <meyering@redhat.com>
24880
24881         fts: fts_open: do not let an empty string cause immediate failure
24882         This is required in support of GNU rm, for which the command
24883         "rm A '' B" must process and remove both A and B, in spite of
24884         the empty string argument.
24885         * lib/fts.c (fts_open): Do not let the presence of an empty string
24886         cause fts_open to fail immediately.  Most fts-using tools must be
24887         able to process all arguments, in order, and can be expected to
24888         diagnose such arguments themselves.
24889
24890 2009-11-30  Eric Blake  <ebb9@byu.net>
24891
24892         utimens: fix compilation error
24893         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
24894         Declare variable at right scope.
24895
24896 2009-11-29  Jim Meyering  <meyering@redhat.com>
24897
24898         bootstrap: handle perl-5.11's changed --version output
24899         * build-aux/bootstrap (get_version): Handle perl separately,
24900         since perl-5.11's --version output is different.
24901
24902 2009-11-28  Jim Meyering  <meyering@redhat.com>
24903
24904         userspec: depend on the inttostr module, too
24905         * modules/userspec (Depends-on): Add inttostr.
24906
24907         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
24908         * lib/userspec.c (parse_with_separator): Do not accept a user ID
24909         number of MAXUID when it evaluates to (uid_t) -1.
24910         Likewise for group ID.  Reported by Matt McCutchen in
24911         <http://savannah.gnu.org/bugs/?28113>
24912
24913         userspec: reformat to use spaces, not TABs
24914         * lib/userspec.c: Expand TABs to spaces.
24915         Add Emacs' "indent-tabs-mode: nil" hint.
24916
24917 2009-11-27  Eric Blake  <ebb9@byu.net>
24918
24919         getopt-gnu: flush out another BSD bug
24920         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
24921         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
24922         flush out BSD bug.
24923         * tests/test-getopt.h (test_getopt): End lists with NULL.
24924         * tests/test-getopt_long.h (test_getopt_long): Likewise.
24925         (test_getopt_long_posix): Enhance test.
24926         * modules/getopt-posix-tests (Depends-on): Add stdbool.
24927         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
24928         getopt-gnu.
24929         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24930         Likewise.
24931
24932 2009-11-27  Simon Josefsson  <simon@josefsson.org>
24933
24934         * modules/idpriv-droptemp-tests (Notice): Fix text.
24935
24936 2009-11-27  Jim Meyering  <meyering@redhat.com>
24937
24938         test-xalloc-die: avoid spurious failure due to libtool argv difference
24939         In a libtool-enabled project, this test would fail due to a difference
24940         in the emitted program name, e.g.,
24941         -test-xalloc-die: memory exhausted
24942         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
24943         Use program to avoid that.
24944         * modules/xalloc-die-tests (Depends-on): Add progname.
24945         * tests/test-xalloc-die.c: Include progname.h".
24946         (program_name): Remove decl.
24947         (main): Call set_program_name.
24948         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
24949
24950 2009-11-26  Richard Jones  <rjones@redhat.com>
24951
24952         w32sock: leave win32 error in place.
24953         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
24954
24955 2009-11-26  Eric Blake  <ebb9@byu.net>
24956
24957         init.sh: suggest to use skip_ and fail_ functions in comments
24958         * tests/init.sh: Add a sentence.
24959
24960 2009-11-25  Bruno Haible  <bruno@clisp.org>
24961
24962         init.sh: add documentation in comments
24963         * tests/init.sh: Add some developer and user documentation.
24964
24965 2009-11-26  Jim Meyering  <meyering@redhat.com>
24966
24967         init.sh: accommodate even those who specify bogus srcdir manually
24968         * tests/init.sh: Normally, srcdir is guaranteed by automake and
24969         configure-time tests to be sanitized, so that there is no need to
24970         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
24971         (with no double quotes) suffices.  However, since tests may be
24972         invoked manually, and since you may explicitly set srcdir to the
24973         name of a directory containing spaces, do quote its uses here.
24974         * tests/test-pread.sh: Likewise.
24975         Suggested by Bruno Haible.
24976
24977         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
24978         * tests/test-pread.sh: Write no data into the pipe, because
24979         test-pread actually reads none.  This avoids a diagnostic,
24980         "bash: echo: write error: Broken pipe", that arises in the unusual
24981         event something is ignoring SIGPIPE, and might be interpreted
24982         as some sort of failure.  Reported by Bruno Haible.
24983
24984 2009-11-25  Jim Meyering  <meyering@redhat.com>
24985
24986         test-pread: cover failure with ESPIPE and EINVAL
24987         * tests/test-pread.c (main): Test for failure, too.
24988         * tests/test-pread.sh: Invoke with stdin on a pipe.
24989         Suggested by Eric Blake.
24990
24991         pread: improvement and fix
24992         * modules/pread (Depends-on): Depend on lseek, for portability to
24993         e.g., mingw.  Suggested by Eric Blake.
24994         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
24995
24996         unistd.in.h: correct declaration of pread
24997         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
24998         Reported by Richard W.M. Jones.
24999
25000         test-pread.sh: distribute the test script
25001         * modules/pread-tests (Files): Include test-pread.sh.
25002
25003         test-pread.sh: clean up
25004         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
25005         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
25006         That is unnecessary, since it's always ".".
25007         Suggestion from Eric Blake.
25008
25009         test-pread.sh: make executable
25010         * tests/test-pread.sh: Set executable bit.
25011         Reported by Eric Blake.
25012
25013         correct typo in test-pread.sh
25014         * tests/test-pread.sh: Add #! line.
25015
25016         test pread
25017         * tests/test-pread.c: New file.
25018         * tests/test-pread.sh: Likewise.
25019         * modules/pread-tests: Likewise.
25020
25021         pread: new module
25022         * modules/pread: New file.
25023         * lib/unistd.in.h (pread): Define/declare.
25024         * lib/pread.c (pread): New file.
25025         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
25026         * modules/unistd (Makefile.am): Substitute witnesses.
25027         * doc/posix-functions/pread.texi (pread): Update.
25028         * MODULES.html.sh: Add pread.
25029
25030 2009-11-25  Jim Meyering  <meyering@redhat.com>
25031
25032         tests/init.sh: new file to be used via most *.sh tests
25033         * tests/init.sh: New file.
25034
25035 2009-11-25  Eric Blake  <ebb9@byu.net>
25036
25037         utimens: work around older Linux failure with symlinks
25038         * lib/utimens.c (lutimensat_works_really): New variable.
25039         (fdutimens, lutimens): Use it to manage kernels that support
25040         nanosecond times on files, but not on symlinks.
25041         Reported by OndÅ™ej Vašík.
25042
25043         utimes: fix configure grammar
25044         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
25045
25046 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
25047
25048         regex: Fix fastmap for multibyte character ranges.
25049         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
25050         characters when a multibyte character range is included.
25051
25052 2009-11-22  Andy Wingo  <wingo@pobox.com>
25053
25054         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
25055         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
25056
25057 2009-11-24  Bruno Haible  <bruno@clisp.org>
25058
25059         doc: Most *_l functions exist in MacOS X 10.5.
25060         * doc/posix-functions/duplocale.texi: Update platforms list.
25061         * doc/posix-functions/freelocale.texi: Likewise.
25062         * doc/posix-functions/newlocale.texi: Likewise.
25063         * doc/posix-functions/uselocale.texi: Likewise.
25064         * doc/posix-functions/isalnum_l.texi: Likewise.
25065         * doc/posix-functions/isalpha_l.texi: Likewise.
25066         * doc/posix-functions/isblank_l.texi: Likewise.
25067         * doc/posix-functions/iscntrl_l.texi: Likewise.
25068         * doc/posix-functions/isdigit_l.texi: Likewise.
25069         * doc/posix-functions/isgraph_l.texi: Likewise.
25070         * doc/posix-functions/islower_l.texi: Likewise.
25071         * doc/posix-functions/isprint_l.texi: Likewise.
25072         * doc/posix-functions/ispunct_l.texi: Likewise.
25073         * doc/posix-functions/isspace_l.texi: Likewise.
25074         * doc/posix-functions/isupper_l.texi: Likewise.
25075         * doc/posix-functions/iswalnum_l.texi: Likewise.
25076         * doc/posix-functions/iswalpha_l.texi: Likewise.
25077         * doc/posix-functions/iswblank_l.texi: Likewise.
25078         * doc/posix-functions/iswcntrl_l.texi: Likewise.
25079         * doc/posix-functions/iswctype_l.texi: Likewise.
25080         * doc/posix-functions/iswdigit_l.texi: Likewise.
25081         * doc/posix-functions/iswgraph_l.texi: Likewise.
25082         * doc/posix-functions/iswlower_l.texi: Likewise.
25083         * doc/posix-functions/iswprint_l.texi: Likewise.
25084         * doc/posix-functions/iswpunct_l.texi: Likewise.
25085         * doc/posix-functions/iswspace_l.texi: Likewise.
25086         * doc/posix-functions/iswupper_l.texi: Likewise.
25087         * doc/posix-functions/iswxdigit_l.texi: Likewise.
25088         * doc/posix-functions/isxdigit_l.texi: Likewise.
25089         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
25090         * doc/posix-functions/strcasecmp_l.texi: Likewise.
25091         * doc/posix-functions/strcoll_l.texi: Likewise.
25092         * doc/posix-functions/strfmon_l.texi: Likewise.
25093         * doc/posix-functions/strftime_l.texi: Likewise.
25094         * doc/posix-functions/strncasecmp_l.texi: Likewise.
25095         * doc/posix-functions/strxfrm_l.texi: Likewise.
25096         * doc/posix-functions/tolower_l.texi: Likewise.
25097         * doc/posix-functions/toupper_l.texi: Likewise.
25098         * doc/posix-functions/towctrans_l.texi: Likewise.
25099         * doc/posix-functions/towlower_l.texi: Likewise.
25100         * doc/posix-functions/towupper_l.texi: Likewise.
25101         * doc/posix-functions/wcscoll_l.texi: Likewise.
25102         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
25103         * doc/posix-functions/wctrans_l.texi: Likewise.
25104         * doc/posix-functions/wctype_l.texi: Likewise.
25105         * doc/glibc-functions/strptime_l.texi: Likewise.
25106         * doc/glibc-functions/strtod_l.texi: Likewise.
25107         * doc/glibc-functions/strtof_l.texi: Likewise.
25108         * doc/glibc-functions/strtol_l.texi: Likewise.
25109         * doc/glibc-functions/strtold_l.texi: Likewise.
25110         * doc/glibc-functions/strtoll_l.texi: Likewise.
25111         * doc/glibc-functions/strtoul_l.texi: Likewise.
25112         * doc/glibc-functions/strtoull_l.texi: Likewise.
25113         * doc/glibc-functions/wcsftime_l.texi: Likewise.
25114         * doc/glibc-functions/wcstod_l.texi: Likewise.
25115         * doc/glibc-functions/wcstof_l.texi: Likewise.
25116         * doc/glibc-functions/wcstol_l.texi: Likewise.
25117         * doc/glibc-functions/wcstold_l.texi: Likewise.
25118         * doc/glibc-functions/wcstoll_l.texi: Likewise.
25119         * doc/glibc-functions/wcstoul_l.texi: Likewise.
25120         * doc/glibc-functions/wcstoull_l.texi: Likewise.
25121
25122 2009-11-24  Bruno Haible  <bruno@clisp.org>
25123
25124         duplocale: Fix logic bug.
25125         * lib/duplocale.c: Don't include <langinfo.h>.
25126         (_NL_LOCALE_NAME): Remove macro.
25127         (rpl_duplocale): Use setlocale instead of nl_langinfo.
25128         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
25129
25130 2009-11-23  Jim Meyering  <meyering@redhat.com>
25131
25132         test-update-copyright: don't hard-code /usr/bin/perl
25133         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
25134         perl to print the current year.  Gilles Espinasse reported that
25135         the replaced use of perl was hard-coded as /usr/bin/perl.
25136
25137 2009-11-23  Bruno Haible  <bruno@clisp.org>
25138
25139         duplocale: Add support for glibc 2.3.x.
25140         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
25141
25142 2009-11-22  Bruno Haible  <bruno@clisp.org>
25143
25144         vasnprintf: Tiny optimization.
25145         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
25146         MacOS X.
25147
25148 2009-11-22  Bruno Haible  <bruno@clisp.org>
25149
25150         Tests for module 'duplocale'.
25151         * modules/duplocale-tests: New file.
25152         * tests/test-duplocale.c: New file.
25153
25154         New module 'duplocale'.
25155         * m4/duplocale.m4: New file.
25156         * lib/locale.in.h (duplocale): New declaration.
25157         * lib/duplocale.c: New file.
25158         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
25159         gl_LOCALE_H_DEFAULTS): New macros.
25160         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
25161         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
25162         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
25163         REPLACE_DUPLOCALE.
25164         * modules/duplocale: New file.
25165         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
25166
25167 2009-11-22  Bruno Haible  <bruno@clisp.org>
25168
25169         * modules/locale-tests (configure.ac): Test for newlocale function.
25170         * tests/test-locale.c: When the system has extended locale functions,
25171         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
25172
25173         locale: Make locale_t available when possible.
25174         * lib/locale.in.h: Include <xlocale.h> when it exists.
25175         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
25176         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
25177         * modules/locale (Depends-on): Add extensions.
25178         (Makefile.am): Also substitute HAVE_XLOCALE_H.
25179         * doc/posix-headers/locale.texi: Document the problem with locale_t.
25180
25181 2009-11-22  Bruno Haible  <bruno@clisp.org>
25182
25183         Add comments.
25184         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
25185         invocation.
25186         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
25187         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
25188         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
25189
25190 2009-11-22  Bruno Haible  <bruno@clisp.org>
25191
25192         error: account for the possibility of freopen (stdout).
25193         * lib/error.c: Include <unistd.h>.
25194         (flush_stdout): New function, extracted from error and error_at_line.
25195         Determine stdout's fd dynamically.
25196         (error, error_at_line): Invoke flush_stdout.
25197         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
25198         * modules/error (Depends-on): Add unistd.
25199
25200 2009-11-22  Bruno Haible  <bruno@clisp.org>
25201
25202         diffseq: Add comment.
25203         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
25204
25205 2009-11-22  Jim Meyering  <meyering@redhat.com>
25206
25207         c-stack: avoid defining an unused static function
25208         * lib/c-stack.c (find_stack_direction): Do not define this function
25209         when it will not be used.
25210
25211         diffseq: avoid spurious gcc warnings
25212         * lib/diffseq.h (IF_LINT2): Define.
25213         (compareseq): Use it to initialize two members of "part".
25214         This avoids two used-uninitialized warnings.
25215
25216 2009-11-21  Jim Meyering  <meyering@redhat.com>
25217
25218         c-stack: avoid "ignoring return value of `write'" warning
25219         * lib/c-stack.c: Include "ignore-value.h".
25220         (die): Explicitly ignore each write return value.
25221         * modules/c-stack (Depends-on): Add ignore-value.
25222
25223 2009-11-21  Bruno Haible  <bruno@clisp.org>
25224
25225         diffseq: reduce scope of variable 'best'.
25226         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
25227         variable, earlier used for two different purposes.
25228
25229 2009-11-21  Jim Meyering  <meyering@redhat.com>
25230
25231         diffseq: remove useless assignment to "best"
25232         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
25233         assignment.  At that point "best" is already guaranteed to be zero.
25234
25235 2009-11-20  Eric Blake  <ebb9@byu.net>
25236
25237         build: mention ftp redirector in release announcements
25238         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
25239         values that used to come from cfg.mk; mention FTP redirect URL.
25240         * build-aux/announce-gen: Mention the mirror list.
25241         Suggested by Karl Berry.
25242
25243         nanosleep: improve port to mingw
25244         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
25245         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
25246         LIB_NANOSLEEP, but only when needed.
25247         * modules/select (Link): Document LIBSOCKET.
25248         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
25249         enough.
25250
25251         nanosleep: work around cygwin bug
25252         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
25253         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
25254         bug.
25255         (getnow): Delete, not needed.
25256         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
25257         LIB_CLOCK_GETTIME.
25258         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
25259         clock-time, gettime.
25260         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
25261         bug.
25262         * modules/nanosleep-tests: New test.
25263         * tests/test-nanosleep.c: New file.
25264
25265         sleep: work around cygwin bug
25266         * lib/sleep.c (rpl_sleep): Work around the bug.
25267         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
25268         (gl_PREREQ_SLEEP): Delete unused macro.
25269         * modules/sleep (Depends-on): Add verify.
25270         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
25271         * modules/unistd (Makefile.am): Substitute witness.
25272         * lib/unistd.in.h (sleep): Update prototype.
25273         * doc/posix-functions/sleep.texi (sleep): Document the bug.
25274         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
25275         * modules/sleep-tests (Depends-on): Check for alarm.
25276
25277 2009-11-20  Jim Meyering  <meyering@redhat.com>
25278
25279         maint.mk: improve sc_prohibit_magic_number_exit
25280         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
25281         so it does not match uses like System.exit(1).
25282         Add comments showing how to correct all offenders.
25283
25284 2009-11-19  Eric Blake  <ebb9@byu.net>
25285
25286         xalloc-die-tests: add missing library
25287         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
25288
25289         test-xvasprintf: silence compiler warnings
25290         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
25291         empty string from gcc.
25292
25293 2009-11-19  Jim Meyering  <meyering@redhat.com>
25294
25295         xfreopen: new module, from coreutils
25296         * modules/xfreopen: New module.
25297         * lib/xfreopen.c: New file.
25298         * lib/xfreopen.h: New file.
25299         * MODULES.html.sh (File stream based Input/Output"): Add it.
25300
25301 2009-11-19  Eric Blake  <ebb9@byu.net>
25302
25303         manywarnings: depend on warnings
25304         * modules/manywarnings (Depends-on): Add warnings.
25305
25306         build: avoid compiler warnings
25307         * lib/select.c (rpl_select): Delete unused variable.
25308         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
25309
25310 2009-11-18  Eric Blake  <ebb9@byu.net>
25311
25312         tests: avoid false negative with --with-packager
25313         * tests/test-version-etc.sh: Discard packager information.
25314         * tests/test-argp-version-etc-1.sh: Likewise.
25315         Reported by Mike Frysinger.
25316
25317         utimens: fix regression on Solaris
25318         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
25319         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
25320         can only change fd timestamps via futimesat.  Instead, use an
25321         additional witness macro to avoid BSD bug.
25322         Reported by Jim Meyering.
25323
25324 2009-11-17  Eric Blake  <ebb9@byu.net>
25325
25326         usleep: use it to simplify tests
25327         * modules/stat-time-tests (Depends-on): Add usleep.
25328         (configure.ac): Drop usleep check.
25329         * modules/chown-tests (Depends-on, configure.ac): Likewise.
25330         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
25331         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
25332         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
25333         * modules/openat-tests (Depends-on, configure.ac): Likewise.
25334         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
25335         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
25336         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
25337         Likewise.
25338         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
25339         * tests/test-lchown.h (nap): Likewise.
25340         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
25341         * tests/test-stat-time.c (nap): Likewise.
25342         * tests/test-utimens-common.h (nap): Update comments.
25343
25344         usleep: new module
25345         * modules/usleep: New file.
25346         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
25347         * lib/usleep.c (usleep): Likewise.
25348         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
25349         * modules/unistd (Makefile.am): Substitute witnesses.
25350         * lib/unistd.in.h (usleep): Add declaration.
25351         * doc/pastposix-functions/usleep.texi (usleep): Document this.
25352         * MODULES.html.sh (Date and time): Likewise.
25353         * modules/usleep-tests (Depends-on): New test.
25354         * tests/test-usleep.c: New file.
25355
25356         chown: work around OpenBSD bug
25357         * lib/chown.c (rpl_chown): Work around the bug.
25358         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
25359         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
25360         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
25361         * modules/chown (Depends-on): Add stdbool.
25362         * modules/lchown (Depends-on): Likewise.
25363         * doc/posix-functions/chown.texi (chown): Document the bug.
25364         * doc/posix-functions/lchown.texi (lchown): Likewise.
25365         * tests/test-lchown.h (test_chown): Relax test.
25366
25367         mkstemp: avoid conflict with C++ keyword template
25368         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
25369         * lib/mkostemp.c (mkostemp): Likewise.
25370         * lib/mkostemps.c (mkostemps): Likewise.
25371         * lib/mkstemp.c (mkstemp): Likewise.
25372         * lib/mkstemps.c (mkstemps): Likewise.
25373
25374         xalloc-die-tests: optimize
25375         * tests/test-xalloc-die.sh: Reduce number of processes.
25376
25377 2009-11-17  Simon Josefsson  <simon@josefsson.org>
25378
25379         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
25380         patch from ludo@gnu.org (Ludovic Courtès).
25381
25382 2009-11-17  Jim Meyering  <meyering@redhat.com>
25383
25384         version-etc: use proper license string
25385         * modules/version-etc (License): Use LGPL, not LGPLv3+.
25386         * modules/version-etc-fsf: Likewise.
25387
25388 2009-11-17  Simon Josefsson  <simon@josefsson.org>
25389
25390         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
25391         printed to stdout.  Deal with EOL differences.
25392
25393 2009-11-17  Eric Blake  <ebb9@byu.net>
25394
25395         unsetenv: work around Solaris bug
25396         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
25397         * lib/unsetenv.c (rpl_unsetenv): Work around it.
25398         Reported by Jim Meyering.
25399
25400         vasnprintf: avoid compiler warnings
25401         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
25402         variables.
25403         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
25404
25405 2009-11-17  Simon Josefsson  <simon@josefsson.org>
25406
25407         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
25408         settings since xalloc-die is no longer the self test,
25409         xalloc-die.sh is.
25410
25411 2009-11-17  Jim Meyering  <meyering@redhat.com>
25412
25413         test-xalloc-die.sh: make the code agree with the commit log
25414         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
25415         at the end, just in case you happen to have a test-xalloc-die
25416         program in some other PATH directory.
25417
25418         test-xalloc-die.sh: fix a portability bug
25419         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
25420         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
25421         Otherwise, argv[0] (as often seen in diagnostics) would be too
25422         system-dependent, sometimes with, and sometimes without the leading "./".
25423
25424         version-etc-fsf: relax license to LGPLv3+
25425         * modules/version-etc-fsf (License): Relax license.
25426
25427 2009-11-16  Eric Blake  <ebb9@byu.net>
25428
25429         xalloc-die-tests: avoid printing null pointer
25430         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
25431         shell script.
25432         * tests/test-xalloc-die.c (program_name): Declare.
25433         * tests/test-xalloc-die.sh (tmpfiles): New file.
25434
25435         setenv, unsetenv: work around various bugs
25436         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
25437         (setenv) [HAVE_SETENV]: Work around bugs.
25438         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
25439         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
25440         for bugs.
25441         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
25442         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
25443         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
25444         * modules/stdlib (Makefile.am): Update substitutions.
25445         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
25446         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
25447         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
25448         * modules/setenv-tests: New test.
25449         * modules/unsetenv-tests: Likewise.
25450         * tests/test-setenv.c: New file.
25451         * tests/test-unsetenv.c: Likewise.
25452
25453 2009-11-16  Jim Meyering  <meyering@redhat.com>
25454
25455         version-etc: relax license to LGPLv3+
25456         * modules/version-etc (License): Relax license.
25457
25458         better AC_REQUIRE expanded-before-required-warning avoidance
25459         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
25460         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
25461         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
25462         which is no longer needed.
25463
25464 2009-11-16  Eric Blake  <ebb9@byu.net>
25465
25466         test-freading: clean up temporary file
25467         * tests/test-freading.c (main): Remove file on success, and use
25468         ASSERT more liberally.
25469         Reported by Jim Meyering.
25470
25471 2009-11-16  Jim Meyering  <meyering@redhat.com>
25472
25473         avoid new AC_REQUIRE expanded-before-required warnings
25474         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
25475         merely using it.
25476         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
25477         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
25478
25479 2009-11-15  Simon Josefsson  <simon@josefsson.org>
25480
25481         * tests/test-xalloc-die.c: New file.
25482         * modules/xalloc-die-tests: New file.
25483         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
25484         XFAIL_TESTS so it can be appended by modules.
25485
25486 2009-11-15  Simon Josefsson  <simon@josefsson.org>
25487
25488         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
25489         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
25490
25491 2009-11-14  Eric Blake  <ebb9@byu.net>
25492
25493         fnmatch: avoid compiler warning
25494         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
25495         to silence compiler warning about mismatch signedness in ?:.
25496         Reported by Robert Millan.
25497
25498         intprops: add double-inclusion guard
25499         * lib/intprops.h: Allow idempotent includes.
25500         Suggested by Bruce Korb.
25501
25502         openat: detect Solaris fchownat bug
25503         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
25504         penalizing glibc chownat when only lchownat is broken.
25505         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
25506         trailing slash bugs.
25507         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
25508         * modules/openat-tests (Files): Include more files.
25509         (Depends-on): Add mgetgroups, sleep, stat-time.
25510         (configure.ac): Add additional checks.
25511         (Makefile.am): Build new test.
25512         * tests/test-fchownat.c: New file.
25513
25514         lchown: detect Solaris and FreeBSD bug
25515         * lib/lchown.c (rpl_lchown): Work around bug.
25516         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
25517         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25518         * modules/unistd (Makefile.am): Populate it.
25519         * lib/unistd.in.h (lchown): Update declaration.
25520         * doc/posix-functions/lchown.texi (lchown): Document the bug.
25521         * modules/lchown-tests: New file.
25522         * tests/test-lchown.h (test_lchown): Likewise.
25523         * tests/test-lchown.c (main): Likewise.
25524
25525         chown: detect Solaris and FreeBSD bug
25526         * lib/chown.c (rpl_chown): Work around bug.
25527         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
25528         (gl_PREREQ_CHOWN): Delete.
25529         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25530         * modules/unistd (Makefile.am): Populate it.
25531         * lib/unistd.in.h (chown): Update declaration.
25532         * lib/lchown.c (chown): Update client.
25533         * modules/lchown (Depends-on): Add lstat.
25534         * doc/posix-functions/chown.texi (chown): Document the bug.
25535         * doc/posix-functions/getgroups.texi (getgroups): Document
25536         getgroups pitfall.
25537         * modules/chown-tests: New file.
25538         * tests/test-chown.h (test_chown): Likewise.
25539         * tests/test-chown.c (main): Likewise.
25540
25541 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
25542
25543         gnulib-tool: correctly detect absence of m4 directories
25544         * gnulib-tool: Avoid extra newline on data passed to wc -l.
25545
25546 2009-11-14  Jim Meyering  <meyering@redhat.com>
25547
25548         maint.mk: Prohibit inclusion of "xalloc.h" without use.
25549         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
25550
25551 2009-11-14  John W. Eaton  <jwe@gnu.org>
25552
25553         strftime.h: wrap funtion declaration in extern "C" block
25554         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
25555
25556 2009-11-13  Eric Blake  <ebb9@byu.net>
25557
25558         getgroups: avoid compiler warning
25559         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
25560
25561         getgroups: work around FreeBSD bug
25562         * lib/getgroups.c (rpl_getgroups): Work around the bug.
25563         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
25564         * doc/posix-functions/getgroups.texi (getgroups): Document it.
25565         * tests/test-getgroups.c (main): Fix buffer overrun.
25566
25567         getgroups: avoid compilation failure
25568         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
25569         * modules/getgroups (Depends-on): Add stdint.
25570
25571 2009-11-13  Jim Meyering  <meyering@redhat.com>
25572
25573         test-getgroups: avoid compilation failure
25574         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
25575
25576 2009-11-13  Eric Blake  <ebb9@byu.net>
25577
25578         mgetgroups: new module, taken from coreutils
25579         * modules/mgetgroups: New file.
25580         * lib/mgetgroups.h: Likewise.
25581         * lib/mgetgroups.c (mgetgroups): Likewise.
25582         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
25583         * MODULES.html.sh (Users and groups): Mention it.
25584
25585         getgroups: don't expose GETGROUPS_T to user
25586         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
25587         an element at a time if GETGROUPS_T is wrong size.
25588         * lib/getugroups.h (getugroups): Change signature.
25589         * lib/unistd.in.h (getgroups): Likewise.
25590         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
25591         signature needs fixing.
25592         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
25593         AC_TYPE_GETGROUPS.
25594         * modules/group-member (Depends-on): Add getgroups.
25595         * lib/group-member.c (group_info, get_group_info): Use gid_t.
25596         (group_member): Rely on getgroups replacement.
25597         * lib/getugroups.c (getugroups): Use gid_t.
25598         * tests/test-getgroups.c (main): Likewise.
25599         * NEWS: Mention the signature change.
25600         * doc/posix-functions/getgroups.texi (getgroups): Mention the
25601         problem with signature.
25602         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
25603         GETGROUPS_T is still useful for setgroups.
25604
25605         getgroups, getugroups: provide stubs for mingw
25606         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
25607         * lib/getugroups.c (getugroups): Likewise.
25608         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
25609         function.  Modernize replacement scheme.
25610         (gl_PREREQ_GETGROUPS): Delete.
25611         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
25612         * modules/getgroups (configure.ac): Declare witness.
25613         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
25614         * modules/unistd (Depends-on): Substitute witness.
25615         * lib/unistd.in.h (getgroups): Declare replacement.
25616
25617         getgroups: avoid calling exit
25618         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
25619         drop xalloc.
25620         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
25621         dependencies.
25622         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
25623         exiting, in the rare case of malloc failure.
25624
25625         getgroups: fix logic error
25626         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
25627         has more than 20 groups.
25628         * modules/getgroups-tests: New test.
25629         * tests/test-getgroups.c: New file.
25630
25631 2009-11-13  Simon Josefsson  <simon@josefsson.org>
25632
25633         * tests/test-base64.c: Improve.
25634
25635 2009-11-13  Simon Josefsson  <simon@josefsson.org>
25636
25637         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
25638         Blake <ebb9@byu.net>.
25639
25640 2009-11-13  Simon Josefsson  <simon@josefsson.org>
25641
25642         * tests/test-xvasprintf.c: Add %s%s related checks.
25643
25644 2009-11-12  Eric Blake  <ebb9@byu.net>
25645
25646         version-etc: match standards.texi style
25647         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
25648         and use <> only for URLs.
25649
25650 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
25651
25652         fts: do not fail on a submount during traversal
25653         * lib/fts.c (fts_build): Read the stat info again after opening
25654         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
25655         Original report at http://bugzilla.redhat.com/501848.
25656
25657 2009-11-12  Jim Meyering  <meyering@redhat.com>
25658
25659         bootstrap: sync from coreutils
25660         * build-aux/bootstrap (bootstrap_epilogue): New function.
25661         Use git_modules_config in one more place.  This make bootstrap's
25662         --gnulib-srcdir option more useful for testing.
25663
25664         bootstrap: generalize autoheader check
25665         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
25666         AC_CONFIG_HEADERS.
25667
25668 2009-11-11  Eric Blake  <ebb9@byu.net>
25669
25670         mkfifoat: use new modules for Solaris and BSD bugs
25671         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
25672         * lib/mkfifoat.c (mknodat): Split...
25673         * lib/mknodat.c (mknodat): ...into new file.
25674         * modules/mkfifoat (Files): Ship new file.
25675         (Depends-on): Add mkfifo, mknod.
25676         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
25677         (Depends-on): Add symlink.
25678         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
25679         redundant with test_mkfifo.h.
25680         (do_mkfifoat, do_mknodat): New helpers.
25681
25682         mknod: new module
25683         * modules/mknod: New file.
25684         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
25685         * lib/mknod.c (mknod): Likewise.
25686         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
25687         defaults.
25688         * modules/sys_stat (Makefile.am): Substitute them.
25689         * lib/sys_stat.in.h (mknod): Declare replacement.
25690         * MODULES.html.sh (Support for systems lacking POSIX:2008):
25691         Document it.
25692         * doc/posix-functions/mknod.texi (mknod): Likewise.
25693         * modules/mknod-tests: New test.
25694         * tests/test-mknod.c: Likewise.
25695
25696         mkfifo: new module
25697         * modules/mkfifo: New file.
25698         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
25699         * lib/mkfifo.c (mkfifo): Likewise.
25700         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
25701         defaults.
25702         * modules/sys_stat (Makefile.am): Substitute them.
25703         * lib/sys_stat.in.h (mkfifo): Declare replacement.
25704         * MODULES.html.sh (Support for systems lacking POSIX:2008):
25705         Document it.
25706         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
25707         * modules/mkfifo-tests: New test.
25708         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
25709         from test-mkfifoat.c.
25710         * tests/test-mkfifo.c: New file.
25711
25712         readlink: detect FreeBSD bug
25713         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
25714         slash on symlink.
25715         * doc/posix-functions/readlink.texi (readlink): Document the bug.
25716         * tests/test-readlink.h (test_readlink): Enhance test.
25717
25718         symlink: detect FreeBSD bug
25719         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
25720         slash on symlink.
25721         * doc/posix-functions/symlink.texi (symlink): Document the bug.
25722         * tests/test-symlink.h (test_symlink): Enhance test.
25723
25724 2009-11-10  Eric Blake  <ebb9@byu.net>
25725
25726         link: detect FreeBSD bug
25727         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
25728         symlink.
25729         * doc/posix-functions/link.texi (link): Document the bug.
25730         * tests/test-link.h (test_link): Enhance test.
25731         * tests/test-linkat.c (main): Update caller.
25732
25733         unlink, remove: detect FreeBSD bug
25734         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
25735         slash on symlink.
25736         * doc/posix-functions/unlink.texi (unlink): Document the bug.
25737         * doc/posix-functions/remove.texi (remove): Likewise.
25738         * tests/test-unlink.h (test_unlink): Enhance test.
25739         * tests/test-remove.c (main): Likewise.
25740
25741 2009-11-09  Eric Blake  <ebb9@byu.net>
25742
25743         rename: detect FreeBSD bug
25744         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
25745         slash on symlink.
25746         * modules/renameat-tests (Depends-on): Add filenamecat.
25747         * tests/test-rename.h (test_rename): Allow one more errno.
25748         * tests/test-renameat.c (main): Likewise.
25749         * doc/posix-functions/rename.texi (rename): Document the bug.
25750
25751         open: detect FreeBSD bug
25752         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
25753         symlink.
25754         * doc/posix-functions/open.texi (open): Document the bug.
25755         * doc/posix-functions/utimes.texi (utimes): Likewise.
25756         * tests/test-open.h (test_open): Add parameters, and test symlink
25757         handling.
25758         * tests/test-open.c (main): Adjust caller.
25759         * tests/test-fcntl-safer.c (main): Likewise.
25760         * modules/open-tests (Depends-on): Add stdbool, symlink.
25761         * modules/fcntl-safer-tests (Depends-on): Likewise.
25762         * tests/test-openat.c (main): Add test-open tests.
25763
25764         stat: detect FreeBSD bug
25765         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
25766         symlink.
25767         * doc/posix-functions/stat.texi (stat): Document the bug.
25768         * tests/test-stat.h (test_stat_func): Add argument.
25769         * tests/test-stat.c (main): Adjust caller.
25770         * tests/test-fstatat.c (main): Likewise.
25771         * modules/stat-tests (Depends-on): Add stdbool, symlink.
25772         Reported by Jim Meyering.
25773
25774 2009-11-09  James Youngman  <jay@gnu.org>
25775
25776         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
25777         * lib/strftime.c: Correct placement of #include "ignore-value.h".
25778
25779 2009-11-08  Jim Meyering  <meyering@redhat.com>
25780
25781         utimens: remove invalid futimesat call
25782         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
25783         It used the file descriptor of the target file as the DIR_FD
25784         parameter and NULL as the file name.  That caused failure with
25785         errno == EFAULT on FreeBSD-8.0-rc2
25786
25787 2009-11-07  Eric Blake  <ebb9@byu.net>
25788
25789         fflush, freadseek: use fseeko, not fseek
25790         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
25791         (clear_ungetc_buffer): Avoid potential problems on large files.
25792         * lib/freadseek.c (freadseek): Likewise.
25793         * modules/freadseek (Depends-on): Add fseeko.
25794         * modules/fseek (configure.ac): Set a witness.
25795         * tests/test-fflush.c (main): Use fseeko.
25796         * tests/test-fpurge.c (fseek): Disable link warning.
25797         * tests/test-freadable.c (fseek): Likewise.
25798         * tests/test-freading.c (fseek): Likewise.
25799         * tests/test-fseeko.c (fseek): Likewise.
25800         * tests/test-ftell.c (fseek): Likewise.
25801         * tests/test-ftello.c (fseek): Likewise.
25802         * tests/test-fwritable.c (fseek): Likewise.
25803         * tests/test-fwriting.c (fseek): Likewise.
25804
25805 2009-11-06  Simon Josefsson  <simon@josefsson.org>
25806
25807         * modules/memchr (Depends-on): Drop getpagesize dependency.
25808
25809 2009-11-06  Simon Josefsson  <simon@josefsson.org>
25810
25811         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
25812         Reported by Ludovic Courtès.
25813         * build-aux/pmccabe2html: Improve example usage.
25814         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
25815
25816 2009-11-06  Jim Meyering  <meyering@redhat.com>
25817
25818         do-release-commit-and-tag: New module.
25819         Automate the release-commit and tag process.
25820         * build-aux/do-release-commit-and-tag: New script, from coreutils.
25821         * modules/do-release-commit-and-tag: New file.
25822         * MODULES.html.sh (Support for maintaining and releasing): Add it.
25823
25824 2009-11-06  Simon Josefsson  <simon@josefsson.org>
25825
25826         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
25827         because test-select.c uses inet_pton.
25828
25829 2009-11-06  Simon Josefsson  <simon@josefsson.org>
25830
25831         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
25832         GETADDRINFO_LIB.  Bump serial number.
25833         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
25834         Suggested by Eric Blake <ebb9@byu.net>.
25835
25836 2009-11-05  Eric Blake  <ebb9@byu.net>
25837
25838         strtod: detect darwin bug
25839         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
25840         Reported by Leo Davis.
25841
25842         freopen-safer: new module
25843         * modules/freopen-safer: New module.
25844         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
25845         * lib/freopen-safer.c (freopen_safer): New file.
25846         * lib/stdio-safer.h (freopen_safer): New declaration.
25847         * lib/stdio--.h (freopen): New override.
25848         * MODULES.html.sh (File stream based Input/Output): Mention it.
25849         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
25850         freopen-safer module.
25851         * doc/posix-functions/stderr.texi (stderr): Likewise.
25852         * doc/posix-functions/stdin.texi (stdin): Likewise.
25853         * doc/posix-functions/stdout.texi (stdout): Likewise.
25854         * modules/freopen-safer-tests: New test.
25855         * tests/test-reopen-safer.c: New file.
25856
25857 2009-11-05  Jim Meyering  <meyering@redhat.com>
25858
25859         maint.mk: Prohibit inclusion of "close-stream.h" without use.
25860         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
25861
25862 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25863
25864         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
25865
25866 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25867
25868         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
25869
25870 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25871
25872         Fix link error.
25873         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
25874         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
25875
25876 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25877
25878         * tests/test-func.c: Also test value of __func__.
25879
25880 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25881
25882         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
25883         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
25884
25885 2009-11-05  Bruno Haible  <bruno@clisp.org>
25886
25887         Fix link error.
25888         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
25889         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
25890         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
25891
25892 2009-11-05  Bruno Haible  <bruno@clisp.org>
25893
25894         Tests for module 'inet_pton'.
25895         * modules/inet_pton-tests: New file.
25896         * tests/test-inet_pton.c: New file.
25897
25898 2009-11-05  Bruno Haible  <bruno@clisp.org>
25899
25900         Tests for module 'inet_ntop'.
25901         * modules/inet_ntop-tests: New file.
25902         * tests/test-inet_ntop.c: New file.
25903
25904 2009-11-04  Eric Blake  <ebb9@byu.net>
25905
25906         stdlib-safer: wrap all mkstemp variants
25907         * modules/mkostemp (configure.ac): Set witness.
25908         * modules/mkostemps (configure.ac): Likewise.
25909         * modules/mkstemps (configure.ac): Likewise.
25910         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
25911         (mkstemps_safer): Wrap more functions.
25912         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
25913         wrapping.
25914         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
25915         (mkstemps_safer): Implement the wrappers.
25916
25917         mkstemps, mkostemps: new modules
25918         * modules/mkostemps: New module.
25919         * modules/mkstemps: Likewise.
25920         * lib/mkostemps.c (mkostemps): New file.
25921         * lib/mkstemps.c (mkstemps): Likewise.
25922         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
25923         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
25924         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
25925         * modules/stdlib (Makefile.am): Substitute them.
25926         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
25927         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
25928         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
25929         * doc/gnulib.texi (Glibc stdlib.h): Include them.
25930         * MODULES.html.sh (File system functions): Mention them.
25931
25932         tempname: resync from glibc
25933         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
25934         same values for __GT_FILE as glibc.  Abort even when assertions
25935         are disabled.
25936         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
25937         match its value otherwise.  Allow idempotent inclusion.
25938         * lib/mkdtemp.c (mkdtemp): Adjust caller.
25939         * lib/mkostemp.c (mkostemp): Likewise.
25940         * lib/mkstemp.c (mkstemp): Likewise.
25941         * lib/tmpfile.c (tmpfile): Likewise.
25942         * NEWS: Document this.
25943
25944         utimens: fix use of futimens on older Linux
25945         * lib/utimens.c (fdutimens): Use updated, rather than original,
25946         timespec to avoid bug in older Linux kernel.
25947         Reported by Simon Josefsson.
25948
25949 2009-11-04  Bruno Haible  <bruno@clisp.org>
25950
25951         Make num_processors more flexible and consistent.
25952         * lib/nproc.h (enum nproc_query): New type.
25953         (num_processors): Add a 'query' argument.
25954         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
25955         (num_processors): Add a 'query' argument. Test the value of the
25956         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
25957         mingw, count the number of CPUs available for the current process.
25958         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
25959         Check for sched_getaffinity and sched_getaffinity_np.
25960         * modules/nproc (Depends-on): Add c-ctype, extensions.
25961         * NEWS: Mention the change.
25962
25963 2009-11-03  Bruno Haible  <bruno@clisp.org>
25964
25965         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
25966
25967 2009-11-03  Jim Meyering  <meyering@redhat.com>
25968
25969         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
25970         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
25971         if it is defined.
25972
25973 2009-11-02  Eric Blake  <ebb9@byu.net>
25974
25975         mktime, timegm: share common declaration
25976         * lib/mktime-internal.h: New file.
25977         * lib/mktime.c: Use it rather than open-coding a declaration.
25978         * lib/timegm.c: Likewise.
25979         * modules/mktime (Files): Ship it.
25980         * modules/timegm (Files): Likewise.
25981         Suggested by Bruno Haible.
25982
25983         test-update-copyright: update test to match script changes
25984         * tests/test-update-copyright.sh: Avoid hard-coding perl
25985         location.  Don't update *.bak created by earlier runs.
25986
25987 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
25988             Simon Josefsson  <simon@josefsson.org>
25989             Bruno Haible  <bruno@clisp.org>
25990
25991         Fix link error on Solaris 8.
25992         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
25993         also in libnsl. Define also INET_PTON_LIB.
25994         * modules/inet_pton (Link): New section.
25995
25996 2009-11-02  Simon Josefsson  <simon@josefsson.org>
25997             Bruno Haible  <bruno@clisp.org>
25998
25999         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
26000         * modules/inet_ntop (Link): New section.
26001         Reported by Boyan Kasarov <bkasarov@gmail.com>.
26002
26003 2009-11-02  Eric Blake  <ebb9@byu.net>
26004
26005         maint: avoid compiler warnings in m4 macros
26006         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
26007         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
26008
26009 2009-11-02  Simon Josefsson  <simon@josefsson.org>
26010
26011         * m4/pmccabe2html.m4: Remove file.
26012         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
26013         function.  Change maintainer.
26014         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
26015         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
26016         Courtès).
26017
26018 2009-10-31  Eric Blake  <ebb9@byu.net>
26019
26020         fseeko: fix m4 regression
26021         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
26022         regression from 2009-10-27.
26023         Reported by Ralf Wildenhues.
26024
26025 2009-10-31  Jim Meyering  <meyering@redhat.com>
26026
26027         inttostr: aesthetics and improved (compile-time) safety
26028         Define inttype_is_signed rather than inttype_is_unsigned,
26029         since the sole use is via "#if inttype_is_signed".
26030         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
26031         inttype_is_unsigned.
26032         * lib/offtostr.c (inttype_is_signed): Likewise.
26033         * lib/uinttostr.c (inttype_is_signed): Likewise.
26034         * lib/umaxtostr.c (inttype_is_signed): Likewise.
26035         * lib/inttostr.c (inttostr): Use verify to cross-check the
26036         inttype_is_signed value and the signedness of the actual type.
26037         * modules/inttostr (Depends-on): Add verify.
26038
26039 2009-10-30  Eric Blake  <ebb9@byu.net>
26040
26041         build: avoid compiler warnings
26042         * lib/fchmodat.c (lchmod): Mark unused variables.
26043         * lib/getopt.c (_getopt_initialize): Likewise.
26044         * lib/mktime.c (__mktime_internal): Provide prototype.
26045         * lib/inttostr.c (inttostr): Avoid compiler warning even with
26046         older gcc that do not understand #pragma GCC diagnostic.
26047         * lib/uinttostr.c (inttype_is_unsigned): Define.
26048         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
26049
26050 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
26051
26052         stat: fix compilation on AIX
26053         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
26054         only see struct stat64.
26055
26056 2009-10-30  Eric Blake  <ebb9@byu.net>
26057
26058         exclude: make more robust
26059         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
26060         rather than masking a coding bug.
26061         Suggested by Bruno Haible.
26062
26063 2009-10-30  Jim Meyering  <meyering@redhat.com>
26064
26065         perl scripts: remove #!/usr/bin/perl in favor of more portable...
26066         Rather than putting #!/usr/bin/perl on the first line,
26067         start with a variant of what's recommended by "man perlrun" that
26068         invokes the first "perl" program from your shell's search path.
26069         * build-aux/gitlog-to-changelog: Replace #!... as above.
26070         Add a "Local Variables" perl mode setting.
26071         Prompted by a patch from Ludovic Courtès.
26072         Improved by Eric Blake.
26073         * build-aux/useless-if-before-free: Likewise.
26074         * build-aux/announce-gen: Likewise.
26075         * build-aux/update-copyright: Likewise.
26076
26077 2009-10-29  Eric Blake  <ebb9@byu.net>
26078
26079         filenamecat-lgpl: adjust clients
26080         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
26081         filenamecat.
26082         * modules/renameat (Depends-on): Likewise.
26083
26084         filenamecat: split into filenamecat-lgpl
26085         * modules/filenamecat-lgpl: New module.
26086         * modules/filenamecat (Files): Move library-safe files into
26087         filenamecat-lgpl.
26088         (Depends-on): Add filenamecat-lgpl.
26089         (configure.ac): Declare witness.
26090         * lib/filenamecat.h (file_name_concat): Only declare when using
26091         GPL module.
26092         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
26093         Move...
26094         * lib/filenamecat-lgpl.c: ...into new file.
26095         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
26096         (gl_FILE_NAME_CONCAT): Use it.
26097         * MODULES.html.sh (File system functions): Mention new module.
26098
26099         argp: avoid memory leak
26100         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
26101         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
26102         base_name, since the latter malloc()s and can call exit().
26103         Leak introduced 2006-07-03.
26104
26105         dirname-lgpl: adjust clients that don't need full dirname
26106         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
26107         * modules/filenamecat (Depends-on): Likewise.
26108         * modules/linkat (Depends-on): Likewise.
26109         * modules/mkancesdirs (Depends-on): Likewise.
26110         * modules/mkdir (Depends-on): Likewise.
26111         * modules/openat (Depends-on): Likewise.
26112         * modules/savewd (Depends-on): Likewise.
26113         * modules/rename (Depends-on): Likewise.
26114         (License): Relax license.
26115         * modules/mkdir-tests (Depends-on): Drop progname.
26116         (Makefile.am): Delete unneeded LDADD.
26117         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
26118
26119         dirname: split into dirname-lgpl
26120         * modules/dirname-lgpl: New module.
26121         * modules/dirname (Files): Move library-safe files into
26122         dirname-lgpl.
26123         (Depends-on): Add dirname-lgpl.
26124         (configure.ac): Declare witness.
26125         * modules/double-slash-root (License): Relax license.
26126         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
26127         module.
26128         * lib/dirname.c (dir_len, mdir_name): Move...
26129         * lib/dirname-lgpl.c: ...into new file.
26130         * lib/basename.c (last_component, base_len): Move...
26131         * lib/basename-lgpl.c: ...into new file.
26132         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
26133         (gl_DIRNAME): Use it.
26134         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
26135         Mention new module.
26136         * modules/dirname-tests (Depends-on): Add progname.
26137         * tests/test-dirname.c (program_name): Delete.
26138
26139         mkdir: make safe for libraries
26140         * modules/mkdir (Depends-on): Drop xalloc.
26141         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
26142         exit.
26143
26144         tests: avoid some compiler warnings
26145         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
26146         literals.
26147         * tests/test-memchr.c (main): Avoid type mismatch.
26148         * tests/test-arpa_inet.c (main): Avoid unused parameters.
26149         * tests/test-base64.c (main): Likewise.
26150         * tests/test-getdelim.c (main): Likewise.
26151         * tests/test-gethostname.c (main): Likewise.
26152         * tests/test-getline.c (main): Likewise.
26153         * tests/test-netinet_in.c (main): Likewise.
26154         * tests/test-select.c (open_server_socket, main): Likewise.
26155         * tests/test-select-stdin.c (main): Likewise.
26156         * tests/test-sockets.c (main): Likewise.
26157         * tests/test-strsignal.c (main): Likewise.
26158         * tests/test-sys_select.c (main): Likewise.
26159         * tests/test-sys_socket.c (main): Likewise.
26160         * tests/test-u64.c (main): Likewise.
26161         * tests/test-xfprintf-posix.c (main): Likewise.
26162         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
26163
26164         sockets: avoid compiler warning
26165         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
26166
26167         maint: detect usage(1) and other suspicious exits
26168         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
26169
26170 2009-10-29  Jim Meyering  <meyering@redhat.com>
26171
26172         timespec: long-to-int truncation could make timespec_cmp malfunction
26173         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
26174         a multiple of 2^32 nanoseconds as no difference.
26175
26176 2009-10-28  Jim Meyering  <meyering@redhat.com>
26177
26178         fprintftime: wrap macro code argument in "do {...} while(0)"
26179         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
26180         cpy macro must be a statement that can be followed by a semicolon.
26181         Now that the else clause contains a comment and is hence longer
26182         than one line, I require curly braces.  That in turn requires
26183         that we wrap this code block in the standard do...while(0).
26184
26185         fprintftime: remove stray semicolon from previous change
26186         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
26187
26188         fprintftime: avoid a warning about ignored fwrite return value
26189         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
26190         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
26191         that is unsafe.
26192         * modules/fprintftime (Depends-on): Add ignore-value.
26193
26194         exclude: avoid an unwarranted warning
26195         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
26196
26197 2009-10-27  Eric Blake  <ebb9@byu.net>
26198
26199         fseek: avoid compilation failure when fflush is replaced
26200         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
26201         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
26202         module is in use.
26203         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
26204         module is not in use; since REPLACE_FSEEK worked otherwise.
26205         (GNULIB_FTELLO): Likewise for ftell.
26206         Reported by Ian Beckwith and others.
26207
26208 2009-10-27  Bruno Haible  <bruno@clisp.org>
26209
26210         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
26211         Reported by Jim Meyering.
26212
26213 2009-10-27  Jim Meyering  <jim@meyering.net>
26214             Bruno Haible  <bruno@clisp.org>
26215
26216         Avoid warning despite dropping the return value of fwrite.
26217         * lib/unicodeio.c: Include ignore-value.h.
26218         (fwrite_success_callback): Explicitly ignore fwrite's return value.
26219         * modules/unicodeio (Depends-on): Add ignore-value.
26220
26221 2009-10-26  Eric Blake  <ebb9@byu.net>
26222
26223         areadlinkat: fix fallback path
26224         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
26225         pointer and zero.
26226
26227 2009-10-22  Pádraig Brady  <P@draigBrady.com>
26228
26229         Use a better IO block size for modern systems
26230         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
26231         * lib/md2.c: Likewise.
26232         * lib/md4.c: Likewise.
26233         * lib/md5.c: Likewise.
26234         * lib/sha1.c: Likewise.
26235         * lib/sha256.c: Likewise.
26236         * lib/sha512.c: Likewise.
26237
26238 2009-10-22  Eric Blake  <ebb9@byu.net>
26239
26240         tests: avoid several compiler warnings
26241         * tests/test-getcwd.c (main): Avoid buffer underflow.
26242         * tests/test-getdate.c (main): String literals are not safe with
26243         putenv, so use setenv.  Declare unused argument.
26244         * modules/getdate-tests (Depends-on): Add setenv.
26245         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
26246         problems with string literals in char *.
26247         * tests/test-hash.c (main): Avoid shadowing declaration.
26248         (insert_new): Treat string literals as char const *.
26249         * tests/test-getopt.h (test_getopt): Likewise.
26250         (getopt_loop): Alter types to minimize casting elsewhere.
26251         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
26252         (test_getopt_long_posix): Likewise.
26253         (do_getopt_long): Add wrapper to minimize casting.
26254         * tests/test-atexit.c (clear_temp_file): Use void.
26255         * tests/test-areadlink-with-size.c (main): Declare unused
26256         arguments.
26257         * tests/test-areadlink.c (main): Likewise.
26258         * tests/test-areadlinkat-with-size.c (main): Likewise.
26259         * tests/test-areadlinkat.c (main): Likewise.
26260         * tests/test-canonicalize-lgpl.c (main): Likewise.
26261         * tests/test-canonicalize.c (main): Likewise.
26262         * tests/test-dirent-safer.c (main): Likewise.
26263         * tests/test-dirname.c (main): Likewise.
26264         * tests/test-dup2.c (main): Likewise.
26265         * tests/test-fchdir.c (main): Likewise.
26266         * tests/test-fcntl-h.c (main): Likewise.
26267         * tests/test-fcntl-safer.c (main): Likewise.
26268         * tests/test-fdopendir.c (main): Likewise.
26269         * tests/test-fdutimensat.c (main): Likewise.
26270         * tests/test-fflush.c (main): Likewise.
26271         * tests/test-filenamecat.c (main): Likewise.
26272         * tests/test-filevercmp.c (main): Likewise.
26273         * tests/test-fopen-safer.c (main): Likewise.
26274         * tests/test-fopen.c (main): Likewise.
26275         * tests/test-fpending.c (main): Likewise.
26276         * tests/test-fpurge.c (main): Likewise.
26277         * tests/test-freading.c (main): Likewise.
26278         * tests/test-fstatat.c (main): Likewise.
26279         * tests/test-fsync.c (main): Likewise.
26280         * tests/test-futimens.c (main): Likewise.
26281         * tests/test-getndelim2.c (main): Likewise.
26282         * tests/test-gettimeofday.c (main): Likewise.
26283         * tests/test-getopt.c (main): Likewise.
26284         * tests/test-i-ring.c (main): Likewise.
26285         * tests/test-inttypes.c (main): Likewise.
26286         * tests/test-link.c (main): Likewise.
26287         * tests/test-lstat.c (main): Likewise.
26288         * tests/test-math.c (main): Likewise.
26289         * tests/test-md5.c (main): Likewise.
26290         * tests/test-memchr2.c (main): Likewise.
26291         * tests/test-memrchr.c (main): Likewise.
26292         * tests/test-mkdir.c (main): Likewise.
26293         * tests/test-mkdirat.c (main): Likewise.
26294         * tests/test-mkfifoat.c (main): Likewise.
26295         * tests/test-open.c (main): Likewise.
26296         * tests/test-openat-safer.c (main): Likewise.
26297         * tests/test-openat.c (main): Likewise.
26298         * tests/test-quotearg.c (main): Likewise.
26299         * tests/test-rawmemchr.c (main): Likewise.
26300         * tests/test-readlink.c (main): Likewise.
26301         * tests/test-remove.c (main): Likewise.
26302         * tests/test-rename.c (main): Likewise.
26303         * tests/test-renameat.c (main): Likewise.
26304         * tests/test-rmdir.c (main): Likewise.
26305         * tests/test-sha1.c (main): Likewise.
26306         * tests/test-signal.c (main): Likewise.
26307         * tests/test-sigaction.c (main): Likewise.
26308         * tests/test-stat.c (main): Likewise.
26309         * tests/test-stat-time.c (main): Likewise.
26310         * tests/test-stddef.c (main): Likewise.
26311         * tests/test-stdint.c (main): Likewise.
26312         * tests/test-stdio.c (main): Likewise.
26313         * tests/test-stdlib.c (main): Likewise.
26314         * tests/test-strchrnul.c (main): Likewise.
26315         * tests/test-strerror.c (main): Likewise.
26316         * tests/test-string.c (main): Likewise.
26317         * tests/test-strtod.c (main): Likewise.
26318         * tests/test-strverscmp.c (main): Likewise.
26319         * tests/test-symlink.c (main): Likewise.
26320         * tests/test-symlinkat.c (main): Likewise.
26321         * tests/test-sys_stat.c (main): Likewise.
26322         * tests/test-sys_time.c (main): Likewise.
26323         * tests/test-time.c (main): Likewise.
26324         * tests/test-unistd.c (main): Likewise.
26325         * tests/test-unlink.c (main): Likewise.
26326         * tests/test-unlinkat.c (main): Likewise.
26327         * tests/test-utimens.c (main): Likewise.
26328         * tests/test-utimensat.c (main): Likewise.
26329         * tests/test-version-etc.c (main): Likewise.
26330         * tests/test-wchar.c (main): Likewise.
26331         * tests/test-wctype.c (main): Likewise.
26332         * tests/test-xprintf-posix.c (main): Likewise.
26333         * tests/test-posixtm.c (main): Likewise.
26334         (STREQ): Delete unused macro.
26335         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
26336         shadowed variables.
26337         * tests/test-memchr.c (main): Likewise.
26338
26339 2009-10-21  Eric Blake  <ebb9@byu.net>
26340
26341         areadlinkat: avoid failure on older glibc
26342         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
26343         rather than mis-comparing 0 against FUNC_RESULT of char*.
26344
26345 2009-10-21  Bruno Haible  <bruno@clisp.org>
26346
26347         * modules/stpncpy (License): Relicense under LGPLv2+.
26348         Reported by David Lutterkort <lutter@redhat.com>.
26349
26350 2009-10-20  Eric Blake  <ebb9@byu.net>
26351
26352         utimensat: work around Solaris 9 bug
26353         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
26354         has trailing slash bugs.
26355         * tests/test-lutimens.h (test_lutimens): Enhance test.
26356         * tests/test-utimens.h (test_utimens): Likewise.
26357         * doc/posix-functions/utime.texi (utime): Enhance documentation.
26358         * doc/posix-functions/utimes.texi (utimes): Likewise.
26359         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
26360         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
26361         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
26362         * doc/posix-functions/futimens.texi (futimens): Likewise.
26363
26364         fdutimensat: new module
26365         * modules/fdutimensat: New file.
26366         * lib/fdutimensat.c (fdutimensat): Likewise.
26367         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
26368         * MODULES.html.sh (File system functions): Mention module.
26369         * modules/fdutimensat-tests: New test.
26370         * tests/test-fdutimensat.c: Likewise.
26371
26372         doc: regenerate INSTALL
26373         * doc/INSTALL: Reflect recent autoconf update.
26374         * doc/INSTALL.ISO: Likewise.
26375         * doc/INSTALL.UTF-8: Likewise.
26376
26377 2009-10-20  Pádraig Brady  <P@draigBrady.com>
26378
26379         acl: warn if ACL support is not detected
26380         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
26381
26382 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
26383
26384         * lib/nproc.h: Add extern "C" block for C++.
26385
26386 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
26387             Bruno Haible  <bruno@clisp.org>
26388
26389         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
26390         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
26391         * doc/posix-functions/isalpha.texi: Likewise.
26392         * doc/posix-functions/isblank.texi: Likewise.
26393         * doc/posix-functions/iscntrl.texi: Likewise.
26394         * doc/posix-functions/isdigit.texi: Likewise.
26395         * doc/posix-functions/isgraph.texi: Likewise.
26396         * doc/posix-functions/islower.texi: Likewise.
26397         * doc/posix-functions/isprint.texi: Likewise.
26398         * doc/posix-functions/ispunct.texi: Likewise.
26399         * doc/posix-functions/isspace.texi: Likewise.
26400         * doc/posix-functions/isupper.texi: Likewise.
26401         * doc/posix-functions/isxdigit.texi: Likewise.
26402
26403 2009-10-18  Bruno Haible  <bruno@clisp.org>
26404
26405         Tests for module 'isblank'.
26406         * modules/isblank-tests: New file.
26407         * tests/test-isblank.c: New file.
26408
26409         New module 'isblank'.
26410         * lib/isblank.c: New file.
26411         * m4/isblank.m4: New file.
26412         * modules/isblank: New file.
26413         * doc/posix-functions/isblank.texi: Mention the new module.
26414
26415 2009-10-18  Bruno Haible  <bruno@clisp.org>
26416
26417         New module 'ctype'.
26418         * lib/ctype.in.h: New file.
26419         * m4/ctype.m4: New file.
26420         * modules/ctype: New file.
26421         * doc/posix-headers/ctype.texi: Mention the new module.
26422
26423 2009-10-18  Jim Meyering  <meyering@redhat.com>
26424
26425         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
26426         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
26427         right after its initialization, rather than farther down.
26428         Keeping these in close proximity makes it easier to ensure
26429         that each such variable is initialized.  E.g.,
26430
26431             LIB_CLOCK_GETTIME=
26432             AC_SUBST([LIB_CLOCK_GETTIME])
26433
26434         This change also increments these serial numbers.
26435         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
26436         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
26437         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26438
26439 2009-10-18  Bruno Haible  <bruno@clisp.org>
26440
26441         Don't let environment variables perturb build.
26442         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
26443         (gl_PREREQ_GETHRXTIME): ... not here.
26444
26445 2009-10-18  Bruno Haible  <bruno@clisp.org>
26446
26447         Avoid symlink attack in localcharset module.
26448         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
26449         (O_NOFOLLOW): Define fallback.
26450         (get_charset_aliases): Don't open the file if it is a symbolic link.
26451         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
26452         gl_FCNTL_H.
26453         (gl_FCNTL_H): Require it.
26454         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
26455         * modules/localcharset (Files): Add m4/fcntl_h.m4.
26456         Reported by Fergal Glynn <fglynn@veracode.com>.
26457
26458 2009-10-18  Bruno Haible  <bruno@clisp.org>
26459
26460         Implement nproc for mingw.
26461         * lib/nproc.c: Include <windows.h>
26462         (num_processors): On native Windows platforms, try GetSystemInfo.
26463
26464 2009-10-18  Bruno Haible  <bruno@clisp.org>
26465
26466         Implement nproc for IRIX.
26467         * lib/nproc.c: Include <sys/sysmp.h>.
26468         (num_processors): On IRIX systems, try sysmp.
26469         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
26470
26471 2009-10-18  Bruno Haible  <bruno@clisp.org>
26472
26473         Implement nproc for HP-UX.
26474         * lib/nproc.c: Include <sys/pstat.h>
26475         (num_processors): On HP-UX systems, try pstat_getdynamic.
26476         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
26477         pstat_getdynamic.
26478
26479 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
26480             Bruno Haible  <bruno@clisp.org>
26481
26482         Implement nproc for NetBSD, OpenBSD.
26483         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
26484         (ARRAY_SIZE): New macro.
26485         (num_processors): On BSD systems, try sysctl of HW_NCPU.
26486         * m4/nproc.m4: New file.
26487         * modules/nproc (Files): Add m4/nproc.m4.
26488         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
26489         (Makefile.am): Instead, augment lib_SOURCES.
26490
26491 2009-10-18  Bruno Haible  <bruno@clisp.org>
26492
26493         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
26494         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
26495         sys/param.h.
26496
26497 2009-10-16  Eric Blake  <ebb9@byu.net>
26498
26499         utimensat: new module
26500         * modules/utimensat: New file.
26501         * lib/utimensat.c (utimensat): Likewise.
26502         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
26503         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
26504         so we can work around Linux bugs.
26505         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
26506         * modules/sys_stat (Makefile.am): Substitute them.
26507         * lib/sys_stat.in.h (utimensat): Declare it.
26508         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26509         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
26510         * modules/utimensat-tests: New test.
26511         * tests/test-utimensat.c: Likewise.
26512
26513         utimens: let lutimens work on non-symlinks
26514         * lib/utimens.c (lutimens): Fall back to utimens rather than
26515         failing with ENOSYS, when file is not a symlink.
26516         (utimens): Reduce redirection.
26517         * tests/test-lutimens.h (test_lutimens): Update test to cover
26518         non-symlinks.
26519         * tests/test-utimens.h (test_utimens): Update test to cover
26520         symlinks.
26521         * tests/test-utimens.c (main): Update caller.
26522
26523         utimens: cache whether utimensat syscall works
26524         * lib/utimens.c (utimensat_works_really): New cache variable.
26525         (fdutimens, lutimens): Use it to avoid failing syscall.
26526
26527         test-stat-time, test-utimens: improve portability
26528         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
26529         ext4 on alpha, and for cygwin.
26530         * tests/test-utimens-common.h: New file.
26531         (nap): Factor delays into single function.
26532         * tests/test-lutimens.h (test_lutimens): Use new header.
26533         * tests/test-futimens.h (test_futimens): Likewise.
26534         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
26535         timestamps to occur from same machine, as was done previously for
26536         test_utimens.
26537         * modules/utimens-tests (Files): Ship new file.
26538         * modules/futimens-tests (Files): Likewise.
26539         Reported in part by Jim Meyering.
26540
26541         sys_stat: sort replacement declarations
26542         * lib/sys_stat.in.h: Sort declarations.
26543         * lib/futimens.c (futimens): Fix typo.
26544
26545 2009-10-15  Jim Meyering  <meyering@redhat.com>
26546
26547         don't let environment settings perturb build
26548         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
26549         could cause a configure-time and/or build-time malfunction.
26550         Typically, a configure-time function-in-library test is performed
26551         via code like this:
26552
26553           LIB_VAR=
26554           AC_SUBST([LIB_VAR])
26555           prefix_saved_LIBS=$LIBS
26556             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
26557                        [test "$ac_cv_search_FUNC" = "none required" ||
26558                         LIB_VAR=$ac_cv_search_FUNC])
26559           LIBS=$prefix_saved_LIBS
26560
26561         However, in each of the files affected by this change, the LIB_VAR=
26562         initialization was omitted.  Thus, when set in the environment, its
26563         value would propagate into generated Makefiles when FUNC is not found
26564         in LIB_NAME.
26565         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
26566         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
26567         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26568
26569 2009-10-14  Eric Blake  <ebb9@byu.net>
26570
26571         fchdir: avoid infinite recursion in mingw
26572         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
26573         recursing.
26574
26575         test-stat-time: port to mingw
26576         * tests/test-stat-time.c (force_unlink): Return a value.
26577         (test_ctime) [W32]: Fix compilation error.
26578         (nap): Don't call usleep with too large an argument.  Use
26579         force_unlink.
26580         * doc/pastposix-functions/usleep.texi (usleep): Document the
26581         portability issue.
26582
26583 2009-10-13  Jim Meyering  <meyering@redhat.com>
26584
26585         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
26586         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
26587         * modules/pipe-filter-ii: Likewise.
26588         * modules/sys_socket-tests: Likewise.
26589         * modules/tsearch-tests: Likewise.
26590         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
26591         (check): Depend on it.
26592
26593 2009-10-12  Eric Blake  <ebb9@byu.net>
26594
26595         utimens-tests: port to NFS file systems
26596         * tests/test-utimens.h (test_utimens): Refactor utimecmp
26597         comparisons to avoid spurious failures from timestamp drift
26598         between NFS machines.
26599
26600 2009-10-12  Eric Blake  <ebb9@byu.net>
26601
26602         stat-time-tests: minor cleanups
26603         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
26604         * tests/test-stat-time.c (nap): Separate assignment from call.
26605         Suggested by Paolo Bonzini and Bruno Haible.
26606
26607         sys_stat: guarantee struct timespec
26608         * lib/sys_stat.in.h (includes): Always include <time.h>
26609         * modules/sys_stat (Depends-on): Add time.
26610         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
26611         mode_t permission values.
26612         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
26613         get at subsecond timestamps.
26614
26615 2009-10-10  Eric Blake  <ebb9@byu.net>
26616
26617         futimens: new module
26618         * modules/futimens: New file.
26619         * lib/futimens.c (futimens): Likewise.
26620         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
26621         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
26622         we can work around Linux bugs.
26623         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
26624         * modules/sys_stat (Makefile.am): Substitute them.
26625         * lib/sys_stat.in.h (futimens): Declare it.
26626         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26627         * doc/posix-functions/futimens.texi (futimens): Likewise.
26628         * modules/futimens-tests: New test.
26629         * tests/test-futimens.c: Likewise.
26630
26631         utimens: introduce fdutimens
26632         * lib/utimens.h (fdutimens): New prototype.
26633         * lib/utimens.c (gl_futimens): Move guts...
26634         (fdutimens): ...to new interface.
26635         * tests/test-utimens.c (do_fdutimens): Use it.
26636
26637         utimens: add UTIME_NOW and UTIME_OMIT support
26638         * lib/utimens.c (validate_timespec, update_timespec): New helper
26639         functions.
26640         (gl_futimens, lutimens): Use them.
26641         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
26642         stdbool, sys_stat.
26643         (Link): Mention resulting library dependency.
26644         * modules/utimecmp (Link): Likewise.
26645         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
26646         (Makefile.am): Pick up library dependency.
26647         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
26648         definition.
26649         * tests/test-sys_stat.c: Test the definitions.
26650         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
26651         * NEWS: Document library dependency.
26652
26653         utimecmp: support symlink timestamps
26654         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
26655         hashing when possible.  Use pathconf when available.
26656         (SYSCALL_RESOLUTION): Recognize tighter resolution.
26657         * modules/utimecmp (Depends-on): Add lstat.
26658
26659         utimens: add lutimens interface
26660         * lib/utimens.c (lutimens): New function.
26661         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
26662         * lib/utimens.h (lutimens): Declare new interface.
26663         * tests/test-utimens.c (main): Enhance test.
26664         * tests/test-lutimens.h (test_lutimens): New file.
26665         * modules/utimens-tests (Files): Distribute it.
26666         (Depends-on): Add symlink.
26667         (configure.ac): Check for usleep.
26668
26669         utimens: validate futimens usage
26670         * lib/utimens.c (gl_futimens): Require valid fd up front, using
26671         fewer syscalls on failure later on.  Avoid compiler warning on
26672         mingw.
26673         * modules/utimens (Depends-on): Add dup2.
26674
26675         utimens: add test
26676         * modules/utimens-tests: New test.
26677         * tests/test-utimens.h: New file.
26678         * tests/test-futimens.h: Likewise.
26679         * tests/test-utimens.c: Likewise.
26680
26681         doc: mention timestamp portability issues
26682         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
26683         instead.
26684         * doc/posix-functions/utime.texi (utime): Likewise.
26685         * doc/posix-functions/utimes.texi (utimes): Likewise.
26686         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
26687         instead.
26688         * doc/posix-functions/futimens.texi (futimens): Mention utimens
26689         module.
26690         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
26691         Mention weakness with symlink timestamps.
26692         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
26693         to utimensat/futimens instead.
26694         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
26695
26696         test-dup2: enhance test
26697         * tests/test-dup2.c (main): Also check AT_FDCWD.
26698
26699         test-stat-time: avoid more spurious failures
26700         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
26701         xfs; and avoid race if the two timestamps cross quantization edge.
26702
26703         relocatable: prefer 'file system' over 'filesystem'
26704         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
26705         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
26706         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
26707         * doc/relocatable.texi (Enabling Relocatability): Likewise.
26708         * lib/relocatable.c (compute_curr_prefix): Likewise.
26709
26710 2009-10-10  Jim Meyering  <meyering@redhat.com>
26711
26712         stat-time-tests: check for the usleep function
26713         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
26714
26715 2009-10-10  Bruno Haible  <bruno@clisp.org>
26716
26717         * modules/xnanosleep: Put the Link section after the Include section.
26718
26719 2009-10-09  Eric Blake  <ebb9@byu.net>
26720
26721         dup2: work around FreeBSD 6.1 bug
26722         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
26723         * doc/posix-functions/dup2.texi (dup2): Document it.
26724         Reported by Nelson H. F. Beebe and Jim Meyering.
26725
26726         test-stat-time: port to buggy NFS clients
26727         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
26728         (test_ctime): Also skip test if mtime and ctime are skewed.
26729
26730         maint: prefer 'file system' over 'filesystem'
26731         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
26732         * doc/posix-functions/lstat.texi (lstat): Likewise.
26733         * lib/file-has-acl.c (file_has_acl): Likewise.
26734         * lib/fwriteerror.c [TEST]: Likewise.
26735         * tests/test-areadlink.h (test_areadlink): Likewise.
26736         * tests/test-areadlinkat-with-size.c (main): Likewise.
26737         * tests/test-areadlinkat.c (main): Likewise.
26738         * tests/test-canonicalize-lgpl.c (main): Likewise.
26739         * tests/test-canonicalize.c (main): Likewise.
26740         * tests/test-fstatat.c (main): Likewise.
26741         * tests/test-linkat.c (main): Likewise.
26742         * tests/test-lstat.h (test_lstat_func): Likewise.
26743         * tests/test-mkdir.h (test_mkdir): Likewise.
26744         * tests/test-readlink.h (test_readlink): Likewise.
26745         * tests/test-remove.c (main): Likewise.
26746         * tests/test-rename.h (test_rename): Likewise.
26747         * tests/test-renameat.c (main): Likewise.
26748         * tests/test-rmdir.h (test_rmdir_func): Likewise.
26749         * tests/test-symlink.h (test_symlink): Likewise.
26750         * tests/test-symlinkat.c (main): Likewise.
26751         * tests/test-unlink.h (test_unlink_func): Likewise.
26752         * tests/test-unlinkat.c (main): Likewise.
26753
26754         maint: make realtime library usage explicit
26755         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
26756         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
26757         * modules/settime (Link): Likewise.
26758         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
26759
26760         test-stat-time: speed up execution
26761         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
26762         warning on mingw.
26763         (nap): New helper function.
26764         (prepare_test): Use it to reduce sleep time.
26765         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
26766         execution.
26767         * modules/stat-time-tests (configure.ac): Check for usleep.
26768
26769 2009-10-09  Jim Meyering  <meyering@redhat.com>
26770
26771         selinux-h: always use getfilecon wrappers
26772         * lib/getfilecon.c: New file.
26773         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
26774         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
26775         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
26776         (fgetfilecon): Provide a stub.
26777         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
26778         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
26779         file unconditionally.
26780         When <selinux/selinux.h> is found, arrange to use wrappers.
26781         * modules/selinux-h (Files): Add getfilecon.c.
26782         (Makefile.am): Substitute include-next-related bits
26783         into the now-always-generated selinux/selinux.h file.
26784         * doc/glibc-functions/lgetfilecon.texi: New file.
26785         * doc/glibc-functions/fgetfilecon.texi: New file.
26786         * doc/glibc-functions/getfilecon.texi: New file.
26787         * doc/glibc-functions/getfilecon-desc.texi: New file.
26788         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
26789         which to pull in the new files.
26790         * MODULES.html.sh (Misc): Add selinux-h.
26791
26792 2009-10-08  Jim Meyering  <meyering@redhat.com>
26793
26794         unistd: fix comment typo
26795         * lib/unistd.in.h (euidaccess): Fix a comment typo.
26796
26797 2009-10-08  Eric Blake  <ebb9@byu.net>
26798
26799         areadlink: use SIZE_MAX consistently
26800         * modules/areadlink (Depends-on): Add stdint.
26801         * modules/areadlink-with-size (Depends-on): Likewise.
26802         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
26803         gives NULL; drop sys/types, since unistd gives size_t; and add
26804         stdint for SIZE_MAX.
26805         (SIZE_MAX): Rely on headers.
26806         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
26807         and add stdint.
26808         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
26809         (SIZE_MAX): Likewise.
26810         (INITIAL_BUF_SIZE): Turn into enum.
26811         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
26812
26813 2009-10-08  Jim Meyering  <meyering@redhat.com>
26814
26815         areadlinkat: avoid compilation failure
26816         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
26817         Fix typo in comment.
26818
26819 2009-10-07  Eric Blake  <ebb9@byu.net>
26820
26821         areadlinkat-with-size: new module
26822         * modules/areadlinkat-with-size: New module.
26823         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
26824         * lib/areadlink.h (areadlinkat): Declare it.
26825         * MODULES.html.sh (File system functions): Mention it.
26826         * modules/areadlinkat-with-size-tests: New test.
26827         * tests/test-areadlinkat-with-size.c: New file.
26828
26829         xreadlinkat: new module
26830         * modules/xreadlinkat: New module.
26831         * lib/xreadlinkat.c (xreadlinkat): New file.
26832         * lib/xreadlink.h (xreadlinkat): Declare it.
26833         * MODULES.html.sh (File system functions): Mention it.
26834
26835         areadlinkat: new module
26836         * lib/at-func.c (FUNC_FAIL): New define.
26837         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
26838         * modules/areadlinkat: New module.
26839         * lib/linkat.c (areadlinkat): Move...
26840         * lib/areadlinkat.c (areadlinkat): ...to new file.
26841         * lib/areadlink.h (areadlinkat): Declare it.
26842         * modules/linkat (Depends-on): Add areadlinkat.
26843         * MODULES.html.sh (File system functions): Mention it.
26844         * modules/areadlinkat-tests: New test.
26845         * tests/test-areadlinkat.c: New file.
26846
26847         areadlink, areadlink-with-size: add tests
26848         * modules/areadlink-tests: New test.
26849         * modules/areadlink-with-size-tests: Likewise.
26850         * tests/test-areadlink.h: New file.
26851         * tests/test-areadlink.c: Likewise.
26852         * tests/test-areadlink-with-size.c: Likewise.
26853
26854         maint: minor cleanups
26855         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
26856         _UNUSED_PARAMETER_ instead.
26857         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
26858         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
26859         * modules/linkat-tests (Files): Distribute test-link.h.
26860
26861         openat, utimens: whitespace cleanup
26862         * lib/openat.c: Prefer space throughout, rather than mix of 8
26863         spaces vs. tabs.
26864         * lib/at-func.c: Likewise.
26865         * lib/utimens.c: Likewise.
26866
26867         openat: avoid using wrong fd
26868         * lib/openat.c (openat_permissive): Reject user's fd if saving the
26869         working directory chooses same fd.
26870         * lib/at-func.c (AT_FUNC_NAME): Likewise.
26871
26872         mkdir, mkdirat: fix cygwin 1.5.x bug
26873         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
26874         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
26875         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
26876         bug.
26877         (gl_PREREQ_MKDIR): Delete unused macro.
26878         * modules/mkdir (Files): Track file rename.
26879         (configure.ac): Update macro name.
26880         * modules/openat (Depends-on): Add mkdir.
26881         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
26882
26883         mkdir, mkdirat: add tests
26884         * modules/mkdir-tests: New test.
26885         * tests/test-mkdir.h: New file.
26886         * tests/test-mkdir.c: Likewise.
26887         * tests/test-mkdirat.c: Likewise.
26888         * modules/openat-tests (Files): Add new files.
26889         (Makefile.am): Run new test.
26890
26891 2009-10-06  Eric Blake  <ebb9@byu.net>
26892
26893         doc: tweak *at function documentation
26894         * doc/posix-functions/faccessat.texi (faccessat): Mention
26895         known issue with replacement.
26896         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
26897         * doc/posix-functions/linkat.texi (linkat): Likewise.
26898         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
26899         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
26900         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26901         * doc/posix-functions/renameat.texi (renameat): Likewise.
26902         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
26903
26904         openat: fix GNU/Hurd bug in unlinkat
26905         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
26906         broken.
26907         * doc/posix-functions/unlink.texi (unlink): Document this.
26908         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
26909
26910         fdopendir: fix GNU/Hurd bug
26911         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
26912         allowing non-directory fds.
26913         * lib/fdopendir.c (rpl_fdopendir): Work around it.
26914         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
26915         * modules/dirent (Makefile.am): Substitute it.
26916         * lib/dirent.in.h (fdopendir): Declare replacement.
26917         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
26918         * tests/test-fdopendir.c (main): Test something other than
26919         /dev/null, since on Hurd that behaves like a directory.
26920
26921         test-symlink: port to GNU/Hurd
26922         * tests/test-symlink.h (test_symlink): Relax expected errno.
26923
26924         doc: tweak more cygwin information
26925         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
26926         now compatible with glibc.
26927         * doc/posix-functions/getopt.texi (getopt): Likewise.
26928
26929         getopt-gnu: add another test
26930         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
26931         guarantee behavior relied on by m4.
26932         * tests/test-getopt.c (main): Use it.
26933         * modules/getopt-posix-tests (Depends-on): Add setenv.
26934         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
26935
26936         getopt: fix compilation on darwin
26937         * lib/getopt.in.h (includes): Leave breadcrumbs during system
26938         include.
26939         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
26940         Reported by Ludovic Courtès.
26941
26942 2009-10-06  Bruno Haible  <bruno@clisp.org>
26943
26944         * modules/size_max (Description): Discourage its use.
26945         Reported by Simon Josefsson.
26946
26947 2009-10-06  Jim Meyering  <meyering@redhat.com>
26948
26949         linkat: avoid compilation failure
26950         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
26951
26952 2009-10-05  Eric Blake  <ebb9@byu.net>
26953
26954         linkat: support Linux 2.6.17
26955         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
26956         linkat on Linux, but allow cache variable override.
26957         * lib/linkat.c (rpl_linkat): Define override.
26958         * modules/linkat (Depends-on): Add symlinkat.
26959         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
26960         * modules/unistd (Makefile.am): Substitute it.
26961         * lib/unistd.in.h (linkat): Declare replacement.
26962         Reported by Pádraig Brady.
26963
26964         quotearg: port test to systems with C.UTF-8 locale
26965         * tests/test-quotearg.c (struct result_strings): Add another
26966         member, differentiating between C.ASCII and C.UTF-8 handling.
26967         (compare_strings): Add parameter.
26968         (main): Adjust all callers.
26969
26970         getopt: avoid clash with FreeBSD _getopt_internal
26971         * lib/getopt.in.h (_getopt_internal): Override the name.
26972         * lib/getopt_int.h (includes): Pick up any overrides.
26973         Reported by Reuben Thomas.
26974
26975         hash: allow C89 compilation
26976         * lib/hash.c (check_tuning): Move declaration before statement.
26977         Reported by Reuben Thomas.
26978
26979 2009-10-05  Karl Berry  <karl@gnu.org>
26980
26981         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
26982
26983 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
26984             Bruno Haible  <bruno@clisp.org>
26985
26986         * lib/uname.c (uname): Use a table-driven algorithm to compute
26987         Windows NT versions.
26988
26989 2009-10-04  Bruno Haible  <bruno@clisp.org>
26990
26991         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
26992         program_invocation_short_name.
26993         * modules/progname (configure.ac): Test for presence of
26994         program_invocation_short_name.
26995         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
26996
26997 2009-10-04  Bruno Haible  <bruno@clisp.org>
26998
26999         * lib/progname.c (set_program_name): Fix comment.
27000         Reported by Jim Meyering.
27001
27002 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
27003             Bruno Haible  <bruno@clisp.org>
27004
27005         * lib/uname.c: Include <string.h>.
27006         (uname): Do only one call to GetVersionEx in the common case.
27007
27008 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
27009             Bruno Haible  <bruno@clisp.org>
27010
27011         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
27012         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
27013         (uname): Add support for Windows CE and various non-x86 CPU types.
27014
27015 2009-10-03  Bruno Haible  <bruno@clisp.org>
27016
27017         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
27018         invocation to tests/configure.ac.
27019         Reported by Ian Beckwith <ianb@erislabs.net>.
27020
27021 2009-10-02  Eric Blake  <ebb9@byu.net>
27022
27023         fchdir: avoid compiler warning
27024         * lib/fchdir.c (canonicalize_file_name)
27025         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
27026
27027         test-open: support mingw errno values
27028         * tests/test-open.h (test_open): Relax test.
27029         * tests/test-fopen.h (test_fopen): Likewise.
27030         * tests/test-openat-safer.c (main): Likewise.
27031
27032         open: fix opening directory on mingw
27033         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
27034
27035         test-open: on GNU/Hurd, /dev/null is a directory
27036         * tests/test-fopen.h (main): Rename...
27037         (test_fopen): ...to this.  Use a guaranteed non-directory when
27038         confirming open behavior on trailing slash.
27039         * tests/test-openat-safer.c (main): Likewise.
27040         * tests/test-open.h (main): Likewise....
27041         (test_open): ...to this.
27042         * tests/test-fopen.c (main): Adjust caller.
27043         * tests/test-fopen-safer.c (main): Likewise.
27044         * tests/test-open.c (main): Likewise.
27045         * tests/test-fcntl-safer.c (main): Likewise.
27046         Reported by Samuel Thibault.
27047
27048         rename, fchdir: don't ignore chdir failure
27049         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
27050         * lib/rename.c (rpl_rename) [W32]: Likewise.
27051         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
27052         an empty destination directory if source cannot be renamed,
27053         although there is still possibility for failure.
27054         * doc/posix-functions/rename.texi (rename): Document the race.
27055         Reported by Jim Meyering.
27056
27057         maint: cleanup whitespace in recent commits
27058         * lib/rename.c (rpl_rename): Remove tabs.
27059         * tests/test-link.h (test_link): Likewise.
27060         * lib/fchdir.c (get_name): Likewise.
27061         Reported by Jim Meyering.
27062
27063 2009-10-02  Ben Pfaff  <blp@gnu.org>
27064
27065         relocatable-prog-wrapper: Add missing dependency on
27066         double-slash-root.
27067         * modules/relocatable-prog-wrapper: Add dependency.
27068         Reported by Ian Beckwith <ianb@erislabs.net>.
27069
27070 2009-10-02  Eric Blake  <ebb9@byu.net>
27071
27072         renameat: fix Solaris bugs
27073         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
27074         needed fixing.
27075         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
27076         * modules/stdio (Makefile.am): Substitute it.
27077         * lib/stdio.in.h (renameat): Declare replacement.
27078         * lib/renameat.c (rpl_renameat): Implement fix.
27079
27080         renameat: new module
27081         * modules/renameat: New file.
27082         * lib/renameat.c (renameat): Likewise.
27083         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
27084         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
27085         * modules/stdio (Makefile.am): Substitute them.
27086         * lib/stdio.in.h (renameat): Declare it.
27087         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27088         * doc/posix-functions/renameat.texi (renameat): Likewise.
27089         * modules/renameat-tests: New test.
27090         * tests/test-renameat.c: Likewise.
27091
27092         rename: fix mingw bugs
27093         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
27094         directory overwrite bugs.
27095
27096         rename: fix another cygwin 1.5 bug
27097         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
27098         checks.
27099         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
27100         unnecessary cygwin workarounds.  Also work around bug with moving
27101         full directory onto an empty one.
27102         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
27103
27104         rename-dest-slash: merge into rename module
27105         * modules/rename-dest-slash (Status): Mark obsolete.
27106         (Depends-on): Add rename.
27107         (Files): Let rename do it all.
27108         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
27109         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
27110         * m4/rename-dest-slash.m4: ...so this file can be deleted.
27111         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
27112         * lib/rename.c (rpl_rename): Update comments.
27113
27114         rename: fix cygwin 1.5.x bugs
27115         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
27116         * lib/rename.c (rpl_rename): Work around them.
27117         * modules/rename (Depends-on): Add same-inode.
27118
27119         rename: fix Solaris 10 bug
27120         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
27121         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
27122         was the only bug.
27123
27124         rename: fix Solaris 9 bug
27125         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
27126         on non-directory.  Avoid calling exit.
27127         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
27128         strdup.
27129         * modules/rename-tests (Depends-on): Drop lstat.
27130         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
27131         (gl_PREREQ_RENAME): Delete unused macro.
27132
27133         rename-dest-slash: fix NetBSD bug
27134         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
27135         links.
27136         * modules/rename-dest-slash (Depends-on): Add same-inode.
27137
27138         rename-tests: new test, exposes several platform bugs
27139         * modules/rename-tests: New file.
27140         * tests/test-rename.h: Likewise.
27141         * tests/test-rename.c: Likewise.
27142         * doc/posix-functions/rename.texi (rename): Improve documentation,
27143         including bugs that will eventually be fixed in gnulib.
27144
27145 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
27146
27147         * lib/uname.c: Include <stdlib.h>
27148         (uname): Assume version info is available.
27149
27150 2009-10-02  Jim Meyering  <meyering@redhat.com>
27151
27152         gnu-web-doc-update: correct --help output
27153         * build-aux/gnu-web-doc-update: Make --help output relevant.
27154
27155         gnu-web-doc-update: add standard options
27156         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
27157
27158         gnu-web-doc-update: New module.
27159         Use this script to automatically update the on-line web documentation
27160         for your GNU project at http://www.gnu.org/software/$pkg/manual/
27161         * modules/gnu-web-doc-update: New file, from coreutils.
27162         * build-aux/gnu-web-doc-update: New script.
27163
27164 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
27165
27166         link: LoadLibrary is not needed.
27167         * lib/link.c: Use GetModuleHandle.
27168
27169 2009-10-01  Eric Blake  <ebb9@byu.net>
27170
27171         getopt: bump serial number
27172         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
27173         change.
27174
27175         tests: tighten link, rmdir, and remove tests
27176         * tests/test-link.h (includes): No need to use <config.h> here.
27177         Clean up if directory hard link was created, otherwise test for
27178         trailing '.'.
27179         * tests/test-linkat.c (main): Simplify.
27180         * tests/test-remove.c (main): Enhance test for trailing '.'.
27181         * tests/test-rmdir.h (test_rmdir_func): Likewise.
27182
27183 2009-10-01  Jim Meyering  <meyering@redhat.com>
27184
27185         maint.mk: requiring "make major" was annoying, for a "minor" release.
27186         What is intended is "stable", to contrast with alpha and beta,
27187         so require "make stable", not "make major".
27188         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
27189         (get_tool_versions): Likewise.
27190         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
27191
27192 2009-09-30  Ben Pfaff  <blp@gnu.org>
27193
27194         Fix broken build of replacement for Windows tmpfile().
27195         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
27196         flags argument added along with the 'mkostemp' module.
27197
27198 2009-09-28  Bruno Haible  <bruno@clisp.org>
27199
27200         Avoid identifier clash with POSIX function 'remove' defined as a macro.
27201         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
27202         to 'remove_elt'.
27203         (gl_list_remove): Update.
27204         * lib/gl_list.c (gl_list_remove): Update.
27205         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
27206         to 'remove_elt'.
27207         (gl_oset_remove): Update.
27208         * lib/gl_list.c (gl_oset_remove): Update.
27209         Reported by Eric Blake.
27210
27211 2009-09-28  Eric Blake  <ebb9@byu.net>
27212
27213         doc: mention yet more cygwin 1.7 status
27214         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
27215         cygwin.
27216         * doc/glibc-functions/execvpe.texi (execvpe): New file.
27217         * doc/gnulib.texi (Glibc unistd.h): Mention it.
27218
27219         argp: fix test failure
27220         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
27221         that are not upper-case.  Pass correct range to tolower.
27222
27223 2009-09-27  Jim Meyering  <meyering@redhat.com>
27224
27225         test-yesno: work around sparc-dash here-document infelicity
27226         Without this change, the literal \177 byte in a here document
27227         would make dash 0.5.5.1-3 access uninitialized memory.
27228         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
27229         Instead, use a marker, "@", and filter through tr to create the desired
27230         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
27231
27232 2009-09-27  Bruno Haible  <bruno@clisp.org>
27233
27234         Disable untested support for new flavours of ACLs on AIX.
27235         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
27236         progress.
27237         * lib/set-mode-acl.c (qset_acl): Likewise.
27238
27239 2008-12-07  Bruno Haible  <bruno@clisp.org>
27240
27241         Add support for new flavours of ACLs on AIX. (Untested.)
27242         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
27243         (file_has_acl): Add support for newer AIX.
27244         * lib/set-mode-acl.c (qset_acl): Likewise.
27245         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
27246         Rainer Tammer <tammer@tammer.net>.
27247
27248 2009-09-26  Eric Blake  <ebb9@byu.net>
27249
27250         argp: fix compilation of getopt
27251         * lib/getopt.in.h (includes): Use different guard than glibc.
27252         Reported by Sergey Poznyakoff.
27253
27254         doc: mention more cygwin 1.7 status
27255         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
27256         bug.
27257         * doc/posix-functions/execl.texi (execl): Likewise.
27258         * doc/posix-functions/execle.texi (execle): Likewise.
27259         * doc/posix-functions/execlp.texi (execlp): Likewise.
27260         * doc/posix-functions/execv.texi (execv): Likewise.
27261         * doc/posix-functions/execve.texi (execve): Likewise.
27262         * doc/posix-functions/execvp.texi (execvp): Likewise.
27263         * doc/glibc-functions/canonicalize_file_name.texi
27264         (canonicalize_file_name): Cygwin 1.7 now provides this.
27265         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
27266         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
27267         on AT_SYMLINK_NOFOLLOW.
27268
27269 2009-09-24  Eric Blake  <ebb9@byu.net>
27270
27271         test-linkat: make test more robust
27272         * tests/test-linkat.c (main): Avoid collision with EEXIST.
27273
27274         getopt: fix inclusion guards for cygwin
27275         * modules/getopt-posix (Depends-on): Add include-next.
27276         (Makefile.am): Substitute more items in replacement header.
27277         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
27278         <getopt.h>.
27279         * lib/getopt.in.h (includes): Use split inclusion guard, and
27280         prefer <getopt.h> over include <unistd.h> when one is present.
27281         (option): Also override name of 'struct option'.
27282
27283         same-inode: revert prior change; it is not yet ready
27284         * NEWS: Undo mention of this change.
27285         * lib/same-inode.h (same-inode.h): Undo tri-state change.
27286         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
27287         * lib/cycle-check.c (cycle_check): Likewise.
27288         * lib/same.c (same_name): Likewise.
27289         * lib/at-func2.c (at_func2): Likewise.
27290
27291 2009-09-23  Eric Blake  <ebb9@byu.net>
27292
27293         linkat: new module
27294         * modules/linkat: New file.
27295         * lib/at-func2.c (at_func2): Likewise.
27296         * lib/linkat.c (linkat): Likewise.
27297         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
27298         * lib/openat-priv.h (at_func2): Add declaration.
27299         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
27300         * modules/unistd (Makefile.am): Substitute them.
27301         * lib/unistd.in.h (linkat): Declare it.
27302         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27303         * doc/posix-functions/linkat.texi (linkat): Likewise.
27304         * doc/posix-functions/link.texi (link): Tweak wording.
27305         * tests/test-link.c (main): Move guts...
27306         * tests/test-link.h (test_link): ...into new file.
27307         * modules/linkat-tests: New test.
27308         * tests/test-linkat.c: Likewise.
27309         * modules/link-tests (Files): Ship new file.
27310         (Depends-on): Add stdbool.
27311
27312         dirname: add library-safe mdir_name
27313         * lib/dirname.h (mdir_name): New prototype.
27314         * lib/dirname.c (dir_name): Move guts...
27315         (mdir_name): ...to new function that avoids xalloc_die.
27316
27317         fchdir: another mingw fix
27318         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
27319         * lib/fchdir.c (get_name): New helper method; skips canonicalize
27320         on mingw (where it has not yet been ported), and make it optional
27321         elsewhere.
27322         (_gl_register_fd): Use it.
27323
27324         same-inode: make SAME_INODE tri-state, to port to mingw
27325         * NEWS: Mention this change.
27326         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
27327         st_ino always being 0.
27328         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
27329         * lib/cycle-check.c (cycle_check): Likewise.
27330         * lib/same.c (same_name): Likewise.
27331
27332         lstat: avoid mingw compilation error
27333         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
27334         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
27335         lstat ourselves.
27336         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
27337         was adequate.
27338         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
27339         the checks for lstat.
27340         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
27341
27342         link: fix test failure on Solaris 9
27343         * lib/link.c (rpl_link): Don't assume link will catch bogus
27344         trailing slash on source.
27345
27346         test-symlinkat: enhance test
27347         * tests/test-readlink.c (main): Move guts...
27348         * tests/test-readlink.h (test_readlink): ...into new file.
27349         * tests/test-symlink.c (main): Move guts...
27350         * tests/test-symlink.h (test_symlink): ...into new file.
27351         * tests/test-symlinkat.c (main): Use new files for further
27352         coverage.
27353         (do_symlink, do_readlink): New helper functions.
27354         * modules/symlink-tests (Files): Ship new file.
27355         (Depends-on): Add stdbool.
27356         * modules/readlink-tests (Files): Ship new file.
27357         (Depends-on): Add stdbool.
27358         * modules/symlinkat-tests (Files): Use new files.
27359
27360 2009-09-23  Eric Blake  <ebb9@byu.net>
27361
27362         readlink: document portability issue with symlink length
27363         * doc/posix-functions/lstat.texi (lstat): Mention that some file
27364         systems have bogus st_size on symlinks, and mention the
27365         areadlink-with-size module.
27366         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
27367         * doc/posix-functions/readlink.texi (readlink): Mention the
27368         areadlink module, and ERANGE failure.
27369         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
27370         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
27371
27372         readlink: fix Solaris 9 bug with trailing slash
27373         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
27374         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
27375         * doc/posix-functions/readlink.texi (readlink): Document this.
27376         * modules/readlink-tests: New test.
27377         * tests/test-readlink.c: Likewise.
27378
27379         readlink: fix cygwin 1.5.x bug with return type
27380         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
27381         * lib/unistd.in.h (readlink): Use ssize_t.
27382         * lib/readlink.c (readlink): Likewise.
27383         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27384         * modules/unistd (Makefile.am): Substitute it.
27385         * lib/unistd.in.h (readlink): Declare replacement.
27386         * doc/posix-functions/readlink.texi (readlink): Document this.
27387
27388         symlink: use throughout gnulib
27389         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
27390         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
27391         symlink is not used.
27392         * modules/symlinkat (Depends-on): Add symlink.
27393         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
27394         * modules/canonicalize-tests (Depends-on): Likewise.
27395         * modules/lstat-tests (Depends-on): Likewise.
27396         * modules/openat-tests (Depends-on): Likewise.
27397         * modules/remove-tests (Depends-on): Likewise.
27398         * modules/rmdir-tests (Depends-on): Likewise.
27399         * modules/unlink-tests (Depends-on): Likewise.
27400         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
27401         * tests/test-canonicalize.c (symlink): Likewise.
27402         * tests/test-fstatat.c (symlink): Likewise.
27403         * tests/test-lstat.c (symlink): Likewise.
27404         * tests/test-remove.c (symlink): Likewise.
27405         * tests/test-rmdir.c (symlink): Likewise.
27406         * tests/test-unlink.c (symlink): Likewise.
27407         * tests/test-unlinkat.c (symlink): Likewise.
27408
27409         symlink: new module, for Solaris 9 bug
27410         * modules/symlink: New file.
27411         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
27412         * lib/symlink.c: Likewise.
27413         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
27414         * modules/unistd (Makefile.am): Substitute them.
27415         * lib/unistd.in.h (symlink): Declare replacement.
27416         * MODULES.html.sh (File system functions): Mention it.
27417         * doc/posix-functions/symlink.texi (symlink): Likewise.
27418         * modules/symlink-tests: New test.
27419         * tests/test-symlink.c: Likewise.
27420
27421 2009-09-23  Bruno Haible  <bruno@clisp.org>
27422
27423         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
27424         when needed.
27425         Test case: gnulib-tool --import --with-tests atexit inttypes.
27426         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
27427
27428 2009-09-23  Bruno Haible  <bruno@clisp.org>
27429
27430         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
27431         subcommand, not in a subshell.
27432
27433 2009-09-22  Eric Blake  <ebb9@byu.net>
27434
27435         unistd: sort replacement declarations
27436         * lib/unistd.in.h: Sort declarations.
27437
27438         open, openat: minor optimization
27439         * lib/open.c (open): If open succeeded, len is non-zero.
27440         * lib/openat.c (rpl_openat): Likewise.
27441
27442         link-follow: ensure correct result
27443         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
27444         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
27445         distinguish between possible failures.
27446
27447 2009-09-21  Eric Blake  <ebb9@byu.net>
27448
27449         fts: avoid compiler warning
27450         * lib/fts.c (dirent_inode_sort_may_be_useful)
27451         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
27452
27453 2009-09-19  Bruno Haible  <bruno@clisp.org>
27454
27455         * lib/progreloc.c (canonicalize_file_name): New declaration.
27456
27457 2009-09-19  Eric Blake  <ebb9@byu.net>
27458
27459         link: fix quoting
27460         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
27461
27462         openat: fix openat bugs on Solaris 9
27463         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
27464         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
27465         * modules/openat (Depends-on): Add open.
27466         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
27467         * modules/fcntl-h (Makefile.am): Substitute it.
27468         * lib/fcntl.in.h (openat): Declare replacement.
27469         * doc/posix-functions/openat.texi (openat): Document this.
27470
27471         openat: move fstatat and unlinkat into correct files
27472         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
27473         compiled.
27474         * lib/openat.c (fstatat, unlinkat): Move...
27475         * lib/fstatat.c (fstatat): ...into correct files.
27476         * lib/unlinkat.c (unlinkat): Likewise.
27477
27478         openat: fix unlinkat bugs on Solaris 9
27479         * lib/unlinkat.c (unlinkat): New file.
27480         * modules/openat (Depends-on): Add unlink.
27481         (Files): Distribute it.
27482         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
27483         trailing slash behavior is broken.
27484         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27485         * modules/unistd (Makefile.am): Substitute it.
27486         * lib/unistd.in.h (unlinkat): Declare replacement.
27487         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
27488
27489         openat: fix fstatat bugs on Solaris 9
27490         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
27491         stat.
27492         * doc/posix-functions/fstatat.texi (fstatat): Document this.
27493
27494         test-unlinkat: enhance test, to expose Solaris 9 bug
27495         * tests/test-unlink.c (main): Factor guts...
27496         * tests/test-unlink.h (test_rmdir_func): ...into new file.
27497         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
27498         * tests/test-rmdir.c (main): Adjust caller.
27499         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
27500         (unlinker): New helper function.
27501         (rmdirat): Enhance check.
27502         * modules/rmdir-tests (Depends-on): Add stdbool.
27503         * modules/unlink-tests (Depends-on): Likewise.
27504         (Files): Add test-unlink.h.
27505         * modules/openat-tests (Files): Likewise.
27506         (Depends-on): Add unlinkdir.
27507
27508         test-fstatat: new test, to expose Solaris 9 bugs
27509         * tests/test-stat.c (main): Factor guts...
27510         * tests/test-stat.h (test_stat_func): ...into new file.
27511         * tests/test-lstat.c (main): Factor guts...
27512         * tests/test-lstat.h (test_lstat_func): ...into new file.
27513         * tests/test-fstatat.c: New file.
27514         * modules/stat-tests (Files): Add test-stat.h.
27515         * modules/lstat-tests (Files): Add test-lstat.h.
27516         (Depends-on): Add stdbool.
27517         * modules/openat-tests (Depends-on): Add pathmax.
27518         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
27519         (Makefile.am): Run new test.
27520
27521         remove: new module, for mingw and Solaris 9 bugs
27522         * modules/remove: New file.
27523         * lib/remove.c: Likewise.
27524         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
27525         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
27526         * modules/stdio (Makefile.am): Use them.
27527         * lib/stdio.in.h (remove): Declare replacement.
27528         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27529         * doc/posix-functions/remove.texi (remove): Likewise.
27530         * modules/remove-tests: New test.
27531         * tests/test-remove.c: Likewise.
27532
27533         unlink: new module, for Solaris 9 bug
27534         * modules/unlink: New file.
27535         * lib/unlink.c: Likewise.
27536         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
27537         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
27538         * modules/unistd (Makefile.am): Use them.
27539         * lib/unistd.in.h (stat): Declare replacement.
27540         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27541         * doc/posix-functions/unlink.texi (unlink): Likewise.
27542         * modules/unlink-tests: New test.
27543         * tests/test-unlink.c: Likewise.
27544
27545         lstat: fix Solaris 9 bug
27546         * lib/lstat.c (lstat): Also check for trailing slash on
27547         non-symlink, non-directories.  Use stat module to simplify logic.
27548         * doc/posix-functions/lstat.texi (lstat): Document it.
27549         * modules/lstat-tests (Depends-on): Add errno, same-inode.
27550         (configure.ac): Check for symlink.
27551         * tests/test-lstat.c (main): Add more tests.
27552
27553         stat: add as dependency to other modules
27554         * modules/chown (Depends-on): Add stat.
27555         * modules/euidaccess (Depends-on): Likewise.
27556         * modules/fchdir (Depends-on): Likewise.
27557         * modules/isdir (Depends-on): Likewise.
27558         * modules/link (Depends-on): Likewise.
27559         * modules/lstat (Depends-on): Likewise.
27560         * modules/mkdir-p (Depends-on): Likewise.
27561         * modules/modechange (Depends-on): Likewise.
27562         * modules/open (Depends-on): Likewise.
27563         * modules/readlink (Depends-on): Likewise.
27564         * modules/same (Depends-on): Likewise.
27565
27566         stat: fix Solaris 9 bug
27567         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
27568         slash.
27569         * lib/stat.c (rpl_stat): Work around it.
27570         * doc/posix-functions/stat.texi (stat): Update documentation.
27571
27572         stat: new module, for mingw bug
27573         * modules/stat: New file.
27574         * lib/stat.c: Likewise.
27575         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
27576         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
27577         * modules/sys_stat (Makefile.am): Use them.
27578         * lib/sys_stat.in.h (stat): Declare replacement.
27579         * lib/openat.c (fstatat): Deal with lstat and stat being function
27580         macros.
27581         * modules/openat (Depends-on): Add inline.
27582         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27583         * doc/posix-functions/stat.texi (stat): Likewise.
27584         * modules/stat-tests: New test.
27585         * tests/test-stat.c: Likewise.
27586
27587 2009-09-19  Jim Meyering  <meyering@redhat.com>
27588
27589         syntax-check: detect unnecessary inclusion of canonicalize.h
27590         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
27591
27592 2009-09-19  Eric Blake  <ebb9@byu.net>
27593
27594         canonicalize-lgpl: adjust clients to use correct header
27595         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
27596         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
27597         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
27598         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
27599         * lib/progreloc.c (includes): Likewise.
27600
27601 2009-09-19  Jim Meyering  <meyering@redhat.com>
27602
27603         test-posixtm.c: correct a comment
27604         * tests/test-posixtm.c: Correct first-line comment.
27605         Spotted by Eric Blake.
27606
27607 2009-09-16  Jim Meyering  <meyering@redhat.com>
27608
27609         posixtm-tests: make T const-correct; add a test case
27610         * tests/test-posixtm.c (T): Declare const.
27611         Add a test for -(2^31+1).
27612         Remove useless can-succeed-only-in-2002 test.
27613
27614         posixtm-tests: adjust the sole failing test
27615         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
27616         expected output matches what mktime now produces.  Cross-checked via
27617         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
27618
27619         posixtm: move #ifdef'd tests into a new module
27620         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
27621         * tests/test-posixtm.c: ... this new file.
27622         * modules/posixtm-tests: New module.
27623
27624 2009-09-19  Eric Blake  <ebb9@byu.net>
27625
27626         openat: simplify use of at-func.c
27627         * lib/at-func.c (includes): Include prerequisites here, to
27628         simplify requirements on client files.
27629         * lib/openat-priv.h: Add double-inclusion guard.
27630         * lib/faccessat.c (includes): Simplify.
27631         * lib/fchmodat.c (includes): Likewise.
27632         * lib/fchownat.c (includes): Likewise.
27633         * lib/mkdirat.c (includes): Likewise.
27634         * lib/mkfifoat.c (includes): Likewise.
27635         * lib/symlinkat.c (includes): Likewise.
27636
27637         openat: allow return of fd 0
27638         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
27639         * modules/save-cwd (Depends-on): Replace fcntl-safer with
27640         unistd-safer.
27641         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
27642         <fcntl.h>; this module does not leak fds.
27643         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
27644         must be allowed to return 0, leaving openat_safer to add the
27645         safety.
27646         (openat_permissive): Avoid writing to just-opened fd 2 if
27647         restoring the current directory fails.
27648         * lib/openat-die.c (openat_restore_fail): Add comment.
27649         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
27650         (save_cwd): Guarantee safe fd, but without use of open_safer.
27651         * tests/test-openat.c: New test.
27652         * modules/openat-tests (Files, Makefile.am): Distribute and build
27653         new file.
27654
27655         relocatable-prog-wrapper: fix build
27656         * modules/relocatable-prog-wrapper (Files): Update name of
27657         canonicalize m4 file, broken on 2009-09-17.
27658         Reported by emad hajjar <aleppos@hotmail.com>.
27659
27660 2009-09-19  Bruno Haible  <bruno@clisp.org>
27661
27662         * lib/safe-alloc.h: Use the standard header with GPL copyright.
27663         * lib/safe-alloc.c: Likewise.
27664         Reported by Ian Beckwith <ianb@erislabs.net>.
27665
27666 2009-09-18  Bruno Haible  <bruno@clisp.org>
27667
27668         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
27669         Reported by <erobles@sensacd.com.mx>.
27670
27671 2009-09-17  Eric Blake  <ebb9@byu.net>
27672
27673         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
27674         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
27675         slashes when checking if last component is missing.
27676         * tests/test-canonicalize.c (main): Test this.
27677
27678         canonicalize, canonicalize-lgpl: honor // if distinct from /
27679         * modules/canonicalize (Files): Add double-slash-root.m4.
27680         * modules/canonicalize-lgpl (Files): Likewise.
27681         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
27682         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
27683         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
27684         fallback definition.
27685         (canonicalize_filename_mode): Use it to protect //.
27686         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
27687         (__realpath): Likewise.
27688         * tests/test-canonicalize.c (main): Test this.
27689         * tests/test-canonicalize-lgpl.c (main): Likewise.
27690         * modules/canonicalize-tests (Depends-on): Add same-inode.
27691         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
27692
27693         canonicalize-lgpl: fix glibc bug with trailing slash
27694         * m4/canonicalize-lgpl.m4: Move contents...
27695         * m4/canonicalize.m4: ...here.
27696         (gl_CANONICALIZE_LGPL): Factor realpath check...
27697         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
27698         glibc 2.3.5 bug, fixed 2005-04-27.
27699         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
27700         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
27701         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
27702         * modules/canonicalize-lgpl (Files): Manage file rename.
27703         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
27704         * modules/stdlib (Makefile.am): Substitute witness.
27705         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
27706         is needed.
27707         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
27708         replacement is required.
27709         * lib/canonicalize.c (canonicalize_file_name): Likewise.
27710         * doc/glibc-functions/canonicalize_file_name.texi
27711         (canonicalize_file_name): Document this.
27712         * doc/posix-functions/realpath.texi (realpath): Likewise.
27713
27714         canonicalize-lgpl: reject non-directory with trailing slash
27715         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
27716         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
27717         catches failures in glibc 2.3.5.
27718         * tests/test-canonicalize.c (main): Likewise.
27719
27720         canonicalize-lgpl: use native realpath if it works
27721         * lib/canonicalize-lgpl.c (realpath): Guard with
27722         FUNC_REALPATH_WORKS.
27723         * lib/stdlib.in.h (realpath): Make declaration optional based on
27724         HAVE_REALPATH.
27725         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
27726         native realpath works.
27727         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
27728         * modules/stdlib (Makefile.am): Substitute witness.
27729
27730         canonicalize, canonicalize-lgpl: use <stdlib.h>
27731         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
27732         (Include): Mention <stdlib.h>.
27733         (configure.ac): Mention functions we provide.
27734         * modules/canonicalize (configure.ac): Likewise.
27735         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
27736         realpath if canonicalize_file_name is missing.
27737         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
27738         * modules/stdlib (Makefile.am): Substitute witnesses.
27739         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
27740         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
27741         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
27742         * NEWS: Document this.
27743         * doc/glibc-functions/canonicalize_file_name.texi
27744         (canonicalize_file_name): Likewise.
27745         * doc/posix-functions/realpath.texi (realpath): Likewise.
27746         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
27747
27748         test-canonicalize: consolidate into single C program
27749         * tests/test-canonicalize.sh: Delete; move setup into...
27750         * tests/test-canonicalize.c (main): ...the program, making it
27751         easier to run in debugger.  Add some tests.
27752         * modules/canonicalize-tests (Files): Remove unused file.
27753         (Depends-on): Add progname.
27754         (configure.ac, Makefile.am): Simplify.
27755
27756         test-canonicalize-lgpl: consolidate into single C program
27757         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
27758         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
27759         easier to run in debugger.  Add some tests.
27760         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
27761         (configure.ac, Makefile.am): Simplify.
27762
27763         canonicalize: avoid resolvepath
27764         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
27765         unnecessary checks.
27766         * lib/canonicalize.c (includes): Simplify.
27767         (canonicalize_file_name): Drop resolvepath implementation.
27768         * modules/canonicalize (Depends-on): Drop filenamecat.
27769
27770         canonicalize: don't lose errno
27771         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
27772         over calls to free.
27773
27774         canonicalize: simplify errno handling
27775         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
27776         assignment.
27777
27778         canonicalize, canonicalize-lgpl: update module dependencies
27779         * modules/canonicalize (Depends-on): Add extensions, lstat,
27780         pathmax, stdlib.
27781         (Files): Drop pathmax.h.
27782         (configure.ac): Adjust macro name.
27783         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
27784         lstat, stdlib, sys_stat.
27785         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
27786         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
27787         extensions.
27788         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
27789         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
27790         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
27791         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
27792         declaration, if available.
27793         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
27794         we can rely on the readlink module.
27795         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
27796         (includes): Use <unistd.h> unconditionally.
27797
27798 2009-09-17  Eric Blake  <ebb9@byu.net>
27799
27800         maint: make Include sections of modules consistent
27801         * modules/alloca: Use only header name; no need to list #include.
27802         * modules/alloca-opt: Likewise.
27803         * modules/arpa_inet: Likewise.
27804         * modules/canon-host: Likewise.
27805         * modules/configmake: Likewise.
27806         * modules/dirent: Likewise.
27807         * modules/eealloc: Likewise.
27808         * modules/environ: Likewise.
27809         * modules/fchdir: Likewise.
27810         * modules/fcntl: Likewise.
27811         * modules/fcntl-h: Likewise.
27812         * modules/gethrxtime: Likewise.
27813         * modules/gettime: Likewise.
27814         * modules/ignore-value: Likewise.
27815         * modules/inet_ntop: Likewise.
27816         * modules/inet_pton: Likewise.
27817         * modules/inttypes: Likewise.
27818         * modules/isnand-nolibm: Likewise.
27819         * modules/isnanf-nolibm: Likewise.
27820         * modules/mbchar: Likewise.
27821         * modules/mbfile: Likewise.
27822         * modules/mbiter: Likewise.
27823         * modules/mbuiter: Likewise.
27824         * modules/netdb: Likewise.
27825         * modules/netinet_in: Likewise.
27826         * modules/nproc: Likewise.
27827         * modules/pagealign_alloc: Likewise.
27828         * modules/poll: Likewise.
27829         * modules/printf-frexp: Likewise.
27830         * modules/pthread: Likewise.
27831         * modules/putenv: Likewise.
27832         * modules/random_r: Likewise.
27833         * modules/relocatable-prog: Likewise.
27834         * modules/search: Likewise.
27835         * modules/select: Likewise.
27836         * modules/selinux-h: Likewise.
27837         * modules/settime: Likewise.
27838         * modules/signal: Likewise.
27839         * modules/size_max: Likewise.
27840         * modules/socklen: Likewise.
27841         * modules/ssize_t: Likewise.
27842         * modules/stdarg: Likewise.
27843         * modules/stdbool: Likewise.
27844         * modules/stddef: Likewise.
27845         * modules/stdint: Likewise.
27846         * modules/stdio: Likewise.
27847         * modules/stdlib: Likewise.
27848         * modules/string: Likewise.
27849         * modules/strings: Likewise.
27850         * modules/sys_file: Likewise.
27851         * modules/sys_ioctl: Likewise.
27852         * modules/sys_select: Likewise.
27853         * modules/sys_socket: Likewise.
27854         * modules/sys_stat: Likewise.
27855         * modules/sys_time: Likewise.
27856         * modules/sys_times: Likewise.
27857         * modules/sys_utsname: Likewise.
27858         * modules/sys_wait: Likewise.
27859         * modules/sysexits: Likewise.
27860         * modules/time: Likewise.
27861         * modules/times: Likewise.
27862         * modules/tmpfile: Likewise.
27863         * modules/trim: Likewise.
27864         * modules/unistd: Likewise.
27865         * modules/wchar: Likewise.
27866         * modules/wctype: Likewise.
27867
27868 2009-09-17  Bruno Haible  <bruno@clisp.org>
27869
27870         Make getdate.y compile on QNX and NetBSD 5 / i386.
27871         * m4/getdate.m4 (gl_GETDATE): Conditionally define
27872         TIME_T_FITS_IN_LONG_INT.
27873         * lib/getdate.y (long_time_t): New type.
27874         (relative_time): Change type of 'seconds' field to long_time_t.
27875         (get_date): Update types of local variables. Check against overflow
27876         during conversion from long_time_t to time_t.
27877         Reported by Matt Kraai <kraai@ftbfs.org>
27878         and Hasso Tepper <hasso@netbsd.org>.
27879
27880 2009-09-17  Bruno Haible  <bruno@clisp.org>
27881
27882         * modules/COPYING: Update copyright years.
27883         * modules/README: Likeiwse.
27884         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
27885         Reported by Ian Beckwith <ianb@erislabs.net>.
27886
27887 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
27888
27889         * users.txt: Update references for gnuit package.
27890
27891 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
27892
27893         * m4/getdelim.m4: Fix typo in copyright line.
27894
27895 2009-09-17  Bruno Haible  <bruno@clisp.org>
27896
27897         * lib/atoll.c: Use the standard header with GPL copyright.
27898         * lib/argz.in.h: Likewise.
27899         * lib/glob.c: Likewise.
27900         * lib/glob-libc.h: Likewise.
27901         * lib/random_r.c: Likewise.
27902         * lib/siglist.h: Likewise.
27903         * lib/strsignal.c: Likewise.
27904         Reported by Ian Beckwith <ianb@erislabs.net>.
27905
27906 2009-09-17  Eric Blake  <ebb9@byu.net>
27907
27908         rmdir: ensure correct dependency order
27909         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
27910
27911 2009-09-17  Bruno Haible  <bruno@clisp.org>
27912
27913         Disable assertion that fails on NetBSD 5 / i386.
27914         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
27915         Reported by Sam Steingold <sds@gnu.org>
27916         and Hasso Tepper <hasso@netbsd.org>.
27917
27918 2009-09-16  Eric Blake  <ebb9@byu.net>
27919
27920         unlinkdir: port to mingw
27921         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
27922         on which no one can unlink a directory.
27923
27924         stdlib: sort witness names
27925         * modules/stdlib (Makefile.am): Sort replacements.
27926         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
27927         * lib/stdlib.in.h: Likewise.
27928
27929         parse-duration-tests: avoid link failure
27930         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
27931         LIBINTL.
27932         Reported by Tom G. Christensen.
27933
27934         openat-tests: ensure unlinkat behaves like rmdir
27935         * tests/test-rmdir.c (main): Factor guts...
27936         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
27937         * modules/rmdir-tests (Files): Ship new file.
27938         * modules/openat-tests: New test.
27939         * tests/test-unlinkat.c: Likewise.
27940
27941         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
27942         * modules/rmdir-errno (Status, Notice): Now obsolete.
27943
27944         rmdir: work around cygwin 1.5.x and mingw bugs
27945         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
27946         * lib/rmdir.c (rmdir): Work around it.
27947         * modules/rmdir (Status, Notice): No longer obsolete.
27948         (Files): Add dos.m4.
27949         (Depends-on): Add unistd.
27950         (configure.ac): Set witnesses.
27951         (License): Relax to LGPLv2+.
27952         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
27953         * modules/unistd (Makefile.am): Substitute witnesses.
27954         * lib/unistd.in.h (rmdir): Declare replacement.
27955         * doc/posix-functions/rmdir.texi (rmdir): Document this.
27956         * modules/rmdir-tests: New tests.
27957         * tests/test-rmdir.c: Likewise.
27958
27959 2009-09-15  Eric Blake  <ebb9@byu.net>
27960
27961         fchdir: improve use of replacement functions
27962         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
27963         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
27964         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
27965         REPLACE_CLOSEDIR.
27966         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
27967         * modules/sys_stat (Makefile.am): Substitute correct witness.
27968         * modules/dirent (Makefile.am): Likewise.
27969         * modules/unistd (Makefile.am): Likewise.
27970         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
27971         * lib/unistd.in.h (dup): Likewise.
27972         * lib/sys_stat.in.h (fstat): Likewise.
27973
27974         maint: ignore gnulib-tool temp files
27975         * .gitignore: Ignore files created during gnulib-tool --test.
27976
27977 2009-09-13  Jim Meyering  <meyering@redhat.com>
27978
27979         posixtm: don't reject a time that specify "60" as the number of seconds
27980         * lib/posixtm.c (posixtime): The code to reject invalid dates
27981         would also reject a time specified with the .60 suffix.
27982         But POSIX allows that, in order to accommodate leap seconds.
27983         So don't reject it.
27984         (main): Adjust tests accordingly.
27985         * modules/posixtm (Depends-on): Add stpcpy.
27986
27987 2009-09-11  Jim Meyering  <meyering@redhat.com>
27988
27989         announce-gen: include [$release_type] in emitted Subject:
27990         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
27991         e.g., [stable] in the emitted Subject: line.
27992
27993 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27994
27995         Remove obsolete macros from several modules.
27996         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
27997         obsolete Autoconf macros with their modern counterparts.
27998         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
27999         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
28000         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
28001         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
28002         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
28003         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
28004         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
28005         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
28006         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
28007         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
28008         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
28009         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
28010         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
28011         * m4/sockets.m4 (gl_SOCKETS): Likewise.
28012         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
28013         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
28014         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
28015         * m4/time_r.m4 (gl_TIME_R): Likewise.
28016         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
28017         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
28018         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
28019
28020         Fix copyright header in build-aux scripts.
28021         * build-aux/git-version-gen: Fix copyright header to match GPLv3
28022         recommendation.
28023         * build-aux/ncftpput-ftp: Likewise.
28024         * build-aux/update-copyright: Likewise.
28025
28026 2009-09-09  Eric Blake  <ebb9@byu.net>
28027
28028         test-link: allow Linux choice of errno
28029         * tests/test-link.c (main): Relax test for alternate error.
28030
28031         strndup: fix improper m4 caching
28032         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
28033         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
28034         (gl_PREREQ_STRNDUP): Delete.
28035         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
28036         * modules/string (Makefile.am): Substitute it.
28037         * lib/string.in.h (strndup): Modernize prototype.
28038
28039         getcwd: port to mingw
28040         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
28041         different from the POSIX assumptions made throughout the getcwd
28042         module; fortunately, the mingw getcwd does not need replacement.
28043         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
28044         * modules/getcwd-tests: New test.
28045         * tests/test-getcwd.c: Likewise.
28046
28047         link: fix platform bugs
28048         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
28049         * lib/link.c (link): Work around them.  Fix related mingw bug.
28050         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
28051         * modules/unistd (Makefile.am): Substitute it.
28052         * lib/unistd.in.h (link): Declare replacement.
28053         * doc/posix-functions/link.texi (link): Document this.
28054         * modules/link (Depends-on): Add strdup-posix, sys_stat.
28055
28056         test-link: consolidate into single C program, test more cases
28057         * tests/test-link.sh: Delete.
28058         * tests/test-link.c: Test more error conditions.  Exposes bugs on
28059         at least Cygwin and Solaris.
28060         * modules/link-tests (Files): Remove unused file.
28061         (Depends-on): Add errno, sys_stat.
28062         (Makefile.am): Simplify.
28063
28064 2009-09-08  Bruno Haible  <bruno@clisp.org>
28065
28066         Work around towlower, towupper bug on mingw.
28067         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
28068         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
28069         * doc/posix-functions/towlower.texi: Mention the mingw bug.
28070         * doc/posix-functions/towupper.texi: Likewise.
28071         Reported by Eric Blake.
28072
28073 2009-09-08  Jim Meyering  <meyering@redhat.com>
28074
28075         build: don't try to run autoheader if we don't use it
28076         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
28077         is not used in configure.ac.
28078
28079 2009-09-08  Eric Blake  <ebb9@byu.net>
28080
28081         euidaccess: fix compilation error
28082         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
28083
28084         rawmemchr: relax license
28085         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
28086         okay.
28087         Reported by Jim Meyering.
28088
28089         mkfifoat: new module
28090         * modules/mkfifoat: New file.
28091         * lib/mkfifoat.c: Likewise.
28092         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
28093         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
28094         * modules/sys_stat (Makefile.am): Use them.
28095         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
28096         * MODULES.html.sh (File system functions): Mention module.
28097         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
28098         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
28099         * modules/mkfifoat-tests: New test.
28100         * tests/test-mkfifoat.c: Likewise.
28101
28102         strchrnul: relax license
28103         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
28104         okay.
28105         Reported by Jim Meyering.
28106
28107 2009-09-08  Eric Blake  <ebb9@byu.net>
28108
28109         fstatat: fix compilation on Solaris
28110         * lib/fstatat.c (includes): Add fcntl.h.
28111         Reported by Pádraig Brady.
28112
28113 2009-09-07  Eric Blake  <ebb9@byu.net>
28114
28115         rename: modernize replacement
28116         * modules/rename (Depends-on): Add stdio.
28117         (configure.ac): Declare witness.
28118         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
28119         stdio take care of replacement.
28120         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
28121         * modules/stdio (Makefile.am): Substitute them.
28122         * lib/stdio.in.h (rename): Declare replacement.
28123         * lib/rename.c (includes): Allow cross-compilation to non-windows
28124         machines.
28125         * doc/posix-functions/rename.texi (rename): Improve
28126         documentation.
28127
28128         stdio: sort witness names
28129         * modules/stdio (Makefile.am): Sort replacements.
28130         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
28131         * lib/stdio.in.h: Likewise.
28132
28133         getcwd: minor cleanups
28134         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
28135         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
28136
28137         openat: provide more convenience names
28138         * modules/faccessat (configure.ac): Add C witness.
28139         * lib/unistd.in.h (readlinkat): Fix typo.
28140         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
28141         convenience wrappers.
28142         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
28143         wrappers in syntax checks.
28144
28145 2009-09-06  Eric Blake  <ebb9@byu.net>
28146
28147         doc: fix comments in recent patches
28148         * lib/faccessat.c: Mention correct function.
28149         * lib/fchmodat.c: Likewise.
28150         * lib/fchownat.c: Likewise.
28151         * lib/symlinkat.c: Likewise.
28152         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
28153         constants.
28154
28155         faccessat, symlinkat: continue cleanup of previous patch
28156         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
28157         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
28158         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
28159         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
28160         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
28161         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
28162         set.
28163
28164 2009-09-06  Bruno Haible  <bruno@clisp.org>
28165
28166         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
28167         (fstatat): Declare if GNULIB_FSTATAT is set.
28168         (mkdirat): Declare if GNULIB_MKDIRAT is set.
28169         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
28170         (unlinkat): Declare if GNULIB_UNLINKAT is set.
28171         * modules/fcntl-h (Files): Remove m4/openat.m4.
28172         * modules/sys_stat (Files): Remove m4/openat.m4.
28173         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
28174         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
28175         * modules/unistd (Files): Remove m4/openat.m4.
28176         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
28177         GNULIB_OPENAT.
28178         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
28179         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
28180         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
28181         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
28182         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
28183         gl_OPENAT_DEFAULTS.
28184         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
28185         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
28186         Don't require gl_OPENAT_DEFAULTS.
28187         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
28188         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
28189         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
28190         (gl_OPENAT_DEFAULTS): Remove macro.
28191
28192 2009-09-06  Bruno Haible  <bruno@clisp.org>
28193
28194         * modules/openat (configure.ac): Remove unneeded witness.
28195
28196 2009-09-06  Bruno Haible  <bruno@clisp.org>
28197
28198         Set errno to ENOSYS when a function is entirely unsupported.
28199         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
28200         EOPNOTSUPP.
28201         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
28202         * modules/chown (Depends-on): Remove errno.
28203
28204 2009-09-06  Bruno Haible  <bruno@clisp.org>
28205
28206         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
28207
28208 2009-09-06  Bruno Haible  <bruno@clisp.org>
28209
28210         * lib/sys_stat.in.h: Fix preprocessor command indentation.
28211
28212 2009-09-06  Ben Pfaff  <blp@gnu.org>
28213             Bruno Haible  <bruno@clisp.org>
28214
28215         Work around a glibc bug in strtok_r.
28216         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
28217         Undefine if UNDEFINE_STRTOK_R is set.
28218         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
28219         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28220         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
28221         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
28222         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
28223         UNDEFINE_STRTOK_R.
28224         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
28225
28226 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
28227
28228         exclude: minor fix
28229         * lib/exclude.c: Include wctype.h
28230
28231 2009-09-06  Akim Demaille  <demaille@gostai.com>
28232
28233         bootstrap: improve error message
28234         * build-aux/bootstrap (find_tool): Upon failure, report the list
28235         of candidates.
28236         Honor the initial value of the envvar.
28237
28238 2009-09-05  Eric Blake  <ebb9@byu.net>
28239
28240         symlinkat: new module
28241         * modules/symlinkat: New file.
28242         * lib/symlinkat.c: Likewise.
28243         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
28244         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
28245         * modules/unistd (Makefile.am): Use them.
28246         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
28247         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
28248         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
28249         * MODULES.html.sh (File system functions): Mention module.
28250         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
28251         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
28252         * modules/symlinkat-tests: New test.
28253         * tests/test-symlinkat.c: Likewise.
28254
28255         test-openat-safer: add more checks
28256         * tests/test-openat-safer.c (main): Check more code paths.
28257
28258 2009-09-05  Jim Meyering  <meyering@redhat.com>
28259
28260         syntax-check: detect unnecessary inclusion of openat.h
28261         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
28262
28263 2009-09-05  Bruno Haible  <bruno@clisp.org>
28264
28265         Support towlower, towupper.
28266         * doc/posix-functions/towlower.texi: Mention module wctype.
28267         * doc/posix-functions/towupper.texi: Likewise.
28268         * lib/wctype.in.h (towlower, towupper): New functions.
28269         * tests/test-wctype.c: Include stdio.h, stdlib.h.
28270         (ASSERT): New macro.
28271         (e): New variable.
28272         (main): Test also towlower, towupper. Test WEOF argument.
28273         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
28274
28275 2009-09-05  Bruno Haible  <bruno@clisp.org>
28276
28277         Fix conversion behaviour when the input is invalid.
28278         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
28279         mark occurring in first pass of indirect conversion.
28280         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
28281         input.
28282         Found by clang's static analyzer.
28283
28284 2009-09-05  Bruno Haible  <bruno@clisp.org>
28285
28286         * tests/test-striconveh.c (main): Test indirect conversion on platforms
28287         where direct conversion is possible.
28288
28289 2009-09-04  Eric Blake  <ebb9@byu.net>
28290
28291         openat: fail with ENOENT on empty name
28292         * lib/openat-proc.c (openat_proc_name): Special-case the empty
28293         buffer.
28294
28295         link-follow: fix logic bug in prior patch
28296         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
28297         reversed sense of yes and no in prior patch.  Avoid confusing
28298         compilation failure with desired semantics.
28299
28300         link-follow: accomodate mingw and cross-compilation
28301         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
28302         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
28303         cross-compilation results to -1, to make linkat easier to
28304         implement when cross-compiling.  Trivially support mingw.
28305         * modules/link-follow (configure.ac): Call new name.
28306         * NEWS: Mention this.
28307
28308 2009-09-03  Eric Blake  <ebb9@byu.net>
28309
28310         faccessat: compile replacement
28311         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
28312         needed.
28313
28314         fts: fix compilation error
28315         * lib/fts.c (includes): Re-add "openat.h", for
28316         openat_needs_fchdir.
28317
28318         faccessat: new module
28319         * modules/faccessat: New file.
28320         * lib/faccessat.c: Likewise.
28321         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
28322         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28323         * modules/unistd (Makefile.am): Use it.
28324         * lib/unistd.in.h (faccessat): Declare it.
28325         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
28326         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
28327         * MODULES.html.sh (File system functions): Mention it.
28328         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
28329         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
28330
28331         euidaccess: prefer POSIX over non-standard implementation
28332         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
28333         * lib/euidaccess.c (euidaccess): Use it if available.
28334
28335         openat: make template easier to use
28336         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
28337         AT_FUNC_F2 to be undefined.
28338         (VALIDATE_FLAG): New macro; use it to reject bad flags.
28339         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
28340         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
28341         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
28342         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
28343         Likewise.
28344         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
28345         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
28346         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
28347         Likewise.
28348
28349         openat: declare in POSIX headers
28350         * NEWS: Mention this.
28351         * modules/openat (configure.ac): Declare witnesses.
28352         (Depends-on): Add fcntl-h, sys_stat, unistd.
28353         (Include): Mention correct headers.
28354         * modules/fcntl-h (Depends-on): Add link-warning.
28355         (Files): Add openat.m4.
28356         (Makefile.am): Substitute witnesses.
28357         * modules/sys_stat (Files, Makefile.am): Likewise.
28358         * modules/unistd (Files, Makefile.am): Likewise.
28359         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
28360         (gl_OPENAT_DEFAULTS): New macro.
28361         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
28362         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
28363         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
28364         (SYS_STAT_H): Remove unused variable.
28365         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
28366         * lib/fcntl--.h (includes): Remove unneeded header.
28367         * lib/openat-safer.c (includes): Likewise.
28368         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
28369         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
28370         appropriate headers.
28371         (__OPENAT_PREFIX): Delete.
28372         * lib/fcntl.in.h (openat): Provide declaration.
28373         (AT_FDCWD): Fix Solaris bug.
28374         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
28375         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
28376         * lib/fchmodat.c (includes):  Adjust to find declaration.
28377         * lib/fchownat.c (includes): Likewise.
28378         * lib/mkdirat.c (includes): Likewise.
28379         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
28380         still visible.
28381
28382 2009-09-02  Eric Blake  <ebb9@byu.net>
28383
28384         errno: use consistently
28385         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
28386         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
28387         * lib/canonicalize.c (ELOOP): Likewise.
28388         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
28389         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
28390         * lib/lchown.c (EOPNOTSUPP): Likewise.
28391         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
28392         * lib/savewd.c (ESTALE): Likewise.
28393         * lib/settime.c (ENOSYS): Likewise.
28394         * lib/utimens.c (ENOSYS): Likewise.
28395         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
28396         * lib/chdir-safer.c (ELOOP): Likewise.
28397         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
28398         * modules/c-stack (Depends-on): Add errno.
28399         * modules/canonicalize (Depends-on): Likewise.
28400         * modules/chdir-safer (Depends-on): Likewise.
28401         * modules/fdopendir (Depends-on): Likewise.
28402         * modules/inet_ntop (Depends-on): Likewise.
28403         * modules/inet_pton (Depends-on): Likewise.
28404         * modules/lchown (Depends-on): Likewise.
28405         * modules/openat (Depends-on): Likewise.
28406         * modules/savewd (Depends-on): Likewise.
28407         * modules/settime (Depends-on): Likewise.
28408         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
28409
28410         fts: avoid leaking fds
28411         * modules/fts (Depends-on): Add cloexec.
28412         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
28413         flag.
28414
28415         fts: make directory fds more robust
28416         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
28417         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
28418
28419         backupfile, chdir-long, fts, savedir: make safer
28420         * lib/backupfile.c (includes): Use "dirent--.h", since
28421         numbered_backup can write to stderr during readdir.
28422         * lib/savedir.c (includes): Likewise.
28423         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
28424         emulation can write to stderr on failure.
28425         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
28426         * lib/getcwd.c: Document why opendir_safer is unused.
28427         * lib/glob.c: Likewise.
28428         * lib/scandir.c: Likewise.
28429         * lib/openat-proc.c: Likewise, for open_safer.
28430         * modules/backupfile (Depends-on): Add dirent-safer.
28431         * modules/savedir (Depends-on): Likewise.
28432         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
28433         * modules/chdir-long (Depends-on): Add openat-safer.
28434
28435         openat-safer: new module
28436         * modules/openat-safer: New file.
28437         * lib/openat-safer.c: Likewise.
28438         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
28439         * lib/fcntl-safer.h (openat_safer): Declare.
28440         * lib/fcntl--.h (openat): Override.
28441         * MODULES.html.sh (File descriptor based I/O): Mention it.
28442         * lib/openat.h: Add double-inclusion guards.
28443         * lib/openat.c (includes): Only include "fcntl-safer.h", not
28444         "fcntl--.h", so we can implement openat.
28445         * modules/openat-safer-tests: New test.
28446         * tests/test-openat-safer.c: New file.
28447
28448         dirent-safer: new module
28449         * modules/dirent-safer: New file.
28450         * lib/dirent--.h: Likewise.
28451         * lib/dirent-safer.h: Likewise.
28452         * lib/opendir-safer.c: Likewise.
28453         * m4/dirent-safer.m4: Likewise.
28454         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
28455         * modules/dirent-safer-tests: New test.
28456         * tests/test-dirent-safer.c: New file.
28457         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
28458
28459         fdopendir: optimize on mingw
28460         * lib/unistd.in.h (_gl_directory_name): New prototype.
28461         * lib/fchdir.c (_gl_directory_name): Implement it.
28462         (fchdir): Use it to simplify implementation.
28463         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
28464         fchdir, when available, to avoid calling [f]chdir().
28465
28466         fdopendir: split into its own module
28467         * lib/openat.c (fdopendir): Move...
28468         * lib/fdopendir.c: ...into new file.
28469         * modules/fdopendir: New module.
28470         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
28471         * modules/openat (Depends-on): Add fdopendir.
28472         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
28473         fdopendir here.
28474         * modules/savedir (Depends-on): Only need fdopendir, not full
28475         openat.
28476         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
28477         * lib/openat.h (fdopendir): Drop prototype.
28478         * lib/dirent.in.h (fdopendir): Provide prototype.
28479         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
28480         * modules/dirent (Makefile.am): Substitute them.
28481         * MODULES.html.sh (File system functions): Mention it.
28482         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
28483         * modules/fdopendir-tests: New file.
28484         * tests/test-fdopendir.c: Likewise.
28485
28486         fchdir: use more consistent macro convention
28487         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
28488         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
28489         REPLACE_FCHDIR, rather than relying on config.h macros.
28490         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
28491         inside a single make-time REPLACE_FCHDIR block, rather than using
28492         the config.h FCHDIR_REPLACEMENT.
28493         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
28494         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
28495         Manage fstat replacement.
28496         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
28497         REPLACE_FCHDIR.
28498         * modules/sys_stat (Files): Add m4/unistd_h.m4.
28499         (Makefile.am): Substitute REPLACE_FCHDIR.
28500         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
28501         FCHDIR_REPLACEMENT.
28502         * lib/dup-safer.c (dup_safer): Likewise.
28503         * lib/dup2.c (rpl_dup2): Likewise.
28504         * lib/dup3.c (rpl_dup3): Likewise.
28505         * lib/open.c (rpl_open): Likewise.
28506
28507         fchdir: simplify error handling, and support dup3
28508         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
28509         stdbool, malloc-posix, realloc-posix.
28510         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
28511         (ensure_dirs_slot): Return false on allocation failure.
28512         (rpl_dup2): Delete.
28513         (_gl_register_dup): New function.
28514         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
28515         (_gl_register_fd): Close fd on allocation failure.
28516         * lib/fcntl.in.h (_gl_register_fd): Update signature.
28517         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
28518         prototype.
28519         (rpl_dup2_fchdir): Delete prototype.
28520         * lib/open.c (open): Update caller.
28521         * lib/dup2.c (dup2): Track fchdir metadata.
28522         * lib/dup3.c (dup3): Likewise.
28523         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
28524         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
28525
28526 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28527
28528         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
28529         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
28530         don't pass arguments to AC_OUTPUT.
28531
28532 2009-09-02  Bruno Haible  <bruno@clisp.org>
28533
28534         * modules/mkdtemp (License): Relicense under LGPLv2+.
28535         Reported by Paolo Bonzini.
28536
28537 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28538
28539         Replace uses of obsolete autoconf macros in Jim's modules.
28540         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
28541         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
28542         can evoke a warning from autoconf when run with -Wobsolete
28543         enabled.  They were declared obsolete for good reasons (see
28544         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
28545         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
28546         should not continue using the deprecated macros.
28547         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
28548         obsolete Autoconf macros with modern counterparts.
28549         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
28550         * m4/dos.m4 (gl_AC_DOS): Likewise.
28551         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
28552         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
28553         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
28554         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
28555         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
28556         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
28557         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
28558         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
28559         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
28560         Likewise.
28561         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
28562         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
28563         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
28564         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
28565         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
28566         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
28567
28568 2009-09-01  Eric Blake  <ebb9@byu.net>
28569
28570         fchdir: fix off-by-one bug in previous patch
28571         * lib/fchdir.c (rpl_fstat): Use correct bounds.
28572         (_gl_unregister_fd): Delete useless if.
28573
28574 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
28575
28576         maint.mk: sort the list of syntax-check rules
28577         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
28578         easier to get a sense of progress when the rules are run sequentially
28579         and take a long time.
28580
28581 2009-09-01  Simon Josefsson  <simon@josefsson.org>
28582
28583         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
28584         * modules/netinet_in: Likewise.
28585         * modules/sys_file: Likewise.
28586         * modules/sys_ioctl: Likewise.
28587         * modules/sys_select: Likewise.
28588         * modules/sys_socket: Likewise.
28589         * modules/sys_stat: Likewise.
28590         * modules/sys_time: Likewise.
28591         * modules/sys_times: Likewise.
28592         * modules/sys_utsname: Likewise.
28593         * modules/sys_wait: Likewise.
28594
28595 2009-09-01  Jim Meyering  <meyering@redhat.com>
28596
28597         fts: help ensure that return values are not ignored
28598         * lib/fts_.h (__GNUC_PREREQ): Define.
28599         (__attribute_warn_unused_result__): Define.
28600         (fts_children, fts_close, fts_open, fts_read): Declare with
28601         __attribute_warn_unused_result__.
28602
28603         fts: fts_close now fails also when closing a dir file descriptor fails
28604         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
28605         and propagate to caller, along with errno.
28606
28607         announce-gen: correct formatting in --help output
28608         * build-aux/announce-gen (usage): Move the one-line description in
28609         --help output "up", to where it belongs, just after Usage:.
28610
28611 2009-08-31  Eric Blake  <ebb9@byu.net>
28612
28613         fchdir: port to mingw
28614         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
28615         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
28616         opened, then use a substitute.
28617         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
28618         replacement.
28619         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
28620         (_gl_register_fd): No need to check stat if open already filters
28621         all directories.
28622         (fchdir): Fix error condition to match POSIX.
28623         * modules/fchdir (Depends-on): Add sys_stat.
28624         * doc/posix-functions/open.texi (open): Document the limitation.
28625         * modules/fchdir-tests: New file.
28626         * tests/test-fchdir.c: Likewise.
28627
28628         canonicalize: allow cross-testing from cygwin to mingw
28629         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
28630         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
28631         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
28632         Likewise.
28633         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
28634         target does not support symlinks.
28635         * tests/test-canonicalize-lgpl.sh: Likewise.
28636
28637         chown: avoid compilation warning on mingw
28638         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
28639         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
28640         mingw.
28641         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
28642         * modules/chown (Depends-on): Add errno.
28643
28644 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
28645
28646         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
28647         command.
28648
28649 2009-08-31  Jim Meyering  <meyering@redhat.com>
28650
28651         canonicalize: remove useless initialization
28652         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
28653         initialization of local, "end".
28654
28655 2009-08-30  Bruno Haible  <bruno@clisp.org>
28656
28657         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
28658         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
28659         ENOSYS.
28660
28661 2009-08-30  Bruno Haible  <bruno@clisp.org>
28662
28663         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
28664         /usr/xpg4/bin/tr when it exists.
28665         * tests/test-pipe-filter-gi1.sh: Likewise.
28666
28667 2009-08-30  Bruno Haible  <bruno@clisp.org>
28668
28669         Work around deficient /usr/bin/id program on Solaris.
28670         * tests/test-file-has-acl.sh (ID): New variable.
28671         * tests/test-set-mode-acl.sh (ID): Likewise.
28672         * tests/test-copy-acl.sh (ID): Likewise.
28673         * tests/test-copy-file.sh (ID): Likewise.
28674
28675 2009-08-30  Bruno Haible  <bruno@clisp.org>
28676
28677         New module 'xstriconveh'.
28678         * lib/xstriconveh.h: New file.
28679         * lib/xstriconveh.c: New file.
28680         * modules/xstriconveh: New file.
28681
28682 2009-08-30  Bruno Haible  <bruno@clisp.org>
28683
28684         Make it easier to use mem_cd_iconveh.
28685         * lib/striconveh.h (iconveh_t): New type.
28686         (iconveh_open, iconveh_close): New declarations.
28687         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
28688         with a single 'const iconveh_t *' argument.
28689         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
28690         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
28691         with a single 'const iconveh_t *' argument.
28692         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
28693         * tests/test-striconveh.c (main): Update.
28694         * NEWS: Mention the change.
28695
28696 2009-08-30  Bruno Haible  <bruno@clisp.org>
28697
28698         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
28699         problem.
28700
28701 2009-08-30  Bruno Haible  <bruno@clisp.org>
28702
28703         Work around iconv_open problem on Solaris.
28704         * lib/iconv_open-solaris.gperf: New file.
28705         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
28706         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
28707         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
28708         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
28709         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
28710         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
28711
28712 2009-08-29  Jim Meyering  <meyering@redhat.com>
28713
28714         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
28715         * top/maint.mk (cvs-check): Remove target; it was just an alias
28716         to the better-named vc-diff-check.
28717         (maintainer-distcheck): Remove rule.  It was used only from
28718         the (alpha/beta/major) target, and all of its commands but one
28719         were coreutils-specific.
28720         (vc-dist): Remove rule.
28721         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
28722         Run vc-diff-check, not vc-dist.
28723         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
28724
28725 2009-08-27  Bruno Haible  <bruno@clisp.org>
28726
28727         * tests/test-bitrotate.c (main): Remove test that uses a shift count
28728         of 0.
28729
28730 2009-08-27  Bruno Haible  <bruno@clisp.org>
28731
28732         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
28733         compilers.
28734         * doc/func.texi: Document the SunPRO C bug.
28735
28736 2009-08-27  Bruno Haible  <bruno@clisp.org>
28737
28738         Fix link error on Solaris.
28739         * tests/test-parse-duration.c (xstrdup): Remove function.
28740
28741 2009-08-26  Pádraig Brady  <P@draigbrady.com>
28742
28743         ignore-value: handle pointer types, too
28744         * lib/ignore-value.h (__attribute__): Remove definition.
28745         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
28746         of a more concise and more-often effective "(void) i" statement.
28747         (ignore_ptr): New function to suppress warnings from functions that
28748         return pointers, and to make it explicit that one function doesn't
28749         handle all cases.
28750
28751 2009-08-25  Bruno Haible  <bruno@clisp.org>
28752
28753         dup2: work around a Linux bug.
28754         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
28755         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
28756         * doc/posix-functions/dup2.texi: Mention the Linux bug.
28757         Reported by Simon Josefsson.
28758
28759 2009-08-25  Jim Meyering  <meyering@redhat.com>
28760
28761         libguestfs uses gnulib
28762         * users.txt: Add libguestfs.
28763
28764 2009-08-24  Eric Blake  <ebb9@byu.net>
28765
28766         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
28767         * lib/pipe2.c (includes): Add binary-io.h.
28768         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
28769
28770 2009-08-24  Bruno Haible  <bruno@clisp.org>
28771
28772         Tolerate declared but missing accept4 syscall.
28773         * lib/accept4.c (accept4): Invoke original accept4 function first, if
28774         available.
28775         * lib/sys_socket.in.h (accept4): If the function is already present,
28776         override it.
28777         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
28778         * modules/accept4 (Makefile.am): Compile accept4.c always.
28779         Reported by Paolo Bonzini and Eric Blake.
28780
28781 2009-08-23  Bruno Haible  <bruno@clisp.org>
28782
28783         New module 'accept4'.
28784         * lib/sys_socket.in.h (accept4): New declaration.
28785         * lib/accept4.c: New file.
28786         * m4/accept4.m4: New file.
28787         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
28788         GNULIB_ACCEPT4, HAVE_ACCEPT4.
28789         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
28790         HAVE_ACCEPT4.
28791         * modules/accept4: New file.
28792         * doc/glibc-functions/accept4.texi: Mention the new module.
28793
28794 2009-08-24  Jim Meyering  <meyering@redhat.com>
28795
28796         progname: also set global program_invocation_name, when possible
28797         Before this change, a libtool-enabled program that calls glibc's
28798         error function would report the program name as
28799         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
28800         * modules/progname (configure.ac): Check for a declaration of
28801         program_invocation_name.
28802         * lib/progname.c:  Include <errno.h>.
28803         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
28804         Set program_invocation_name.
28805
28806 2009-08-23  Bruno Haible  <bruno@clisp.org>
28807
28808         * lib/dup3.c: Include <string.h>.
28809
28810 2009-08-23  Bruno Haible  <bruno@clisp.org>
28811
28812         * lib/dup3.c (dup3): Test only once whether the system actually exists.
28813         * lib/pipe2.c (pipe2): Likewise.
28814         Suggested by Eric Blake.
28815
28816 2009-08-23  Bruno Haible  <bruno@clisp.org>
28817
28818         Tolerate declared but missing dup3 syscall.
28819         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
28820         * lib/unistd.in.h (dup3): If the function is already present,
28821         override it.
28822         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
28823         * modules/dup3 (Makefile.am): Compile dup3.c always.
28824         Reported by Paolo Bonzini.
28825
28826 2009-08-23  Bruno Haible  <bruno@clisp.org>
28827
28828         Tolerate declared but missing pipe2 syscall.
28829         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
28830         available.
28831         * lib/unistd.in.h (pipe2): If the function is already present,
28832         override it.
28833         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
28834         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
28835         Reported by Paolo Bonzini.
28836
28837 2009-08-23  Bruno Haible  <bruno@clisp.org>
28838
28839         * lib/pipe2.c (pipe2): Move #ifs inside function.
28840
28841 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
28842
28843         quotearg: document limitations of quote_these_too
28844         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
28845         those limitations are created.
28846         * lib/quotearg.h (set_char_quoting): Document that digits and
28847         letters that are special after backslash are not permitted.
28848         (quotearg_char): Cross-reference set_char_quoting documentation.
28849
28850 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
28851
28852         quotearg: implement custom_quoting_style
28853         * lib/quotearg.c: (struct quoting_options): Add left_quote and
28854         right_quote fields.
28855         (set_custom_quoting): New public function.
28856         (quotearg_buffer_restyled): Add left_quote and right_quote
28857         arguments, handle them very much like locale quoting, and update
28858         all uses.
28859         (quotearg_n_custom): New public function.
28860         (quotearg_n_custom_mem): New public function.
28861         (quotearg_custom): New public function.
28862         (quotearg_custom_mem): New public function.
28863         * lib/quotearg.h: Prototype and document new public functions.
28864         (enum quoting_style): For escape_quoting_style and
28865         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
28866         ignored even though they're otherwise like c_quoting_style.
28867         Add custom_quoting_style member and document with comparison to
28868         clocale_quoting_style.
28869         * tests/test-quotearg.c (custom_quotes): New array.
28870         (custom_results): New array.
28871         (main): Extend to test custom quoting.
28872
28873 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
28874
28875         quotearg: fix right quote escaping when it's in quote_these_too
28876         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
28877         quote, be sure to prepend only one backslash.
28878         * tests/test-quotearg.c (use_quote_double_quotes): New function.
28879         (main): Test it.
28880
28881 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
28882
28883         quotearg-tests: test escaping of embedded locale quotes
28884         * tests/test-quotearg.c (struct result_strings): Add member for
28885         new input.
28886         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
28887         (inputs): Add new input.
28888         (results_g): Add expected results.
28889         (flag_results): Likewise.
28890         (locale_results): Likewise.
28891         (compare_strings): Check those.
28892
28893 2009-08-23  Bruno Haible  <bruno@clisp.org>
28894
28895         Tests for module 'dup3'.
28896         * modules/dup3-tests: New file.
28897         * tests/test-dup3.c: New file.
28898
28899         New module 'dup3'.
28900         * lib/unistd.in.h (dup3): New declaration.
28901         * lib/dup3.c: New file.
28902         * m4/dup3.m4: New file.
28903         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
28904         HAVE_DUP3.
28905         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
28906         * modules/dup3: New file.
28907         * doc/glibc-functions/dup3.texi: Mention the new module.
28908
28909 2009-08-23  Bruno Haible  <bruno@clisp.org>
28910
28911         Tweak the dup2 test.
28912         * tests/test-dup2.c (main): Create the test file empty. Verify that an
28913         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
28914         the test file is still empty. Fix argument order of lseek.
28915
28916 2009-08-23  Bruno Haible  <bruno@clisp.org>
28917
28918         Avoid test link errors when the modules getopt-gnu, gettext are used.
28919         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
28920         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28921
28922 2009-08-23  Bruno Haible  <bruno@clisp.org>
28923
28924         Fix getdtablesize() on mingw.
28925         * lib/getdtablesize.c (getdtablesize): Implement differently.
28926         * lib/unistd.in.h (getdtablesize): Improve comment.
28927
28928 2009-08-23  Bruno Haible  <bruno@clisp.org>
28929
28930         New module 'mkostemp'.
28931         Based on Ulrich Drepper's 2007-08-10 change in glibc.
28932         * lib/stdlib.in.h (mksotemp): New declaration.
28933         * lib/mkostemp.c: New file, from glibc with modifications.
28934         * lib/tempname.h (GT_FILE): Remove outdated comment.
28935         (gen_tempname): Add flags argument.
28936         * lib/tempname.c (__GT_BIGFILE): Remove macro.
28937         (__GT_FILE): Map to 1.
28938         (small_open, large_open): Remove macros.
28939         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
28940         * lib/mkstemp.c (mkstemp): Update.
28941         * lib/mkdtemp.c (mkdtemp): Likewise.
28942         * m4/mkostemp.m4: New file.
28943         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
28944         HAVE_MKOSTEMP.
28945         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
28946         HAVE_MKOSTEMP.
28947         * modules/mkostemp: New file, based on modules/mkstemp.
28948         * doc/glibc-functions/mkostemp.texi: Mention the new module.
28949         * NEWS: Mention the change.
28950
28951 2009-08-23  Bruno Haible  <bruno@clisp.org>
28952
28953         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
28954         Reported by Eric Blake.
28955
28956 2009-08-23  Bruno Haible  <bruno@clisp.org>
28957
28958         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
28959         Reported by Eric Blake.
28960
28961 2009-08-23  Bruno Haible  <bruno@clisp.org>
28962
28963         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
28964         * modules/pipe2 (Depends-on): Likewise.
28965
28966 2009-08-23  Eric Blake  <ebb9@byu.net>
28967
28968         fcntl-h: add O_TTY_INIT support
28969         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
28970         * tests/test-fcntl-h.c (o): Test it.
28971         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
28972
28973         fcntl-h: rename from fcntl, in preparation for fcntl(2)
28974         * modules/fcntl: Move <fcntl.h> header replacement...
28975         * modules/fcntl-h: ...to new name, so as not to collide with
28976         like-named function.
28977         * tests/test-fcntl.c: Rename...
28978         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
28979         * modules/fcntl-tests: Rename...
28980         * modules/fcntl-h-tests: ...to this.  Update test file name.
28981         * modules/chdir-long (Depends-on): Update clients.
28982         * modules/chdir-safer (Depends-on): Likewise.
28983         * modules/fcntl-safer (Depends-on): Likewise.
28984         * modules/fts (Depends-on): Likewise.
28985         * modules/mkancesdirs (Depends-on): Likewise.
28986         * modules/mkdir-p (Depends-on): Likewise.
28987         * modules/open (Depends-on): Likewise.
28988         * modules/savewd (Depends-on): Likewise.
28989         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
28990         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
28991
28992 2009-08-22  Bruno Haible  <bruno@clisp.org>
28993
28994         * modules/binary-io (License): Relicense under LGPL.
28995         * modules/pipe2 (License): Likewise.
28996
28997 2009-08-22  Bruno Haible  <bruno@clisp.org>
28998
28999         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
29000         return value.
29001         * lib/pipe-filter-gi.c (filter_init): Likewise.
29002         Reported by Eric Blake.
29003
29004 2009-08-22  Bruno Haible  <bruno@clisp.org>
29005
29006         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
29007         * modules/pipe (Depends-on): Add pipe2.
29008
29009 2009-08-22  Bruno Haible  <bruno@clisp.org>
29010
29011         Tests for module 'pipe2'.
29012         * modules/pipe2-tests: New file.
29013         * tests/test-pipe2.c: New file.
29014
29015         New module 'pipe2'.
29016         * lib/unistd.in.h (pipe2): New declaration.
29017         * lib/pipe2.c: New file.
29018         * m4/pipe2.m4: New file.
29019         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
29020         HAVE_PIPE2.
29021         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
29022         * modules/pipe2: New file.
29023         * doc/glibc-functions/pipe2.texi: Mention the new module.
29024
29025 2009-08-22  Bruno Haible  <bruno@clisp.org>
29026
29027         Reference some new glibc functions.
29028         * doc/glibc-functions/accept4.texi: New file.
29029         * doc/glibc-functions/dup3.texi: New file.
29030         * doc/glibc-functions/mkostemp.texi: New file.
29031         * doc/glibc-functions/pipe2.texi: New file.
29032         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
29033         (Glibc sys/socket.h): Refer to accept4.
29034         (Glibc unistd.h): Refer to dup3, pipe2.
29035         Reported by Eric Blake.
29036
29037 2009-08-22  Jim Meyering  <meyering@redhat.com>
29038             Bruno Haible  <bruno@clisp.org>
29039
29040         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
29041         This makes it so packages using automake-1.11's silent-rules option
29042         can print e.g., a single "GEN    configmake.h" line, rather than
29043         the 30+ statements that perform the job.  If you want to see the
29044         actual commands, you can still run "make V=1".
29045         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
29046         so that make output is abbreviated when those variables are defined
29047         appropriately.
29048         * modules/argz: Likewise.
29049         * modules/arpa_inet: Likewise.
29050         * modules/byteswap: Likewise.
29051         * modules/configmake: Likewise.
29052         * modules/dirent: Likewise.
29053         * modules/errno: Likewise.
29054         * modules/fcntl: Likewise.
29055         * modules/float: Likewise.
29056         * modules/fnmatch: Likewise.
29057         * modules/getopt-posix: Likewise.
29058         * modules/glob: Likewise.
29059         * modules/iconv_open: Likewise.
29060         * modules/inttypes: Likewise.
29061         * modules/localcharset: Likewise.
29062         * modules/locale: Likewise.
29063         * modules/math: Likewise.
29064         * modules/netdb: Likewise.
29065         * modules/netinet_in: Likewise.
29066         * modules/poll: Likewise.
29067         * modules/posix_spawnp-tests: Likewise.
29068         * modules/sched: Likewise.
29069         * modules/search: Likewise.
29070         * modules/selinux-h: Likewise.
29071         * modules/signal: Likewise.
29072         * modules/spawn: Likewise.
29073         * modules/stdarg: Likewise.
29074         * modules/stdbool: Likewise.
29075         * modules/stddef: Likewise.
29076         * modules/stdint: Likewise.
29077         * modules/stdio: Likewise.
29078         * modules/stdlib: Likewise.
29079         * modules/string: Likewise.
29080         * modules/strings: Likewise.
29081         * modules/sys_file: Likewise.
29082         * modules/sys_ioctl: Likewise.
29083         * modules/sys_select: Likewise.
29084         * modules/sys_socket: Likewise.
29085         * modules/sys_stat: Likewise.
29086         * modules/sys_time: Likewise.
29087         * modules/sys_times: Likewise.
29088         * modules/sys_utsname: Likewise.
29089         * modules/sys_wait: Likewise.
29090         * modules/sysexits: Likewise.
29091         * modules/time: Likewise.
29092         * modules/unistd: Likewise.
29093         * modules/wchar: Likewise.
29094         * modules/wctype: Likewise.
29095
29096 2009-08-22  Jim Meyering  <meyering@redhat.com>
29097
29098         announce-gen: detect write failure
29099         * build-aux/announce-gen: Add Coda at end.
29100         Remove equivalent-but-more-verbose block at top.
29101
29102 2009-08-19  Akim Demaille  <demaille@gostai.com>
29103
29104         bootstrap: --help to stdout.
29105         * bootstrap (usage): Don't send --help to stderr.
29106         Use a here doc instead of a long string.
29107
29108 2009-08-21  Eric Blake  <ebb9@byu.net>
29109
29110         test-popen-safer: split from test-popen
29111         * tests/test-popen.c (main): Move...
29112         * tests/test-popen.h: ...into new file.
29113         * tests/test-popen-safer2.c: New file.
29114         * modules/popen-tests (Files): Add test-popen.h.
29115         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
29116         Suggested by Bruno Haible.
29117
29118         test-fcntl-safer: split from test-open
29119         * tests/test-open.c (main): Move...
29120         * tests/test-open.h: ...into new file.
29121         * tests/test-fcntl-safer.c: New file.
29122         * modules/open-tests (Files): Add test-open.h.
29123         * modules/fcntl-safer-tests: New file.
29124         Suggested by Bruno Haible.
29125
29126         test-fopen-safer: split from test-fopen
29127         * tests/test-fopen.c (main): Move...
29128         * tests/test-fopen.h: ...into new file.
29129         * tests/test-fopen-safer.c: New file.
29130         * modules/fopen-tests (Files): Add test-fopen.h.
29131         * modules/fopen-safer-tests: New file.
29132         Suggested by Bruno Haible.
29133
29134 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
29135
29136         popen-safer: test O_CLOEXEC at run-time.
29137         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
29138
29139 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
29140
29141         fcntl: move more flags to the header
29142         * lib/cloexec.c: Do not define FD_CLOEXEC here.
29143         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
29144         * lib/fcntl.in.h: Do both things here.
29145
29146 2009-08-21  Jim Meyering  <meyering@redhat.com>
29147
29148         consistently remove $@-t before redirecting to it
29149         * modules/argz: Remove $@-t and $@ before redirecting to the former.
29150         * modules/alloca-opt: Likewise.
29151         * modules/byteswap: Likewise.
29152         * modules/fnmatch: Likewise.
29153         * modules/getopt-posix: Likewise.
29154         * modules/glob: Likewise.
29155         * modules/poll: Likewise.
29156         * modules/posix_spawnp-tests: Likewise.
29157         * modules/sys_socket: Likewise.
29158         * modules/sysexits: Likewise.
29159
29160 2009-08-21  Eric Blake  <ebb9@byu.net>
29161
29162         popen: simplify access to original popen
29163         * lib/popen.c (rpl_popen): No need to worry about popen being a
29164         macro.
29165         Reported by Bruno Haible.
29166
29167 2009-08-20  Eric Blake  <ebb9@byu.net>
29168
29169         build: avoid some compiler warnings
29170         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
29171         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
29172         type.
29173         (new_exclude_segment, excluded_file_pattern_p)
29174         (excluded_file_name_p): Reduce scope.
29175         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
29176         old-style declaration.
29177
29178 2009-08-20  Simon Josefsson  <simon@josefsson.org>
29179
29180         * tests/test-exclude1.sh: Handle Windows EOL.
29181         * tests/test-exclude2.sh: Likewise.
29182         * tests/test-exclude3.sh: Likewise.
29183         * tests/test-exclude4.sh: Likewise.
29184         * tests/test-exclude5.sh: Likewise.
29185         * tests/test-exclude6.sh: Likewise.
29186         * tests/test-exclude7.sh: Likewise.
29187
29188 2009-08-19  Akim Demaille  <demaille@gostai.com>
29189
29190         bootstrap: find sha1sum when named gsha1sum.
29191         * bootstrap (find_tool): New.
29192         ($SHA1SUM): New.
29193         Use it.
29194
29195 2009-08-20  Jim Meyering  <meyering@redhat.com>
29196
29197         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
29198         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
29199         expression that converts "." in a file name to "\." in the resulting
29200         regexp.  Start with a dummy statement, so that prior shell variable
29201         definitions are expanded portably.  Reported by Simon Josefsson.
29202
29203 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
29204
29205         Fix polling for writeability of a screen buffer.
29206         * lib/poll.c: Distinguish input and screen buffers for the
29207         Win32 implementation.
29208         * lib/select.c: Likewise.
29209
29210 2009-08-19  Eric Blake  <ebb9@byu.net>
29211
29212         popen-safer: prevent popen from clobbering std descriptors
29213         * modules/popen-safer: New file.
29214         * lib/popen-safer.c: Likewise.
29215         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
29216         * lib/stdio--.h (popen): Provide override.
29217         * lib/stdio-safer.h (popen_safer): Provide declaration.
29218         * tests/test-popen.c (includes): Partially test this.
29219         * modules/popen-safer-tests: New file, for more tests.
29220         * tests/test-popen-safer.c: Likewise.
29221         * MODULES.html.sh (file stream based Input/Output): Mention it.
29222
29223         tests: test some of the *-safer modules
29224         * modules/fopen-safer (Depends-on): Add fopen.
29225         * modules/fcntl-safer (Depends-on): Add fcntl.
29226         * modules/stdlib-safer (Depends-on): Add stdlib.
29227         (configure.ac): Set indicator.
29228         * modules/unistd-safer (configure.ac): Likewise.
29229         * modules/tmpfile-safer (configure.ac): Likewise.
29230         (Depends-on): Add tmpfile.
29231         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
29232         active.
29233         * tests/test-fopen.c (includes): Test safer versions when they are
29234         in use.
29235         * tests/test-open.c (includes): Likewise.
29236
29237         popen: fix cygwin 1.5 bug when stdin closed
29238         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
29239         * modules/popen: New file.
29240         * modules/popen-tests: Likewise.
29241         * tests/test-popen.c: Likewise.
29242         * m4/popen.m4: Likewise.
29243         * lib/popen.c: Likewise.
29244         * lib/stdio.in.h (popen): New declaration.
29245         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
29246         * modules/stdio (Makefile.am): Likewise.
29247         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
29248
29249 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
29250
29251         maint.mk: give full control over update-copyright exclusions
29252         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
29253         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
29254         (update-copyright): Don't force inclusion of top-level
29255         ChangeLog.  Don't force exclusion of all COPYING files, but make
29256         them the default exclusion instead.
29257
29258 2009-08-16  Bruno Haible  <bruno@clisp.org>
29259
29260         Fix test failures on Solaris 10.
29261         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
29262         tests when Solaris iconv() is used.
29263         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
29264         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
29265         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
29266         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
29267         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
29268
29269 2009-08-16  Bruno Haible  <bruno@clisp.org>
29270
29271         Fix test failures on Solaris 10.
29272         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
29273         'tr' program and pass it as first argument.
29274         * tests/test-pipe-filter-gi1.sh: Likewise.
29275         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
29276         program as first argument.
29277         * tests/test-pipe-filter-gi1.c (main): Likewise.
29278
29279 2009-08-16  Eric Blake  <ebb9@byu.net>
29280
29281         fpurge: fix previous commits
29282         * modules/fpurge (Makefile.am): Make replacement conditional,
29283         partially reverting 2007-04-29 change; missed in previous
29284         attempt.
29285         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
29286         is missing.
29287
29288 2009-08-16  Bruno Haible  <bruno@clisp.org>
29289
29290         Clarify fpurge's effect on the file position.
29291         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
29292         * tests/test-fpurge.c (main): Make a second pass for checking the file
29293         position.
29294
29295 2009-08-16  Bruno Haible  <bruno@clisp.org>
29296
29297         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
29298         declaration of fpurge is missing.
29299         * tests/test-fpurge.c (main): Check that the file has not more contents
29300         than expected. Close the file before removing it.
29301
29302 2009-08-15  Eric Blake  <ebb9@byu.net>
29303
29304         fpurge: don't wrap working cygwin implementation
29305         * lib/fpurge.c (fpurge): Fix comment typo.
29306         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
29307         1.7 to avoid replacement.
29308         * tests/test-fpurge.c (main): Enhance test.
29309
29310 2009-08-15  Eric Blake  <ebb9@byu.net>
29311         and Jim Meyering  <meyering@redhat.com>
29312
29313         test-update-copyright: skip if perl is insufficient
29314         * tests/test-update-copyright.sh: Failure to run maintainer tool
29315         should not cause testsuite failure on cygwin 1.5.
29316
29317 2009-08-14  Eric Blake  <ebb9@byu.net>
29318
29319         doc: mention more functions added in cygwin 1.7.0
29320         * doc/posix-headers/limits.texi (limits.h): Update for recent
29321         cygwin additions.
29322         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
29323         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
29324         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
29325         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
29326         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
29327
29328 2009-08-14  Eric Blake  <ebb9@byu.net>
29329
29330         maint.mk: simplify update-copyright rule
29331         * top/maint.mk (update-copyright-local): Delete, and document how
29332         to do it in cfg.mk instead.
29333         (update-copyright-exclude-regexp): Delete, and document how to do
29334         it in .x-update-copyright instead.
29335         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
29336         exclude ChangeLog.
29337
29338 2009-08-14  Bruno Haible  <bruno@clisp.org>
29339
29340         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
29341
29342 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
29343
29344         maint.mk: support update-copyright-env
29345         * top/maint.mk (update-copyright-env): Define place-holder.
29346         (update-copyright): Expand $(update-copyright-env) before
29347         invoking update-copyright.
29348
29349 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
29350
29351         update-copyright: implement forced reformatting
29352         * build-aux/update-copyright: Implement and document
29353         UPDATE_COPYRIGHT_FORCE.
29354         * tests/test-update-copyright.sh: Test it.
29355
29356 2009-08-14  Eric Blake  <ebb9@byu.net>
29357         and Bruno Haible  <bruno@clisp.org>
29358
29359         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
29360         * tests/test-locale.c: Revert previous patch related to NULL.
29361         * tests/test-stdio.c: Likewise.
29362         * tests/test-stdlib.c: Likewise.
29363         * tests/test-string.c: Likewise.
29364         * tests/test-unistd.c: Likewise.
29365         * modules/time-tests (Depends-on): Add verify.
29366         * modules/wchar-tests (Depends-on): Likewise.
29367         * tests/test-time.c: Test for NULL compliance.
29368         * tests/test-wchar.c: Likewise.
29369         * modules/locale (Depends-on): Add stddef.
29370         * modules/stdio (Depends-on): Likewise.
29371         * modules/stdlib (Depends-on): Likewise.
29372         * modules/string (Depends-on): Likewise.
29373         * modules/time (Depends-on): Likewise.
29374         * modules/unistd (Depends-on): Likewise.
29375         * modules/wchar (Depends-on): Likewise.
29376         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
29377         * lib/stdlib.in.h (includes): Likewise.
29378         * lib/string.in.h (includes): Likewise.
29379         * lib/time.in.h (includes): Likewise.
29380         * lib/unistd.in.h (includes): Likewise.
29381         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
29382         replaced.
29383         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
29384         * m4/stddef_h.m4: New file.
29385         * modules/stddef: Likewise.
29386         * lib/stddef.in.h: Likewise.
29387         * modules/stddef-tests: Likewise.
29388         * tests/test-stddef.c: Likewise.
29389         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
29390         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
29391         * doc/posix-headers/locale.texi (locale.h): Likewise.
29392         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
29393         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
29394         * doc/posix-headers/string.texi (string.h): Likewise.
29395         * doc/posix-headers/time.texi (time.h): Likewise.
29396         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
29397         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
29398
29399 2009-08-14  Eric Blake  <ebb9@byu.net>
29400
29401         doc: improve git diff of texinfo files
29402         * .gitattributes: Add rule for *.texi files, with hint on how to
29403         use it.
29404         Copied from m4, and based on a report by Bruno Haible.
29405
29406 2009-08-14  Bruno Haible  <bruno@clisp.org>
29407
29408         Disable multithread support by default on Cygwin 1.5.x for real.
29409         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
29410
29411 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
29412
29413         update-copyright: much ado about intervals
29414         * build-aux/update-copyright: Implement and document
29415         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
29416         of copyright year intervals.
29417         Also, document UPDATE_COPYRIGHT_YEAR.
29418         * tests/test-update-copyright.sh: Test it.
29419
29420         update-copyright: convert 2-digit to 4-digit years
29421         * build-aux/update-copyright: Implement and document.
29422         * tests/test-update-copyright.sh: Update.
29423
29424 2009-08-14  Jim Meyering  <meyering@redhat.com>
29425
29426         test-exclude: avoid coreutils "make check" failure
29427         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
29428         just as in test-argmatch.c.
29429
29430 2009-08-13  Eric Blake  <ebb9@byu.net>
29431
29432         test-dup2: fix bad assumption
29433         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
29434         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
29435
29436         test-version-etc: fix CRLF portability issue
29437         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
29438         recognize \r.
29439         * tests/test-argp-version-etc-1.sh: Likewise.
29440
29441         getopt: update client modules
29442         * modules/argp (Depends-on): Use getopt-gnu.
29443         * modules/git-merge-changelog (Depends-on): Likewise.
29444         * modules/long-options (Depends-on): Likewise.
29445         * modules/xstrtol (Depends-on): Likewise.
29446
29447 2009-08-13  Simon Josefsson  <simon@josefsson.org>
29448
29449         * tests/test-version-etc.sh: Don't fail on different
29450         project/version.  Don't fail on CRLF differences.  Rewrite to use
29451         multiple -e instead of multiple sed forks, suggested by Eric Blake
29452         <ebb9@byu.net>.
29453         * tests/test-argp-version-etc-1.sh: Likewise.
29454
29455 2009-08-13  Simon Josefsson  <simon@josefsson.org>
29456
29457         * tests/test-version-etc.sh: Don't fail on different
29458         project/version.
29459
29460 2009-08-12  Bruno Haible  <bruno@clisp.org>
29461
29462         Tests for modules 'getopt-posix', 'getopt-gnu'.
29463         * modules/getopt-posix-tests: New file.
29464         * tests/test-getopt.c: New file.
29465         * tests/test-getopt.h: New file.
29466         * tests/test-getopt_long.h: New file.
29467
29468         New modules 'getopt-posix', 'getopt-gnu'.
29469         * modules/getopt-gnu: New file, renamed from modules/getopt.
29470         * modules/getopt-posix: New file.
29471         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
29472         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
29473         (gl_GETOPT): Remove macro.
29474         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
29475         Disable the test against BSD systems that declare optreset. Test
29476         against mingw bug. Test against lack of support of optional arguments
29477         on many platforms.
29478         * doc/glibc-headers/getopt.texi: Update module name and list of
29479         relevant platforms.
29480         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
29481         'getopt-gnu' and more portability problems.
29482         * NEWS: Mention the changes.
29483
29484 2009-08-12  Bruno Haible  <bruno@clisp.org>
29485
29486         Ensure that optarg etc. get declared by <unistd.h>.
29487         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
29488         AC_USE_SYSTEM_EXTENSIONS.
29489         * modules/getopt (Depends-on): Add 'extensions'.
29490
29491 2009-08-12  Bruno Haible  <bruno@clisp.org>
29492
29493         Avoid test link errors.
29494         * modules/pipe-filter-ii-tests (Makefile.am): Define
29495         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
29496         * modules/pipe-filter-gi-tests (Makefile.am): Define
29497         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
29498         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29499
29500 2009-08-12  Bruno Haible  <bruno@clisp.org>
29501
29502         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
29503         gl_GETOPT_SUBSTITUTE before.
29504         (gl_GETOPT): Use it.
29505         * m4/argp.m4 (gl_ARGP): Update.
29506         Reported by Sergey Poznyakoff.
29507
29508         * m4/getopt.m4: Reorder macros.
29509         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
29510         (gl_GETOPT_SUBSTITUTE): Remove macro.
29511
29512 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
29513
29514         Minor improvement in gitlog-to-changelog
29515
29516         * build-aux/gitlog-to-changelog: New option `--format' makes
29517         output format string configurable.
29518
29519 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
29520
29521         Optimize exclude: use hash tables for non-wildcard patterns.
29522
29523         * lib/exclude.c: Include hash.h and mbuiter.h
29524         (struct exclude_pattern, exclude_segment): New data types.
29525         (struct exclude): Rewrite.
29526         (fnmatch_pattern_has_wildcards): New function.
29527         (new_exclude_segment, free_exclude_segment): New functions.
29528         (excluded_file_pattern_p, excluded_file_name_p): New functions.
29529         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
29530         * lib/exclude.h (is_fnmatch_pattern): New prototype.
29531         * modules/exclude: Depend on hash and mbuiter.
29532
29533         * modules/exclude-tests: New file.
29534         * tests/test-exclude.c: New file.
29535         * tests/test-exclude1.sh: New file.
29536         * tests/test-exclude2.sh: New file.
29537         * tests/test-exclude3.sh: New file.
29538         * tests/test-exclude4.sh: New file.
29539         * tests/test-exclude5.sh: New file.
29540         * tests/test-exclude6.sh: New file.
29541         * tests/test-exclude7.sh: New file.
29542
29543 2009-08-12  Bruno Haible  <bruno@clisp.org>
29544
29545         Ensure that getopt() gets declared by <unistd.h>.
29546         * lib/unistd.in.h: Conditionally include getopt.h.
29547         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
29548         Set GNULIB_UNISTD_H_GETOPT.
29549         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29550         GNULIB_UNISTD_H_GETOPT.
29551         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
29552
29553 2009-08-12  Bruno Haible  <bruno@clisp.org>
29554
29555         Clarify logic.
29556         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
29557         gl_replace_getopt instead of GETOPT_H.
29558
29559 2009-08-12  Bruno Haible  <bruno@clisp.org>
29560
29561         * m4/getopt.m4: Add comments.
29562
29563 2009-08-12  Bruno Haible  <bruno@clisp.org>
29564
29565         Disable multithread support by default on Cygwin 1.5.x.
29566         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
29567         set gl_use_threads=no if not specified otherwise.
29568
29569 2009-08-11  Bruno Haible  <bruno@clisp.org>
29570
29571         Avoid compilation error on NetBSD 5.0.
29572         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
29573         * tests/test-stdio.c: Likewise.
29574         * tests/test-stdlib.c: Likewise.
29575         * tests/test-string.c: Likewise.
29576         * tests/test-unistd.c: Likewise.
29577         Reported by Greg Troxel <gdt@ir.bbn.com>
29578         at <https://savannah.gnu.org/support/?106973>.
29579
29580 2009-08-11  Bruno Haible  <bruno@clisp.org>
29581
29582         * modules/dup2-tests (Depends-on): Remove close.
29583
29584         Undo 2009-07-19 commit.
29585         * modules/acl-tests (Depends-on): Remove close.
29586         * modules/binary-io-tests (Depends-on): Likewise.
29587         * modules/closein-tests (Depends-on): Likewise.
29588         * modules/flock-tests (Depends-on): Likewise.
29589         * modules/fsync-tests (Depends-on): Likewise.
29590         * modules/lseek-tests (Depends-on): Likewise.
29591         * modules/pipe-tests (Depends-on): Likewise.
29592         * modules/posix_spawn-tests (Depends-on): Likewise.
29593         * modules/posix_spawnp-tests (Depends-on): Likewise.
29594         * modules/stat-time-tests (Depends-on): Likewise.
29595         * modules/yesno-tests (Depends-on): Likewise.
29596
29597 2009-08-10  Bruno Haible  <bruno@clisp.org>
29598
29599         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
29600
29601 2009-08-10  Bruno Haible  <bruno@clisp.org>
29602
29603         Fix a gcc warning.
29604         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
29605
29606 2009-08-10  Bruno Haible  <bruno@clisp.org>
29607
29608         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
29609         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
29610         not only the first time.
29611         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
29612         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
29613         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
29614         is 1, not only the the first time.
29615
29616 2009-08-10  Bruno Haible  <bruno@clisp.org>
29617
29618         Make it possible to use module 'gethostname' without module 'close'.
29619         * lib/unistd.in.h (close): Evoke a link error only if
29620         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
29621         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29622         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29623         * modules/unistd (Makefile.am): Substitute
29624         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29625         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
29626         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
29627         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
29628         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29629         * modules/sys_ioctl (Makefile.am): Substitute
29630         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29631         * modules/socket (configure.ac): On native Windows, set
29632         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
29633         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29634         Reported by Sam Steingold <sds@gnu.org>.
29635
29636 2009-08-10  Bruno Haible  <bruno@clisp.org>
29637
29638         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
29639         * modules/ioctl (configure.ac): Likewise.
29640
29641 2009-08-10  Bruno Haible  <bruno@clisp.org>
29642
29643         Avoid collision between gnulib wrapper and libintl wrapper.
29644         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
29645         already defined in intl/printf.c.
29646         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
29647         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
29648
29649 2009-08-09  Bruno Haible  <bruno@clisp.org>
29650
29651         Make <sys/select.h> really self-contained, also on Solaris 10.
29652         * lib/sys_select.in.h: Include <string.h>.
29653         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
29654         Solaris 10 problem.
29655         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
29656         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
29657         Reported by Jim Meyering.
29658
29659 2009-08-09  Bruno Haible  <bruno@clisp.org>
29660
29661         Avoid warnings from 'aclocal' that are due to a use of macro name
29662         AM_XGETTEXT_OPTION that is not defined in automake.
29663         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
29664         automake.
29665         * modules/error (configure.ac): Likewise.
29666         * modules/propername (configure.ac): Likewise.
29667         * modules/vasprintf (configure.ac): Likewise.
29668         * modules/verror (configure.ac): Likewise.
29669         * modules/xprintf (configure.ac): Likewise.
29670         * modules/xvasprintf (configure.ac): Likewise.
29671
29672 2009-08-08  Bruno Haible  <bruno@clisp.org>
29673
29674         Avoid compilation error in C++ mode.
29675         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
29676         Reported by Sam Steingold <sds@gnu.org>.
29677
29678 2009-08-08  Bruno Haible  <bruno@clisp.org>
29679
29680         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
29681         for the various Unix platforms.
29682         * doc/posix-headers/limits.texi: Update platforms list regarding
29683         HOST_NAME_MAX.
29684         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29685
29686 2009-08-07  Jim Meyering  <meyering@redhat.com>
29687
29688         selinux-at: fix typo in a comment
29689         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
29690         Spotted by Paolo Bonzini.
29691
29692         selinux-at: remove redundant m4 code, add documentation
29693         * modules/selinux-at (configure.ac): Remove redundant code.
29694         LIB_SELINUX is already set via the dependent module, selinux-h.
29695         (Include): Add quotes around selinux-at.h.
29696         * lib/selinux-at.h: Add documentation.
29697         Reported by Bruno Haible in
29698         http://marc.info/?l=gnulib-bug&m=124958988300749
29699
29700 2009-08-07  Bruno Haible  <bruno@clisp.org>
29701
29702         Avoid link error on MacOS X 10.3 and 10.4.
29703         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
29704         on non-ELF systems.
29705         * lib/argp-pv.c (argp_program_version): Likewise.
29706         Reported by Simon Josefsson.
29707
29708 2009-08-07  Simon Josefsson  <simon@josefsson.org>
29709
29710         * tests/test-version-etc.sh: Use $EXEEXT.
29711
29712 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
29713
29714         update-copyright: update documentation to point to maint.mk
29715         * build-aux/update-copyright: Here.
29716
29717 2009-08-06  Jim Meyering  <meyering@redhat.com>
29718
29719         maint.mk: support update-copyright-local
29720         * top/maint.mk (update-copyright-local): Define place-holder.
29721         (update-copyright): Depend on $(update-copyright-local).
29722
29723 2009-08-06  Jim Meyering  <meyering@redhat.com>
29724
29725         selinux-at: new module
29726         Initially written for coreutils, this module will soon be
29727         used by findutils, too.
29728         * MODULES.html.sh [Misc]: Add selinux-at.
29729         * lib/selinux-at.h: New file, from coreutils.
29730         * lib/selinux-at.c: Likewise.
29731         * modules/selinux-at: Likewise.
29732         (License): Change from LGPL to GPL, since it depends
29733         on the GPL'd openat module.
29734
29735         doc: update README
29736         * README: Remove references to cogito.
29737         Remove cvs-repo-updating instructions from 2007.
29738         Don't imply that CVS is better if you have limited disk space.
29739
29740 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
29741
29742         update-copyright: support C-style comments
29743         * build-aux/update-copyright: Implement and document.
29744         * tests/test-update-copyright.sh: Test.
29745
29746 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
29747
29748         update-copyright: support omitted "(C)"
29749         * build-aux/update-copyright: Implement and document.  Also,
29750         allow variable whitespace before "(C)".
29751         * tests/test-update-copyright.sh: Test.
29752
29753 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
29754
29755         update-copyright: don't trip on non-FSF copyright statements
29756         * build-aux/update-copyright: Fix so that the first correctly
29757         formatted FSF copyright statement is recognized no matter what
29758         appears before it.  Update documentation.
29759         * tests/test-update-copyright.sh: Test that.
29760
29761 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
29762
29763         update-copyright: clean up code a little
29764         * build-aux/update-copyright: Append "_re" to the name of any
29765         variable holding a regular expression.
29766         Replace "old" and "new" with "stmt" in variable names.
29767         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
29768         handled correctly.
29769         Format code more consistently.
29770
29771 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
29772
29773         update-copyright-tests: improve portability
29774         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
29775         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
29776
29777 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
29778
29779         update-copyright: support @copyright{} and &copy;
29780         * build-aux/update-copyright: Implement and document.
29781         * tests/test-update-copyright.sh: Test.
29782
29783 2009-08-04  Jim Meyering  <meyering@redhat.com>
29784
29785         update-copyright-tests: correctly test EOL=\r\n handling
29786         * tests/test-update-copyright.sh: Put \r at the end of some lines
29787         for the dos-eol tests.  Based on a patch by Joel E. Denny.
29788
29789         maint.mk: make update-copyright exclusion list more configurable
29790         * top/maint.mk (update-copyright): Default to excluding COPYING,
29791         but allow an override, in case someone does want to update that file.
29792
29793         maint.mk: don't update copyright date in COPYING
29794         * top/maint.mk (update-copyright): Exclude COPYING.
29795
29796         maint.mk: add a copyright-updating rule
29797         * top/maint.mk (update-copyright): New rule.
29798         Derived from coreutils/Makefile.am.
29799
29800         update-copyright: rename some variables
29801         * build-aux/update-copyright: Rename a few variables for clarity.
29802         Tweak syntax.  List Joel E. Denny as coauthor.
29803
29804 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
29805
29806         update-copyright: fix bug for 2-digit last year and add tests
29807         * build-aux/update-copyright: Fix bug.
29808         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
29809         specified.
29810         * modules/update-copyright-tests: New
29811         * tests/test-update-copyright.sh: New.
29812
29813 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
29814
29815         update-copyright: handle leading tabs in line prefix
29816         * build-aux/update-copyright: Count leading tabs as 8 spaces
29817         when computing margin.  This helps with the formatting of
29818         ChangeLogs, for example.
29819         Fix documentation a little.
29820
29821 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
29822
29823         update-copyright: support EOL=\r\n
29824         * build-aux/update-copyright: Implement that.
29825
29826 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
29827
29828         update-copyright: automatically format copyright statements
29829         * build-aux/update-copyright: Implement that.
29830         Also, be a little more predictable and safer by always failing
29831         when the full copyright format is not perfectly recognized as an
29832         unbroken whole.  Discussed at
29833         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
29834         Rewrite documentation.
29835
29836 2009-08-03  Bruno Haible  <bruno@clisp.org>
29837
29838         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
29839
29840 2009-08-02  Bruno Haible  <bruno@clisp.org>
29841
29842         Tests for module 'uname'.
29843         * modules/uname-tests: New file.
29844         * tests/test-uname.c: New file.
29845
29846         New module 'uname'.
29847         * lib/uname.c: New file.
29848         * m4/uname.m4: New file.
29849         * modules/uname: New file.
29850         * doc/posix-functions/uname.texi: Mention the new module.
29851
29852 2009-08-02  Bruno Haible  <bruno@clisp.org>
29853
29854         Tests for module 'sys_utsname'.
29855         * modules/sys_utsname-tests: New file.
29856         * tests/test-sys_utsname.c: New file.
29857
29858         New module 'sys_utsname'.
29859         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
29860         * m4/sys_utsname_h.m4: New file.
29861         * modules/sys_utsname: New file.
29862         * doc/posix-headers/sys_utsname.texi: Mention the new module.
29863
29864 2009-08-02  Bruno Haible  <bruno@clisp.org>
29865
29866         Implicitly initialize the sockets library.
29867         * lib/gethostname.c: Include sockets.h.
29868         (rpl_gethostname): Invoke gl_sockets_startup.
29869         * lib/socket.c: Include sockets.h.
29870         (rpl_socket): Invoke gl_sockets_startup.
29871         * modules/gethostname (Depends-on): Add sockets.
29872         * modules/socket (Depends-on): Likewise.
29873         * tests/test-poll.c: Don't include sockets.h.
29874         (main): Don't invoke gl_sockets_startup.
29875         * tests/test-select.c: Don't include sockets.h.
29876         (main): Don't invoke gl_sockets_startup.
29877
29878 2009-08-02  Bruno Haible  <bruno@clisp.org>
29879
29880         Allow multiple calls to gl_sockets_startup.
29881         * lib/sockets.c (initialized_sockets_version): New variable.
29882         (gl_sockets_startup): Do nothing if already called for this or a higher
29883         version.
29884         (gl_sockets_cleanup): Reset initialized_sockets_version.
29885
29886 2009-08-03  Simon Josefsson  <simon@josefsson.org>
29887
29888         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
29889         different project/version.
29890
29891 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
29892             Bruno Haible  <bruno@clisp.org>
29893
29894         Tests for module 'pipe-filter-gi'.
29895         * modules/pipe-filter-gi-tests: New file.
29896         * tests/test-pipe-filter-gi1.sh: New file.
29897         * tests/test-pipe-filter-gi1.c: New file.
29898         * tests/test-pipe-filter-gi2.sh: New file.
29899         * tests/test-pipe-filter-gi2-main.c: New file.
29900         * tests/test-pipe-filter-gi2-child.c: New file.
29901
29902         New module 'pipe-filter-gi'.
29903         * lib/pipe-filter-gi.c: New file.
29904         * modules/pipe-filter-gi: New file.
29905
29906 2009-08-02  Bruno Haible  <bruno@clisp.org>
29907             Paolo Bonzini  <bonzini@gnu.org>
29908
29909         Tests for module 'pipe-filter-ii'.
29910         * modules/pipe-filter-ii-tests: New file.
29911         * tests/test-pipe-filter-ii1.sh: New file.
29912         * tests/test-pipe-filter-ii1.c: New file.
29913         * tests/test-pipe-filter-ii2.sh: New file.
29914         * tests/test-pipe-filter-ii2-main.c: New file.
29915         * tests/test-pipe-filter-ii2-child.c: New file.
29916
29917         New module 'pipe-filter-ii'.
29918         * lib/pipe-filter.h: New file.
29919         * lib/pipe-filter-ii.c: New file.
29920         * lib/pipe-filter-aux.h: New file.
29921         * modules/pipe-filter-ii: New file.
29922
29923 2009-08-02  Simon Josefsson  <simon@josefsson.org>
29924
29925         * lib/gc-libgcrypt.c: Change copyright to FSF.
29926         * lib/gc-gnulib.c: Likewise.
29927
29928 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
29929
29930         * lib/gethostname.c: Include limits.h.
29931
29932 2009-08-02  Simon Josefsson  <simon@josefsson.org>
29933             Bruno Haible  <bruno@clisp.org>
29934
29935         Ensure HOST_NAME_MAX as part of the gethostname module.
29936         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
29937         define also HOST_NAME_MAX.
29938         * tests/test-gethostname.c: Include <limits.h>.
29939         (main): Check also HOST_NAME_MAX.
29940         * doc/posix-headers/limits.texi: Document the mingw problem.
29941
29942 2009-08-02  Bruno Haible  <bruno@clisp.org>
29943
29944         * lib/gethostname.c (gethostname): Fix handling of large len argument.
29945         Add comments.
29946
29947 2009-03-31  Simon Josefsson  <simon@josefsson.org>
29948
29949         * lib/gethostname.c: Add Windows wrapper.
29950         * m4/gethostname.m4: Look for gethostname in -lws2_32.
29951         * modules/gethostname: Depend on sys_socket & errno, for also
29952         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
29953         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
29954
29955 2009-07-31  Jim Meyering  <meyering@redhat.com>
29956
29957         getloadavg: fix symbol name in comment
29958         * lib/getloadavg.c: Correct a typo I introduced when adding
29959         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
29960         Matt Kraai spotted the problem.
29961
29962 2009-07-29  Matt Kraai  <mkraai@beckman.com>
29963
29964         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
29965         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
29966         code also if ! defined N_NAME_POINTER.
29967         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
29968         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
29969         but the n_name member is a 12-byte array.
29970
29971 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
29972
29973         update-copyright: generalize comment handling
29974         * build-aux/update-copyright: Handle copyright statements
29975         within more comment styles.
29976         Document usage.
29977         Report any file with an external copyright holder or parse failure.
29978
29979 2009-07-29  Jim Meyering  <meyering@redhat.com>
29980
29981         mktime: correct setting of REPLACE_MKTIME
29982         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
29983
29984         update-copyright: new module
29985         * modules/update-copyright: New file.
29986         * build-aux/update-copyright: New file.
29987         * MODULES.html.sh (maint+release support): Add update-copyright.
29988
29989 2009-07-27  Bruno Haible  <bruno@clisp.org>
29990
29991         Fix compilation error when <ctime> is used and mktime is replaced.
29992         * lib/time.in.h (mktime): New declaration.
29993         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
29994         REPLACE_MKTIME instead of defining mktime in config.h.
29995         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
29996         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
29997         Reported by Ross McFarland <rwmcfa1@neces.com>.
29998
29999 2009-07-27  Bruno Haible  <bruno@clisp.org>
30000
30001         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
30002         Reported by Matt Kraai <mkraai@beckman.com>.
30003
30004 2009-07-25  Jim Meyering  <meyering@redhat.com>
30005
30006         maint.mk: avoid warnings about missing files
30007         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
30008         diagnostic when .prev-version does not exist.
30009         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
30010         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
30011         nonexistent cfg.mk.
30012         Suggestions from Simon Josefsson.
30013
30014 2009-07-25  Bruno Haible  <bruno@clisp.org>
30015
30016         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
30017         defined as macros. Needed on QNX 6.4.1.
30018         Reported by Matt Kraai <mkraai@beckman.com>.
30019
30020 2009-07-23  Jim Meyering  <meyering@redhat.com>
30021
30022         maint.mk: invoke "make dist" with a working value of XZ_OPT
30023         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
30024
30025 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
30026
30027         Make fseeko.c compile on QNX.
30028         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
30029
30030 2009-07-22  Peter Simons  <simons@cryp.to>
30031
30032         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
30033         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
30034         * lib/md4.h: Likewise.
30035         * lib/md5.h: Likewise.
30036         * lib/sha1.h: Likewise.
30037         * lib/sha256.h: Likewise.
30038         * lib/sha512.h: Likewise.
30039
30040         tests-sha1: don't assign literal string to 'char *' variable
30041         * tests/test-sha1.c (main): Declare locals with "const" to match
30042         attributes of the right hand side.
30043
30044 2009-07-21  Eric Blake  <ebb9@byu.net>
30045
30046         dup2: fix more mingw problems
30047         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
30048         fd to itself.
30049         * doc/posix-functions/dup2.texi (dup2): Document the bug.
30050         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
30051         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
30052         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
30053         care of mingw bugs.
30054
30055 2009-07-21  Jim Meyering  <meyering@redhat.com>
30056
30057         vc-list-files: avoid failure when /bin/sh is dash
30058         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
30059         On some Debian based systems, /bin/sh is a symlink to dash, and running
30060         this command would omit the "/" following each 'tests' prefix:
30061           dash -x build-aux/vc-list-files -C . tests
30062         That is because bash and dash work differently:
30063           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
30064           bash ok
30065           dash odd
30066
30067 2009-07-21  Eric Blake  <ebb9@byu.net>
30068
30069         dup2-tests: test previous patch
30070         * modules/dup2-tests: New file.
30071         * tests/test-dup2.c: Likewise.
30072         * tests/test-open.c (main): Avoid unspecified behavior.
30073         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
30074         test.
30075
30076         dup2: work around mingw and cygwin 1.5 bug
30077         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
30078         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30079         * modules/unistd (Makefile.am): Substitute it.
30080         * lib/unistd.in.h (dup2): Declare the replacement.
30081         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
30082         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
30083         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
30084         * modules/execute (Depends-on): Add dup2.
30085         * modules/fseterr (Depends-on): Likewise.
30086         * modules/pipe (Depends-on): Likewise.
30087         * modules/posix_spawn-internal (Depends-on): Likewise.
30088
30089 2009-07-21  Bruno Haible  <bruno@clisp.org>
30090
30091         * modules/.gitattributes: New file.
30092
30093 2009-07-20  Bruno Haible  <bruno@clisp.org>
30094
30095         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
30096         (main): Use it.
30097
30098 2009-07-20  Eric Blake  <ebb9@byu.net>
30099
30100         test-pipe: make a bit more robust.
30101         * tests/test-pipe.c (myerr): Allow error messages regardless of
30102         what we do to stderr.
30103         (test_pipe): Rearrange to avoid deadlock.
30104         (child_main): Try a larger read, to ensure we avoided deadlock.
30105         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
30106         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
30107         if misused.
30108
30109 2009-07-19  Jim Meyering  <meyering@redhat.com>
30110
30111         fts: avoid false-positive cycle-detection
30112         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
30113         for each new command line argument.
30114
30115 2009-07-19  Bruno Haible  <bruno@clisp.org>
30116
30117         Fix build error on mingw with the modules sys_select and unistd.
30118         * modules/acl-tests (Depends-on): Add close.
30119         * modules/binary-io-tests (Depends-on): Likewise.
30120         * modules/closein-tests (Depends-on): Likewise.
30121         * modules/flock-tests (Depends-on): Likewise.
30122         * modules/fsync-tests (Depends-on): Likewise.
30123         * modules/lseek-tests (Depends-on): Likewise.
30124         * modules/pipe-tests (Depends-on): Likewise.
30125         * modules/posix_spawn-tests (Depends-on): Likewise.
30126         * modules/posix_spawnp-tests (Depends-on): Likewise.
30127         * modules/stat-time-tests (Depends-on): Likewise.
30128         * modules/yesno-tests (Depends-on): Likewise.
30129
30130 2009-07-19  Bruno Haible  <bruno@clisp.org>
30131
30132         Unify conditionals.
30133         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
30134         macros, not at the compiler macros.
30135         * lib/pipe.c: Likewise.
30136         * lib/execute.c: Likewise.
30137         * lib/spawni.c: Likewise.
30138
30139 2009-07-19  Bruno Haible  <bruno@clisp.org>
30140
30141         Fix handling of closed stdin/stdout/stderr on mingw.
30142         * lib/w32spawn.h: Include unistd.h.
30143         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
30144         file descriptor with O_NOINHERIT flag.
30145         (fd_safer_noinherit): New function, based on fd-safer.c.
30146         (dup_safer_noinherit): New function, based on dup-safer.c.
30147         (undup_safer_noinherit): New function.
30148         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
30149         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
30150         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
30151         instead of fd_safer.
30152         * tests/test-pipe.c: Include <windows.h>.
30153         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
30154         result.
30155
30156         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
30157         from main.
30158         (test_pipe): Pass an extra argument for disambiguation.
30159         (main): Invoke parent_main or child_main.
30160
30161         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
30162         consistently.
30163
30164 2009-07-18  Eric Blake  <ebb9@byu.net>
30165
30166         test-pipe: fix mingw build
30167         * tests/test-pipe.c (main): Avoid fcntl on mingw.
30168
30169 2009-07-18  Bruno Haible  <bruno@clisp.org>
30170
30171         * modules/pipe-tests (Makefile.am): Fix typo.
30172
30173 2009-07-18  Eric Blake  <ebb9@byu.net>
30174
30175         error: fix mingw build
30176         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
30177         Reported by Bruno Haible.
30178
30179         error: avoid undefined use of stdout
30180         * lib/error.c (error, error_at_line): Check that fd 1 is open
30181         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
30182         is handling faults and the close_stdout module wants to report the
30183         detection of closed stdout as an error.
30184
30185 2009-07-17  Eric Blake  <ebb9@byu.net>
30186
30187         pipe: be robust in face of closed fds
30188         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
30189         should cause child to misbehave.
30190         * modules/pipe-tests: New module.
30191         * tests/test-pipe.c: New file.
30192         * tests/test-pipe.sh: New file.
30193         Reported by Akim Demaille.
30194
30195 2009-07-14  Bruno Haible  <bruno@clisp.org>
30196
30197         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
30198         Reported by anonymous kc.
30199
30200 2009-07-07  Jim Meyering  <meyering@redhat.com>
30201
30202         maint.mk: don't look for translatable strings in *.m4 or *.mk
30203         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
30204         when searching for translatable strings.
30205
30206 2009-07-05  Jim Meyering  <meyering@redhat.com>
30207
30208         remove superfluous parentheses in STREQ definition
30209         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
30210         * lib/getugroups.c (STREQ): Likewise.
30211         * lib/fnmatch.c (STREQ): Likewise.
30212         Spotted by Bruno Haible.
30213
30214 2009-07-04  Jim Meyering  <meyering@redhat.com>
30215
30216         argv-iter: new module
30217         * MODULES.html.sh: Add argv-iter.
30218         * lib/argv-iter.c, lib/argv-iter.h: New files.
30219         * modules/argv-iter: New file.
30220         * modules/argv-iter-tests: New file.
30221         * tests/test-argv-iter.c: Test it.
30222
30223 2009-07-04  Bruno Haible  <bruno@clisp.org>
30224
30225         Fix assertion.
30226         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
30227         contains more exact copies of a given entry than file2, leave the extra
30228         copies unpaired rather than aborting.
30229         Reported by Eric Blake.
30230
30231 2009-07-02  Bruno Haible  <bruno@clisp.org>
30232
30233         Speedup git-merge-changelog for git cherry-pick.
30234         * lib/git-merge-changelog.c (struct entries_mapping): New type.
30235         (entries_mapping_get): New function, extracted from compute_mapping.
30236         (entries_mapping_reverse_get): New function.
30237         (compute_mapping): Add a 'full' argument. Return the result in a
30238         'struct entries_mapping'.
30239         (main): Update. Access the mappings through entries_mapping_get.
30240         Reported by Eric Blake.
30241
30242 2009-07-02  Bruno Haible  <bruno@clisp.org>
30243
30244         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
30245         best_i.
30246
30247 2009-07-02  Bruno Haible  <bruno@clisp.org>
30248
30249         Speed up approximate search for matching ChangeLog entries.
30250         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
30251         argument. Call fstrcmp_bounded instead of fstrcmp.
30252         (compute_mapping, try_split_merged_entry, main): Update callers.
30253
30254 2009-07-02  Bruno Haible  <bruno@clisp.org>
30255
30256         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
30257
30258 2009-06-30  Bruno Haible  <bruno@clisp.org>
30259
30260         Reduce the number of uc_is_cased calls.
30261         * lib/unicase.h (casing_suffix_context_t): Add
30262         'first_char_except_ignorable' field.
30263         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
30264         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
30265         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
30266         Update initializer.
30267         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
30268         case-ignorable characters.
30269         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
30270         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
30271         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
30272         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
30273         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
30274
30275 2009-06-30  Bruno Haible  <bruno@clisp.org>
30276
30277         Tests for module 'unicase/ignorable'.
30278         * modules/unicase/ignorable-tests: New file.
30279         * tests/unicase/test-ignorable.c: New file, generated by
30280         gen-uni-tables.
30281
30282         Tests for module 'unicase/cased'.
30283         * modules/unicase/cased-tests: New file.
30284         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
30285         * tests/unicase/test-predicate-part1.h: New file, derived from
30286         tests/unictype/test-predicate-part1.h.
30287         * tests/unicase/test-predicate-part2.h: New file, same as
30288         tests/unictype/test-predicate-part2.h.
30289
30290         Fix evaluation of "Before C" condition of FINAL_SIGMA.
30291         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
30292         (output_casing_properties): New function.
30293         (main): Call it.
30294         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
30295         * lib/unicase/cased.c: Include unictype/bitmap.h.
30296         (uc_is_cased): Define through a bitmap lookup.
30297         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
30298         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
30299         (uc_is_case_ignorable): Define through a bitmap lookup.
30300         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
30301         lib/unictype/bitmap.h.
30302         (Depends-on): Add inline. Clean up.
30303         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
30304         lib/unictype/bitmap.h.
30305         (Depends-on): Add inline. Clean up.
30306         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
30307         recognition.
30308         * tests/unicase/test-u16-tolower.c (main): Likewise.
30309         * tests/unicase/test-u32-tolower.c (main): Likewise.
30310
30311 2009-06-30  Bruno Haible  <bruno@clisp.org>
30312
30313         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
30314         * lib/unicase/u16-casemap.c: Likewise.
30315         * lib/unicase/u32-casemap.c: Likewise.
30316
30317 2009-06-29  Bruno Haible  <bruno@clisp.org>
30318
30319         Define u32_casefold as a wrapper around u32_ct_casefold.
30320         * lib/unicase/u32-casefold.c: Update.
30321         * modules/unicase/u32-casefold (Depends-on): Add
30322         unicase/u32-ct-casefold, unicase/empty-prefix-context,
30323         unicase/empty-suffix-context. Clean up.
30324
30325         Define u16_casefold as a wrapper around u16_ct_casefold.
30326         * lib/unicase/u16-casefold.c: Update.
30327         * modules/unicase/u16-casefold (Depends-on): Add
30328         unicase/u16-ct-casefold, unicase/empty-prefix-context,
30329         unicase/empty-suffix-context. Clean up.
30330
30331         Define u8_casefold as a wrapper around u8_ct_casefold.
30332         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
30333         * lib/unicase/u8-casefold.c: Update.
30334         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
30335         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
30336
30337         Define u32_totitle as a wrapper around u32_ct_totitle.
30338         * lib/unicase/u32-totitle.c: Update.
30339         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
30340         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
30341
30342         Define u16_totitle as a wrapper around u16_ct_totitle.
30343         * lib/unicase/u16-totitle.c: Update.
30344         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
30345         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
30346
30347         Define u8_totitle as a wrapper around u8_ct_totitle.
30348         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
30349         functions.
30350         (FUNC): Delegate to U_CT_TOTITLE.
30351         * lib/unicase/u8-totitle.c: Update.
30352         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
30353         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
30354
30355         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
30356         invocation.
30357         * modules/unicase/u32-tolower (Depends-on): Add
30358         unicase/empty-prefix-context, unicase/empty-suffix-context.
30359
30360         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
30361         invocation.
30362         * modules/unicase/u16-tolower (Depends-on): Add
30363         unicase/empty-prefix-context, unicase/empty-suffix-context.
30364
30365         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
30366         * modules/unicase/u8-tolower (Depends-on): Add
30367         unicase/empty-prefix-context, unicase/empty-suffix-context.
30368
30369         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
30370         invocation.
30371         * modules/unicase/u32-toupper (Depends-on): Add
30372         unicase/empty-prefix-context, unicase/empty-suffix-context.
30373
30374         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
30375         invocation.
30376         * modules/unicase/u16-toupper (Depends-on): Add
30377         unicase/empty-prefix-context, unicase/empty-suffix-context.
30378
30379         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
30380         * modules/unicase/u8-toupper (Depends-on): Add
30381         unicase/empty-prefix-context, unicase/empty-suffix-context.
30382
30383         New module 'unicase/u32-ct-casefold'.
30384         * lib/unicase/u32-ct-casefold.c: New file.
30385         * modules/unicase/u32-ct-casefold: New file.
30386
30387         New module 'unicase/u16-ct-casefold'.
30388         * lib/unicase/u16-ct-casefold.c: New file.
30389         * modules/unicase/u16-ct-casefold: New file.
30390
30391         New module 'unicase/u8-ct-casefold'.
30392         * lib/unicase/u8-ct-casefold.c: New file.
30393         * lib/unicase/u-ct-casefold.h: New file, derived from
30394         lib/unicase/u-casefold.h.
30395         * modules/unicase/u8-ct-casefold: New file.
30396
30397         New module 'unicase/u32-ct-totitle'.
30398         * lib/unicase/u32-ct-totitle.c: New file.
30399         * modules/unicase/u32-ct-totitle: New file.
30400
30401         New module 'unicase/u16-ct-totitle'.
30402         * lib/unicase/u16-ct-totitle.c: New file.
30403         * modules/unicase/u16-ct-totitle: New file.
30404
30405         New module 'unicase/u8-ct-totitle'.
30406         * lib/unicase/u8-ct-totitle.c: New file.
30407         * lib/unicase/u-ct-totitle.h: New file, derived from
30408         lib/unicase/u-totitle.h.
30409         * modules/unicase/u8-ct-totitle: New file.
30410
30411         New module 'unicase/u32-ct-tolower'.
30412         * lib/unicase/u32-ct-tolower.c: New file.
30413         * modules/unicase/u32-ct-tolower: New file.
30414
30415         New module 'unicase/u16-ct-tolower'.
30416         * lib/unicase/u16-ct-tolower.c: New file.
30417         * modules/unicase/u16-ct-tolower: New file.
30418
30419         New module 'unicase/u8-ct-tolower'.
30420         * lib/unicase/u8-ct-tolower.c: New file.
30421         * modules/unicase/u8-ct-tolower: New file.
30422
30423         New module 'unicase/u32-ct-toupper'.
30424         * lib/unicase/u32-ct-toupper.c: New file.
30425         * modules/unicase/u32-ct-toupper: New file.
30426
30427         New module 'unicase/u16-ct-toupper'.
30428         * lib/unicase/u16-ct-toupper.c: New file.
30429         * modules/unicase/u16-ct-toupper: New file.
30430
30431         New module 'unicase/u8-ct-toupper'.
30432         * lib/unicase/u8-ct-toupper.c: New file.
30433         * modules/unicase/u8-ct-toupper: New file.
30434
30435         Add context arguments to u*_casemap functions.
30436         * lib/unicase/unicasemap.h: Include unicase.h.
30437         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
30438         suffix_context arguments.
30439         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
30440         functions.
30441         (FUNC): Add prefix_context and suffix_context arguments. Use
30442         uc_is_cased and uc_is_case_ignorable.
30443         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
30444         * lib/unicase/u16-casemap.c: Likewise.
30445         * lib/unicase/u32-casemap.c: Likewise.
30446         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
30447         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
30448         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
30449         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
30450         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
30451         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
30452
30453         New module 'unicase/u32-suffix-context'.
30454         * lib/unicase/u32-suffix-context.c: New file.
30455         * modules/unicase/u32-suffix-context: New file.
30456
30457         New module 'unicase/u16-suffix-context'.
30458         * lib/unicase/u16-suffix-context.c: New file.
30459         * modules/unicase/u16-suffix-context: New file.
30460
30461         New module 'unicase/u8-suffix-context'.
30462         * lib/unicase/u8-suffix-context.c: New file.
30463         * lib/unicase/u-suffix-context.h: New file.
30464         * modules/unicase/u8-suffix-context: New file.
30465
30466         New module 'unicase/empty-suffix-context'.
30467         * lib/unicase/empty-suffix-context.c: New file.
30468         * modules/unicase/empty-suffix-context: New file.
30469
30470         New module 'unicase/u32-prefix-context'.
30471         * lib/unicase/u32-prefix-context.c: New file.
30472         * modules/unicase/u32-prefix-context: New file.
30473
30474         New module 'unicase/u16-prefix-context'.
30475         * lib/unicase/u16-prefix-context.c: New file.
30476         * modules/unicase/u16-prefix-context: New file.
30477
30478         New module 'unicase/u8-prefix-context'.
30479         * lib/unicase/u8-prefix-context.c: New file.
30480         * lib/unicase/u-prefix-context.h: New file.
30481         * lib/unicase/context.h: New file.
30482         * modules/unicase/u8-prefix-context: New file.
30483
30484         New module 'unicase/empty-prefix-context'.
30485         * lib/unicase/empty-prefix-context.c: New file.
30486         * modules/unicase/empty-prefix-context: New file.
30487
30488         New module 'unicase/ignorable'.
30489         * lib/unicase/ignorable.c: New file.
30490         * modules/unicase/ignorable: New file.
30491
30492         New module 'unicase/cased'.
30493         * lib/unicase/caseprop.h: New file.
30494         * lib/unicase/cased.c: New file.
30495         * modules/unicase/cased: New file.
30496
30497         New functions for case mapping of substrings.
30498         * lib/unicase.h (casing_prefix_context_t): New type.
30499         (unicase_empty_prefix_context): New variable.
30500         (u8_casing_prefix_context, u16_casing_prefix_context,
30501         u32_casing_prefix_context, u8_casing_prefixes_context,
30502         u16_casing_prefixes_context, u32_casing_prefixes_context): New
30503         declarations.
30504         (casing_suffix_context_t): New type.
30505         (unicase_empty_suffix_context): New variable.
30506         (u8_casing_suffix_context, u16_casing_suffix_context,
30507         u32_casing_suffix_context, u8_casing_suffixes_context,
30508         u16_casing_suffixes_context, u32_casing_suffixes_context,
30509         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
30510         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
30511         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
30512         declarations.
30513
30514 2009-06-28  Jim Meyering  <meyering@redhat.com>
30515
30516         boostrap: indent only with spaces
30517         * build-aux/bootstrap: Indent only with spaces, never TABs.
30518
30519         bootstrap: split long lines
30520         * build-aux/bootstrap: Keep line length < 80.
30521
30522         bootstrap: sync from coreutils
30523         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
30524         just as autoreconf does.  Verify a list of prerequisite
30525         package-name,version-number pairs if defined in bootstrap.conf.
30526         Refer to README-prereq, if prerequisites are not satisfied.
30527
30528 2009-06-27  Eric Blake  <ebb9@byu.net>
30529
30530         tests: add test for bogus NULL definition
30531         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
30532         * tests/test-stdlib.c: Likewise.
30533         * tests/test-string.c: Likewise.
30534         * tests/test-locale.c: Likewise.
30535         * tests/test-unistd.c: Likewise.
30536         * modules/stdio-tests (Depends-on): Add verify.
30537         * modules/stdlib-tests (Depends-on): Likewise.
30538         * modules/string-tests (Depends-on): Likewise.
30539         * modules/locale-tests (Depends-on): Likewise.
30540         * modules/unistd-tests (Depends-on): Likewise.
30541
30542 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
30543
30544         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
30545         self-explaining comment.
30546         * m4/selinux-selinux-h: Update serial.
30547         (gl_LIBSELINUX): New macro, adding a warning for missing development
30548         packages to code extracted from...
30549         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
30550         Add warning for missing development packages here, too.
30551
30552 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
30553
30554         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
30555
30556 2009-06-25  Eric Blake  <ebb9@byu.net>
30557
30558         version-etc: fix regression
30559         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
30560         gcc.
30561         (version_etc): Use it, to catch bugs with trailing NULL.
30562         * lib/version-etc.c (version_etc_arn): Delete unused argument.
30563         (version_etc_va): Fix logic bug.
30564         * modules/version-etc-tests: Add test.
30565         * tests/test-version-etc.c: New file.
30566         * tests/test-version-etc.sh: Likewise.
30567
30568 2009-06-25  Sam Steingold  <sds@gnu.org>
30569
30570         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
30571         mbtowc declaration.
30572
30573 2009-06-25  Eric Blake  <ebb9@byu.net>
30574
30575         fpurge: migrate into <stdio.h>
30576         * lib/fpurge.h: Delete...
30577         * lib/stdio.in.h (fpurge): ...and declare here, instead.
30578         * lib/fpurge.c (fpurge): Change declaring header.
30579         * modules/fpurge (Files): Drop deleted file.
30580         (Depends-on): Add stdio.
30581         (configure.ac): Set witness.
30582         * modules/stdio (Makefile.am): Support fpurge macros.
30583         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
30584         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
30585         * lib/fflush.c: Update client.
30586         * tests/test-fpurge.c: Likewise.
30587         * NEWS: Mention the change.
30588
30589 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
30590
30591         * lib/argp-version-etc.c (program_authors): Add const
30592         qualifier.
30593         * lib/version-etc.c: Fix typos in the comments.
30594         * modules/argp-version-etc: Depends on version-etc.
30595
30596 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
30597
30598         argp-version-etc: new module.
30599
30600         * lib/argp-version-etc.c: New file.
30601         * lib/argp-version-etc.h: New file.
30602         * modules/argp-version-etc: New file.
30603         * modules/argp-version-etc-tests: New file.
30604         * tests/test-argp-version-etc.c: New test.
30605         * tests/test-argp-version-etc-1.sh: New test.
30606
30607 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
30608
30609         Provide additional interfaces and documentation for version-etc
30610         module.
30611
30612         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
30613         interfaces.
30614         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
30615         prototypes.
30616
30617 2009-06-24  Bruno Haible  <bruno@clisp.org>
30618
30619         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
30620         HAVE_LIB${NAME} macro.
30621         Reported by Sam Steingold <sds@gnu.org>.
30622
30623 2009-06-23  Simon Josefsson  <simon@josefsson.org>
30624
30625         * modules/hash-tests (test_hash_LDADD): Link to libintl when
30626         needed.
30627
30628 2009-06-21  Bruno Haible  <bruno@clisp.org>
30629
30630         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
30631         work.
30632         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
30633         together with LIB${NAME}, LTLIB${NAME}.
30634         Reported by Sam Steingold <sds@gnu.org>.
30635
30636 2009-06-20  Jim Meyering  <meyering@redhat.com>
30637
30638         tests: make sc_require_test_exit_idiom more generic
30639         * top/maint.mk (Exit_witness_file): New overridable variable.
30640         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
30641         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
30642
30643 2009-06-19  Jim Meyering  <meyering@redhat.com>
30644
30645         hash: reverse order of src/dst parameters in an internal interface
30646         * lib/hash.c (transfer_entries): Reverse order of parameters to
30647         put DST before SRC.  Adjust callers.
30648
30649         tests: test-hash: avoid wholesale duplication
30650         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
30651         Instead, use a loop and add a single conditional.
30652
30653         tests: test-hash: allow seed selection via a command line argument
30654         * tests/test-hash.c (get_seed): New function.
30655         (main): Use it.
30656
30657 2009-06-19  Eric Blake  <ebb9@byu.net>
30658
30659         hash: avoid memory leak on allocation failure
30660         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
30661         failure.  Factor repeated algorithm...
30662         (transfer_entries): ...into new helper routine.
30663         (hash_delete): React to hash_rehash return value.
30664
30665         hash: reduce memory pressure in hash_rehash no-op case
30666         * lib/hash.c (next_prime): Avoid overflow.
30667         (hash_initialize): Factor bucket size computation...
30668         (compute_bucket_size): ...into new helper function.
30669         (hash_rehash): Use new function and open coding to reduce memory
30670         pressure, and avoid a memory leak in USE_OBSTACK code.
30671         Reported by Jim Meyering.
30672
30673 2009-06-18  Eric Blake  <ebb9@byu.net>
30674
30675         hash: make rotation more obvious
30676         * modules/hash (Depends-on): Add bitrotate and stdint.
30677         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
30678         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
30679         (SIZE_MAX): Rely on headers for definition.
30680         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
30681         (raw_hasher): Use rotr_sz.
30682         Suggested by Jim Meyering.
30683
30684         hash: fix memory leak in last patch
30685         * lib/hash.c (hash_rehash): Avoid memory leak.
30686
30687         hash: avoid no-op rehashing
30688         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
30689
30690         hash: provide default callback functions
30691         * lib/hash.c (raw_hasher, raw_comparator): New functions.
30692         (hash_initialize): Use them as defaults.
30693         * tests/test-hash.c (main): Test this.
30694
30695         hash: minor optimization
30696         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
30697         when possible.
30698         (hash_initialize): Document this promise.
30699         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
30700         * tests/test-hash.c (hash_compare_strings): Test this.
30701
30702 2009-06-18  Bruno Haible  <bruno@clisp.org>
30703
30704         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
30705         going to be replaced anyway.
30706
30707 2009-06-18  Bruno Haible  <bruno@clisp.org>
30708
30709         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
30710         in one place.
30711         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
30712         be replaced anyway.
30713
30714 2009-06-18  Eric Blake  <ebb9@byu.net>
30715
30716         hash: check for resize before insertion
30717         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
30718         threshold before insertion, so that a pathological hash_rehash
30719         that fills every bucket can still trigger another rehash.
30720
30721 2009-06-18  Jim Meyering  <meyering@redhat.com>
30722
30723         hash-tests: add a loop around the small tests
30724         * tests/test-hash.c (main): Repeat small tests with selected
30725         small initial table sizes.
30726
30727 2009-06-17  Eric Blake  <ebb9@byu.net>
30728
30729         hash: minor cleanups
30730         * lib/hash.h (hash_entry): Make opaque, by moving...
30731         * lib/hash.c (hash_entry): ...here.
30732         (hash_insert): Clarify restrictions on what can be inserted.
30733         (hash_get_next): Clarify when it is safe to remove an element
30734         during traversal.
30735         (check_tuning): Skip verification when tuning is known safe.
30736         (hash_initialize): Clarify restrictions on tuning.
30737
30738 2009-06-17  Jim Meyering  <jim@meyering.net>
30739         and Eric Blake  <ebb9@byu.net>
30740
30741         hash-tests: new module
30742         * modules/hash-tests: New file.
30743         * tests/test-hash.c: New file.
30744
30745 2009-06-17  Eric Blake  <ebb9@byu.net>
30746
30747         strstr-simple: document new module
30748         * MODULES.html.sh: Document new module.
30749
30750         strstr, strcasestr: replace on platforms with broken memchr
30751         * modules/strstr: Split into...
30752         * modules/strstr-simple: ...new module that does not care about
30753         performance, but does care about glibc bug.
30754         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
30755         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
30756         if platform memchr is broken, per Debian bug 521737.
30757         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
30758         memchr.
30759         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
30760         * doc/posix-functions/strstr.texi (strstr): Document the fix.
30761         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
30762         * modules/mountlist (Depends-on): Add strstr-simple.
30763         * modules/gen-uni-tables (Depends-on): Likewise.
30764         * modules/argz (Depends-on): Add strstr.
30765
30766 2009-06-17  Bruno Haible  <bruno@clisp.org>
30767
30768         * modules/posix_spawn-internal (Depends-on): Add errno.
30769
30770 2009-06-17  Bruno Haible  <bruno@clisp.org>
30771
30772         Define missing ESTALE on Interix 3.5.
30773         * lib/errno.in.h (ESTALE): Assign a value if missing.
30774         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
30775         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
30776         missing.
30777         * doc/posix-headers/errno.texi: Mention the Interix bug.
30778         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
30779
30780 2009-06-15  Eric Blake  <ebb9@byu.net>
30781
30782         memchr, memchr2: add valgrind exception
30783         * lib/memchr.valgrind: New file.
30784         * lib/memchr2.valgrind: New file.
30785         * modules/memchr (Files): Distribute valgrind file.
30786         * modules/memchr2 (Files): Likewise.
30787
30788         docs: memchr is no longer obsolete
30789         * MODULES.html.sh: Move memchr from obsolete to string.h section.
30790         * lib/string.in.h (memchr): Simplify logic.
30791
30792 2009-06-14  Jim Meyering  <meyering@redhat.com>
30793
30794         link-follow: fix the "checking..." message to not mention trailing slash
30795         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
30796         never considered trailing slashes.
30797
30798 2009-06-14  Bruno Haible  <bruno@clisp.org>
30799
30800         * m4/memchr.m4: Mention also the bug on IA-64.
30801         * doc/posix-functions/memchr.texi: Likewise.
30802
30803 2009-06-12  Eric Blake  <ebb9@byu.net>
30804
30805         memchr: detect broken x86_64 and alpha implementations
30806         * modules/memchr-tests (Depends-on): Move mmap detection...
30807         * modules/memchr (Depends-on): ...here.
30808         (configure.ac): Set indicator.
30809         * lib/string.in.h (memchr): Declare replacement.
30810         * modules/string (Makefile.am): Trigger replacement.
30811         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
30812         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
30813         bugs.
30814         * doc/posix-functions/memchr.texi (memchr): Document the bug.
30815         * modules/getpagesize (License): Relax license.
30816
30817 2009-06-11  Bruno Haible  <bruno@clisp.org>
30818
30819         * lib/idpriv.h: Add more references.
30820
30821 2009-06-08  Bruno Haible  <bruno@clisp.org>
30822
30823         Tests for module 'idpriv-droptemp'.
30824         * modules/idpriv-droptemp-tests: New file.
30825         * tests/test-idpriv-droptemp.sh: New file.
30826         * tests/test-idpriv-droptemp.su.sh: New file.
30827         * tests/test-idpriv-droptemp.c: New file.
30828
30829         New module 'idpriv-droptemp'.
30830         * lib/idpriv-droptemp.c: New file.
30831         * modules/idpriv-droptemp: New file.
30832
30833 2009-06-08  Bruno Haible  <bruno@clisp.org>
30834
30835         Tests for module 'idpriv-drop'.
30836         * modules/idpriv-drop-tests: New file.
30837         * tests/test-idpriv-drop.sh: New file.
30838         * tests/test-idpriv-drop.su.sh: New file.
30839         * tests/test-idpriv-drop.c: New file.
30840
30841         New module 'idpriv-drop'.
30842         * lib/idpriv.h: New file.
30843         * lib-idpriv-drop.c: New file.
30844         * m4/idpriv.m4: New file.
30845         * modules/idpriv-drop: New file.
30846
30847 2009-06-08  Bruno Haible  <bruno@clisp.org>
30848
30849         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
30850         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
30851         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
30852         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
30853         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
30854         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
30855         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
30856
30857 2009-06-08  Eric Blake  <ebb9@byu.net>
30858
30859         test-strstr: use memory fence, when possible
30860         * tests/test-strstr.c (main): Use memory fence, in order to be
30861         more likely to trigger Debian bug 521737.
30862         * modules/strstr-tests (Files): Pull in additional files.
30863
30864         memchr: no longer obsolete, for wider field testing
30865         * modules/memchr (Status, Notice): Delete, this module is no
30866         longer obsolete.
30867         * modules/vasnprintf (Depends-on): Add memchr.
30868
30869 2009-06-07  Jim Meyering  <meyering@redhat.com>
30870
30871         hash: declare some functions with the warn_unused_result attribute
30872         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
30873
30874 2009-06-07  Bruno Haible  <bruno@clisp.org>
30875
30876         * tests/test-alignof.c: Don't test int64_t if it does not exist.
30877         Reported by Eric Blake.
30878
30879 2009-06-06  Eric Blake  <ebb9@byu.net>
30880
30881         test-alignof: fix typo with long double
30882         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
30883         compiler error.
30884
30885 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
30886
30887         Escape non-texinfo { and }s.
30888         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
30889         markup error.
30890
30891 2009-06-04  Jim Meyering  <meyering@redhat.com>
30892
30893         gitlog-to-changelog: don't infloop on an empty commit log
30894         * build-aux/gitlog-to-changelog: Warn about an empty log message.
30895         Reported by Boris Petersen <transacid@centerim.org>.
30896
30897 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
30898
30899         version-etc: extend for packagers
30900         Add three new configure options, intended for packagers:
30901           --with-packager="packager name"
30902           --with-packager-version="packager-specific version"
30903           --with-packager-bug-reports="packager bug reporting"
30904         An example with coreutils:
30905           $ ./configure \
30906             --with-packager=Gentoo \
30907             --with-packager-bug-report=http://bugs.gentoo.org/ \
30908             --with-packager-version="patchset 1.6"
30909           $ ./src/ls --version | head -n2
30910           ls (GNU coreutils) 7.1-dirty
30911           Packaged by Gentoo (patchset 1.6)
30912         Note that the bug reporting info via --help doesn't show up because
30913         coreutils uses its own custom emit_bug_reporting_address() implementation
30914         in src/system.h.  If it didn't, it'd look like:
30915           $ ./src/ls --help | tail -n4
30916           Report bugs to <bug-coreutils@gnu.org>.
30917           Report Gentoo bugs to <http://bugs.gentoo.org/>.
30918           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
30919           General help using GNU software: <http://www.gnu.org/gethelp/>.
30920         * lib/version-etc.c: Print new information, if provided.
30921         * m4/version-etc.m4: New file.
30922         * modules/version-etc (Files): Add m4/version-etc.m4.
30923         (configure.ac): Add gl_VERSION_ETC.
30924
30925 2009-05-31  Bruno Haible  <bruno@clisp.org>
30926
30927         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
30928         and 'int64_t'.
30929         * modules/alignof-tests (Dependencies): Add stdint.
30930         Reported by Eric Blake.
30931
30932 2009-05-31  Bruno Haible  <bruno@clisp.org>
30933
30934         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
30935         restriction due to compiler bugs.
30936         Reported by Eric Blake.
30937
30938 2009-05-31  Simon Josefsson  <simon@josefsson.org>
30939             Bruno Haible  <bruno@clisp.org>
30940
30941         Fix test-alignof failure.
30942         * lib/alignof.h (alignof_slot): New macro.
30943         (alignof_type): New macro, with the same semantics as the previous
30944         'alignof'.
30945         (alignof): Alias to alignof_slot.
30946         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
30947         check that the results are usable as constant expressions.
30948
30949 2009-05-31  Bruno Haible  <bruno@clisp.org>
30950
30951         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
30952         * tests/test-memchr.c (main): Check that memchr does not read past the
30953         first occurrence of the byte.
30954         * tests/test-strstr.c (main): Update comment.
30955         Suggested by Eric Blake.
30956
30957 2009-05-30  Bruno Haible  <bruno@clisp.org>
30958
30959         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
30960         detail how to use dumpbin.
30961         Reported by David Byron <dbyron@dbyron.com>.
30962
30963 2009-06-02  Simon Josefsson  <simon@josefsson.org>
30964
30965         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
30966
30967 2009-06-02  Simon Josefsson  <simon@josefsson.org>
30968
30969         * m4/manywarnings.m4: Add GCC 4.4 warnings.
30970
30971 2009-05-28  Bruno Haible  <bruno@clisp.org>
30972
30973         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
30974         build-aux/ files.
30975
30976 2009-05-28  Simon Josefsson  <simon@josefsson.org>
30977
30978         * gnulib-tool (func_import): Transform license on build-aux/ files too.
30979
30980 2009-05-27  Simon Josefsson  <simon@josefsson.org>
30981
30982         * gnulib-tool (sed_transform_main_lib_file)
30983         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
30984         regexps.
30985
30986 2009-05-26  Simon Josefsson  <simon@josefsson.org>
30987
30988         * tests/test-strstr.c: Add another self-test.
30989         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
30990         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
30991
30992 2009-05-23  Bruno Haible  <bruno@clisp.org>
30993
30994         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
30995         change.
30996
30997 2009-05-21  Bruno Haible  <bruno@clisp.org>
30998
30999         Simplify use of mode_t varargs.
31000         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
31001         uses 'mode_t' or 'int'.
31002         * lib/openat.c (openat): Likewise.
31003         * lib/open-safer.c (open_safer): Likewise.
31004         * m4/mode_t.m4: New file.
31005         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
31006         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
31007         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
31008         * modules/open (Files): Add m4/mode_t.m4.
31009         * modules/openat (Files): Likewise.
31010         * modules/fcntl-safer (Files): Likewise.
31011         Suggested by Eric Blake.
31012
31013 2009-05-21  Pádraig Brady  <P@draigbrady.com>
31014
31015         * doc/glibc-functions/fallocate.texi: New file.
31016         * doc/gnulib.texi: Include it.
31017
31018 2009-05-21  Eric Blake  <ebb9@byu.net>
31019             Bruno Haible  <bruno@clisp.org>
31020
31021         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
31022         invocations.
31023         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
31024
31025 2009-05-21  Eric Blake  <ebb9@byu.net>
31026             Bruno Haible  <bruno@clisp.org>
31027
31028         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
31029         include_next. Fix of 2008-11-20 commit.
31030         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
31031         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
31032         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
31033         NEXT_MATH_H.
31034         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
31035         instead of NEXT_MATH_H.
31036
31037 2009-05-21  Bruno Haible  <bruno@clisp.org>
31038
31039         Avoid redefinition warnings for SIZE_MAX.
31040         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
31041         Reported by Simon Josefsson.
31042
31043 2009-05-21  Bruno Haible  <bruno@clisp.org>
31044
31045         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
31046         AC_CACHE_VAL.
31047
31048 2009-05-20  Bruno Haible  <bruno@clisp.org>
31049
31050         Make zeroptr.h work on mingw.
31051         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
31052         mprotect.
31053         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
31054         * modules/memchr2-tests (configure.ac): Likewise.
31055         * modules/memcmp-tests (configure.ac): Likewise.
31056         * modules/memmem-tests (configure.ac): Likewise.
31057         * modules/memrchr-tests (configure.ac): Likewise.
31058         Reported by Simon Josefsson.
31059
31060 2009-05-20  Simon Josefsson  <simon@josefsson.org>
31061
31062         * tests/test-glob.c: Include string.h for strcmp prototype.
31063
31064 2009-05-20  Simon Josefsson  <simon@josefsson.org>
31065
31066         * modules/getdelim (Depends-on): Add explicit stdint, although it
31067         was implicitly already pulled in via realloc-posix.
31068         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
31069
31070 2009-05-20  Simon Josefsson  <simon@josefsson.org>
31071
31072         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
31073         G. Christensen" <tgc@jupiterrise.com>.
31074         * m4/sys_socket_h.m4: Check for sa_family_t.
31075         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
31076         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
31077         * tests/test-sys_socket.c: Check that sa_family_t works.
31078
31079 2009-05-18  Eric Blake  <ebb9@byu.net>
31080
31081         maint.mk: allow gnulib_dir in VPATH build
31082         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
31083
31084 2009-05-15  Jim Meyering  <meyering@redhat.com>
31085
31086         maint.mk: Give gnulib_dir a default definition.
31087         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
31088         Thus, most packages no longer need to specify this variable in cfg.mk
31089
31090 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
31091
31092         rename.m4: fix typos that would make non-mingw cross-configure fail
31093         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
31094
31095 2009-05-13  Eric Blake  <ebb9@byu.net>
31096
31097         mmap-anon: avoid out-of-order autoconf expansion
31098         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
31099         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
31100         * modules/memchr-tests (Depends-on): Add extensions.
31101         * modules/memchr2-tests (Depends-on): Add extensions.
31102         * modules/memcmp-tests (Depends-on): Add extensions.
31103         * modules/memmem-tests (Depends-on): Add extensions.
31104         * modules/memrchr-tests (Depends-on): Add extensions.
31105
31106 2009-05-13  Bruno Haible  <bruno@clisp.org>
31107
31108         Make some tests ISO C 99 compliant.
31109         * tests/zerosize-ptr.h: New file.
31110         * tests/test-memchr.c: Include zerosize-ptr.h.
31111         (main): Use a zero-size object pointer instead of NULL.
31112         * tests/test-memchr2.c: Include zerosize-ptr.h.
31113         (main): Use a zero-size object pointer instead of NULL.
31114         * tests/test-memcmp.c: Include zerosize-ptr.h.
31115         (main): Use a zero-size object pointer instead of NULL.
31116         * tests/test-memmem.c: Include zerosize-ptr.h.
31117         (main): Use a zero-size object pointer instead of NULL.
31118         * tests/test-memrchr.c: Include zerosize-ptr.h.
31119         (main): Use a zero-size object pointer instead of NULL.
31120         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
31121         m4/mmap-anon.m4.
31122         (Depends-on): Add getpagesize.
31123         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31124         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
31125         m4/mmap-anon.m4.
31126         (Depends-on): Add getpagesize.
31127         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31128         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
31129         m4/mmap-anon.m4.
31130         (Depends-on): Add getpagesize.
31131         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31132         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
31133         m4/mmap-anon.m4.
31134         (Depends-on): Add getpagesize.
31135         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31136         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
31137         m4/mmap-anon.m4.
31138         (Depends-on): Add getpagesize.
31139         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31140
31141 2009-05-12  Bruno Haible  <bruno@clisp.org>
31142
31143         Tests for module 'alignof'.
31144         * modules/alignof-tests: New file.
31145         * tests/test-alignof.c: New file.
31146
31147 2009-05-12  Bruno Haible  <bruno@clisp.org>
31148
31149         Fix alignof macro.
31150         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
31151         vendor compilers that are always correct.
31152
31153 2009-05-12  Bruno Haible  <bruno@clisp.org>
31154
31155         Make the MAP_ANONYMOUS detection work on HP-UX 11.
31156         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
31157         not whether its fully works.
31158
31159 2009-05-12  Bruno Haible  <bruno@clisp.org>
31160
31161         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
31162
31163 2009-05-12  Jim Meyering  <meyering@redhat.com>
31164
31165         * top/maint.mk: Adjust backslash alignment.
31166
31167 2009-05-11  Simon Josefsson  <simon@josefsson.org>
31168
31169         * top/maint.mk: Make $(srcdir)/build-aux configurable.
31170
31171 2009-05-11  Eric Blake  <ebb9@byu.net>
31172
31173         argp: avoid undefined behavior
31174         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
31175         macros.
31176
31177 2009-05-08  Simon Josefsson  <simon@josefsson.org>
31178
31179         * tests/test-vc-list-files-git.sh: Do git config of user.email and
31180         user.name to prevent git commit from complaining.
31181
31182 2009-05-10  Bruno Haible  <bruno@clisp.org>
31183
31184         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
31185         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
31186         it rewrites every file name only once.
31187         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
31188
31189 2009-05-08  Bruno Haible  <bruno@clisp.org>
31190
31191         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
31192         instead of 'max'.
31193
31194 2009-05-08  Simon Josefsson  <simon@josefsson.org>
31195
31196         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
31197         sockaddr_storage test.
31198
31199 2009-05-07  Simon Josefsson  <simon@josefsson.org>
31200
31201         * modules/sys_socket (Makefile.am): Substitute
31202         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
31203         * m4/sys_socket_h.m4: Check for sockaddr_storage.
31204         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
31205         * tests/test-sys_socket.c: Check sockaddr_storage.
31206
31207 2009-05-08  Bruno Haible  <bruno@clisp.org>
31208
31209         New module 'alignof'.
31210         * lib/alignof.h: New file.
31211         * modules/alignof: New file.
31212
31213 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31214             Bruno Haible  <bruno@clisp.org>
31215
31216         Fix test-file-has-acl on FreeBSD.
31217         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
31218         mask is implicitly added.
31219         * tests/test-file-has-acl.c: Include <signal.h>.
31220         (main): Terminate the test after 5 seconds.
31221         * modules/acl-tests (configure.ac): Check for alarm function.
31222
31223 2009-05-04  Bruno Haible  <bruno@clisp.org>
31224
31225         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
31226         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
31227         * modules/errno (configure.ac): Drop AC_REQUIRE.
31228         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
31229         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
31230
31231 2009-05-04  Simon Josefsson  <simon@josefsson.org>
31232
31233         * modules/glob-tests: New module.
31234         * tests/test-glob.c: Add.
31235
31236 2009-05-04  Simon Josefsson  <simon@josefsson.org>
31237
31238         * modules/fnmatch-tests: New module.
31239         * tests/test-fnmatch.c: Add.
31240
31241 2009-05-04  Eric Blake  <ebb9@byu.net>
31242
31243         maint: make the new no-submodule-changes rule VPATH-safe
31244         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
31245
31246 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31247             Bruno Haible  <bruno@clisp.org>
31248
31249         acl: Fix infinite loop on FreeBSD.
31250         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
31251         of return value from acl_get_entry.
31252         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
31253         Likewise.
31254
31255 2009-05-03  Bruno Haible  <bruno@clisp.org>
31256
31257         * lib/acl-internal.h (acl_entries): Clarify return value.
31258         * lib/acl_entries.c (acl_entries): Likewise.
31259
31260 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31261
31262         Bug fix in acl module.
31263         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
31264
31265 2009-05-03  Bruno Haible  <bruno@clisp.org>
31266
31267         Create gperf-generated file in the source dir, not in the build dir.
31268         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
31269         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
31270         * modules/unicase/locale-language (unicase/locale-languages.h):
31271         Likewise.
31272         * modules/unicase/special-casing (unicase/special-casing-table.h):
31273         Likewise.
31274         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
31275         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
31276         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
31277         Reported by Ralf Wildenhues.
31278
31279 2009-05-03  Bruno Haible  <bruno@clisp.org>
31280
31281         * modules/fnmatch (Description, configure.ac): Taken from
31282         fnmatch-posix.
31283         * modules/fnmatch-posix: Turn into a symbolic reference to the
31284         'fnmatch' module, and deprecate.
31285         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
31286
31287 2009-05-03  Bruno Haible  <bruno@clisp.org>
31288
31289         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
31290         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
31291         Reported by Ralf Wildenhues.
31292
31293 2009-05-04  Simon Josefsson  <simon@josefsson.org>
31294
31295         * m4/fnmatch.m4: Fix fnmatch re-define.
31296
31297 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31298
31299         priv-set: new module and tests; adapt write-any-file
31300         * lib/priv-set.c: New file.
31301         * lib/priv-set.h: New file.
31302         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
31303         * lib/write-any-file.c: Simplify by using priv-set module.
31304         * m4/priv-set.m4: New file.
31305         * modules/priv-set: New file.
31306         * modules/unlinkdir: Add dependency on priv-set module.
31307         * modules/write-any-file: Likewise.
31308
31309         Tests for module 'priv-set'.
31310         * modules/priv-set-tests: New file.
31311         * tests/test-priv-set.c: New file.
31312
31313 2009-05-03  Jim Meyering  <meyering@redhat.com>
31314             Bruno Haible  <bruno@clisp.org>
31315
31316         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
31317         use the converted UTF-8 variant of the name instead.
31318
31319 2009-05-03  Jim Meyering  <meyering@redhat.com>
31320
31321         tests: tighten some getdate tests
31322         * tests/test-getdate.c (main): Tighten tests: require equality,
31323         not just greater than.  Set TZ envvar to UTC0.
31324
31325 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
31326
31327         getdate: correctly interpret "next monday" when run on a Monday
31328         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
31329         that e.g., "next tues" (when run on a tuesday) results in a date
31330         that is one week in the future, and not today's date.
31331         I.e., add a week when the wday is the same as the current one.
31332         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
31333         and earlier by Martin Bernreuther and Jan Minář.
31334         * tests/test-getdate.c (main): Check that "next DAY" is always in
31335         the future and that "last DAY" is always in the past.
31336
31337 2009-05-02  Jim Meyering  <meyering@redhat.com>
31338
31339         build: ensure that a release build fails when a submodule is unclean
31340         * top/maint.mk (no-submodule-changes): New rule.
31341         (alpha beta major): Depend on it.
31342
31343 2009-05-02  Bruno Haible  <bruno@clisp.org>
31344
31345         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
31346         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
31347         shell variable gl_fnmatch_required to detect which variant is
31348         requested.
31349         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
31350         gl_FUNC_FNMATCH_POSIX.
31351         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
31352         exclude fnmatch-posix.
31353
31354 2009-05-02  Bruno Haible  <bruno@clisp.org>
31355
31356         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
31357         * modules/mbsrtowcs (License): Change to LGPLv2+.
31358         * modules/strnlen1 (License): Likewise.
31359         Reported by Simon Josefsson.
31360
31361 2009-05-02  Bruno Haible  <bruno@clisp.org>
31362
31363         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
31364         "cross".
31365         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
31366         gnulib-tool was called with option --source-base=lib.
31367
31368 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31369
31370         Use automake *-local hooks without commands, for extensibility.
31371         * modules/localcharset (Makefile.am): Rename install-exec-local
31372         rule to install-exec-localcharset, and make it a prerequisite of
31373         install-exec-local.  Likewise, rename the uninstall-local rule to
31374         uninstall-localcharset, and make it a prerequisite of the former.
31375
31376 2009-05-01  Bruno Haible  <bruno@clisp.org>
31377
31378         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
31379         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
31380         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
31381         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
31382         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
31383         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
31384         m4/locale-zh.m4, m4/codeset.m4.
31385
31386         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
31387         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
31388         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
31389         m4/locale-zh.m4.
31390
31391         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
31392         REPLACE_WCRTOMB if mbstate_t must be replaced.
31393         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
31394         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
31395
31396 2009-05-01  Bruno Haible  <bruno@clisp.org>
31397
31398         Avoid compiler warnings when redefining macros defined by <libintl.h>.
31399         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
31400         dngettext, dcngettext, textdomain, bindtextdomain,
31401         bind_textdomain_codeset): Undefine before redefining.
31402
31403 2009-04-30  Bruno Haible  <bruno@clisp.org>
31404
31405         Fix bug introduced on 2009-04-25.
31406         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
31407         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
31408         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
31409         is defined.
31410         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
31411         is defined.
31412         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
31413         is defined.
31414         Reported by Elbert_Pol <elbert.pol@gmail.com>.
31415
31416 2009-04-28  Bruno Haible  <bruno@clisp.org>
31417
31418         Comment tweaks.
31419         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
31420         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
31421         * lib/unicase.h (u*_casexfrm): Likewise.
31422         Reported by Paolo Bonzini.
31423
31424 2009-04-28  Bruno Haible  <bruno@clisp.org>
31425
31426         Fix a compilation error.
31427         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
31428         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
31429         Reported by Jim Meyering.
31430
31431 2009-04-27  Bruno Haible  <bruno@clisp.org>
31432
31433         New module 'libunistring'.
31434         * modules/libunistring: New file.
31435         * m4/libunistring.m4: New file.
31436         * MODULES.html.sh (Unicode string functions): Add it.
31437
31438 2009-04-27  Eric Blake  <ebb9@byu.net>
31439
31440         maint.mk: allow package-specific header to provide <config.h>
31441         * top/maint.mk (sc_require_config_h): New variable.
31442         (sc_require_config_h, sc_require_config_h_first): Use it.
31443
31444 2009-04-27  Simon Josefsson  <simon@josefsson.org>
31445
31446         * top/maint.mk (sc_avoid_if_before_free): Except
31447         useless-if-before-free script.
31448
31449 2009-04-27  Eric Blake  <ebb9@byu.net>
31450
31451         maintainer-makefile: depend on all required helper scripts
31452         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
31453         useless-if-before-free.
31454         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
31455         version, rather than assuming gnulib checkout is available.
31456         Reported by Simen Josefsson.
31457
31458 2009-04-26  Bruno Haible  <bruno@clisp.org>
31459
31460         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
31461         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
31462         "../" or "..".
31463
31464 2009-04-26  Bruno Haible  <bruno@clisp.org>
31465
31466         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
31467         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
31468         AC_LIB_HAVE_LINKFLAGS.
31469
31470 2009-04-26  Bruno Haible  <bruno@clisp.org>
31471
31472         Simplify calling convention of u*_conv_from_encoding.
31473         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
31474         u32_conv_from_encoding): Expect a resultbuf argument and return the
31475         result directly as a pointer.
31476         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
31477         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
31478         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
31479         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
31480         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
31481         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
31482         Update.
31483         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
31484         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
31485         * lib/vasnprintf.c (VASNPRINTF): Update.
31486         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
31487         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
31488         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
31489         * NEWS: Mention the change.
31490
31491 2009-04-26  Bruno Haible  <bruno@clisp.org>
31492
31493         Simplify calling convention of u*_conv_to_encoding.
31494         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
31495         u32_conv_to_encoding): Expect a resultbuf argument and return the
31496         result directly as a pointer.
31497         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
31498         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
31499         freeing scaled_offsets if mem_iconveha failed.
31500         * lib/unicase/u-casexfrm.h (FUNC): Update.
31501         * lib/uninorm/u-normxfrm.h (FUNC): Update.
31502         * lib/vasnprintf.c (VASNPRINTF): Update.
31503         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
31504         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
31505         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
31506         * NEWS: Mention the change.
31507
31508 2009-04-26  Bruno Haible  <bruno@clisp.org>
31509
31510         Avoid test failures on AIX and OSF/1.
31511         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
31512         malloc(0).
31513         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
31514         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
31515         Likewise.
31516         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
31517         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
31518         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
31519         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
31520         * doc/posix-functions/malloc.texi: Document the portability problem
31521         related to malloc(0).
31522
31523 2009-04-26  Bruno Haible  <bruno@clisp.org>
31524
31525         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
31526         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
31527         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
31528
31529 2009-04-25  Bruno Haible  <bruno@clisp.org>
31530
31531         Avoid link error when creating a namespace clean library.
31532         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
31533         as macro with arguments if already defined as an alias.
31534         * lib/signbitf.c (gl_signbitf): Don't undefine.
31535         * lib/signbitd.c (gl_signbitd): Don't undefine.
31536         * lib/signbitl.c (gl_signbitl): Don't undefine.
31537
31538 2009-04-25  Jim Meyering  <meyering@redhat.com>
31539
31540         vc-list-files: fix another quoting bug
31541         * build-aux/vc-list-files: Avoid sed backslash expansion
31542         of pathological directory names.
31543
31544 2009-04-25  Eric Blake  <ebb9@byu.net>
31545
31546         vc-list-files: fix shell quoting error
31547         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
31548         timestamp.
31549
31550 2009-04-25  Jim Meyering  <meyering@redhat.com>
31551
31552         vc-list-files: restore lost functionality with subdir argument
31553         * build-aux/vc-list-files: When given a non-"." sub-directory
31554         argument, substitute the $dir/ prefix back onto each resulting name.
31555         Otherwise, coreutils' root_tests check would fail.
31556
31557 2009-04-24  Eric Blake  <ebb9@byu.net>
31558
31559         vc-list-files: ignore git symlinks
31560         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
31561         than ls-files, to ignore git symlinks.
31562
31563         maint.mk: import improvements from m4
31564         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
31565         (move_if_change): Delete unused macro.
31566         (news-date-check, vc-diff-check): Support VPATH builds.
31567         (announcement): Likewise.  Split --bootstrap-tools list...
31568         (boostrap-tools): ...into separate list, which can be overridden
31569         in cfg.mk.
31570         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
31571         requiring dependency on useless-if-before-free module.
31572         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
31573         Support VPATH builds.
31574
31575 2009-04-24  Jim Meyering  <meyering@redhat.com>
31576
31577         maint.mk: remove coreutils-specific rules and variables
31578         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
31579         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
31580         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
31581
31582         maint.mk: remove obsolete rule
31583         * top/maint.mk (rel-check): Remove rule.
31584         (WGET, WGETFLAGS): Remove now-unused variables.
31585
31586 2009-04-24  Simon Josefsson  <simon@josefsson.org>
31587
31588         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
31589         consistency.
31590
31591         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
31592         '$(PATH_SEPARATOR)' instead of ':'.
31593
31594 2009-04-24  Simon Josefsson  <simon@josefsson.org>
31595
31596         * lib/getopt1.c (main): Use 'const' for static array.
31597
31598 2009-04-24  Simon Josefsson  <simon@josefsson.org>
31599
31600         * top/maint.mk: Sync with coreutils.
31601         * NEWS: Explain incompatibilities.
31602
31603 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31604             Bruno Haible  <bruno@clisp.org>
31605
31606         Fix cross-compilation results.
31607         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
31608         statement, as third argument of AC_TRY_RUN.
31609         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
31610         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
31611         Likewise.
31612         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
31613         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
31614         Likewise.
31615         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
31616         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
31617         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
31618
31619 2009-04-20  Bruno Haible  <bruno@clisp.org>
31620
31621         Avoid test failure on mingw.
31622         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
31623
31624 2009-04-20  Bruno Haible  <bruno@clisp.org>
31625
31626         Avoid compilation error on mingw.
31627         * modules/localename-tests (Depends-on): Add locale.
31628
31629 2009-04-19  Bruno Haible  <bruno@clisp.org>
31630
31631         Support for building a shared library on Windows platforms.
31632         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
31633         (main): Test the presence of UNINORM_NFC here.
31634         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
31635         (main): Test the presence of UNINORM_NFD here.
31636         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
31637         (main): Test the presence of UNINORM_NFKC here.
31638         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
31639         (main): Test the presence of UNINORM_NFKD here.
31640
31641 2009-04-19  Bruno Haible  <bruno@clisp.org>
31642
31643         Avoid a compiler warning.
31644         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
31645         Change type of variable 'sequence'.
31646
31647 2009-04-19  Bruno Haible  <bruno@clisp.org>
31648
31649         * modules/configmake (Makefile.am): When the contents of configmake.h
31650         does not change, arrange to preserve its modification time.
31651
31652 2009-04-17  Simon Josefsson  <simon@josefsson.org>
31653
31654         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
31655         gettext domain.
31656
31657 2009-04-16  Jim Meyering  <meyering@redhat.com>
31658
31659         useless-if-before-free: improve conversion code
31660         * build-aux/useless-if-before-free: Adjust code-in-comment to match
31661         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
31662
31663 2009-04-14  Bruno Haible  <bruno@clisp.org>
31664
31665         * modules/fcntl (Depends-on): Add extensions.
31666         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
31667
31668 2009-04-12  Ben Pfaff  <blp@gnu.org>
31669
31670         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
31671         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
31672
31673 2009-03-20  Ben Pfaff  <blp@gnu.org>
31674
31675         Make rename replace existing destinations on Windows.
31676         * m4/rename.m4: Add test for Mingw.
31677         * lib/rename.c: Add rename replacement that uses MoveFileEx with
31678         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
31679         * doc/posix-functions/rename.texi: Document.
31680
31681 2009-04-10  Bruno Haible  <bruno@clisp.org>
31682
31683         New include file "iconveh.h".
31684         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
31685         * lib/striconveh.h: Include it.
31686         (enum iconv_ilseq_handler): Remove definition.
31687         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
31688         striconveh.h.
31689         * lib/striconveha.c: Include striconveh.h.
31690         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
31691         * modules/striconveh (Files): Add lib/iconveh.h.
31692         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
31693         lib/striconveh.h.
31694
31695 2009-04-10  Bruno Haible  <bruno@clisp.org>
31696
31697         * lib/uniconv.h: Update comment.
31698
31699 2009-04-10  Bruno Haible  <bruno@clisp.org>
31700
31701         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
31702         always.
31703         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
31704         * lib/unistr/u16-mbtouc-aux.c: Likewise.
31705         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
31706         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
31707         "unistring-notinline.h", so that the function gets defined always.
31708         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
31709         * lib/unistr/u8-uctomb.c: Likewise.
31710         * lib/unistr/u16-mbtouc.c: Likewise.
31711         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
31712         * lib/unistr/u16-uctomb.c: Likewise.
31713         * lib/unistr/u32-mbtouc.c: Likewise.
31714         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
31715         * lib/unistr/u32-uctomb.c: Likewise.
31716
31717 2009-04-10  Bruno Haible  <bruno@clisp.org>
31718
31719         Mark 'utime' obsolete.
31720         * modules/utime (Status, Notice): New sections.
31721         Suggested by Jim Meyering.
31722
31723         Fix cross-compile guess for utime test.
31724         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
31725         autoconf.
31726         * doc/posix-functions/utime.texi: Give more precisions.
31727         Reported by Jan <ipif@ymail.com>.
31728
31729 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
31730
31731         filevercmp: correct today's change
31732         * lib/filevercmp.c: Also handle coreutils' test inputs.
31733         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
31734
31735         Fix regression in 'filevercmp' module. Thanks Sven Joachim
31736         for reporting it.
31737         * lib/filevercmp.c: Special handle for "", "." and "..".
31738         * tests/test-filevercmp.c: Enlarge the set suite.
31739
31740 2009-04-07  Jim Meyering  <meyering@redhat.com>
31741
31742         useless-if-before-free: show how to remove braced useless free, too
31743         * build-aux/useless-if-before-free: still only in a comment, though.
31744
31745 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
31746
31747         maint.mk: import changes to syntax-check macros from coreutils
31748         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
31749         Use them in the relevant macros.
31750
31751 2009-04-06  Bruno Haible  <bruno@clisp.org>
31752
31753         Fix unportable use of bit-fields.
31754         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
31755         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
31756         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
31757
31758 2009-04-06  Bruno Haible  <bruno@clisp.org>
31759
31760         Avoid test failures on AIX and OSF/1.
31761         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
31762         that malloc(0) = NULL.
31763         * tests/unicase/test-u8-tolower.c (check): Likewise.
31764         * tests/unicase/test-u8-totitle.c (check): Likewise.
31765         * tests/unicase/test-u8-toupper.c (check): Likewise.
31766         * tests/unicase/test-u16-casefold.c (check): Likewise.
31767         * tests/unicase/test-u16-tolower.c (check): Likewise.
31768         * tests/unicase/test-u16-totitle.c (check): Likewise.
31769         * tests/unicase/test-u16-toupper.c (check): Likewise.
31770         * tests/unicase/test-u32-casefold.c (check): Likewise.
31771         * tests/unicase/test-u32-tolower.c (check): Likewise.
31772         * tests/unicase/test-u32-totitle.c (check): Likewise.
31773         * tests/unicase/test-u32-toupper.c (check): Likewise.
31774         * tests/uninorm/test-u8-nfc.c (check): Likewise.
31775         * tests/uninorm/test-u8-nfd.c (check): Likewise.
31776         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
31777         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
31778         * tests/uninorm/test-u16-nfc.c (check): Likewise.
31779         * tests/uninorm/test-u16-nfd.c (check): Likewise.
31780         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
31781         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
31782         * tests/uninorm/test-u32-nfc.c (check): Likewise.
31783         * tests/uninorm/test-u32-nfd.c (check): Likewise.
31784         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
31785         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
31786
31787 2009-04-05  Bruno Haible  <bruno@clisp.org>
31788
31789         Work around an autoconf limitation.
31790         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
31791         comment line if it would be longer than 3 KB.
31792
31793 2009-04-05  Bruno Haible  <bruno@clisp.org>
31794
31795         Avoid test failure with libiconv-1.13.
31796         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
31797         of the expected test results.
31798
31799 2009-04-05  Bruno Haible  <bruno@clisp.org>
31800
31801         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
31802         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
31803         that it should be installed.
31804
31805 2009-04-05  Bruno Haible  <bruno@clisp.org>
31806
31807         * gnulib-tool: New option --copy-file.
31808         (func_usage): Document it.
31809         (func_dest_tmpfilename): Moved out of func_import.
31810         (func_add_file, func_update_file): New functions, extracted from
31811         func_import.
31812         (func_import): Update.
31813
31814 2009-04-05  Karl Berry  <karl@gnu.org>
31815
31816         * README: prominently mention gnulib-tool.
31817         Rearrange sections so getting the code is near the top.
31818
31819 2009-04-05  Bruno Haible  <bruno@clisp.org>
31820
31821         * lib/unicase.h: Mention u*_cmp2.
31822         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
31823         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
31824         * lib/unicase/ulc-casecmp.c: Likewise.
31825         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
31826         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
31827         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
31828         unistr/u8-cmp.
31829         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
31830         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
31831         unistr/u16-cmp.
31832         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
31833         unistr/u32-cmp.
31834
31835         * lib/uninorm.h: Mention u*_cmp2.
31836         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
31837         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
31838         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
31839         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
31840         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
31841         unistr/u8-cmp.
31842         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
31843         unistr/u16-cmp.
31844         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
31845         unistr/u32-cmp.
31846
31847         New module 'unistr/u32-cmp2'.
31848         * lib/unistr/u32-cmp2.c: New file.
31849         * modules/unistr/u32-cmp2: New file.
31850
31851         New module 'unistr/u16-cmp2'.
31852         * lib/unistr/u16-cmp2.c: New file.
31853         * modules/unistr/u16-cmp2: New file.
31854
31855         New module 'unistr/u8-cmp2'.
31856         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
31857         * lib/unistr/u8-cmp2.c: New file.
31858         * lib/unistr/u-cmp2.h: New file.
31859         * modules/unistr/u8-cmp2: New file.
31860
31861 2009-04-05  Bruno Haible  <bruno@clisp.org>
31862
31863         * lib/unictype.h (uc_property_is_valid): New macro.
31864         * tests/unictype/test-pr_byname.c (main): Use it.
31865
31866         * lib/unistr.h: Doc fixes.
31867         * lib/uniconv.h: Doc fixes.
31868         * lib/unictype.h: Doc fixes.
31869
31870 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
31871
31872         Port coreutils 7.2 to Solaris 8.
31873
31874         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
31875         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
31876         for Solaris 8.  This is a bit of a hack, as it means it's the
31877         caller's responsibility to add -lnsl if needed, but most likely it
31878         won't be needed since only getaddrinfo uses this and getaddrinfo
31879         isn't needed on Solaris 8.
31880
31881         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
31882         problem to Solaris 8 encountered with coreutils 7.2, which
31883         resulted in a message "fnmatch.c:292: warning: passing argument 4
31884         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
31885         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
31886
31887 2009-04-03  Simon Josefsson  <simon@josefsson.org>
31888
31889         * m4/ld-version-script.m4: Add FIXME comment.
31890
31891 2009-04-02  Simon Josefsson  <simon@josefsson.org>
31892
31893         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
31894         SOVERSION variable.
31895
31896 2009-04-02  Bruno Haible  <bruno@clisp.org>
31897
31898         * Makefile (info, html, dvi, pdf): Combine the rules.
31899         Suggested by Jim Meyering.
31900
31901 2009-04-01  Bruno Haible  <bruno@clisp.org>
31902
31903         * Makefile (info, html, dvi, pdf): New targets.
31904         Reported by Reuben Thomas <rrt@sc3d.org>.
31905
31906 2009-04-01  Bruno Haible  <bruno@clisp.org>
31907
31908         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
31909         can be put into PATH.
31910         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
31911
31912 2009-04-01  Bruno Haible  <bruno@clisp.org>
31913
31914         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
31915
31916 2009-04-01  Bruno Haible  <bruno@clisp.org>
31917
31918         Rename module 'visibility'.
31919         * modules/lib-symbol-visibility: Renamed from modules/visibility.
31920         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
31921         * doc/gnulib.texi: Update.
31922         * MODULES.html.sh (Misc): Update.
31923         * NEWS: Mention the change.
31924
31925 2009-04-01  Simon Josefsson  <simon@josefsson.org>
31926
31927         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
31928         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
31929         Eric Blake <ebb9@byu.net> for review.
31930         * MODULES.html.sh: Add lib-msvc-compat.
31931         * doc/gnulib.texi: Link to new section.
31932         * m4/ld-output-def.m4: New file.
31933         * doc/ld-output-def.texi: New file.
31934
31935 2009-04-01  Simon Josefsson  <simon@josefsson.org>
31936
31937         Rename ld-version-script to lib-symbol-versions.  Suggested by
31938         Bruno Haible <bruno@clisp.org>.
31939         * modules/ld-version-script: Renamed to lib-symbol-versions.
31940         * doc/ld-version-script.texi: Fix module name.
31941         * MODULES.html.sh: Add lib-symbol-versions.
31942
31943 2009-03-31  Simon Josefsson  <simon@josefsson.org>
31944
31945         * modules/u64-tests: New file.
31946         * tests/test-u64.c: New file.
31947
31948 2009-03-04  Simon Josefsson  <simon@josefsson.org>
31949
31950         * MODULES.html.sh: Mention u64.
31951         * modules/u64: New module.
31952         * modules/crypto/sha512: Depend on u64 module instead of providing
31953         u64.h.
31954
31955 2009-03-27  Eric Blake  <ebb9@byu.net>
31956
31957         test-strerror: make debugging EAI_SYSTEM easier
31958         * modules/getaddrinfo-tests (Depends-on): Add strerror.
31959         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
31960         failure was EAI_SYSTEM.
31961
31962 2009-03-25  Bruno Haible  <bruno@clisp.org>
31963
31964         Fix a problem with --enable-relocatable on Solaris 7.
31965         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
31966         since 2008-02-24.
31967
31968 2009-03-25  Eric Blake  <ebb9@byu.net>
31969
31970         test-sockets: avoid gcc warning
31971         * tests/test-sockets.c (main): Silence compiler warning.
31972
31973 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
31974
31975         New modules nproc, pthread, contributed by Glen Lenker.
31976
31977         * MODULES.html.sh: Add pthread, nproc.
31978         * lib/nproc.c: New file.
31979         * lib/nproc.h: New file.
31980         * lib/pthread.in.h: New file.
31981         * m4/pthread.m4: New file.
31982         * modules/nproc: New file.
31983         * modules/pthread: New file.
31984
31985 2009-03-24  Simon Josefsson  <simon@josefsson.org>
31986
31987         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
31988         New variable.
31989
31990 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
31991
31992         filevercmp: handle simple~ and numbered.~3~ backup suffixes
31993         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
31994         * tests/test-filevercmp.c: Add tests for backup suffixes.
31995
31996 2009-03-24  Simon Josefsson  <simon@josefsson.org>
31997
31998         * modules/stdlib (Depends-on): Add stdint, needed when defining
31999         struct random_data on, for example, HP-UX 10.20.  Reported by
32000         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32001
32002 2009-03-24  Simon Josefsson  <simon@josefsson.org>
32003
32004         * lib/readline.c (readline): Call fflush on stdout after printing
32005         prompt.
32006
32007 2009-03-20  Bruno Haible  <bruno@clisp.org>
32008
32009         Remove dependency from 'close' module to -lws2_32 on native Windows.
32010         * lib/close-hook.h: New file.
32011         * lib/close-hook.c: New file.
32012         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
32013         w32sock.h.
32014         (_gl_close_fd_maybe_socket): Remove function.
32015         (rpl_close): Invoke execute_all_close_hooks instead of
32016         _gl_close_fd_maybe_socket.
32017         * lib/sockets.c: Include close-hook.h, w32sock.h.
32018         (close_fd_maybe_socket): New function, essentially from lib/close.c.
32019         (close_sockets_hook): New variable.
32020         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
32021         (gl_sockets_cleanup): Unregister it.
32022         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
32023         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
32024         * modules/close-hook: New file.
32025         * modules/close (Files): Remove lib/w32sock.h.
32026         (Depends-on): Add close-hook.
32027         (Link): Remove section.
32028         * modules/sockets (Files): Add lib/w32sock.h.
32029         (Depends-on): Add close-hook.
32030         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
32031         invocation.
32032         * NEWS: Mention that LIB_CLOSE is gone.
32033
32034 2009-03-23  Eric Blake  <ebb9@byu.net>
32035
32036         signal-tests: test previous patch
32037         * tests/test-signal.c: New file.
32038         * modules/signal-tests: Likewise.
32039
32040         signal.h: always support 'volatile sig_atomic_t'
32041         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
32042         (gl_SIGNAL_H_DEFAULTS): Add a default.
32043         * modules/signal (Makefile.am): Substitute if needed.
32044         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
32045         users can blindly add volatile.
32046         * doc/posix-headers/signal.texi (signal.h): Document it.
32047         Reported by Matthew Woehlke.
32048
32049 2009-03-23  Jim Meyering  <meyering@redhat.com>
32050
32051         pathmax: PATH_MAX: use pathconf only when available
32052         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
32053         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
32054         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
32055         This avoids a link failure in a PSP cross-compilation environment
32056         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
32057
32058         * lib/vasnprintf.c (divide): Fix typo in comment.
32059
32060 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32061
32062         * gnulib-tool (func_filter_filelist): Fix comment.
32063
32064 2009-03-20  Bruno Haible  <bruno@clisp.org>
32065
32066         Make sockets.h self-contained.
32067         * lib/sockets.c: Include sockets.h first.
32068         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
32069
32070 2009-03-19  Eric Blake  <ebb9@byu.net>
32071
32072         doc: mention more functions added in cygwin 1.7.0
32073         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
32074         addition.
32075         * doc/posix-functions/log2f.texi: Likewise.
32076
32077 2009-03-19  Jim Meyering  <meyering@redhat.com>
32078
32079         fsusage: avoid syntax error due to statement-before-declaration
32080         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
32081         after all declarations.  Reported by Matthew Woehlke in
32082         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
32083
32084 2009-03-18  Eric Blake  <ebb9@byu.net>
32085
32086         build-aux/compile: sync from automake
32087         * build-aux/compile: New file, from automake.
32088         * config/srclist.txt: Mention build-aux/compile.
32089
32090 2009-03-17  Bruno Haible  <bruno@clisp.org>
32091
32092         * lib/git-merge-changelog.c: Fix typo in comment.
32093         Reported by Reuben Thomas <rrt@sc3d.org>.
32094
32095 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
32096
32097         * m4/regex.m4: update and improve help for
32098         --without-included-regex.
32099
32100 2009-03-17  Simon Josefsson  <simon@josefsson.org>
32101
32102         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
32103         failure on missing include files.
32104
32105 2009-03-17  Eric Blake  <ebb9@byu.net>
32106
32107         doc: mention more functions added in cygwin 1.7.0
32108         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
32109         addition.
32110         * doc/posix-functions/fwscanf.texi: Likewise.
32111         * doc/posix-functions/swprintf.texi: Likewise.
32112         * doc/posix-functions/swscanf.texi: Likewise.
32113         * doc/posix-functions/vfwprintf.texi: Likewise.
32114         * doc/posix-functions/vfwscanf.texi: Likewise.
32115         * doc/posix-functions/vswprintf.texi: Likewise.
32116         * doc/posix-functions/vswscanf.texi: Likewise.
32117         * doc/posix-functions/vwprintf.texi: Likewise.
32118         * doc/posix-functions/vwscanf.texi: Likewise.
32119         * doc/posix-functions/wcscasecmp.texi: Likewise.
32120         * doc/posix-functions/wcsdup.texi: Likewise.
32121         * doc/posix-functions/wcsftime.texi: Likewise.
32122         * doc/posix-functions/wcsncasecmp.texi: Likewise.
32123         * doc/posix-functions/wprintf.texi: Likewise.
32124         * doc/posix-functions/wscanf.texi: Likewise.
32125         * doc/glibc-functions/gethostbyname2.texi: Likewise.
32126
32127 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32128
32129         maint.mk: really add $(AM_MAKEFLAGS)
32130         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
32131         was inadvertently omitted in the last commit.
32132         Spotted by Bruno Haible.
32133
32134         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
32135         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
32136         $(AM_MAKEFLAGS)' rather than plain `make'.
32137
32138         gnulib-tool: execute $MAKE not make
32139         * gnulib-tool: Default $MAKE to 'make'.
32140         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
32141         than make.  Initialize $MAKE in the do-autobuild script.
32142
32143         gnulib-tool: use $MAKE not make in generated files
32144         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
32145         make, in generated files.  Initialize $MAKE in the do-autobuild
32146         script.
32147
32148         * top/GNUmakefile (_have-git-version-gen): Fix typo.
32149
32150         GNUmakefile: disable parallelism only for multiple, recursive targets
32151         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
32152         additions in the Makefile.
32153         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
32154         by Automake.
32155         (.NOTPARALLEL): Only disable parallel builds if multiple targets
32156         are listed on the command line and at least one of them is
32157         listed in $(ALL_RECURSIVE_TARGETS).
32158
32159 2009-03-14  Bruno Haible  <bruno@clisp.org>
32160
32161         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
32162         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
32163         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
32164         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
32165         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
32166         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
32167         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
32168         unistr/u8-uctomb.
32169         * modules/unistr/u8-strchr (Depends-on): Likewise.
32170         * modules/unistr/u8-strrchr (Depends-on): Likewise.
32171         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
32172         unistr/u16-uctomb.
32173         * modules/unistr/u16-strchr (Depends-on): Likewise.
32174         * modules/unistr/u16-strrchr (Depends-on): Likewise.
32175
32176 2009-03-12  Bruno Haible  <bruno@clisp.org>
32177
32178         Work around select() bug on Interix 3.5.
32179         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
32180         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
32181         * m4/select.m4: New file.
32182         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
32183         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
32184         * modules/select (Files): Add m4/select.m4.
32185         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
32186         * modules/nanosleep (Depends-on): Add select.
32187         * modules/poll (Depends-on): Likewise.
32188         * doc/posix-functions/select.texi: Mention the Interix bug.
32189         Reported by Markus Duft <mduft@gentoo.org>.
32190
32191         * lib/select.c: Renamed from lib/winsock-select.c.
32192         * modules/select (Files): Add lib/select.c, remove
32193         lib/winsock-select.c.
32194         (configure.ac): Update.
32195
32196 2009-03-12  Jim Meyering  <meyering@redhat.com>
32197
32198         avoid gcc warnings about unused macro definitions
32199         * lib/readtokens.c (STREQ): Remove unused definition.
32200         * lib/xmalloc.c (SIZE_MAX): Likewise.
32201         * lib/openat-die.c (N_): Likewise.
32202         * lib/mountlist.c (SIZE_MAX): Remove definition.
32203         Instead, include <stdint.h>.
32204         * lib/readutmp.c: Likewise.
32205         * modules/readutmp (Depends-on): Add stdint.
32206         * modules/mountlist (Depends-on): Add stdint.
32207         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
32208
32209 2009-03-10  Bruno Haible  <bruno@clisp.org>
32210
32211         Tests for module 'mbmemcasecoll'.
32212         * modules/mbmemcasecoll-tests: New file.
32213         * tests/test-mbmemcasecoll1.sh: New file.
32214         * tests/test-mbmemcasecoll2.sh: New file.
32215         * tests/test-mbmemcasecoll3.sh: New file.
32216         * tests/test-mbmemcasecoll.c: New file.
32217
32218         New module 'mbmemcasecoll'.
32219         * lib/mbmemcasecoll.h: New file.
32220         * lib/mbmemcasecoll.c: New file.
32221         * modules/mbmemcasecoll: New file.
32222
32223         * tests/test-mbmemcasecmp.h: New file, extracted from
32224         tests/test-mbmemcasecmp.c.
32225         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
32226         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
32227         (main): Update.
32228         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
32229
32230 2009-03-09  Bruno Haible  <bruno@clisp.org>
32231
32232         Tests for module 'mbmemcasecmp'.
32233         * modules/mbmemcasecmp-tests: New file.
32234         * tests/test-mbmemcasecmp1.sh: New file.
32235         * tests/test-mbmemcasecmp2.sh: New file.
32236         * tests/test-mbmemcasecmp3.sh: New file.
32237         * tests/test-mbmemcasecmp.c: New file.
32238
32239         New module 'mbmemcasecmp'.
32240         * lib/mbmemcasecmp.h: New file.
32241         * lib/mbmemcasecmp.c: New file.
32242         * modules/mbmemcasecmp: New file.
32243
32244 2009-03-09  Bruno Haible  <bruno@clisp.org>
32245
32246         Tests for module 'unicase/ulc-casecoll'.
32247         * modules/unicase/ulc-casecoll-tests: New file.
32248         * tests/unicase/test-ulc-casecoll1.sh: New file.
32249         * tests/unicase/test-ulc-casecoll2.sh: New file.
32250         * tests/unicase/test-ulc-casecoll.c: New file.
32251
32252         New module 'unicase/ulc-casecoll'.
32253         * lib/unicase.h (ulc_casecoll): New declaration.
32254         * lib/unicase/ulc-casecoll.c: New file.
32255         * modules/unicase/ulc-casecoll: New file.
32256
32257         New module 'unicase/ulc-casexfrm'.
32258         * lib/unicase.h (ulc_casexfrm): New declaration.
32259         * lib/unicase/ulc-casexfrm.c: New file.
32260         * modules/unicase/ulc-casexfrm: New file.
32261
32262 2009-03-09  Bruno Haible  <bruno@clisp.org>
32263
32264         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
32265         invocations.
32266
32267         * m4/mbscasecmp.m4: Remove file.
32268         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
32269         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
32270
32271         * m4/mbscasestr.m4: Remove file.
32272         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
32273         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
32274
32275         * m4/mbschr.m4: Remove file.
32276         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
32277         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
32278
32279         * m4/mbscspn.m4: Remove file.
32280         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
32281         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
32282
32283         * m4/mbslen.m4: Remove file.
32284         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
32285         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
32286
32287         * m4/mbsncasecmp.m4: Remove file.
32288         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
32289         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
32290
32291         * m4/mbsnlen.m4: Remove file.
32292         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
32293         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
32294
32295         * m4/mbspbrk.m4: Remove file.
32296         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
32297         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
32298
32299         * m4/mbspcasecmp.m4: Remove file.
32300         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
32301         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
32302
32303         * m4/mbsrchr.m4: Remove file.
32304         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
32305         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
32306
32307         * m4/mbssep.m4: Remove file.
32308         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
32309         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
32310
32311         * m4/mbsspn.m4: Remove file.
32312         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
32313         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
32314
32315         * m4/mbsstr.m4: Remove file.
32316         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
32317         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
32318
32319         * m4/mbstok_r.m4: Remove file.
32320         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
32321         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
32322
32323         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
32324
32325         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
32326         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
32327
32328         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
32329
32330 2009-03-08  Bruno Haible  <bruno@clisp.org>
32331
32332         Tests for module 'unicase/ulc-casecmp'.
32333         * modules/unicase/ulc-casecmp-tests: New file.
32334         * tests/unicase/test-ulc-casecmp1.sh: New file.
32335         * tests/unicase/test-ulc-casecmp2.sh: New file.
32336         * tests/unicase/test-ulc-casecmp.c: New file.
32337
32338         New module 'unicase/ulc-casecmp'.
32339         * lib/unicase.h (ulc_casecmp): New declaration.
32340         * lib/unicase/ulc-casecmp.c: New file.
32341         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
32342         'const SRC_UNIT *'.
32343         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
32344         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
32345         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
32346         * modules/unicase/ulc-casecmp: New file.
32347
32348         Tests for module 'unicase/u32-is-cased'.
32349         * modules/unicase/u32-is-cased-tests: New file.
32350         * tests/unicase/test-u32-is-cased.c: New file.
32351
32352         Tests for module 'unicase/u16-is-cased'.
32353         * modules/unicase/u16-is-cased-tests: New file.
32354         * tests/unicase/test-u16-is-cased.c: New file.
32355
32356         Tests for module 'unicase/u8-is-cased'.
32357         * modules/unicase/u8-is-cased-tests: New file.
32358         * tests/unicase/test-u8-is-cased.c: New file.
32359         * tests/unicase/test-is-cased.h: New file.
32360
32361         New module 'unicase/u32-is-cased'.
32362         * lib/unicase/u32-is-cased.c: New file.
32363         * modules/unicase/u32-is-cased: New file.
32364
32365         New module 'unicase/u16-is-cased'.
32366         * lib/unicase/u16-is-cased.c: New file.
32367         * modules/unicase/u16-is-cased: New file.
32368
32369         New module 'unicase/u8-is-cased'.
32370         * lib/unicase/u8-is-cased.c: New file.
32371         * lib/unicase/u-is-cased.h: New file.
32372         * modules/unicase/u8-is-cased: New file.
32373
32374         Tests for module 'unicase/u32-is-casefolded'.
32375         * modules/unicase/u32-is-casefolded-tests: New file.
32376         * tests/unicase/test-u32-is-casefolded.c: New file.
32377
32378         Tests for module 'unicase/u16-is-casefolded'.
32379         * modules/unicase/u16-is-casefolded-tests: New file.
32380         * tests/unicase/test-u16-is-casefolded.c: New file.
32381
32382         Tests for module 'unicase/u8-is-casefolded'.
32383         * modules/unicase/u8-is-casefolded-tests: New file.
32384         * tests/unicase/test-u8-is-casefolded.c: New file.
32385         * tests/unicase/test-is-casefolded.h: New file.
32386
32387         New module 'unicase/u32-is-casefolded'.
32388         * lib/unicase/u32-is-casefolded.c: New file.
32389         * modules/unicase/u32-is-casefolded: New file.
32390
32391         New module 'unicase/u16-is-casefolded'.
32392         * lib/unicase/u16-is-casefolded.c: New file.
32393         * modules/unicase/u16-is-casefolded: New file.
32394
32395         New module 'unicase/u8-is-casefolded'.
32396         * lib/unicase/u8-is-casefolded.c: New file.
32397         * modules/unicase/u8-is-casefolded: New file.
32398
32399         Tests for module 'unicase/u32-is-titlecase'.
32400         * modules/unicase/u32-is-titlecase-tests: New file.
32401         * tests/unicase/test-u32-is-titlecase.c: New file.
32402
32403         Tests for module 'unicase/u16-is-titlecase'.
32404         * modules/unicase/u16-is-titlecase-tests: New file.
32405         * tests/unicase/test-u16-is-titlecase.c: New file.
32406
32407         Tests for module 'unicase/u8-is-titlecase'.
32408         * modules/unicase/u8-is-titlecase-tests: New file.
32409         * tests/unicase/test-u8-is-titlecase.c: New file.
32410         * tests/unicase/test-is-titlecase.h: New file.
32411
32412         New module 'unicase/u32-is-titlecase'.
32413         * lib/unicase/u32-is-titlecase.c: New file.
32414         * modules/unicase/u32-is-titlecase: New file.
32415
32416         New module 'unicase/u16-is-titlecase'.
32417         * lib/unicase/u16-is-titlecase.c: New file.
32418         * modules/unicase/u16-is-titlecase: New file.
32419
32420         New module 'unicase/u8-is-titlecase'.
32421         * lib/unicase/u8-is-titlecase.c: New file.
32422         * modules/unicase/u8-is-titlecase: New file.
32423
32424         Tests for module 'unicase/u32-is-lowercase'.
32425         * modules/unicase/u32-is-lowercase-tests: New file.
32426         * tests/unicase/test-u32-is-lowercase.c: New file.
32427
32428         Tests for module 'unicase/u16-is-lowercase'.
32429         * modules/unicase/u16-is-lowercase-tests: New file.
32430         * tests/unicase/test-u16-is-lowercase.c: New file.
32431
32432         Tests for module 'unicase/u8-is-lowercase'.
32433         * modules/unicase/u8-is-lowercase-tests: New file.
32434         * tests/unicase/test-u8-is-lowercase.c: New file.
32435         * tests/unicase/test-is-lowercase.h: New file.
32436
32437         New module 'unicase/u32-is-lowercase'.
32438         * lib/unicase/u32-is-lowercase.c: New file.
32439         * modules/unicase/u32-is-lowercase: New file.
32440
32441         New module 'unicase/u16-is-lowercase'.
32442         * lib/unicase/u16-is-lowercase.c: New file.
32443         * modules/unicase/u16-is-lowercase: New file.
32444
32445         New module 'unicase/u8-is-lowercase'.
32446         * lib/unicase/u8-is-lowercase.c: New file.
32447         * modules/unicase/u8-is-lowercase: New file.
32448
32449         Tests for module 'unicase/u32-is-uppercase'.
32450         * modules/unicase/u32-is-uppercase-tests: New file.
32451         * tests/unicase/test-u32-is-uppercase.c: New file.
32452
32453         Tests for module 'unicase/u16-is-uppercase'.
32454         * modules/unicase/u16-is-uppercase-tests: New file.
32455         * tests/unicase/test-u16-is-uppercase.c: New file.
32456
32457         Tests for module 'unicase/u8-is-uppercase'.
32458         * modules/unicase/u8-is-uppercase-tests: New file.
32459         * tests/unicase/test-u8-is-uppercase.c: New file.
32460         * tests/unicase/test-is-uppercase.h: New file.
32461
32462         New module 'unicase/u32-is-uppercase'.
32463         * lib/unicase/u32-is-uppercase.c: New file.
32464         * modules/unicase/u32-is-uppercase: New file.
32465
32466         New module 'unicase/u16-is-uppercase'.
32467         * lib/unicase/u16-is-uppercase.c: New file.
32468         * modules/unicase/u16-is-uppercase: New file.
32469
32470         New module 'unicase/u8-is-uppercase'.
32471         * lib/unicase/u8-is-uppercase.c: New file.
32472         * modules/unicase/u8-is-uppercase: New file.
32473
32474         New module 'unicase/u32-is-invariant'.
32475         * lib/unicase/u32-is-invariant.c: New file.
32476         * modules/unicase/u32-is-invariant: New file.
32477
32478         New module 'unicase/u16-is-invariant'.
32479         * lib/unicase/u16-is-invariant.c: New file.
32480         * modules/unicase/u16-is-invariant: New file.
32481
32482         New module 'unicase/u8-is-invariant'.
32483         * lib/unicase/u8-is-invariant.c: New file.
32484         * lib/unicase/invariant.h: New file.
32485         * lib/unicase/u-is-invariant.h: New file.
32486         * modules/unicase/u8-is-invariant: New file.
32487
32488         Tests for module 'unicase/u32-casecoll'.
32489         * modules/unicase/u32-casecoll-tests: New file.
32490         * tests/unicase/test-u32-casecoll.c: New file.
32491
32492         Tests for module 'unicase/u16-casecoll'.
32493         * modules/unicase/u16-casecoll-tests: New file.
32494         * tests/unicase/test-u16-casecoll.c: New file.
32495
32496         Tests for module 'unicase/u8-casecoll'.
32497         * modules/unicase/u8-casecoll-tests: New file.
32498         * tests/unicase/test-u8-casecoll.c: New file.
32499
32500         New module 'unicase/u32-casecoll'.
32501         * lib/unicase/u32-casecoll.c: New file.
32502         * modules/unicase/u32-casecoll: New file.
32503
32504         New module 'unicase/u16-casecoll'.
32505         * lib/unicase/u16-casecoll.c: New file.
32506         * modules/unicase/u16-casecoll: New file.
32507
32508         New module 'unicase/u8-casecoll'.
32509         * lib/unicase/u8-casecoll.c: New file.
32510         * lib/unicase/u-casecoll.h: New file.
32511         * modules/unicase/u8-casecoll: New file.
32512
32513         New module 'unicase/u32-casexfrm'.
32514         * lib/unicase/u32-casexfrm.c: New file.
32515         * modules/unicase/u32-casexfrm: New file.
32516
32517         New module 'unicase/u16-casexfrm'.
32518         * lib/unicase/u16-casexfrm.c: New file.
32519         * modules/unicase/u16-casexfrm: New file.
32520
32521         New module 'unicase/u8-casexfrm'.
32522         * lib/unicase/u8-casexfrm.c: New file.
32523         * lib/unicase/u-casexfrm.h: New file.
32524         * modules/unicase/u8-casexfrm: New file.
32525
32526         Tests for module 'unicase/u32-casecmp'.
32527         * modules/unicase/u32-casecmp-tests: New file.
32528         * tests/unicase/test-u32-casecmp.c: New file.
32529
32530         Tests for module 'unicase/u16-casecmp'.
32531         * modules/unicase/u16-casecmp-tests: New file.
32532         * tests/unicase/test-u16-casecmp.c: New file.
32533
32534         Tests for module 'unicase/u8-casecmp'.
32535         * modules/unicase/u8-casecmp-tests: New file.
32536         * tests/unicase/test-u8-casecmp.c: New file.
32537         * tests/unicase/test-casecmp.h: New file.
32538
32539         New module 'unicase/u32-casecmp'.
32540         * lib/unicase/u32-casecmp.c: New file.
32541         * modules/unicase/u32-casecmp: New file.
32542
32543         New module 'unicase/u16-casecmp'.
32544         * lib/unicase/u16-casecmp.c: New file.
32545         * modules/unicase/u16-casecmp: New file.
32546
32547         New module 'unicase/u8-casecmp'.
32548         * lib/unicase/u8-casecmp.c: New file.
32549         * lib/unicase/u-casecmp.h: New file.
32550         * modules/unicase/u8-casecmp: New file.
32551
32552         Tests for module 'unicase/u32-casefold'.
32553         * modules/unicase/u32-casefold-tests: New file.
32554         * tests/unicase/test-u32-casefold.c: New file.
32555
32556         Tests for module 'unicase/u16-casefold'.
32557         * modules/unicase/u16-casefold-tests: New file.
32558         * tests/unicase/test-u16-casefold.c: New file.
32559
32560         Tests for module 'unicase/u8-casefold'.
32561         * modules/unicase/u8-casefold-tests: New file.
32562         * tests/unicase/test-u8-casefold.c: New file.
32563
32564         New module 'unicase/u32-casefold'.
32565         * lib/unicase/u32-casefold.c: New file.
32566         * modules/unicase/u32-casefold: New file.
32567
32568         New module 'unicase/u16-casefold'.
32569         * lib/unicase/u16-casefold.c: New file.
32570         * modules/unicase/u16-casefold: New file.
32571
32572         New module 'unicase/u8-casefold'.
32573         * lib/unicase/u8-casefold.c: New file.
32574         * lib/unicase/u-casefold.h: New file.
32575         * modules/unicase/u8-casefold: New file.
32576
32577         New module 'unicase/tocasefold'.
32578         * lib/unicase/casefold.h: New file.
32579         * lib/unicase/tocasefold.c: New file.
32580         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
32581         * modules/unicase/tocasefold: New file.
32582
32583         Tests for module 'unicase/u32-totitle'.
32584         * modules/unicase/u32-totitle-tests: New file.
32585         * tests/unicase/test-u32-totitle.c: New file.
32586
32587         Tests for module 'unicase/u16-totitle'.
32588         * modules/unicase/u16-totitle-tests: New file.
32589         * tests/unicase/test-u16-totitle.c: New file.
32590
32591         Tests for module 'unicase/u8-totitle'.
32592         * modules/unicase/u8-totitle-tests: New file.
32593         * tests/unicase/test-u8-totitle.c: New file.
32594
32595         New module 'unicase/u32-totitle'.
32596         * lib/unicase/u32-totitle.c: New file.
32597         * modules/unicase/u32-totitle: New file.
32598
32599         New module 'unicase/u16-totitle'.
32600         * lib/unicase/u16-totitle.c: New file.
32601         * modules/unicase/u16-totitle: New file.
32602
32603         New module 'unicase/u8-totitle'.
32604         * lib/unicase/u8-totitle.c: New file.
32605         * lib/unicase/u-totitle.h: New file.
32606         * modules/unicase/u8-totitle: New file.
32607
32608         Tests for module 'unicase/u32-tolower'.
32609         * modules/unicase/u32-tolower-tests: New file.
32610         * tests/unicase/test-u32-tolower.c: New file.
32611
32612         Tests for module 'unicase/u16-tolower'.
32613         * modules/unicase/u16-tolower-tests: New file.
32614         * tests/unicase/test-u16-tolower.c: New file.
32615
32616         Tests for module 'unicase/u8-tolower'.
32617         * modules/unicase/u8-tolower-tests: New file.
32618         * tests/unicase/test-u8-tolower.c: New file.
32619
32620         New module 'unicase/u32-tolower'.
32621         * lib/unicase/u32-tolower.c: New file.
32622         * modules/unicase/u32-tolower: New file.
32623
32624         New module 'unicase/u16-tolower'.
32625         * lib/unicase/u16-tolower.c: New file.
32626         * modules/unicase/u16-tolower: New file.
32627
32628         New module 'unicase/u8-tolower'.
32629         * lib/unicase/u8-tolower.c: New file.
32630         * modules/unicase/u8-tolower: New file.
32631
32632         Tests for module 'unicase/u32-toupper'.
32633         * modules/unicase/u32-toupper-tests: New file.
32634         * tests/unicase/test-u32-toupper.c: New file.
32635
32636         Tests for module 'unicase/u16-toupper'.
32637         * modules/unicase/u16-toupper-tests: New file.
32638         * tests/unicase/test-u16-toupper.c: New file.
32639
32640         Tests for module 'unicase/u8-toupper'.
32641         * modules/unicase/u8-toupper-tests: New file.
32642         * tests/unicase/test-u8-toupper.c: New file.
32643
32644         New module 'unicase/u32-toupper'.
32645         * lib/unicase/u32-toupper.c: New file.
32646         * modules/unicase/u32-toupper: New file.
32647
32648         New module 'unicase/u16-toupper'.
32649         * lib/unicase/u16-toupper.c: New file.
32650         * modules/unicase/u16-toupper: New file.
32651
32652         New module 'unicase/u8-toupper'.
32653         * lib/unicase/u8-toupper.c: New file.
32654         * modules/unicase/u8-toupper: New file.
32655
32656         New module 'unicase/u32-casemap'.
32657         * lib/unicase/u32-casemap.c: New file.
32658         * modules/unicase/u32-casemap: New file.
32659
32660         New module 'unicase/u16-casemap'.
32661         * lib/unicase/u16-casemap.c: New file.
32662         * modules/unicase/u16-casemap: New file.
32663
32664         New module 'unicase/u8-casemap'.
32665         * lib/unicase/unicasemap.h: New file.
32666         * lib/unicase/u8-casemap.c: New file.
32667         * lib/unicase/u-casemap.h: New file.
32668         * modules/unicase/u8-casemap: New file.
32669
32670         New module 'unicase/special-casing'.
32671         * lib/unicase/special-casing.h: New file.
32672         * lib/unicase/special-casing.c: New file.
32673         * lib/unicase/special-casing-table.gperf: New file, generated by
32674         gen-uni-tables.c.
32675         * modules/unicase/special-casing: New file.
32676
32677         Tests for module 'unicase/locale-language'.
32678         * modules/unicase/locale-language-tests: New file.
32679         * tests/unicase/test-locale-language.sh: New file.
32680         * tests/unicase/test-locale-language.c: New file.
32681
32682         New module 'unicase/locale-language'.
32683         * lib/unicase/locale-language.c: New file.
32684         * lib/unicase/locale-languages.gperf: New file.
32685         * modules/unicase/locale-language: New file.
32686
32687         Generate more tables for case conversion and case folding.
32688         * lib/gen-uni-tables.c (SCC_*): New enum items.
32689         (struct special_casing_rule): New type.
32690         (casing_rules, num_casing_rules, allocated_casing_rules): New
32691         variables.
32692         (add_casing_rule, fill_casing_rules): New functions.
32693         (struct casefold_rule): New type.
32694         (casefolding_rules, num_casefolding_rules,
32695         allocated_casefolding_rules): New variables.
32696         (fill_casefolding_rules): New function.
32697         (unicode_casefold): New variable.
32698         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
32699         sort_casing_rules, output_casing_rules): New functions.
32700         (main): Accept to more arguments: SpecialCasing.txt and
32701         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
32702         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
32703         Output mapping for casefolding.
32704
32705         * lib/unicase.h: Include stdbool.h, uninorm.h.
32706         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
32707         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
32708         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
32709         arguments.
32710         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
32711         resultp arguments.
32712         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
32713         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
32714         resultp arguments.
32715         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
32716         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
32717         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
32718         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
32719         declarations.
32720         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
32721
32722 2009-03-08  Bruno Haible  <bruno@clisp.org>
32723
32724         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
32725         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
32726         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
32727         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
32728
32729 2009-03-07  Bruno Haible  <bruno@clisp.org>
32730
32731         Adjust u*_normcmp, u*_normcoll API.
32732         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
32733         u16_normcoll, u32_normcoll): Change failure conventions.
32734         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
32735         errno and return -1.
32736         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
32737
32738 2009-03-07  Bruno Haible  <bruno@clisp.org>
32739
32740         Tests for module 'uninorm/u32-normcoll'.
32741         * modules/uninorm/u32-normcoll-tests: New file.
32742         * tests/uninorm/test-u32-normcoll.c: New file.
32743
32744         Tests for module 'uninorm/u16-normcoll'.
32745         * modules/uninorm/u16-normcoll-tests: New file.
32746         * tests/uninorm/test-u16-normcoll.c: New file.
32747
32748         Tests for module 'uninorm/u8-normcoll'.
32749         * modules/uninorm/u8-normcoll-tests: New file.
32750         * tests/uninorm/test-u8-normcoll.c: New file.
32751
32752 2009-03-07  Bruno Haible  <bruno@clisp.org>
32753
32754         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
32755         tests/uninorm/test-u32-normcmp.c.
32756         * tests/uninorm/test-u32-normcmp.c: Include it.
32757         (test_nonascii): New function, extracted from main. Add some more
32758         tests.
32759         (main): Invoke test_ascii and test_nonascii.
32760         * modules/uninorm/u32-normcmp-tests (Files): Add
32761         tests/uninorm/test-u32-normcmp.h.
32762         (Depends-on): Remove uninorm/u32-normcmp.
32763
32764         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
32765         tests/uninorm/test-u16-normcmp.c.
32766         * tests/uninorm/test-u16-normcmp.c: Include it.
32767         (test_nonascii): New function, extracted from main. Add some more
32768         tests.
32769         (main): Invoke test_ascii and test_nonascii.
32770         * modules/uninorm/u16-normcmp-tests (Files): Add
32771         tests/uninorm/test-u16-normcmp.h.
32772         (Depends-on): Remove uninorm/u16-normcmp.
32773
32774         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
32775         tests/uninorm/test-u8-normcmp.c.
32776         * tests/uninorm/test-u8-normcmp.c: Include it.
32777         (test_nonascii): New function, extracted from main. Add some more
32778         tests.
32779         (main): Invoke test_ascii and test_nonascii.
32780         * modules/uninorm/u8-normcmp-tests (Files): Add
32781         tests/uninorm/test-u8-normcmp.h.
32782         (Depends-on): Remove uninorm/u8-normcmp.
32783
32784 2009-03-07  Bruno Haible  <bruno@clisp.org>
32785
32786         New module 'uninorm/u32-normcoll'.
32787         * lib/uninorm/u32-normcoll.c: New file.
32788         * modules/uninorm/u32-normcoll: New file.
32789
32790         New module 'uninorm/u16-normcoll'.
32791         * lib/uninorm/u16-normcoll.c: New file.
32792         * modules/uninorm/u16-normcoll: New file.
32793
32794         New module 'uninorm/u8-normcoll'.
32795         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
32796         declarations.
32797         * lib/uninorm/u8-normcoll.c: New file.
32798         * lib/uninorm/u-normcoll.h: New file.
32799         * modules/uninorm/u8-normcoll: New file.
32800
32801         New module 'uninorm/u32-normxfrm'.
32802         * lib/uninorm/u32-normxfrm.c: New file.
32803         * modules/uninorm/u32-normxfrm: New file.
32804
32805         New module 'uninorm/u16-normxfrm'.
32806         * lib/uninorm/u16-normxfrm.c: New file.
32807         * modules/uninorm/u16-normxfrm: New file.
32808
32809         New module 'uninorm/u8-normxfrm'.
32810         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
32811         declarations.
32812         * lib/uninorm/u8-normxfrm.c: New file.
32813         * lib/uninorm/u-normxfrm.h: New file.
32814         * modules/uninorm/u8-normxfrm: New file.
32815
32816 2009-03-07  Bruno Haible  <bruno@clisp.org>
32817
32818         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
32819         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
32820         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
32821
32822 2009-03-07  Bruno Haible  <bruno@clisp.org>
32823
32824         New module 'memxfrm'.
32825         * lib/memxfrm.h: New file.
32826         * lib/memxfrm.c: New file.
32827         * modules/memxfrm: New file.
32828
32829 2009-03-07  Bruno Haible  <bruno@clisp.org>
32830
32831         New module 'memcmp2'.
32832         * lib/memcmp2.h: New file.
32833         * lib/memcmp2.c: New file.
32834         * modules/memcmp2: New file.
32835
32836 2009-03-07  Bruno Haible  <bruno@clisp.org>
32837
32838         Tests for module 'uninorm/decomposing-form'.
32839         * modules/uninorm/decomposing-form-tests: New file.
32840         * tests/uninorm/test-decomposing-form.c: New file.
32841
32842         New module 'uninorm/decomposing-form'.
32843         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
32844         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
32845         Add 'decomposing_variant' field.
32846         * lib/uninorm/decomposing-form.c: New file.
32847         * lib/uninorm/nfc.c (uninorm_nfc): Update.
32848         * lib/uninorm/nfd.c (uninorm_nfd): Update.
32849         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
32850         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
32851         * modules/uninorm/decomposing-form: New file.
32852         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
32853         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
32854
32855 2009-03-07  Bruno Haible  <bruno@clisp.org>
32856
32857         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
32858         strings.
32859
32860 2009-03-06  Bruno Haible  <bruno@clisp.org>
32861
32862         Tests for module 'uninorm/u32-normcmp'.
32863         * tests/uninorm/test-u32-normcmp.c: New file.
32864         * modules/uninorm/u32-normcmp-tests: New file.
32865
32866         Tests for module 'uninorm/u16-normcmp'.
32867         * tests/uninorm/test-u16-normcmp.c: New file.
32868         * modules/uninorm/u16-normcmp-tests: New file.
32869
32870         Tests for module 'uninorm/u8-normcmp'.
32871         * tests/uninorm/test-u8-normcmp.c: New file.
32872         * modules/uninorm/u8-normcmp-tests: New file.
32873
32874         New module 'uninorm/u32-normcmp'.
32875         * lib/uninorm/u32-normcmp.c: New file.
32876         * modules/uninorm/u32-normcmp: New file.
32877
32878         New module 'uninorm/u16-normcmp'.
32879         * lib/uninorm/u16-normcmp.c: New file.
32880         * modules/uninorm/u16-normcmp: New file.
32881
32882         New module 'uninorm/u8-normcmp'.
32883         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
32884         declarations.
32885         * lib/uninorm/u8-normcmp.c: New file.
32886         * lib/uninorm/u-normcmp.h: New file.
32887         * modules/uninorm/u8-normcmp: New file.
32888
32889 2009-03-06  Bruno Haible  <bruno@clisp.org>
32890
32891         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
32892         Reported by Eric Blake.
32893
32894 2009-03-06  Eric Blake  <ebb9@byu.net>
32895             Bruno Haible  <bruno@clisp.org>
32896
32897         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
32898         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
32899         condition.
32900         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
32901         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
32902         condition.
32903         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
32904
32905 2009-03-06  Eric Blake  <ebb9@byu.net>
32906
32907         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
32908         to avoid compiler warnings.
32909         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
32910
32911 2009-03-05  Bruno Haible  <bruno@clisp.org>
32912
32913         * tests/test-ftell.c (main): Disable test beyond end of file on
32914         FreeMiNT.
32915         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
32916
32917 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
32918
32919         * lib/filevercmp.c: Move hidden files up in ordering.
32920         * tests/test-filevercmp.c: Add tests for hidden files.
32921
32922 2009-03-04  Bruno Haible  <bruno@clisp.org>
32923
32924         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
32925         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
32926         AM_CFLAGS.
32927         Reported by Simon Josefsson.
32928
32929 2009-03-03  Bruno Haible  <bruno@clisp.org>
32930
32931         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
32932         Reported by Simon Josefsson.
32933
32934         * doc/ld-version-script.texi: Update node reference.
32935
32936 2009-03-03  Bruno Haible  <bruno@clisp.org>
32937
32938         * modules/visibility (License): Change to 'unlimited'.
32939         Suggested by Simon Josefsson.
32940
32941 2009-03-03  Jim Meyering  <meyering@redhat.com>
32942
32943         unlinkdir: cannot_unlink_dir may modify process state
32944         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
32945         it's neither thread-safe nor appropriate for use in a library.
32946
32947 2009-03-03  Eric Blake  <ebb9@byu.net>
32948
32949         test-closein: silence test under Darwin
32950         * tests/test-closein.sh: Ignore stderr from cat, since we don't
32951         care if it dies from EPIPE or EBADF.
32952
32953 2009-03-03  Bruno Haible  <bruno@clisp.org>
32954
32955         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
32956         earlier.
32957         * doc/visibility.texi: Fix @node and @section.
32958
32959 2009-03-03  Simon Josefsson  <simon@josefsson.org>
32960
32961         * doc/gnulib.texi: Link to sections for ld version script and
32962         visibility.
32963         * doc/visibility.texi: Add @node and @section.
32964         * modules/ld-version-script: New module.
32965         * m4/ld-version-script.m4: New file.
32966         * doc/ld-version-script.texi: New file.
32967
32968 2009-03-02  David Lutterkort  <lutter@redhat.com>
32969
32970         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
32971         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32972
32973 2009-03-02  Bruno Haible  <bruno@clisp.org>
32974
32975         * doc/visibility.texi: Mention libtool's -export-symbols option.
32976
32977 2009-03-02  Jim Meyering  <meyering@redhat.com>
32978
32979         announce-gen: new option: --no-print-checksums
32980         * build-aux/announce-gen (usage): Describe it.
32981         (print_checksums): Print a newline here, not in the [*] footnote.
32982         (main): Honor it.
32983
32984 2009-03-01  Bruno Haible  <bruno@clisp.org>
32985
32986         Use socklen_t in the native Windows replacements prototypes.
32987         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
32988         instead of 'int'.
32989         * lib/getsockopt.c (rpl_getsockopt): Likewise.
32990         * lib/setsockopt.c (rpl_setsockopt): Likewise.
32991         * modules/getsockopt (Depends-on): Add socklen.
32992         * modules/setsockopt (Depends-on): Add socklen.
32993
32994 2009-03-01  Bruno Haible  <bruno@clisp.org>
32995
32996         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
32997         least 4.2.
32998
32999 2009-03-01  Eric Blake  <ebb9@byu.net>
33000             Bruno Haible  <bruno@clisp.org>
33001
33002         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
33003         error messages.
33004         * lib/wait-process.c (wait_subprocess): Omit error message about
33005         deadly signal sent to the child of termsigp != NULL.
33006
33007 2009-03-01  Eric Blake  <ebb9@byu.net>
33008
33009         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
33010
33011 2009-03-01  Bruno Haible  <bruno@clisp.org>
33012
33013         Avoid a gcc warning.
33014         * tests/test-sched.c (b): Make global.
33015         Reported by Eric Blake.
33016
33017 2009-01-19  Martin Lambers  <marlam@marlam.de>
33018
33019         Provide POSIX semantics for socket timeout options on W32.
33020         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
33021         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
33022         * modules/setsockopt: Depend on sys_time module for struct timeval.
33023         * modules/getsockopt: Depend on sys_time module for struct timeval.
33024
33025 2009-03-01  Simon Josefsson  <simon@josefsson.org>
33026
33027         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
33028         __USE_GNU, for consistency with netdb.in.h.
33029         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
33030
33031 2009-03-01  Bruno Haible  <bruno@clisp.org>
33032
33033         More support for FreeMiNT.
33034         * lib/fseeko.c (rpl_fseeko): Complete last commit.
33035         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
33036
33037 2009-03-01  Bruno Haible  <bruno@clisp.org>
33038
33039         More support for FreeMiNT.
33040         * lib/fpurge.c (fpurge): Correct last commit.
33041         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
33042
33043 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33044
33045         Fix unportable awk script in vc-list-files.
33046         * build-aux/vc-list-files: In the replacement awk script, use
33047         substr with a second argument of 1, not zero.
33048         Report by Simon Josefsson.
33049
33050 2009-02-28  Bruno Haible  <bruno@clisp.org>
33051
33052         More support for FreeMiNT.
33053         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
33054         to FreeMiNT today.
33055         * lib/fwriting.c (fwriting): Likewise.
33056         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
33057
33058 2009-02-28  Bruno Haible  <bruno@clisp.org>
33059
33060         * tests/test-freadseek.c (main): Disable test beyond end of file on
33061         FreeMiNT.
33062         * tests/test-ftello.c (main): Likewise.
33063         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
33064
33065 2009-02-28  Bruno Haible  <bruno@clisp.org>
33066
33067         Add tentative support for FreeMiNT.
33068         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
33069         * lib/fpurge.c (fpurge): Likewise.
33070         * lib/freadable.c (freadable): Likewise.
33071         * lib/freading.c (freading): Likewise.
33072         * lib/freadptr.c (freadptr): Likewise.
33073         * lib/freadseek.c (freadptrinc): Likewise.
33074         * lib/fseeko.c (rpl_fseeko): Likewise.
33075         * lib/fseterr.c (fseterr): Likewise.
33076         * lib/fwritable.c (fwritable): Likewise.
33077         * lib/fwriting.c (fwriting): Likewise.
33078         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
33079         Hourihane.
33080         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
33081
33082 2009-02-28  Bruno Haible  <bruno@clisp.org>
33083
33084         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
33085         SIGCHLD.
33086         Reported by Jim Meyering.
33087
33088 2009-02-28  Bruno Haible  <bruno@clisp.org>
33089
33090         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
33091         Mention the results of these tests on various platforms.
33092         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
33093         order.
33094         * doc/posix-functions/printf.texi: Likewise.
33095         * doc/posix-functions/snprintf.texi: Likewise.
33096         * doc/posix-functions/sprintf.texi: Likewise.
33097         * doc/posix-functions/vfprintf.texi: Likewise.
33098         * doc/posix-functions/vprintf.texi: Likewise.
33099         * doc/posix-functions/vsnprintf.texi: Likewise.
33100         * doc/posix-functions/vsprintf.texi: Likewise.
33101         * doc/glibc-functions/obstack_printf.texi: Likewise.
33102         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
33103
33104 2009-02-28  Bruno Haible  <bruno@clisp.org>
33105
33106         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
33107         Reported by Loïc Minier <lool@dooz.org>.
33108
33109 2009-02-27  Bruno Haible  <bruno@clisp.org>
33110
33111         * gnulib-tool (func_import): Make the sed expression used to create the
33112         sed script for updating the .gitignore file POSIX compliant.
33113         Reported by Eric Blake.
33114
33115 2009-02-27  Bruno Haible  <bruno@clisp.org>
33116
33117         * gnulib-tool (sed): Don't alias as "sed --posix".
33118         Reported by Eric Blake.
33119
33120 2009-02-27  Bruno Haible  <bruno@clisp.org>
33121
33122         Avoid test link errors.
33123         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
33124         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
33125         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
33126         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
33127         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33128
33129 2009-02-27  Bruno Haible  <bruno@clisp.org>
33130
33131         Avoid spurious "(cached)" in configure output.
33132         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
33133         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
33134         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
33135         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
33136         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
33137         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
33138         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
33139         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
33140         Reported by Eric Blake.
33141
33142 2009-02-27  Eric Blake  <ebb9@byu.net>
33143
33144         printf: fix regression in previous patch
33145         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
33146
33147 2009-02-27  Bruno Haible  <bruno@clisp.org>
33148
33149         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
33150         value.
33151         * lib/stdint.in.h: Likewise.
33152         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
33153
33154 2009-02-27  Eric Blake  <ebb9@byu.net>
33155
33156         doc: mention more functions added in cygwin 1.7.0
33157         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
33158         addition.
33159         * doc/posix-functions/open_wmemstream.texi: Likewise.
33160         * doc/posix-functions/wcsnlen.texi: Likewise.
33161         * doc/posix-functions/wcsnrtombs.texi: Likewise.
33162         * doc/posix-functions/wcstod.texi: Likewise.
33163         * doc/posix-functions/wcstof.texi: Likewise.
33164         * doc/posix-functions/wcstoimax.texi: Likewise.
33165         * doc/posix-functions/wcstok.texi: Likewise.
33166         * doc/posix-functions/wcstoumax.texi: Likewise.
33167
33168         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
33169         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
33170         * doc/posix-functions/fprintf.texi: Update.
33171         * doc/posix-functions/printf.texi: Update.
33172         * doc/posix-functions/snprintf.texi: Update.
33173         * doc/posix-functions/sprintf.texi: Update.
33174         * doc/posix-functions/vfprintf.texi: Update.
33175         * doc/posix-functions/vprintf.texi: Update.
33176         * doc/posix-functions/vsnprintf.texi: Update.
33177         * doc/posix-functions/vsprintf.texi: Update.
33178         * doc/glibc-functions/obstack_printf.texi: Update.
33179         * doc/glibc-functions/obstack_vprintf.texi: Update.
33180
33181 2009-02-26  Eric Blake  <ebb9@byu.net>
33182
33183         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
33184         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
33185         compilation bug by using runtime conversion.
33186         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
33187         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
33188         * modules/ceill-tests (Files): Use nan.h.
33189         * modules/floorl-tests (Files): Likewise.
33190         * modules/frexpl-tests (Files): Likewise.
33191         * modules/isnanl-tests (Files): Likewise.
33192         * modules/ldexpl-tests (Files): Likewise.
33193         * modules/roundl-tests (Files): Likewise.
33194         * modules/truncl-tests (Files): Likewise.
33195         * tests/test-ceill.c (main): Use a working NaN.
33196         * tests/test-floorl.c (main): Likewise.
33197         * tests/test-frexpl.c (main): Likewise.
33198         * tests/test-isnan.c (test_long_double): Likewise.
33199         * tests/test-isnanl.h (main): Likewise.
33200         * tests/test-ldexpl.h (main): Likewise.
33201         * tests/test-roundl.h (main): Likewise.
33202         * tests/test-truncl.h (main): Likewise.
33203         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
33204
33205 2009-02-26  Eric Blake  <ebb9@byu.net>
33206             Bruno Haible  <bruno@clisp.org>
33207
33208         Work around a *printf bug with %ls on Solaris.
33209         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
33210         precision is specified, sprintf stops converting the wide string
33211         argument when the number of bytes that have been produced by this
33212         conversion equals or exceeds the precision.
33213         * doc/posix-functions/fprintf.texi: Update.
33214         * doc/posix-functions/printf.texi: Update.
33215         * doc/posix-functions/snprintf.texi: Update.
33216         * doc/posix-functions/sprintf.texi: Update.
33217         * doc/posix-functions/vfprintf.texi: Update.
33218         * doc/posix-functions/vprintf.texi: Update.
33219         * doc/posix-functions/vsnprintf.texi: Update.
33220         * doc/posix-functions/vsprintf.texi: Update.
33221         * doc/glibc-functions/obstack_printf.texi: Update.
33222         * doc/glibc-functions/obstack_vprintf.texi: Update.
33223
33224 2009-02-26  Eric Blake  <ebb9@byu.net>
33225
33226         stdlib: favor compiler check of random.h
33227         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
33228         to avoid an ObjC random.h installed by Swarm.
33229
33230 2009-02-26  Bruno Haible  <bruno@clisp.org>
33231
33232         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
33233         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
33234         Reported by Gary V. Vaughan <gary@gnu.org>.
33235
33236 2009-02-26  Bruno Haible  <bruno@clisp.org>
33237
33238         Fix *printf behaviour regarding the %ls directive.
33239         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
33240         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
33241         NEED_PRINTF_DIRECTIVE_LS.
33242         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
33243         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
33244         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33245         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
33246         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
33247         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
33248         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
33249         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33250         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33251         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33252         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33253         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
33254         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33255         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33256         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33257         * doc/posix-functions/fprintf.texi: Update.
33258         * doc/posix-functions/printf.texi: Update.
33259         * doc/posix-functions/snprintf.texi: Update.
33260         * doc/posix-functions/sprintf.texi: Update.
33261         * doc/posix-functions/vfprintf.texi: Update.
33262         * doc/posix-functions/vprintf.texi: Update.
33263         * doc/posix-functions/vsnprintf.texi: Update.
33264         * doc/posix-functions/vsprintf.texi: Update.
33265         * doc/glibc-functions/obstack_printf.texi: Update.
33266         * doc/glibc-functions/obstack_vprintf.texi: Update.
33267         Reported by Eric Blake.
33268
33269 2009-02-25  Bruno Haible  <bruno@clisp.org>
33270
33271         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
33272         with known value.
33273         Reported by Gary V. Vaughan <gary@gnu.org>.
33274
33275 2009-02-25  Bruno Haible  <bruno@clisp.org>
33276
33277         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
33278         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
33279         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
33280         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
33281         Reported by Gary V. Vaughan <gary@gnu.org>.
33282
33283 2009-02-25  Bruno Haible  <bruno@clisp.org>
33284
33285         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
33286         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
33287         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
33288         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
33289         Reported by Gary V. Vaughan <gary@gnu.org>.
33290
33291 2009-02-25  Eric Blake  <ebb9@byu.net>
33292
33293         tests: skip fseek/ftell tests if ungetc is broken
33294         * m4/ungetc.m4: New file.
33295         * modules/fseek-tests: Split test, so ungetc dependency is
33296         separate from rest of test.
33297         * modules/fseeko-tests: Likewise.
33298         * modules/ftell-tests: Likewise.
33299         * modules/ftello-tests: Likewise.
33300         * tests/test-fseek.c (main): Isolate ungetc dependency.
33301         * tests/test-fseeko.c (main): Likewise.
33302         * tests/test-ftell.c (main): Likewise.
33303         * tests/test-ftello.c (main): Likewise.
33304         * tests/test-fseek2.sh: New file.
33305         * tests/test-fseeko2.sh: Likewise.
33306         * tests/test-ftell2.sh: Likewise.
33307         * tests/test-ftello2.sh: Likewise.
33308
33309 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
33310
33311         test-getaddrinfo: fix usage of skip return code 77
33312         * tests/test-gettaddrinfo.c: Return skip code 77 only
33313         for first occurance of skip (4x77 is not 77)
33314
33315 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
33316
33317         strtod: avoid C99 decl-after-statement
33318         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
33319
33320 2009-02-24  Eric Blake  <ebb9@byu.net>
33321
33322         strtod: detect HP-UX 11.31 bug
33323         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
33324         Reported by Gary V. Vaughan.
33325
33326 2009-02-23  Bruno Haible  <bruno@clisp.org>
33327
33328         Fix invalid read past end of memory block.
33329         * lib/vasnprintf.c (DCHAR_SET): Define.
33330         (local_wcslen): Define only when needed.
33331         (local_strnlen, local_wcsnlen): New functions.
33332         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
33333         directives that involve a conversion ourselves.
33334         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
33335         wcsnlen, mbrtowc, wcrtomb.
33336         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
33337         * tests/test-vasprintf-posix.c (test_function): Likewise.
33338         * tests/test-snprintf-posix.h (test_function): Likewise.
33339         * tests/test-sprintf-posix.h (test_function): Likewise.
33340         Reported by Ben Pfaff <blp@cs.stanford.edu>.
33341
33342 2009-02-22  Bruno Haible  <bruno@clisp.org>
33343
33344         Implement new clarified decomposition of Hangul syllables.
33345         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
33346         of type LTV, return only a pairwise decomposition.
33347         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
33348         Likewise.
33349         * tests/uninorm/test-decomposition.c (main): Updated expected result.
33350         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
33351         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
33352
33353 2009-02-22  Bruno Haible  <bruno@clisp.org>
33354
33355         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
33356         zero-length results and shrink excess allocated memory.
33357         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
33358         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
33359         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
33360         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
33361         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
33362         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
33363         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
33364         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
33365         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
33366         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
33367         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
33368         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
33369
33370 2009-02-21  Bruno Haible  <bruno@clisp.org>
33371
33372         * doc/gnulib.texi: Include safe-alloc.texi earlier.
33373         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
33374         spaces after a period. Put a space between a macro name and its
33375         argument list. Trivial rewordings.
33376         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
33377         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
33378         (main): Return 0 explicitly.
33379
33380 2009-02-21  Bruno Haible  <bruno@clisp.org>
33381
33382         Tests for module 'uninorm/filter'.
33383         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
33384         * modules/uninorm/filter-tests: New file.
33385
33386         New module 'uninorm/filter'.
33387         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
33388         uninorm_filter_flush, uninorm_filter_free): New declarations.
33389         * lib/uninorm/uninorm-filter.c: New file.
33390         * modules/uninorm/filter: New file.
33391
33392 2009-02-21  Bruno Haible  <bruno@clisp.org>
33393
33394         Tests for module 'uninorm/nfkc'.
33395         * tests/uninorm/test-nfkc.c: New file.
33396         * tests/uninorm/test-u8-nfkc.c: New file.
33397         * tests/uninorm/test-u16-nfkc.c: New file.
33398         * tests/uninorm/test-u32-nfkc.c: New file.
33399         * tests/uninorm/test-u32-nfkc-big.sh: New file.
33400         * tests/uninorm/test-u32-nfkc-big.c: New file.
33401         * modules/uninorm/nfkc-tests: New file.
33402
33403         New module 'uninorm/nfkc'.
33404         * lib/uninorm/nfkc.c: New file.
33405         * modules/uninorm/nfkc: New file.
33406
33407         Tests for module 'uninorm/nfkd'.
33408         * tests/uninorm/test-nfkd.c: New file.
33409         * tests/uninorm/test-u8-nfkd.c: New file.
33410         * tests/uninorm/test-u16-nfkd.c: New file.
33411         * tests/uninorm/test-u32-nfkd.c: New file.
33412         * tests/uninorm/test-u32-nfkd-big.sh: New file.
33413         * tests/uninorm/test-u32-nfkd-big.c: New file.
33414         * modules/uninorm/nfkd-tests: New file.
33415
33416         New module 'uninorm/nfkd'.
33417         * lib/uninorm/nfkd.c: New file.
33418         * modules/uninorm/nfkd: New file.
33419
33420         Tests for module 'uninorm/nfc'.
33421         * tests/uninorm/test-nfc.c: New file.
33422         * tests/uninorm/test-u8-nfc.c: New file.
33423         * tests/uninorm/test-u16-nfc.c: New file.
33424         * tests/uninorm/test-u32-nfc.c: New file.
33425         * tests/uninorm/test-u32-nfc-big.sh: New file.
33426         * tests/uninorm/test-u32-nfc-big.c: New file.
33427         * modules/uninorm/nfc-tests: New file.
33428
33429         New module 'uninorm/nfc'.
33430         * lib/uninorm/nfc.c: New file.
33431         * modules/uninorm/nfc: New file.
33432
33433         Tests for module 'uninorm/nfd'.
33434         * tests/uninorm/test-nfd.c: New file.
33435         * tests/uninorm/test-u8-nfd.c: New file.
33436         * tests/uninorm/test-u16-nfd.c: New file.
33437         * tests/uninorm/test-u32-nfd.c: New file.
33438         * tests/uninorm/test-u32-nfd-big.sh: New file.
33439         * tests/uninorm/test-u32-nfd-big.c: New file.
33440         * tests/uninorm/test-u32-normalize-big.h: New file.
33441         * tests/uninorm/test-u32-normalize-big.c: New file.
33442         * tests/uninorm/NormalizationTest.txt: New file, created from
33443         Unicode 5.1.0 NormalizationTest.txt.
33444         * modules/uninorm/nfd-tests: New file.
33445
33446         New module 'uninorm/nfd'.
33447         * lib/uninorm/nfd.c: New file.
33448         * modules/uninorm/nfd: New file.
33449
33450         New module 'uninorm/u32-normalize'.
33451         * lib/uninorm/u32-normalize.c: New file.
33452         * modules/uninorm/u32-normalize: New file.
33453
33454         New module 'uninorm/u16-normalize'.
33455         * lib/uninorm/u16-normalize.c: New file.
33456         * modules/uninorm/u16-normalize: New file.
33457
33458         New module 'uninorm/u8-normalize'.
33459         * lib/uninorm/u8-normalize.c: New file.
33460         * lib/uninorm/normalize-internal.h: New file.
33461         * lib/uninorm/u-normalize-internal.h: New file.
33462         * modules/uninorm/u8-normalize: New file.
33463
33464         New module 'uninorm/decompose-internal'.
33465         * lib/uninorm/decompose-internal.c: New file.
33466         * modules/uninorm/decompose-internal: New file.
33467
33468         Tests for module 'uninorm/composition'.
33469         * tests/uninorm/test-composition.c: New file.
33470         * modules/uninorm/composition-tests: New file.
33471
33472         New module 'uninorm/composition'.
33473         * lib/uninorm/composition.c: New file.
33474         * lib/uninorm/composition-table.gperf: New file, generated by
33475         gen-uni-tables.
33476         * modules/uninorm/composition: New file.
33477
33478         Tests for module 'uninorm/compat-decomposition'.
33479         * tests/uninorm/test-compat-decomposition.c: New file.
33480         * modules/uninorm/compat-decomposition-tests: New file.
33481
33482         New module 'uninorm/compat-decomposition'.
33483         * lib/uninorm/decompose-internal.h: New file.
33484         * lib/uninorm/compat-decomposition.c: New file.
33485         * modules/uninorm/compat-decomposition: New file.
33486
33487         Tests for module 'uninorm/canonical-decomposition'.
33488         * tests/uninorm/test-canonical-decomposition.c: New file.
33489         * modules/uninorm/canonical-decomposition-tests: New file.
33490
33491         New module 'uninorm/canonical-decomposition'.
33492         * lib/uninorm/canonical-decomposition.c: New file.
33493         * modules/uninorm/canonical-decomposition: New file.
33494
33495         Tests for module 'uninorm/decomposition'.
33496         * tests/uninorm/test-decomposition.c: New file.
33497         * modules/uninorm/decomposition-tests: New file.
33498
33499         New module 'uninorm/decomposition'.
33500         * lib/uninorm/decomposition.c: New file.
33501         * modules/uninorm/decomposition: New file.
33502
33503         New module 'uninorm/decomposition-table'.
33504         * lib/uninorm/decomposition-table.h: New file.
33505         * lib/uninorm/decomposition-table.c: New file.
33506         * lib/uninorm/decomposition-table1.h: New file, generated by
33507         gen-uni-tables.
33508         * lib/uninorm/decomposition-table2.h: New file, generated by
33509         gen-uni-tables.
33510         * modules/uninorm/decomposition-table: New file.
33511
33512         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
33513         (UC_DECOMP_*): New enumeration items.
33514         (get_decomposition): New function.
33515         (struct decomp_table): New type.
33516         (output_decomposition, output_decomposition_tables): New functions.
33517         (unicode_composition_exclusions): New variable.
33518         (fill_composition_exclusions, debug_output_composition_tables): New
33519         functions.
33520         (main): Accept one more argument. Invoke fill_composition_exclusions.
33521         Output decomposition and composition tables.
33522
33523         New module 'uninorm/base'.
33524         * lib/uninorm.h: New file.
33525         * lib/unictype.h: Update comment.
33526         * modules/uninorm/base: New file.
33527
33528 2009-02-21  David Lutterkort  <lutter@redhat.com>
33529
33530         Tests for module 'safe-alloc'.
33531         * tests/test-safe-alloc.c: New file.
33532         * modules/safe-alloc-tests: New file.
33533
33534         New module 'safe-alloc'.
33535         * lib/safe-alloc.h: New file.
33536         * lib/safe-alloc.c: New file.
33537         * m4/safe-alloc.m4: New file.
33538         * modules/safe-alloc: New file.
33539         * doc/safe-alloc.texi: New file.
33540         * doc/gnulib.texi: Include it.
33541         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
33542         safe-alloc.
33543
33544 2009-02-18  Bruno Haible  <bruno@clisp.org>
33545
33546         Fix link error on non-glibc systems.
33547         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
33548         variable.
33549         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33550
33551 2009-02-18  Jim Meyering  <meyering@redhat.com>
33552
33553         fts: avoid used-uninitialized error due to recent change
33554         * lib/fts.c (fts_read): Guard uses of the new member,
33555         parent->fts_n_dirs_remaining, since it's not relevant for
33556         the parent of a directory specified on the command-line.
33557
33558 2009-02-17  James Youngman  <jay@gnu.org>
33559             Bruno Haible  <bruno@clisp.org>
33560
33561         * m4/include_next.m4: Reformulate comment.
33562
33563 2009-02-16  Jim Meyering  <meyering@redhat.com>
33564
33565         fts: add #if guards so that the fts_lgpl module still builds
33566         * lib/fts.c: Guard just-added hash-table-using parts with
33567         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
33568         Reported by Simon Josefsson.
33569
33570 2009-02-15  Bruno Haible  <bruno@clisp.org>
33571
33572         * modules/array-mergesort-tests: New file.
33573         * tests/test-array-mergesort.c: New file.
33574
33575         New module 'array-mergesort'.
33576         * modules/array-mergesort: New file.
33577         * lib/array-mergesort.h: New file.
33578
33579 2009-02-15  Bruno Haible  <bruno@clisp.org>
33580
33581         Fix 2009-02-07 commit.
33582         * lib/gen-uni-tables.c (output_predicate, output_category,
33583         output_combclass, output_bidi_category, output_decimal_digit,
33584         output_digit, output_numeric, output_mirror, output_scripts,
33585         output_ident_category, output_simple_mapping): Fix format directives.
33586         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
33587
33588 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
33589
33590         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
33591         fixes are available from IBM.
33592
33593 2009-02-13  Jim Meyering  <meyering@redhat.com>
33594
33595         fts: arrange not to stat non-directories in more cases
33596         This makes GNU find (when it doesn't need to stat each file)
33597         *much* more efficient at traversing reiserfs file systems.
33598         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
33599         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
33600         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
33601         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
33602         (leaf_optimization_applies): New function.
33603         (LCO_hash, LCO_compare): New helper functions.
33604         (link_count_optimize_ok): New function.
33605         (fts_stat): Initialize new member (if dir).
33606         (fts_read): Decrement parent's fts_n_dirs_remaining count if
33607         we've just stat'ed a directory.  Skip the stat call when possible.
33608         ---
33609         Note this AFS-related exchange:
33610         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
33611         and note find's pioctl call in find/fstype.c.
33612         But that is necessary only if you want to enable the
33613         optimization for AFS, and for now, I don't.
33614
33615         fts: move a function definition "up" (no semantic change)
33616         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
33617         "up" to precede upcoming use of a related function.
33618
33619 2009-02-11  Jim Meyering  <meyering@redhat.com>
33620
33621         fts: correct internal computation of nlinks (optimization-related)
33622         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
33623         whether the current entry is a directory, so don't test it.
33624
33625 2009-02-10  Bruno Haible  <bruno@clisp.org>
33626
33627         Tests for module 'uniwbrk/ulc-wordbreaks'.
33628         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
33629         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
33630         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
33631
33632         Tests for module 'uniwbrk/u32-wordbreaks'.
33633         * modules/uniwbrk/u32-wordbreaks-tests: New file.
33634         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
33635
33636         Tests for module 'uniwbrk/u16-wordbreaks'.
33637         * modules/uniwbrk/u16-wordbreaks-tests: New file.
33638         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
33639
33640         Tests for module 'uniwbrk/u8-wordbreaks'.
33641         * modules/uniwbrk/u8-wordbreaks-tests: New file.
33642         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
33643
33644 2009-02-10  Bruno Haible  <bruno@clisp.org>
33645
33646         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
33647         property.
33648         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
33649         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
33650         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
33651
33652 2009-02-10  Simon Josefsson  <simon@josefsson.org>
33653
33654         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
33655         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
33656
33657 2009-02-10  Bruno Haible  <bruno@clisp.org>
33658
33659         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
33660         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
33661         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
33662         * lib/unilbrk/u8-possible-linebreaks.c: Update.
33663         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
33664         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
33665
33666 2009-02-09  Simon Josefsson  <simon@josefsson.org>
33667
33668         * lib/sockets.h (gl_fd_to_handle): New function.
33669
33670         * tests/test-sockets.c: Call gl_fd_to_handle.
33671
33672 2009-02-09  Bruno Haible  <bruno@clisp.org>
33673
33674         * doc/havelib.texi: Document the conventions on bi-arch systems.
33675
33676 2009-02-08  Bruno Haible  <bruno@clisp.org>
33677
33678         Document the AC_LIB_LINKFLAGS macro.
33679         * doc/havelib.texi: New file, mostly written on 2005-05-24.
33680         * doc/gnulib.texi: Include it.
33681
33682 2009-02-08  Bruno Haible  <bruno@clisp.org>
33683
33684         Fix wrong order of sections, compared to TOC.
33685         * doc/gnulib.texi: Include relocatable-maint.texi after the
33686         "Regular expressions" node, not before.
33687
33688 2009-02-08  Bruno Haible  <bruno@clisp.org>
33689
33690         Tests for module 'unicase/totitle'.
33691         * modules/unicase/totitle-tests: New file.
33692
33693         Tests for module 'unicase/tolower'.
33694         * modules/unicase/tolower-tests: New file.
33695
33696         Tests for module 'unicase/toupper'.
33697         * modules/unicase/toupper-tests: New file.
33698         * tests/unicase/test-mapping-part1.h: New file.
33699         * tests/unicase/test-mapping-part2.h: New file.
33700
33701         New module 'unicase/totitle'.
33702         * modules/unicase/totitle: New file.
33703         * lib/unicase/totitle.c: New file.
33704
33705         New module 'unicase/tolower'.
33706         * modules/unicase/tolower: New file.
33707         * lib/unicase/tolower.c: New file.
33708
33709         New module 'unicase/toupper'.
33710         * modules/unicase/toupper: New file.
33711         * lib/unicase/toupper.c: New file.
33712         * lib/unicase/simple-mapping.h: New file.
33713
33714         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
33715         (mapping_table): New structure.
33716         (output_simple_mapping): New function.
33717         (main): Invoke output_simple_mapping_test and output_simple_mapping.
33718         * modules/gen-uni-tables (Description): Update.
33719         * lib/unicase/toupper.h: New file, automatically generated by
33720         gen-uni-tables.
33721         * lib/unicase/tolower.h: New file, automatically generated by
33722         gen-uni-tables.
33723         * lib/unicase/totitle.h: New file, automatically generated by
33724         gen-uni-tables.
33725         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
33726         gen-uni-tables.
33727         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
33728         gen-uni-tables.
33729         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
33730         gen-uni-tables.
33731
33732         New module 'unicase/base'.
33733         * modules/unicase/base: New file.
33734         * lib/unicase.h: New file.
33735
33736 2009-02-08  Bruno Haible  <bruno@clisp.org>
33737
33738         New module 'uniwbrk/ulc-wordbreaks'.
33739         * modules/uniwbrk/ulc-wordbreaks: New file.
33740         * lib/uniwbrk/ulc-wordbreaks.c: New file.
33741
33742         New module 'uniwbrk/u32-wordbreaks'.
33743         * modules/uniwbrk/u32-wordbreaks: New file.
33744         * lib/uniwbrk/u32-wordbreaks.c: New file.
33745
33746         New module 'uniwbrk/u16-wordbreaks'.
33747         * modules/uniwbrk/u16-wordbreaks: New file.
33748         * lib/uniwbrk/u16-wordbreaks.c: New file.
33749
33750         New module 'uniwbrk/u8-wordbreaks'.
33751         * modules/uniwbrk/u8-wordbreaks: New file.
33752         * lib/uniwbrk/u8-wordbreaks.c: New file.
33753         * lib/uniwbrk/u-wordbreaks.h: New file.
33754
33755         New module 'uniwbrk/table'.
33756         * modules/uniwbrk/table: New file.
33757         * lib/uniwbrk/wbrktable.h: New file.
33758         * lib/uniwbrk/wbrktable.c: New file.
33759
33760         New module 'uniwbrk/wordbreak-property'.
33761         * modules/uniwbrk/wordbreak-property: New file.
33762         * lib/uniwbrk/wordbreak-property.c: New file.
33763
33764         * lib/gen-uni-tables.c (WBP_*): New enum items.
33765         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
33766         (unicode_org_wbp): New variable.
33767         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
33768         New functions.
33769         (wbp_table): New structure.
33770         (output_wbp, output_wbrk_tables): New functions.
33771         (main): Accept additional argument. Invoke fill_org_wbp,
33772         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
33773         output_wbrk_tables.
33774         * modules/gen-uni-tables (Description): Update.
33775         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
33776         gen-uni-tables.
33777
33778         New module 'uniwbrk/base'.
33779         * modules/uniwbrk/base: New file.
33780         * lib/uniwbrk.h: New file.
33781
33782 2009-02-08  Bruno Haible  <bruno@clisp.org>
33783
33784         Update to Unicode 5.1.0.
33785         * lib/gen-uni-tables.c (is_property_alphabetic): Include
33786         U+2185..U+2188.
33787         (is_property_default_ignorable_code_point): Don't include characters
33788         of category Cc or Cs and not-a-characters.
33789         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
33790         U+0D79, U+109E, U+109F, U+A60C.
33791         * lib/unictype/bidi_of.h: Regenerated.
33792         * lib/unictype/blocks.h: Regenerated.
33793         * lib/unictype/categ_C.h: Regenerated.
33794         * lib/unictype/categ_Cf.h: Regenerated.
33795         * lib/unictype/categ_Cn.h: Regenerated.
33796         * lib/unictype/categ_L.h: Regenerated.
33797         * lib/unictype/categ_Ll.h: Regenerated.
33798         * lib/unictype/categ_Lm.h: Regenerated.
33799         * lib/unictype/categ_Lo.h: Regenerated.
33800         * lib/unictype/categ_Lu.h: Regenerated.
33801         * lib/unictype/categ_M.h: Regenerated.
33802         * lib/unictype/categ_Mc.h: Regenerated.
33803         * lib/unictype/categ_Me.h: Regenerated.
33804         * lib/unictype/categ_Mn.h: Regenerated.
33805         * lib/unictype/categ_N.h: Regenerated.
33806         * lib/unictype/categ_Nd.h: Regenerated.
33807         * lib/unictype/categ_Nl.h: Regenerated.
33808         * lib/unictype/categ_No.h: Regenerated.
33809         * lib/unictype/categ_P.h: Regenerated.
33810         * lib/unictype/categ_Pd.h: Regenerated.
33811         * lib/unictype/categ_Pe.h: Regenerated.
33812         * lib/unictype/categ_Pf.h: Regenerated.
33813         * lib/unictype/categ_Pi.h: Regenerated.
33814         * lib/unictype/categ_Po.h: Regenerated.
33815         * lib/unictype/categ_Ps.h: Regenerated.
33816         * lib/unictype/categ_S.h: Regenerated.
33817         * lib/unictype/categ_Sk.h: Regenerated.
33818         * lib/unictype/categ_Sm.h: Regenerated.
33819         * lib/unictype/categ_So.h: Regenerated.
33820         * lib/unictype/categ_of.h: Regenerated.
33821         * lib/unictype/combining.h: Regenerated.
33822         * lib/unictype/ctype_alnum.h: Regenerated.
33823         * lib/unictype/ctype_alpha.h: Regenerated.
33824         * lib/unictype/ctype_graph.h: Regenerated.
33825         * lib/unictype/ctype_lower.h: Regenerated.
33826         * lib/unictype/ctype_print.h: Regenerated.
33827         * lib/unictype/ctype_punct.h: Regenerated.
33828         * lib/unictype/ctype_upper.h: Regenerated.
33829         * lib/unictype/decdigit.h: Regenerated.
33830         * lib/unictype/digit.h: Regenerated.
33831         * lib/unictype/mirror.h: Regenerated.
33832         * lib/unictype/numeric.h: Regenerated.
33833         * lib/unictype/pr_alphabetic.h: Regenerated.
33834         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
33835         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
33836         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
33837         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
33838         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
33839         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
33840         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
33841         * lib/unictype/pr_combining.h: Regenerated.
33842         * lib/unictype/pr_dash.h: Regenerated.
33843         * lib/unictype/pr_decimal_digit.h: Regenerated.
33844         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
33845         * lib/unictype/pr_deprecated.h: Regenerated.
33846         * lib/unictype/pr_diacritic.h: Regenerated.
33847         * lib/unictype/pr_extender.h: Regenerated.
33848         * lib/unictype/pr_format_control.h: Regenerated.
33849         * lib/unictype/pr_grapheme_base.h: Regenerated.
33850         * lib/unictype/pr_grapheme_extend.h: Regenerated.
33851         * lib/unictype/pr_grapheme_link.h: Regenerated.
33852         * lib/unictype/pr_id_continue.h: Regenerated.
33853         * lib/unictype/pr_id_start.h: Regenerated.
33854         * lib/unictype/pr_ideographic.h: Regenerated.
33855         * lib/unictype/pr_ignorable_control.h: Regenerated.
33856         * lib/unictype/pr_lowercase.h: Regenerated.
33857         * lib/unictype/pr_math.h: Regenerated.
33858         * lib/unictype/pr_numeric.h: Regenerated.
33859         * lib/unictype/pr_other_alphabetic.h: Regenerated.
33860         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
33861         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
33862         * lib/unictype/pr_other_id_continue.h: Regenerated.
33863         * lib/unictype/pr_other_lowercase.h: Regenerated.
33864         * lib/unictype/pr_other_math.h: Regenerated.
33865         * lib/unictype/pr_punctuation.h: Regenerated.
33866         * lib/unictype/pr_sentence_terminal.h: Regenerated.
33867         * lib/unictype/pr_soft_dotted.h: Regenerated.
33868         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
33869         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
33870         * lib/unictype/pr_unified_ideograph.h: Regenerated.
33871         * lib/unictype/pr_uppercase.h: Regenerated.
33872         * lib/unictype/pr_xid_continue.h: Regenerated.
33873         * lib/unictype/pr_xid_start.h: Regenerated.
33874         * lib/unictype/pr_zero_width.h: Regenerated.
33875         * lib/unictype/scripts.h: Regenerated.
33876         * lib/unictype/scripts_byname.gperf: Regenerated.
33877         * lib/unictype/sy_java_ident.h: Regenerated.
33878         * lib/unilbrk/lbrkprop1.h: Regenerated.
33879         * lib/unilbrk/lbrkprop2.h: Regenerated.
33880         * tests/unictype/test-categ_C.c: Regenerated.
33881         * tests/unictype/test-categ_Cf.c: Regenerated.
33882         * tests/unictype/test-categ_Cn.c: Regenerated.
33883         * tests/unictype/test-categ_L.c: Regenerated.
33884         * tests/unictype/test-categ_Ll.c: Regenerated.
33885         * tests/unictype/test-categ_Lm.c: Regenerated.
33886         * tests/unictype/test-categ_Lo.c: Regenerated.
33887         * tests/unictype/test-categ_Lu.c: Regenerated.
33888         * tests/unictype/test-categ_M.c: Regenerated.
33889         * tests/unictype/test-categ_Mc.c: Regenerated.
33890         * tests/unictype/test-categ_Me.c: Regenerated.
33891         * tests/unictype/test-categ_Mn.c: Regenerated.
33892         * tests/unictype/test-categ_N.c: Regenerated.
33893         * tests/unictype/test-categ_Nd.c: Regenerated.
33894         * tests/unictype/test-categ_Nl.c: Regenerated.
33895         * tests/unictype/test-categ_No.c: Regenerated.
33896         * tests/unictype/test-categ_P.c: Regenerated.
33897         * tests/unictype/test-categ_Pd.c: Regenerated.
33898         * tests/unictype/test-categ_Pe.c: Regenerated.
33899         * tests/unictype/test-categ_Pf.c: Regenerated.
33900         * tests/unictype/test-categ_Pi.c: Regenerated.
33901         * tests/unictype/test-categ_Po.c: Regenerated.
33902         * tests/unictype/test-categ_Ps.c: Regenerated.
33903         * tests/unictype/test-categ_S.c: Regenerated.
33904         * tests/unictype/test-categ_Sk.c: Regenerated.
33905         * tests/unictype/test-categ_Sm.c: Regenerated.
33906         * tests/unictype/test-categ_So.c: Regenerated.
33907         * tests/unictype/test-ctype_alnum.c: Regenerated.
33908         * tests/unictype/test-ctype_alpha.c: Regenerated.
33909         * tests/unictype/test-ctype_graph.c: Regenerated.
33910         * tests/unictype/test-ctype_lower.c: Regenerated.
33911         * tests/unictype/test-ctype_print.c: Regenerated.
33912         * tests/unictype/test-ctype_punct.c: Regenerated.
33913         * tests/unictype/test-ctype_upper.c: Regenerated.
33914         * tests/unictype/test-decdigit.h: Regenerated.
33915         * tests/unictype/test-digit.h: Regenerated.
33916         * tests/unictype/test-numeric.h: Regenerated.
33917         * tests/unictype/test-pr_alphabetic.c: Regenerated.
33918         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
33919         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
33920         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
33921         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
33922         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
33923         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
33924         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
33925         * tests/unictype/test-pr_combining.c: Regenerated.
33926         * tests/unictype/test-pr_dash.c: Regenerated.
33927         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
33928         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
33929         * tests/unictype/test-pr_deprecated.c: Regenerated.
33930         * tests/unictype/test-pr_diacritic.c: Regenerated.
33931         * tests/unictype/test-pr_extender.c: Regenerated.
33932         * tests/unictype/test-pr_format_control.c: Regenerated.
33933         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
33934         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
33935         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
33936         * tests/unictype/test-pr_id_continue.c: Regenerated.
33937         * tests/unictype/test-pr_id_start.c: Regenerated.
33938         * tests/unictype/test-pr_ideographic.c: Regenerated.
33939         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
33940         * tests/unictype/test-pr_lowercase.c: Regenerated.
33941         * tests/unictype/test-pr_math.c: Regenerated.
33942         * tests/unictype/test-pr_numeric.c: Regenerated.
33943         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
33944         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
33945         Regenerated.
33946         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
33947         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
33948         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
33949         * tests/unictype/test-pr_other_math.c: Regenerated.
33950         * tests/unictype/test-pr_punctuation.c: Regenerated.
33951         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
33952         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
33953         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
33954         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
33955         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
33956         * tests/unictype/test-pr_uppercase.c: Regenerated.
33957         * tests/unictype/test-pr_xid_continue.c: Regenerated.
33958         * tests/unictype/test-pr_xid_start.c: Regenerated.
33959         * tests/unictype/test-pr_zero_width.c: Regenerated.
33960
33961         Update to Unicode 5.1.0.
33962         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
33963         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
33964         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
33965         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
33966         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
33967         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
33968         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
33969         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
33970         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
33971         (nonspacing_table_ind): Update.
33972         * tests/uniwidth/test-uc_width2.sh: Update expected result.
33973
33974         Update to Unicode 5.1.0.
33975         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
33976         code transform.
33977         * lib/uniname/uniname.c (unicode_character_name,
33978         unicode_name_character): Add the range 0x1Fxxx to the code transform.
33979         * lib/uniname/uninames.h: Regenerated.
33980         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
33981
33982 2009-02-07  Bruno Haible  <bruno@clisp.org>
33983
33984         Merge gen-ctype and gen-lbrk into a single program.
33985         * lib/gen-uni-tables.c: New file, incorporating
33986         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
33987         Add directory prefixes to the names of the generated files.
33988         * lib/unictype/gen-ctype.c: Remove file.
33989         * lib/unilbrk/gen-lbrk.c: Remove file.
33990         * modules/gen-uni-tables: New file.
33991         * modules/unictype/gen-ctype: Remove file.
33992         * modules/unilbrk/gen-lbrk: Remove file.
33993
33994 2009-02-07  Bruno Haible  <bruno@clisp.org>
33995
33996         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
33997
33998         New module 'unistr/u32-strcoll'.
33999         * modules/unistr/u32-strcoll: New file.
34000         * lib/unistr/u32-strcoll.c: New file.
34001
34002         New module 'unistr/u16-strcoll'.
34003         * modules/unistr/u16-strcoll: New file.
34004         * lib/unistr/u16-strcoll.c: New file.
34005
34006         New module 'unistr/u8-strcoll'.
34007         * modules/unistr/u8-strcoll: New file.
34008         * lib/unistr/u8-strcoll.c: New file.
34009         * lib/unistr/u-strcoll.h: New file.
34010
34011 2009-02-07  Bruno Haible  <bruno@clisp.org>
34012
34013         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
34014         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
34015         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
34016         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
34017         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
34018         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
34019
34020 2009-02-07  Bruno Haible  <bruno@clisp.org>
34021
34022         Make 64-bit clean.
34023         * lib/unictype/gen-ctype.c (output_predicate, output_category,
34024         output_combclass, output_bidi_category, output_decimal_digit,
34025         output_digit, output_numeric, output_mirror, output_scripts,
34026         output_ident_category): Use proper width specifier in format strings.
34027
34028 2009-02-07  Bruno Haible  <bruno@clisp.org>
34029
34030         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
34031         failure behaviour.
34032
34033 2009-02-07  Jim Meyering  <meyering@redhat.com>
34034
34035         regex: avoid compilation failure with upcoming gcc-4.4
34036         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
34037         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
34038         "... error: integer overflow in preprocessor expression".
34039
34040 2009-02-05  Ben Pfaff  <blp@gnu.org>
34041
34042         Fix link errors on Windows when close module is used.
34043         * modules/close: Add $(LIB_CLOSE) to Link section.
34044         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
34045         $(LIB_CLOSE) on Windows.
34046
34047 2009-02-05  Jim Meyering  <meyering@redhat.com>
34048
34049         still avoid unused-parameter warnings, but do it cleanly
34050         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
34051         (get_fs_usage): Cast to void instead.
34052         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
34053         (dev_from_mount_options, read_file_system_list): Cast to void.
34054         Prompted by Bruno Haible.
34055
34056 2009-02-04  Jim Meyering  <meyering@redhat.com>
34057
34058         fsusage.c: correct copyright year
34059         * lib/fsusage.c: Reflect year in which the change is pushed into
34060
34061         avoid misc. warnings
34062         * lib/fsusage.c (UNUSED_PARAM): Define.
34063         (get_fs_usage): Mark parameter "disk" as unused.
34064         * lib/getugroups.c (getgrent): Use "void" in prototype.
34065         * lib/mountlist.c: Mark unused parameters.
34066         (read_file_system_list): Declare a local with "const".
34067         * lib/nanosleep.c (getnow): Declare static.
34068         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
34069
34070         dirfd: set errno upon failure
34071         * lib/dirfd.c: Include <errno.h>.
34072         Set errno to ENOTSUP when returning -1.
34073         * modules/dirfd (Depends-on): Add errno.
34074         Suggested by John Kodis <kodis@comcast.net>.
34075
34076 2009-02-01  Bruno Haible  <bruno@clisp.org>
34077
34078         Don't assume sizeof (long) >= sizeof (void *).
34079         * lib/memcmp.c: Include stdint.h.
34080         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
34081         srcp2 to 'const byte *'.
34082         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
34083         types to uintptr_t.
34084         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
34085         * modules/memcmp (Depends-on): Add stdint.
34086         Reported by Ozkan Sezer <sezeroz@gmail.com>.
34087
34088 2009-01-30  Eric Blake  <ebb9@byu.net>
34089
34090         fix more require-before-expand issues
34091         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
34092         expand, AC_PROG_AWK.
34093         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
34094
34095 2009-01-28  Eric Blake  <ebb9@byu.net>
34096
34097         version-etc: use consistent URL formatting
34098         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
34099         Improve formatting.  Use fputs for string without %.
34100
34101 2009-01-28  Jim Meyering  <meyering@redhat.com>
34102
34103         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
34104         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
34105         "underquoted definition of NAME" from autoconf-2.59.
34106
34107 2009-01-28  Bruno Haible  <bruno@clisp.org>
34108
34109         * doc/gnulib.texi: Add "Obsolete modules" to index.
34110
34111 2009-01-28  Jim Meyering  <meyering@redhat.com>
34112
34113         useless-if-before-free: recognize more variants
34114         * build-aux/useless-if-before-free: Also recognize e.g.,
34115         if (NULL != p) free (p);
34116
34117 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
34118
34119         test-getaddrinfo: skip (don't fail) this test when there's no network
34120         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
34121         on the presumption that it means you lack network access.
34122
34123 2009-01-26  Jim Meyering  <meyering@redhat.com>
34124
34125         fflush: avoid warnings on modern systems
34126         * lib/fflush.c (rpl_fflush): Move declarations of locals,
34127         pos and result, into scopes where they're used.
34128
34129 2009-01-26  Eric Blake  <ebb9@byu.net>
34130
34131         Silence warning reintroduced by recent extensions patch.
34132         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
34133         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
34134         autoconf.
34135
34136         Backport improved autoconf semantics of AC_DEFUN_ONCE.
34137         * m4/00gnulib.m4: New file.
34138         * gnulib-tool (func_get_filelist): Always use it.
34139         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
34140         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
34141
34142 2009-01-25  Bruno Haible  <bruno@clisp.org>
34143
34144         Make test-quotearg work on MacOS X and AIX.
34145         * tests/test-quotearg.sh: New file.
34146         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
34147         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
34148         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
34149         include <libintl.h>.
34150         (fake_locale): Remove variable.
34151         (gettext, dgettext, dcgettext): Remove functions.
34152         (main): Instead of setting a fake locale, set a real locale. Call
34153         textdomain and bindtextdomain.
34154         * modules/quotearg-tests (Files): Add the new files.
34155         (Depends-on): Add gettext, setenv, unsetenv.
34156         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
34157         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
34158         Augment TESTS_ENVIRONMENT.
34159
34160 2009-01-25  Bruno Haible  <bruno@clisp.org>
34161
34162         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
34163         fr_FR.ISO8859-1 locale on MacOS X.
34164         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
34165         ja_JP.eucJP locale on MacOS X.
34166         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
34167         zh_CN.GB18030 locale on MacOS X.
34168
34169 2009-01-25  Bruno Haible  <bruno@clisp.org>
34170
34171         Avoid link errors on MacOS X 10.3.
34172         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
34173         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
34174
34175 2009-01-25  Bruno Haible  <bruno@clisp.org>
34176
34177         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
34178         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
34179         * modules/pipe (Files): Remove m4/posix_spawn.m4.
34180         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
34181         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
34182         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
34183         posix_spawnattr_init, posix_spawnattr_setsigmask,
34184         posix_spawnattr_setflags, posix_spawnattr_destroy.
34185
34186         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
34187         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
34188         * modules/execute (Files): Remove m4/posix_spawn.m4.
34189         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
34190         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
34191         posix_spawnattr_init, posix_spawnattr_setsigmask,
34192         posix_spawnattr_setflags, posix_spawnattr_destroy.
34193
34194 2009-01-25  Bruno Haible  <bruno@clisp.org>
34195
34196         * lib/glthread/threadlib.c: Include <stdlib.h>.
34197
34198 2009-01-25  Bruno Haible  <bruno@clisp.org>
34199
34200         * lib/glthread/threadlib.c (dummy): New declaration.
34201
34202 2009-01-25  Bruno Haible  <bruno@clisp.org>
34203
34204         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
34205         multibyte characters also for the GB18030 encoding. Don't crash when
34206         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
34207
34208 2009-01-25  Bruno Haible  <bruno@clisp.org>
34209
34210         Avoid redefining 'struct random_data' on OSF/1 5.1.
34211         * lib/stdlib.in.h: Include <random.h> if it exists.
34212         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
34213         HAVE_RANDOM_H. Include <random.h> when testing whether
34214         'struct random_data' exists.
34215         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
34216
34217 2009-01-25  Bruno Haible  <bruno@clisp.org>
34218
34219         Don't install charset.alias on MacOS X >= 10.3.
34220         * lib/localcharset.c (DARWIN7): New macro.
34221         (get_charset_aliases): Hardcode the result for Darwin7.
34222         * modules/localcharset (install-exec-local): Don't install
34223         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
34224
34225 2009-01-25  Bruno Haible  <bruno@clisp.org>
34226
34227         Don't install charset.alias on mingw and Cygwin.
34228         * modules/localcharset (install-exec-local): Don't install
34229         charset.alias on mingw and Cygwin, if the file does not yet exist.
34230         The result for these platforms is hardcoded in localcharset.c.
34231
34232 2009-01-25  Bruno Haible  <bruno@clisp.org>
34233
34234         Make it possible again to use AC_GNU_SOURCE together with gnulib.
34235         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
34236         before requiring AC_USE_SYSTEM_EXTENSIONS.
34237
34238 2009-01-25  Jim Meyering  <meyering@redhat.com>
34239
34240         c-strtod: avoid warnings
34241         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
34242         "assignment discards qualifiers from pointer target type" warnings.
34243
34244 2009-01-24  Bruno Haible  <bruno@clisp.org>
34245
34246         Add support for non-UTF-8 locales on MacOS X.
34247         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
34248         canonical encodings. For Darwin 7 and newer, don't map traditional
34249         encodings to UTF-8.
34250         Reported by Vincent Lefevre <vincent@vinc17.org>
34251         at <http://savannah.gnu.org/bugs/?25235>.
34252
34253 2009-01-24  Bruno Haible  <bruno@clisp.org>
34254
34255         * doc/gnulib.texi (Obsolete modules): New section.
34256         Reported by Mike Frysinger <vapier@gentoo.org>.
34257
34258 2009-01-24  Bruno Haible  <bruno@clisp.org>
34259
34260         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
34261         (%.dvi): New rule.
34262
34263 2009-01-24  Bruno Haible  <bruno@clisp.org>
34264
34265         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
34266         Reported by Eric Blake.
34267
34268 2009-01-24  Bruno Haible  <bruno@clisp.org>
34269
34270         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
34271         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
34272         Reported by Gary V. Vaughan <gary@gnu.org>.
34273
34274 2009-01-24  Bruno Haible  <bruno@clisp.org>
34275
34276         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
34277
34278 2009-01-23  Bruno Haible  <bruno@clisp.org>
34279
34280         Make c-strtod, c-strtold usable in libraries.
34281         * lib/c-strtod.c: Include string.h instead of xalloc.h.
34282         (C_STRTOD): Call strdup instead of xstrdup.
34283         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
34284         * modules/c-strtold (Depends-on): Likewise.
34285         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
34286         * NEWS: Mention the change.
34287         Reported by Michael Gold <mgold@ncf.ca>.
34288
34289 2009-01-23  Jim Meyering  <meyering@redhat.com>
34290
34291         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
34292         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
34293         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
34294
34295 2009-01-23  Simon Josefsson  <simon@josefsson.org>
34296
34297         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
34298         GNU CoreUtils.
34299         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
34300         * modules/version-etc (Description): Update.
34301
34302 2009-01-22  Bruno Haible  <bruno@clisp.org>
34303
34304         Cache the C locale object.
34305         * lib/c-strtod.c (c_locale_cache): New variable.
34306         (c_locale): New function.
34307         (C_STRTOD): Use it, and don't call freelocale.
34308         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
34309         Suggested by Paolo Bonzini.
34310
34311 2009-01-21  Bruno Haible  <bruno@clisp.org>
34312
34313         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
34314         conditions other than overflow.
34315
34316 2009-01-21  Bruno Haible  <bruno@clisp.org>
34317
34318         * lib/c-strtod.c: Include errno.h.
34319         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
34320         value from STRTOD_L and STRTOD.
34321
34322 2009-01-21  Bruno Haible  <bruno@clisp.org>
34323         and Jim Meyering  <meyering@redhat.com>
34324
34325         nanosleep: skip configure test (fail it) for apple universal builds
34326         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
34327         universal builds, assume that nanosleep does not work.
34328         * modules/nanosleep (Depends-on): Add multiarch.
34329
34330         mktime: skip configure test (fail it) for apple universal builds
34331         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
34332         universal builds, assume that mktime does not work.
34333         * modules/mktime (Depends-on): Add multiarch.
34334
34335 2009-01-21  Eric Blake  <ebb9@byu.net>
34336
34337         multiarch: avoid expand-before-require warning
34338         * modules/multiarch (configure.ac): Require, rather than expand,
34339         gl_MULTIARCH.
34340         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
34341         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
34342         enforce that all clients require it.  Partial reversion of
34343         2008-12-29 patch.
34344
34345         error: avoid expand-before-require warning
34346         * modules/errno (configure.ac): Require, rather than expand,
34347         gl_HEADER_ERRNO_H.
34348         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
34349         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
34350         enforce that all clients require it.
34351
34352         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
34353         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
34354         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
34355         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
34356
34357 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
34358
34359         Revert:
34360         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
34361
34362         regex: do not depend on obsolete modules.
34363         * modules/regex: Remove memcmp and memmove.
34364
34365 2009-01-20  Bruno Haible  <bruno@clisp.org>
34366
34367         Make the 'link' module link on Windows NT 4.
34368         * lib/link.c (_WIN32_WINNT): Don't define.
34369         (CreateHardLinkFuncType): New type.
34370         (CreateHardLinkFunc, initialized): New variables.
34371         (initialize): New function.
34372         (link): Invoke CreateHardLink indirectly through the function pointer.
34373
34374 2009-01-20  Bruno Haible  <bruno@clisp.org>
34375
34376         Fix compilation failure on mingw.
34377         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
34378
34379 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
34380
34381         * doc/c-strtod.texi: Mention a couple of restrictions.
34382
34383 2009-01-20  Jim Meyering  <meyering@redhat.com>
34384
34385         gettimeofday: move more declarations out of functions
34386         * lib/gettimeofday.c: Move extern declarations of tzset and
34387         gmtime out of containing functions.  Prompted by Bruno Haible.
34388
34389 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
34390
34391         regex: do not depend on obsolete modules.
34392         * modules/regex: Remove memcmp and memmove.
34393
34394 2009-01-19  Bruno Haible  <bruno@clisp.org>
34395
34396         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
34397         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
34398         gl_BIGENDIAN, not AC_C_BIGENDIAN.
34399         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
34400         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
34401
34402 2009-01-19  Bruno Haible  <bruno@clisp.org>
34403
34404         * tests/test-link.c: Include <errno.h>.
34405         (main): Exit with code 77 when a hard link cannot be created due to
34406         the file system.
34407         * tests/test-link.sh: Skip test when a hard link cannot be created due
34408         to the file system.
34409         Suggested by Eric Blake.
34410
34411 2009-01-19  Martin Lambers  <marlam@marlam.de>
34412
34413         * modules/link-tests: New file.
34414         * tests/test-link.sh: New file.
34415         * tests/test-link.c: New file.
34416
34417 2009-01-19  Eric Blake  <ebb9@byu.net>
34418
34419         doc: mention another function added in cygwin 1.7.0
34420         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
34421         Another new function in cygwin 1.7.
34422
34423 2009-01-19  Bruno Haible  <bruno@clisp.org>
34424
34425         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
34426         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
34427         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
34428         gl_BIGENDIAN, not AC_C_BIGENDIAN.
34429         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
34430         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
34431         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
34432         * m4/md4.m4 (gl_MD4): Likewise.
34433         * m4/md5.m4 (gl_MD5): Likewise.
34434         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
34435         * m4/sha1.m4 (gl_SHA1): Likewise.
34436         * m4/sha256.m4 (gl_SHA256): Likewise.
34437         * m4/sha512.m4 (gl_SHA512): Likewise.
34438
34439 2009-01-19  Bruno Haible  <bruno@clisp.org>
34440
34441         * modules/uniname/uniname-tests (Depends-on): Add progname.
34442         * tests/uniname/test-uninames.c: Include progname.h.
34443         (main): Call set_program_name.
34444
34445         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
34446         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
34447         (main): Call set_program_name.
34448
34449         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
34450         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
34451         (main): Call set_program_name.
34452
34453         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
34454         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
34455         (main): Call set_program_name.
34456
34457         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
34458         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
34459         (main): Call set_program_name.
34460
34461         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
34462         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
34463         (main): Call set_program_name.
34464
34465         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
34466         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
34467         (main): Call set_program_name.
34468
34469         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
34470         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
34471         (main): Call set_program_name.
34472
34473         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
34474         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
34475         (main): Call set_program_name.
34476
34477 2009-01-19  Eric Blake  <ebb9@byu.net>
34478
34479         test-unistd: test previous patch
34480         * tests/test-unistd.c: Test *_FILENO macros.
34481
34482         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
34483         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
34484         Guarantee a definition.
34485         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
34486         * modules/unistd-safer (Depends-on): Add dependency on unistd.
34487         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
34488         * lib/dup-safer.c (STDERR_FILENO): Likewise.
34489         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
34490         Likewise.
34491         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
34492         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
34493         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
34494         Likewise.
34495         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
34496         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
34497         (STDERR_FILENO): Likewise.
34498         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
34499         (STDERR_FILENO): Likewise.
34500         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
34501         (STDERR_FILENO): Likewise.
34502         Reported by Elbert Pol.
34503
34504 2009-01-19  Eric Blake  <ebb9@byu.net>
34505
34506         doc: mention more functions added in cygwin 1.7.0
34507         * doc/posix-functions/abort.texi (abort): Update wording related
34508         to cygwin.
34509         * doc/posix-functions/daylight.texi (daylight): Likewise.
34510         * doc/posix-functions/optarg.texi (optarg): Likewise.
34511         * doc/posix-functions/optarg.texi (opterr): Likewise.
34512         * doc/posix-functions/optarg.texi (optind): Likewise.
34513         * doc/posix-functions/optarg.texi (optopt): Likewise.
34514         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
34515         worked in 1.5.x, and was withdrawn in 1.7.
34516         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
34517         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
34518         cygwin versions.
34519         * doc/posix-functions/perror.texi (perror): Likewise.
34520         * doc/posix-functions/printf.texi (printf): Likewise.
34521         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
34522         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
34523         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
34524         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
34525         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
34526         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
34527         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
34528         Likewise.
34529         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
34530         Likewise.
34531         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
34532         this function.
34533         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
34534         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
34535         Likewise.
34536         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
34537         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
34538         * doc/posix-functions/confstr.texi (confstr): Likewise.
34539         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
34540         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
34541         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
34542         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
34543         * doc/posix-functions/fputws.texi (fputws): Likewise.
34544         * doc/posix-functions/fwide.texi (fwide): Likewise.
34545         * doc/posix-functions/getwc.texi (getwc): Likewise.
34546         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
34547         * doc/posix-functions/putwc.texi (putwc): Likewise.
34548         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
34549         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
34550         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
34551         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
34552         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
34553         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
34554         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
34555         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
34556         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
34557         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
34558         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
34559
34560 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
34561
34562         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
34563         * lib/ioctl.c: Include <sys/ioctl.h>.
34564
34565 2009-01-19  Simon Josefsson  <simon@josefsson.org>
34566
34567         * modules/getdate-tests (Depends-on): Add progname.
34568         * tests/test-getdate.c: Use progname module, to avoid link errors
34569         on non-glibc systems.
34570
34571 2009-01-18  Simon Josefsson  <simon@josefsson.org>
34572
34573         * modules/filenamecat-tests (Depends-on): Add progname.
34574         * modules/fstrcmp-tests (Depends-on): Likewise.
34575
34576         * tests/test-filenamecat.c: Use progname module, to avoid link
34577         errors on non-glibc systems.
34578         * tests/test-fstrcmp.c: Likewise.
34579
34580 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
34581
34582         gettimeofday: avoid warning: nested extern declaration of 'localtime'
34583         * lib/gettimeofday.c: Move extern declaration out of function.
34584
34585 2009-01-18  Bruno Haible  <bruno@clisp.org>
34586
34587         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
34588         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
34589         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
34590
34591 2009-01-18  Bruno Haible  <bruno@clisp.org>
34592
34593         * lib/strftime.c (MEMPCPY): Remove unused macro.
34594         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
34595
34596 2009-01-18  Martin Lambers  <marlam@marlam.de>
34597
34598         New module 'link'.
34599         * lib/unistd.in.h (link): New declaration.
34600         * lib/link.c: New file.
34601         * m4/link.m4: New file.
34602         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
34603         HAVE_LINK.
34604         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
34605         * modules/link: New file.
34606         * doc/posix-functions/link.texi: Mention the new module.
34607
34608 2009-01-18  Bruno Haible  <bruno@clisp.org>
34609
34610         * tests/test-avltree_list.c (main): Call set_program_name.
34611         * tests/test-avltree_oset.c (main): Likewise.
34612         * tests/test-obstack-printf.c: Include progname.h.
34613         (main): Call set_program_name.
34614         * tests/test-quotearg.c: Include progname.h.
34615         (main): Call set_program_name.
34616         * tests/test-xmemdup0.c: Include progname.h.
34617         (main): Call set_program_name.
34618
34619 2009-01-18  Bruno Haible  <bruno@clisp.org>
34620
34621         New module 'alphasort'.
34622         * lib/dirent.in.h (alphasort): New declaration.
34623         * lib/alphasort.c: New file, from glibc with modifications.
34624         * m4/alphasort.m4: New file.
34625         * modules/alphasort: New file.
34626         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
34627         HAVE_ALPHASORT.
34628         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
34629         HAVE_ALPHASORT.
34630         * doc/posix-functions/alphasort.texi: Mention the new module and the
34631         portability problems.
34632
34633 2009-01-18  Bruno Haible  <bruno@clisp.org>
34634
34635         New module 'scandir'.
34636         * lib/dirent.in.h (scandir): New declaration.
34637         * lib/scandir.c: New file, from glibc with modifications.
34638         * m4/scandir.m4: New file.
34639         * modules/scandir: New file.
34640         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
34641         HAVE_SCANDIR.
34642         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
34643         HAVE_SCANDIR.
34644         * doc/posix-functions/scandir.texi: Mention the new module and the
34645         portability problems.
34646
34647 2009-01-17  Bruno Haible  <bruno@clisp.org>
34648
34649         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
34650         Update documentation.
34651         (func_remove_suffix): Escape all dots in the suffix. Update
34652         documentation.
34653         (func_filter_filelist): Update documentation.
34654         Reported by Ralf Wildenhues.
34655
34656 2009-01-17  Bruno Haible  <bruno@clisp.org>
34657
34658         * modules/dprintf-posix-tests: New file.
34659         * tests/test-dprintf-posix.sh: New file.
34660         * tests/test-dprintf-posix.c: New file.
34661
34662         New modules 'dprintf', 'dprintf-posix'.
34663         * lib/stdio.in.h (dprintf): New declaration.
34664         * lib/dprintf.c: New file.
34665         * m4/dprintf.m4: New file.
34666         * m4/dprintf-posix.m4: New file.
34667         * modules/dprintf: New file.
34668         * modules/dprintf-posix: New file.
34669         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
34670         HAVE_DPRINTF, REPLACE_DPRINTF.
34671         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
34672         HAVE_DPRINTF, REPLACE_DPRINTF.
34673         * doc/posix-functions/dprintf.texi: Mention the new modules.
34674
34675 2009-01-17  Bruno Haible  <bruno@clisp.org>
34676
34677         * modules/vdprintf-posix-tests: New file.
34678         * tests/test-vdprintf-posix.sh: New file.
34679         * tests/test-vdprintf-posix.c: New file.
34680
34681         New modules 'vdprintf', 'vdprintf-posix'.
34682         * lib/stdio.in.h (vdprintf): New declaration.
34683         * lib/vdprintf.c: New file.
34684         * m4/vdprintf.m4: New file.
34685         * m4/vdprintf-posix.m4: New file.
34686         * modules/vdprintf: New file.
34687         * modules/vdprintf-posix: New file.
34688         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
34689         HAVE_VDPRINTF, REPLACE_VDPRINTF.
34690         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
34691         HAVE_VDPRINTF, REPLACE_VDPRINTF.
34692         * doc/posix-functions/vdprintf.texi: Mention the new modules.
34693
34694 2009-01-17  Bruno Haible  <bruno@clisp.org>
34695
34696         Fix replacement of fopen on mingw.
34697         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
34698         mingw.
34699
34700 2009-01-17  Bruno Haible  <bruno@clisp.org>
34701
34702         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
34703         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
34704
34705 2009-01-17  Bruno Haible  <bruno@clisp.org>
34706
34707         Avoid test-fflush2.sh failure on mingw.
34708         * tests/test-fflush2.c: Include binary-io.h.
34709         (main): Put standard input into binary mode.
34710         * modules/fflush-tests (Depends-on): Add binary-io.
34711
34712 2009-01-17  Bruno Haible  <bruno@clisp.org>
34713
34714         * lib/wchar.in.h: In another particular situation, include only the
34715         system's <wchar.h> file.
34716         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
34717         Reported by Albert Chin-A-Young <china@thewrittenword.com>
34718         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
34719
34720 2009-01-17  Bruno Haible  <bruno@clisp.org>
34721
34722         Support for stripping executables in --enable-relocatable.
34723         * build-aux/install-reloc: Expect one more argument, or an environment
34724         variable RELOC_STRIP_PROG. If set, strip the destination program and
34725         its wrapper.
34726         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
34727         RELOC_STRIP_PROG.
34728         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
34729         to set RELOCATABLE_STRIP.
34730         * NEWS: Mention the new Makefile requirement.
34731
34732 2009-01-17  Bruno Haible  <bruno@clisp.org>
34733
34734         * build-aux/install-reloc: Remove debugging information left over by
34735         C compiler on MacOS X.
34736
34737 2009-01-17  Bruno Haible  <bruno@clisp.org>
34738
34739         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
34740         * lib/progreloc.c (find_executable): Fix type of pointer passed to
34741         _NSGetExecutablePath.
34742
34743 2009-01-16  Jim Meyering  <meyering@redhat.com>
34744
34745         strerror: avoid warnings about discarding "const"
34746         * lib/strerror.c (rpl_strerror): Instead of returning a const
34747         string from each and every "case", use a variable, and add a single
34748         cast after the switch.
34749
34750 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
34751
34752         * lib/arpa_inet.in.h: Add extern "C" block for C++.
34753
34754 2009-01-16  Bruno Haible  <bruno@clisp.org>
34755
34756         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
34757         array initializer syntax that also works in C++ mode.
34758         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34759
34760 2009-01-16  Jim Meyering  <meyering@redhat.com>
34761
34762         poll: suppress a warning
34763         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
34764         to ignore "...unsigned expression < 0 is always false" warnings.
34765
34766 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
34767
34768         poll: remove declarations of unused variables
34769         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
34770         sockbuf and optlen.
34771
34772 2009-01-15  Bruno Haible  <bruno@clisp.org>
34773
34774         Make fflush-after-ungetc POSIX compliant on BSD systems.
34775         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
34776         (clear_ungetc_buffer): Implement also for other systems.
34777         (rpl_fflush): On glibc systems, invoke
34778         clear_ungetc_buffer_preserving_position. Otherwise, invoke
34779         clear_ungetc_buffer after fetching the stream's position, not before.
34780
34781 2009-01-15  Bruno Haible  <bruno@clisp.org>
34782
34783         Make fflush-after-ungetc POSIX compliant on glibc systems.
34784         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
34785         after ungetc.
34786         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
34787         (rpl_fflush): On glibc systems, simply call the system's fflush
34788         function after clearing the ungetc buffer.
34789         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
34790         Instead, lseek only to the end of file, then use the system's fseeko
34791         for the rest. On glibc systems, reset the EOF indicator bit.
34792
34793 2009-01-15  Jim Meyering  <meyering@redhat.com>
34794
34795         openmp.m4: revert quote-adding change, for portability to older autoconf
34796         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
34797         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
34798         Simon Josefsson noticed the problem when using autoconf-2.61.
34799
34800 2009-01-15  Bruno Haible  <bruno@clisp.org>
34801
34802         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
34803         * tests/test-fflush2.c (ASSERT): Always fail.
34804         (main): Add two tests for fflush() after ungetc(), taking into account
34805         the Austin Group's clarification.
34806         Suggested by Eric Blake.
34807
34808 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
34809
34810         mktime.m4: remove K&R-style function prototypes
34811         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
34812         for the Sun C++ compiler.
34813
34814 2009-01-14  Bruno Haible  <bruno@clisp.org>
34815
34816         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
34817         while including <wchar.h>.
34818         * lib/wchar.in.h: In two particular situations on HP-UX, include only
34819         the system's <wchar.h> file.
34820         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34821
34822 2009-01-14  Bruno Haible  <bruno@clisp.org>
34823
34824         * m4/csharp.m4: Don't mention gettext on the serial number line.
34825         * m4/csharpexec.m4: Likewise.
34826         * m4/eaccess.m4: Likewise.
34827         * m4/javaexec.m4: Likewise.
34828         * m4/sig_atomic_t.m4: Likewise.
34829         * m4/tmpdir.m4: Likewise.
34830         * m4/intldir.m4: Bump gettext version.
34831         * m4/lib-ld.m4: Likewise.
34832
34833 2009-01-14  Bruno Haible  <bruno@clisp.org>
34834
34835         * lib/progname.c (set_program_name): Add more comments.
34836         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
34837
34838 2009-01-14  Simon Josefsson  <simon@josefsson.org>
34839
34840         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
34841         were sys/stat.h does not define it.
34842
34843 2009-01-14  Jim Meyering  <meyering@redhat.com>
34844
34845         many *.m4 files: improve m4 quoting
34846         99% of this change was performed by running the following commands:
34847         git ls-files | grep '\.m4$' | xargs perl -pi \
34848           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
34849           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
34850           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
34851           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
34852         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
34853         The remainder were to add Copyright dates, increment serial numbers,
34854         undo some changes in comments, exclude m4/intl.m4, and add quotes
34855         around the "1" in ",1" where the unusual spacing prohibited the
34856         above regexps from doing the job.  For more details, see
34857         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
34858         * m4/acl.m4: Modified.
34859         * m4/afs.m4: Likewise.
34860         * m4/alloca.m4: Likewise.
34861         * m4/argp.m4: Likewise.
34862         * m4/argz.m4: Likewise.
34863         * m4/atexit.m4: Likewise.
34864         * m4/bison-i18n.m4: Likewise.
34865         * m4/bison.m4: Likewise.
34866         * m4/byteswap.m4: Likewise.
34867         * m4/c-stack.m4: Likewise.
34868         * m4/c-strtod.m4: Likewise.
34869         * m4/calloc.m4: Likewise.
34870         * m4/canonicalize-lgpl.m4: Likewise.
34871         * m4/chown.m4: Likewise.
34872         * m4/clock_time.m4: Likewise.
34873         * m4/codeset.m4: Likewise.
34874         * m4/copy-file.m4: Likewise.
34875         * m4/csharp.m4: Likewise.
34876         * m4/csharpcomp.m4: Likewise.
34877         * m4/csharpexec.m4: Likewise.
34878         * m4/d-ino.m4: Likewise.
34879         * m4/d-type.m4: Likewise.
34880         * m4/dirfd.m4: Likewise.
34881         * m4/double-slash-root.m4: Likewise.
34882         * m4/eaccess.m4: Likewise.
34883         * m4/eealloc.m4: Likewise.
34884         * m4/environ.m4: Likewise.
34885         * m4/errno_h.m4: Likewise.
34886         * m4/euidaccess.m4: Likewise.
34887         * m4/execute.m4: Likewise.
34888         * m4/fatal-signal.m4: Likewise.
34889         * m4/fchdir.m4: Likewise.
34890         * m4/fcntl_h.m4: Likewise.
34891         * m4/fileblocks.m4: Likewise.
34892         * m4/filenamecat.m4: Likewise.
34893         * m4/findprog.m4: Likewise.
34894         * m4/flexmember.m4: Likewise.
34895         * m4/fnmatch.m4: Likewise.
34896         * m4/fopen.m4: Likewise.
34897         * m4/fpending.m4: Likewise.
34898         * m4/fprintf-posix.m4: Likewise.
34899         * m4/free.m4: Likewise.
34900         * m4/frexp.m4: Likewise.
34901         * m4/frexpl.m4: Likewise.
34902         * m4/fsusage.m4: Likewise.
34903         * m4/ftruncate.m4: Likewise.
34904         * m4/gc-camellia.m4: Likewise.
34905         * m4/gc-random.m4: Likewise.
34906         * m4/gc.m4: Likewise.
34907         * m4/getaddrinfo.m4: Likewise.
34908         * m4/getcwd-abort-bug.m4: Likewise.
34909         * m4/getcwd-path-max.m4: Likewise.
34910         * m4/getdate.m4: Likewise.
34911         * m4/getdomainname.m4: Likewise.
34912         * m4/getgroups.m4: Likewise.
34913         * m4/gethostname.m4: Likewise.
34914         * m4/gethrxtime.m4: Likewise.
34915         * m4/getline.m4: Likewise.
34916         * m4/getloadavg.m4: Likewise.
34917         * m4/getndelim2.m4: Likewise.
34918         * m4/getpass.m4: Likewise.
34919         * m4/gettext.m4: Likewise.
34920         * m4/gettime.m4: Likewise.
34921         * m4/gettimeofday.m4: Likewise.
34922         * m4/gnulib-common.m4: Likewise.
34923         * m4/group-member.m4: Likewise.
34924         * m4/host-os.m4: Likewise.
34925         * m4/iconv.m4: Likewise.
34926         * m4/iconv_open.m4: Likewise.
34927         * m4/inet_ntop.m4: Likewise.
34928         * m4/inet_pton.m4: Likewise.
34929         * m4/inline.m4: Likewise.
34930         * m4/intldir.m4: Likewise.
34931         * m4/intlmacosx.m4: Likewise.
34932         * m4/intmax.m4: Likewise.
34933         * m4/intmax_t.m4: Likewise.
34934         * m4/inttypes.m4: Likewise.
34935         * m4/inttypes_h.m4: Likewise.
34936         * m4/inttypes-pri.m4: Likewise.
34937         * m4/isapipe.m4: Likewise.
34938         * m4/isnand.m4: Likewise.
34939         * m4/isnanf.m4: Likewise.
34940         * m4/isnanl.m4: Likewise.
34941         * m4/javacomp.m4: Likewise.
34942         * m4/javaexec.m4: Likewise.
34943         * m4/jm-winsz1.m4: Likewise.
34944         * m4/jm-winsz2.m4: Likewise.
34945         * m4/lchown.m4: Likewise.
34946         * m4/lcmessage.m4: Likewise.
34947         * m4/ldexpl.m4: Likewise.
34948         * m4/lib-ld.m4: Likewise.
34949         * m4/lib-link.m4: Likewise.
34950         * m4/libsigsegv.m4: Likewise.
34951         * m4/link-follow.m4: Likewise.
34952         * m4/localcharset.m4: Likewise.
34953         * m4/locale-fr.m4: Likewise.
34954         * m4/locale-ja.m4: Likewise.
34955         * m4/locale-tr.m4: Likewise.
34956         * m4/locale-zh.m4: Likewise.
34957         * m4/lock.m4: Likewise.
34958         * m4/longlong.m4: Likewise.
34959         * m4/ls-mntd-fs.m4: Likewise.
34960         * m4/lstat.m4: Likewise.
34961         * m4/malloc.m4: Likewise.
34962         * m4/mathl.m4: Likewise.
34963         * m4/mbrtowc.m4: Likewise.
34964         * m4/mbstate_t.m4: Likewise.
34965         * m4/mbswidth.m4: Likewise.
34966         * m4/memchr.m4: Likewise.
34967         * m4/memcmp.m4: Likewise.
34968         * m4/memcpy.m4: Likewise.
34969         * m4/memmem.m4: Likewise.
34970         * m4/memmove.m4: Likewise.
34971         * m4/mempcpy.m4: Likewise.
34972         * m4/memrchr.m4: Likewise.
34973         * m4/memset.m4: Likewise.
34974         * m4/minmax.m4: Likewise.
34975         * m4/mkdir-slash.m4: Likewise.
34976         * m4/mkdtemp.m4: Likewise.
34977         * m4/mktime.m4: Likewise.
34978         * m4/mmap-anon.m4: Likewise.
34979         * m4/mountlist.m4: Likewise.
34980         * m4/nanosleep.m4: Likewise.
34981         * m4/nls.m4: Likewise.
34982         * m4/nocrash.m4: Likewise.
34983         * m4/open.m4: Likewise.
34984         * m4/openat.m4: Likewise.
34985         * m4/openmp.m4: Likewise.
34986         * m4/pathmax.m4: Likewise.
34987         * m4/perl.m4: Likewise.
34988         * m4/physmem.m4: Likewise.
34989         * m4/pipe.m4: Likewise.
34990         * m4/po.m4: Likewise.
34991         * m4/poll.m4: Likewise.
34992         * m4/posixtm.m4: Likewise.
34993         * m4/posixver.m4: Likewise.
34994         * m4/printf-frexp.m4: Likewise.
34995         * m4/printf-frexpl.m4: Likewise.
34996         * m4/printf-posix.m4: Likewise.
34997         * m4/printf-posix-rpl.m4: Likewise.
34998         * m4/printf.m4: Likewise.
34999         * m4/progtest.m4: Likewise.
35000         * m4/putenv.m4: Likewise.
35001         * m4/readline.m4: Likewise.
35002         * m4/readlink.m4: Likewise.
35003         * m4/readutmp.m4: Likewise.
35004         * m4/realloc.m4: Likewise.
35005         * m4/regex.m4: Likewise.
35006         * m4/relocatable.m4: Likewise.
35007         * m4/relocatable-lib.m4: Likewise.
35008         * m4/rename-dest-slash.m4: Likewise.
35009         * m4/rename.m4: Likewise.
35010         * m4/rmdir-errno.m4: Likewise.
35011         * m4/rmdir.m4: Likewise.
35012         * m4/roundf.m4: Likewise.
35013         * m4/roundl.m4: Likewise.
35014         * m4/rpmatch.m4: Likewise.
35015         * m4/save-cwd.m4: Likewise.
35016         * m4/selinux-selinux-h.m4: Likewise.
35017         * m4/setenv.m4: Likewise.
35018         * m4/settime.m4: Likewise.
35019         * m4/sig2str.m4: Likewise.
35020         * m4/sig_atomic_t.m4: Likewise.
35021         * m4/signalblocking.m4: Likewise.
35022         * m4/signbit.m4: Likewise.
35023         * m4/sigpipe.m4: Likewise.
35024         * m4/sockets.m4: Likewise.
35025         * m4/sockpfaf.m4: Likewise.
35026         * m4/st_dm_mode.m4: Likewise.
35027         * m4/stat-time.m4: Likewise.
35028         * m4/stdbool.m4: Likewise.
35029         * m4/stdint.m4: Likewise.
35030         * m4/stdint_h.m4: Likewise.
35031         * m4/stpcpy.m4: Likewise.
35032         * m4/stpncpy.m4: Likewise.
35033         * m4/strcase.m4: Likewise.
35034         * m4/strchrnul.m4: Likewise.
35035         * m4/strcspn.m4: Likewise.
35036         * m4/strdup.m4: Likewise.
35037         * m4/strftime.m4: Likewise.
35038         * m4/strndup.m4: Likewise.
35039         * m4/strnlen.m4: Likewise.
35040         * m4/strpbrk.m4: Likewise.
35041         * m4/strptime.m4: Likewise.
35042         * m4/strsep.m4: Likewise.
35043         * m4/strtod.m4: Likewise.
35044         * m4/strtoimax.m4: Likewise.
35045         * m4/strtok_r.m4: Likewise.
35046         * m4/strtol.m4: Likewise.
35047         * m4/strtoll.m4: Likewise.
35048         * m4/strtoul.m4: Likewise.
35049         * m4/strtoull.m4: Likewise.
35050         * m4/strtoumax.m4: Likewise.
35051         * m4/strverscmp.m4: Likewise.
35052         * m4/threadlib.m4: Likewise.
35053         * m4/timegm.m4: Likewise.
35054         * m4/tm_gmtoff.m4: Likewise.
35055         * m4/tmpdir.m4: Likewise.
35056         * m4/tmpfile.m4: Likewise.
35057         * m4/tzset.m4: Likewise.
35058         * m4/uintmax_t.m4: Likewise.
35059         * m4/unlinkdir.m4: Likewise.
35060         * m4/unlocked-io.m4: Likewise.
35061         * m4/uptime.m4: Likewise.
35062         * m4/userspec.m4: Likewise.
35063         * m4/utimbuf.m4: Likewise.
35064         * m4/utime.m4: Likewise.
35065         * m4/utimes-null.m4: Likewise.
35066         * m4/utimes.m4: Likewise.
35067         * m4/vararrays.m4: Likewise.
35068         * m4/vasnprintf.m4: Likewise.
35069         * m4/vfprintf-posix.m4: Likewise.
35070         * m4/vprintf-posix.m4: Likewise.
35071         * m4/wait-process.m4: Likewise.
35072         * m4/wchar_t.m4: Likewise.
35073         * m4/wint_t.m4: Likewise.
35074         * m4/write-any-file.m4: Likewise.
35075         * m4/yield.m4: Likewise.
35076
35077 2009-01-13  Bruno Haible  <bruno@clisp.org>
35078
35079         Avoid test-copy-file.sh failures when ACL support insufficient.
35080         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
35081         TESTS_ENVIRONMENT.
35082         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
35083         Reported by Jim Meyering.
35084
35085 2009-01-13  Bruno Haible  <bruno@clisp.org>
35086
35087         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
35088         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
35089         * modules/unistdio/u8-printf-parse (Files): Likewise.
35090         * modules/unistdio/u32-printf-parse (Files): Likewise.
35091         * modules/unistdio/ulc-printf-parse (Files): Likewise.
35092
35093 2009-01-13  Simon Josefsson  <simon@josefsson.org>
35094
35095         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
35096         and m4/inttypes_h.m4 too.
35097
35098 2009-01-12  Eric Blake  <ebb9@byu.net>
35099
35100         tests: IRIX 6.2 cc can't compile -0.0 into .data
35101         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
35102         rather than at compile-time.
35103         * tests/test-floorl.c (minus_zero): Likewise.
35104         * tests/test-frexpl.c (minus_zero): Likewise.
35105         * tests/test-isnan.c (minus_zerol): Likewise.
35106         * tests/test-isnanl.h (minus_zero): Likewise.
35107         * tests/test-ldexpl.c (minus_zero): Likewise.
35108         * tests/test-roundl.c (minus_zero): Likewise.
35109         * tests/test-signbit.c (minus_zerol): Likewise.
35110         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
35111         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
35112         * tests/test-truncl.c (minus_zero): Likewise.
35113         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
35114         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
35115         Reported by Tom G. Christensen and Nelson H. F. Beebe.
35116
35117 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
35118
35119         regex: fix glibc bug 9697
35120         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
35121         handling.
35122
35123 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
35124
35125         regex: fix glibc bug 697
35126         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
35127         being NULL also if there are no backreferences.
35128
35129 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
35130
35131         regex: merge glibc changes
35132         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
35133         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
35134         re_string_skip_chars, re_string_reconstruct): Likewise.
35135         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
35136
35137 2009-01-07  Jim Meyering  <meyering@redhat.com>
35138
35139         poll: filter through cppi
35140         * lib/poll.c: Indent cpp directives to reflect nesting.
35141
35142 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
35143
35144         poll: don't return uninitialized
35145         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
35146
35147 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
35148
35149         avoid compile failure on AIX 6.1
35150         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
35151         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
35152
35153 2009-01-04  Jim Meyering  <meyering@redhat.com>
35154
35155         remove duplicate inclusion of <stdio.h>
35156         * tests/test-fprintf-posix.c: Likewise.
35157         * tests/test-printf-posix.c: Likewise.
35158         * tests/test-snprintf-posix.c: Likewise.
35159         * tests/test-sprintf-posix.c: Likewise.
35160         * tests/test-vasprintf-posix.c: Likewise.
35161         * tests/test-vfprintf-posix.c: Likewise.
35162         * tests/test-vprintf-posix.c: Likewise.
35163         * tests/test-vsnprintf-posix.c: Likewise.
35164         * tests/test-vsprintf-posix.c: Likewise.
35165
35166 2009-01-03  Jim Meyering  <meyering@redhat.com>
35167
35168         gnulib-tool: fix sed-based filtering
35169         * gnulib-tool (func_filter_filelist): Remove extra backslash
35170         in sed_fff_filter definition.
35171
35172 2009-01-02  Jim Meyering  <meyering@redhat.com>
35173
35174         strftime: avoid compilation failure on Solaris 2.6
35175         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
35176         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
35177         Don't #define mbrlen or mbsinit, since now they're guaranteed to
35178         be available.  Reported by Tom G. Christensen.  Details in
35179         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
35180
35181 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35182             Bruno Haible  <bruno@clisp.org>
35183
35184         Speed up gnulib-tool by doing more string processing through shell
35185         built-ins.
35186         * gnulib-tool (fast_func_append): New variable.
35187         (func_remove_prefix, func_remove_suffix): New functions.
35188         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
35189         (func_filter_filelist): New function.
35190         (func_get_dependencies): Use func_remove_suffix instead of sed.
35191         (func_get_automake_snippet): Use func_filter_filelist instead of a
35192         subshell and sed invocation.
35193
35194 2009-01-01  Bruno Haible  <bruno@clisp.org>
35195
35196         Fix a security bug.
35197         * gnulib-tool (func_import, import, update): Don't allow the characters
35198         '"', '$', '`', '\' in macro arguments that become part of commands that
35199         are evaluated.
35200
35201 2009-01-01  Bruno Haible  <bruno@clisp.org>
35202
35203         * gnulib-tool (func_reset_sigpipe): Add more comments.
35204
35205 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35206
35207         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
35208         func_emit_tests_Makefile_am, func_import): Abort loops early if we
35209         already know the answer.
35210
35211 2009-01-01  Jim Meyering  <meyering@redhat.com>
35212
35213         * lib/version-etc.c (version_etc_va): Update copyright year.
35214
35215 2008-12-30  Bruno Haible  <bruno@clisp.org>
35216
35217         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
35218         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
35219         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
35220
35221 2008-12-29  Eric Blake  <ebb9@byu.net>
35222
35223         multiarch: avoid autoconf AC_REQUIRE bug
35224         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
35225         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
35226         2.63 and older.
35227         Reported by Bruno Haible, and analyzed in
35228         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
35229
35230 2008-12-29  Bruno Haible  <bruno@clisp.org>
35231
35232         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
35233         files in subdirectories correctly.
35234         Reported by Ralf Wildenhues.
35235
35236 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35237
35238         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
35239         rather than 'join FILE -', for Solaris join.
35240
35241 2008-12-29  Bruno Haible  <bruno@clisp.org>
35242
35243         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
35244         quoting.
35245         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
35246         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
35247         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
35248         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
35249         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
35250         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
35251         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
35252         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
35253         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
35254         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
35255         * m4/nls.m4 (AM_NLS): Likewise.
35256         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
35257         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
35258         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
35259         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
35260         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
35261         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
35262         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
35263         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
35264         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
35265         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
35266         * m4/xsize.m4 (gl_XSIZE): Likewise.
35267         Suggested by Jim Meyering.
35268
35269 2008-11-17  Bruce Korb  <bkorb@gnu.org>
35270
35271         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
35272         * lib/parse-duration.c: use a switch instead of cascading if's.
35273
35274 2008-12-29  Eric Blake  <ebb9@byu.net>
35275
35276         wchar.h: supply WEOF on Irix 5.3
35277         * lib/wchar.in.h (wint_t): Also supply WEOF.
35278         * lib/wctype.in.h (wint_t): Likewise.
35279         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
35280         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
35281         Reported by Tom G. Christensen.
35282
35283 2008-12-26  Bruno Haible  <bruno@clisp.org>
35284
35285         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
35286         i486, i586, i686.
35287
35288 2008-12-26  Bruno Haible  <bruno@clisp.org>
35289
35290         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
35291
35292 2008-12-26  Bruno Haible  <bruno@clisp.org>
35293
35294         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
35295         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
35296         not __STDC_CONSTANT_MACROS.
35297         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
35298
35299 2008-12-25  Bruno Haible  <bruno@clisp.org>
35300
35301         Add support for universal builds to vasnprintf.
35302         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
35303         universal builds, guess no.
35304         * modules/vasnprintf-posix (Depends-on): Add multiarch.
35305         * modules/vasprintf-posix (Depends-on): Likewise.
35306         * modules/fprintf-posix (Depends-on): Likewise.
35307         * modules/vfprintf-posix (Depends-on): Likewise.
35308         * modules/snprintf-posix (Depends-on): Likewise.
35309         * modules/vsnprintf-posix (Depends-on): Likewise.
35310         * modules/sprintf-posix (Depends-on): Likewise.
35311         * modules/vsprintf-posix (Depends-on): Likewise.
35312         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
35313         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
35314         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
35315         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
35316         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
35317         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
35318         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
35319
35320         Add support for universal builds to <inttypes.h>.
35321         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
35322         _SCNu64_PREFIX): In Apple
35323         universal builds, define directly, using _LP64.
35324         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
35325         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
35326         * modules/inttypes (Depends-on): Add multiarch.
35327         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
35328
35329         Add support for universal builds to <stdint.h>.
35330         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
35331         universal builds, define directly, using _LP64.
35332         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
35333         Apple universal builds, don't test for the size and suffix of ptrdiff_t
35334         and size_t.
35335         * modules/stdint (Depends-on): Add multiarch.
35336         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
35337
35338         New module 'multiarch'.
35339         * modules/multiarch: New file.
35340         * m4/multiarch.m4: New file.
35341
35342 2008-12-25  Bruno Haible  <bruno@clisp.org>
35343
35344         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
35345
35346 2008-12-25  Bruno Haible  <bruno@clisp.org>
35347
35348         * modules/btowc (License): Relicense under LGPLv2+.
35349         * modules/mbsinit (License): Likewise.
35350         * modules/mbrtowc (License): Likewise.
35351         * modules/wcrtomb (License): Likewise.
35352         * modules/streq (License): Likewise.
35353         Reported by David Lutterkort <lutter@redhat.com>.
35354
35355 2008-12-23  Bruno Haible  <bruno@clisp.org>
35356
35357         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
35358
35359 2008-12-23  Bruno Haible  <bruno@clisp.org>
35360
35361         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
35362         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
35363         GETADDRINFO_LIB, not in LIBS.
35364         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
35365         * modules/canon-host (Link): Likewise.
35366         * NEWS: Mention the change.
35367         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
35368         GETADDRINFO_LIB.
35369
35370 2008-12-22  Bruno Haible  <bruno@clisp.org>
35371
35372         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
35373         * doc/posix-functions/iswalpha_l.texi: Likewise.
35374         * doc/posix-functions/iswblank_l.texi: Likewise.
35375         * doc/posix-functions/iswcntrl_l.texi: Likewise.
35376         * doc/posix-functions/iswctype_l.texi: Likewise.
35377         * doc/posix-functions/iswdigit_l.texi: Likewise.
35378         * doc/posix-functions/iswgraph_l.texi: Likewise.
35379         * doc/posix-functions/iswlower_l.texi: Likewise.
35380         * doc/posix-functions/iswprint_l.texi: Likewise.
35381         * doc/posix-functions/iswpunct_l.texi: Likewise.
35382         * doc/posix-functions/iswspace_l.texi: Likewise.
35383         * doc/posix-functions/iswupper_l.texi: Likewise.
35384         * doc/posix-functions/iswxdigit_l.texi: Likewise.
35385         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
35386         * doc/posix-functions/open_wmemstream.texi: Likewise.
35387         * doc/posix-functions/swscanf.texi: Likewise.
35388         * doc/posix-functions/towctrans_l.texi: Likewise.
35389         * doc/posix-functions/towlower.texi: Likewise.
35390         * doc/posix-functions/towlower_l.texi: Likewise.
35391         * doc/posix-functions/towupper.texi: Likewise.
35392         * doc/posix-functions/towupper_l.texi: Likewise.
35393         * doc/posix-functions/vfwprintf.texi: Likewise.
35394         * doc/posix-functions/vfwscanf.texi: Likewise.
35395         * doc/posix-functions/vswscanf.texi: Likewise.
35396         * doc/posix-functions/vwprintf.texi: Likewise.
35397         * doc/posix-functions/vwscanf.texi: Likewise.
35398         * doc/posix-functions/wcpcpy.texi: Likewise.
35399         * doc/posix-functions/wcpncpy.texi: Likewise.
35400         * doc/posix-functions/wcscasecmp.texi: Likewise.
35401         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
35402         * doc/posix-functions/wcscoll_l.texi: Likewise.
35403         * doc/posix-functions/wcsdup.texi: Likewise.
35404         * doc/posix-functions/wcsncasecmp.texi: Likewise.
35405         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
35406         * doc/posix-functions/wcsnlen.texi: Likewise.
35407         * doc/posix-functions/wcsnrtombs.texi: Likewise.
35408         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
35409         * doc/posix-functions/wctrans_l.texi: Likewise.
35410         * doc/posix-functions/wctype_l.texi: Likewise.
35411         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
35412         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
35413         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
35414         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
35415         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
35416         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
35417         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
35418         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
35419         * doc/glibc-functions/wcschrnul.texi: Likewise.
35420         * doc/glibc-functions/wcsftime_l.texi: Likewise.
35421         * doc/glibc-functions/wcstod_l.texi: Likewise.
35422         * doc/glibc-functions/wcstof_l.texi: Likewise.
35423         * doc/glibc-functions/wcstol_l.texi: Likewise.
35424         * doc/glibc-functions/wcstold_l.texi: Likewise.
35425         * doc/glibc-functions/wcstoll_l.texi: Likewise.
35426         * doc/glibc-functions/wcstoq.texi: Likewise.
35427         * doc/glibc-functions/wcstoul_l.texi: Likewise.
35428         * doc/glibc-functions/wcstoull_l.texi: Likewise.
35429         * doc/glibc-functions/wcstouq.texi: Likewise.
35430         * doc/glibc-functions/wmempcpy.texi: Likewise.
35431
35432 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
35433             Eric Blake  <ebb9@byu.net>
35434             Paolo Bonzini  <bonzini@gnu.org>
35435             Bruno Haible  <bruno@clisp.org>
35436
35437         Make c-stack work on Haiku.
35438         * lib/c-stack.c (SA_ONSTACK): Define fallback.
35439         (c_stack_action): Use SA_ONSTACK flag.
35440
35441 2008-12-22  Bruno Haible  <bruno@clisp.org>
35442
35443         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
35444
35445 2008-12-22  Bruno Haible  <bruno@clisp.org>
35446
35447         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
35448         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
35449         being overridden.
35450         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
35451         New macros.
35452         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
35453         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
35454         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
35455         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
35456
35457 2008-12-22  Bruno Haible  <bruno@clisp.org>
35458
35459         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
35460         from test code.
35461
35462 2008-12-22  Eric Blake  <ebb9@byu.net>
35463
35464         Avoid gcc warnings on cygwin.
35465         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
35466         Avoid unused variable.
35467         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
35468         Likewise.
35469
35470 2008-12-22  Bruno Haible  <bruno@clisp.org>
35471
35472         Remove HAVE_MBRTOWC conditionals.
35473         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
35474         (mbscasecmp): Assume mbrtowc function.
35475         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
35476         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
35477         * lib/mbschr.c: Include mbuiter.h unconditionally.
35478         (mbschr): Assume mbrtowc function.
35479         * lib/mbscspn.c: Include mbuiter.h unconditionally.
35480         (mbscspn): Assume mbrtowc function.
35481         * lib/mbslen.c: Include mbuiter.h unconditionally.
35482         (mbslen): Assume mbrtowc function.
35483         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
35484         (mbsncasecmp): Assume mbrtowc function.
35485         * lib/mbsnlen.c: Include mbiter.h unconditionally.
35486         (mbsnlen): Assume mbrtowc function.
35487         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
35488         (mbspbrk): Assume mbrtowc function.
35489         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
35490         (mbspcasecmp): Assume mbrtowc function.
35491         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
35492         (mbsrchr): Assume mbrtowc function.
35493         * lib/mbssep.c: Include mbuiter.h unconditionally.
35494         (mbssep): Assume mbrtowc function.
35495         * lib/mbsspn.c: Include mbuiter.h unconditionally.
35496         (mbsspn): Assume mbrtowc function.
35497         * lib/mbsstr.c: Include mbuiter.h unconditionally.
35498         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
35499         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
35500         (mbstok_r): Assume mbrtowc function.
35501         * lib/propername.c: Include mbuiter.h unconditionally.
35502         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
35503         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
35504         (trim2): Assume mbrtowc function.
35505         * lib/mbswidth.c (mbsinit): Remove fallback definition.
35506         (mbsnwidth): Assume mbrtowc function.
35507         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
35508         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
35509         fallback definitions.
35510         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
35511
35512 2008-12-22  Bruno Haible  <bruno@clisp.org>
35513
35514         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
35515
35516 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
35517
35518         * modules/regex: Request emulations for the mb*/wc* functions we need.
35519         * m4/regex.m4: Don't look for those functions here.
35520         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
35521
35522 2008-12-22  Bruno Haible  <bruno@clisp.org>
35523
35524         * modules/fnmatch (Depends-on): Remove duplicated dependency.
35525
35526 2008-12-21  Bruno Haible  <bruno@clisp.org>
35527
35528         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
35529         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
35530         (Include): Remove conditionalization.
35531         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
35532         (Include): Remove conditionalization.
35533         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
35534         (Include): Remove conditionalization.
35535         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
35536         * m4/mbfile.m4 (gl_MBFILE): Likewise.
35537         * NEWS: Mention the change.
35538         Reported by Alan Hourihane <alanh@fairlite.co.uk>
35539         via Sergey Poznyakoff <gray@gnu.org.ua>.
35540
35541 2008-12-21  Bruno Haible  <bruno@clisp.org>
35542
35543         * MODULES.html.sh (Extended multibyte and wide character utilities
35544         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
35545         wcrtomb, wcsrtombs.
35546         (Support for systems lacking POSIX:2008): Add accept, bind, close,
35547         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
35548         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
35549         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
35550
35551 2008-12-21  Bruno Haible  <bruno@clisp.org>
35552
35553         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
35554
35555 2008-12-21  Bruno Haible  <bruno@clisp.org>
35556
35557         * modules/wcsnrtombs-tests: New file.
35558         * tests/test-wcsnrtombs1.sh: New file.
35559         * tests/test-wcsnrtombs2.sh: New file.
35560         * tests/test-wcsnrtombs3.sh: New file.
35561         * tests/test-wcsnrtombs4.sh: New file.
35562         * tests/test-wcsnrtombs.c: New file.
35563
35564         New module 'wcsnrtombs'.
35565         * lib/wchar.in.h (wcsnrtombs): New declaration.
35566         * lib/wcsnrtombs.c: New file.
35567         * lib/wcsrtombs-state.c: New file.
35568         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
35569         (internal_state): Remove variable.
35570         * m4/wcsnrtombs.m4: New file.
35571         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
35572         compilation units.
35573         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
35574         HAVE_WCSNRTOMBS.
35575         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
35576         HAVE_WCSNRTOMBS.
35577         * modules/wcsnrtombs: New file.
35578         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
35579         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
35580
35581 2008-12-21  Bruno Haible  <bruno@clisp.org>
35582
35583         * modules/wcsrtombs-tests: New file.
35584         * tests/test-wcsrtombs1.sh: New file.
35585         * tests/test-wcsrtombs2.sh: New file.
35586         * tests/test-wcsrtombs3.sh: New file.
35587         * tests/test-wcsrtombs4.sh: New file.
35588         * tests/test-wcsrtombs.c: New file.
35589
35590         New module 'wcsrtombs'.
35591         * lib/wchar.in.h (wcsrtombs): New declaration.
35592         * lib/wcsrtombs.c: New file.
35593         * m4/wcsrtombs.m4: New file.
35594         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
35595         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
35596         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
35597         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
35598         * modules/wcsrtombs: New file.
35599         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
35600         bugs.
35601
35602 2008-12-21  Bruno Haible  <bruno@clisp.org>
35603
35604         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
35605         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
35606         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
35607         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
35608         if not correct.
35609         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
35610         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
35611         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
35612         m4/locale-zh.m4, m4/codeset.m4.
35613         * doc/posix-functions/wcrtomb.texi: Document the bug.
35614
35615 2008-12-21  Bruno Haible  <bruno@clisp.org>
35616
35617         Work around a btowc() bug on IRIX 6.5.
35618         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
35619         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
35620         REPLACE_WTOBC if not.
35621         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
35622         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
35623         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
35624
35625 2008-12-21  Bruno Haible  <bruno@clisp.org>
35626
35627         * modules/wcrtomb-tests: New file.
35628         * tests/test-wcrtomb.sh: New file.
35629         * tests/test-wcrtomb.c: New file.
35630
35631         New module 'wcrtomb'.
35632         * lib/wchar.in.h (wcrtomb): New declaration.
35633         * lib/wcrtomb.c: New file.
35634         * m4/wcrtomb.m4: New file.
35635         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
35636         HAVE_WCRTOMB.
35637         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
35638         HAVE_WCRTOMB.
35639         * modules/wcrtomb: New file.
35640         * doc/posix-functions/wcrtomb.texi: Mention the new module.
35641
35642 2008-12-21  Bruno Haible  <bruno@clisp.org>
35643
35644         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
35645         * modules/mbsrtowcs (Files): Likewise.
35646         * modules/wctob (Files): Likewise.
35647         * modules/c-strcase-tests (Files): Likewise.
35648         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
35649         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
35650         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
35651         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
35652         * modules/vasnprintf-posix-tests (Files): Likewise.
35653
35654 2008-12-21  William Pursell  <bill.pursell@gmail.com>
35655
35656         gitlog-to-changelog: pass all command-line arguments to git-log
35657         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
35658         it is sometimes convenient to filter the commits in various ways.
35659         gitlog-to-changelog only allows --since to specify a start date,
35660         but git-log itself supports many other filtering mechanisms.
35661         At the moment, I want to filter by branch name.  Rather than
35662         adding a --branch option to gitlog-to-changelog, it seems more
35663         flexible to simply pass all options directly to git-log and let
35664         git do the work.  Notice that this effectively makes --since a
35665         redundant option for gitlog-to-changelog, but removing it would
35666         require current usage to change since calls would then require
35667         an additional '--'.
35668
35669 2008-12-21  Bruno Haible  <bruno@clisp.org>
35670
35671         * modules/mbsnrtowcs-tests: New file.
35672         * tests/test-mbsnrtowcs1.sh: New file.
35673         * tests/test-mbsnrtowcs2.sh: New file.
35674         * tests/test-mbsnrtowcs3.sh: New file.
35675         * tests/test-mbsnrtowcs4.sh: New file.
35676         * tests/test-mbsnrtowcs.c: New file.
35677
35678         New module 'mbsnrtowcs'.
35679         * lib/wchar.in.h (mbsnrtowcs): New declaration.
35680         * lib/mbsnrtowcs.c: New file.
35681         * lib/mbsrtowcs-state.c: New file.
35682         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
35683         (internal_state): Remove variable.
35684         * m4/mbsnrtowcs.m4: New file.
35685         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
35686         compilation units.
35687         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
35688         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
35689         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
35690         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
35691         * modules/mbsnrtowcs: New file.
35692         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
35693         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
35694         portability problem.
35695
35696 2008-12-21  Bruno Haible  <bruno@clisp.org>
35697
35698         Work around mbsrtowcs bug.
35699         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
35700         (gl_FUNC_MBSRTOWCS): Invoke it.
35701         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
35702         m4/locale-zh.m4.
35703         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
35704
35705 2008-12-21  Bruno Haible  <bruno@clisp.org>
35706
35707         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
35708
35709 2008-12-21  Bruno Haible  <bruno@clisp.org>
35710
35711         Update doc for AIX.
35712         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
35713         16-bit wchar_t type.
35714         * doc/posix-functions/btowc.texi: Likewise.
35715         * doc/posix-functions/fgetwc.texi: Likewise.
35716         * doc/posix-functions/fgetws.texi: Likewise.
35717         * doc/posix-functions/fputwc.texi: Likewise.
35718         * doc/posix-functions/fputws.texi: Likewise.
35719         * doc/posix-functions/fwide.texi: Likewise.
35720         * doc/posix-functions/fwprintf.texi: Likewise.
35721         * doc/posix-functions/fwscanf.texi: Likewise.
35722         * doc/posix-functions/getwchar.texi: Likewise.
35723         * doc/posix-functions/getwc.texi: Likewise.
35724         * doc/posix-functions/iswalnum.texi: Likewise.
35725         * doc/posix-functions/iswalpha.texi: Likewise.
35726         * doc/posix-functions/iswblank.texi: Likewise.
35727         * doc/posix-functions/iswcntrl.texi: Likewise.
35728         * doc/posix-functions/iswctype.texi: Likewise.
35729         * doc/posix-functions/iswdigit.texi: Likewise.
35730         * doc/posix-functions/iswgraph.texi: Likewise.
35731         * doc/posix-functions/iswlower.texi: Likewise.
35732         * doc/posix-functions/iswprint.texi: Likewise.
35733         * doc/posix-functions/iswpunct.texi: Likewise.
35734         * doc/posix-functions/iswspace.texi: Likewise.
35735         * doc/posix-functions/iswupper.texi: Likewise.
35736         * doc/posix-functions/iswxdigit.texi: Likewise.
35737         * doc/posix-functions/mbrtowc.texi: Likewise.
35738         * doc/posix-functions/mbsrtowcs.texi: Likewise.
35739         * doc/posix-functions/mbstowcs.texi: Likewise.
35740         * doc/posix-functions/mbtowc.texi: Likewise.
35741         * doc/posix-functions/putwchar.texi: Likewise.
35742         * doc/posix-functions/putwc.texi: Likewise.
35743         * doc/posix-functions/swprintf.texi: Likewise.
35744         * doc/posix-functions/tolower.texi: Likewise.
35745         * doc/posix-functions/toupper.texi: Likewise.
35746         * doc/posix-functions/towctrans.texi: Likewise.
35747         * doc/posix-functions/ungetwc.texi: Likewise.
35748         * doc/posix-functions/vswprintf.texi: Likewise.
35749         * doc/posix-functions/wcrtomb.texi: Likewise.
35750         * doc/posix-functions/wcscat.texi: Likewise.
35751         * doc/posix-functions/wcschr.texi: Likewise.
35752         * doc/posix-functions/wcscmp.texi: Likewise.
35753         * doc/posix-functions/wcscoll.texi: Likewise.
35754         * doc/posix-functions/wcscpy.texi: Likewise.
35755         * doc/posix-functions/wcscspn.texi: Likewise.
35756         * doc/posix-functions/wcsftime.texi: Likewise.
35757         * doc/posix-functions/wcslen.texi: Likewise.
35758         * doc/posix-functions/wcsncat.texi: Likewise.
35759         * doc/posix-functions/wcsncmp.texi: Likewise.
35760         * doc/posix-functions/wcsncpy.texi: Likewise.
35761         * doc/posix-functions/wcspbrk.texi: Likewise.
35762         * doc/posix-functions/wcsrchr.texi: Likewise.
35763         * doc/posix-functions/wcsrtombs.texi: Likewise.
35764         * doc/posix-functions/wcsspn.texi: Likewise.
35765         * doc/posix-functions/wcsstr.texi: Likewise.
35766         * doc/posix-functions/wcstod.texi: Likewise.
35767         * doc/posix-functions/wcstof.texi: Likewise.
35768         * doc/posix-functions/wcstoimax.texi: Likewise.
35769         * doc/posix-functions/wcstok.texi: Likewise.
35770         * doc/posix-functions/wcstold.texi: Likewise.
35771         * doc/posix-functions/wcstoll.texi: Likewise.
35772         * doc/posix-functions/wcstol.texi: Likewise.
35773         * doc/posix-functions/wcstombs.texi: Likewise.
35774         * doc/posix-functions/wcstoull.texi: Likewise.
35775         * doc/posix-functions/wcstoul.texi: Likewise.
35776         * doc/posix-functions/wcstoumax.texi: Likewise.
35777         * doc/posix-functions/wcswidth.texi: Likewise.
35778         * doc/posix-functions/wcsxfrm.texi: Likewise.
35779         * doc/posix-functions/wctob.texi: Likewise.
35780         * doc/posix-functions/wctomb.texi: Likewise.
35781         * doc/posix-functions/wctrans.texi: Likewise.
35782         * doc/posix-functions/wctype.texi: Likewise.
35783         * doc/posix-functions/wcwidth.texi: Likewise.
35784         * doc/posix-functions/wmemchr.texi: Likewise.
35785         * doc/posix-functions/wmemcmp.texi: Likewise.
35786         * doc/posix-functions/wmemcpy.texi: Likewise.
35787         * doc/posix-functions/wmemmove.texi: Likewise.
35788         * doc/posix-functions/wmemset.texi: Likewise.
35789         * doc/posix-functions/wprintf.texi: Likewise.
35790         * doc/posix-functions/wscanf.texi: Likewise.
35791
35792 2008-12-21  Bruno Haible  <bruno@clisp.org>
35793
35794         Update doc for HP-UX 11.11.
35795         * doc/posix-functions/btowc.texi: Clarify that the function is missing
35796         in HP-UX version 11.00, not in all versions of HP-UX 11.
35797         * doc/posix-functions/fwide.texi: Likewise.
35798         * doc/posix-functions/fwprintf.texi: Likewise.
35799         * doc/posix-functions/fwscanf.texi: Likewise.
35800         * doc/posix-functions/inet_ntop.texi: Likewise.
35801         * doc/posix-functions/inet_pton.texi: Likewise.
35802         * doc/posix-functions/mbrlen.texi: Likewise.
35803         * doc/posix-functions/mbrtowc.texi: Likewise.
35804         * doc/posix-functions/mbsinit.texi: Likewise.
35805         * doc/posix-functions/mbsrtowcs.texi: Likewise.
35806         * doc/posix-functions/swprintf.texi: Likewise.
35807         * doc/posix-functions/swscanf.texi: Likewise.
35808         * doc/posix-functions/towctrans.texi: Likewise.
35809         * doc/posix-functions/vfwprintf.texi: Likewise.
35810         * doc/posix-functions/vswprintf.texi: Likewise.
35811         * doc/posix-functions/vwprintf.texi: Likewise.
35812         * doc/posix-functions/wcrtomb.texi: Likewise.
35813         * doc/posix-functions/wcsrtombs.texi: Likewise.
35814         * doc/posix-functions/wcsstr.texi: Likewise.
35815         * doc/posix-functions/wctob.texi: Likewise.
35816         * doc/posix-functions/wctrans.texi: Likewise.
35817         * doc/posix-functions/wmemchr.texi: Likewise.
35818         * doc/posix-functions/wmemcmp.texi: Likewise.
35819         * doc/posix-functions/wmemcpy.texi: Likewise.
35820         * doc/posix-functions/wmemmove.texi: Likewise.
35821         * doc/posix-functions/wmemset.texi: Likewise.
35822         * doc/posix-functions/wprintf.texi: Likewise.
35823         * doc/posix-functions/wscanf.texi: Likewise.
35824
35825 2008-12-21  Bruno Haible  <bruno@clisp.org>
35826
35827         Work around a portability problem.
35828         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
35829         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
35830
35831 2008-12-20  Bruno Haible  <bruno@clisp.org>
35832
35833         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
35834         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
35835         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
35836         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
35837         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
35838
35839         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
35840         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
35841         set.
35842         (GNULIB_defined_mbstate_t): New macro.
35843         (mbsinit): Redefine if REPLACE_MBSINIT is set.
35844         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
35845         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
35846         reuses the system's mbrtowc function but works around the bugs.
35847         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
35848         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
35849         macros.
35850         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
35851         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
35852         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
35853         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
35854         REPLACE_MBSINIT if mbsinit needs to be overridden.
35855         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
35856         REPLACE_MBSINIT, REPLACE_MBRTOWC.
35857         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
35858         REPLACE_MBSINIT, REPLACE_MBRTOWC.
35859         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
35860         m4/locale-zh.m4.
35861         (Depends): Add mbsinit.
35862         * modules/mbsinit (Depends): Add mbrtowc.
35863         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
35864
35865 2008-12-20  Bruno Haible  <bruno@clisp.org>
35866
35867         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
35868         so that there are no conversion errors on AIX.
35869         * tests/test-mbsrtowcs.c (main): LIkewise.
35870
35871 2008-12-20  Bruno Haible  <bruno@clisp.org>
35872
35873         Work around wctob bug on Solaris <= 9.
35874         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
35875         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
35876         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
35877         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
35878         * modules/wctob (Files): Add m4/locale-fr.m4.
35879         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
35880
35881 2008-12-20  Bruno Haible  <bruno@clisp.org>
35882
35883         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
35884         /dev/null.
35885         * tests/test-select-in.sh: Likewise.
35886         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35887
35888 2008-12-20  Bruno Haible  <bruno@clisp.org>
35889
35890         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
35891         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
35892         Cygwin 1.5.x.
35893
35894 2008-12-20  Bruno Haible  <bruno@clisp.org>
35895
35896         Ensure mbstate_t is defined on HP-UX 11.11.
35897         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
35898         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
35899         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
35900         AC_USE_SYSTEM_EXTENSIONS.
35901         * modules/fnmatch (Depends-on): Add extensions.
35902         * modules/mbrlen (Depends-on): Likewise.
35903         * modules/mbrtowc (Depends-on): Likewise.
35904         * modules/mbsinit (Depends-on): Likewise.
35905         * modules/mbsrtowcs (Depends-on): Likewise.
35906         * modules/mbswidth (Depends-on): Likewise.
35907         * modules/quotearg (Depends-on): Likewise.
35908         * modules/strftime (Depends-on): Likewise.
35909
35910 2008-12-20  Bruno Haible  <bruno@clisp.org>
35911
35912         Ensure wctob is declared on IRIX 6.5.
35913         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
35914         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
35915         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
35916         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
35917         of HAVE_WCTOB.
35918         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
35919         HAVE_WCTOB.
35920         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
35921
35922 2008-12-19  Bruno Haible  <bruno@clisp.org>
35923
35924         * modules/mbsrtowcs-tests: New file.
35925         * tests/test-mbsrtowcs1.sh: New file.
35926         * tests/test-mbsrtowcs2.sh: New file.
35927         * tests/test-mbsrtowcs3.sh: New file.
35928         * tests/test-mbsrtowcs4.sh: New file.
35929         * tests/test-mbsrtowcs.c: New file.
35930
35931         New module 'mbsrtowcs'.
35932         * lib/wchar.in.h (mbsrtowcs): New declaration.
35933         * lib/mbsrtowcs.c: New file.
35934         * m4/mbsrtowcs.m4: New file.
35935         * modules/mbsrtowcs: New file.
35936         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
35937         HAVE_MBSRTOWCS.
35938         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
35939         HAVE_MBSRTOWCS.
35940         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
35941
35942 2008-12-19  Bruno Haible  <bruno@clisp.org>
35943
35944         New module 'mbrlen'.
35945         * lib/wchar.in.h (mbrlen): New declaration.
35946         * lib/mbrlen.c: New file.
35947         * m4/mbrlen.m4: New file.
35948         * modules/mbrlen: New file.
35949         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
35950         HAVE_MBRLEN.
35951         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
35952         HAVE_MBRLEN.
35953         * doc/posix-functions/mbrlen.texi: Document the new module.
35954
35955 2008-12-19  Bruno Haible  <bruno@clisp.org>
35956
35957         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
35958         * modules/mbrtowc (Depends-on): Add verify.
35959         Suggested by Paul Eggert.
35960
35961 2008-12-18  Bruno Haible  <bruno@clisp.org>
35962
35963         * modules/mbsinit-tests: New file.
35964         * tests/test-mbsinit.sh: New file.
35965         * tests/test-mbsinit.c: New file.
35966
35967 2008-12-18  Bruno Haible  <bruno@clisp.org>
35968
35969         * modules/mbrtowc-tests: New file.
35970         * tests/test-mbrtowc1.sh: New file.
35971         * tests/test-mbrtowc2.sh: New file.
35972         * tests/test-mbrtowc3.sh: New file.
35973         * tests/test-mbrtowc4.sh: New file.
35974         * tests/test-mbrtowc.c: New file.
35975
35976         New module 'mbrtowc'.
35977         * lib/wchar.in.h (mbstate_t): Override when the system does not have
35978         mbsinit and mbrtowc.
35979         (mbrtowc): New declaration.
35980         * lib/mbrtowc.c: New file.
35981         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
35982         * modules/mbrtowc: New file.
35983         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
35984         HAVE_MBRTOWC.
35985         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
35986         HAVE_MBRTOWC.
35987         * doc/posix-functions/mbrtowc.texi: Document the new module.
35988
35989 2008-12-18  Bruno Haible  <bruno@clisp.org>
35990
35991         New module 'wctob'.
35992         * lib/wchar.in.h (wctob): New declaration.
35993         * lib/wctob.c: New file.
35994         * m4/wctob.m4: New file.
35995         * modules/wctob: New file.
35996         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
35997         HAVE_WCTOB.
35998         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
35999         * doc/posix-functions/wctob.texi: Document the new module.
36000
36001 2008-12-18  Bruno Haible  <bruno@clisp.org>
36002
36003         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
36004         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
36005
36006 2008-12-18  Simon Josefsson  <simon@josefsson.org>
36007
36008         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
36009         G. Christensen" <tgc@jupiterrise.com>.
36010
36011         * lib/flock.c: Need to include errno.h.  Reported by "Tom
36012         G. Christensen" <tgc@jupiterrise.com>.
36013
36014         * lib/flock.c: Need to include string.h.  Reported by "Tom
36015         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
36016         <ebb9@byu.net>.
36017
36018 2008-12-18  Bruno Haible  <bruno@clisp.org>
36019
36020         * m4/locale-ja.m4: New file, from GNU gettext.
36021
36022 2008-12-17  Bruno Haible  <bruno@clisp.org>
36023
36024         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
36025         Suggested by Eric Blake.
36026
36027 2008-12-17  Bruno Haible  <bruno@clisp.org>
36028
36029         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
36030
36031 2008-12-17  Bruno Haible  <bruno@clisp.org>
36032
36033         * lib/mbsinit.c: Include verify.h. Verify an assumption.
36034         * modules/mbsinit (Depends-on): Add verify.
36035         Suggested by Paul Eggert.
36036
36037 2008-12-17  Bruno Haible  <bruno@clisp.org>
36038
36039         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
36040         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
36041         gl_FUNC_MBRTOWC.
36042         * m4/mbiter.m4 (gl_MBITER): LIkewise.
36043         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
36044         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
36045         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
36046         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
36047         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
36048         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
36049         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
36050         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
36051         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
36052         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
36053         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
36054         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
36055         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
36056         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
36057         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
36058         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
36059         * modules/trim (configure.ac): Likewise.
36060
36061 2008-12-17  Bruno Haible  <bruno@clisp.org>
36062
36063         * modules/btowc-tests: New file.
36064         * tests/test-btowc1.sh: New file.
36065         * tests/test-btowc2.sh: New file.
36066         * tests/test-btowc.c: New file.
36067
36068         New module 'btowc'.
36069         * lib/wchar.in.h (btowc): New declaration.
36070         * lib/btowc.c: New file.
36071         * m4/btowc.m4: New file.
36072         * modules/btowc: New file.
36073         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
36074         HAVE_BTOWC.
36075         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
36076         * doc/posix-functions/btowc.texi: Document the new module.
36077
36078 2008-12-17  Bruno Haible  <bruno@clisp.org>
36079
36080         New module 'mbsinit'.
36081         * lib/wchar.in.h (mbsinit): New declaration.
36082         * lib/mbsinit.c: New file.
36083         * m4/mbsinit.m4: New file.
36084         * modules/mbsinit: New file.
36085         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
36086         HAVE_MBSINIT.
36087         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
36088         HAVE_MBSINIT.
36089         * doc/posix-functions/mbsinit.texi: Document the new module.
36090
36091 2008-12-16  Bruno Haible  <bruno@clisp.org>
36092
36093         * lib/unistd.in.h: Add comment.
36094         * tests/test-environ.c: Don't include <stdlib.h>.
36095
36096 2008-12-16  Bruno Haible  <bruno@clisp.org>
36097
36098         * lib/parse-duration.h (parse_duration): Document return value
36099         convention.
36100         * lib/parse-duration.c: Include specification header first. Add
36101         comments.
36102         (_): Remove macro.
36103         (parse_year_month_day, parse_hour_minute_second): Move side effects
36104         outside of strchr call.
36105         (parse_non_iso8601): Move side effects outside of isspace call.
36106         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
36107         call.
36108
36109 2008-12-16  Bruno Haible  <bruno@clisp.org>
36110
36111         * tests/test-parse-duration.sh: Produce no output when the test
36112         succeeds.
36113
36114 2008-12-16  Bruno Haible  <bruno@clisp.org>
36115
36116         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
36117         expressions.
36118
36119 2008-12-15  Bruno Haible  <bruno@clisp.org>
36120
36121         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
36122         * doc/glibc-functions/flistxattr.texi: Likewise.
36123         * doc/glibc-functions/fopencookie.texi: Likewise.
36124         * doc/glibc-functions/fremovexattr.texi: Likewise.
36125         * doc/glibc-functions/fsetxattr.texi: Likewise.
36126         * doc/glibc-functions/getxattr.texi: Likewise.
36127         * doc/glibc-functions/lgetxattr.texi: Likewise.
36128         * doc/glibc-functions/listxattr.texi: Likewise.
36129         * doc/glibc-functions/llistxattr.texi: Likewise.
36130         * doc/glibc-functions/lremovexattr.texi: Likewise.
36131         * doc/glibc-functions/lsetxattr.texi: Likewise.
36132         * doc/glibc-functions/removexattr.texi: Likewise.
36133         * doc/glibc-functions/setxattr.texi: Likewise.
36134         * doc/posix-functions/open_memstream.texi: Likewise.
36135
36136 2008-12-15  Eric Blake  <ebb9@byu.net>
36137
36138         Update doc for cygwin 1.7.
36139         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
36140         functions.
36141         * doc/posix-functions/fchmodat.texi: Likewise.
36142         * doc/posix-functions/fchownat.texi: Likewise.
36143         * doc/posix-functions/fdopendir.texi: Likewise.
36144         * doc/posix-functions/fmemopen.texi: Likewise.
36145         * doc/posix-functions/freeaddrinfo.texi: Likewise.
36146         * doc/posix-functions/fstatat.texi: Likewise.
36147         * doc/posix-functions/futimens.texi: Likewise.
36148         * doc/posix-functions/gai_strerror.texi: Likewise.
36149         * doc/posix-functions/getaddrinfo.texi: Likewise.
36150         * doc/posix-functions/getnameinfo.texi: Likewise.
36151         * doc/posix-functions/if_freenameindex.texi: Likewise.
36152         * doc/posix-functions/if_indextoname.texi: Likewise.
36153         * doc/posix-functions/if_nameindex.texi: Likewise.
36154         * doc/posix-functions/if_nametoindex.texi: Likewise.
36155         * doc/posix-functions/insque.texi: Likewise.
36156         * doc/posix-functions/linkat.texi: Likewise.
36157         * doc/posix-functions/llrint.texi: Likewise.
36158         * doc/posix-functions/llrintf.texi: Likewise.
36159         * doc/posix-functions/llrintl.texi: Likewise.
36160         * doc/posix-functions/lockf.texi: Likewise.
36161         * doc/posix-functions/lrintl.texi: Likewise.
36162         * doc/posix-functions/mkdirat.texi: Likewise.
36163         * doc/posix-functions/mkfifoat.texi: Likewise.
36164         * doc/posix-functions/mknodat.texi: Likewise.
36165         * doc/posix-functions/mq_close.texi: Likewise.
36166         * doc/posix-functions/mq_getattr.texi: Likewise.
36167         * doc/posix-functions/mq_notify.texi: Likewise.
36168         * doc/posix-functions/mq_open.texi: Likewise.
36169         * doc/posix-functions/mq_receive.texi: Likewise.
36170         * doc/posix-functions/mq_send.texi: Likewise.
36171         * doc/posix-functions/mq_setattr.texi: Likewise.
36172         * doc/posix-functions/mq_timedreceive.texi: Likewise.
36173         * doc/posix-functions/mq_timedsend.texi: Likewise.
36174         * doc/posix-functions/mq_unlink.texi: Likewise.
36175         * doc/posix-functions/open_memstream.texi: Likewise.
36176         * doc/posix-functions/openat.texi: Likewise.
36177         * doc/posix-functions/posix_fadvise.texi: Likewise.
36178         * doc/posix-functions/posix_fallocate.texi: Likewise.
36179         * doc/posix-functions/posix_madvise.texi: Likewise.
36180         * doc/posix-functions/posix_memalign.texi: Likewise.
36181         * doc/posix-functions/posix_openpt.texi: Likewise.
36182         * doc/posix-functions/readlinkat.texi: Likewise.
36183         * doc/posix-functions/remque.texi: Likewise.
36184         * doc/posix-functions/renameat.texi: Likewise.
36185         * doc/posix-functions/rintl.texi: Likewise.
36186         * doc/posix-functions/sem_unlink.texi: Likewise.
36187         * doc/posix-functions/shm_open.texi: Likewise.
36188         * doc/posix-functions/shm_unlink.texi: Likewise.
36189         * doc/posix-functions/signgam.texi: Likewise.
36190         * doc/posix-functions/sigset.texi: Likewise.
36191         * doc/posix-functions/stpcpy.texi: Likewise.
36192         * doc/posix-functions/stpncpy.texi: Likewise.
36193         * doc/posix-functions/strerror.texi: Likewise.
36194         * doc/posix-functions/strtod.texi: Likewise.
36195         * doc/posix-functions/symlinkat.texi: Likewise.
36196         * doc/posix-functions/unlinkat.texi: Likewise.
36197         * doc/posix-functions/utimensat.texi: Likewise.
36198         * doc/glibc-functions/bindresvport.texi: Likewise.
36199         * doc/glibc-functions/dn_expand.texi: Likewise.
36200         * doc/glibc-functions/exp10.texi: Likewise.
36201         * doc/glibc-functions/exp10f.texi: Likewise.
36202         * doc/glibc-functions/fgetxattr.texi: Likewise.
36203         * doc/glibc-functions/flistxattr.texi: Likewise.
36204         * doc/glibc-functions/fopencookie.texi: Likewise.
36205         * doc/glibc-functions/freeifaddrs.texi: Likewise.
36206         * doc/glibc-functions/fremovexattr.texi: Likewise.
36207         * doc/glibc-functions/fsetxattr.texi: Likewise.
36208         * doc/glibc-functions/getifaddrs.texi: Likewise.
36209         * doc/glibc-functions/getxattr.texi: Likewise.
36210         * doc/glibc-functions/lgetxattr.texi: Likewise.
36211         * doc/glibc-functions/listxattr.texi: Likewise.
36212         * doc/glibc-functions/llistxattr.texi: Likewise.
36213         * doc/glibc-functions/lremovexattr.texi: Likewise.
36214         * doc/glibc-functions/lsetxattr.texi: Likewise.
36215         * doc/glibc-functions/pow10.texi: Likewise.
36216         * doc/glibc-functions/pow10f.texi: Likewise.
36217         * doc/glibc-functions/rcmd_af.texi: Likewise.
36218         * doc/glibc-functions/removexattr.texi: Likewise.
36219         * doc/glibc-functions/res_init.texi: Likewise.
36220         * doc/glibc-functions/res_mkquery.texi: Likewise.
36221         * doc/glibc-functions/res_query.texi: Likewise.
36222         * doc/glibc-functions/res_querydomain.texi: Likewise.
36223         * doc/glibc-functions/res_send.texi: Likewise.
36224         * doc/glibc-functions/rresvport_af.texi: Likewise.
36225         * doc/glibc-functions/setxattr.texi: Likewise.
36226         * doc/glibc-functions/strcasestr.texi: Likewise.
36227
36228 2008-12-15  Bruno Haible  <bruno@clisp.org>
36229
36230         Fix compilation error on OSF/1 4.0.
36231         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
36232         <sys/time.h>, simply delegate to the system header.
36233         Reported by Daniel Richard G. <oss@teragram.com>.
36234
36235 2008-12-15  Bruno Haible  <bruno@clisp.org>
36236
36237         * doc/posix-functions/openat.texi: Mention the 'openat' module.
36238         * doc/posix-functions/fchmodat.texi: Likewise.
36239         * doc/posix-functions/fchownat.texi: Likewise.
36240         * doc/posix-functions/fdopendir.texi: Likewise.
36241         * doc/posix-functions/fstatat.texi: Likewise.
36242         * doc/posix-functions/mkdirat.texi: Likewise.
36243         * doc/posix-functions/unlinkat.texi: Likewise.
36244
36245 2008-12-14  Bruno Haible  <bruno@clisp.org>
36246
36247         Update doc for POSIX:2008.
36248         * doc/posix-functions/faccessat.texi: New file.
36249         * doc/posix-functions/fchmodat.texi: New file.
36250         * doc/posix-functions/fchownat.texi: New file.
36251         * doc/posix-functions/fdopendir.texi: New file.
36252         * doc/posix-functions/fstatat.texi: New file.
36253         * doc/posix-functions/futimens.texi: New file.
36254         * doc/posix-functions/linkat.texi: New file.
36255         * doc/posix-functions/mkdirat.texi: New file.
36256         * doc/posix-functions/mkfifoat.texi: New file.
36257         * doc/posix-functions/mknodat.texi: New file.
36258         * doc/posix-functions/open_wmemstream.texi: New file.
36259         * doc/posix-functions/openat.texi: New file.
36260         * doc/posix-functions/psiginfo.texi: New file.
36261         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
36262         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
36263         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
36264         * doc/posix-functions/readlinkat.texi: New file.
36265         * doc/posix-functions/renameat.texi: New file.
36266         * doc/posix-functions/strerror_l.texi: New file.
36267         * doc/posix-functions/symlinkat.texi: New file.
36268         * doc/posix-functions/unlinkat.texi: New file.
36269         * doc/posix-functions/utimensat.texi: New file.
36270         * doc/gnulib.texi (Function Substitutes): Add these subsections.
36271
36272 2008-12-14  Bruno Haible  <bruno@clisp.org>
36273
36274         Update doc for POSIX:2008.
36275         * doc/posix-functions/alphasort.texi: Renamed from
36276         doc/glibc-functions/alphasort.texi.
36277         * doc/posix-functions/dirfd.texi: Renamed from
36278         doc/glibc-functions/dirfd.texi.
36279         * doc/posix-functions/dprintf.texi: Renamed from
36280         doc/glibc-functions/dprintf.texi.
36281         * doc/posix-functions/duplocale.texi: Renamed from
36282         doc/glibc-functions/duplocale.texi.
36283         * doc/posix-functions/fexecve.texi: Renamed from
36284         doc/glibc-functions/fexecve.texi.
36285         * doc/posix-functions/fmemopen.texi: Renamed from
36286         doc/glibc-functions/fmemopen.texi.
36287         * doc/posix-functions/freelocale.texi: Renamed from
36288         doc/glibc-functions/freelocale.texi.
36289         * doc/posix-functions/getdate_err.texi: Renamed from
36290         doc/glibc-functions/getdate_err.texi.
36291         * doc/posix-functions/isalnum_l.texi: Renamed from
36292         doc/glibc-functions/isalnum_l.texi.
36293         * doc/posix-functions/isalpha_l.texi: Renamed from
36294         doc/glibc-functions/isalpha_l.texi.
36295         * doc/posix-functions/isblank_l.texi: Renamed from
36296         doc/glibc-functions/isblank_l.texi.
36297         * doc/posix-functions/iscntrl_l.texi: Renamed from
36298         doc/glibc-functions/iscntrl_l.texi.
36299         * doc/posix-functions/isdigit_l.texi: Renamed from
36300         doc/glibc-functions/isdigit_l.texi.
36301         * doc/posix-functions/isgraph_l.texi: Renamed from
36302         doc/glibc-functions/isgraph_l.texi.
36303         * doc/posix-functions/islower_l.texi: Renamed from
36304         doc/glibc-functions/islower_l.texi.
36305         * doc/posix-functions/isprint_l.texi: Renamed from
36306         doc/glibc-functions/isprint_l.texi.
36307         * doc/posix-functions/ispunct_l.texi: Renamed from
36308         doc/glibc-functions/ispunct_l.texi.
36309         * doc/posix-functions/isspace_l.texi: Renamed from
36310         doc/glibc-functions/isspace_l.texi.
36311         * doc/posix-functions/isupper_l.texi: Renamed from
36312         doc/glibc-functions/isupper_l.texi.
36313         * doc/posix-functions/iswalnum_l.texi: Renamed from
36314         doc/glibc-functions/iswalnum_l.texi.
36315         * doc/posix-functions/iswalpha_l.texi: Renamed from
36316         doc/glibc-functions/iswalpha_l.texi.
36317         * doc/posix-functions/iswblank_l.texi: Renamed from
36318         doc/glibc-functions/iswblank_l.texi.
36319         * doc/posix-functions/iswcntrl_l.texi: Renamed from
36320         doc/glibc-functions/iswcntrl_l.texi.
36321         * doc/posix-functions/iswctype_l.texi: Renamed from
36322         doc/glibc-functions/iswctype_l.texi.
36323         * doc/posix-functions/iswdigit_l.texi: Renamed from
36324         doc/glibc-functions/iswdigit_l.texi.
36325         * doc/posix-functions/iswgraph_l.texi: Renamed from
36326         doc/glibc-functions/iswgraph_l.texi.
36327         * doc/posix-functions/iswlower_l.texi: Renamed from
36328         doc/glibc-functions/iswlower_l.texi.
36329         * doc/posix-functions/iswprint_l.texi: Renamed from
36330         doc/glibc-functions/iswprint_l.texi.
36331         * doc/posix-functions/iswpunct_l.texi: Renamed from
36332         doc/glibc-functions/iswpunct_l.texi.
36333         * doc/posix-functions/iswspace_l.texi: Renamed from
36334         doc/glibc-functions/iswspace_l.texi.
36335         * doc/posix-functions/iswupper_l.texi: Renamed from
36336         doc/glibc-functions/iswupper_l.texi.
36337         * doc/posix-functions/iswxdigit_l.texi: Renamed from
36338         doc/glibc-functions/iswxdigit_l.texi.
36339         * doc/posix-functions/isxdigit_l.texi: Renamed from
36340         doc/glibc-functions/isxdigit_l.texi.
36341         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
36342         doc/glibc-functions/mbsnrtowcs.texi.
36343         * doc/posix-functions/mkdtemp.texi: Renamed from
36344         doc/glibc-functions/mkdtemp.texi.
36345         * doc/posix-functions/newlocale.texi: Renamed from
36346         doc/glibc-functions/newlocale.texi.
36347         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
36348         doc/glibc-functions/nl_langinfo_l.texi.
36349         * doc/posix-functions/open_memstream.texi: Renamed from
36350         doc/glibc-functions/open_memstream.texi.
36351         * doc/posix-functions/opterr.texi: Renamed from
36352         doc/glibc-functions/opterr.texi.
36353         * doc/posix-functions/optind.texi: Renamed from
36354         doc/glibc-functions/optind.texi.
36355         * doc/posix-functions/optopt.texi: Renamed from
36356         doc/glibc-functions/optopt.texi.
36357         * doc/posix-functions/psignal.texi: Renamed from
36358         doc/glibc-functions/psignal.texi.
36359         * doc/posix-functions/scandir.texi: Renamed from
36360         doc/glibc-functions/scandir.texi.
36361         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
36362         doc/glibc-functions/sched_get_priority_min.texi.
36363         * doc/posix-functions/signgam.texi: Renamed from
36364         doc/glibc-functions/signgam.texi.
36365         * doc/posix-functions/stpcpy.texi: Renamed from
36366         doc/glibc-functions/stpcpy.texi.
36367         * doc/posix-functions/stpncpy.texi: Renamed from
36368         doc/glibc-functions/stpncpy.texi.
36369         * doc/posix-functions/strcasecmp_l.texi: Renamed from
36370         doc/glibc-functions/strcasecmp_l.texi.
36371         * doc/posix-functions/strcoll_l.texi: Renamed from
36372         doc/glibc-functions/strcoll_l.texi.
36373         * doc/posix-functions/strfmon_l.texi: Renamed from
36374         doc/glibc-functions/strfmon_l.texi.
36375         * doc/posix-functions/strftime_l.texi: Renamed from
36376         doc/glibc-functions/strftime_l.texi.
36377         * doc/posix-functions/strncasecmp_l.texi: Renamed from
36378         doc/glibc-functions/strncasecmp_l.texi.
36379         * doc/posix-functions/strndup.texi: Renamed from
36380         doc/glibc-functions/strndup.texi.
36381         * doc/posix-functions/strnlen.texi: Renamed from
36382         doc/glibc-functions/strnlen.texi.
36383         * doc/posix-functions/strsignal.texi: Renamed from
36384         doc/glibc-functions/strsignal.texi.
36385         * doc/posix-functions/strxfrm_l.texi: Renamed from
36386         doc/glibc-functions/strxfrm_l.texi.
36387         * doc/posix-functions/timer_gettime.texi: Renamed from
36388         doc/glibc-functions/timer_gettime.texi.
36389         * doc/posix-functions/tolower_l.texi: Renamed from
36390         doc/glibc-functions/tolower_l.texi.
36391         * doc/posix-functions/toupper_l.texi: Renamed from
36392         doc/glibc-functions/toupper_l.texi.
36393         * doc/posix-functions/towctrans_l.texi: Renamed from
36394         doc/glibc-functions/towctrans_l.texi.
36395         * doc/posix-functions/towlower_l.texi: Renamed from
36396         doc/glibc-functions/towlower_l.texi.
36397         * doc/posix-functions/towupper_l.texi: Renamed from
36398         doc/glibc-functions/towupper_l.texi.
36399         * doc/posix-functions/uselocale.texi: Renamed from
36400         doc/glibc-functions/uselocale.texi.
36401         * doc/posix-functions/vdprintf.texi: Renamed from
36402         doc/glibc-functions/vdprintf.texi.
36403         * doc/posix-functions/wcpcpy.texi:
36404         Renamed from doc/glibc-functions/wcpcpy.texi.
36405         * doc/posix-functions/wcpncpy.texi: Renamed from
36406         doc/glibc-functions/wcpncpy.texi.
36407         * doc/posix-functions/wcscasecmp.texi: Renamed from
36408         doc/glibc-functions/wcscasecmp.texi.
36409         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
36410         doc/glibc-functions/wcscasecmp_l.texi.
36411         * doc/posix-functions/wcscoll_l.texi: Renamed from
36412         doc/glibc-functions/wcscoll_l.texi.
36413         * doc/posix-functions/wcsdup.texi: Renamed from
36414         doc/glibc-functions/wcsdup.texi.
36415         * doc/posix-functions/wcsncasecmp.texi: Renamed from
36416         doc/glibc-functions/wcsncasecmp.texi.
36417         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
36418         doc/glibc-functions/wcsncasecmp_l.texi.
36419         * doc/posix-functions/wcsnlen.texi: Renamed from
36420         doc/glibc-functions/wcsnlen.texi.
36421         * doc/posix-functions/wcsnrtombs.texi: Renamed from
36422         doc/glibc-functions/wcsnrtombs.texi.
36423         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
36424         doc/glibc-functions/wcsxfrm_l.texi.
36425         * doc/posix-functions/wctrans_l.texi: Renamed from
36426         doc/glibc-functions/wctrans_l.texi.
36427         * doc/posix-functions/wctype_l.texi: Renamed from
36428         doc/glibc-functions/wctype_l.texi.
36429         * doc/gnulib.texi (Function Substitutes): Add these subsections.
36430         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
36431         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
36432         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
36433         these subsections.
36434         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
36435         Remove sections.
36436
36437 2008-12-14  Bruno Haible  <bruno@clisp.org>
36438
36439         Update doc for POSIX:2008.
36440         * doc/posix-functions/*.texi: Update URL of POSIX specification.
36441
36442 2008-12-14  Bruno Haible  <bruno@clisp.org>
36443
36444         Update doc for POSIX:2008.
36445         * doc/pastposix-functions/bcmp.texi: Renamed from
36446         doc/posix-functions/bcmp.texi.
36447         * doc/pastposix-functions/bcopy.texi: Renamed from
36448         doc/posix-functions/bcopy.texi.
36449         * doc/pastposix-functions/bsd_signal.texi: Renamed from
36450         doc/posix-functions/bsd_signal.texi.
36451         * doc/pastposix-functions/bzero.texi: Renamed from
36452         doc/posix-functions/bzero.texi.
36453         * doc/pastposix-functions/ecvt.texi: Renamed from
36454         doc/posix-functions/ecvt.texi.
36455         * doc/pastposix-functions/fcvt.texi: Renamed from
36456         doc/posix-functions/fcvt.texi.
36457         * doc/pastposix-functions/ftime.texi: Renamed from
36458         doc/posix-functions/ftime.texi.
36459         * doc/pastposix-functions/gcvt.texi: Renamed from
36460         doc/posix-functions/gcvt.texi.
36461         * doc/pastposix-functions/getcontext.texi: Renamed from
36462         doc/posix-functions/getcontext.texi.
36463         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
36464         doc/posix-functions/gethostbyaddr.texi.
36465         * doc/pastposix-functions/gethostbyname.texi: Renamed from
36466         doc/posix-functions/gethostbyname.texi.
36467         * doc/pastposix-functions/getwd.texi: Renamed from
36468         doc/posix-functions/getwd.texi.
36469         * doc/pastposix-functions/h_errno.texi: Renamed from
36470         doc/posix-functions/h_errno.texi.
36471         * doc/pastposix-functions/index.texi: Renamed from
36472         doc/posix-functions/index.texi.
36473         * doc/pastposix-functions/makecontext.texi: Renamed from
36474         doc/posix-functions/makecontext.texi.
36475         * doc/pastposix-functions/mktemp.texi: Renamed from
36476         doc/posix-functions/mktemp.texi.
36477         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
36478         doc/posix-functions/pthread_attr_getstackaddr.texi.
36479         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
36480         doc/posix-functions/pthread_attr_setstackaddr.texi.
36481         * doc/pastposix-functions/rindex.texi: Renamed from
36482         doc/posix-functions/rindex.texi.
36483         * doc/pastposix-functions/scalb.texi: Renamed from
36484         doc/posix-functions/scalb.texi.
36485         * doc/pastposix-functions/setcontext.texi: Renamed from
36486         doc/posix-functions/setcontext.texi.
36487         * doc/pastposix-functions/swapcontext.texi: Renamed from
36488         doc/posix-functions/swapcontext.texi.
36489         * doc/pastposix-functions/ualarm.texi: Renamed from
36490         doc/posix-functions/ualarm.texi.
36491         * doc/pastposix-functions/usleep.texi: Renamed from
36492         doc/posix-functions/usleep.texi.
36493         * doc/pastposix-functions/vfork.texi: Renamed from
36494         doc/posix-functions/vfork.texi.
36495         * doc/pastposix-functions/wcswcs.texi: Renamed from
36496         doc/posix-functions/wcswcs.texi.
36497         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
36498         (Function Substitutes): Update.
36499
36500 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36501
36502         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
36503         m4/strerror.m4.
36504
36505 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36506             Bruno Haible  <bruno@clisp.org>
36507
36508         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
36509
36510 2008-12-13  Bruno Haible  <bruno@clisp.org>
36511
36512         * modules/strtoull (Depends-on): Remove unistd.
36513
36514 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36515
36516         * modules/strtoull (Depends-on): Add stdlib.
36517
36518 2008-12-11  Simon Josefsson  <simon@josefsson.org>
36519
36520         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
36521
36522 2008-12-10  Jim Meyering  <meyering@redhat.com>
36523
36524         gl_ASSERT: don't say assertions are disabled when they're not
36525         * m4/assert.m4 (gl_ASSERT): Do not make configure report
36526         "checking whether to enable assertions... no", when they are in
36527         fact enabled.  This is solely a bug in the output of configure.
36528         In spite of saying "no", NDEBUG was not defined in that case.
36529         Also, as noted by Eric Blake, leave assertions enabled upon
36530         --enable-assert=INVALID.
36531
36532 2008-12-10  Bruno Haible  <bruno@clisp.org>
36533
36534         Change MODULES.html to refer to POSIX:2008 where possible.
36535         * MODULES.html.sh (POSIX2008_URL): New variable.
36536         (posix_headers): Remove sys/timeb, ucontext.
36537         (posix2001_headers): New variable.
36538         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
36539         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
36540         index, makecontext, mktemp, pthread_attr_getstackaddr,
36541         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
36542         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
36543         (posix2001_functions): New variable.
36544         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
36545         otherwise.
36546
36547 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36548
36549         add missing include to parse-duration.c
36550         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
36551         * modules/parse-duration (Depends-on): Add xalloc.
36552
36553         fix sed script reading maint.mk
36554         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
36555         (syntax-check-rules): Use it.
36556
36557 2008-12-09  Bruno Haible  <bruno@clisp.org>
36558
36559         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
36560         MacOS X 10.4/PowerPC.
36561         Reported by Simon Josefsson.
36562
36563 2008-12-08  Jim Meyering  <meyering@redhat.com>
36564
36565         work around mingw's lack of some S_IF definitions
36566         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
36567         Reported by Simon Josefsson.
36568
36569 2008-12-08  Bruno Haible  <bruno@clisp.org>
36570
36571         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
36572         applied to variables. Needed on MacOS X 10.4/PowerPC.
36573         Reported by Simon Josefsson.
36574
36575 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
36576         and Eric Blake  <ebb9@byu.net>
36577
36578         assert: honor --enable-assert
36579         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
36580         order to honor --enable-assert, rather than treating it as a
36581         synonym for --disable-assert.
36582
36583 2008-12-08  Jim Meyering  <meyering@redhat.com>
36584
36585         * lib/posixtm.c: Remove now-useless declaration of mktime.
36586
36587         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
36588
36589 2008-12-07  Bruno Haible  <bruno@clisp.org>
36590
36591         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
36592         test_once): Mark functions as static.
36593         * tests/test-tls.c (test_tls): Likewise.
36594
36595 2008-12-07  Bruno Haible  <bruno@clisp.org>
36596
36597         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
36598         iconv_register_autodetect.
36599
36600 2008-12-07  Jim Meyering  <meyering@redhat.com>
36601
36602         posixtm.c: avoid a warning
36603         * lib/posixtm.c (posixtime): Don't initialize tm0.
36604         It's no longer needed to placate gcc4's -Wuninitialized,
36605         and the attempt to placate would elicit a new warning.
36606
36607         unicodeio.c: mark unused parameters
36608         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
36609         (fallback_failure_callback): Likewise.
36610
36611 2008-12-07  Bruno Haible  <bruno@clisp.org>
36612
36613         * gnulib-tool (func_create_testdir): When building the tests
36614         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
36615         Reported by Simon Josefsson.
36616
36617 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36618
36619         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
36620
36621 2008-12-06  Bruno Haible  <bruno@clisp.org>
36622
36623         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
36624         Suggested by Eric Blake.
36625
36626 2008-12-06  Bruno Haible  <bruno@clisp.org>
36627
36628         Fix a c-stack test failure on MacOS X.
36629         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
36630         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
36631         handler for SIGBUS as well.
36632         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
36633         install a signal handler for SIGBUS as well.
36634         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
36635
36636 2008-12-06  Bruno Haible  <bruno@clisp.org>
36637
36638         Advocacy documentation.
36639         * doc/gnulib-intro.texi (Benefits): New section.
36640         * doc/gnulib.texi: Update.
36641
36642 2008-12-06  Bruno Haible  <bruno@clisp.org>
36643
36644         Document the 'manywarnings' module.
36645         * doc/manywarnings.texi: New file.
36646         * doc/gnulib.texi: Include it.
36647
36648 2008-12-05  Eric Blake  <ebb9@byu.net>
36649
36650         tests: silence some gcc warnings
36651         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
36652         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
36653         type mismatches.
36654
36655 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36656             Bruno Haible  <bruno@clisp.org>
36657
36658         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
36659
36660 2008-11-29  Jim Meyering  <meyering@redhat.com>
36661
36662         unicodeio.c: mark unused parameters
36663         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
36664         (fallback_failure_callback): Likewise.
36665
36666         fts: fix a thinko
36667         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
36668         (set_stat_type): Return S_IF*-valued "type" directly.
36669         Prompted by James Youngman's spotting a related bug.
36670         Confirmed by further testing through find.
36671
36672         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
36673         * lib/fts.c (D_TYPE): Define.
36674         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
36675         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
36676         (s_ifmt_shift_bits): New function.
36677         (set_stat_type): New function.
36678         (fts_build): When not calling fts_stat, call set_stat_type
36679         to propagate dirent.d_type info to fts_read caller.
36680         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
36681         fts_statp->st_mode type information may be valid.
36682
36683 2008-11-28  Simon Josefsson  <simon@josefsson.org>
36684
36685         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
36686         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
36687         <sds@gnu.org>.
36688
36689 2008-11-20  Bruno Haible  <bruno@clisp.org>
36690
36691         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
36692         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
36693         INCLUDE_NEXT.
36694         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
36695         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
36696         * modules/math (Makefile.am): Substitute
36697         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
36698         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36699
36700 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
36701             Bruno Haible  <bruno@clisp.org>
36702
36703         * lib/stdint.in.h: Define all type macros so that their expansion is
36704         a single typedef'ed token. Fixes a compilation failure in Boost which
36705         does "using ::int8_t;".
36706
36707 2008-11-18  Simon Josefsson  <simon@josefsson.org>
36708
36709         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
36710         gl_MANYWARN_ALL_GCC.
36711         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
36712         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
36713         * modules/manywarnings: New file.
36714         * MODULES.html.sh: Mention manywarnings module.
36715
36716 2008-11-18  Bruno Haible  <bruno@clisp.org>
36717
36718         * doc/gnulib-tool.texi (Unit tests): New section.
36719
36720 2008-11-18  Simon Josefsson  <simon@josefsson.org>
36721
36722         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
36723         paths like 'lib/po/foo.po'.
36724
36725 2008-11-17  Simon Josefsson  <simon@josefsson.org>
36726
36727         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
36728         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
36729
36730 2008-11-17  Simon Josefsson  <simon@josefsson.org>
36731
36732         * m4/warnings.m4: Use CPPFLAGS to really check whether the
36733         parameter works.
36734
36735 2008-11-17  Simon Josefsson  <simon@josefsson.org>
36736
36737         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
36738
36739 2008-11-17  Bruce Korb  <bkorb@gnu.org>
36740
36741         * modules/parse-duration-tests: New file.
36742         * tests/test-parse-duration.sh: New file.
36743         * tests/test-parse-duration.c: New file.
36744
36745         New module 'parse-duration'.
36746         * lib/parse-duration.h: New file.
36747         * lib/parse-duration.c: New file.
36748         * modules/parse-duration: New file.
36749
36750 2008-11-17  Bruno Haible  <bruno@clisp.org>
36751
36752         * tests/test-select-out.sh: Comment out the first pipe test.
36753         Reported by Simon Josefsson.
36754
36755 2008-11-17  Bruno Haible  <bruno@clisp.org>
36756
36757         * modules/getaddrinfo (Depends-on): Add servent, hostent.
36758         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
36759         gl_HOSTENT.
36760
36761 2008-11-17  Bruno Haible  <bruno@clisp.org>
36762
36763         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
36764         -lnetwork and -lnet. Needed for Haiku and BeOS.
36765
36766 2008-11-16  Bruno Haible  <bruno@clisp.org>
36767
36768         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
36769
36770 2008-11-16  Bruno Haible  <bruno@clisp.org>
36771
36772         Avoid test failure on Haiku.
36773         * tests/test-fsync.c: Include <errno.h>.
36774         (main): Don't require that fsync (0) fails.
36775
36776 2008-11-15  Bruno Haible  <bruno@clisp.org>
36777
36778         New module 'hostent'.
36779         * modules/hostent: New file.
36780         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
36781
36782 2008-11-15  Bruno Haible  <bruno@clisp.org>
36783
36784         New module 'servent'.
36785         * modules/servent: New file.
36786         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
36787
36788 2008-11-15  Bruno Haible  <bruno@clisp.org>
36789
36790         Avoid generating same test program with two different rules.
36791         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
36792         test-frexp to test-frexp-nolibm.
36793         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
36794         test-frexpl to test-frexpl-nolibm.
36795
36796 2008-11-15  Bruno Haible  <bruno@clisp.org>
36797
36798         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
36799         $(FREXPL_LIBM).
36800
36801 2008-11-15  Bruno Haible  <bruno@clisp.org>
36802
36803         * lib/netdb.in.h: Activate the definitions also when the system's
36804         <netdb.h> has 'struct addrinfo'.
36805         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
36806         EAI_OVERFLOW or AI_NUMERICSERV.
36807         * doc/posix-headers/netdb.texi: Document the problem.
36808
36809 2008-11-15  Bruno Haible  <bruno@clisp.org>
36810
36811         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
36812
36813         Make the 'sched' module work on platforms where <sched.h> exists but
36814         is incomplete (such as Haiku).
36815         * lib/sched.in.h; Include the system's <sched.h> if it exists.
36816         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
36817         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
36818         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
36819         HAVE_STRUCT_SCHED_PARAM.
36820         * modules/sched (Depends-on): Add include_next.
36821         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
36822         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
36823         * doc/posix-headers/sched.texi: Document the issue.
36824
36825 2008-11-13  Jim Meyering  <meyering@redhat.com>
36826
36827         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
36828         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
36829         test would fail due to the difference in the Report bugs to ...
36830         line.  The expected address is empty, "<>", while the actual
36831         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
36832
36833 2008-11-12  Bruno Haible  <bruno@clisp.org>
36834
36835         lstat: don't compile lstat.c on systems lacking lstat
36836         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
36837         which don't have lstat; this is handled by lib/sys_stat.in.h already.
36838         Reported by Daniel P. Berrange via Jim Meyering.
36839
36840 2008-11-12  Jim Meyering  <meyering@redhat.com>
36841
36842         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
36843
36844 2008-11-12  Simon Josefsson  <simon@josefsson.org>
36845
36846         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
36847         instead.
36848
36849 2008-11-12  Bruno Haible  <bruno@clisp.org>
36850
36851         * lib/unicodeio.c: Include unistr.h.
36852         (utf8_wctomb): Remove function.
36853         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
36854
36855 2008-11-12  Simon Josefsson  <simon@josefsson.org>
36856
36857         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
36858         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
36859         <bruno@clisp.org>.
36860         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
36861
36862 2008-11-12  Simon Josefsson  <simon@josefsson.org>
36863
36864         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
36865         * doc/gnulib.texi: Add section for warnings.
36866
36867 2008-11-11  Bruno Haible  <bruno@clisp.org>
36868
36869         * lib/sockets.h: Add a comment.
36870
36871 2008-11-11  Karl Berry  <karl@gnu.org>
36872
36873         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
36874
36875 2008-11-11  Eric Blake  <ebb9@byu.net>
36876
36877         fdl.texi: avoid git symlinks
36878         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
36879
36880 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
36881
36882         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
36883
36884 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
36885
36886         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
36887         (gl_WARN_ADD): Substitute $2 if literal.
36888
36889 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
36890
36891         * m4/warning.m4: Remove.
36892
36893 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
36894
36895         * m4/warnings.m4: Almost complete rewrite. :-)
36896
36897 2008-11-10  Simon Josefsson  <simon@josefsson.org>
36898
36899         * modules/warnings: New module.
36900         * m4/warnings.m4: New file.
36901         * MODULES.html.sh: Mention warnings module.
36902         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
36903         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36904
36905 2008-11-10  Eric Blake  <ebb9@byu.net>
36906
36907         fdl.texi: make a symlink to the latest version
36908         * doc/standards.texi: Revert today's earlier change.
36909         * doc/fdl-1.2.texi: Rename from old fdl.texi...
36910         * doc/fdl.texi: ...and replace this with a symlink to the newer
36911         fdl-1.3.texi.
36912
36913 2008-11-10  Bruno Haible  <bruno@clisp.org>
36914
36915         * tests/test-select-fd.c (main): Accept the result file name as fourth
36916         argument.
36917         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
36918         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
36919
36920 2008-11-10  Bruno Haible  <bruno@clisp.org>
36921
36922         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
36923         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
36924         as autoconf-substituted macros.
36925         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
36926         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
36927         gl_NETDB_H_DEFAULTS. Set these variables.
36928         * modules/netdb (Makefile.am): Substitute these variables.
36929
36930 2008-11-10  Eric Blake  <ebb9@byu.net>
36931
36932         standards.texi: include correct file for FDL 1.3
36933         * doc/standards.texi (GNU Free Documentation License): Change
36934         include file to pull in FDL 1.3, not 1.2.
36935
36936         fdl.texi: revert accidental change to license
36937         * doc/fdl.texi: This is FDL 1.2, not 1.3.
36938
36939 2008-11-10  Bruno Haible  <bruno@clisp.org>
36940
36941         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
36942         cross-compiling guesses also when the native compile gives no result.
36943
36944 2008-11-10  Bruno Haible  <bruno@clisp.org>
36945
36946         * lib/spawni.c (__spawni): Force variable into the stack.
36947
36948 2008-11-10  Bruno Haible  <bruno@clisp.org>
36949
36950         Add support for Haiku.
36951         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
36952         glibc and BeOS, but also on Haiku.
36953         * lib/fpurge.c (fpurge): Likewise.
36954         * lib/freadable.c (freadable): Likewise.
36955         * lib/freadahead.c (freadahead): Likewise.
36956         * lib/freading.c (freading): Likewise.
36957         * lib/freadptr.c (freadptr): Likewise.
36958         * lib/freadseek.c (freadptrinc): Likewise.
36959         * lib/fseeko.c (rpl_fseeko): Likewise.
36960         * lib/fseterr.c (fseterr): Likewise.
36961         * lib/fwritable.c (fwritable): Likewise.
36962         * lib/fwriting.c (fwriting): Likewise.
36963         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
36964
36965 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
36966
36967         * lib/config.charset: Treat Haiku like BeOS.
36968
36969 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
36970
36971         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
36972         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
36973
36974 2008-11-08  Bruno Haible  <bruno@clisp.org>
36975
36976         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
36977         AC_CACHE_CHECK.
36978
36979 2008-11-08  Bruno Haible  <bruno@clisp.org>
36980
36981         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
36982
36983 2008-11-08  Bruno Haible  <bruno@clisp.org>
36984
36985         * tests/test-select-fd.c: New file.
36986         * tests/test-select-in.sh: New file.
36987         * tests/test-select-out.sh: New file.
36988         * tests/test-select-stdin.c: New file.
36989         * modules/select-tests (Files): Add the new files.
36990         (Depends-on): Add gettimeofday.
36991         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
36992         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
36993         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
36994
36995 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
36996             Bruno Haible  <bruno@clisp.org>
36997
36998         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
36999
37000 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
37001
37002         * build-aux/pmccabe2html: Added support for C++ source files.
37003
37004 2008-11-05  Ben Pfaff  <blp@gnu.org>
37005
37006         Fix lib/close.c build on Windows.
37007         * modules/close (Files): Add lib/w32sock.h.
37008
37009 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
37010
37011         Accept Bison's NEWS format.
37012         * build-aux/announce-gen (print_news_deltas): Tweak
37013         $re_prefix.
37014
37015 2008-11-04  Bruno Haible  <bruno@clisp.org>
37016
37017         * modules/random_r (Maintainer): Add glibc.
37018
37019 2008-11-04  Simon Josefsson  <simon@josefsson.org>
37020
37021         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
37022         by karl@freefriends.org (Karl Berry).
37023         * doc/alloca.texi: Likewise.
37024         * doc/c-ctype.texi: Likewise.
37025         * doc/c-strcase.texi: Likewise.
37026         * doc/c-strcaseeq.texi: Likewise.
37027         * doc/c-strcasestr.texi: Likewise.
37028         * doc/c-strstr.texi: Likewise.
37029         * doc/c-strtod.texi: Likewise.
37030         * doc/c-strtold.texi: Likewise.
37031         * doc/ctime.texi: Likewise.
37032         * doc/error.texi: Likewise.
37033         * doc/fdl.texi: Likewise.
37034         * doc/gcd.texi: Likewise.
37035         * doc/getdate.texi: Likewise.
37036         * doc/gnulib-intro.texi: Likewise.
37037         * doc/gnulib-tool.texi: Likewise.
37038         * doc/gnulib.texi: Likewise.
37039         * doc/inet_ntoa.texi: Likewise.
37040         * doc/maintain.texi: Likewise.
37041         * doc/make-stds.texi: Likewise.
37042         * doc/quote.texi: Likewise.
37043         * doc/regexprops-generic.texi: Likewise.
37044         * doc/standards.texi: Likewise.
37045         * doc/verify.texi: Likewise.
37046         * doc/visibility.texi: Likewise.
37047         * doc/gnulib.texi (GNU Free Documentation License): Include
37048         fdl-1.3.texi instead of fdl.texi.
37049
37050 2008-11-04  Simon Josefsson  <simon@josefsson.org>
37051
37052         * doc/fdl-1.3.texi: New file, from
37053         <http://www.gnu.org/licenses/fdl-1.3.texi>.
37054         * modules/fdl-1.3: Add.
37055         * MODULES.html.sh: Add fdl-1.3.
37056
37057 2008-11-03  Bruno Haible  <bruno@clisp.org>
37058
37059         Make determination of absolute name of header file work with AIX xlc.
37060         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
37061         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
37062         preprocessing.
37063         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
37064         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
37065
37066 2008-11-03  Simon Josefsson  <simon@josefsson.org>
37067
37068         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
37069         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
37070         <ludo@gnu.org>.
37071
37072 2008-11-02  Bruno Haible  <bruno@clisp.org>
37073
37074         Mark 'strpbrk' obsolete.
37075         * modules/strpbrk (Status, Notice): New sections.
37076         * modules/strtok_r (Depends-on): Add strpbrk.
37077
37078 2008-11-02  Bruno Haible  <bruno@clisp.org>
37079
37080         Mark 'strdup' obsolete.
37081         * modules/strdup (Status, Notice): New sections.
37082         * modules/findprog (Depends-on): Add strdup.
37083         * modules/getaddrinfo (Depends-on): Likewise.
37084         * modules/localename (Depends-on): Likewise.
37085         * modules/relocatable-lib (Depends-on): Likewise.
37086         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
37087         * modules/relocatable-prog (Depends-on): Likewise.
37088         * modules/trim (Depends-on): Likewise.
37089         * modules/unictype/gen-ctype (Depends-on): Likewise.
37090         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
37091
37092 2008-11-02  Bruno Haible  <bruno@clisp.org>
37093
37094         Mark 'strcspn' obsolete.
37095         * modules/strcspn (Status, Notice): New sections.
37096
37097 2008-11-02  Bruno Haible  <bruno@clisp.org>
37098
37099         Mark 'rmdir' obsolete.
37100         * modules/rmdir (Status, Notice): New sections.
37101         * modules/clean-temp (Depends-on): Add rmdir.
37102         * modules/openat (Depends-on): Likewise.
37103
37104 2008-11-02  Bruno Haible  <bruno@clisp.org>
37105
37106         Mark 'raise' obsolete.
37107         * modules/raise (Status, Notice): New sections.
37108         (Include): Specify <signal.h>.
37109         * modules/stdio (Depends-on): Add raise.
37110         * modules/write (Depends-on): Likewise.
37111
37112 2008-11-02  Bruno Haible  <bruno@clisp.org>
37113
37114         Mark 'memset' obsolete.
37115         * modules/memset (Status, Notice): New sections.
37116
37117 2008-11-02  Bruno Haible  <bruno@clisp.org>
37118
37119         Mark 'memmove' obsolete.
37120         * modules/memmove (Status, Notice): New sections.
37121         * modules/argp (Depends-on): Add memmove.
37122         * modules/argz (Depends-on): Likewise.
37123         * modules/canonicalize (Depends-on): Likewise.
37124         * modules/canonicalize-lgpl (Depends-on): Likewise.
37125         * modules/fts (Depends-on): Likewise.
37126         * modules/getcwd (Depends-on): Likewise.
37127         * modules/human (Depends-on): Likewise.
37128         * modules/regex (Depends-on): Likewise.
37129         * modules/striconveh (Depends-on): Likewise.
37130         * modules/trim (Depends-on): Likewise.
37131         * modules/unistr/u8-move (Depends-on): Likewise.
37132         * modules/unistr/u16-move (Depends-on): Likewise.
37133         * modules/unistr/u32-move (Depends-on): Likewise.
37134
37135 2008-11-02  Bruno Haible  <bruno@clisp.org>
37136
37137         Mark 'memcpy' obsolete.
37138         * modules/memcpy (Status, Notice): New sections.
37139
37140 2008-11-02  Bruno Haible  <bruno@clisp.org>
37141
37142         Mark 'memcmp' obsolete.
37143         * modules/memcmp (Status, Notice): New sections.
37144         * modules/argmatch (Depends-on): Add memchr.
37145         * modules/backupfile (Depends-on): Likewise.
37146         * modules/c-strcasestr (Depends-on): Likewise.
37147         * modules/crypto/des (Depends-on): Likewise.
37148         * modules/csharpcomp (Depends-on): Likewise.
37149         * modules/fnmatch (Depends-on): Likewise.
37150         * modules/git-merge-changelog (Depends-on): Likewise.
37151         * modules/isnand (Depends-on): Likewise.
37152         * modules/isnand-nolibm (Depends-on): Likewise.
37153         * modules/isnanf (Depends-on): Likewise.
37154         * modules/isnanf-nolibm (Depends-on): Likewise.
37155         * modules/isnanl (Depends-on): Likewise.
37156         * modules/isnanl-nolibm (Depends-on): Likewise.
37157         * modules/mbchar (Depends-on): Likewise.
37158         * modules/memcoll (Depends-on): Likewise.
37159         * modules/quotearg (Depends-on): Likewise.
37160         * modules/regex (Depends-on): Likewise.
37161         * modules/relocatable-prog (Depends-on): Likewise.
37162         * modules/same (Depends-on): Likewise.
37163         * modules/signbit (Depends-on): Likewise.
37164         * modules/strcasestr-simple (Depends-on): Likewise.
37165         * modules/unictype/gen-ctype (Depends-on): Likewise.
37166         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
37167         * modules/uniname/uniname (Depends-on): Likewise.
37168         * modules/unistr/u8-cmp (Depends-on): Likewise.
37169
37170 2008-11-02  Bruno Haible  <bruno@clisp.org>
37171
37172         Mark 'memchr' obsolete.
37173         * modules/memchr (Status, Notice): New sections.
37174         * modules/argp (Depends-on): Add memchr.
37175         * modules/base64 (Depends-on): Likewise.
37176         * modules/c-strcasestr (Depends-on): Likewise.
37177         * modules/chdir-long (Depends-on): Likewise.
37178         * modules/fnmatch (Depends-on): Likewise.
37179         * modules/getsubopt (Depends-on): Likewise.
37180         * modules/git-merge-changelog (Depends-on): Likewise.
37181         * modules/glob (Depends-on): Likewise.
37182         * modules/strcasestr-simple (Depends-on): Likewise.
37183         * modules/strnlen (Depends-on): Likewise.
37184
37185 2008-11-02  Bruno Haible  <bruno@clisp.org>
37186
37187         Mark 'atexit' obsolete.
37188         * modules/atexit (Status, Notice): New sections.
37189         * modules/chdir-long (Depends-on): Add atexit.
37190         * modules/wait-process (Depends-on): Likewise.
37191
37192 2008-11-02  Bruno Haible  <bruno@clisp.org>
37193
37194         * gnulib-tool: New option --with-obsolete.
37195         (func_usage): Document it.
37196         (func_modules_transitive_closure): Drop obsolete dependencies if
37197         incobsolete is not true.
37198         (func_import): Read and save the incobsolete variable to the cache.
37199
37200 2008-11-02  Bruno Haible  <bruno@clisp.org>
37201
37202         * modules/TEMPLATE-EXTENDED: New field 'Status'.
37203         * gnulib-tool: New option --extract-status.
37204         (func_usage): Document it.
37205         (sed_extract_prog): Recognize it.
37206         (func_get_status): New function.
37207
37208 2008-10-30  Simon Josefsson  <simon@josefsson.org>
37209
37210         * modules/sockets (License): Change from LGPL to LGPLv2+.
37211
37212 2008-10-28  Simon Josefsson  <simon@josefsson.org>
37213
37214         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
37215
37216 2008-10-28  Simon Josefsson  <simon@josefsson.org>
37217
37218         * MODULES.html.sh (Support for systems lacking POSIX:2001):
37219         Mention times and sys_times.
37220         * modules/sys_times, modules/sys_times-tests: New modules.
37221         * modules/times, modules/times-tests: Likewise
37222         * m4/sys_times_h.m4: New file.
37223         * lib/sys_times.in.h: Likewise
37224         * lib/times.c: Likewise.
37225         * tests/test-sys_times.c: Likewise.
37226         * tests/test-times.c: Likewise.
37227         * doc/posix-headers/sys_times.texi: Update.
37228         * doc/posix-functions/times.texi: Update.
37229
37230 2008-10-28  Jim Meyering  <meyering@redhat.com>
37231
37232         * modules/tempname (Depends-on): Add lstat.
37233
37234         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
37235
37236 2008-10-28  Simon Josefsson  <simon@josefsson.org>
37237
37238         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
37239         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
37240         using idiom used elsewhere in gnulib.
37241
37242 2008-10-27  Jim Meyering  <meyering@redhat.com>
37243
37244         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
37245
37246 2008-10-27  Simon Josefsson  <simon@josefsson.org>
37247
37248         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
37249         TESTS_ENVIRONMENT, for shell scripts that needs to call built
37250         programs.
37251         * tests/test-argp-2.sh: Use $EXEEXT when needed.
37252
37253 2008-10-27  Simon Josefsson  <simon@josefsson.org>
37254
37255         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
37256
37257 2008-10-27  Bruno Haible  <bruno@clisp.org>
37258
37259         * tests/test-lstat.c: Include <stdio.h>.
37260
37261 2008-10-27  Simon Josefsson  <simon@josefsson.org>
37262
37263         * modules/lstat-tests: New module.
37264         * tests/test-lstat.c: New file.
37265
37266 2008-10-26  Jim Meyering  <meyering@redhat.com>
37267
37268         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
37269
37270 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37271             Bruno Haible  <bruno@clisp.org>
37272
37273         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
37274         * modules/configmake (Include): Add a note that the include must come
37275         after all system headers.
37276         * lib/javaversion.c: Include configmake.h after all other includes.
37277
37278 2008-10-26  Bruno Haible  <bruno@clisp.org>
37279
37280         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
37281         HAVE_STRUCT_RANDOM_DATA to 1.
37282         (gl_STDLIB_H): Simplify.
37283
37284 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37285
37286         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
37287         substitute HAVE_STRUCT_RANDOM_DATA.
37288         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
37289         random_data.
37290         * modules/stdlib (Makefile.am): Substitute
37291         HAVE_STRUCT_RANDOM_DATA.
37292
37293 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37294
37295         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
37296         * doc/gnulib-intro.texi (Copyright): Likewise.
37297
37298 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37299
37300         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
37301         findings.
37302
37303 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
37304             Bruno Haible  <bruno@clisp.org>
37305
37306         * lib/unistd.in.h: Include <winsock2.h>.
37307         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
37308         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
37309         Provide dummy declarations.
37310         (gethostname): Override.
37311         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
37312         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
37313         gl_PREREQ_SYS_H_WINSOCK2.
37314         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
37315         * doc/posix-functions/gethostname.texi: More details.
37316
37317 2008-10-25  Bruno Haible  <bruno@clisp.org>
37318
37319         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
37320         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
37321         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
37322
37323         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
37324         here ...
37325         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
37326         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
37327         gl_UNISTD_H_DEFAULTS.
37328
37329 2008-10-25  Eric Blake  <ebb9@byu.net>
37330
37331         signbit: avoid spurious compiler failure
37332         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
37333         declarations inside function.
37334
37335 2008-10-24  Simon Josefsson  <simon@josefsson.org>
37336             Bruno Haible  <bruno@clisp.org>
37337
37338         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
37339         * modules/random_r (Depends-on): Add stdint.
37340
37341 2008-10-24  Bruno Haible  <bruno@clisp.org>
37342
37343         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
37344         Eggert.
37345         * modules/strerror (License): Likewise.
37346
37347 2008-10-24  Jim Meyering  <meyering@redhat.com>
37348
37349         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
37350         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
37351
37352 2008-10-24  Eric Blake  <ebb9@byu.net>
37353
37354         getgroups: fix compilation when getgroups is available
37355         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
37356         but with <config.h> override of getgroups disabled.
37357
37358 2008-10-24  Simon Josefsson  <simon@josefsson.org>
37359
37360         * doc/gnulib.texi (Header files): Add note about C++ problems.
37361         Explained by Bruno Haible <bruno@clisp.org>.
37362
37363 2008-10-23  Bruno Haible  <bruno@clisp.org>
37364
37365         Define a dummy SA_NODEFER macro on Interix.
37366         * lib/signal.in.h (SA_NODEFER): Define fallback.
37367         Reported by Aleksey Cheusov <cheusov@tut.by> via
37368         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
37369
37370 2008-10-23  Bruno Haible  <bruno@clisp.org>
37371
37372         * modules/freadahead (License): Change to LGPLv2+.
37373         Suggested by Simon Josefsson.
37374
37375 2008-10-23  Jim Meyering  <meyering@redhat.com>
37376
37377         random_r: new module
37378         * modules/random_r: New file.
37379         * m4/random_r.m4: New file.
37380         * lib/random_r.c: New file, from glibc.
37381         * modules/random_r-tests: New file.
37382         * tests/test-random_r.c: New file.
37383         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
37384          Declare.
37385         (RAND_MAX): Define.
37386         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
37387         * modules/stdlib: Substitute them, too.
37388         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
37389         * doc/glibc-functions/initstate_r.texi: Mention the new module.
37390         * doc/glibc-functions/random_r.texi: Likewise.
37391         * doc/glibc-functions/setstate_r.texi: Likewise.
37392         * doc/glibc-functions/srandom_r.texi: Likewise.
37393         * config/srclist.txt: Mention it.
37394
37395 2008-10-23  David Lutterkort  <lutter@redhat.com>
37396
37397         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
37398         link requirement
37399
37400 2008-10-23  Jim Meyering  <meyering@redhat.com>
37401
37402         selinux-h: mark parameters of stub functions as intentionally unused
37403         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
37404         * lib/se-context.in.h: Likewise.
37405
37406 2008-10-22  Simon Josefsson  <simon@josefsson.org>
37407
37408         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
37409
37410 2008-10-22  Simon Josefsson  <simon@josefsson.org>
37411
37412         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
37413
37414 2008-10-22  Eric Blake  <ebb9@byu.net>
37415
37416         glthread/thread: avoid compiler warning
37417         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
37418         Add unreachable abort to silence compiler.
37419
37420 2008-10-22  Eric Blake  <ebb9@byu.net>
37421
37422         netdb: also supply struct addrinfo for cygwin 1.5.x
37423         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
37424         older cygwin.
37425         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
37426         cygwin.
37427         * doc/posix-headers/netdb.texi (netdb.h): Document this.
37428
37429 2008-10-22  Bruno Haible  <bruno@clisp.org>
37430
37431         * users.txt: Update entry about pspp.
37432
37433 2008-10-21  Bruno Haible  <bruno@clisp.org>
37434
37435         Simplification.
37436         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
37437         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
37438
37439         Simplification.
37440         * lib/ioctl.c (ioctl): Don't undefine.
37441         * lib/socket.c (socket): Don't undefine.
37442
37443         Remove unused module indicator macros.
37444         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
37445         GNULIB_$1 as a C macro.
37446
37447         * doc/posix-functions/close.texi: Undo last change.
37448         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
37449         Windows platforms.
37450
37451 2008-10-21  Bruno Haible  <bruno@clisp.org>
37452
37453         Add gethostname() declaration to <unistd.h>.
37454         * lib/unistd.in.h (gethostname): New declaration.
37455         * lib/gethostname.c: Include <unistd.h>.
37456         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
37457         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
37458         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
37459         and HAVE_GETHOSTNAME.
37460         * modules/gethostname (Depends-on): Add unistd.
37461         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37462         (Include): Specify <unistd.h>.
37463         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
37464         HAVE_GETHOSTNAME.
37465         * tests/test-gethostname.c: Include <unistd.h> first.
37466
37467 2008-10-21  Bruno Haible  <bruno@clisp.org>
37468
37469         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
37470         * modules/select-tests (Depends-on): Likewise.
37471         Reported by Simon Josefsson.
37472
37473 2008-10-21  Simon Josefsson  <simon@josefsson.org>
37474
37475         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
37476         * lib/accept.c: New file, based on winsock.c.
37477         * lib/bind.c: New file, based on winsock.c.
37478         * lib/connect.c: New file, based on winsock.c.
37479         * lib/getpeername.c: New file, based on winsock.c.
37480         * lib/getsockname.c: New file, based on winsock.c.
37481         * lib/getsockopt.c: New file, based on winsock.c.
37482         * lib/ioctl.c: New file, based on winsock.c.
37483         * lib/listen.c: New file, based on winsock.c.
37484         * lib/recv.c: New file, based on winsock.c.
37485         * lib/recvfrom.c: New file, based on winsock.c.
37486         * lib/send.c: New file, based on winsock.c.
37487         * lib/sendto.c: New file, based on winsock.c.
37488         * lib/setsockopt.c: New file, based on winsock.c.
37489         * lib/shutdown.c: New file, based on winsock.c.
37490         * lib/socket.c: New file, based on winsock.c.
37491         * lib/w32sock.h: New file, based on winsock.c.
37492         * lib/winsock.c: Remove file.
37493         * modules/accept: Likewise.
37494         * modules/bind: Likewise.
37495         * modules/connect: Likewise.
37496         * modules/getpeername: Likewise.
37497         * modules/getsockname: Likewise.
37498         * modules/getsockopt: Likewise.
37499         * modules/ioctl: Likewise.
37500         * modules/listen: Likewise.
37501         * modules/recv: Likewise.
37502         * modules/recvfrom: Likewise.
37503         * modules/send: Likewise.
37504         * modules/sendto: Likewise.
37505         * modules/setsockopt: Likewise.
37506         * modules/shutdown: Likewise.
37507         * modules/socket: Use socket.c instead of winsock.c.
37508         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
37509         * doc/posix-functions/accept.texi: Doc fix.
37510         * doc/posix-functions/bind.texi: Doc fix.
37511         * doc/posix-functions/close.texi: Doc fix.
37512         * doc/posix-functions/connect.texi: Doc fix.
37513         * doc/posix-functions/getpeername.texi: Doc fix.
37514         * doc/posix-functions/getsockname.texi: Doc fix.
37515         * doc/posix-functions/getsockopt.texi: Doc fix.
37516         * doc/posix-functions/ioctl.texi: Doc fix.
37517         * doc/posix-functions/listen.texi: Doc fix.
37518         * doc/posix-functions/recv.texi: Doc fix.
37519         * doc/posix-functions/recvfrom.texi: Doc fix.
37520         * doc/posix-functions/send.texi: Doc fix.
37521         * doc/posix-functions/sendto.texi: Doc fix.
37522         * doc/posix-functions/setsockopt.texi: Doc fix.
37523         * doc/posix-functions/shutdown.texi: Doc fix.
37524         * doc/posix-functions/socket.texi: Doc fix.
37525
37526 2008-10-20  Bruno Haible  <bruno@clisp.org>
37527
37528         Take into account the role of SIGABRT_COMPAT on Windows 2008.
37529         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
37530         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
37531         as an alias for SIGABRT.
37532         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
37533         (sigaction): Map it to SIGABRT.
37534         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
37535
37536 2008-10-20  Bruno Haible  <bruno@clisp.org>
37537
37538         * lib/fts.c: Don't include lstat.h.
37539         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
37540
37541         Move the lstat() declaration to <sys/stat.h>.
37542         * lib/lstat.h: Remove file.
37543         * lib/sys_stat.in.h: Add special invocation convention.
37544         (lstat): New declaration.
37545         * lib/lstat.c (orig_lstat): New function.
37546         (rpl_lstat): Use orig_lstat instead of lstat.
37547         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
37548         AC_C_INLINE. Set REPLACE_LSTAT.
37549         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
37550         and REPLACE_LSTAT.
37551         * modules/lstat (Files): Remove lib/lstat.h.
37552         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
37553         (Include): Specify <sys/stat.h> instead of lstat.h.
37554         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
37555         REPLACE_LSTAT.
37556         * NEWS: Mention the change.
37557
37558 2008-10-20  Bruno Haible  <bruno@clisp.org>
37559
37560         * modules/posix_spawn-tests: New file.
37561         * tests/test-posix_spawn3.c: New file.
37562
37563 2008-10-20  Bruno Haible  <bruno@clisp.org>
37564
37565         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
37566         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
37567         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
37568         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
37569         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
37570
37571 2008-10-20  Bruno Haible  <bruno@clisp.org>
37572
37573         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
37574         of posix_spawn on AIX 5.3.
37575
37576 2008-10-20  Bruno Haible  <bruno@clisp.org>
37577
37578         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
37579
37580 2008-10-20  Bruno Haible  <bruno@clisp.org>
37581
37582         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
37583         of AC_LANG_PROGRAM.
37584
37585 2008-10-20  Simon Josefsson  <simon@josefsson.org>
37586
37587         * lib/netdb.in.h: Don't define GNU specific constants until they
37588         are supported or needed.  Reported by Bruno Haible
37589         <bruno@clisp.org>.
37590
37591 2008-10-20  Simon Josefsson  <simon@josefsson.org>
37592
37593         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
37594
37595 2008-10-20  Simon Josefsson  <simon@josefsson.org>
37596
37597         * lib/getaddrinfo.h: Remove file.
37598         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
37599         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
37600         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
37601         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
37602         * modules/netdb: Substitute GNULIB_GETADDRINFO.
37603         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
37604         * tests/test-getaddrinfo.c: Likewise.
37605         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
37606         * NEWS: Mention change.
37607
37608 2008-10-19  Bruno Haible  <bruno@clisp.org>
37609
37610         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
37611
37612 2008-10-19  Bruno Haible  <bruno@clisp.org>
37613
37614         * lib/wait-process.c: Include simply <sys/wait.h>.
37615         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
37616         WIFSTOPPED): Remove fallback definitions.
37617         * modules/wait-process (Depends-on): Add sys_wait.
37618
37619         New module 'sys_wait'.
37620         * modules/sys_wait: New file.
37621         * lib/sys_wait.in.h: New file, partially copied from
37622         lib/wait-process.c.
37623         * m4/sys_wait_h.m4: New file.
37624         * doc/posix-headers/sys_wait.texi: Mention the new module.
37625
37626 2008-10-19  Bruno Haible  <bruno@clisp.org>
37627
37628         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
37629
37630 2008-10-19  Bruno Haible  <bruno@clisp.org>
37631
37632         Assume that waitpid() fills an 'int' status, not a 'union wait'.
37633         * lib/wait-process.c (WAIT_T): Remove type.
37634         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
37635         (wait_subprocess): Update.
37636
37637 2008-10-19  Bruno Haible  <bruno@clisp.org>
37638
37639         New module 'atoll'.
37640         * modules/atoll: New file.
37641         * lib/stdlib.in.h (atoll): New declaration.
37642         * lib/atoll.c: New file, from glibc with modifications.
37643         * m4/atoll.m4: New file.
37644         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
37645         HAVE_ATOLL.
37646         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
37647         * doc/posix-functions/atoll.texi: Mention the new module.
37648
37649 2008-10-19  Bruno Haible  <bruno@clisp.org>
37650
37651         Add strtoull() declaration to <stdlib.h>.
37652         * lib/stdlib.in.h (strtoull): New declaration.
37653         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
37654         Set HAVE_STRTOULL.
37655         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
37656         HAVE_STRTOULL.
37657         * modules/strtoull (Depends-on): Add stdlib.
37658         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37659         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
37660         HAVE_STRTOULL.
37661
37662 2008-10-19  Bruno Haible  <bruno@clisp.org>
37663
37664         Add strtoll() declaration to <stdlib.h>.
37665         * lib/stdlib.in.h (strtoll): New declaration.
37666         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
37667         Set HAVE_STRTOLL.
37668         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
37669         HAVE_STRTOLL.
37670         * modules/strtoll (Depends-on): Add stdlib.
37671         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37672         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
37673
37674 2008-10-19  Bruno Haible  <bruno@clisp.org>
37675
37676         * modules/bcopy (Depends-on): Add strings.
37677         (Include): Specify <strings.h>.
37678
37679 2008-10-19  Bruno Haible  <bruno@clisp.org>
37680
37681         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
37682
37683 2008-10-19  Bruno Haible  <bruno@clisp.org>
37684
37685         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
37686         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
37687         mingw.
37688
37689 2008-10-19  Bruno Haible  <bruno@clisp.org>
37690
37691         * lib/atanl.c: Don't include isnanl.h.
37692         * lib/cosl.c: Likewise.
37693         * lib/ldexpl.c: Likewise.
37694         * lib/logl.c: Likewise.
37695         * lib/sinl.c: Likewise.
37696         * lib/sqrtl.c: Likewise.
37697         * lib/tanl.c: Likewise.
37698
37699         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
37700         * lib/isnanf.h: Remove file.
37701         * lib/isnand.h: Remove file.
37702         * lib/isnanl.h: Remove file.
37703         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
37704         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
37705         macros.
37706         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
37707         HAVE_ISNANF, don't define it as a C macro.
37708         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
37709         HAVE_ISNAND, don't define it as a C macro.
37710         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
37711         HAVE_ISNANL, don't define it as a C macro.
37712         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
37713         HAVE_ISNAN[FDL].
37714         * modules/isnanf (Files): Remove lib/isnanf.h.
37715         (Depends-on): Add math.
37716         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
37717         (Include): Specify <math.h> instead of isnanf.h.
37718         * modules/isnand (Files): Remove lib/isnand.h.
37719         (Depends-on): Add math.
37720         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
37721         (Include): Specify <math.h> instead of isnand.h.
37722         * modules/isnanl (Files): Remove lib/isnanl.h.
37723         (Depends-on): Add math.
37724         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
37725         (Include): Specify <math.h> instead of isnanl.h.
37726         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
37727         HAVE_ISNAN[FDL].
37728         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
37729         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
37730         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
37731         * NEWS: Mention the change.
37732
37733 2008-10-18  Bruno Haible  <bruno@clisp.org>
37734
37735         Add getusershell(), setusershell(), endusershell() declarations to
37736         <unistd.h>.
37737         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
37738         declarations.
37739         * lib/getusershell.c: Include unistd.h.
37740         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
37741         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
37742         HAVE_GETUSERSHELL.
37743         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
37744         and HAVE_GETUSERSHELL.
37745         * modules/getusershell (Depends-on): Add unistd, extensions.
37746         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37747         (Include): Specify <unistd.h>.
37748         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
37749         HAVE_GETUSERSHELL.
37750
37751 2008-10-18  Bruno Haible  <bruno@clisp.org>
37752
37753         Add a getloadavg() declaration to <stdlib.h>.
37754         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
37755         getloadavg declaration.
37756         (getloadavg): New declaration.
37757         * lib/getloadavg.c: Include <stdlib.h> first.
37758         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
37759         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
37760         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
37761         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
37762         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
37763         * modules/getloadavg (Depends-on): Add stdlib, extensions.
37764         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37765         (Include): Specify <stdlib.h>.
37766         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
37767         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
37768
37769 2008-10-18  Bruno Haible  <bruno@clisp.org>
37770
37771         * lib/dirchownmod.c: Don't include lchmod.h.
37772
37773         Move the lchmod() declaration to <sys/stat.h>.
37774         * lib/lchmod.h: Remove file.
37775         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
37776         (lchmod): New declaration, moved here from lib/lchown.h.
37777         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
37778         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
37779         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
37780         and HAVE_LCHMOD.
37781         * modules/lchmod (Files): Remove lib/lchmod.h.
37782         (Depends-on): Add sys_stat, extensions.
37783         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
37784         (Include): Specify <sys/stat.h> instead of lchmod.h.
37785         * modules/sys_stat (Depends-on): Add link-warning.
37786         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
37787         definition of GL_LINK_WARNING.
37788         * NEWS: Mention the change.
37789
37790 2008-10-18  Bruno Haible  <bruno@clisp.org>
37791
37792         * lib/fchdir.c: Don't include dirfd.h.
37793         * lib/fts.c: Likewise.
37794         * lib/getcwd.c: Likewise.
37795         * lib/glob.c: Likewise.
37796
37797         Move the dirfd() declaration to <dirent.h>.
37798         * lib/dirfd.h: Remove file.
37799         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
37800         (dirfd): New declaration.
37801         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
37802         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
37803         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
37804         HAVE_DECL_DIRFD.
37805         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
37806         HAVE_DECL_DIRFD.
37807         * modules/dirfd (Files): Remove lib/dirfd.h.
37808         (Depends-on): Add dirent, extensions.
37809         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
37810         (Include): Specify <dirent.h> instead of dirfd.h.
37811         * modules/dirent (Depends-on): Add link-warning.
37812         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
37813         definition of GL_LINK_WARNING.
37814         * NEWS: Mention the change.
37815
37816 2008-10-18  Bruno Haible  <bruno@clisp.org>
37817
37818         Move the euidaccess() declaration to <unistd.h>.
37819         * lib/euidaccess.h: Remove file.
37820         * lib/unistd.in.h (euidaccess): New declaration.
37821         * lib/euidaccess.c: Don't include euidaccess.h.
37822         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
37823         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
37824         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
37825         and HAVE_EUIDACCESS.
37826         * modules/euidaccess (Files): Remove lib/euidaccess.h.
37827         (Depends-on): Add unistd.
37828         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37829         (Include): Specify <unistd.h> instead of euidaccess.h.
37830         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
37831         HAVE_EUIDACCESS.
37832         * NEWS: Mention the change.
37833
37834 2008-10-18  Bruno Haible  <bruno@clisp.org>
37835
37836         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
37837
37838         Move the getdomainname() declaration to <unistd.h>.
37839         * lib/getdomainname.h: Remove file.
37840         * lib/unistd.in.h (getdomainname): New declaration.
37841         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
37842         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
37843         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
37844         HAVE_GETDOMAINNAME.
37845         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37846         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
37847         * modules/getdomainname (Files): Remove lib/getdomainname.h.
37848         (Depends-on): Add unistd, extensions.
37849         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37850         (Includes): Specify <unistd.h> instead of getdomainname.h.
37851         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
37852         HAVE_GETDOMAINNAME.
37853         * NEWS: Mention the change.
37854
37855 2008-10-18  Bruno Haible  <bruno@clisp.org>
37856
37857         * modules/dirent: New file.
37858         * m4/dirent_h.m4: New file.
37859         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
37860         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
37861         * modules/fchdir (Files): Remove lib/dirent.in.h.
37862         (Depends-on): Add dirent.
37863         (Makefile.am): Move rules to modules/dirent.
37864         * doc/posix-headers/dirent.texi: Mention the new module.
37865
37866 2008-10-18  Bruno Haible  <bruno@clisp.org>
37867
37868         Avoid -Wunused-parameter warnings in public gnulib header files.
37869         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
37870         macro.
37871         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
37872
37873 2008-10-18  Bruno Haible  <bruno@clisp.org>
37874
37875         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
37876         * doc/glibc-functions/error.texi: Mention the module 'error'.
37877         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
37878         * doc/glibc-functions/getdomainname.texi: Mention the module
37879         'getdomainname'.
37880         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
37881         * doc/glibc-functions/getpagesize.texi: Mention the module
37882         'getpagesize'.
37883         * doc/glibc-functions/getusershell.texi: Mention the module
37884         'getusershell'.
37885         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
37886         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
37887         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
37888         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
37889         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
37890         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
37891         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
37892         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
37893         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
37894         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
37895         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
37896         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
37897         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
37898         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
37899
37900 2008-10-17  Bruno Haible  <bruno@clisp.org>
37901
37902         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
37903         HP-UX and IRIX, use -0.0L.
37904         * tests/test-ceill.c (minus_zero): Likewise.
37905         * tests/test-floorl.c (minus_zero): Likewise.
37906         * tests/test-frexpl.c (minus_zero): Likewise.
37907         * tests/test-isnan.c (minus_zerol): Likewise.
37908         * tests/test-isnanl.h (minus_zero): Likewise.
37909         * tests/test-ldexpl.c (minus_zero): Likewise.
37910         * tests/test-roundl.c (minus_zero): Likewise.
37911         * tests/test-signbit.c (minus_zerol): Likewise.
37912         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
37913         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
37914         * tests/test-truncl.c (minus_zero): Likewise.
37915         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
37916         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
37917         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
37918         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
37919
37920 2008-10-17  Bruno Haible  <bruno@clisp.org>
37921
37922         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
37923         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
37924         that it gets activated only for gcc >= 3.0.
37925         * lib/dirent.in.h: Likewise.
37926         * lib/errno.in.h: Likewise.
37927         * lib/fcntl.in.h: Likewise.
37928         * lib/float.in.h: Likewise.
37929         * lib/iconv.in.h: Likewise.
37930         * lib/inttypes.in.h: Likewise.
37931         * lib/locale.in.h: Likewise.
37932         * lib/math.in.h: Likewise.
37933         * lib/netdb.in.h: Likewise.
37934         * lib/netinet_in.in.h: Likewise.
37935         * lib/search.in.h: Likewise.
37936         * lib/signal.in.h: Likewise.
37937         * lib/spawn.in.h: Likewise.
37938         * lib/stdarg.in.h: Likewise.
37939         * lib/stdint.in.h: Likewise.
37940         * lib/stdio.in.h: Likewise.
37941         * lib/stdlib.in.h: Likewise.
37942         * lib/string.in.h: Likewise.
37943         * lib/strings.in.h: Likewise.
37944         * lib/sys_file.in.h: Likewise.
37945         * lib/sys_ioctl.in.h: Likewise.
37946         * lib/sys_select.in.h: Likewise.
37947         * lib/sys_socket.in.h: Likewise.
37948         * lib/sys_stat.in.h: Likewise.
37949         * lib/sys_time.in.h: Likewise.
37950         * lib/sysexits.in.h: Likewise.
37951         * lib/time.in.h: Likewise.
37952         * lib/unistd.in.h: Likewise.
37953         * lib/wchar.in.h: Likewise.
37954         * lib/wctype.in.h: Likewise.
37955         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
37956
37957 2008-10-17  Jim Meyering  <meyering@redhat.com>
37958
37959         ignore-value: don't depend on inline module
37960         * modules/ignore-value (Depends-on): Remove 'inline'.
37961         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
37962         Suggestion from Bruno Haible.
37963
37964 2008-10-17  Bruno Haible  <bruno@clisp.org>
37965
37966         New implementation of condition variables for Win32.
37967         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
37968         (gl_linked_waitqueue_t): New type.
37969         (gl_cond_t): Use it.
37970         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
37971         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
37972         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
37973         (glthread_cond_init_func, glthread_cond_wait_func,
37974         glthread_cond_timedwait_func, glthread_cond_signal_func,
37975         glthread_cond_broadcast_func, glthread_cond_destroy_func):
37976         Reimplemented on the basis of gl_linked_waitqueue_t.
37977         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
37978         gl_waitqueue_t.
37979         (gl_rwlock_t): Update.
37980         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
37981
37982 2008-10-17  Simon Josefsson  <simon@josefsson.org>
37983
37984         * modules/recvfrom (Depends-on): Add dependency on getpeername.
37985         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
37986
37987 2008-10-17  Jim Meyering  <meyering@redhat.com>
37988
37989         ignore-value: new module
37990         * modules/ignore-value: New file.
37991         * lib/ignore-value.h: New file.
37992         * MODULES.html.sh (Compiler warning management): New section,
37993         just for this module.  More to come.
37994
37995 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
37996
37997         open-safer.c: avoid 'signed and unsigned in conditional...' warning
37998         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
37999         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
38000
38001 2008-10-16  Jim Meyering  <meyering@redhat.com>
38002
38003         openat-die.c: avoid 'no previous prototype' warning
38004         * lib/openat-die.c: Include "openat.h".
38005         Reported by Reuben Thomas <rrt@sc3d.org>.
38006
38007 2008-10-16  Simon Josefsson  <simon@josefsson.org>
38008
38009         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
38010         * lib/netdb.in.h: Fix typo.
38011         Reported by Bruno Haible  <bruno@clisp.org>
38012
38013         * lib/netdb.in.h: Include sys/socket.h for platforms without
38014         netdb.h, to get structures like hostent on MinGW.
38015         * modules/netdb (Depends-on): Add sys_socket.
38016
38017 2008-10-15  Simon Josefsson  <simon@josefsson.org>
38018
38019         * modules/netdb, modules/netdb-tests: New file.
38020         * m4/netdb_h.m4: New file.
38021         * lib/netdb.in.h: Add, currently just an empty file pending
38022         definitions.
38023         * tests/test-netdb.c: New file.
38024         * doc/posix-headers/netdb.texi: Mention that we replace it if
38025         needed.
38026         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38027         netdb.
38028
38029 2008-10-15  Simon Josefsson  <simon@josefsson.org>
38030
38031         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
38032         with code.
38033
38034 2008-10-13  Bruno Haible  <bruno@clisp.org>
38035
38036         * lib/glthread/cond.c (glthread_cond_wait_func,
38037         glthread_cond_timedwait_func): Add a comment.
38038
38039 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
38040
38041         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
38042         * tests/test-select.c: Likewise,
38043
38044 2008-10-13  Bruno Haible  <bruno@clisp.org>
38045
38046         * lib/glthread/cond.c (glthread_cond_wait_func,
38047         glthread_cond_timedwait_func): Fix variable name.
38048         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
38049
38050 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
38051
38052         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
38053         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
38054         struct sockaddr.sa_len.
38055         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
38056
38057 2008-10-13  Simon Josefsson  <simon@josefsson.org>
38058
38059         * build-aux/pmccabe2html: Add css and css_url parameters.
38060
38061 2008-10-12  Bruno Haible  <bruno@clisp.org>
38062
38063         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
38064         calling aclx_get.
38065         Reported by Rainer Tammer <tammer@tammer.net>.
38066
38067 2008-10-12  Bruno Haible  <bruno@clisp.org>
38068
38069         Use msvcrt aware primitives for creation/termination of Win32 threads.
38070         * lib/glthread/thread.c: Include <process.h>.
38071         (glthread_create_func): Use _beginthreadex instead of CreateThread.
38072         (wrapper_func): Update signature.
38073         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
38074
38075 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
38076             Bruno Haible  <bruno@clisp.org>
38077
38078         Provide a Win32 implementation of the 'cond' module.
38079         * lib/glthread/cond.h [USE_WIN32]: New implementation.
38080         * lib/glthread/cond.c (glthread_cond_init_func,
38081         glthread_cond_wait_func, glthread_cond_timedwait_func,
38082         glthread_cond_signal_func, glthread_cond_broadcast_func,
38083         glthread_cond_destroy_func) [USE_WIN32]: New functions.
38084         * modules/cond (Dependencies): Add gettimeofday.
38085
38086 2008-10-11  Bruno Haible  <bruno@clisp.org>
38087
38088         Make sleep work on older versions of mingw.
38089         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
38090         only whether it exists.
38091         * doc/posix-functions/sleep.texi: Mention the problem with older
38092         versions of mingw.
38093
38094 2008-10-11  Bruno Haible  <bruno@clisp.org>
38095
38096         New module 'shutdown'.
38097         * modules/shutdown: New file.
38098         * lib/sys_socket.in.h (shutdown): New declaration.
38099         * lib/winsock.c (shutdown): New function.
38100         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
38101         GNULIB_SHUTDOWN.
38102         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
38103         * doc/posix-functions/shutdown.texi: Document the new module.
38104
38105 2008-10-11  Jim Meyering  <meyering@redhat.com>
38106
38107         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
38108
38109 2008-10-11  Bruno Haible  <bruno@clisp.org>
38110
38111         New module 'fclose'.
38112         * modules/fclose: New file.
38113         * lib/stdio.in.h (fclose): New declaration.
38114         * lib/fclose.c: New file.
38115         * m4/fclose.m4: New file.
38116         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
38117         REPLACE_FCLOSE.
38118         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
38119         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
38120         REPLACE_FCLOSE.
38121         * modules/close (Depends-on): fclose.
38122         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
38123
38124 2008-10-11  Bruno Haible  <bruno@clisp.org>
38125
38126         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
38127         set errno and don't call _close.
38128
38129 2008-10-10  Bruno Haible  <bruno@clisp.org>
38130
38131         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
38132         ACL, not afterwards. Fixes test failure on Cygwin.
38133
38134 2008-10-09  Ben Pfaff  <blp@gnu.org>
38135
38136         * build-aux/announce-gen: Fix gnulib version related part of usage
38137         message.  Die with a useful error message if no tarballs are
38138         found.
38139
38140 2008-10-10  Jim Meyering  <meyering@redhat.com>
38141
38142         bootstrap: use git's --depth=N option only if it's supported
38143         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
38144         recognize the --depth option.  Reported by Pádraig Brady.
38145
38146 2008-10-09  Bruno Haible  <bruno@clisp.org>
38147
38148         New module 'ioctl'.
38149         * modules/ioctl: New file.
38150         * lib/sys_socket.in.h (ioctl): Remove declaration.
38151         * lib/winsock.c: Include <sys/ioctl.h>.
38152         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
38153         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
38154         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
38155         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
38156         * doc/posix-functions/ioctl.texi: Mention the new module.
38157
38158 2008-10-09  Bruno Haible  <bruno@clisp.org>
38159
38160         New module 'sys_ioctl'.
38161         * lib/sys_ioctl.in.h: New file.
38162         * m4/sys_ioctl_h.m4: New file.
38163         * modules/sys_ioctl: New file.
38164         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
38165
38166 2008-10-09  Bruno Haible  <bruno@clisp.org>
38167
38168         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
38169         * lib/winsock.c: Include <stdarg.h>.
38170         (rpl_ioctl): Change to second argument 'int' and then varargs.
38171
38172 2008-10-09  Bruno Haible  <bruno@clisp.org>
38173
38174         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
38175         when the sys_socket module is present and the system has <winsock2.h>.
38176
38177 2008-10-09  Bruno Haible  <bruno@clisp.org>
38178
38179         * doc/posix-functions/close.texi: Mention module 'close' instead of
38180         module 'sys_socket'.
38181
38182 2008-10-09  Bruno Haible  <bruno@clisp.org>
38183
38184         * doc/glibc-headers/sys_ioctl.texi: New file.
38185         * doc/gnulib.texi: Include it.
38186
38187 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38188             Bruno Haible  <bruno@clisp.org>
38189
38190         Combine the two replacements of 'close'.
38191         * lib/sys_socket.in.h (close): Define to a reminder to include
38192         <unistd.h>.
38193         (_gl_close_fd_maybe_socket): New declaration.
38194         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
38195         * lib/winsock.c (close): Remove undefinition.
38196         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
38197         needed for the gnulib module 'close'.
38198         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
38199         define to an error symbol or to a warning, if suitable.
38200         * lib/close.c: Include <sys/socket.h>.
38201         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
38202         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
38203         UNISTD_H_HAVE_WINSOCK2_H.
38204         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
38205         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38206         UNISTD_H_HAVE_WINSOCK2_H.
38207         * modules/sys_socket (Files): Add m4/unistd_h.m4.
38208         (configure.ac): Set a module indicator.
38209         (Makefile.am): Substitute GNULIB_CLOSE.
38210         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
38211         * modules/poll-tests (Depends-on): Add close.
38212         * modules/select-tests (Depends-on): Likewise.
38213
38214 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38215             Bruno Haible  <bruno@clisp.org>
38216
38217         New module 'close'.
38218         * modules/close: New file.
38219         * lib/unistd.in.h (close): Move declaration out of the
38220         FCHDIR_REPLACEMENT scope.
38221         (_gl_unregister_fd): New declaration.
38222         * lib/close.c: New file.
38223         * lib/fchdir.c (rpl_close): Remove function.
38224         * m4/close.m4: New file.
38225         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
38226         close.
38227         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
38228         REPLACE_CLOSE.
38229         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
38230         REPLACE_CLOSE.
38231         * modules/fchdir (Depends-on): Add close.
38232
38233 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38234             Bruno Haible  <bruno@clisp.org>
38235
38236         * lib/fcntl.in.h (open): Simplify conditionals.
38237         (_gl_register_fd): New declaration.
38238         * lib/fchdir.c (rpl_open): Remove function.
38239         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
38240         also.
38241         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
38242         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
38243         open.
38244
38245 2008-10-09  Jim Meyering  <meyering@redhat.com>
38246
38247         GNUmakefile: use the more name-space-friendly "_version"
38248         * top/GNUmakefile (_dummy): Update.
38249         (_version): Rename from "version".
38250
38251 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38252             Bruno Haible  <bruno@clisp.org>
38253
38254         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
38255         rpl_close.
38256         (_gl_register_fd): New function, extracted from rpl_open.
38257         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
38258         (rpl_open, rpl_opendir): Use _gl_register_fd.
38259
38260 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38261
38262         Fix organization of 'open' replacement.
38263         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
38264         (gl_FUNC_OPEN): Use it.
38265         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
38266
38267 2008-10-08  Bruno Haible  <bruno@clisp.org>
38268
38269         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
38270
38271 2008-10-08  Simon Josefsson  <simon@josefsson.org>
38272
38273         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
38274         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
38275         listen).
38276
38277 2008-10-08  Eric Blake  <ebb9@byu.net>
38278
38279         GNUmakefile: add 'make version' target
38280         * top/GNUmakefile (_curr-ver): Split version update rules...
38281         (version): ...into a target.
38282
38283 2008-10-07  Bruno Haible  <bruno@clisp.org>
38284
38285         Use a more portable replacement expression for -0.0L.
38286         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
38287         instead of -0.0L. Fix m4 quotation.
38288
38289         * tests/test-signbit.c: Include <float.h>.
38290         (minus_zero): New variable.
38291         (test_signbitl): Use minus_zero instead of -zero.
38292         * modules/signbit-tests (Depends-on): Add float.
38293
38294         * tests/test-ceill.c: Include <float.h>.
38295         (zero): Remove variable.
38296         (minus_zero): New variable.
38297         (main): Use minus_zero instead of -zero.
38298         * modules/ceill-tests (Depends-on): Add float.
38299
38300         * tests/test-floorl.c: Include <float.h>.
38301         (zero): Remove variable.
38302         (minus_zero): New variable.
38303         (main): Use minus_zero instead of -zero.
38304         * modules/floorl-tests (Depends-on): Add float.
38305
38306         * tests/test-roundl.c: Include <float.h>.
38307         (zero): Remove variable.
38308         (minus_zero): New variable.
38309         (main): Use minus_zero instead of -zero.
38310         * modules/roundl-tests (Depends-on): Add float.
38311
38312         * tests/test-truncl.c: Include <float.h>.
38313         (zero): Remove variable.
38314         (minus_zero): New variable.
38315         (main): Use minus_zero instead of -zero.
38316         * modules/truncl-tests (Depends-on): Add float.
38317
38318         * tests/test-frexpl.c (zero): Remove variable.
38319         (minus_zero): New variable.
38320         (main): Use minus_zero instead of -zero.
38321         * modules/frexpl-tests (Depends-on): Add float.
38322
38323         * tests/test-isnan.c (zerol): Remove variable.
38324         (minus_zerol): New variable.
38325         (test_long_double): Use minus_zerol instead of -zerol.
38326         * modules/isnan-tests (Depends-on): Add float.
38327
38328         * tests/test-isnanl.h (zero): Remove variable.
38329         (minus_zero): New variable.
38330         (main): Use minus_zero instead of -zero.
38331         * modules/isnanl-nolibm-tests (Depends-on): Add float.
38332         * modules/isnanl-tests (Depends-on): Add float.
38333
38334         * tests/test-ldexpl.c (zero): Remove variable.
38335         (minus_zero): New variable.
38336         (main): Use minus_zero instead of -zero.
38337         * modules/ldexpl-tests (Depends-on): Add float.
38338
38339         * tests/test-snprintf-posix.h (zerol): Remove variable.
38340         (minus_zerol): New variable.
38341         (test_function): Use minus_zerol instead of -zerol.
38342         * modules/snprintf-posix-tests (Depends-on): Add float.
38343         * modules/vsnprintf-posix-tests (Depends-on): Add float.
38344
38345         * tests/test-sprintf-posix.h (zerol): Remove variable.
38346         (minus_zerol): New variable.
38347         (test_function): Use minus_zerol instead of -zerol.
38348         * modules/sprintf-posix-tests (Depends-on): Add float.
38349         * modules/vsprintf-posix-tests (Depends-on): Add float.
38350
38351         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
38352         (minus_zerol): New variable.
38353         (test_function): Use minus_zerol instead of -zerol.
38354         * modules/vasnprintf-posix-tests (Depends-on): Add float.
38355
38356         * tests/test-vasprintf-posix.c (zerol): Remove variable.
38357         (minus_zerol): New variable.
38358         (test_function): Use minus_zerol instead of -zerol.
38359         * modules/vasprintf-posix-tests (Depends-on): Add float.
38360
38361 2008-10-07  Simon Josefsson  <simon@josefsson.org>
38362
38363         * MODULES.html.sh (Support for building documentation): Mention
38364         pmccabe2html.  Sort entries.
38365
38366         Add pmccabe2html module, from gnupdf.
38367         * build-aux/pmccabe.css: New file.
38368         * build-aux/pmccabe2html: New file.
38369         * m4/pmccabe2html.m4: New file.
38370         * modules/pmccabe2html: New file.
38371
38372 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
38373
38374         flock: new module
38375         * MODULES.html.sh: Add to list of modules.
38376         * lib/flock.c: flock implementation for Windows and Unix systems
38377         which have fcntl.
38378         * doc/glibc-functions/flock.texi: Update documentation.
38379         * lib/sys_file.in.h: <sys/file.h> header file.
38380         * m4/flock.m4: M4 macros.
38381         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
38382         * modules/flock: flock module.
38383         * modules/flock-tests: flock tests module.
38384         * modules/sys_file: sys/file.h module.
38385         * tests/test-flock.c: test suite for flock.
38386
38387 2008-10-06  Jim Meyering  <meyering@redhat.com>
38388
38389         bootstrap: check for LT_INIT more portably still ;-)
38390         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
38391         Spotted by Bruno Haible.
38392
38393 2008-10-06  Eric Blake  <ebb9@byu.net>
38394
38395         test-signbit: avoid tripping Irix cc bug on -0.0L
38396         * tests/test-signbit.c (minus_zerol): Delete, and replace with
38397         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
38398         entire testsuite consistent and avoids an Irix 6.2 bug.
38399
38400 2008-10-05  Bruno Haible  <bruno@clisp.org>
38401             Jim Meyering  <jim@meyering.net>
38402
38403         Add an option for ignoring EPIPE during close_stdout.
38404         * lib/closeout.h: Include <stdbool.h>.
38405         (close_stdout_set_ignore_EPIPE): New declaration.
38406         * lib/closeout.c: Include <stdbool.h>.
38407         (ignore_EPIPE): New variable.
38408         (close_stdout_set_ignore_EPIPE): New function.
38409         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
38410         * lib/close-stream.c (close_stream): Mention the possible EPIPE
38411         failure.
38412         * modules/closeout (Depends-on): Add stdbool.
38413
38414 2008-10-05  Bruno Haible  <bruno@clisp.org>
38415
38416         * modules/accept: New file.
38417         * modules/bind: New file.
38418         * modules/connect: New file.
38419         * modules/getpeername: New file.
38420         * modules/getsockname: New file.
38421         * modules/getsockopt: New file.
38422         * modules/listen: New file.
38423         * modules/recv: New file.
38424         * modules/recvfrom: New file.
38425         * modules/send: New file.
38426         * modules/sendto: New file.
38427         * modules/setsockopt: New file.
38428         * modules/socket: New file.
38429         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
38430         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
38431         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
38432         the particular module is requested. Add a link warning when the
38433         particular module is not requested.
38434         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
38435         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
38436         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
38437         the particular module is requested.
38438         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
38439         gl_SYS_SOCKET_H_DEFAULTS): New macros.
38440         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
38441         * modules/sys_socket (Depends-on): Add link-warning.
38442         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
38443         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
38444         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
38445         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
38446         GL_LINK_WARNING.
38447         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
38448         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
38449         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
38450         * doc/posix-functions/getpeername.texi: Mention the new module
38451         'getpeername'.
38452         * doc/posix-functions/getsockname.texi: Mention the new module
38453         'getsockname'.
38454         * doc/posix-functions/getsockopt.texi: Mention the new module
38455         'getsockopt'.
38456         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
38457         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
38458         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
38459         * doc/posix-functions/send.texi: Mention the new module 'send'.
38460         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
38461         * doc/posix-functions/setsockopt.texi: Mention the new module
38462         'setsockopt'.
38463         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
38464         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
38465         listen, connect, accept.
38466         * modules/select-tests (Depends-on): Likewise.
38467
38468 2008-10-05  Bruno Haible  <bruno@clisp.org>
38469
38470         * lib/winsock.c (strerror): Remove unused #undef.
38471         (rpl_close): Remove unused local variable.
38472
38473         * modules/sys_socket (Depends-on); Add errno.
38474
38475 2008-10-05  Bruno Haible  <bruno@clisp.org>
38476
38477         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
38478         (select): Add a link warning when the 'select' module is not used.
38479         * modules/sys_select (Depends-on): Add link-warning.
38480         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
38481         Suggested by Paolo Bonzini.
38482
38483 2008-10-05  Jim Meyering  <meyering@redhat.com>
38484
38485         bootstrap: check for LT_INIT more portably
38486         * build-aux/bootstrap: Avoid using grep -E, since it's not
38487         portable enough.  Suggestion from Bruno Haible.
38488
38489 2008-10-05  Bruno Haible  <bruno@clisp.org>
38490
38491         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
38492         as being fixed by gnulib.
38493
38494 2008-10-05  Bruno Haible  <bruno@clisp.org>
38495
38496         * modules/select-tests: New file, mostly copied from
38497         modules/sys_select-tests.
38498         * tests/test-select.c: New file, mostly copied from
38499         tests/test-sys_select.c.
38500         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
38501         * modules/sys_select-tests (Depends-on): Remove all dependencies.
38502         (Makefile.am): Remove test_sys_select_LDADD.
38503
38504         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
38505         to an undefined symbol, for an error message.
38506         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
38507         (gl_SYS_SELECT_H_DEFAULTS): New macro.
38508         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
38509         winsock-select.c here.
38510         * modules/sys_select (Files): Remove lib/winsock-select.c.
38511         (Depends-on): Remove alloca.
38512         (Makefile.am): Substitute GNULIB_SELECT.
38513         * modules/select: New file.
38514         * doc/posix-functions/select.texi: Update.
38515
38516 2008-10-05  Bruno Haible  <bruno@clisp.org>
38517
38518         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
38519         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
38520         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
38521         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
38522         getdtablesize.
38523         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
38524         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
38525
38526 2008-10-05  Bruno Haible  <bruno@clisp.org>
38527
38528         * modules/getdtablesize-tests: New file.
38529         * tests/test-getdtablesize.c: New file.
38530
38531         New module 'getdtablesize'.
38532         * lib/unistd.in.h (getdtablesize): New declaration.
38533         * lib/getdtablesize.c: New file.
38534         * m4/getdtablesize.m4: New file.
38535         * modules/getdtablesize: New file.
38536         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38537         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
38538         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
38539         HAVE_GETDTABLESIZE.
38540         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
38541
38542 2008-10-05  Bruno Haible  <bruno@clisp.org>
38543
38544         * modules/sched (Makefile.am): Fix typo.
38545         Reported by Simon Josefsson.
38546
38547 2008-10-05  Jim Meyering  <meyering@redhat.com>
38548
38549         bootstrap: check for LT_INIT, too
38550         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
38551         are deprecated.  Suggestion from Ralf Wildenhues.
38552
38553 2008-10-05  Bruno Haible  <bruno@clisp.org>
38554
38555         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
38556         overriding them by ours.
38557         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
38558
38559 2008-10-05  Jim Meyering  <meyering@redhat.com>
38560
38561         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
38562         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
38563         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
38564
38565 2008-10-04  Bruno Haible  <bruno@clisp.org>
38566
38567         * modules/dup2 (License): Change to LGPLv2+.
38568         * modules/sleep (License): Likewise.
38569         * modules/perror (License): Likewise.
38570         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
38571         Blake.
38572         * modules/signal (License): Likewise.
38573         * modules/sigprocmask (License): Likewise.
38574         * modules/raise (License): Change to LGPLv2+, with approval by Jim
38575         Meyering.
38576
38577 2008-10-04  Bruno Haible  <bruno@clisp.org>
38578
38579         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
38580         Reported by Rainer Tammer <tammer@tammer.net>.
38581
38582 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
38583             Bruno Haible  <bruno@clisp.org>
38584
38585         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
38586         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
38587         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
38588
38589 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
38590
38591         filevercmp: new module
38592         * lib/filevercmp.h: New function filevercmp comparing version strings.
38593         * lib/filevercmp.c: Implementation of filevercmp function.
38594         * modules/filevercmp: Module metadata.
38595         * tests/test-filevercmp.c: Unit test for new module.
38596         * modules/filevercmp-tests: Unit test metadata.
38597         * MODULES.html.sh: Add filevercmp module.
38598
38599 2008-10-03  Bruno Haible  <bruno@clisp.org>
38600
38601         * lib/c-ctype.h: Add comment.
38602         Reported by Jim Meyering.
38603
38604 2008-10-02  Bruno Haible  <bruno@clisp.org>
38605
38606         * modules/posix_spawn-internal (Depends-on): Add 'open'.
38607
38608 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
38609
38610         * build-aux/bootstrap: Allow renaming bootstrap, and change the
38611         name of bootstrap.conf accordingly.
38612
38613 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
38614
38615         * build-aux/bootstrap: Install git-merge-changelog configuration
38616         items into .gitconfig if needed.
38617
38618 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
38619
38620         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
38621         git repository, and initialize/update it accordingly.
38622
38623 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
38624
38625         * modules/fsync-tests: New file.
38626         * tests/test-fsync.c: New file.
38627
38628         New module 'fsync'.
38629         * lib/fsync.c: New file.
38630         * m4/fsync.m4: New file.
38631         * modules/fsync: New file.
38632         * lib/unistd.in.h (fsync): New declaration.
38633         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
38634         GNULIB_FSYNC and HAVE_FSYNC.
38635         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
38636         * MODULES.html.sh (posix_functions): Add fsync.
38637         * doc/posix-functions/fsync.texi: Mention the new module.
38638
38639 2008-10-02  Jim Meyering  <meyering@redhat.com>
38640
38641         fts.c: sync with similar code from coreutils' remove.c
38642         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
38643         Guard also with "#if defined __linux__", since for now at least,
38644         this code is Linux-kernel-specific.
38645
38646 2008-10-02  Jim Meyering  <meyering@redhat.com>
38647
38648         fts: bug fixes
38649         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
38650         Include <sys/vfs.h>, not <sys/statfs.h>.
38651
38652         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
38653         Include <sys/vfs.h>, not <sys/statfs.h>.
38654
38655 2008-10-01  Bruno Haible  <bruno@clisp.org>
38656
38657         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
38658         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
38659         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
38660         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
38661         * doc/posix-functions/posix_spawnp.texi: Likewise.
38662         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
38663         whether posix_spawn actually works.
38664         * m4/pipe.m4 (gl_PIPE): Likewise.
38665         * modules/execute (Files): Add m4/posix_spawn.m4.
38666         * modules/pipe (Files): Add m4/posix_spawn.m4.
38667         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
38668
38669 2008-10-01  Jim Meyering  <meyering@redhat.com>
38670
38671         remove trailing spaces
38672         * NEWS: Likewise.
38673         * lib/poll.c (poll): Likewise.
38674         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
38675         * lib/winsock.c (rpl_close): Likewise.
38676         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
38677         * modules/yield: Likewise.
38678         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
38679         * tests/test-sys_select.c (connect_to_socket): Likewise.
38680
38681         fts.c: adjust a new interface to be more generally useful
38682         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
38683         (fts_build): Adjust caller.
38684
38685 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38686
38687         * modules/cond-tests: New file.
38688         * tests/test-cond.c: New file.
38689
38690 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38691             Bruno Haible  <bruno@clisp.org>
38692
38693         * modules/cond (Dependencies): Add errno, time.
38694         * lib/glthread/cond.h: Include <time.h>.
38695         (gl_cond_define, gl_cond_define_initialized): Use the same definition
38696         across platforms.
38697
38698 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38699             Bruno Haible  <bruno@clisp.org>
38700
38701         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
38702
38703 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38704             Bruno Haible  <bruno@clisp.org>
38705
38706         * modules/tls-tests (Depends-on): Add thread, yield.
38707         (configure.ac): Remove all checks.
38708         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
38709         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
38710         gl_thread_self): Remove definitions. Include glthread/thread.h and
38711         glthread/yield.h instead.
38712         (test_tls): Pass an additional NULL argument to gl_thread_join.
38713
38714 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38715             Bruno Haible  <bruno@clisp.org>
38716
38717         * modules/lock-tests (Depends-on): Add thread, yield.
38718         (configure.ac): Remove all checks.
38719         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
38720         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
38721         gl_thread_self): Remove definitions. Include glthread/thread.h and
38722         glthread/yield.h instead.
38723         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
38724         additional NULL argument to gl_thread_join.
38725
38726 2008-09-30  Bruno Haible  <bruno@clisp.org>
38727
38728         Fix the Win32 implementation of the 'thread' module.
38729         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
38730         pointer type.
38731         (gl_thread_self): Invoke gl_thread_self_func.
38732         (gl_thread_self_func): New declaration.
38733         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
38734         (do_init_self_key, init_self_key): New functions.
38735         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
38736         Remove some fields.
38737         (running_threads, running_lock): Remove variables.
38738         (get_current_thread_handle): New function.
38739         (gl_thread_self_func, wrapper_func, glthread_create_func,
38740         glthread_join_func, gl_thread_exit_func): Largely rewritten and
38741         simplified.
38742
38743 2008-09-30  Bruno Haible  <bruno@clisp.org>
38744
38745         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
38746         files.
38747
38748 2008-09-30  Jim Meyering  <meyering@redhat.com>
38749
38750         fts.m4: correct the test for statfs.f_type
38751         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
38752         when checking for statfs.f_type.
38753
38754 2008-09-15  Simon Josefsson  <simon@josefsson.org>
38755
38756         tests: avoid some compiler warnings
38757         * tests/test-memchr.c (main): Pass NULL indirectly.
38758         * tests/test-getdate.c (main): Remove unused variable 'ret'.
38759
38760 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
38761
38762         getdate.y: disallow countable dayshifts like "4 yesterday ago"
38763         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
38764         exactly specified dayshifts.
38765         (dayshift): New rule.
38766         (rel): Add dayshift.
38767         (relative_time_table) [tomorrow, yesterday, today, now]:
38768         Use tDAY_SHIFT in place of tDAY_UNIT.
38769         * tests/test-getdate.c: Add tests for now-disallowed countable
38770         dayshifts, e.g., "4 yesterday ago".
38771
38772 2008-09-29  Bruno Haible  <bruno@clisp.org>
38773
38774         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
38775         * tests/test-posix_spawn1.in.sh: Renamed from
38776         tests/test-posix_spawn.in.sh.
38777         * tests/test-posix_spawn2.c: New file.
38778         * tests/test-posix_spawn2.in.sh: New file.
38779         * modules/posix_spawnp-tests (Files): Update.
38780         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
38781
38782 2008-09-29  Bruno Haible  <bruno@clisp.org>
38783
38784         Propagate effects of putenv/setenv/unsetenv to child processes.
38785         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
38786         * lib/pipe.c (create_pipe): Likewise.
38787
38788 2008-09-29  Bruno Haible  <bruno@clisp.org>
38789
38790         Enable use of shell scripts as executables in mingw.
38791         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
38792         run the program as a shell script.
38793         * lib/pipe.c (create_pipe): Likewise.
38794         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
38795         resulting array.
38796
38797 2008-09-29  Eric Blake  <ebb9@byu.net>
38798
38799         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
38800
38801 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
38802
38803         * doc/posix-functions/accept.texi: Update mingw problems.
38804         * doc/posix-functions/bind.texi: Update mingw problems.
38805         * doc/posix-functions/close.texi: Update mingw problems.
38806         * doc/posix-functions/connect.texi: Update mingw problems.
38807         * doc/posix-functions/getpeername.texi: Update mingw problems.
38808         * doc/posix-functions/getsockname.texi: Update mingw problems.
38809         * doc/posix-functions/getsockopt.texi: Update mingw problems.
38810         * doc/posix-functions/ioctl.texi: Update mingw problems.
38811         * doc/posix-functions/listen.texi: Update mingw problems.
38812         * doc/posix-functions/recv.texi: Update mingw problems.
38813         * doc/posix-functions/recvfrom.texi: Update mingw problems.
38814         * doc/posix-functions/select.texi: Update mingw problems.
38815         * doc/posix-functions/send.texi: Update mingw problems.
38816         * doc/posix-functions/sendto.texi: Update mingw problems.
38817         * doc/posix-functions/setsockopt.texi: Update mingw problems.
38818         * doc/posix-functions/socket.texi: Update mingw problems.
38819
38820 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
38821             Bruno Haible  <bruno@clisp.org>
38822
38823         * lib/sys_select.in.h: Include sys/time.h.
38824         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
38825         * modules/sys_select: Depend on sys_time.
38826         * tests/test-sys_select.c: Test that sys/select.h defines struct
38827         timeval fully.
38828
38829 2008-09-29  Bruno Haible  <bruno@clisp.org>
38830
38831         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
38832         * lib/sys_select.in.h: Likewise.
38833
38834 2008-09-29  Bruno Haible  <bruno@clisp.org>
38835
38836         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
38837
38838 2008-09-29  Bruno Haible  <bruno@clisp.org>
38839
38840         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
38841         Set LIBSOCKET instead of augmenting LIBS.
38842         * modules/sockets (Link): New section.
38843         * modules/sockets-tests (test_sockets_LDADD): New variable.
38844         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
38845         * modules/poll-tests (test_poll_LDADD): New variable.
38846         * NEWS: Document the change.
38847
38848 2008-09-29  Bruno Haible  <bruno@clisp.org>
38849
38850         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
38851         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
38852         ARPA_INET_H directly.
38853         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38854
38855 2008-09-28  Bruno Haible  <bruno@clisp.org>
38856
38857         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
38858         from gl_HEADER_SYS_SOCKET.
38859         (gl_HEADER_SYS_SOCKET): Invoke it.
38860         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38861
38862 2008-09-28  Bruno Haible  <bruno@clisp.org>
38863
38864         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
38865         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
38866         Needed on OSF/1 4.0.
38867
38868 2008-09-28  Bruno Haible  <bruno@clisp.org>
38869
38870         Override open more carefully.
38871         * lib/open.c (orig_open): New function.
38872         (rpl_open): Use orig_open instead of open.
38873         * lib/fcntl.in.h: Add special invocation convention.
38874         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
38875         (gl_FUNC_OPEN): Invoke it.
38876
38877         Override freopen more carefully.
38878         * lib/freopen.c (orig_freopen): New function.
38879         (rpl_freopen): Use orig_freopen instead of freopen.
38880         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
38881         (gl_FUNC_FREOPEN): Invoke it.
38882
38883         Override fopen more carefully.
38884         * lib/fopen.c (orig_fopen): New function.
38885         (rpl_fopen): Use orig_fopen instead of fopen.
38886         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
38887         (gl_FUNC_FOPEN): Invoke it.
38888         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
38889
38890 2008-09-28  Bruno Haible  <bruno@clisp.org>
38891
38892         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
38893         SIGPIPE.
38894
38895 2008-09-28  Bruno Haible  <bruno@clisp.org>
38896
38897         * tests/test-sigaction.c (handler, main): Disable the check whether
38898         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
38899         glibc systems with LinuxThreads.
38900
38901 2008-09-28  Bruno Haible  <bruno@clisp.org>
38902
38903         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
38904
38905         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
38906         with AIX xlc.
38907         * lib/fcntl.in.h (open): Likewise.
38908         Reported by Rainer Tammer <tammer@tammer.net>.
38909
38910 2008-09-28  Bruno Haible  <bruno@clisp.org>
38911
38912         * modules/posix_spawnp-tests: New file.
38913         * tests/test-posix_spawn.c: New file.
38914         * tests/test-posix_spawn.in.sh: New file.
38915
38916         New module 'posix_spawnp'.
38917         * modules/posix_spawnp: New file.
38918         * lib/spawnp.c: New file, from GNU libc with modifications.
38919         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
38920
38921         New module 'posix_spawn'.
38922         * modules/posix_spawn: New file.
38923         * lib/spawn.c: New file, from GNU libc with modifications.
38924         * doc/posix-functions/posix_spawn.texi: Mention the new module.
38925
38926         New module 'posix_spawnattr_destroy'.
38927         * modules/posix_spawnattr_destroy: New file.
38928         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
38929         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
38930         module.
38931
38932         New module 'posix_spawnattr_setsigmask'.
38933         * modules/posix_spawnattr_setsigmask: New file.
38934         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
38935         modifications.
38936         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
38937         new module.
38938
38939         New module 'posix_spawnattr_getsigmask'.
38940         * modules/posix_spawnattr_getsigmask: New file.
38941         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
38942         modifications.
38943         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
38944         new module.
38945
38946         New module 'posix_spawnattr_setsigdefault'.
38947         * modules/posix_spawnattr_setsigdefault: New file.
38948         * lib/spawnattr_setdefault.c: New file, from GNU libc with
38949         modifications.
38950         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
38951         new module.
38952
38953         New module 'posix_spawnattr_getsigdefault'.
38954         * modules/posix_spawnattr_getsigdefault: New file.
38955         * lib/spawnattr_getdefault.c: New file, from GNU libc with
38956         modifications.
38957         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
38958         new module.
38959
38960         New module 'posix_spawnattr_setschedpolicy'.
38961         * modules/posix_spawnattr_setschedpolicy: New file.
38962         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
38963         modifications.
38964         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
38965         new module.
38966
38967         New module 'posix_spawnattr_getschedpolicy'.
38968         * modules/posix_spawnattr_getschedpolicy: New file.
38969         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
38970         modifications.
38971         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
38972         new module.
38973
38974         New module 'posix_spawnattr_setschedparam'.
38975         * modules/posix_spawnattr_setschedparam: New file.
38976         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
38977         modifications.
38978         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
38979         new module.
38980
38981         New module 'posix_spawnattr_getschedparam'.
38982         * modules/posix_spawnattr_getschedparam: New file.
38983         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
38984         modifications.
38985         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
38986         new module.
38987
38988         New module 'posix_spawnattr_setpgroup'.
38989         * modules/posix_spawnattr_setpgroup: New file.
38990         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
38991         modifications.
38992         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
38993         module.
38994
38995         New module 'posix_spawnattr_getpgroup'.
38996         * modules/posix_spawnattr_getpgroup: New file.
38997         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
38998         modifications.
38999         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
39000         module.
39001
39002         New module 'posix_spawnattr_setflags'.
39003         * modules/posix_spawnattr_setflags: New file.
39004         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
39005         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
39006         module.
39007
39008         New module 'posix_spawnattr_getflags'.
39009         * modules/posix_spawnattr_getflags: New file.
39010         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
39011         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
39012         module.
39013
39014         New module 'posix_spawnattr_init'.
39015         * modules/posix_spawnattr_init: New file.
39016         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
39017         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
39018         module.
39019
39020         New module 'posix_spawn_file_actions_destroy'.
39021         * modules/posix_spawn_file_actions_destroy: New file.
39022         * lib/spawn_faction_destroy.c: New file, from GNU libc with
39023         modifications.
39024         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
39025         the new module.
39026
39027         New module 'posix_spawn_file_actions_addopen'.
39028         * modules/posix_spawn_file_actions_addopen: New file.
39029         * lib/spawn_faction_addopen.c: New file, from GNU libc with
39030         modifications.
39031         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
39032         the new module.
39033
39034         New module 'posix_spawn_file_actions_adddup2'.
39035         * modules/posix_spawn_file_actions_adddup2: New file.
39036         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
39037         modifications.
39038         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
39039         the new module.
39040
39041         New module 'posix_spawn_file_actions_addclose'.
39042         * modules/posix_spawn_file_actions_addclose: New file.
39043         * lib/spawn_faction_addclose.c: New file, from GNU libc with
39044         modifications.
39045         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
39046         the new module.
39047
39048         New module 'posix_spawn_file_actions_init'.
39049         * modules/posix_spawn_file_actions_init: New file.
39050         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
39051         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
39052         new module.
39053
39054         New module 'posix_spawn-internal'.
39055         * modules/posix_spawn-internal: New file.
39056         * lib/spawn_int.h: New file, from GNU libc with modifications.
39057         * lib/spawni.c: New file, from GNU libc with modifications.
39058         * m4/posix_spawn.m4: New file.
39059
39060         New module 'spawn'.
39061         * modules/spawn: New file.
39062         * lib/spawn.in.h: New file, from GNU libc with modifications.
39063         * m4/spawn_h.m4: New file.
39064         * doc/posix-headers/spawn.texi: Mention the new module.
39065
39066 2008-09-28  Bruno Haible  <bruno@clisp.org>
39067
39068         * modules/sched-tests: New file.
39069         * tests/test-sched.c: New file.
39070
39071         New module 'sched'.
39072         * modules/sched: New file.
39073         * lib/sched.in.h: New file.
39074         * m4/sched_h.m4: New file.
39075         * doc/posix-headers/sched.texi: Mention the new module.
39076
39077 2008-09-27  Eric Blake  <ebb9@byu.net>
39078
39079         Fix previous patch, and tweak references to $0.
39080         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
39081         (func_version, func_gnulib_dir): Don't call this program
39082         gnulib-tool.
39083         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
39084         with using $0 in function.
39085         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
39086         (func_fatal_error): Reuse the name the user invoked us with.
39087
39088 2008-09-27  Bruno Haible  <bruno@clisp.org>
39089
39090         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
39091         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
39092         (gl_ICONV_H): Not here.
39093         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
39094         instead of assigning ICONV_H directly.
39095
39096         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
39097         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
39098         WCHAR_H directly.
39099
39100 2008-09-27  Bruno Haible  <bruno@clisp.org>
39101
39102         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
39103         * modules/arpa_inet (Depends-on): Add link-warning.
39104         (Makefile.am): Insert the definition of GL_LINK-WARNING.
39105         * modules/unistd (Makefile.am): Likewise.
39106
39107 2008-09-26  Bruno Haible  <bruno@clisp.org>
39108
39109         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
39110         variables.
39111         (func_version): Essentially copied from gnulib-tool.
39112         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
39113         func_readlink): Copied from gnulib-tool.
39114
39115 2008-09-26  Bruno Haible  <bruno@clisp.org>
39116
39117         * gnulib-tool (func_version): Change directory to $gnulib_dir before
39118         invoking git-version-gen.
39119
39120 2008-09-26  Bruno Haible  <bruno@clisp.org>
39121
39122         * posix-modules: Update to directory names changed on 2008-01-19.
39123         Remove commas in output before splitting into words. No more need to
39124         avoid 'ftruncate' since 2007-02-19.
39125
39126 2008-09-26  Bruno Haible  <bruno@clisp.org>
39127
39128         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
39129
39130 2008-09-26  Bruno Haible  <bruno@clisp.org>
39131
39132         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
39133         * modules/fwriteerror (Depends-on): Add errno.
39134
39135 2008-09-26  Bruno Haible  <bruno@clisp.org>
39136
39137         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
39138         * tests/test-vc-list-files-cvs.sh: Likewise.
39139
39140 2008-09-26  Bruno Haible  <bruno@clisp.org>
39141
39142         * doc/posix-headers/sys_resource.texi: Reorder items.
39143
39144 2008-09-26  Jim Meyering  <meyering@redhat.com>
39145
39146         fts: tweak inode comparison function
39147         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
39148         inode numbers, as documented.
39149
39150         fts: sort dirent entries on inode number before traversing
39151         This avoids a quadratic, seek-related performance penalty when
39152         operating on a directory containing many entries (measurable at 10k;
39153         3.5 hours at 2 million entries with a cold cache) on certain types
39154         of file systems, including ext3 and ext4, but not tmpfs.
39155         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
39156         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
39157         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
39158         (fs_handles_readdir_ordered_dirents_efficiently): New function.
39159         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
39160         (fts_build): Set the stat.st_ino member from D_INO.
39161         If it is likely to be useful, sort dirent entries on inode number.
39162
39163         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
39164         and the struct statfs.f_type member.
39165         * modules/fts (Depends-on): Add d-ino.
39166
39167 2008-09-26  Bruno Haible  <bruno@clisp.org>
39168
39169         * modules/sigpipe-die (Depends-on): Add sigpipe.
39170
39171         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
39172         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
39173         and GNULIB_STDIO_H_SIGPIPE are set.
39174         * lib/stdio-write.c: New file.
39175         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
39176         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
39177         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
39178         REPLACE_STDIO_WRITE_FUNCS.
39179         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
39180         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
39181         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
39182         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
39183         * modules/stdio (Files): Add lib/stdio-write.c.
39184         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
39185         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
39186         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
39187         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
39188         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
39189         REPLACE_FPRINTF_POSIX.
39190         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
39191         REPLACE_PRINTF_POSIX.
39192         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
39193         REPLACE_VFPRINTF_POSIX.
39194         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
39195         REPLACE_VPRINTF_POSIX.
39196         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
39197         SIGPIPE issue.
39198         * doc/posix-functions/fputc.texi: Likewise.
39199         * doc/posix-functions/fputs.texi: Likewise.
39200         * doc/posix-functions/fwrite.texi: Likewise.
39201         * doc/posix-functions/printf.texi: Likewise.
39202         * doc/posix-functions/putc.texi: Likewise.
39203         * doc/posix-functions/putchar.texi: Likewise.
39204         * doc/posix-functions/puts.texi: Likewise.
39205         * doc/posix-functions/vfprintf.texi: Likewise.
39206         * doc/posix-functions/vprintf.texi: Likewise.
39207
39208         * modules/safe-write (Depends-on): Add write.
39209
39210         * modules/sigpipe-tests: New file.
39211         * tests/test-sigpipe.c: New file.
39212         * tests/test-sigpipe.sh: New file.
39213
39214         * modules/write: New file.
39215         * lib/unistd.in.h: Include <sys/types.h>.
39216         (write): New declaration.
39217         * lib/write.c: New file.
39218         * m4/write.m4: New file.
39219         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39220         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
39221         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
39222         GNULIB_WRITE, REPLACE_WRITE.
39223         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
39224         and the SIGPIPE issue.
39225
39226         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
39227         (raise): New declaration.
39228         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
39229         (ext_signal): New function.
39230         (rpl_raise): New function.
39231         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
39232         GNULIB_SIGNAL_H_SIGPIPE.
39233         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
39234         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
39235
39236         * modules/sigpipe: New file.
39237         * m4/sigpipe.m4: New file.
39238
39239 2008-09-25  Derek Price  <derek@ximbiot.com>
39240             Bruno Haible  <bruno@clisp.org>
39241
39242         * gnulib-tool (func_import): Report all license incompatibilities, not
39243         just the first one.
39244
39245 2008-09-25  Bruno Haible  <bruno@clisp.org>
39246
39247         * gnulib-tool (func_import): When computing the edits, consider not
39248         only the Makefile.ams that exist but also those that will be generated.
39249
39250 2008-09-25  Simon Josefsson  <simon@josefsson.org>
39251
39252         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
39253         fixes gnulib-tool --test warning about duplicate dependency.
39254
39255 2008-09-25  Bruno Haible  <bruno@clisp.org>
39256
39257         * gnulib-tool: Don't ask the user to perform edits in the generated
39258         Makefile.ams.
39259         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
39260         apply to the Makefile.am being generated.
39261         (func_emit_tests_Makefile_am): Execute edits that apply to the
39262         Makefile.am being generated.
39263         (func_import): Setup list of Makefile.am edits before emitting the
39264         Makefile.ams, not at the end.
39265         (func_create_testdir): Update.
39266         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
39267
39268 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39269
39270         * gnulib-tool (func_import): Store the --tests-base option in the
39271         comment in gnulib-cache.m4.
39272
39273 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
39274
39275         * NEWS: Document increased portability that sys_select now provides.
39276
39277         * lib/sys_select.in.h: Install select wrapper.
39278         * lib/sys_socket.in.h: Use more descriptive name when there is no
39279         select wrapper.
39280         * lib/winsock-select.c: New.
39281         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
39282         Require gl_HEADER_SYS_SOCKET.
39283         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
39284         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
39285         * tests/test-sys_select.c: Add functional tests.
39286
39287 2008-09-24  Eric Blake  <ebb9@byu.net>
39288
39289         open, fopen: close fd leak in last patch
39290         * lib/open.c (rpl_open): Close fd before returning error.
39291         * lib/fopen.c (rpl_fopen): Close fd before returning error.
39292         * doc/posix-functions/open.texi (open): Document that Irix also
39293         has the bug.
39294         * doc/posix-functions/fopen.texi (fopen): Likewise.
39295         Reported by Paolo Bonzini.
39296
39297 2008-09-24  Bruno Haible  <bruno@clisp.org>
39298
39299         Ensure that a filename ending in a slash cannot be used to access a
39300         non-directory.
39301         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
39302         to check whether it's really a directory.
39303         * lib/fopen.c: Include fcntl.h, unistd.h.
39304         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
39305         and fdopen().
39306         * modules/fopen (Depends-on): Add unistd.
39307         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
39308         * tests/test-fopen.c (main): Likewise.
39309         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
39310         * doc/posix-functions/fopen.texi: Likewise.
39311         Reported by Eric Blake.
39312
39313 2008-09-23  Eric Blake  <ebb9@byu.net>
39314
39315         c-stack: avoid compiler optimizations when provoking overflow
39316         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
39317         recursion harder to optimize, to ensure a stack overflow occurs.
39318         * tests/test-c-stack.c (recurse): Likewise.
39319         Borrowed from libsigsegv.
39320
39321         c-stack: work around Irix sigaltstack bug
39322         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
39323         whether sigaltstack uses wrong end of stack_t (copied in part from
39324         libsigsegv).
39325         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
39326         Irix bug, without requiring an over-allocation.
39327         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
39328         bug.
39329
39330         fopen: document mingw bug on directories
39331         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
39332         not allowing a stream visiting a directory, even though reading
39333         from such a stream is not portable.
39334
39335 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
39336
39337         * lib/poll.c: Rewrite.
39338         * modules/poll: Depend on alloca.
39339
39340 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
39341
39342         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
39343         instead define prototypes for a full set of wrappers.  Ensure
39344         that Cygwin does not use the compatibility code, which is only
39345         for MinGW.
39346         * lib/winsock.c: New.
39347         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
39348         * modules/sys_socket: Add lib/winsock.c.
39349
39350         * modules/poll-tests: Add errno and perror.
39351         * tests/test-poll.c: Use ioctl, not ioctlsocket.
39352
39353 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
39354
39355         * tests/test-poll.c: Downgrade minimum needed Winsock version.
39356
39357 2008-09-23  Bruno Haible  <bruno@clisp.org>
39358
39359         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
39360         * doc/glibc-functions/*: Likewise.
39361
39362 2008-09-23  Simon Josefsson  <simon@josefsson.org>
39363
39364         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
39365         success.
39366
39367 2008-09-22  Eric Blake  <ebb9@byu.net>
39368             Bruno Haible  <bruno@clisp.org>
39369
39370         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
39371         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
39372         supply %A but mishandle pseudo-NaN.
39373         Reported by Simon Josefsson.
39374
39375 2008-09-21  Bruno Haible  <bruno@clisp.org>
39376
39377         * tests/test-lock.c (main): Tweak skip message.
39378         * tests/test-tls.c (main): Likewise.
39379
39380 2008-09-21  Bruno Haible  <bruno@clisp.org>
39381
39382         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
39383         whether 'struct sigaction' has sa_sigaction here...
39384         (gl_PREREQ_SIG_HANDLER_H): ... not here.
39385         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
39386
39387 2008-09-21  Bruno Haible  <bruno@clisp.org>
39388
39389         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
39390         section.
39391         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
39392         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
39393         the new section.
39394         (Support for obsolete systems lacking POSIX:2001): New section.
39395         (String handling <string.h>): Move strdup to the new section.
39396         Suggested by Simon Josefsson and Paolo Bonzini.
39397
39398 2008-09-21  Bruno Haible  <bruno@clisp.org>
39399
39400         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
39401         exponents in %e and %g results on 'long double'. Needed for mingw's
39402         improved *printf functions.
39403         * tests/test-vasprintf-posix.c (test_function): Likewise.
39404         * tests/test-snprintf-posix.h (test_function): Likewise.
39405         * tests/test-sprintf-posix.h (test_function): Likewise.
39406         Reported by Eric Blake.
39407
39408 2008-09-21  Bruno Haible  <bruno@clisp.org>
39409
39410         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
39411         * tests/test-sprintf-posix.h (test_function): Likewise.
39412
39413 2008-09-21  Bruno Haible  <bruno@clisp.org>
39414
39415         * modules/getpass (Depends-on): Add strdup-posix.
39416
39417         New module 'strdup-posix'.
39418         * modules/strdup-posix: New file.
39419         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
39420         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
39421         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
39422         REPLACE_STRDUP.
39423         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
39424         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
39425         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39426         strdup-posix.
39427
39428         * modules/strdup (Depends-on): Remove malloc-posix.
39429
39430 2008-09-20  Bruno Haible  <bruno@clisp.org>
39431
39432         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
39433         Wildenhues.
39434
39435 2008-09-20  Bruno Haible  <bruno@clisp.org>
39436
39437         Ensure that wint_t gets defined on IRIX 5.3.
39438         * lib/wchar.in.h (wint_t): Define if not defined by the system.
39439         * lib/wctype.in.h (wint_t): Likewise.
39440         (__wctype_wint_t): Remove type.
39441         (isw*): Use wint_t instead of __wctype_wint_t.
39442         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
39443         * modules/wchar (Files): Add m4/wint_t.m4.
39444         (Makefile.am): Substitute HAVE_WINT_T.
39445         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
39446         * tests/test-wctype.c: Check that wint_t is defined.
39447         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
39448         * doc/posix-headers/wctype.texi: Likewise.
39449         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39450
39451 2008-09-18  Bruno Haible  <bruno@clisp.org>
39452
39453         * gnulib-tool (func_exit): Update comment.
39454
39455 2008-09-18  Simon Josefsson  <simon@josefsson.org>
39456
39457         * modules/getaddrinfo (Depends-on): Remove strdup, this module
39458         assumes strdup exists and does not depend on strdup to return
39459         ENOMEM on out of memory conditions.
39460
39461 2008-09-18  Bruno Haible  <bruno@clisp.org>
39462
39463         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
39464         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
39465         digits for the exponent.
39466
39467 2008-09-18  Jim Meyering  <meyering@redhat.com>
39468             Bruno Haible  <bruno@clisp.org>
39469
39470         * lib/vasnprintf.c (decimal_point_char): Define also if
39471         NEED_PRINTF_INFINITE_LONG_DOUBLE.
39472
39473 2008-09-16  Bruno Haible  <bruno@clisp.org>
39474         and Eric Blake  <ebb9@byu.net>
39475
39476         vasnprintf: support Irix 5.3
39477         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
39478         that mishandle long double infinity.
39479         Reported by Tom G. Christensen.
39480
39481 2008-09-16  Bruno Haible  <bruno@clisp.org>
39482
39483         * doc/glibc-functions/scandir.texi: Mention the function is missing on
39484         Solaris 9.
39485         * doc/glibc-functions/alphasort.texi: Likewise.
39486         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
39487
39488 2008-09-16  Jim Meyering  <meyering@redhat.com>
39489
39490         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
39491         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
39492         a umask modification leak out of a subshell.  Otherwise, the
39493         opensolaris /bin/sh would be accepted and thus cause unwarranted
39494         failures in the coreutils test suite.
39495
39496 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
39497
39498         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
39499         to succeed.
39500
39501 2008-09-16  Jim Meyering  <meyering@redhat.com>
39502
39503         avoid spurious test failure when library is built without ACL support
39504         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
39505         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
39506         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
39507         * tests/test-copy-acl.sh: Likewise.
39508
39509 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39510
39511         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
39512         based on character occurrence counts.
39513
39514 2008-09-15  Eric Blake  <ebb9@byu.net>
39515
39516         tests: avoid some compiler warnings
39517         * tests/test-memchr.c (main): Pass NULL indirectly.
39518         * tests/test-closein.c (main): Avoid unused variable.
39519
39520 2008-09-15  Bruno Haible  <bruno@clisp.org>
39521
39522         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
39523         are missing on OpenBSD 4.0 individually.
39524         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
39525
39526 2008-09-15  Bruno Haible  <bruno@clisp.org>
39527
39528         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
39529         * doc/posix-functions/strerror.texi: Mention also Cygwin.
39530         * doc/posix-functions/perror.texi: Likewise.
39531         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
39532         is missing.
39533         Reported by Eric Blake.
39534
39535         * lib/errno.in.h: Use replacement values >= 2000.
39536         Reported by Eric Blake.
39537
39538 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39539
39540         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
39541         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
39542         limit.
39543         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
39544         compareseq was aborted.
39545
39546 2008-09-14  Bruno Haible  <bruno@clisp.org>
39547
39548         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
39549         yvec_edit_count.
39550         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
39551         (fstrcmp_bounded): Simplify result computation accordingly.
39552
39553 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39554
39555         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
39556         (fstrcmp): Define in terms of fstrcmp_bounded.
39557         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
39558         lower_bound argument.
39559         Return quickly if the result is certainly < lower_bound.
39560         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
39561
39562 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39563
39564         * lib/diffseq.h (EARLY_ABORT): New macro.
39565         (compareseq): Change return type to bool. Return true when EARLY_ABORT
39566         evaluates to true.
39567
39568 2008-09-14  Bruno Haible  <bruno@clisp.org>
39569
39570         * modules/perror-tests: New file.
39571         * tests/test-perror.sh: New file.
39572         * tests/test-perror.c: New file.
39573
39574         New module 'perror'.
39575         * lib/stdio.in.h (perror): New declaration.
39576         * lib/perror.c: New file.
39577         * m4/perror.m4: New file.
39578         * modules/perror: New file.
39579         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
39580         * doc/posix-functions/perror.texi: Mention the perror module.
39581         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
39582         REPLACE_PERROR.
39583         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
39584         REPLACE_PERROR.
39585
39586 2008-09-14  Bruno Haible  <bruno@clisp.org>
39587
39588         * modules/stdio (Makefile.am): Reorder to match the order in
39589         lib/stdio.in.h.
39590         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
39591
39592 2008-09-13  Bruno Haible  <bruno@clisp.org>
39593
39594         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
39595
39596 2008-09-13  Bruno Haible  <bruno@clisp.org>
39597
39598         Extend strerror to cover the added errno values.
39599         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
39600         (rpl_strerror): Provide error messages for the added errno values and
39601         for the WSA* values.
39602         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
39603         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
39604         strerror.
39605         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
39606         * modules/strerror (Depends-on): Add errno.
39607         * doc/posix-functions/strerror.texi: Document the change.
39608         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
39609         and EOVERFLOW.
39610
39611 2008-09-13  Bruno Haible  <bruno@clisp.org>
39612
39613         * modules/EOVERFLOW: Remove file.
39614         * m4/eoverflow.m4: Remove file.
39615         * modules/EOVERFLOW-tests: Remove file.
39616         * tests/test-EOVERFLOW.c: Remove file.
39617         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
39618         * modules/ftell (Depends-on): Likewise.
39619         * modules/getdelim (Depends-on): Likewise.
39620         * modules/getugroups (Depends-on): Likewise.
39621         * modules/poll (Depends-on): Likewise.
39622         * modules/snprintf (Depends-on): Likewise.
39623         * modules/sprintf-posix (Depends-on): Likewise.
39624         * modules/vasnprintf (Depends-on): Likewise.
39625         * modules/vasprintf (Depends-on): Likewise.
39626         * modules/vfprintf-posix (Depends-on): Likewise.
39627         * modules/vsnprintf (Depends-on): Likewise.
39628         * modules/vsprintf-posix (Depends-on): Likewise.
39629         * modules/xvasprintf (Depends-on): Likewise.
39630         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
39631         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
39632         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
39633         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
39634         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39635         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
39636         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
39637         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
39638         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39639         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
39640         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
39641         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
39642         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39643         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
39644         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
39645         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
39646         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39647         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
39648         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
39649         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
39650         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39651         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
39652         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
39653         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
39654         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
39655         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39656         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
39657         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
39658         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
39659         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
39660         * MODULES.html.sh: Remove EOVERFLOW.
39661         * NEWS: Mention the change.
39662
39663 2008-09-13  Bruno Haible  <bruno@clisp.org>
39664
39665         * modules/errno-tests: New file.
39666         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
39667
39668         * lib/errno.in.h: New file.
39669         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
39670         * modules/errno: New file.
39671         * doc/posix-headers/errno.texi: Update documentation.
39672         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
39673
39674 2008-09-13  Bruno Haible  <bruno@clisp.org>
39675
39676         * tests/test-poll.c: Use #if for native Windows, rather than testing
39677         __MSVCRT__.
39678
39679 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39680             Bruno Haible  <bruno@clisp.org>
39681
39682         * lib/glob.c: Don't include <pwd.h> on native Windows.
39683         (WINDOWS32): New macro.
39684         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
39685
39686 2008-09-13  Bruno Haible  <bruno@clisp.org>
39687
39688         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
39689         (ETIMEDOUT): Remove macro.
39690         (glthread_cond_timedwait_multithreaded): New declaration.
39691         (glthread_cond_timedwait): Use it.
39692         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
39693         (glthread_cond_timedwait_multithreaded): New function.
39694
39695 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
39696
39697         * modules/poll-tests: Do not check for io.h.
39698         * tests/test-poll.c: Check for __MSVCRT__ instead.
39699
39700 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
39701
39702         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
39703         * modules/poll-tests: Add inet_pton, stdbool, sockets.
39704         * tests/test-poll.c: Use them.  Use _pipe on Windows.
39705
39706 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
39707
39708         * modules/poll-tests: New.
39709         * tests/test-poll.c: New.
39710
39711 2008-09-12  Eric Blake  <ebb9@byu.net>
39712
39713         frexp: test for NetBSD failure on -0.0
39714         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
39715         not all, bugs from NetBSD 3.0 have been fixed.
39716         * doc/posix-functions/frexp.texi (frexp): Document bug.
39717         Reported by Thomas Klausner.
39718
39719         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
39720         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
39721         literal -0.0.
39722         Reported by Jonathan C. Patschke <jp@centtech.com>.
39723
39724 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39725
39726         * lib/glthread/cond.h: Use dummy implementation also if
39727         USE_WIN32_THREADS.
39728
39729 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39730
39731         * modules/fnmatch-posix (License): Change to LGPLv2+.
39732         * modules/fnmatch-gnu (License): Likewise.
39733
39734 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39735
39736         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
39737
39738 2008-09-11  Jim Meyering  <meyering@redhat.com>
39739
39740         * users.txt: Add gtk-vnc.
39741
39742 2008-09-08  Simon Josefsson  <simon@josefsson.org>
39743
39744         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
39745         rotate amounts.
39746
39747         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
39748         required for 16-bit and 8-bit rotates.
39749         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
39750         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
39751         UINT8_MAX instead of hard-coded constants.
39752         Suggested by Paul Eggert.
39753
39754 2008-09-07  Bruno Haible  <bruno@clisp.org>
39755
39756         * tests/test-striconveh.c (main): Check behaviour when converting from
39757         UTF-7.
39758
39759         Make striconveh work better with stateful encodings.
39760         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
39761         that iconv does not increment the inptr when returning -1/EINVAL.
39762
39763 2008-09-07  Bruno Haible  <bruno@clisp.org>
39764
39765         * build-aux/config.rpath: Update according to libtool-2.2.6.
39766         * build-aux/config.libpath: Likewise.
39767
39768 2008-09-06  Bruno Haible  <bruno@clisp.org>
39769
39770         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
39771         * lib/freadptr.c (freadptr): Likewise.
39772         * lib/freadseek.c (freadptrinc): Likewise.
39773         Reported by Simon Josefsson.
39774
39775 2008-09-06  Bruno Haible  <bruno@clisp.org>
39776
39777         * modules/freadptr (License): Change to LGPLv2+.
39778         * modules/freadseek (License): Likewise.
39779         Suggested by Eric Blake.
39780
39781         * modules/memchr2 (License): Change to LGPLv2+.
39782         Approved by Eric Blake.
39783
39784 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39785             Bruno Haible  <bruno@clisp.org>
39786
39787         Make gnulib-tool work with native 'sed' on AIX.
39788         * gnulib-tool (sed_noop): New variable.
39789         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
39790         func_add_or_update, func_create_testdir): Use it to initialize sed
39791         script variables.
39792         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39793
39794 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
39795             Bruno Haible  <bruno@clisp.org>
39796
39797         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
39798         also works after #include directives.
39799
39800 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
39801
39802         getdate.y: reject an out-of-range timezone value
39803         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
39804         the range [-24...+24].  When specified with only one or two digits,
39805         * tests/test-getdate.c: Tests for the fix.
39806         * doc/getdate.texi: Document this change.
39807
39808 2008-09-03  Bruno Haible  <bruno@clisp.org>
39809
39810         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
39811
39812 2008-09-02  Simon Josefsson  <simon@josefsson.org>
39813
39814         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
39815         <bruce.korb@gmail.com> with ideas from Ben Pfaff
39816         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
39817         Blake <ebb9@byu.net>.
39818
39819         * tests/test-bitrotate.c: Add more test vectors.
39820
39821 2008-09-02  Eric Blake  <ebb9@byu.net>
39822
39823         vasnprintf-posix: handle large precision via %.*d
39824         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
39825         when handling it ourselves.
39826         * tests/test-vasnprintf-posix.c (test_function): Add test.
39827         * tests/test-snprintf-posix.h (test_function): Likewise.
39828         * tests/test-sprintf-posix.h (test_function): Likewise.
39829         * tests/test-vasprintf-posix.c (test_function): Likewise.
39830         Reported by Alain Guibert.
39831
39832 2008-09-01  Eric Blake  <ebb9@byu.net>
39833
39834         c-stack: make configure-time check more robust
39835         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
39836         successful sigaction call.
39837         Reported by Tom G. Christensen.
39838
39839 2008-09-01  Bruno Haible  <bruno@clisp.org>
39840
39841         New module 'findprog-lgpl'.
39842         * modules/findprog-lgpl: New file.
39843         * lib/findprog-lgpl.c: New file.
39844         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
39845         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
39846         to decide whether to use strdup or xstrdup, concatenated_filename or
39847         xconcatenated_filename.
39848
39849 2008-09-01  Bruno Haible  <bruno@clisp.org>
39850
39851         Split module 'concat-filename' into 'concat-filename' (LGPL) and
39852         'xconcat-filename' (GPL).
39853         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
39854         (License): Change to LGPLv2+.
39855         * modules/xconcat-filename: New file.
39856         * lib/concat-filename.h (concatenated_filename): Change specification.
39857         (xconcatenated_filename): New declaration.
39858         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
39859         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
39860         memory situations.
39861         * lib/xconcat-filename.c: New file.
39862         * NEWS: Mention the change.
39863         * lib/findprog.c: Include concat-filename.h, not filename.h.
39864         (find_in_path): Use xconcatenated_filename instead of
39865         concatenated_filename.
39866         * lib/javacomp.c: Include concat-filename.h, not filename.h.
39867         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
39868         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
39869         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
39870         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
39871         instead of concatenated_filename.
39872         * lib/javaexec.c: Include concat-filename.h, not filename.h.
39873         (execute_java_class): Use xconcatenated_filename instead of
39874         concatenated_filename.
39875         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
39876         * modules/javacomp (Depends-on): Likewise.
39877         * modules/javaexec (Depends-on): Likewise.
39878
39879 2008-09-01  Bruno Haible  <bruno@clisp.org>
39880
39881         Split module 'filename' into 'filename' and 'concat-filename'.
39882         * modules/filename: Keep only lib/filename.h.
39883         (License): Change to LGPLv2+.
39884         * modules/concat-filename: New file, extracted from modules/filename.
39885         * lib/filename.h (concatenated_filename): Remove declaration.
39886         * lib/concat-filename.h: New file, extracted from lib/filename.h.
39887         * lib/concat-filename.c: Include concat-filename.h.
39888         * NEWS: Mention the change.
39889
39890 2008-09-01  Simon Josefsson  <simon@josefsson.org>
39891
39892         * lib/bitrotate.h (rotl8, rotr8): Add.
39893
39894         * modules/bitrotate (configure.ac): Need
39895         AC_REQUIRE([AC_C_INLINE]).
39896         (Description): Mention stdint.h.  Reported by Bruno Haible
39897         <bruno@clisp.org>.
39898
39899         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
39900         Paolo Bonzini <bonzini@gnu.org>.
39901
39902 2008-08-31  Bruno Haible  <bruno@clisp.org>
39903
39904         Assume Solaris specific bi-arch conventions on Solaris systems.
39905         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
39906         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
39907         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
39908         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
39909         like acl_libdirstem.
39910         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
39911         acl_libdirstem.
39912         * NEWS: Mention the change.
39913         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
39914
39915 2008-08-31  Jim Meyering  <meyering@redhat.com>
39916
39917         * lib/strftime.h: Add comments describing the two added arguments.
39918
39919         remove duplicate #include directives
39920         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
39921         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
39922
39923 2008-08-31  Bruno Haible  <bruno@clisp.org>
39924
39925         New module 'sigpipe-die'.
39926         * modules/sigpipe-die: New file.
39927         * lib/sigpipe-die.h: New file.
39928         * lib/sigpipe-die.c: New file.
39929         * MODULES.html.sh (Signal handling): Add sigpipe-die.
39930
39931 2008-08-31  Bruno Haible  <bruno@clisp.org>
39932
39933         Don't override previously installed signal handlers.
39934         * lib/fatal-signal.c (saved_sigactions): New variable.
39935         (uninstall_handlers): Reset the signal to the saved handler, not
39936         to SIG_DFL (except when ignored).
39937         (install_handlers): Save the previous handlers.
39938
39939 2008-08-30  Bruno Haible  <bruno@clisp.org>
39940
39941         * gnulib-tool (func_reset_sigpipe): New function.
39942         (func_get_automake_snippet, func_modules_transitive_closure,
39943         func_import): Invoke it before a join command that reads from stdin,
39944         to avoid "echo: write error: Broken pipe" error messages on stderr.
39945         Reported by Sam Steingold <sds@gnu.org>.
39946
39947 2008-08-30  Bruno Haible  <bruno@clisp.org>
39948
39949         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
39950         Code copied from m4/open.m4.
39951         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
39952         access and the filename ends in a slash. Code copied from lib/open.c.
39953         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
39954         * tests/test-fopen.c (main): Check against bug with trailing slash.
39955
39956 2008-08-29  Bruno Haible  <bruno@clisp.org>
39957
39958         Avoid some "gcc -pedantic" warnings.
39959         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
39960         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
39961         * lib/dirent.in.h: Likewise.
39962         * lib/fcntl.in.h: Likewise.
39963         * lib/float.in.h: Likewise.
39964         * lib/iconv.in.h: Likewise.
39965         * lib/inttypes.in.h: Likewise.
39966         * lib/locale.in.h: Likewise.
39967         * lib/math.in.h: Likewise.
39968         * lib/netinet_in.in.h: Likewise.
39969         * lib/search.in.h: Likewise.
39970         * lib/signal.in.h: Likewise.
39971         * lib/stdarg.in.h: Likewise.
39972         * lib/stdint.in.h: Likewise.
39973         * lib/stdio.in.h: Likewise.
39974         * lib/stdlib.in.h: Likewise.
39975         * lib/string.in.h: Likewise.
39976         * lib/strings.in.h: Likewise.
39977         * lib/sys_select.in.h: Likewise.
39978         * lib/sys_socket.in.h: Likewise.
39979         * lib/sys_stat.in.h: Likewise.
39980         * lib/sys_time.in.h: Likewise.
39981         * lib/sysexits.in.h: Likewise.
39982         * lib/time.in.h: Likewise.
39983         * lib/unistd.in.h: Likewise.
39984         * lib/wchar.in.h: Likewise.
39985         * lib/wctype.in.h: Likewise.
39986         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
39987         * modules/fchdir (Makefile.am): Likewise.
39988         * modules/fcntl (Makefile.am): Likewise.
39989         * modules/float (Makefile.am): Likewise.
39990         * modules/iconv_open (Makefile.am): Likewise.
39991         * modules/inttypes (Makefile.am): Likewise.
39992         * modules/locale (Makefile.am): Likewise.
39993         * modules/math (Makefile.am): Likewise.
39994         * modules/netinet_in (Makefile.am): Likewise.
39995         * modules/search (Makefile.am): Likewise.
39996         * modules/signal (Makefile.am): Likewise.
39997         * modules/stdarg (Makefile.am): Likewise.
39998         * modules/stdint (Makefile.am): Likewise.
39999         * modules/stdio (Makefile.am): Likewise.
40000         * modules/stdlib (Makefile.am): Likewise.
40001         * modules/string (Makefile.am): Likewise.
40002         * modules/strings (Makefile.am): Likewise.
40003         * modules/sys_select (Makefile.am): Likewise.
40004         * modules/sys_socket (Makefile.am): Likewise.
40005         * modules/sys_stat (Makefile.am): Likewise.
40006         * modules/sys_time (Makefile.am): Likewise.
40007         * modules/sysexits (Makefile.am): Likewise.
40008         * modules/time (Makefile.am): Likewise.
40009         * modules/unistd (Makefile.am): Likewise.
40010         * modules/wchar (Makefile.am): Likewise.
40011         * modules/wctype (Makefile.am): Likewise.
40012         Reported by Reuben Thomas <rrt@sc3d.org>.
40013
40014 2008-08-29  Bruno Haible  <bruno@clisp.org>
40015
40016         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
40017         any more.
40018
40019 2008-08-29  Simon Josefsson  <simon@josefsson.org>
40020
40021         * MODULES.html.sh (Misc): Add bitrotate.
40022
40023         * modules/bitrotate: New file.
40024
40025         * lib/bitrotate.h: New file.
40026
40027         * modules/bitrotate-tests: New file.
40028
40029         * tests/test-bitrotate.c: New file.
40030
40031         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
40032         on the bitrotate module.
40033
40034         * lib/arctwo.c: Use new bitrotate module.
40035
40036 2008-08-29  Jim Meyering  <meyering@redhat.com>
40037
40038         bootstrap: merge changes from coreutils
40039         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
40040         of copied files.  Remove a kludge, now that this is fixed.
40041         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
40042         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
40043         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
40044
40045 2008-08-29  Bruno Haible  <bruno@clisp.org>
40046
40047         * MODULES.html.sh: Remove --cvs-urls option.
40048
40049 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
40050
40051         maint.mk: adjust to file name change
40052         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
40053
40054 2008-08-28  Jim Meyering  <meyering@redhat.com>
40055
40056         * modules/getndelim2 (License): Relicense to LGPLv2+.
40057         Approved by Richard Stallman for the version of 1995, and by
40058         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
40059
40060 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
40061
40062         * lib/getdelim.c (flockfile, funlockfile): Make all of them
40063         dummy if one is not available.  Do not touch them if
40064         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
40065         (getc_maybe_unlocked): New.
40066         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
40067
40068 2008-08-26  Eric Blake  <ebb9@byu.net>
40069
40070         doc/INSTALL: resync from autoconf
40071         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
40072         (INSTALL_PRELUDE): Delete; this is done more efficiently by
40073         moving...
40074         * install.texi [!autoconf]: ...here.  Resync from autoconf.
40075         * INSTALL: Regenerate.
40076         * INSTALL.ISO: New file.
40077         * INSTALL.UTF-8: Likewise.
40078
40079 2008-08-26  Jim Meyering  <meyering@redhat.com>
40080
40081         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
40082         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
40083         these definitions conditional, so that they may be overridden, too.
40084
40085 2008-08-26  Bruno Haible  <bruno@clisp.org>
40086
40087         Generate INSTALL file variants with prettier quotes.
40088         * doc/Makefile (INSTALL_PRELUDE): New macro.
40089         (INSTALL): Use it.
40090         (INSTALL.ISO, INSTALL.UTF-8): New rules.
40091
40092 2008-08-26  Bruno Haible  <bruno@clisp.org>
40093
40094         Run makeinfo in an English locale.
40095         * doc/Makefile (MAKEINFO): New variable.
40096
40097 2008-08-26  Bruno Haible  <bruno@clisp.org>
40098
40099         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
40100         Suggested by Eric Blake.
40101
40102 2008-08-25  Bruno Haible  <bruno@clisp.org>
40103
40104         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
40105
40106 2008-08-25  Eric Blake  <ebb9@byu.net>
40107
40108         c-stack: test that stack overflow can be caught
40109         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
40110         that platform allows handling stack overflow; at least OS/2 EMX
40111         has sigaltstack, but crashes before transferring control to
40112         handler on stack overflow.
40113         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
40114         check for HAVE_STACK_OVERFLOW_HANDLING.
40115         Reported by Elbert Pol.
40116
40117 2008-08-25  Bruno Haible  <bruno@clisp.org>
40118
40119         * doc/posix-functions/strftime.texi: Fix description of strftime
40120         module.
40121
40122 2008-08-24  Bruno Haible  <bruno@clisp.org>
40123
40124         * tests/uniwidth/test-uc_width2.c: New file.
40125         * tests/uniwidth/test-uc_width2.sh: New file.
40126         * modules/uniwidth/width-tests (Files): Add the new files.
40127         (TESTS): Add uniwidth/test-uc_width2.sh.
40128         (TESTS_ENVIRONMENT): New variable.
40129         (check_PROGRAMS): Add test-uc_width2.
40130         (test_uc_width2_SOURCES): New variable.
40131
40132         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
40133         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
40134         not 0x00AB.
40135         Reported by Alexander V. Lukyanov <lav@netis.ru>.
40136
40137 2008-08-22  Eric Blake  <ebb9@byu.net>
40138
40139         test-lock, test-tls: mention why a test is skipped
40140         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
40141         skipped.
40142         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
40143
40144         count-one-bits: relax license
40145         * modules/count-one-bits (License): Relicense to LGPLv2+.
40146         Suggested by Ludovic Courtès, approved by Ben Pfaff.
40147
40148 2008-08-22  Andreas Schwab  <schwab@suse.de>
40149
40150         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
40151         Remove spurious space in assignment.
40152
40153 2008-08-21  Simon Josefsson  <simon@josefsson.org>
40154
40155         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
40156         Paul Eggert <eggert@CS.UCLA.EDU>.
40157
40158 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
40159
40160         * modules/gettext: Add m4/threadlib.m4.
40161
40162 2008-08-19  Eric Blake  <ebb9@byu.net>
40163
40164         test-c-stack: fix compilation failure on FreeBSD 5.0
40165         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
40166         headers before <sys/resource.h>.
40167         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
40168         the bug.
40169         Reported by Nelson H. F. Beebe.
40170
40171         strverscmp: migrate from "strverscmp.h" to <string.h>
40172         * modules/string (Makefile.am): Add new hooks.
40173         * modules/strverscmp (Files): Remove strverscmp.h.
40174         (Depends-on): Add string.
40175         (configure.ac): Add indicator.
40176         (Include): Mention new header.
40177         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
40178         defaults.
40179         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
40180         results.
40181         * lib/strverscmp.h: Delete.
40182         * lib/string.in.h (strverscmp): Provide declaration, when needed.
40183         * tests/test-strverscmp.c (includes): Adjust client.
40184         * lib/check-version.c (includes): Likewise.
40185         * NEWS: Document the change.
40186
40187         strverscmp: add unit test
40188         * modules/strverscmp-tests: New file.
40189         * tests/test-strverscmp.c: Likewise.
40190
40191 2008-08-19  Simon Josefsson  <simon@josefsson.org>
40192
40193         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
40194         regarding Windows crypto stuff, from Mono.
40195
40196 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
40197
40198         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
40199         if present, for intel RND.  Return error on failures.
40200
40201 2008-08-18  Ben Pfaff  <blp@gnu.org>
40202
40203         gitlog-to-changelog: give better diagnostic for failed pipe-open
40204         * build-aux/gitlog-to-changelog: Improve error message: suggest
40205         that the version of Git may be too old.
40206
40207 2008-08-18  Simon Josefsson  <simon@josefsson.org>
40208
40209         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
40210         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
40211
40212 2008-08-18  Bruno Haible  <bruno@clisp.org>
40213
40214         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
40215         pthread_in_use().
40216
40217 2008-08-18  Bruno Haible  <bruno@clisp.org>
40218
40219         * lib/glthread/threadlib.c: Include <pthread.h>.
40220
40221 2008-08-18  Bruno Haible  <bruno@clisp.org>
40222
40223         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
40224         glthread_recursive_lock_* macros.
40225         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
40226         Fix syntax error.
40227
40228 2008-08-18  Bruno Haible  <bruno@clisp.org>
40229
40230         * lib/glthread/thread.c: Avoid forcing a context switch right after
40231         thread creation.
40232
40233 2008-08-17  Bruno Haible  <bruno@clisp.org>
40234
40235         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
40236         * lib/glthread/thread.h: Provide Win32 specific implementation.
40237         * modules/thread (Files): Add lib/glthread/thread.c.
40238         (Depends-on): Add lock.
40239         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
40240
40241 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40242
40243         New module 'yield'.
40244         * modules/yield: New file.
40245         * lib/glthread/yield.h: New file.
40246         * m4/yield.m4: New file.
40247         * MODULES.html.sh (Multithreading): Add yield.
40248
40249 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40250
40251         New module 'thread'.
40252         * modules/thread: New file.
40253         * lib/glthread/thread.h: New file.
40254         * m4/thread.m4: New file.
40255         * MODULES.html.sh (Multithreading): Add thread.
40256
40257 2008-08-17  Bruno Haible  <bruno@clisp.org>
40258
40259         * lib/glthread/lock.h: Include <stdlib.h> always.
40260         * lib/glthread/tls.h: Likewise.
40261         * lib/glthread/cond.h: Likewise.
40262
40263 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40264
40265         New module 'cond'.
40266         * modules/cond: New file.
40267         * lib/glthread/cond.h: New file.
40268         * lib/glthread/cond.c: New file.
40269         * m4/cond.m4: New file.
40270         * MODULES.html.sh (Multithreading): Add cond.
40271
40272 2008-08-16  Eric Blake  <ebb9@byu.net>
40273
40274         c-stack: fix regression on Irix 5.3 from 2008-06-21
40275         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
40276         sa_sigaction...
40277         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
40278         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
40279         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
40280         * modules/signal (Makefile.am): Use the value.
40281         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
40282         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
40283         * doc/posix-headers/signal.texi (signal.h): Document this
40284         portability issue.
40285         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
40286         Reported by Tom G. Christensen.
40287
40288 2008-08-17  Bruno Haible  <bruno@clisp.org>
40289
40290         New module 'threadlib'.
40291         * modules/threadlib: New file.
40292         * lib/glthread/threadlib.c: New file, extracted from
40293         lib/glthread/lock.c.
40294         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
40295         functions.
40296         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
40297         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
40298         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
40299         macros.
40300         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
40301         (gl_DISABLE_THREADS): Remove macro.
40302         * modules/lock (Files): Remove build-aux/config.rpath.
40303         (Depends-on): Remove havelib. Add threadlib.
40304         (configure.ac-early): Remove section.
40305         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
40306         * modules/tls (Depends-on): Remove lock. Add threadlib.
40307         (Link): New section, copied from threadlib.
40308         * MODULES.html.sh (Multithreading): Add threadlib.
40309
40310 2008-08-14  Bruno Haible  <bruno@clisp.org>
40311
40312         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
40313         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
40314         glthread_rwlock_unlock, glthread_rwlock_destroy,
40315         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
40316         glthread_recursive_lock_destroy): Define as macros always.
40317         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
40318         glthread_lock_lock.
40319         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
40320         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
40321         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
40322         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
40323         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
40324         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
40325         (glthread_recursive_lock_lock_func): Renamed from
40326         glthread_recursive_lock_lock.
40327         (glthread_recursive_lock_unlock_func): Renamed from
40328         glthread_recursive_lock_unlock.
40329         (glthread_recursive_lock_destroy_func): Renamed from
40330         glthread_recursive_lock_destroy.
40331
40332 2008-08-14  Bruno Haible  <bruno@clisp.org>
40333
40334         * lib/glthread/lock.h: Renamed from lib/lock.h.
40335         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
40336         * lib/glthread/tls.h: Renamed from lib/tls.h.
40337         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
40338         * lib/fstrcmp.c: Update includes.
40339         * lib/strsignal.c: Update includes.
40340         * modules/lock (Files, Makefile.am): Update.
40341         (Include): Change to "glthread/lock.h".
40342         * modules/tls (Files, Makefile.am): Update.
40343         (Include): Change to "glthread/tls.h".
40344         * tests/test-lock.c: Update includes.
40345         * tests/test-tls.c: Update includes.
40346         * NEWS: Mention the renamed header files.
40347
40348 2008-08-11  Jim Meyering  <meyering@redhat.com>
40349
40350         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
40351
40352 2008-08-11  Eric Blake  <ebb9@byu.net>
40353
40354         test-c-stack: avoid C99-ism
40355         * tests/test-c-stack.c (main): Fix whitespace, move declaration
40356         before statement.
40357         Reported by Alain Guibert.
40358
40359 2008-08-10  Jim Meyering  <meyering@redhat.com>
40360
40361         ensure that return value of uinttostr et al are not ignored
40362         * lib/inttostr.h (__GNUC_PREREQ): Define.
40363         (__attribute_warn_unused_result__): Define.
40364         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
40365
40366 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
40367
40368         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
40369         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
40370
40371 2008-08-07  Jim Meyering  <meyering@redhat.com>
40372
40373         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
40374
40375         * modules/mkstemp (License): Relicense under LGPLv2+.
40376         * modules/tempname (License): Likewise.
40377
40378 2008-08-06  Bruno Haible  <bruno@clisp.org>
40379
40380         * lib/poll.c (poll): Further micro-optimization.
40381
40382 2008-08-06  Jim Meyering  <meyering@redhat.com>
40383
40384         inet_pton.c: use locale-independent tolower
40385         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
40386         (inet_pton6): Use c_tolower rather than tolower.
40387         * modules/inet_pton (Depends-on): Add c-ctype.
40388
40389 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
40390
40391         * lib/poll.c (poll): Avoid division when timeout is 0, cache
40392         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
40393
40394 2008-08-06  Jim Meyering  <meyering@redhat.com>
40395
40396         * modules/inet_pton (License): Relicense under LGPLv2+.
40397
40398 2008-08-03  Bruno Haible  <bruno@clisp.org>
40399
40400         Additional non-aborting API for lock and tls.
40401         * lib/lock.h: Include <errno.h>.
40402         (glthread_lock_init): New macro/function.
40403         (gl_lock_init): Define as wrapper around glthread_lock_init.
40404         (glthread_lock_lock): New macro/function.
40405         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
40406         (glthread_lock_unlock): New macro/function.
40407         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
40408         (glthread_lock_destroy): New macro/function.
40409         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
40410         (glthread_rwlock_init): New macro/function.
40411         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
40412         (glthread_rwlock_rdlock): New macro/function.
40413         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
40414         (glthread_rwlock_wrlock): New macro/function.
40415         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
40416         (glthread_rwlock_unlock): New macro/function.
40417         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
40418         (glthread_rwlock_destroy): New macro/function.
40419         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
40420         (glthread_recursive_lock_init): New macro/function.
40421         (gl_recursive_lock_init): Define as wrapper around
40422         glthread_recursive_lock_init.
40423         (glthread_recursive_lock_lock): New macro/function.
40424         (gl_recursive_lock_lock): Define as wrapper around
40425         glthread_recursive_lock_lock.
40426         (glthread_recursive_lock_unlock): New macro/function.
40427         (gl_recursive_lock_unlock): Define as wrapper around
40428         glthread_recursive_lock_unlock.
40429         (glthread_recursive_lock_destroy): New macro/function.
40430         (gl_recursive_lock_destroy): Define as wrapper around
40431         glthread_recursive_lock_destroy.
40432         (glthread_once): New macro/function.
40433         (gl_once): Define as wrapper around glthread_once.
40434         Update function declarations.
40435         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
40436         glthread_rwlock_init. Return error code.
40437         (glthread_rwlock_rdlock_multithreaded): Renamed from
40438         glthread_rwlock_rdlock. Return error code.
40439         (glthread_rwlock_wrlock_multithreaded): Renamed from
40440         glthread_rwlock_wrlock. Return error code.
40441         (glthread_rwlock_unlock_multithreaded): Renamed from
40442         glthread_rwlock_unlock. Return error code.
40443         (glthread_rwlock_destroy_multithreaded): Renamed from
40444         glthread_rwlock_destroy. Return error code.
40445         (glthread_recursive_lock_init_multithreaded): Renamed from
40446         glthread_recursive_lock_init. Return error code.
40447         (glthread_recursive_lock_lock_multithreaded): Renamed from
40448         glthread_recursive_lock_lock. Return error code.
40449         (glthread_recursive_lock_unlock_multithreaded): Renamed from
40450         glthread_recursive_lock_unlock. Return error code.
40451         (glthread_recursive_lock_destroy_multithreaded): Renamed from
40452         glthread_recursive_lock_destroy. Return error code.
40453         (glthread_once_call): Make static.
40454         (glthread_once_multithreaded): Renamed from glthread_once.
40455         * lib/tls.h: Include <errno.h>.
40456         (glthread_tls_key_init): New macro/function.
40457         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
40458         (glthread_tls_set): New macro/function.
40459         (gl_tls_set): Define as wrapper around glthread_tls_set.
40460         (glthread_tls_key_destroy): New macro/function.
40461         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
40462         Update function declarations.
40463         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
40464         glthread_tls_get.
40465         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
40466
40467 2008-08-04  Eric Blake  <ebb9@byu.net>
40468
40469         gnumakefile: use space, not TAB, outside of targets
40470         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
40471
40472 2008-08-02  Jim Meyering  <meyering@redhat.com>
40473
40474         getdate.y: avoid locale-dependent date parsing failure
40475         In Turkish locales, getdate would fail to recognize keywords
40476         containing a lowercase "i".  The solution is not to rely on
40477         locale-sensitive case-conversion.
40478         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
40479         (lookup_word): Use c_toupper in place of toupper.
40480         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
40481         Reported by Vefa Bicakci <bicave@superonline.com> in
40482         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
40483         * modules/getdate (Depends-on): Add c-ctype.
40484
40485 2008-08-02  Bruno Haible  <bruno@clisp.org>
40486
40487         * gnulib-tool (func_import): When updating or creating a .gitignore
40488         file, prepend each added line with a slash, and ignore leading slashes
40489         from the existing lines.
40490         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
40491
40492 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40493
40494         Portability fix for GNU make 3.79.1.
40495         * top/GNUmakefile: Avoid 'else COND', which older GNU make
40496         versions do not understand.
40497
40498 2008-08-01  Bruno Haible  <bruno@clisp.org>
40499
40500         Work around bug of HP-UX 10.20 cc with -0.0 literal.
40501         * tests/test-isnanf.h (zero): New variable.
40502         (main): Avoid literal -0.0f.
40503         * tests/test-isnand.h (zero): New variable.
40504         (main): Avoid literal -0.0.
40505         * tests/test-isnanl.h (zero): New variable.
40506         (main): Avoid literal -0.0L.
40507         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
40508         (test_float, test_double, test_long_double): Avoid literals -0.0f,
40509         -0.0, -0.0L.
40510         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
40511         (test_signbitd): Avoid literal -0.0.
40512         (test_signbitl): Avoid literal -0.0L.
40513         * tests/test-ceilf1.c (zero): New variable.
40514         (main): Avoid literal -0.0f.
40515         * tests/test-ceill.c (zero): New variable.
40516         (main): Avoid literal -0.0L.
40517         * tests/test-floorf1.c (zero): New variable.
40518         (main): Avoid literal -0.0f.
40519         * tests/test-floorl.c (zero): New variable.
40520         (main): Avoid literal -0.0L.
40521         * tests/test-roundf1.c (zero): New variable.
40522         (main): Avoid literal -0.0f.
40523         * tests/test-round1.c (zero): New variable.
40524         (main): Avoid literal -0.0.
40525         * tests/test-roundl.c (zero): New variable.
40526         (main): Avoid literal -0.0L.
40527         * tests/test-truncf1.c (zero): New variable.
40528         (main): Avoid literal -0.0f.
40529         * tests/test-trunc1.c (zero): New variable.
40530         (main): Avoid literal -0.0.
40531         * tests/test-truncl.c (zero): New variable.
40532         (main): Avoid literal -0.0L.
40533         * tests/test-frexp.c (zero): New variable.
40534         (main): Avoid literal -0.0.
40535         * tests/test-frexpl.c (zero): New variable.
40536         (main): Avoid literal -0.0L.
40537         * tests/test-ldexpl.c (zero): New variable.
40538         (main): Avoid literal -0.0L.
40539         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
40540         (zerod, zerol): New variables.
40541         (test_function): Avoid literals -0.0, -0.0L.
40542         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
40543         (zerod, zerol): New variables.
40544         (test_function): Avoid literals -0.0, -0.0L.
40545         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
40546         (zerod, zerol): New variables.
40547         (test_function): Avoid literals -0.0, -0.0L.
40548         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
40549         (zerod, zerol): New variables.
40550         (test_function): Avoid literals -0.0, -0.0L.
40551         * tests/test-strtod.c (zero): New variable.
40552         (main): Avoid literal -0.0.
40553         Reported by Jonathan C. Patschke <jp@centtech.com>.
40554
40555 2008-07-31  Jim Meyering  <meyering@redhat.com>
40556
40557         sha256.h: correct definition of SHA224_DIGEST_SIZE
40558         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
40559         Reported by Paulie Pena IV <paulie4@gmail.com>.
40560         Define as 224 / 8, rather than as a literal.
40561         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
40562         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
40563         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
40564
40565 2008-07-31  Bruno Haible  <bruno@clisp.org>
40566
40567         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
40568         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
40569         Reported by Jonathan Patschke <jp@centtech.com>.
40570
40571 2008-07-31  Bruno Haible  <bruno@clisp.org>
40572
40573         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
40574         Reported by Paolo Bonzini <bonzini@gnu.org>.
40575
40576 2008-07-30  Eric Blake  <ebb9@byu.net>
40577
40578         test-strtod: allow compilation without -lm
40579         * tests/test-strtod.c (main): Avoid link dependence on fabs.
40580         Reported by Dennis Clarke <blastwave@gmail.com>.
40581
40582 2008-07-28  Jim Meyering  <meyering@redhat.com>
40583
40584         bootstrap: work also when there are no .po files in po/
40585         * build-aux/bootstrap (update_po_files): Complete the change
40586         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
40587
40588 2008-07-27  Jim Meyering  <meyering@redhat.com>
40589
40590         * users.txt: Add zile.
40591
40592 2008-07-26  Ben Pfaff  <blp@gnu.org>
40593
40594         Add missing dependencies on new m4/exponent[fdl].m4 files.
40595         * modules/isnanf-nolibm: Add m4/exponentf.m4.
40596         * modules/isnand-nolibm: Add m4/exponentd.m4.
40597         * modules/isnanl-nolibm: Add m4/exponentl.m4.
40598         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
40599         m4/isnan[fdl].m4, because the macros actually used moved.
40600         Reported by Jim Meyering.
40601
40602 2008-07-14  Ben Pfaff  <blp@gnu.org>
40603
40604         Add isinf module.
40605         * lib/isinf.c: New file.
40606         * lib/math.in.h: Define isinf macro if we have decided to replace
40607         it.
40608         * m4/isinf.m4: New file.
40609         * m4/math_h.m4: Initialize and substitute variables for isinf
40610         module.
40611         * modules/isinf: New file.
40612         * modules/isinf-tests: New file.
40613         * modules/math: Add substitutions for new module.
40614         * tests/test-isinf.c: New file.
40615         * doc/posix-functions/isinf.texi: Mention new module.
40616         * MODULES.html.sh: Mention new module.
40617
40618 2008-07-14  Ben Pfaff  <blp@gnu.org>
40619
40620         Factor out some macros for use by additional modules.
40621         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
40622         exponentf.m4.
40623         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
40624         exponentd.m4.
40625         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
40626         file exponentl.m4.
40627         * m4/exponentf.m4: New file.
40628         * m4/exponentd.m4: New file.
40629         * m4/exponentl.m4: New file.
40630         * modules/isnanf: Use new file m4/exponentf.m4.
40631         * modules/isnand: Use new file m4/exponentd.m4.
40632         * modules/isnanl: Use new file m4/exponentl.m4.
40633
40634 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
40635
40636         mktime.c: normalize tp->tm_isdst value to -1/0/1.
40637         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
40638         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
40639         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
40640
40641         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
40642         readlink on platforms without PATH_MAX.
40643
40644 2008-07-21  Eric Blake  <ebb9@byu.net>
40645
40646         Warn, not fail, on stale version.
40647         * top/GNUmakefile (_curr-ver): Tone down previous patch.
40648
40649         Don't allow installation with stale devel version number.
40650         * top/GNUmakefile (_is-install-target): New macro.
40651         (_curr-ver): Forbid installation with stale version number.
40652
40653 2008-07-20  Bruno Haible  <bruno@clisp.org>
40654
40655         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
40656         TESTS_ENVIRONMENT.
40657         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
40658
40659 2008-07-20  Bruno Haible  <bruno@clisp.org>
40660
40661         * lib/c-stack.h (c_stack_action): Add documentation.
40662         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
40663
40664 2008-07-20  Bruno Haible  <bruno@clisp.org>
40665
40666         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
40667         * modules/readlink (License): Likewise.
40668
40669 2008-07-17  Eric Blake  <ebb9@byu.net>
40670
40671         * modules/c-stack (Link): Fix typo.
40672
40673         Make c-stack use libsigsegv, when available.
40674         * modules/c-stack (Depends-on): Add libsigsegv.
40675         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
40676         needed.
40677         * lib/c-stack.c (SIGSTKSZ): Define fallback.
40678         (segv_handler, overflow_handler, c_stack_action)
40679         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
40680         implementation when libsigsegv is available, but only when using
40681         the library is necessary.
40682         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
40683         comment, explaining why XSI check fails on Linux.
40684         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
40685         * tests/test-c-stack2.sh: Tweak skip message.
40686         * NEWS: Document new link-time requirements.
40687
40688 2008-07-16  Eric Blake  <ebb9@byu.net>
40689
40690         c-stack: Expose false positives when not using libsigsegv.
40691         * modules/c-stack-tests (Files): Expand test.
40692         * tests/test-c-stack.c (main): Add means to conditionally trigger
40693         non-overflow SIGSEGV.
40694         * tests/test-c-stack2.sh: New file.
40695
40696 2008-07-14  Bruno Haible  <bruno@clisp.org>
40697
40698         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
40699         Reported by Eric Blake.
40700
40701 2008-07-14  Sam Steingold  <sds@gnu.org>
40702             Bruno Haible  <bruno@clisp.org>
40703
40704         New module libsigsegv.
40705         * modules/libsigsegv: New file.
40706         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
40707         modifications.
40708         * MODULES.html.sh (Signal handling): New section.
40709
40710 2008-07-14  Bruno Haible  <bruno@clisp.org>
40711
40712         * modules/unictype/ctype-* (Description): Add the word "function".
40713         Improves the resulting doc in MODULES.html.
40714
40715 2008-07-12  Ben Pfaff  <blp@gnu.org>
40716
40717         Add longlong module.
40718         * modules/longlong: New file.
40719
40720 2008-07-12  Bruno Haible  <bruno@clisp.org>
40721
40722         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
40723         to empty.
40724
40725 2008-07-10  Ben Pfaff  <blp@gnu.org>
40726
40727         Add isnan module.
40728         * doc/posix-functions/isnan.texi: Mention new module.
40729         * lib/math.in.h: Define isnan macro if we have decided to replace
40730         it.
40731         * m4/isnan.m4: New file.
40732         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
40733         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
40734         also.
40735         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
40736         redundancy.
40737         * m4/math_h.m4: Initialize and substitute variables for isnan
40738         module.
40739         * modules/isnan: New file.
40740         * modules/isnan-tests: New file.
40741         * modules/math: Add substitutions for new module.
40742         * tests/test-isnan.c: New file.
40743         * MODULES.html.sh: Mention new module.
40744
40745 2008-07-10  Ben Pfaff  <blp@gnu.org>
40746
40747         Add isnanf module.
40748         * lib/isnanf.m4: New file.
40749         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
40750         (gl_HAVE_ISNANF_IN_LIBM): New macro.
40751         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
40752         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
40753         * modules/isnanf: New file.
40754         * modules/isnanf-tests: New file.
40755         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
40756         files.
40757         * tests/test-isnanf-nolibm.c: factored most of its contents into
40758         new file tests/test-isnanf.h.
40759         * tests/test-isnanf.h: New file.
40760         * tests/test-isnanf.c: New file.
40761         * MODULES.html.sh: Mention new module.
40762         * doc/glibc-functions/isnanf.texi: Mention new module.
40763
40764 2008-07-10  Ben Pfaff  <blp@gnu.org>
40765
40766         Add isnand module.
40767         * lib/isnand.h: New file.
40768         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
40769         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
40770         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
40771         functionality also.
40772         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
40773         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
40774         (gl_HAVE_ISNAND_IN_LIBM): New macro.
40775         * modules/isnand: New file.
40776         * modules/isnand-tests: New file.
40777         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
40778         files.
40779         * tests/test-isnand-nolibm.c: factored most of its contents into
40780         new file tests/test-isnand.h.
40781         * tests/test-isnand.h: New file.
40782         * tests/test-isnand.c: New file.
40783         * MODULES.html.sh: Mention new module.
40784
40785 2008-07-10  Ben Pfaff  <blp@gnu.org>
40786
40787         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
40788         * lib/isnand.h: Rename lib/isnand-nolibm.h.
40789         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
40790         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
40791         * modules/isnanf-nolibm: Update references to renamed files.
40792         * modules/isnand-nolibm: Likewise.
40793         * modules/isnanf-nolibm-tests: Likewise.
40794         * modules/isnand-nolibm-tests: Likewise.
40795         * lib/frexp.c: Likewise.
40796         * lib/isfinite.c: Likewise.
40797         * lib/signbitd.c: Likewise.
40798         * lib/signbitf.c: Likewise.
40799         * lib/vasnprintf.c: Likewise.
40800         * tests/test-ceilf1.c: Likewise.
40801         * tests/test-ceilf2.c: Likewise.
40802         * tests/test-floorf1.c: Likewise.
40803         * tests/test-floorf2.c: Likewise.
40804         * tests/test-frexp.c: Likewise.
40805         * tests/test-round1.c: Likewise.
40806         * tests/test-round2.c: Likewise.
40807         * tests/test-roundf1.c: Likewise.
40808         * tests/test-strtod.c: Likewise.
40809         * tests/test-trunc1.c: Likewise.
40810         * tests/test-trunc2.c: Likewise.
40811         * tests/test-truncf1.c: Likewise.
40812         * tests/test-truncf2.c: Likewise.
40813         * NEWS: Mention the renamed header files.
40814
40815 2008-07-11  Jim Meyering  <meyering@redhat.com>
40816
40817         vc-list-files: make the last-resort awk code more portable
40818         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
40819         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
40820         does not support it.
40821
40822 2008-07-10  Eric Blake  <ebb9@byu.net>
40823
40824         Work with tar's bootstrap.
40825         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
40826         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
40827         an m4 comment.
40828
40829 2008-07-09  Jim Meyering  <meyering@redhat.com>
40830
40831         posix-shell.m4: fix typo that made this test malfunction
40832         * m4/posix-shell.m4: Remove capitalization in variable name.
40833
40834 2008-07-08  Bruno Haible  <bruno@clisp.org>
40835
40836         * m4/onceonly.m4: Update comments.
40837         Reported by Ben Pfaff <blp@cs.stanford.edu>.
40838
40839 2008-07-04  Jim Meyering  <meyering@redhat.com>
40840
40841         * users.txt: Add vc-dwim.
40842         (bison, coreutils): Use the gitweb URL.
40843
40844 2008-07-03  Jim Meyering  <meyering@redhat.com>
40845
40846         * users.txt: Add libffcall.  From Sam Steingold.
40847
40848 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
40849
40850         getdate.y: do not ignore TZ with relative day, month or year offset
40851         * lib/getdate.y (get_date): Move the tz-handling block to follow the
40852         relative-date-handling, since otherwise, the latter would clobber the
40853         sole output (an updated Start value) of the tz-handling block.
40854         * tests/test-getdate.c: Tests for the fix
40855
40856 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40857
40858         Recognize 'foo_LIBRARIES += libgnu.a'.
40859         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
40860         makefile snippet has already specified an installation location,
40861         also using '+='.
40862
40863 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
40864
40865         getdate.y: factor out common actions
40866         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
40867         Use them in place of open-coded actions.
40868
40869 2008-07-01  Simon Josefsson  <simon@josefsson.org>
40870
40871         Add self-test for getdate module.
40872         * modules/getdate-tests: New file.
40873         * tests/test-getdate.c: New file.
40874
40875 2008-06-29  Bruno Haible  <bruno@clisp.org>
40876
40877         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
40878         .gitignore.
40879         Reported by Sylvain Beucler <beuc@beuc.net>.
40880
40881 2008-06-29  Bruno Haible  <bruno@clisp.org>
40882
40883         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
40884         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
40885
40886 2008-06-29  Bruno Haible  <bruno@clisp.org>
40887
40888         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
40889         EXTRA_DIST.
40890         Reported by Sylvain Beucler <beuc@beuc.net>.
40891
40892 2008-06-26  Jim Meyering  <meyering@redhat.com>
40893
40894         make several modules depend on the "open" module
40895         This provides slightly increased consistency when opening-for-write
40896         the name of a non-directory spelled with a trailing slash.
40897         * modules/chdir-safer: Likewise.
40898         * modules/chown: Likewise.
40899         * modules/clean-temp: Likewise.
40900         * modules/copy-file: Likewise.
40901         * modules/fchdir: Likewise.
40902         * modules/fcntl-safer: Likewise.
40903         * modules/pipe: Likewise.
40904         * modules/utime: Likewise.
40905         Prompted by Eric Blake and Bruno Haible.
40906
40907 2008-06-24  Andreas Schwab  <schwab@suse.de>
40908
40909         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
40910         literals can be used as initializers for global variables.
40911
40912 2008-06-23  Eric Blake  <ebb9@byu.net>
40913
40914         Make gnulib-cache.m4 easier to diff.
40915         * gnulib-tool (func_import): Allow newlines when reading cached
40916         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
40917
40918 2008-06-23  Bruno Haible  <bruno@clisp.org>
40919
40920         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
40921         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
40922         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
40923         m4/signalblocking.m4.
40924         (gl_PREREQ_SIGACTION): Don't invoke it.
40925         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
40926         gl_PREREQ_SIG_HANDLER_H.
40927         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
40928         Don't check for sigaction here.
40929
40930 2008-06-23  Bruno Haible  <bruno@clisp.org>
40931
40932         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
40933         (install_handlers): Don't set the SA_RESETHAND flag.
40934
40935 2008-06-23  Bruno Haible  <bruno@clisp.org>
40936
40937         * m4/sigaction.m4: Comment fixes.
40938         * lib/signal.in.h: Likewise.
40939
40940 2008-06-23  Eric Blake  <ebb9@byu.net>
40941
40942         Fix typo.
40943         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
40944
40945         Avoid SA_ namespace.
40946         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
40947         Reported by Ralf Wildenhues.
40948
40949         Avoid test failure due to SA_RESTORER.
40950         * tests/test-sigaction.c (SA_MASK): New macro.
40951         (main): Avoid failing due to extension flags being set.
40952         Reported by Jim Meyering.
40953
40954         Revert use of sig-handler.h in sigprocmask.c.
40955         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
40956         it requires the existence of struct sigaction.
40957         * lib/sigprocmask.c (handler_t): Restore typedef.
40958         (rpl_signal, old_handlers): Use local type.
40959
40960 2008-06-22  Bruno Haible  <bruno@clisp.org>
40961
40962         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
40963         conditionally.
40964         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40965
40966 2008-06-22  Bruno Haible  <bruno@clisp.org>
40967
40968         * doc/posix-functions/siginterrupt.texi: Move note.
40969
40970         * lib/signal.in.h (SA_RESTART): New macro.
40971         * lib/sigaction.c: Update comment.
40972
40973         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
40974
40975         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
40976         (gl_PREREQ_SIGPROCMASK): Invoke it.
40977         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
40978
40979         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
40980
40981         * lib/sigprocmask.c: Update a comment.
40982
40983 2008-06-21  Eric Blake  <ebb9@byu.net>
40984
40985         Use sigaction module rather than signal().
40986         * modules/c-stack (Depends-on): Add sigaction.
40987         * modules/fatal-signal (Depends-on): Likewise.
40988         * modules/nanosleep (Depends-on): Likewise.
40989         * modules/sigprocmask (Files): Add sig-handler.h.
40990         * modules/sigaction (Files): Likewise.
40991         * lib/sig-handler.h (get_handler): New file, suggested by Paul
40992         Eggert.
40993         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
40994         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
40995         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
40996         (init_fatal_signals): Likewise.
40997         * lib/nanosleep.c (rpl_nanosleep): Likewise.
40998         (siginterrupt): Delete fallback.
40999         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
41000         instead.
41001         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
41002         siginterrupt.
41003
41004         New module sigaction, for mingw.
41005         * modules/sigaction: New module...
41006         * modules/sigaction-tests: ...and its test.
41007         * m4/sigaction.m4: New file.
41008         * lib/sigaction.c: Likewise.
41009         * tests/test-sigaction.c: Likewise.
41010         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
41011         * modules/signal (Makefile.am): Likewise.
41012         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
41013         needed.
41014         * doc/posix-headers/signal.texi (signal.h): Mention provided
41015         types.
41016         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
41017         that sigaction is preferable.
41018         * doc/posix-functions/sigaction.texi (sigaction): Mention new
41019         module.
41020         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41021         sigaction.
41022
41023         Improve robustness of sigprocmask by overriding signal.
41024         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
41025         is in use.
41026         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
41027         (SIGKILL, SIGSTOP): Provide fallbacks.
41028         (rpl_signal): Implement.
41029         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
41030         signal can be called inside handlers.
41031
41032         Fix nanosleep module on mingw.
41033         * modules/nanosleep (Depends-on): Add sys_select.
41034         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
41035
41036         Fix licensing of sigprocmask.
41037         * modules/raise (License): Relicense as LGPL.
41038
41039 2008-06-21  Bruno Haible  <bruno@clisp.org>
41040
41041         * lib/propername.c (proper_name_utf8): Don't use the transliterated
41042         result if it contains question marks.
41043         Reported by Michael Geng <linux@michaelgeng.de>.
41044
41045 2008-06-19  Bruno Haible  <bruno@clisp.org>
41046
41047         Fix CVS-ism.
41048         * doc/gnulib.texi: Include updated-stamp.texi.
41049         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
41050         (updated-stamp.texi): New rule.
41051         (gnulib.info): Depend on it.
41052         * doc/.gitignore: Add updated-stamp.texi.
41053         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
41054
41055 2008-06-19  Bruno Haible  <bruno@clisp.org>
41056
41057         * doc/Makefile (gnulib.info): Update and simplify dependencies.
41058         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
41059
41060 2008-06-19  Eric Blake  <ebb9@byu.net>
41061
41062         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
41063         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
41064         Reported by Stepan Kasal.
41065
41066 2008-06-18  Bruno Haible  <bruno@clisp.org>
41067
41068         * lib/fatal-signal.c (init_fatal_signals): Add comment.
41069         Reported by Eric Blake.
41070
41071 2008-06-18  Eric Blake  <ebb9@byu.net>
41072
41073         Work around cygwin 1.5.25 strsignal bug.
41074         * tests/test-strsignal.c: Allow for const char *.
41075         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
41076
41077 2008-06-18  Simon Josefsson  <simon@josefsson.org>
41078
41079         * users.txt: Update URL to article and add author/date
41080         information.
41081
41082 2008-06-17  Bruno Haible  <bruno@clisp.org>
41083
41084         New macro gl_DISABLE_THREADS.
41085         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
41086         if the user did not pass --enable-threads or --disable-threads option.
41087         (gl_DISABLE_THREADS): New macro.
41088         Reported by Eric Blake <ebb9@byu.net>.
41089
41090 2008-06-17  Bruno Haible  <bruno@clisp.org>
41091
41092         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
41093         when the macro ignores it.
41094         Based on a patch by Eric Blake <ebb9@byu.net>.
41095
41096 2008-06-17  Bruno Haible  <bruno@clisp.org>
41097
41098         * modules/tls (License): Change to LGPLv2+.
41099         Reported by Eric Blake.
41100
41101 2008-06-17  Eric Blake  <ebb9@byu.net>
41102
41103         Simplify c-stack prerequisites.
41104         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
41105         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
41106         no longer requires <ucontext.h> to exist.  Optimize setrlimit
41107         check.
41108         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
41109         <sys/resource.h>.
41110
41111         Move c-stack test into testsuite.
41112         * modules/c-stack-tests: New file.
41113         * lib/c-stack.c [DEBUG]: Move test program...
41114         * tests/test-c-stack.c: ...into this new file.  Skip rather than
41115         fail test if sigaltstack is lacking.
41116         * tests/test-c-stack.sh: New driver file.
41117
41118 2008-06-16  Eric Blake  <ebb9@byu.net>
41119
41120         Use raise module consistently.
41121         * modules/fatal-signal (Depends-on): Add raise.
41122         * modules/sigprocmask (Depends-on): Likewise.
41123         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
41124         * lib/sigprocmask.c (sigprocmask): Likewise.
41125         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
41126         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
41127
41128         Fix compliance bug in sigpending.
41129         * lib/sigprocmask.c (sigpending): Return pending array via
41130         parameter, not return value.
41131
41132 2008-06-14  Eric Blake  <ebb9@byu.net>
41133
41134         Improve obstack-printf test code.
41135         * tests/test-obstack-printf.c (test_function): Fix comment, and
41136         simplify usage of obstack_* in macros.  Add a test for coverage.
41137         Reported by Bruno Haible.
41138
41139 2008-06-14  Bruno Haible  <bruno@clisp.org>
41140
41141         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
41142         array size as a constant, not as a const variable.
41143         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
41144         AC_USE_SYSTEM_EXTENSIONS.
41145         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
41146         Test whether the obstack_printf function actually exists.
41147         * modules/obstack-printf (Depends-on): Add extensions.
41148         (Include): Remove obstack.h.
41149         * modules/obstack-printf-posix (Depends-on): Add extensions.
41150         (Include): Remove obstack.h.
41151
41152 2008-06-13  Eric Blake  <ebb9@byu.net>
41153
41154         Add obstack-printf and obstack-printf-posix modules.
41155         * modules/obstack-printf: New file.
41156         * modules/obstack-printf-posix: Likewise.
41157         * MODULES.html.sh (Misc): Mention them.
41158         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
41159         Likewise.
41160         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
41161         Likewise.
41162         * modules/stdio (Makefile.am): Accomodate new modules.
41163         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41164         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
41165         Declare.
41166         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
41167         functions.
41168         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
41169         (gl_REPLACE_OBSTACK_PRINTF): New macros
41170         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
41171         * tests/test-obstack-printf.c: New file.
41172         * modules/obstack-printf-tests: Likewise.
41173         * modules/obstack-printf-posix-tests: Likewise.
41174
41175 2008-06-11  Bruno Haible  <bruno@clisp.org>
41176
41177         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
41178         * lib/open.c: Include errno.h.
41179         (open): Fail when attempting to write to a file that has a trailing
41180         slash.
41181         * tests/test-open.c (main): Test against trailing slash bug.
41182         * doc/posix-functions/open.texi: Mention the trailing slash bug.
41183
41184 2008-06-10  Bruno Haible  <bruno@clisp.org>
41185
41186         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
41187         for $? to work inside the trap command, with various /bin/sh-s.
41188         * tests/test-vc-list-files-cvs.sh: Likewise.
41189
41190 2008-06-10  Bruno Haible  <bruno@clisp.org>
41191
41192         * lib/acl-internal.h: Don't include gettext.h here.
41193         * lib/set-mode-acl.c: Include gettext.h here.
41194         * lib/copy-acl.c: Likewise.
41195
41196 2008-06-10  Bruno Haible  <bruno@clisp.org>
41197
41198         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
41199         * lib/wait-process.c (wait_subprocess): Likewise.
41200         * lib/execute.h (execute): Add termsigp argument.
41201         * lib/execute.c (execute): Likewise.
41202         * lib/csharpcomp.c (compile_csharp_using_pnet,
41203         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
41204         * lib/csharpexec.c (execute_csharp_using_pnet,
41205         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
41206         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
41207         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
41208         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
41209         is_jikes_present): Update.
41210         * lib/javaexec.c (execute_java_class): Update.
41211         * lib/javaversion.c (execute_and_read_line): Update.
41212         * NEWS: Document the changes.
41213         Reported by Eric Blake.
41214
41215 2008-06-10  Eric Blake  <ebb9@byu.net>
41216
41217         Add missing include.
41218         * tests/test-strstr.c (includes): Add <signal.h>.
41219         * tests/test-strcasestr.c (includes): Likewise.
41220         * tests/test-memmem.c (includes): Likewise.
41221
41222 2008-06-10  Bruno Haible  <bruno@clisp.org>
41223
41224         * lib/wait-process.c (wait_subprocess): Add an assertion.
41225
41226 2008-06-10  Bruno Haible  <bruno@clisp.org>
41227
41228         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
41229
41230 2008-06-10  Bruno Haible  <bruno@clisp.org>
41231
41232         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
41233         using alarm().
41234         * tests/test-strcasestr.c (main): Likewise.
41235         * tests/test-strstr.c (main): Likewise.
41236
41237 2008-06-09  Bruno Haible  <bruno@clisp.org>
41238
41239         Work around the Solaris 10 ACE ACLs ABI change.
41240         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
41241         declare if ACL_NO_TRIVIAL is present.
41242         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
41243         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
41244         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
41245         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
41246         define if ACL_NO_TRIVIAL is present.
41247         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
41248         and use the current ABI.
41249         (file_has_acl): Use same #if condition as elsewhere.
41250         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
41251         in use, and use the current ABI.
41252         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
41253         Reported by Jim Meyering.
41254
41255 2008-06-09  Eric Blake  <ebb9@byu.net>
41256
41257         Work around environments that (stupidly) ignore SIGALRM.
41258         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
41259         before using alarm().
41260         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
41261         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
41262         Reported by Ian Beckwith <ianb@erislabs.net>.
41263
41264         Produce autobuild blurb earlier in log.
41265         * modules/autobuild (configure.ac-early): Move AB_INIT here.
41266
41267 2008-06-09  Jim Meyering  <meyering@redhat.com>
41268         and OndÅ™ej Vašík  <ovasik@redhat.com>
41269
41270         utimens.c: correct kernel bug work-around
41271         OndÅ™ej Vašík found that the invalid return value of 280 indicates
41272         failure, not success, and the kernel bug we're trying to work
41273         around affects not just the utimensat call, but also the fallback
41274         futimens call.
41275         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
41276         not success.
41277         [HAVE_FUTIMENS]: Use the same work-around, here.
41278
41279 2008-06-09  Jim Meyering  <meyering@redhat.com>
41280
41281         add more guards around definition of ACE_-related code
41282         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
41283         ALLOW and ACE_OWNER are also defined.
41284
41285 2008-06-08  Bruno Haible  <bruno@clisp.org>
41286
41287         * lib/acl-internal.h: Add me as co-author.
41288         * lib/file-has-acl.c: Likewise.
41289         * lib/set-mode-acl.c: Likewise.
41290         * lib/copy-acl.c: Likewise.
41291
41292 2008-06-08  Bruno Haible  <bruno@clisp.org>
41293
41294         Add support for AIX ACLs.
41295         * lib/acl-internal.h (acl_nontrivial): New declaration.
41296         * lib/file-has-acl.c (acl_nontrivial): New function.
41297         (file_has_acl): Add implementation using AIX 4 ACL API.
41298         * lib/set-mode-acl.c (qset_acl): Likewise.
41299         * lib/copy-acl.c (qcopy_acl): Likewise.
41300
41301 2008-06-08  Bruno Haible  <bruno@clisp.org>
41302
41303         Add support for HP-UX ACLs.
41304         * lib/acl-internal.h (acl_nontrivial): New declaration.
41305         * lib/file-has-acl.c (acl_nontrivial): New function.
41306         (file_has_acl): Add implementation using HP-UX 11 ACL API.
41307         * lib/set-mode-acl.c (qset_acl): Likewise.
41308         * lib/copy-acl.c (qcopy_acl): Likewise.
41309
41310 2008-06-08  Bruno Haible  <bruno@clisp.org>
41311
41312         Add support for Cygwin ACLs.
41313         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
41314         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
41315         the chmod_or_fchmod call.
41316         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
41317
41318 2008-06-08  Bruno Haible  <bruno@clisp.org>
41319
41320         Fix bug with setuid modes in Solaris 10+ code.
41321         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
41322         succeeded, when the mode contains some special bits.
41323
41324 2008-06-08  Bruno Haible  <bruno@clisp.org>
41325
41326         Add support for Solaris 7..10 ACLs.
41327         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
41328         declarations.
41329         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
41330         functions.
41331         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
41332         * lib/set-mode-acl.c (qset_acl): Likewise.
41333         * lib/copy-acl.c (qcopy_acl): Likewise.
41334
41335 2008-06-08  Bruno Haible  <bruno@clisp.org>
41336
41337         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
41338         declaration.
41339         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
41340         (acl_access_nontrivial): Remove MacOS X case.
41341         (file_has_acl): Use acl_extended_nontrivial.
41342         * lib/copy-acl.c (qcopy_acl): Likewise.
41343
41344 2008-06-08  Bruno Haible  <bruno@clisp.org>
41345
41346         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
41347
41348 2008-06-08  Jim Meyering  <meyering@redhat.com>
41349
41350         * modules/acl (Maintainer): Add Bruno Haible.
41351
41352 2008-06-07  Bruno Haible  <bruno@clisp.org>
41353
41354         Improve support for Tru64 ACLs.
41355         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
41356         ACL on OSF/1.
41357
41358 2008-06-07  Bruno Haible  <bruno@clisp.org>
41359
41360         Add support for MacOS X ACLs.
41361         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
41362         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
41363         * lib/set-mode-acl.c (qset_acl): Likewise.
41364         * lib/copy-acl.c (qcopy_acl): Likewise.
41365
41366 2008-06-07  Bruno Haible  <bruno@clisp.org>
41367
41368         Fix memory leak introduced on 2008-05-22.
41369         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
41370         use.
41371
41372 2008-06-07  Bruno Haible  <bruno@clisp.org>
41373
41374         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
41375         to construct an empty ACL.
41376
41377 2008-06-07  Bruno Haible  <bruno@clisp.org>
41378
41379         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
41380         precisely.
41381         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
41382
41383 2008-06-07  Bruno Haible  <bruno@clisp.org>
41384
41385         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
41386         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
41387
41388 2008-06-07  Bruno Haible  <bruno@clisp.org>
41389
41390         * doc/posix-functions/_setjmp.texi: Explain the use of this function
41391         regardless of POSIX.
41392         * doc/posix-functions/_longjmp.texi: Likewise.
41393         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
41394         SystemV platform in this case.
41395
41396 2008-06-06  Eric Blake  <ebb9@byu.net>
41397
41398         Document abort() bugs.
41399         * doc/posix-functions/abort.texi (abort): Mention anomalies.
41400
41401         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
41402         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
41403         sigsetjmp.
41404         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
41405         siglongjmp, but only as a macro.
41406         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
41407         is obsolete.
41408         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
41409
41410         Tweak documentation to cover cygwin argz bugs.
41411         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
41412         argz bug fix; no code change needed since no cygwin releases
41413         occurred between the last fix and the bug being tested.
41414         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
41415         module and recently fixed cygwin bugs.
41416         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
41417         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
41418         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
41419         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
41420         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
41421         Likewise.
41422         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
41423         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
41424         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
41425         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
41426         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
41427         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
41428         Likewise.
41429
41430         Avoid gcc warning on cygwin.
41431         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
41432         !ACL_NO_TRIVIAL]: Avoid unused variable.
41433
41434 2008-06-05  Eric Blake  <ebb9@byu.net>
41435
41436         Be tolerant of UNKNOWN version in gnulib-tool test dir.
41437         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
41438         git-version-gen fails to come up with a version.
41439         Reported by Simon Josefsson.
41440
41441 2008-06-05  Jim Meyering  <meyering@redhat.com>
41442             Paul Eggert  <eggert@cs.ucla.edu>
41443
41444         utimens.c: work around a probable Linux kernel bug
41445         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
41446         appears to be a kernel bug that causes utimensat to return 280
41447         instead of 0, indicating success.
41448
41449 2008-06-04  Bruno Haible  <bruno@clisp.org>
41450
41451         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
41452         2008-06-01 commit.
41453
41454 2008-06-04  Bruno Haible  <bruno@clisp.org>
41455
41456         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
41457         * lib/file-has-acl.c (acl_access_nontrivial): New function.
41458         (file_has_acl): Use it. Save errno afterwards.
41459         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
41460
41461 2008-06-03  Bruno Haible  <bruno@clisp.org>
41462
41463         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
41464         draft code. Simplify #ifs.
41465         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
41466         Put Solaris code after POSIX-draft code. Fix comments regarding
41467         Solaris 10, HP-UX. Mention Cygwin.
41468         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
41469
41470 2008-06-03  Eric Blake  <ebb9@byu.net>
41471
41472         Provide fallback for older kernels.
41473         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
41474         Provide runtime fallback if kernel lacks support.
41475         Reported by Mike Frysinger.
41476
41477 2008-06-02  Bruno Haible  <bruno@clisp.org>
41478
41479         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
41480         it exists.
41481
41482 2008-06-02  Bruno Haible  <bruno@clisp.org>
41483
41484         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
41485         * lib/copy-acl.c (qcopy_acl): Update comment.
41486
41487 2008-06-02  Bruno Haible  <bruno@clisp.org>
41488
41489         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
41490         like ACL APIs.
41491
41492 2008-06-02  Bruno Haible  <bruno@clisp.org>
41493
41494         * tests/test-file-has-acl.sh: Use different code for Cygwin.
41495         * tests/test-set-mode-acl.sh: Likewise.
41496         * tests/test-copy-acl.sh: Likewise.
41497         * tests/test-copy-file.sh: Likewise.
41498
41499 2008-06-02  Bruno Haible  <bruno@clisp.org>
41500
41501         * tests/test-file-has-acl.sh: Remove unused code.
41502
41503 2008-06-01  Bruno Haible  <bruno@clisp.org>
41504
41505         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
41506         (copy_acl): Just a wrapper around qcopy_acl that emits the error
41507         messages.
41508         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
41509
41510 2008-06-01  Bruno Haible  <bruno@clisp.org>
41511
41512         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
41513         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
41514         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
41515         APIs.
41516         * modules/acl-tests (configure.ac): Remove tests now contained in
41517         m4/acl.m4.
41518
41519 2008-06-02  Jim Meyering  <meyering@redhat.com>
41520
41521         announce-gen: use a better key-server host name
41522         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
41523         it may be more consistently reliable.  Suggested by Werner Koch
41524         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
41525
41526 2008-06-01  Bruno Haible  <bruno@clisp.org>
41527
41528         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
41529         Reported by Voroskoi Andras <voroskoi@gmail.com>.
41530
41531 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
41532
41533         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
41534
41535 2008-06-01  Bruno Haible  <bruno@clisp.org>
41536
41537         New ACL tests.
41538         * tests/test-file-has-acl.sh: New file.
41539         * tests/test-file-has-acl.c: New file.
41540         * tests/test-set-mode-acl.sh: New file.
41541         * tests/test-set-mode-acl.c: New file.
41542         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
41543         * tests/test-copy-acl.c: New file.
41544         * modules/acl-tests: New file, based on modules/copy-file-tests.
41545         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
41546         (Depends-on): Add acl-tests.
41547         (configure.ac): Remove checks.
41548         (Makefile.am): Don't create test-sameacls program here any more.
41549
41550 2008-06-01  Bruno Haible  <bruno@clisp.org>
41551
41552         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
41553         * tests/test-sameacls.c: Include progname.h.
41554         (main): Invoke set_program_name. Portability fixes for MacOS X,
41555         Solaris, HP-UX.
41556
41557 2008-06-01  Bruno Haible  <bruno@clisp.org>
41558
41559         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
41560         function.
41561         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
41562
41563 2008-06-01  Bruno Haible  <bruno@clisp.org>
41564
41565         * modules/rpmatch (Depends-on): Add strdup.
41566
41567 2008-06-01  Bruno Haible  <bruno@clisp.org>
41568
41569         * lib/pipe.c: Include unistd-safer.h.
41570         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
41571         * modules/pipe (Depends-on): Add unistd-safer.
41572
41573 2008-05-30  Simon Josefsson  <simon@josefsson.org>
41574
41575         * modules/autobuild (configure.ac): Call AB_INIT.
41576
41577 2008-05-30  Simon Josefsson  <simon@josefsson.org>
41578
41579         * tests/test-getaddrinfo.c: Don't print debug messages by default.
41580         Suggested by Bruno Haible <bruno@clisp.org>.
41581
41582 2008-05-30  Simon Josefsson  <simon@josefsson.org>
41583
41584         * tests/test-base64.c: Cast size_t to unsigned long when invoking
41585         printf.  Use %lu instead of %d.  Reported by Bruno Haible
41586         <bruno@clisp.org>.
41587
41588 2008-05-29  Eric Blake  <ebb9@byu.net>
41589
41590         Prefer new POSIX 200x interfaces over futimesat.
41591         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
41592         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
41593         when available.
41594         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
41595
41596 2008-05-28  Bruno Haible  <bruno@clisp.org>
41597
41598         * modules/stpcpy (License): Change to LGPLv2+.
41599         Requested by David Lutterkort <dlutter@redhat.com>.
41600
41601 2008-05-27  Bruno Haible  <bruno@clisp.org>
41602
41603         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
41604         current mingw.
41605         Reported by Jose E. Marchesi <jemarch@gnu.org>.
41606
41607 2008-05-27  Bruno Haible  <bruno@clisp.org>
41608
41609         * modules/iconv_open (Link): New section, from module 'iconv'.
41610         * modules/striconv (Link): Likewise.
41611         * modules/striconveh (Link): Likewise.
41612         * modules/xstriconv (Link): Likewise.
41613         * modules/unicodeio (Link): Likewise.
41614         * modules/propername (Link): Likewise.
41615         Reported by Jim Meyering.
41616
41617 2008-05-26  Jim Meyering  <meyering@redhat.com>
41618
41619         sha256: do not artificially restrict buffer length to be < 2^32
41620         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
41621         uint32_t to size_t.
41622         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
41623         to match.
41624
41625         avoid unaligned access errors, e.g., on sparc
41626         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
41627         direct access through a possibly-unaligned uint64* pointer.
41628         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
41629         direct access through a possibly-unaligned uint32* pointer.
41630         Prompted by this patch from Tom "spot" Callaway:
41631         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
41632
41633         sha512.c: fix typo in comment
41634         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
41635
41636 2008-05-25  Bruno Haible  <bruno@clisp.org>
41637
41638         * lib/set-mode-acl.c: Renamed from lib/acl.c.
41639         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
41640         (Makefile.am): Update lib_SOURCES.
41641
41642 2008-05-25  Bruno Haible  <bruno@clisp.org>
41643
41644         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
41645
41646 2008-05-25  Jim Meyering  <meyering@redhat.com>
41647
41648         useless-if-before-free: freed expr may have white-space differences
41649         * build-aux/useless-if-before-free: Recognize cases in which the
41650         freed expression differs from the tested one in embedded white
41651         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
41652         $1 was used, so we can't make any regexp shy.  Improved tests now
41653         detect this.
41654
41655         useless-if-before-free: accept white space in the expression.
41656         * build-aux/useless-if-before-free: For now, any white space
41657         in the expression must be identical in the free argument.
41658
41659         useless-if-before-free: efficiency tweak
41660         * build-aux/useless-if-before-free: Make the expression-matching
41661         regexp "shy".
41662         Make the *outer* regexp shy, not the expr-matching one.
41663
41664         update code-in-comment to accept cast of free arg
41665         * build-aux/useless-if-before-free: Update regexp.
41666
41667 2008-05-25  Bruno Haible  <bruno@clisp.org>
41668
41669         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
41670         * modules/copy-file-tests (Files, Makefile.am): Update.
41671         * tests/test-copy-file.c (func_test_copy): Update.
41672
41673 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
41674
41675         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
41676
41677 2008-05-23  Bruno Haible  <bruno@clisp.org>
41678
41679         Improve support for ACLs on OSF/1.
41680         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
41681         Remove fallback for unknown flavors of ACLs.
41682
41683 2008-05-22  Bruno Haible  <bruno@clisp.org>
41684
41685         Add support for ACLs on OSF/1.
41686         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
41687         replacements.
41688         (acl_free_text): New macro fallback.
41689         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
41690         acl_free.
41691         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
41692         acl_free_text function. Require AC_C_INLINE.
41693
41694 2008-05-22  Bruno Haible  <bruno@clisp.org>
41695
41696         Make copy_acl work on MacOS X 10.5.
41697         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
41698         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
41699         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
41700         If MODE_INSIDE_ACL, don't assume that every system has the same text
41701         representation for ACLs as FreeBSD.
41702         * lib/copy-acl.c (copy_acl): Add support for platforms with
41703         !MODE_INSIDE_ACL.
41704         * lib/file-has-acl.c (file_has_acl): Likewise.
41705         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
41706         FreeBSD, MacOS X, or IRIX, respectively.
41707
41708 2008-05-22  Bruno Haible  <bruno@clisp.org>
41709
41710         * lib/acl.h: Don't include <sys/acl.h>.
41711         (GETACLCNT): Move fallback to lib/acl-internal.h.
41712         * lib/acl-internal.h: Include <sys/acl.h> here.
41713         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
41714
41715 2008-05-22  Bruno Haible  <bruno@clisp.org>
41716
41717         Split off copy_acl function to separate file.
41718         * lib/copy-acl.c: New file, extracted from lib/acl.c.
41719         * lib/acl.c (copy_acl): Moved function to separate file.
41720         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
41721         * modules/acl (Files): Add lib/copy-acl.c.
41722         (Makefiles.am): Augment lib_SOURCES.
41723
41724 2008-05-22  Bruno Haible  <bruno@clisp.org>
41725
41726         * modules/copy-file-tests: New file.
41727         * tests/test-copy-file.sh: New file.
41728         * tests/test-copy-file.c: New file.
41729         * tests/test-copy-file-sameacls.c: New file.
41730
41731 2008-05-22  Eric Blake  <ebb9@byu.net>
41732
41733         Avoid gcc warning.
41734         * tests/test-memcmp.c (main): Pass NULL indirectly.
41735
41736 2008-05-21  Bruno Haible  <bruno@clisp.org>
41737
41738         Add reference doc about ACLs.
41739         * doc/acl-resources.txt: New file.
41740         * doc/acl-cygwin.txt: New file.
41741
41742 2008-05-21  Bruno Haible  <bruno@clisp.org>
41743
41744         Avoid one more warning from gcc.
41745         * lib/vasnprintf.c (IF_LINT): Update comments.
41746         (VASNPRINTF): Use it also for the 'prefix' array initializer.
41747
41748 2008-05-21  Jim Meyering  <meyering@redhat.com>
41749
41750         avoid a warning from gcc
41751         * lib/vasnprintf.c (IF_LINT): Define.
41752         (scale10_round_decimal_long_double):
41753         Use it to avoid a "may be used uninitialized" warning.
41754         (scale10_round_decimal_double): Likewise.
41755
41756 2008-05-21  Simon Josefsson  <simon@josefsson.org>
41757
41758         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
41759         declared.
41760
41761 2008-05-20  Bruno Haible  <bruno@clisp.org>
41762
41763         * tests/test-memcmp.c (main): Test also the sign of the result. Test
41764         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
41765
41766 2008-05-20  Simon Josefsson  <simon@josefsson.org>
41767
41768         * modules/memcmp-tests: New file.
41769         * tests/test-memcmp.c: New file.
41770
41771 2008-05-19  Bruno Haible  <bruno@clisp.org>
41772
41773         * modules/propername (Notice, configure.ac): Put quoted "..." into
41774         --keyword option.
41775         * lib/propername.h: Update comments accordingly.
41776         Reported by Eric Blake.
41777
41778 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
41779
41780         * modules/getpass-gnu (Depends-on): Add fseeko.
41781
41782 2008-05-19  Simon Josefsson  <simon@josefsson.org>
41783
41784         * modules/base64-tests: New file.
41785
41786 2008-05-19  Bo Borgerson <gigabo@gmail.com>
41787
41788         * lib/base64.c (base64_decode_ctx): If a decode context structure
41789         was passed in use it to ignore newlines.  If a context structure
41790         was _not_ passed in, continue to treat newlines as garbage (this
41791         is the historical behavior).  Formerly base64_decode.
41792         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
41793         takes a decode context structure.
41794         * lib/base64.h (base64_decode): Macro for four-argument calls.
41795         (base64_decode_alloc): Likewise.
41796         * lib/base64.c (base64_decode_ctx): If a decode context structure
41797         was passed in use it to ignore newlines.  If a context structure
41798         was _not_ passed in, continue to treat newlines as garbage (this
41799         is the historical behavior).  Formerly base64_decode.
41800         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
41801         takes a decode context structure.
41802         * lib/base64.h (base64_decode): Macro for four-argument calls.
41803         (base64_decode_alloc): Likewise.
41804
41805 2008-05-19  Jim Meyering  <meyering@redhat.com>
41806
41807         avoid a warning from gcc
41808         * lib/trim.c (IF_LINT): Define.
41809         (trim2): Use it to avoid a "may be used uninitialized" warning.
41810
41811         Fix doc typo.
41812         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
41813
41814 2008-05-19  Bruno Haible  <bruno@clisp.org>
41815
41816         * doc/glibc-functions/getpass.texi: Document limits of other
41817         implementations.
41818
41819 2008-05-19  Simon Josefsson  <simon@josefsson.org>
41820             Bruno Haible <bruno@clisp.org>
41821
41822         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
41823
41824 2008-05-18  Bruno Haible  <bruno@clisp.org>
41825
41826         * modules/propername: New file, from GNU gettext.
41827         * lib/propername.h: New file, from GNU gettext.
41828         * lib/propername.c: New file, from GNU gettext.
41829         * MODULES.html.sh (Internationalization functions): Add propername.
41830
41831 2008-05-16  Jim Meyering  <meyering@redhat.com>
41832             Bruno Haible  <bruno@clisp.org>
41833
41834         Avoid some warnings from "gcc -Wshadow".
41835         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
41836
41837 2008-05-15  Eric Blake  <ebb9@byu.net>
41838
41839         Extend previous patch to cygwin 1.7.0.
41840         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
41841         fast implementation in cygwin >= 1.7.0.
41842         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
41843         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
41844
41845 2008-05-15  Bruno Haible  <bruno@clisp.org>
41846
41847         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
41848         implementation in glibc >= 2.9.
41849         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
41850         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
41851
41852 2008-05-15  Bruno Haible  <bruno@clisp.org>
41853
41854         * MODULES.html.sh (Internationalization functions): Remove linebreak.
41855         (Unicode string functions): Add unilbrk/*.
41856         Reported by Karl Berry.
41857
41858 2008-05-15  Eric Blake  <ebb9@byu.net>
41859
41860         Fix violation of <stdbool.h> replacement in regex.
41861         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
41862         * lib/regexec.c (re_search_internal): Likewise.
41863         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
41864
41865 2008-05-15  Jim Meyering  <meyering@redhat.com>
41866
41867         avoid distracting test output when git or cvs is not found
41868         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
41869         * tests/test-vc-list-files-git.sh: Likewise.
41870
41871 2008-05-15  Eric Blake  <ebb9@byu.net>
41872
41873         Glibc finally accepted the memmem speedup code, bugzilla #5514.
41874         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
41875         glibc version.
41876         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
41877         * doc/posix-functions/strstr.texi (strstr): Likewise.
41878         * lib/str-two-way.h (MAX): Sychronize with glibc.
41879
41880 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
41881
41882         * lib/regcomp.c (optimize_utf8): Add a note on why we test
41883         opr.ctx_type.
41884         (calc_first): Initialize constraint field.
41885         (duplicate_node_closure): Use it instead of special casing ANCHORS.
41886         Fix grammar.
41887         (duplicate_node): Merge constraint field for all node types.
41888         (calc_eclosure_iter): Look at constraint field for all node types.
41889         * lib/regex_internal.c (create_cd_newstate): Don't look at
41890         opr.ctx_type.
41891
41892 2008-05-14  Bruno Haible  <bruno@clisp.org>
41893
41894         Help GCC to do better code generation.
41895         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
41896         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
41897         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
41898         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
41899         Declare with attribute 'malloc' if supported.
41900
41901 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
41902
41903         use "echo STR|wc -c" rather than unportable "expr length STR"
41904         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
41905         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
41906
41907 2008-05-14  Jim Meyering  <meyering@redhat.com>
41908
41909         use dd ibs=$n count=1 ... rather than less-portable head -c$n
41910         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
41911         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
41912         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
41913         via Collin Lasse.
41914
41915 2008-05-14  Eric Blake  <ebb9@byu.net>
41916
41917         Avoid quadratic growth in gl_LIBSOURCES.
41918         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
41919         Suggested by Bruno Haible.
41920
41921         Test xmemdup0.
41922         * modules/xmemdup0-tests: New file.
41923         * tests/test-xmemdup0.c: Likewise.
41924
41925 2008-05-13  Eric Blake  <ebb9@byu.net>
41926
41927         Split xmemdup0 into its own module.
41928         * modules/xmemdup0: New file.
41929         * lib/xmemdup0.h: Likewise.
41930         * lib/xmemdup0.c: Likewise.
41931         * MODULES.html.sh (Memory management functions): Add xmemdup0.
41932         * lib/xalloc.h (xmemdup0): Remove.
41933         * lib/xmalloc.c (xmemdup0): Likewise.
41934
41935 2008-05-13  Eric Blake  <ebb9@byu.net>
41936             Bruno Haible  <bruno@clisp.org>
41937
41938         Reduce number of forks required during autoconf.
41939         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
41940         and gl_LIBSOURCES_DIR.
41941         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
41942         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
41943         m4_syscmd per file.
41944         <m4_foreach_w>: Move...
41945         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
41946
41947 2008-05-13  Eric Blake  <ebb9@byu.net>
41948
41949         * gnulib-tool: Fix various comment typos.
41950
41951 2008-05-12  Bruno Haible  <bruno@clisp.org>
41952
41953         Tailor the linebreaking algorithm.
41954         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
41955
41956 2008-05-12  Bruno Haible  <bruno@clisp.org>
41957
41958         Update to Unicode 5.0.0.
41959         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
41960         LBP_JV, LBP_JT. Redistribute values.
41961         (unilbrk_table): Change size.
41962         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
41963         Unicode TR#14 rev. 22.
41964         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
41965         LBP_JV, LBP_JT. Redistribute values.
41966         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
41967         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
41968         Update.
41969         * lib/unilbrk/lbrkprop1.h: Regenerated.
41970         * lib/unilbrk/lbrkprop2.h: Regenerated.
41971         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
41972         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
41973         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
41974         Likewise.
41975         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
41976         Likewise.
41977         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
41978         result.
41979         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
41980         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
41981         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
41982         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
41983         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
41984         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
41985
41986 2008-05-11  Bruno Haible  <bruno@clisp.org>
41987
41988         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
41989
41990 2008-05-11  Bruno Haible  <bruno@clisp.org>
41991
41992         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
41993         * modules/unilbrk/gen-lbrk: New file.
41994
41995 2008-05-11  Bruno Haible  <bruno@clisp.org>
41996
41997         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
41998         * m4/sha512.m4 (gl_SHA512): Likewise.
41999
42000 2008-05-11  Jim Meyering  <meyering@redhat.com>
42001
42002         New modules: crypto/sha256, crypto/sha512 (from coreutils)
42003         * modules/crypto/sha256: New file.
42004         * modules/crypto/sha512: Likewise.
42005         * lib/sha256.c: Likewise.
42006         * lib/sha256.h: Likewise.
42007         * lib/sha512.c: Likewise.
42008         * lib/sha512.h: Likewise.
42009         * lib/u64.h: Likewise.
42010         * m4/sha256.m4: Likewise.
42011         * m4/sha512.m4: Likewise.
42012         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
42013
42014 2008-05-10  Bruno Haible  <bruno@clisp.org>
42015
42016         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
42017         (Input/Output <stdio.h>): Add xprintf.
42018         (Signal handling <signal.h>): Add strsignal.
42019         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
42020         (Core language properties): Add func.
42021         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
42022         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
42023         strings.
42024         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
42025         (Input/output): New section.
42026         (File system functions): Add openat-die, stat-macros.
42027         (Networking functions): Add sockets.
42028         (Unicode string functions): Add unictype/*.
42029         (Support for building libraries and executables): Add gperf.
42030         (Support for building documentation): Add agpl-3.0.
42031         (Misc): Add nocrash.
42032
42033 2008-05-10  Bruno Haible  <bruno@clisp.org>
42034
42035         * modules/unictype/gen-ctype: New file.
42036
42037 2008-05-10  Jim Meyering  <meyering@redhat.com>
42038
42039         Make chdir-safer.c more efficient on a system with no symlinks.
42040         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
42041         also if ELOOP is zero.  Suggested by Bruno Haible.
42042
42043         Make chdir-safer.c slightly safer.
42044         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
42045         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
42046
42047         Avoid compile failure on systems without ELOOP (like mingw).
42048         * lib/chdir-safer.c (ELOOP): Define if not already defined.
42049         Reported by Bruno Haible.
42050
42051 2008-05-10  Bruno Haible  <bruno@clisp.org>
42052
42053         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
42054         (is_utf8_encoding): Use a case-insensitive comparison.
42055         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
42056         streq.
42057
42058 2008-05-10  Bruno Haible  <bruno@clisp.org>
42059
42060         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
42061         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
42062         * lib/unilbrk/ulc-common.h (iconv_string_length,
42063         iconv_string_keeping_offsets): Remove declarations.
42064         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
42065         Don't include <iconv.h>, streq.h, xsize.h.
42066         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
42067         conversion.
42068         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
42069         <iconv.h>, streq.h, xsize.h.
42070         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
42071         conversion.
42072         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
42073         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
42074         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
42075         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
42076
42077 2008-05-10  Bruno Haible  <bruno@clisp.org>
42078
42079         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
42080         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
42081
42082         * modules/unilbrk/u32-width-linebreaks-tests: New file.
42083         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
42084
42085         * modules/unilbrk/u16-width-linebreaks-tests: New file.
42086         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
42087
42088         * modules/unilbrk/u8-width-linebreaks-tests: New file.
42089         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
42090
42091         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
42092         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
42093
42094         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
42095         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
42096
42097         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
42098         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
42099
42100         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
42101         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
42102
42103 2008-05-10  Bruno Haible  <bruno@clisp.org>
42104
42105         Split up 'linebreak' module.
42106         * lib/unilbrk.h: New file, based on lib/linebreak.h.
42107         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
42108         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
42109         modifications.
42110         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
42111         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
42112         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
42113         lib/linebreak.c.
42114         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
42115         lib/linebreak.c.
42116         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
42117         lib/linebreak.c.
42118         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
42119         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
42120         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
42121         lib/linebreak.c.
42122         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
42123         lib/linebreak.c.
42124         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
42125         lib/linebreak.c.
42126         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
42127         lib/linebreak.c.
42128         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
42129         lib/linebreak.c.
42130         * modules/unilbrk/base: New file.
42131         * modules/unilbrk/tables: New file.
42132         * modules/unilbrk/u8-possible-linebreaks: New file.
42133         * modules/unilbrk/u16-possible-linebreaks: New file.
42134         * modules/unilbrk/u32-possible-linebreaks: New file.
42135         * modules/unilbrk/ulc-common: New file.
42136         * modules/unilbrk/ulc-possible-linebreaks: New file.
42137         * modules/unilbrk/u8-width-linebreaks: New file.
42138         * modules/unilbrk/u16-width-linebreaks: New file.
42139         * modules/unilbrk/u32-width-linebreaks: New file.
42140         * modules/unilbrk/ulc-width-linebreaks: New file.
42141         * lib/linebreak.h: Remove file.
42142         * lib/linebreak.c: Remove file.
42143         * m4/linebreak.m4: Remove file.
42144         * modules/linebreak: Remove file.
42145         * NEWS: Mention the changes.
42146
42147 2008-05-09  Eric Blake  <ebb9@byu.net>
42148
42149         Add xmemdup0.
42150         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
42151         implementation.
42152         * lib/xmalloc.c (xmemdup0): New C implementation.
42153
42154 2008-05-08  Bruno Haible  <bruno@clisp.org>
42155
42156         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
42157
42158 2008-05-07  Eric Blake  <ebb9@byu.net>
42159
42160         Support cross-compilation of <wctype.h>.
42161         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
42162         AC_CACHE_CHECK.
42163
42164 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
42165
42166         * build-aux/vc-list-files: Add support for bzr.
42167
42168 2008-05-03  Jim Meyering  <meyering@redhat.com>
42169
42170         avoid failed assertion with tight malloc
42171         * tests/test-getndelim2.c: Correct an off-by-one assertion.
42172
42173 2008-05-03  Simon Josefsson  <simon@josefsson.org>
42174
42175         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
42176         are needed from arpa/inet.h.
42177         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
42178         Reported by Bruno Haible.
42179
42180 2008-05-02  Jim Meyering  <meyering@redhat.com>
42181
42182         avoid compilation error on FreeBSD 6
42183         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
42184
42185 2008-05-01  Jim Meyering  <meyering@redhat.com>
42186
42187         useless-if-before-free: correct --help's exit status description
42188         * build-aux/useless-if-before-free (usage): Like grep, exit 0
42189         for one or more matches, etc.  Reported by Bruno Haible.
42190
42191         vc-list-files: make the stand-alone gnulib test work
42192         * modules/vc-list-files-tests (configure.ac):
42193         Define and AC_SUBST abs_aux_dir.
42194         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
42195         $(abs_top_srcdir) to each script and having each of them
42196         duplicate the work of setting PATH, set PATH here, using
42197         the new variable, abs_aux_dir instead.
42198         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
42199         * tests/test-vc-list-files-git.sh: Likewise.
42200         Reported by Bruno Haible.
42201
42202 2008-05-01  Bruno Haible  <bruno@clisp.org>
42203
42204         * lib/getndelim2.c (getndelim2): Fix newsize computation during
42205         reallocation. Rename 'done' to 'found_delimiter'.
42206
42207 2008-05-01  Jim Meyering  <meyering@redhat.com>
42208
42209         vc-list-files: accommodate /bin/sh like the one from Solaris 10
42210         * build-aux/vc-list-files: Use `...`, not $(...).
42211
42212 2008-04-30  Jim Meyering  <meyering@redhat.com>
42213
42214         add tests for vc-list-files
42215         * modules/vc-list-files-tests: New module.
42216         * tests/test-vc-list-files-cvs.sh: New file.
42217         * tests/test-vc-list-files-git.sh: New file.
42218
42219         avoid a warning from gcc
42220         * lib/getndelim2.c (IF_LINT): Define.
42221         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
42222
42223         vc-list-files: work properly with build-aux/cvsu, too
42224         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
42225         to all cvs-based clauses.
42226
42227         vc-list-files: work properly in the CVS+awk case, too
42228         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
42229
42230         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
42231         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
42232         take more than one file argument, so .  Add quotes, just in case $dir
42233         ever contains a shell meta-character.  Prompted by Soren Hansen in
42234         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
42235
42236 2008-04-29  Eric Blake  <ebb9@byu.net>
42237
42238         Optimize getndelim2 to use block operations when possible.
42239         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
42240         freadseek, and memchr2.
42241         * lib/getndelim2.c (getndelim2): Use them for block reads.
42242
42243 2008-04-29  Bruno Haible  <bruno@clisp.org>
42244
42245         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
42246         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42247         * modules/inet_ntop (Depends-on): Add extensions.
42248         * modules/inet_pton (Depends-on): Likewise.
42249         Reported by Simon Josefsson.
42250
42251 2008-04-29  Jim Meyering  <meyering@redhat.com>
42252
42253         When the is more than one match in a block, match all of them.
42254         * build-aux/useless-if-before-free: Iterate through each block
42255         until there are no more matches.
42256
42257         Fix broken useless-if-before-free script.
42258         * build-aux/useless-if-before-free: Fix typo: missing "?" after
42259         the expression to match cast of argument to free-like function.
42260
42261 2008-04-29  Eric Blake  <ebb9@byu.net>
42262
42263         Use new header.
42264         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
42265
42266 2008-04-29  Jim Meyering  <meyering@redhat.com>
42267
42268         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
42269         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
42270         by gnulib to exist and to declare e.g., inet_ntop.
42271         Don't include "inet_ntop.h", now removed.
42272
42273         * m4/arpa_inet_h.m4: Remove trailing blanks.
42274
42275 2008-04-29  Eric Blake  <ebb9@byu.net>
42276
42277         Silence valgrind on safe reads beyond potential array bounds.
42278         * lib/rawmemchr.valgrind: New file.
42279         * lib/strchrnul.valgrind: Likewise.
42280         * modules/rawmemchr (Files): Distribute new file.
42281         * modules/strchrnul (Files): Likewise.
42282         Suggested by Bruno Haible.
42283
42284 2008-04-29  Bruno Haible  <bruno@clisp.org>
42285
42286         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
42287         (inet_ntop, inet_pton): Change portability warning's wording.
42288         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
42289         Invoke gl_CHECK_NEXT_HEADERS.
42290         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
42291         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
42292         set ARPA_INET_H.
42293         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42294         * modules/arpa_inet (Description): No longer only for systems that
42295         lack it.
42296         (Depends-on): Add include_next.
42297         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
42298         HAVE_ARPA_INET_H.
42299
42300 2008-04-29  Jim Meyering  <meyering@redhat.com>
42301
42302         * modules/mkdir (License): Re-license as LGPLv2+.
42303
42304 2008-04-29  Bruno Haible  <bruno@clisp.org>
42305
42306         * modules/rawmemchr (Maintainer): Set to Eric.
42307         * modules/strchrnul (Maintainer): Likewise.
42308
42309 2008-04-29  Simon Josefsson  <simon@josefsson.org>
42310
42311         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
42312         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
42313
42314         * modules/arpa_inet (arpa/inet.h): Use them.
42315
42316 2008-04-28  Eric Blake  <ebb9@byu.net>
42317
42318         Test getndelim2.
42319         * modules/getndelim2-tests: New file.
42320         * tests/test-getndelim2.c: Likewise.
42321         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
42322         stream.
42323         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
42324
42325         * MODULES.html.sh: Document new module.
42326
42327 2008-04-20  Bruno Haible  <bruno@clisp.org>
42328
42329         * lib/c-stack.c (die): Use raise.
42330         * modules/c-stack (Depends-on): Add raise.
42331
42332 2008-04-28  Bruno Haible  <bruno@clisp.org>
42333
42334         Expect rpmatch to be declared.
42335         * lib/yesno.c (rpmatch): Remove declaration.
42336
42337         Declare rpmatch.
42338         * lib/stdlib.in.h (rpmatch): New declaration.
42339         * lib/rpmatch.c: Include <stdlib.h> first.
42340         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
42341         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
42342         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
42343         HAVE_RPMATCH.
42344         * modules/rpmatch (Depends-on): Add stdlib, extensions.
42345         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42346         (Include): Set to <stdlib.h>.
42347         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
42348         HAVE_RPMATCH.
42349         * NEWS: Document the change.
42350
42351 2008-04-28  Bruno Haible  <bruno@clisp.org>
42352
42353         Change rpmatch to use nl_langinfo when appropriate.
42354         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
42355         (N_): New macro.
42356         (localized_pattern): New function/macro.
42357         (try): Remove match, nomatch arguments. Copy the pattern into safe
42358         memory before caching it.
42359         (rpmatch): Use localized_pattern. Add translator comments.
42360         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
42361         Suggested by Eric Blake.
42362         * modules/rpmatch (Depends-on): Add stdbool.
42363
42364 2008-04-28  Eric Blake  <ebb9@byu.net>
42365
42366         Add rawmemchr module, matching glibc.
42367         * modules/string (Makefile.am): New indicator.
42368         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
42369         * lib/string.in.h (rawmemchr): Declare when appropriate.
42370         * modules/rawmemchr: New file.
42371         * m4/rawmemchr.m4: Likewise.
42372         * lib/rawmemchr.c: Likewise.
42373         * modules/rawmemchr-tests: Likewise.
42374         * tests/test-rawmemchr.c: Likewise.
42375         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
42376         module.
42377         * modules/strchrnul (Depends-on): Add rawmemchr.
42378         * lib/strchrnul.c (strchrnul): Optimize a corner case.
42379
42380         Whitespace cleanup.
42381         * tests/test-strchrnul.c: Reindent.
42382         * lib/strchrnul.c: Likewise.
42383
42384         Optimize and test strchrnul.
42385         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
42386         * modules/strchrnul-tests: New file.
42387         * tests/test-strchrnul.c: Likewise.
42388
42389         Remove intprops dependency.
42390         * modules/memchr (Depends-on): Remove intprops.
42391         * modules/memrchr (Depends-on): Likewise.
42392         * modules/memchr2 (Depends-on): Likewise.
42393         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
42394         * lib/memrchr.c (__memrchr): Likewise.
42395         * lib/memrchr2.c (memchr2): Likewise.
42396         Reported by Simon Josefsson.
42397
42398 2008-04-28  Simon Josefsson  <simon@josefsson.org>
42399
42400         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
42401         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42402
42403 2008-04-28  Simon Josefsson  <simon@josefsson.org>
42404
42405         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
42406
42407         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
42408
42409         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
42410
42411         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
42412         declarations.
42413         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
42414
42415         * m4/inet_pton.m4: Don't check for header files.
42416
42417         * m4/inet_ntop.m4: Don't check for header files.
42418
42419 2008-04-28  Simon Josefsson  <simon@josefsson.org>
42420
42421         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
42422         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
42423         trigger for cygwin).
42424         Reported by Bruno Haible  <bruno@clisp.org>.
42425
42426 2008-04-28  Bruno Haible  <bruno@clisp.org>
42427
42428         * doc/posix-functions/strdup.texi: Mention mingw problem.
42429
42430 2008-04-27  Bruno Haible  <bruno@clisp.org>
42431
42432         * modules/stat-time-tests (Depends-on): Add sleep.
42433         * tests/test-stat-time.c (force_unlink): New function.
42434         (cleanup): Use it.
42435         (test_mtime): Remove the ctime related tests.
42436         (test_ctime): New function, containing the ctime related tests.
42437         (main): Call test_ctime, except on native Windows platforms.
42438
42439 2008-04-27  Bruno Haible  <bruno@clisp.org>
42440
42441         * lib/rpmatch.c (rpmatch): Add some comments.
42442         Reported by James Youngman <jay@gnu.org>.
42443
42444 2008-04-27  Bruno Haible  <bruno@clisp.org>
42445
42446         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
42447         quiet NaNs.
42448
42449 2008-04-27  Bruno Haible  <bruno@clisp.org>
42450
42451         Make test-yesno.sh work on mingw.
42452         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
42453         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
42454         (main): Set stdin to binary mode.
42455         * modules/yesno-tests (Depends-on): Add binary-io.
42456
42457 2008-04-27  Bruno Haible  <bruno@clisp.org>
42458
42459         Fix 'isfinite' on x86, x86_64, ia64 platforms.
42460         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
42461         argument that lie outside the IEEE 854 domain.
42462         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
42463         (gl_ISFINITE): Use it.
42464         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
42465
42466 2008-04-27  Bruno Haible  <bruno@clisp.org>
42467
42468         Allow local renaming in config.h.
42469         * lib/memrchr.c (memrchr): Don't undefine outside libc.
42470
42471 2008-04-27  Bruno Haible  <bruno@clisp.org>
42472
42473         * lib/memchr.c (__memchr): Change type of 'i'.
42474         * lib/memchr2.c (memchr2): Likewise.
42475
42476 2008-04-26  Eric Blake  <ebb9@byu.net>
42477         and Bruno Haible  <bruno@clisp.org>
42478
42479         Optimize and test memrchr.
42480         * modules/memrchr (Depends-on): Add intprops.
42481         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
42482         * modules/memrchr-tests: New file.
42483         * tests/test-memrchr.c: New file.
42484
42485 2008-04-26  Bruno Haible  <bruno@clisp.org>
42486
42487         Add tentative support for DragonFly BSD.
42488         * lib/stdio-impl.h: Add macros for DragonFly BSD.
42489         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
42490         fp.
42491         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
42492         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
42493         * lib/fpurge.c (fpurge): Likewise.
42494         * lib/freadable.c (freaadable): Likewise.
42495         * lib/freadahead.c (freadahead): Likewise.
42496         * lib/freading.c (freading): Likewise.
42497         * lib/freadptr.c (freadptr): Likewise.
42498         * lib/freadseek.c (freadptrinc): Likewise.
42499         * lib/fseeko.c (fseeko): Likewise.
42500         * lib/fseterr.c (fseterr): Likewise.
42501         * lib/fwritable.c (fwritable): Likewise.
42502         * lib/fwriting.c (fwriting): Likewise.
42503
42504 2008-04-26  Bruno Haible  <bruno@clisp.org>
42505
42506         * lib/stdio-impl.h: New file.
42507         * lib/fbufmode.c: Include stdio-impl.h.
42508         (fbufmode): Use fp_, remove redundant #defines.
42509         * lib/fflush.c: Include stdio-impl.h.
42510         (clear_ungetc_buffer): Remove redundant #defines.
42511         * lib/fpurge.c: Include stdio-impl.h.
42512         (fpurge): Remove redundant #defines.
42513         * lib/freadable.c: Include stdio-impl.h.
42514         (freadable): Remove redundant #defines.
42515         * lib/freadahead.c: Include stdio-impl.h.
42516         (freadahead): Remove redundant #defines.
42517         * lib/freading.c: Include stdio-impl.h.
42518         (freading): Remove redundant #defines.
42519         * lib/freadptr.c: Include stdio-impl.h.
42520         (freadptr): Remove redundant #defines.
42521         * lib/freadseek.c: Include stdio-impl.h.
42522         (freadptrinc): Remove redundant #defines.
42523         * lib/fseeko.c: Include stdio-impl.h.
42524         (rpl_fseeko): Remove redundant #defines.
42525         * lib/fseterr.c: Include stdio-impl.h.
42526         (fseterr): Remove redundant #defines.
42527         * lib/fwritable.c: Include stdio-impl.h.
42528         (fwritable: Remove redundant #defines.
42529         * lib/fwriting.c: Include stdio-impl.h.
42530         (fwriting): Remove redundant #defines.
42531         * modules/fbufmode (Files): Add lib/stdio-impl.h.
42532         * modules/fflush (Files): Likewise.
42533         * modules/fpurge (Files): Likewise.
42534         * modules/freadable (Files): Likewise.
42535         * modules/freadahead (Files): Likewise.
42536         * modules/freading (Files): Likewise.
42537         * modules/freadptr (Files): Likewise.
42538         * modules/freadseek (Files): Likewise.
42539         * modules/fseeko (Files): Likewise.
42540         * modules/fseterr (Files): Likewise.
42541         * modules/fwritable (Files): Likewise.
42542         * modules/fwriting (Files): Likewise.
42543
42544 2008-04-26  Bruno Haible  <bruno@clisp.org>
42545
42546         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
42547         restore_seek_optimization, update_fpos_cache): New functions, extracted
42548         from rpl_fflush.
42549         (rpl_fflush): Use them.
42550         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
42551         (gl_REPLACE_FFLUSH): Use it.
42552
42553 2008-04-26  Bruno Haible  <bruno@clisp.org>
42554
42555         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
42556         on Solaris.
42557         * tests/test-xstrtoimax.sh: Likewise.
42558         * tests/test-xstrtoumax.sh: Likewise.
42559         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42560
42561 2008-04-26  Bruno Haible  <bruno@clisp.org>
42562
42563         * modules/memchr-tests: New file.
42564         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
42565
42566 2008-04-26  Eric Blake  <ebb9@byu.net>
42567             Bruno Haible  <bruno@clisp.org>
42568
42569         * lib/memchr.c: Include intprops.h.
42570         (__memchr): Optimize parallel detection of matching bytes. Rename local
42571         variables. Add explanatory comments.
42572
42573 2008-04-26  Bruno Haible  <bruno@clisp.org>
42574
42575         Fix module 'memchr', broken since 2000-10-28.
42576         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
42577
42578 2008-04-26  Bruno Haible  <bruno@clisp.org>
42579
42580         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
42581         comments.
42582
42583 2008-04-25  Eric Blake  <ebb9@byu.net>
42584
42585         Use native fstatat on cygwin 1.7.0.
42586         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
42587         first.
42588
42589 2008-04-23  Eric Blake  <ebb9@byu.net>
42590
42591         Improve memchr2 performance.
42592         * lib/memchr2.c (memchr2): Further optimize parallel detection of
42593         NUL bytes.
42594         * modules/memchr2 (Depends-on): Use intprops.h.
42595
42596 2008-04-23  Simon Josefsson  <simon@josefsson.org>
42597
42598         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
42599         an inline function instead of a CPP macro.  Patch by Ben Pfaff
42600         <blp@cs.stanford.edu>.
42601
42602 2008-04-23  Simon Josefsson  <simon@josefsson.org>
42603
42604         * lib/arpa_inet.in.h: New file.
42605
42606         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
42607         (Makefile.am): Sed in substitute header file.
42608
42609         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
42610         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
42611
42612         * modules/inet_ntop (configure.ac): Use
42613         gl_ARPA_INET_MODULE_INDICATOR.
42614
42615         * modules/inet_pton (configure.ac): Use
42616         gl_ARPA_INET_MODULE_INDICATOR.
42617
42618 2008-04-22  Jim Meyering  <meyering@redhat.com>
42619
42620         * modules/verify (License): Re-license as LGPLv2+.
42621
42622 2008-04-22  Simon Josefsson  <simon@josefsson.org>
42623
42624         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
42625         parameter to void* as per POSIX standard (MinGW uses char*).
42626
42627 2008-04-21  Bruno Haible  <bruno@clisp.org>
42628
42629         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
42630         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
42631         Define to replacements if REPLACE_ISWCNTRL is 1.
42632         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
42633         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
42634         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
42635         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
42636         what it fixes.
42637         * doc/posix-functions/iswalpha.texi: Likewise.
42638         * doc/posix-functions/iswblank.texi: Likewise.
42639         * doc/posix-functions/iswcntrl.texi: Likewise.
42640         * doc/posix-functions/iswdigit.texi: Likewise.
42641         * doc/posix-functions/iswgraph.texi: Likewise.
42642         * doc/posix-functions/iswlower.texi: Likewise.
42643         * doc/posix-functions/iswprint.texi: Likewise.
42644         * doc/posix-functions/iswpunct.texi: Likewise.
42645         * doc/posix-functions/iswspace.texi: Likewise.
42646         * doc/posix-functions/iswupper.texi: Likewise.
42647         * doc/posix-functions/iswxdigit.texi: Likewise.
42648         Reported by Alain Guibert.
42649
42650 2008-04-21  Bruno Haible  <bruno@clisp.org>
42651
42652         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
42653         Patch by Alain Guibert.
42654
42655 2008-04-21  Bruno Haible  <bruno@clisp.org>
42656
42657         Fix test failures on mingw.
42658         * tests/test-xstrtol.c (print_no_progname): New function.
42659         (main): Install it in error_print_progname hook.
42660         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
42661         * tests/test-xstrtoimax.sh: Likewise.
42662         * tests/test-xstrtoumax.sh: Likewise.
42663
42664 2008-04-21  Bruno Haible  <bruno@clisp.org>
42665
42666         Fix test failure on mingw.
42667         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
42668
42669 2008-04-21  Bruno Haible  <bruno@clisp.org>
42670
42671         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
42672         Actually assign a value.
42673
42674 2008-04-20  Bruno Haible  <bruno@clisp.org>
42675
42676         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
42677         take 2.
42678         * lib/canonicalize.c (canonicalize_file_name): Elide if the
42679         'canonicalize-lgpl' module is also used.
42680         * lib/canonicalize-lgpl.c: Undo last change.
42681         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
42682
42683 2008-04-20  Bruno Haible  <bruno@clisp.org>
42684
42685         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
42686         config.h. Provide _mkdir based fallback for mingw.
42687         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
42688         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
42689         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
42690         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
42691         rather than defining mkdir in config.h.
42692         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
42693         (gl_SYS_STAT_H_DEFAULTS): New macro.
42694         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
42695         HAVE_IO_H any more.
42696         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
42697         HAVE_DECL_MKDIR and HAVE_IO_H.
42698
42699 2008-04-20  Bruno Haible  <bruno@clisp.org>
42700
42701         * lib/isapipe.c: Port to native Windows platforms.
42702
42703 2008-04-20  Bruno Haible  <bruno@clisp.org>
42704
42705         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
42706
42707 2008-04-21  Eric Blake  <ebb9@byu.net>
42708
42709         Work around preprocessors that don't handle UINTMAX_MAX.
42710         * lib/memchr2.c (memchr2): Avoid embedded #if.
42711         Reported by Alain Guibert, fix suggested by Bruno Haible.
42712
42713 2008-04-21  Simon Josefsson  <simon@josefsson.org>
42714
42715         * doc/posix-functions/strftime.texi (strftime): Explain better
42716         Windows incompatibility.  Suggested by Micah Cowan
42717         <micah@cowan.name>.
42718
42719 2008-04-20  Bruno Haible  <bruno@clisp.org>
42720
42721         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
42722         unistr/u8-mblen.
42723
42724 2008-04-20  Bruno Haible  <bruno@clisp.org>
42725
42726         Fix test failure on platforms with non-GNU iconv.
42727         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
42728         (U_TO_U8): Use it, rather than u16_to_u8.
42729         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
42730         units at the end of the input string.
42731         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
42732
42733 2008-04-20  Bruno Haible  <bruno@clisp.org>
42734
42735         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
42736         when the resulting length is 0.
42737         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
42738
42739 2008-04-20  Bruno Haible  <bruno@clisp.org>
42740
42741         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
42742         works.
42743         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
42744
42745 2008-04-20  Bruno Haible  <bruno@clisp.org>
42746
42747         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
42748         * modules/tsearch-tests (configure.ac): Test for initstate function.
42749
42750 2008-04-20  Bruno Haible  <bruno@clisp.org>
42751
42752         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
42753         for nlink_t if missing.
42754         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
42755
42756 2008-04-19  Bruno Haible  <bruno@clisp.org>
42757
42758         Work around snprintf bug on Linux libc5.
42759         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
42760         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
42761         gl_SNPRINTF_SIZE1.
42762         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42763         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
42764         that test failed.
42765         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
42766         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
42767         * modules/snprintf (Files): Add m4/printf.m4.
42768         * modules/vsnprintf (Files): Likewise.
42769         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
42770         * doc/posix-functions/vsnprintf.texi: Likewise.
42771
42772 2008-04-19  Bruno Haible  <bruno@clisp.org>
42773
42774         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
42775         from 0.0058 to less than 10^-7.
42776
42777 2008-04-19  Bruno Haible  <bruno@clisp.org>
42778
42779         Fix rounding when a precision is given.
42780         * lib/vasnprintf.c (is_borderline): New function.
42781         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
42782         9...9x.
42783         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
42784         %e, %g.
42785         * tests/test-vasprintf-posix.c (test_function): Likewise.
42786         * tests/test-snprintf-posix.h (test_function): Likewise.
42787         * tests/test-sprintf-posix.h (test_function): Likewise.
42788         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
42789         * tests/test-printf-posix.h (test_function): Likewise.
42790         * tests/test-printf-posix.output: Update.
42791         Reported by John Darrington <john@darrington.wattle.id.au> via
42792         Ben Pfaff <blp@cs.stanford.edu>.
42793
42794 2008-04-18  Simon Josefsson  <simon@josefsson.org>
42795
42796         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
42797         Suggested by Bruno Haible <bruno@clisp.org>.
42798
42799 2008-04-17  Bruno Haible  <bruno@clisp.org>
42800
42801         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
42802         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
42803         implementation.
42804         Patch by Bruce Merry <bmerry@gmail.com>.
42805
42806 2008-04-17  Simon Josefsson  <simon@josefsson.org>
42807
42808         * doc/posix-functions/strftime.texi (strftime): Mention that %e
42809         doesn't work under Windows.
42810
42811 2008-04-16  Bruno Haible  <bruno@clisp.org>
42812
42813         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
42814         New macros.
42815         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
42816         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
42817         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
42818         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
42819         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
42820         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
42821         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
42822         macros.
42823         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
42824         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
42825         Northern Sotho, Uighur.
42826
42827 2008-04-16  Bruno Haible  <bruno@clisp.org>
42828
42829         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
42830         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
42831         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
42832         Reported by Daniel Bergström <daniel@octocode.com>.
42833
42834 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
42835             Bruno Haible  <bruno@clisp.org>
42836
42837         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
42838         function.
42839         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
42840         New functions, mostly extracted from gl_locale_name_default.
42841         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
42842
42843 2008-04-16  Eric Blake  <ebb9@byu.net>
42844
42845         Adjust strtod detection to catch glibc 2.7 bug.
42846         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
42847         Reported by John Gatewood Ham.
42848
42849 2008-04-16  Bruno Haible  <bruno@clisp.org>
42850
42851         Add tentative support for Linux libc5.
42852         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
42853         * lib/fpurge.c (fpurge): Likewise.
42854         * lib/freadable.c (freadable): Likewise.
42855         * lib/freadahead.c (freadahead): Likewise.
42856         * lib/freading.c (freading): Likewise.
42857         * lib/freadptr.c (freadptr): Likewise.
42858         * lib/freadseek.c (freadptrinc): Likewise.
42859         * lib/fseeko.c (rpl_fseeko): Likewise.
42860         * lib/fseterr.c (fseterr): Likewise.
42861         * lib/fwritable.c (fwritable): Likewise.
42862         * lib/fwriting.c (fwriting): Likewise.
42863         Reported by Alain Guibert <alguibert+bts@free.fr>.
42864
42865 2008-04-15  Bruno Haible  <bruno@clisp.org>
42866
42867         * modules/mathl (configure.ac): Define module indicator.
42868
42869 2008-04-15  Bruno Haible  <bruno@clisp.org>
42870
42871         * lib/logl.c (logl): Remove unused variables.
42872
42873 2008-04-15  Bruno Haible  <bruno@clisp.org>
42874
42875         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
42876         fails.
42877
42878 2008-04-15  Bruno Haible  <bruno@clisp.org>
42879
42880         * lib/trim.c (trim2): Fix argument of isspace() macro.
42881
42882 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
42883
42884         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
42885         to 0.
42886         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
42887
42888 2008-04-14  Bruno Haible  <bruno@clisp.org>
42889
42890         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
42891         AC_LANG_PROGRAM argument.
42892         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
42893         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
42894         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
42895         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
42896         * m4/math_h.m4 (gl_MATH_H): Likewise.
42897         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
42898         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
42899         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
42900         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
42901         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
42902         * m4/regex.m4 (gl_REGEX): Likewise.
42903         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
42904         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
42905         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
42906         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
42907         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
42908         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
42909         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
42910         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
42911
42912 2008-04-14  Jim Meyering  <meyering@redhat.com>
42913
42914         test-strtod: fix typos: s/abs/fabs/
42915         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
42916
42917 2008-04-13  Bruno Haible  <bruno@clisp.org>
42918
42919         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
42920         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
42921         module is also used and while not building the reloc-wrapper.
42922
42923 2008-04-13  Bruno Haible  <bruno@clisp.org>
42924
42925         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
42926
42927 2008-04-13  Bruno Haible  <bruno@clisp.org>
42928
42929         Fix AIX compilation failure introduced on 2008-04-02.
42930         * tests/test-frexp.c (exp): Undefine before redefining.
42931         * tests/test-frexpl.c (exp): Likewise.
42932
42933 2008-04-13  Bruno Haible  <bruno@clisp.org>
42934
42935         Work around a HP-UX stdio bug.
42936         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
42937         * tests/test-ftello.c (main): Likewise.
42938         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
42939         * doc/posix-functions/ftello.texi: Likewise.
42940
42941 2008-04-13  Bruno Haible  <bruno@clisp.org>
42942
42943         Make test-signbit pass on HP-UX/hppa.
42944         * tests/test-signbit.c (minus_zerol): New variable.
42945         (test_signbitl): Use it.
42946
42947 2008-04-13  Bruno Haible  <bruno@clisp.org>
42948
42949         Make truncl work on OSF/1 4.0.
42950         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
42951         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
42952         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
42953         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
42954         HAVE_DECL_TRUNCL.
42955         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
42956         HAVE_DECL_TRUNCL.
42957         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
42958
42959 2008-04-13  Bruno Haible  <bruno@clisp.org>
42960
42961         * lib/unictype.h: Remove trailing comma from enumeration definitions.
42962
42963 2008-04-13  Bruno Haible  <bruno@clisp.org>
42964
42965         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
42966         expression, so as to avoid HP-UX 11 cc compiler bug.
42967
42968 2008-04-13  Bruno Haible  <bruno@clisp.org>
42969
42970         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
42971
42972 2008-04-13  Bruno Haible  <bruno@clisp.org>
42973
42974         * lib/git-merge-changelog.c: Remove empty declaration outside of
42975         functions.
42976
42977 2008-04-13  Bruno Haible  <bruno@clisp.org>
42978
42979         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
42980
42981 2008-04-13  Bruno Haible  <bruno@clisp.org>
42982
42983         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
42984         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
42985         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
42986         also if it exists but lacks definitions of the SHUT_* macros.
42987         * modules/sys_socket (Description): Update.
42988         Reported by Elbert Pol <e.pol@chello.nl>.
42989
42990 2008-04-13  Bruno Haible  <bruno@clisp.org>
42991
42992         * lib/localcharset.c (OS2): Don't redefine if already defined.
42993         Reported by Elbert Pol <e.pol@chello.nl>.
42994
42995 2008-04-13  Bruno Haible  <bruno@clisp.org>
42996
42997         * lib/binary-io.h [__EMX__]: Include <io.h>.
42998         Reported by Elbert Pol <e.pol@chello.nl>.
42999
43000 2008-04-12  Bruno Haible  <bruno@clisp.org>
43001
43002         * lib/fpucw.h: Enable the definitions also for x86_64.
43003         Needed for NetBSD/x86_64.
43004         Reported by Thomas Klausner <tk@giga.or.at>.
43005
43006 2008-04-12  Bruno Haible  <bruno@clisp.org>
43007
43008         * tests/test-strtod.c: Include isnand.h.
43009         (main): Use isnand instead of isnan.
43010         Reported by Jim Meyering.
43011
43012 2008-04-12  Bruno Haible  <bruno@clisp.org>
43013
43014         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
43015         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
43016
43017 2008-04-12  Jim Meyering  <meyering@redhat.com>
43018
43019         * m4/math_h.m4 (gl_MATH_H): Fix typos.
43020
43021 2008-04-12  Bruno Haible  <bruno@clisp.org>
43022
43023         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
43024         Reported by Elbert Pol <e.pol@chello.nl>.
43025
43026 2008-04-12  Eric Blake  <ebb9@byu.net>
43027
43028         Work around Solaris 10 math.h bug.
43029         * m4/math_h.m4 (gl_MATH_H): Check for bug.
43030         (gl_MATH_H_DEFAULTS): Set up default.
43031         * modules/math (Makefile.am): Replace new indicators.
43032         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
43033         * tests/test-math.c (main): Test this.
43034         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
43035         * doc/posix-headers/math.texi (math.h): Mention bug.
43036         Reported by Nelson H. F. Beebe and Jim Meyering.
43037
43038 2008-04-11  Bruno Haible  <bruno@clisp.org>
43039
43040         Adapt to future versions of Apple GCC.
43041         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
43042         Reported by Peter O'Gorman <peter@pogma.com>.
43043
43044 2008-04-11  Bruno Haible  <bruno@clisp.org>
43045
43046         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
43047
43048 2008-04-11  Bruno Haible  <bruno@clisp.org>
43049
43050         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
43051
43052         * modules/getaddrinfo-tests (Makefile.am): Define
43053         test_getaddrinfo_LDADD.
43054
43055 2008-04-11  Bruno Haible  <bruno@clisp.org>
43056
43057         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
43058         (init): Fix syntax error.
43059         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
43060         is declared.
43061
43062 2008-04-11  Bruno Haible  <bruno@clisp.org>
43063
43064         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
43065         * modules/glob (Depends-on): Add stdbool.
43066
43067 2008-04-11  Bruno Haible  <bruno@clisp.org>
43068
43069         * lib/trim.c: Include <string.h>.
43070
43071 2008-04-11  Eric Blake  <ebb9@byu.net>
43072
43073         Avoid compile failure on OS/2.
43074         * lib/regex_internal.h (internal_function): Disable optimization
43075         on OS/2 (__EMX__), where it caused compiler error.
43076         Reported by Elbert Pol.
43077
43078 2008-04-11  Bruno Haible  <bruno@clisp.org>
43079
43080         Flush the standard error stream before aborting. Needed on mingw.
43081         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
43082         * tests/test-array_list.c (ASSERT): Likewise.
43083         * tests/test-array_oset.c (ASSERT): Likewise.
43084         * tests/test-avltree_list.c (ASSERT): Likewise.
43085         * tests/test-avltree_oset.c (ASSERT): Likewise.
43086         * tests/test-avltreehash_list.c (ASSERT): Likewise.
43087         * tests/test-binary-io.c (ASSERT): Likewise.
43088         * tests/test-byteswap.c (ASSERT): Likewise.
43089         * tests/test-c-ctype.c (ASSERT): Likewise.
43090         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
43091         * tests/test-c-strcasestr.c (ASSERT): Likewise.
43092         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
43093         * tests/test-c-strstr.c (ASSERT): Likewise.
43094         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
43095         * tests/test-canonicalize.c (ASSERT): Likewise.
43096         * tests/test-carray_list.c (ASSERT): Likewise.
43097         * tests/test-ceilf1.c (ASSERT): Likewise.
43098         * tests/test-ceilf2.c (ASSERT): Likewise.
43099         * tests/test-ceill.c (ASSERT): Likewise.
43100         * tests/test-count-one-bits.c (ASSERT): Likewise.
43101         * tests/test-fbufmode.c (ASSERT): Likewise.
43102         * tests/test-fflush2.c (ASSERT): Likewise.
43103         * tests/test-floorf1.c (ASSERT): Likewise.
43104         * tests/test-floorf2.c (ASSERT): Likewise.
43105         * tests/test-floorl.c (ASSERT): Likewise.
43106         * tests/test-fopen.c (ASSERT): Likewise.
43107         * tests/test-fpending.c (ASSERT): Likewise.
43108         * tests/test-fprintf-posix.c (ASSERT): Likewise.
43109         * tests/test-fpurge.c (ASSERT): Likewise.
43110         * tests/test-freadable.c (ASSERT): Likewise.
43111         * tests/test-freadahead.c (ASSERT): Likewise.
43112         * tests/test-freading.c (ASSERT): Likewise.
43113         * tests/test-freadptr.c (ASSERT): Likewise.
43114         * tests/test-freadptr2.c (ASSERT): Likewise.
43115         * tests/test-freadseek.c (ASSERT): Likewise.
43116         * tests/test-freopen.c (ASSERT): Likewise.
43117         * tests/test-frexp.c (ASSERT): Likewise.
43118         * tests/test-frexpl.c (ASSERT): Likewise.
43119         * tests/test-fseek.c (ASSERT): Likewise.
43120         * tests/test-fseeko.c (ASSERT): Likewise.
43121         * tests/test-fstrcmp.c (ASSERT): Likewise.
43122         * tests/test-ftell.c (ASSERT): Likewise.
43123         * tests/test-ftello.c (ASSERT): Likewise.
43124         * tests/test-func.c (ASSERT): Likewise.
43125         * tests/test-fwritable.c (ASSERT): Likewise.
43126         * tests/test-fwriting.c (ASSERT): Likewise.
43127         * tests/test-getdelim.c (ASSERT): Likewise.
43128         * tests/test-getline.c (ASSERT): Likewise.
43129         * tests/test-i-ring.c (ASSERT): Likewise.
43130         * tests/test-iconv-utf.c (ASSERT): Likewise.
43131         * tests/test-iconv.c (ASSERT): Likewise.
43132         * tests/test-isfinite.c (ASSERT): Likewise.
43133         * tests/test-isnand.c (ASSERT): Likewise.
43134         * tests/test-isnanf.c (ASSERT): Likewise.
43135         * tests/test-isnanl.h (ASSERT): Likewise.
43136         * tests/test-ldexpl.c (ASSERT): Likewise.
43137         * tests/test-linked_list.c (ASSERT): Likewise.
43138         * tests/test-linkedhash_list.c (ASSERT): Likewise.
43139         * tests/test-localename.c (ASSERT): Likewise.
43140         * tests/test-lseek.c (ASSERT): Likewise.
43141         * tests/test-mbscasecmp.c (ASSERT): Likewise.
43142         * tests/test-mbscasestr1.c (ASSERT): Likewise.
43143         * tests/test-mbscasestr2.c (ASSERT): Likewise.
43144         * tests/test-mbscasestr3.c (ASSERT): Likewise.
43145         * tests/test-mbscasestr4.c (ASSERT): Likewise.
43146         * tests/test-mbschr.c (ASSERT): Likewise.
43147         * tests/test-mbscspn.c (ASSERT): Likewise.
43148         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
43149         * tests/test-mbspbrk.c (ASSERT): Likewise.
43150         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
43151         * tests/test-mbsrchr.c (ASSERT): Likewise.
43152         * tests/test-mbsspn.c (ASSERT): Likewise.
43153         * tests/test-mbsstr1.c (ASSERT): Likewise.
43154         * tests/test-mbsstr2.c (ASSERT): Likewise.
43155         * tests/test-mbsstr3.c (ASSERT): Likewise.
43156         * tests/test-memchr2.c (ASSERT): Likewise.
43157         * tests/test-memmem.c (ASSERT): Likewise.
43158         * tests/test-open.c (ASSERT): Likewise.
43159         * tests/test-printf-frexp.c (ASSERT): Likewise.
43160         * tests/test-printf-frexpl.c (ASSERT): Likewise.
43161         * tests/test-printf-posix.c (ASSERT): Likewise.
43162         * tests/test-quotearg.c (ASSERT): Likewise.
43163         * tests/test-rbtree_list.c (ASSERT): Likewise.
43164         * tests/test-rbtree_oset.c (ASSERT): Likewise.
43165         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
43166         * tests/test-round1.c (ASSERT): Likewise.
43167         * tests/test-roundf1.c (ASSERT): Likewise.
43168         * tests/test-roundl.c (ASSERT): Likewise.
43169         * tests/test-signbit.c (ASSERT): Likewise.
43170         * tests/test-sleep.c (ASSERT): Likewise.
43171         * tests/test-snprintf-posix.c (ASSERT): Likewise.
43172         * tests/test-snprintf.c (ASSERT): Likewise.
43173         * tests/test-sprintf-posix.c (ASSERT): Likewise.
43174         * tests/test-stat-time.c (ASSERT): Likewise.
43175         * tests/test-strcasestr.c (ASSERT): Likewise.
43176         * tests/test-strerror.c (ASSERT): Likewise.
43177         * tests/test-striconv.c (ASSERT): Likewise.
43178         * tests/test-striconveh.c (ASSERT): Likewise.
43179         * tests/test-striconveha.c (ASSERT): Likewise.
43180         * tests/test-strsignal.c (ASSERT): Likewise.
43181         * tests/test-strstr.c (ASSERT): Likewise.
43182         * tests/test-strtod.c (ASSERT): Likewise.
43183         * tests/test-trunc1.c (ASSERT): Likewise.
43184         * tests/test-trunc2.c (ASSERT): Likewise.
43185         * tests/test-truncf1.c (ASSERT): Likewise.
43186         * tests/test-truncf2.c (ASSERT): Likewise.
43187         * tests/test-truncl.c (ASSERT): Likewise.
43188         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
43189         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
43190         * tests/test-vasnprintf.c (ASSERT): Likewise.
43191         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
43192         * tests/test-vasprintf.c (ASSERT): Likewise.
43193         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
43194         * tests/test-vprintf-posix.c (ASSERT): Likewise.
43195         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
43196         * tests/test-vsnprintf.c (ASSERT): Likewise.
43197         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
43198         * tests/test-wcwidth.c (ASSERT): Likewise.
43199         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
43200         * tests/test-xprintf-posix.c (ASSERT): Likewise.
43201         * tests/test-xvasprintf.c (ASSERT): Likewise.
43202         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
43203         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
43204         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
43205         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
43206         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
43207         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
43208         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
43209         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
43210         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
43211         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
43212         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
43213         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
43214         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
43215         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
43216         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
43217         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
43218         * tests/unictype/test-block_list.c (ASSERT): Likewise.
43219         * tests/unictype/test-block_of.c (ASSERT): Likewise.
43220         * tests/unictype/test-block_test.c (ASSERT): Likewise.
43221         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
43222         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
43223         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
43224         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
43225         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
43226         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
43227         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
43228         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
43229         * tests/unictype/test-combining.c (ASSERT): Likewise.
43230         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
43231         * tests/unictype/test-digit.c (ASSERT): Likewise.
43232         * tests/unictype/test-mirror.c (ASSERT): Likewise.
43233         * tests/unictype/test-numeric.c (ASSERT): Likewise.
43234         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
43235         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
43236         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
43237         * tests/unictype/test-scripts.c (ASSERT): Likewise.
43238         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
43239         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
43240         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
43241         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
43242         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
43243         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
43244         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
43245         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
43246         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
43247         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
43248         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
43249         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
43250         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
43251         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
43252         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
43253         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
43254         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
43255         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
43256         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
43257         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
43258         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
43259         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
43260         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
43261         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
43262         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
43263         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
43264         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
43265         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
43266         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
43267         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
43268         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
43269         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
43270         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
43271         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
43272         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
43273         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
43274         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
43275         Reported by Eric Blake.
43276
43277 2008-04-11  Bruno Haible  <bruno@clisp.org>
43278
43279         * lib/wchar.in.h: Tweak comment.
43280
43281 2008-04-11  Bruno Haible  <bruno@clisp.org>
43282
43283         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
43284         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
43285         gl_COMMON.
43286         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
43287
43288 2008-04-11  Bruno Haible  <bruno@clisp.org>
43289
43290         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
43291
43292 2008-04-11  Simon Josefsson  <simon@josefsson.org>
43293
43294         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
43295         of attempting to use non-existing /dev/*random.  Based on patch
43296         from Adam Strzelecki <ono@java.pl> in
43297         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
43298
43299 2008-04-08  Bruno Haible  <bruno@clisp.org>
43300
43301         Add tentative support for emx+gcc.
43302         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
43303         * lib/fpurge.c (fpurge): Likewise.
43304         * lib/freadable.c (freadable): Likewise.
43305         * lib/freadahead.c (freadahead): Likewise.
43306         * lib/freading.c (freading): Likewise.
43307         * lib/freadptr.c (freadptr): Likewise.
43308         * lib/freadseek.c (freadptrinc): Likewise.
43309         * lib/fseeko.c (rpl_fseeko): Likewise.
43310         * lib/fseterr.c (fseterr): Likewise.
43311         * lib/fwritable.c (fwritable): Likewise.
43312         * lib/fwriting.c (fwriting): Likewise.
43313         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
43314
43315 2008-04-09  Eric Blake  <ebb9@byu.net>
43316
43317         Avoid some autoconf warnings.
43318         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
43319         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
43320         * m4/afs.m4 (gl_AFS): Likewise.
43321         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
43322         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
43323         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43324         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
43325         (gl_INTEGER_TYPE_SUFFIX): Likewise.
43326         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
43327         (AC_CHECK_DECLS_ONCE): Likewise.
43328         Rename file...
43329         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
43330         gnulib-tool requires autoconf 2.59 or better.
43331         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
43332
43333 2008-04-08  Eric Blake  <ebb9@byu.net>
43334
43335         Use 'git describe --match' if present (added in git 1.5.5).
43336         * build-aux/git-version-gen: Limit result to tags that match 'v*'
43337         if possible.
43338
43339 2008-04-08  Bruno Haible  <bruno@clisp.org>
43340
43341         Add tentative support for OpenServer.
43342         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
43343         _ptr, _cnt.
43344         * lib/fpurge.c (fpurge): Likewise.
43345         * lib/freadable.c (freadable): Likewise.
43346         * lib/freadahead.c (freadahead): Likewise.
43347         * lib/freading.c (freading): Likewise.
43348         * lib/freadptr.c (freadptr): Likewise.
43349         * lib/freadseek.c (freadptrinc): Likewise.
43350         * lib/fseeko.c (rpl_fseeko): Likewise.
43351         * lib/fseterr.c (fseterr): Likewise.
43352         * lib/fwritable.c (fwritable): Likewise.
43353         * lib/fwriting.c (fwriting): Likewise.
43354         Reported by Roger Cornelius <rac@tenzing.org> and
43355         Brian K. White <brian@aljex.com>.
43356
43357 2008-04-06  Jim Meyering  <meyering@redhat.com>
43358
43359         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
43360
43361 2008-04-06  Bruno Haible  <bruno@clisp.org>
43362
43363         Avoid possible error with non-ASCII bytes in UTF-8 locales.
43364         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
43365         * tests/test-printf-posix.sh: Likewise.
43366         * tests/test-vfprintf-posix.sh: Likewise.
43367         * tests/test-vprintf-posix.sh: Likewise.
43368         * tests/test-xprintf-posix.sh: Likewise.
43369
43370 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43371
43372         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
43373         hide error from 'ls', needed on OS/2.
43374         Report by Elbert Pol <elbert.pol@gmail.com>.
43375
43376 2008-04-04  Eric Blake  <ebb9@byu.net>
43377
43378         Make test-fseeko.c failures meaningful.
43379         * tests/test-fseeko.c: Print line number on failure.
43380         * tests/test-fseek.c: Likewise.
43381         Reported by Nelson H. F. Beebe.
43382
43383         Improve strtod bug detection check.
43384         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
43385         required for Solaris 10.
43386         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
43387
43388 2008-04-04  Bruno Haible  <bruno@clisp.org>
43389
43390         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
43391         by m4/setenv.m4.
43392
43393 2008-04-03  Eric Blake  <ebb9@byu.net>
43394
43395         Ensure sane .version contents.
43396         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
43397         version string.
43398         * build-aux/git-version-gen: Improve documentation.
43399
43400         Make GNU make output nicer.
43401         * top/GNUmakefile [!_have-Makefile]: Add dependency on
43402         MAKECMDGOALS to enforce message for all command line targets.  Set
43403         srcdir for use in maint.mk.
43404
43405         Another maintainer tweak.
43406         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
43407         a target that regenerates version.
43408
43409 2008-04-03  Jim Meyering  <meyering@redhat.com>
43410
43411         vc-list-files: don't cause coreutils "make po-check" failure
43412         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
43413
43414 2008-04-03  Eric Blake  <ebb9@byu.net>
43415
43416         Allow VPATH usage of vc-list-files.
43417         * build-aux/vc-list-files (scriptversion): Add timestamp.
43418         (options): Add --help, --version, -C.
43419         (CVS): Support installed cvsu.
43420
43421 2008-04-02  Bruno Haible  <bruno@clisp.org>
43422
43423         Avoid some "statement with no effect" warnings from gcc.
43424         * tests/test-wctype.c (main): Explicitly ignore unused values.
43425         Reported by Jim Meyering.
43426
43427 2008-04-02  Jim Meyering  <meyering@redhat.com>
43428
43429         Avoid some warnings from "gcc -Wshadow".
43430         * tests/test-frexp.c (exp): Define to a different identifier.
43431         * tests/test-frexpl.c (exp): Likewise.
43432
43433 2008-04-03  Jim Meyering  <meyering@redhat.com>
43434
43435         bootstrap: remove dangling *.[ch] symlinks from lib
43436         * build-aux/bootstrap [dangling symlink removal]: Move find's
43437         -depth option to precede all others, to avoid a warning.
43438         Remove *.[ch] files too, and from "$source_base" (usually lib/).
43439
43440 2008-04-02  Bruno Haible  <bruno@clisp.org>
43441
43442         Avoid some warnings from "gcc -Wshadow".
43443         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
43444         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
43445         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
43446         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
43447         Reported by Jim Meyering.
43448
43449 2008-04-01  Bruno Haible  <bruno@clisp.org>
43450
43451         Fix test to work on IRIX 6.5 with cc.
43452         * tests/test-math.c (numeric_equal): New function.
43453         (main): Use it.
43454
43455 2008-04-01  Bruno Haible  <bruno@clisp.org>
43456
43457         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
43458
43459 2008-04-01  Bruno Haible  <bruno@clisp.org>
43460
43461         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
43462         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
43463         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
43464         (Depends-on): Remove math.
43465
43466         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
43467         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
43468         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
43469         (Depends-on): Remove math.
43470
43471         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
43472         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
43473         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
43474         (Depends-on): Remove math.
43475         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
43476         (Depends-on): Remove math.
43477
43478         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
43479         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
43480         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
43481         (Depends-on): Remove math.
43482         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
43483         (Depends-on): Remove math.
43484
43485         * tests/test-round1.c: Include nan.h.
43486         (main): Use NaNd instead of NAN.
43487         * modules/round-tests (Files): Add tests/nan.h.
43488
43489         * tests/test-trunc1.c: Include nan.h.
43490         (main): Use NaNd instead of NAN.
43491         * modules/trunc-tests (Files): Add tests/nan.h.
43492
43493         * tests/test-roundf1.c: Include nan.h.
43494         (main): Use NaNf instead of NAN.
43495         * modules/roundf-tests (Files): Add tests/nan.h.
43496
43497         * tests/test-truncf1.c: Include nan.h.
43498         (main): Use NaNf instead of NAN.
43499         * modules/truncf-tests (Files): Add tests/nan.h.
43500
43501         * tests/test-ceilf1.c: Include nan.h.
43502         (main): Use NaNf instead of NAN.
43503         * modules/ceilf-tests (Files): Add tests/nan.h.
43504
43505         * tests/test-floorf1.c: Include nan.h.
43506         (main): Use NaNf instead of NAN.
43507         * modules/floorf-tests (Files): Add tests/nan.h.
43508
43509         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
43510         (main): Use NaNf instead of NAN.
43511         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
43512
43513         * tests/test-isnand.c: Include nan.h instead of <math.h>.
43514         (main): Use NaNd instead of NAN.
43515         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
43516
43517         * tests/test-frexp.c: Include nan.h.
43518         (main): Use NaNd instead of NAN.
43519         * modules/frexp-tests (Files): Add tests/nan.h.
43520
43521         * lib/isnan.c: Don't include <math.h>.
43522         (FUNC): Don't use NAN macro.
43523         * modules/isnand-nolibm (Depends-on): Remove math.
43524         * modules/isnanf-nolibm (Depends-on): Remove math.
43525         * modules/isnanl (Depends-on): Remove math.
43526         * modules/isnanl-nolibm (Depends-on): Remove math.
43527
43528         * tests/nan.h: New file.
43529
43530 2008-04-01  Eric Blake  <ebb9@byu.net>
43531
43532         Fix typos.
43533         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
43534         values to be the right type.
43535
43536         For now, cater to gnulib strtod inaccuracies.
43537         * tests/test-strtod.c (main): Allow 1-ulp error on expected
43538         fractional results.  While not as nice from a QoI perspective, it
43539         is a quicker patch than correctly implementing decimal to binary
43540         rounding.
43541
43542 2008-03-31  Eric Blake  <ebb9@byu.net>
43543
43544         Guarantee a definition of NAN.
43545         * lib/math.in.h (NAN): Define if missing.
43546         * tests/test-math.c (main): Test it.
43547         * doc/posix-headers/math.texi (math.h): Document this.
43548         * lib/isnan.c (rpl_isnand): Use it.
43549         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
43550         * tests/test-floorf1.c (NaN): Likewise.
43551         * tests/test-frexp.c (NaN): Likewise.
43552         * tests/test-isnand.c (NaN): Likewise.
43553         * tests/test-isnanf.c (NaN): Likewise.
43554         * tests/test-round1.c (NaN): Likewise.
43555         * tests/test-roundf1.c (NaN): Likewise.
43556         * tests/test-snprintf-posix.h (NaN): Likewise.
43557         * tests/test-sprintf-posix.h (NaN): Likewise.
43558         * tests/test-trunc1.c (NaN): Likewise.
43559         * tests/test-truncf1.c (NaN): Likewise.
43560         * tests/test-vasnprintf-posix.c (NaN): Likewise.
43561         * tests/test-vasprintf-posix.c (NaN): Likewise.
43562         * modules/isnand-nolibm (Depends-on): Add math.
43563         * modules/isnanf-nolibm (Depends-on): Likewise.
43564         * modules/isnanl (Depends-on): Likewise.
43565         * modules/isnanl-nolibm (Depends-on): Likewise.
43566         * modules/snprintf-posix-tests (Depends-on): Likewise.
43567         * modules/sprintf-posix-tests (Depends-on): Likewise.
43568         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
43569         * modules/vsprintf-posix-tests (Depends-on): Likewise.
43570         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
43571         * modules/vasprintf-posix-tests (Depends-on): Likewise.
43572
43573 2008-03-31  Bruno Haible  <bruno@clisp.org>
43574
43575         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
43576         * doc/posix-functions/strtod.texi: Likewise.
43577
43578 2008-03-31  Bruno Haible  <bruno@clisp.org>
43579
43580         * tests/test-strtod.c (main): Don't use C99 syntax.
43581
43582 2008-03-31  Bruno Haible  <bruno@clisp.org>
43583
43584         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
43585         Reported by Eric Blake.
43586
43587 2008-03-31  Jim Meyering  <meyering@redhat.com>
43588
43589         Don't compare actual signbit return values.
43590         * tests/test-strtod.c (main): Rather, compare only their
43591         zero/non-zero nature.
43592
43593 2008-03-31  Eric Blake  <ebb9@byu.net>
43594
43595         More strtod documentation.
43596         * doc/posix-functions/strtod.texi (strtod): Interpret more test
43597         failures as distinct bugs.
43598
43599 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
43600
43601         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
43602         Problem reported by Erik Benada in
43603         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
43604
43605 2008-03-30  Bruno Haible  <bruno@clisp.org>
43606
43607         * tests/test-strtod.c: Add comments about which assertion fails on which
43608         platform.
43609         * doc/posix-functions/strtod.texi: Add info about many more platforms.
43610
43611 2008-03-30  Eric Blake  <ebb9@byu.net>
43612
43613         Test signbit behavior on zeros.
43614         * tests/test-signbit.c (test_signbitf): Add tests for zero.
43615         (test_signbitd, test_signbitl): Likewise.
43616
43617         More strtod touchups.
43618         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
43619         sign of negative underflow, for now.  Use .5, not .1.
43620         * doc/posix-functions/strtod.texi (strtod): Mention these
43621         limitations.
43622         Reported by Jim Meyering.
43623
43624 2008-03-30  Bruno Haible  <bruno@clisp.org>
43625
43626         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
43627         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
43628
43629 2008-03-30  Bruno Haible  <bruno@clisp.org>
43630
43631         Avoid failure when attempting to return empty iconv results on some
43632         platforms.
43633         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
43634         allocation, don't report ENOMEM when the resulting string is empty.
43635
43636 2008-03-30  Bruno Haible  <bruno@clisp.org>
43637
43638         Fix buffer overrun.
43639         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
43640         Don't consider the width for tmp_length. Check count against tmp_length
43641         before doing the padding. Ensure enough allocation during padding.
43642
43643 2008-03-30  Eric Blake  <ebb9@byu.net>
43644
43645         strtod touchups.
43646         * lib/strtod.c (strtod): Avoid compiler warnings.
43647         Reported by Jim Meyering.
43648
43649 2008-03-30  Bruno Haible  <bruno@clisp.org>
43650
43651         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
43652         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
43653         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
43654         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
43655         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
43656         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
43657         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
43658         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
43659
43660         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
43661         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
43662         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
43663         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
43664         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
43665         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
43666         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
43667         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
43668
43669         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
43670         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
43671         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
43672         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
43673         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
43674         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
43675         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
43676         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
43677
43678         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
43679         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
43680
43681         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
43682         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
43683
43684         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
43685         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
43686
43687         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
43688         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
43689         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
43690
43691         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
43692         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
43693         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
43694
43695         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
43696         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
43697         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
43698
43699         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
43700         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
43701         * modules/vasprintf (Depends-on): Add EOVERFLOW.
43702
43703         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
43704         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
43705         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
43706         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
43707         (Depends-on): Add EOVERFLOW.
43708         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
43709         (Depends-on): Add EOVERFLOW.
43710         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
43711         (Depends-on): Add EOVERFLOW.
43712         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
43713         (Depends-on): Add EOVERFLOW.
43714         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
43715         (Depends-on): Add EOVERFLOW.
43716         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
43717         (Depends-on): Add EOVERFLOW.
43718         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
43719         (Depends-on): Add EOVERFLOW.
43720         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
43721         (Depends-on): Add EOVERFLOW.
43722
43723         * lib/sprintf.c (EOVERFLOW): Remove fallback.
43724         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
43725         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
43726
43727         * lib/snprintf.c (EOVERFLOW): Remove fallback.
43728         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
43729         * modules/snprintf (Depends-on): Add EOVERFLOW.
43730
43731         * lib/poll.c (EOVERFLOW): Remove fallback.
43732         * modules/poll (Depends-on): Add EOVERFLOW.
43733
43734         * lib/getugroups.c (EOVERFLOW): Remove fallback.
43735         * modules/getugroups (Depends-on): Add EOVERFLOW.
43736
43737         * lib/getdelim.c (EOVERFLOW): Remove fallback.
43738         * modules/getdelim (Depends-on): Add EOVERFLOW.
43739
43740         * lib/ftell.c (EOVERFLOW): Remove fallback.
43741         * modules/ftell (Depends-on): Add EOVERFLOW.
43742
43743         * lib/fprintf.c (EOVERFLOW): Remove fallback.
43744         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
43745         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
43746
43747         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
43748
43749         * modules/EOVERFLOW-tests: New file.
43750         * tests/test-EOVERFLOW.c: New file.
43751
43752         * modules/EOVERFLOW: New file.
43753         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
43754
43755 2008-03-30  Bruno Haible  <bruno@clisp.org>
43756
43757         Fix bug introduced on 2007-06-10.
43758         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
43759         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
43760
43761 2008-03-30  Bruno Haible  <bruno@clisp.org>
43762
43763         Improve freadseek's efficiency after ungetc.
43764         * lib/freadseek.c: Include freadahead.h.
43765         (freadptrinc): New function, extracted from freadseek.
43766         (freadseek): Use it in a loop. Use freadahead to determine the number
43767         of loop iterations.
43768         * modules/freadseek (Depends-on): Add freadahead.
43769         (configure.ac): Require AC_C_INLINE.
43770
43771 2008-03-30  Bruno Haible  <bruno@clisp.org>
43772
43773         * lib/freadseek.c (freadseek): Don't ignore the return value of
43774         freadptr.
43775
43776 2008-03-29  Eric Blake  <ebb9@byu.net>
43777
43778         Add hex float support.
43779         * modules/strtod (Depends-on): Add c-ctype.
43780         (Link): Mention POW_LIB.
43781         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
43782         whitespace between 'e' and exponent.
43783         * tests/test-strtod.c (main): Enable hex float tests.
43784         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
43785         now provides.
43786
43787         Document various strtod bugs, with some fixes.
43788         * doc/posix-functions/strtod.texi (strtod): Document bugs with
43789         "-0x", "inf", "nan", and hex constants.
43790         * doc/posix-functions/atof.texi (atof): Likewise.
43791         * modules/stdlib (Makefile.am): Support strtod.
43792         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
43793         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
43794         detect additional strtod bugs.
43795         * lib/stdlib.in.h (rpl_strtod): Add declarations.
43796         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
43797         bool where appropriate.  Parse 'inf' and 'nan'.
43798         * tests/test-strtod.c: New file.
43799         * modules/strtod (Depends-on): Add stdbool, stdlib.
43800         (configure.ac): Turn on module indicator.
43801         * modules/strtod-tests: New module.
43802
43803 2008-03-29  Eric Blake  <ebb9@byu.net>
43804
43805         Fix ftell on mingw.
43806         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
43807         * modules/ftell-tests (Depends-on): Add binary-io.
43808         * modules/ftello-tests (Depends-on): Likewise.
43809         * tests/test-ftell.c (main): Enhance test to cover behavior after
43810         ungetc.  Enforce binary mode.
43811         * tests/test-ftello.c (main): Likewise.
43812
43813         Pass test-freadseek on cygwin.
43814         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
43815         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
43816         ungetc buffer.
43817
43818         * tests/test-fflush2.c (main): Fix typo.
43819
43820 2008-03-29  Bruno Haible  <bruno@clisp.org>
43821
43822         * tests/test-fflush2.c (main): Temporarily disable the contents of
43823         this test.
43824         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
43825         Reported by Eric Blake.
43826
43827 2008-03-28  Simon Josefsson  <simon@josefsson.org>
43828
43829         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
43830         (GC_SHA224_DIGEST_SIZE): Add.
43831
43832         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
43833         (gc_hash_digest_length): Likewise.
43834         (gc_hash_buffer): Likewise.
43835
43836 2008-03-25  Bruno Haible  <bruno@clisp.org>
43837
43838         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
43839         detail which gettext release to use.
43840         Reported by Simon Josefsson.
43841
43842 2008-03-26  Jim Meyering  <meyering@redhat.com>
43843
43844         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
43845         * modules/gnumakefile (clean-GNUmakefile): Also, use
43846         test ... && ... || : syntax rather than if-then ... fi.
43847
43848         gnumakefile: Don't double-quote-expand $(VPATH) value.
43849         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
43850
43851 2008-03-24  Eric Blake  <ebb9@byu.net>
43852
43853         Alter GNUmakefile to install into top directory.
43854         * modules/maintainer-makefile: Split, and add dependency...
43855         * modules/gnumakefile: to this new module.
43856         * build-aux/GNUmakefile: Move...
43857         * top/GNUmakefile: ...here.
43858         * build-aux/maint.mk: Move...
43859         * top/maint.mk: ...here.
43860         * MODULES.html.sh (Support for maintaining...): Document new
43861         module.
43862
43863 2008-03-23  Bruno Haible  <bruno@clisp.org>
43864
43865         * gnulib-tool: New options --vc-files, --no-vc-files.
43866         (func_usage): Document them.
43867         (vc_files): New variable.
43868         (func_import): Consider vc_files.
43869         (func_create_testdir): Set vc_files to empty.
43870         Suggested by Jim Meyering and Karl Berry.
43871
43872 2008-03-23  Bruno Haible  <bruno@clisp.org>
43873
43874         Fix regex compilation error on HP-UX 11.
43875         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
43876         * modules/regex (Files): Add m4/mbstate_t.m4.
43877         Reported by Ton Voon <ton.voon@altinity.com>.
43878
43879 2008-03-23  Bruno Haible  <bruno@clisp.org>
43880
43881         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
43882
43883 2008-03-23  Eric Blake  <ebb9@byu.net>
43884             Bruno Haible  <bruno@clisp.org>
43885
43886         Install files from top/ in the destination directory.
43887         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
43888         augmentation also for the files from top/.
43889         (func_import, func_create_testdir): Rewrite file names:
43890         top/filename -> filename.
43891
43892 2008-03-23  Bruno Haible  <bruno@clisp.org>
43893
43894         Tweak "gnulib --version" output.
43895         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
43896
43897 2008-03-23  Bruno Haible  <bruno@clisp.org>
43898
43899         Tweak "gnulib --version" output.
43900         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
43901         rather than contents of ChangeLog, when possible.
43902
43903 2008-03-21  Eric Blake  <ebb9@byu.net>
43904
43905         More --version tweaks.
43906         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
43907         date of last ChangeLog entry.
43908
43909 2008-03-21  Jim Meyering  <meyering@redhat.com>
43910
43911         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
43912
43913 2008-03-20  Eric Blake  <ebb9@byu.net>
43914
43915         VPATH fix.
43916         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
43917
43918 2008-03-20  Simon Josefsson  <simon@josefsson.org>
43919
43920         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
43921         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
43922
43923 2008-03-20  Eric Blake  <ebb9@byu.net>
43924
43925         Sync GNUmakefile with coreutils.
43926         * build-aux/GNUmakefile (have-Makefile): Rename...
43927         (_have-Makefile): ...to this, for namespace consideration.
43928         (GNUmakefile.cfg): Include, if present.
43929         (_autoreconf): Define a default.
43930         (_is-dist-target): New rule for rebuilds to pick up intra-release
43931         version.
43932         (maint-cfg.mk): Rename...
43933         (cfg.mk): ...to this.
43934
43935 2008-03-18  Jim Meyering  <meyering@redhat.com>
43936
43937         New script and module: mktempd
43938         * MODULES.html.sh (maint+release support): Add mktempd.
43939         * build-aux/mktempd: New file.
43940         * modules/mktempd: New file.
43941
43942 2008-03-15  Jim Meyering  <meyering@redhat.com>
43943
43944         Undo last change.
43945         * lib/sha1.c, lib/md5.c: 63 != ~63.
43946         Reported by Andreas Schwab.
43947
43948         sha1.c, md5.c: Hoist a redundant expression.
43949         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
43950         "ctx->buflen" only once, before calling *_process_block.
43951         * lib/md5.c (md5_process_bytes): Likewise.
43952
43953 2008-03-14  Eric Blake  <ebb9@byu.net>
43954
43955         Bump copyright year in files generated by gnulib-tool.
43956         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
43957         gnulib-tool, rather than hard-coding it.
43958
43959         Fix 'gnulib-tool --version' output to work with git.
43960         * gnulib-tool (func_gnulib_dir): New function, extracted from...
43961         (startup): ...here.
43962         (func_version): Use it to invoke git-version-gen, rather than
43963         relying on CVS keyword expansion.  Modernize wording.
43964         (cvsdatestamp, last_checkin_date, version): Kill unused
43965         variables.
43966
43967 2008-03-12  Jim Meyering  <meyering@redhat.com>
43968
43969         Recognize optional cast of the argument to free.
43970         * build-aux/useless-if-before-free: Update regexps.
43971
43972         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
43973
43974 2008-03-11  Bruno Haible  <bruno@clisp.org>
43975
43976         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
43977         by a single package.
43978         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
43979         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
43980         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
43981         Reported by Sam Steingold <sds@gnu.org>.
43982
43983 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43984
43985         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
43986         repositories.
43987
43988 2008-03-11  Bruno Haible  <bruno@clisp.org>
43989
43990         Avoid conflicts between local macro definitions.
43991         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
43992         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
43993
43994 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
43995             Bruno Haible  <bruno@clisp.org>
43996
43997         Make va_copy work with some version of xlc on AIX 5.1.
43998         * lib/stdarg.in.h: New file.
43999         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
44000         On AIX, use a <stdarg.h> file substitute.
44001         * modules/stdarg (Files): Add lib/stdarg.in.h.
44002         (Depends-on): Add include_next.
44003         (Makefile.am): Build a stdarg.h substitute if requested.
44004         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
44005
44006 2008-03-10  Bruno Haible  <bruno@clisp.org>
44007
44008         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
44009         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44010         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
44011
44012 2008-03-10  Bruno Haible  <bruno@clisp.org>
44013
44014         * modules/stdlib (Depends-on): Add include_next, remove
44015         absolute-header.
44016
44017 2008-03-09  Bruno Haible  <bruno@clisp.org>
44018
44019         * lib/freadahead.h (freadahead): Document more precisely.
44020         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
44021         the sum of both buffer sizes.
44022         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
44023         * NEWS: Document the change.
44024
44025 2008-03-09  Bruno Haible  <bruno@clisp.org>
44026
44027         Extend freadptr to return also the buffer size.
44028         * lib/freadptr.h (freadptr): Add sizep argument.
44029         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
44030         (freadptr): Add sizep argument. Determine buffer size like freadahead
44031         does.
44032         * tests/test-freadptr.c: Don't include freadahead.h.
44033         (main): Adapt for new calling convention of freadptr.
44034         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
44035         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
44036         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
44037         tests/test-freadptr2.sh.
44038         (Depends): Remove freadahead.
44039         (TESTS): Add test-freadptr2.sh.
44040         (check_PROGRAMS): Add test-freadptr2.
44041
44042 2008-03-09  Bruno Haible  <bruno@clisp.org>
44043
44044         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
44045         Report and solution by Simon Josefsson.
44046
44047 2008-03-06  Bruno Haible  <bruno@clisp.org>
44048
44049         Make fflush after ungetc work on BSD platforms.
44050         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
44051         * tests/test-fflush2.c: New file.
44052         * tests/test-fflush2.sh: New file.
44053         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
44054         tests/test-fflush2.c.
44055         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
44056         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
44057
44058 2008-03-06  Eric Blake  <ebb9@byu.net>
44059
44060         Likewise for ftello.
44061         * modules/ftello (Dependencies): Add extensions.
44062         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
44063
44064 2008-03-06  Bruno Haible  <bruno@clisp.org>
44065
44066         * modules/fseeko (Dependencies): Add extensions.
44067         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
44068         Needed on glibc systems.
44069
44070 2008-03-06  Bruno Haible  <bruno@clisp.org>
44071
44072         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
44073         email address.
44074         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
44075
44076 2008-03-06  Bruno Haible  <bruno@clisp.org>
44077
44078         * users.txt: Add libgnupdf.
44079
44080 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
44081
44082         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
44083         (Header File Substitutes, Function Substitutes,
44084         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
44085         (Build robot for gnulib): Fix typo.
44086
44087 2008-03-06  Bruno Haible  <bruno@clisp.org>
44088
44089         * doc/gnulib-tool.texi (VCS Issues): Small updates.
44090         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
44091
44092 2008-03-06  Bruno Haible  <bruno@clisp.org>
44093
44094         * doc/func.texi: New file, extracted from doc/gnulib.texi.
44095         * doc/gnulib.texi: Include it.
44096
44097 2008-03-06  Simon Josefsson  <simon@josefsson.org>
44098
44099         * modules/func (License): Change license to unlimited; there was
44100         no LGPL parts in the module anyway.
44101
44102 2008-03-06  Simon Josefsson  <simon@josefsson.org>
44103
44104         * modules/__func__: Renamed to modules/func.
44105         * modules/__func__-tests: Renamed to modules/func-tests.
44106         * tests/test-__func__.c: Renamed to tests/test-func.c.
44107         * m4/__func__.m4: Renamed to m4/func.m4.
44108         * doc/gnulib.texi (__func__): Section renamed to func.
44109         Suggested by Eric Blake <ebb9@byu.net>.
44110
44111 2008-03-06  Simon Josefsson  <simon@josefsson.org>
44112
44113         * doc/gnulib.texi (__func__): Use C99 terminology when talking
44114         about __func__.  Make example self-contained.  Suggested by Eric
44115         Blake <ebb9@byu.net>.
44116
44117         * tests/test-__func__.c (main): Avoid extraneous () around __func.
44118         Suggested by Eric Blake <ebb9@byu.net>.
44119
44120 2008-03-06  Simon Josefsson  <simon@josefsson.org>
44121
44122         * modules/__func__: New file.
44123         * modules/__func__-tests: New file.
44124         * tests/test-__func__.c: New file.
44125         * m4/__func__.m4: New file.
44126         * doc/gnulib.texi (__func__): Document __func__ module.
44127
44128 2008-03-05  Simon Josefsson  <simon@josefsson.org>
44129
44130         * modules/byteswap (License): Re-license as LGPLv2+.
44131
44132 2008-03-05  Simon Josefsson  <simon@josefsson.org>
44133
44134         * doc/Makefile: Add pdf target.
44135
44136 2008-03-05  Simon Josefsson  <simon@josefsson.org>
44137
44138         * modules/inline (License): Use 'unlimited', since there are only
44139         *.m4 files in this module.
44140
44141 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
44142             Bruno Haible  <bruno@clisp.org>
44143
44144         Add support for HP C 7.1 on OpenVMS 8.3.
44145         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
44146
44147 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
44148
44149         Update VMS specifics.
44150         * lib/getopt.c [VMS]: Remove include of unixlib.h.
44151
44152 2008-03-02  Jim Meyering  <meyering@redhat.com>
44153
44154         Remove the last dependency on the "free" module.
44155         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
44156         Reported by Bob Proulx.
44157
44158         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
44159
44160         Remove useless "if" tests before free.  Deprecate "free" module.
44161         * doc/posix-functions/free.texi: Mention that this
44162         module is no longer useful.
44163         * modules/free (Notice): Say this module is obsolete.
44164         * modules/readutmp (Depends-on): Remove free.
44165         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
44166         * lib/putenv.c (putenv): Likewise.
44167         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
44168         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
44169         * tests/test-c-strcasestr.c (main): Likewise.
44170         * tests/test-c-strstr.c (main): Likewise.
44171         * tests/test-mbscasestr1.c (main): Likewise.
44172         * tests/test-mbscasestr2.c (main): Likewise.
44173         * tests/test-mbsstr1.c (main): Likewise.
44174         * tests/test-mbsstr2.c (main): Likewise.
44175         * tests/test-memmem.c (main): Likewise.
44176         * tests/test-strcasestr.c (main): Likewise.
44177         * tests/test-striconv.c (main): Likewise.
44178         * tests/test-striconveh.c (main): Likewise.
44179         * tests/test-striconveha.c (main): Likewise.
44180         * tests/test-strstr.c (main): Likewise.
44181
44182         * build-aux/git-version-gen: Adjust a comment and the Usage string.
44183
44184         bootstrap: sync from coreutils again
44185         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
44186
44187 2008-03-01  Jim Meyering  <meyering@redhat.com>
44188
44189         bootstrap: sync from coreutils
44190         * build-aux/bootstrap (update_po_files): Copy a .po file into place
44191         also when the target doesn't exist.
44192
44193 2008-03-01  Eric Blake  <ebb9@byu.net>
44194
44195         Fix bugs in last patch.
44196         * lib/memchr2.c (memchr2): Fix typo.
44197         * tests/test-memchr2.c: Test previous bug, and don't use GNU
44198         extension.
44199         Reported by Bruce Korb.
44200
44201         New module 'memchr2'.
44202         * modules/memchr2: New file.
44203         * modules/memchr2-tests: Likewise.
44204         * lib/memchr2.h: Likewise.
44205         * lib/memchr2.c: Likewise, based on memchr.c.
44206         * tests/test-memchr2.c: New test.
44207         * MODULES.html.sh (String handling): Add memchr2.
44208
44209 2008-02-29  Bruno Haible  <bruno@clisp.org>
44210
44211         * modules/freadseek-tests: New file.
44212         * tests/test-freadseek.sh: New file.
44213         * tests/test-freadseek.c: New file.
44214
44215         New module 'freadseek'.
44216         * modules/freadseek: New file.
44217         * lib/freadseek.h: New file.
44218         * lib/freadseek.c: New file.
44219         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
44220
44221 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
44222
44223         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
44224         wydawca.
44225
44226         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
44227         program_invocation_name and program_invocation_short_name are
44228         present.
44229
44230 2008-02-28  Bruno Haible  <bruno@clisp.org>
44231
44232         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
44233         * tests/test-freadptr.sh: Also test non-seekable stdin.
44234
44235 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
44236
44237         * build-aux/bootstrap (source_base, m4_base)
44238         (doc_base, tests_base): New variables.
44239         (gnulib_tool_options): Do not hardcode base directories, use
44240         the above variables instead.
44241
44242 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
44243
44244         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
44245
44246 2008-02-28  Bruno Haible  <bruno@clisp.org>
44247
44248         * modules/freadptr-tests: New file.
44249         * tests/test-freadptr.sh: New file.
44250         * tests/test-freadptr.c: New file.
44251
44252         New module 'freadptr'.
44253         * modules/freadptr: New file.
44254         * lib/freadptr.h: New file.
44255         * lib/freadptr.c: New file.
44256         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
44257
44258 2008-02-26  Karl Berry  <karl@freefriends.org>
44259
44260         Sync from Libtool:
44261         * libltdl/argz.c (argz_add, argz_count): New functions.
44262         * libltdl/argz.in.h: Declare them.
44263         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
44264
44265 2008-02-22  Bruno Haible  <bruno@clisp.org>
44266
44267         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
44268         is a pointer type.  Needed for HP-UX 10.
44269         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
44270         * doc/posix-functions/gmtime_r.texi: Likewise.
44271         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
44272
44273 2008-02-24  Bruno Haible  <bruno@clisp.org>
44274
44275         * modules/environ-tests: New file.
44276         * tests/test-environ.c: New file.
44277
44278         New module 'environ'.
44279         * modules/environ: New file.
44280         * lib/unistd.in.h (environ): New declaration.
44281         * m4/environ.m4: New file.
44282         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
44283         after use.
44284         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
44285         HAVE_DECL_ENVIRON.
44286         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
44287         HAVE_DECL_ENVIRON.
44288         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
44289         wrong claim that 'environ' is missing on some systems.
44290         * modules/execute (Depends-on): Add environ.
44291         * lib/execute.c (environ): Remove fallback declaration.
44292         * modules/pipe (Depends-on): Add environ.
44293         * lib/pipe.c (environ): Remove fallback declaration.
44294         * modules/setenv (Depends-on): Add environ.
44295         * lib/setenv.c (environ): Remove fallback declaration.
44296         * modules/unsetenv (Depends-on): Add environ.
44297         * lib/unsetenv.c (environ): Remove fallback declaration.
44298         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
44299         m4/environ.m4.
44300         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
44301         (gl_PREREQ_UNSETENV): Likewise.
44302
44303 2008-02-24  Bruno Haible  <bruno@clisp.org>
44304
44305         * doc/posix-functions/environ.texi: Document the MacOS X problem.
44306
44307 2008-02-20  Bob Proulx  <bob@proulx.com>
44308
44309         Enable use of older two part flavor 'git describe'.
44310         * build-aux/git-version-gen: If using the older two part flavor of
44311         git version then recreate the third part now present in the
44312         newer three part flavor of git describe.
44313
44314 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
44315
44316         * lib/fts.c (fts_build): Typo correction to comment.
44317
44318 2008-02-17  Bruno Haible  <bruno@clisp.org>
44319
44320         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
44321         generating no-op conflicts.
44322
44323 2008-02-17  Bruno Haible  <bruno@clisp.org>
44324
44325         Speed up by 10%.
44326         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
44327         result_entries, rather than an index-based loop.
44328
44329 2008-02-17  Bruno Haible  <bruno@clisp.org>
44330
44331         Speed up by 25%.
44332         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
44333         'hashcode_cached'.
44334         (entry_create): New function.
44335         (entry_hashcode): Use the cached hashcode if possible.
44336         (read_changelog_file, try_split_merged_entry): Use entry_create.
44337
44338 2008-02-17  Bruno Haible  <bruno@clisp.org>
44339
44340         Speed up from O(n^2) to O(n) for long ChangeLog files.
44341         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
44342         (read_changelog_file): Change implementation of entries_reversed list
44343         to rbtreehash.
44344         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
44345
44346 2008-02-17  Bruno Haible  <bruno@clisp.org>
44347
44348         New option --split-merged-entry.
44349         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
44350         (find_paragraph_end, try_split_merged_entry): New functions.
44351         (long_options): Add option --split-merged-entry.
44352         (usage): Document option --split-merged-entry.
44353         (main): Implement option --split-merged-entry.
44354         Reported by Eric Blake.
44355
44356 2008-02-17  Bruno Haible  <bruno@clisp.org>
44357
44358         * lib/git-merge-changelog.c: Include c-strstr.h.
44359         (main): Support the "git pull --rebase" situation.
44360         * modules/git-merge-changelog (Depends-on): Add c-strstr.
44361         Reported by Eric Blake.
44362
44363 2008-02-16  Eric Blake  <ebb9@byu.net>
44364
44365         Avoid doubling \ in common case of "c-maybe" quoting style.
44366         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
44367         eliding outer quotes.
44368         * lib/quotearg.h: Document this.
44369         * tests/test-quotearg.c (result_strings, inputs, results_g)
44370         (flag_results, locale_results): Test it by adding a new string to
44371         each test group.
44372         (compare_strings): Test new string.
44373
44374 2008-02-13  Eric Blake  <ebb9@byu.net>
44375
44376         Avoid trigraph quoting in default output.
44377         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
44378         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
44379         unless explicitly requested.
44380         * tests/test-quotearg.c (flag_results, main): Add additional tests.
44381
44382 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
44383
44384         Don't rely on signed integer overflowing to negative value.
44385         * lib/getugroups.c (getugroups): Include <limits.h>.
44386         Instead, compare against INT_MAX, and increment only if the test passes.
44387
44388 2008-02-13  Jim Meyering  <meyering@redhat.com>
44389         and Eric Blake  <ebb9@byu.net>
44390
44391         Avoid shadowing warning and compile errors on Linux.
44392         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
44393         forwarding macros on Linux.
44394         (dcgettext): Define a stub, for Linux.
44395         (results_g, main): Avoid warnings.
44396
44397 2008-02-12  Eric Blake  <ebb9@byu.net>
44398
44399         Silence warning in last patch.
44400         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
44401
44402         Quotearg part 4: add tests, fix c-maybe colon quoting.
44403         * lib/quotearg.h: Improve documentation.
44404         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
44405         escapes when adding outer quotes.  When quoting trigraphs, use
44406         valid C notation.  When quoting NUL, omit extra characters if next
44407         character is not digit.  Alter prototype.
44408         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
44409         callers.
44410         * modules/quotearg-tests: New module.
44411         * tests/test-quotearg.c: New test.
44412
44413 2008-02-07  Eric Blake  <ebb9@byu.net>
44414
44415         Quotearg part 3: add flag to control outer quote elision.
44416         * lib/quotearg.h (c_maybe_quoting_style): New style.
44417         (enum quoting_flags): Better documentation of flags.
44418         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
44419         c-maybe style.
44420         (quotearg_buffer_restyled): Handle new flag to elide outer
44421         quotes.
44422
44423         Quotearg part 2: add flag that can control NUL elision.
44424         * lib/quotearg.h (set_quoting_flags): New prototype.
44425         * lib/quotearg.c (struct quoting_options): Add flag field.
44426         (set_quoting_flags): New function.
44427         (quotearg_buffer_restyled): Add flags parameter.
44428         (quotearg_alloc_mem): Set the flag if length cannot be returned.
44429         (quotearg_n_options): Set the flag, since length cannot be
44430         returned.
44431         (quoting_options_from_style): Default flags correctly.
44432
44433         Quotearg part 1: more wrappers, restore quotearg_char state.
44434         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
44435         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
44436         (quotearg_colon_mem): New wrappers.
44437         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
44438         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
44439         functions.
44440         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
44441         (quotearg_colon_mem): New functions.
44442
44443 2008-02-11  Bruno Haible  <bruno@clisp.org>
44444
44445         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
44446         library in the current directory: it does not work with parallel make.
44447         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44448
44449 2008-02-11  Bruno Haible  <bruno@clisp.org>
44450
44451         * .gitattributes: New file.
44452
44453 2008-02-11  Jim Meyering  <meyering@redhat.com>
44454
44455         useless-if-before-free: Fix reversed exit values.
44456         * build-aux/useless-if-before-free: Use correct values
44457         for EXIT_MATCH and EXIT_NO_MATCH.
44458
44459         * build-aux/useless-if-before-free: Close stdout carefully.
44460
44461 2008-02-10  Bruno Haible  <bruno@clisp.org>
44462
44463         New module 'git-merge-changelog'.
44464         * modules/git-merge-changelog: New file.
44465         * lib/git-merge-changelog.c: New file.
44466
44467 2008-02-10  Jim Meyering  <meyering@redhat.com>
44468
44469         useless-if-before-free: New option: --list (-l).
44470
44471         useless-if-before-free: Don't exit immediately upon open failure.
44472         * build-aux/useless-if-before-free: Exit 2 for errors.
44473         Upon failure to open a file, don't exit immediately.
44474         Rather, just warn and continue with any remaining files.
44475
44476 2008-02-10  Bruno Haible  <bruno@clisp.org>
44477
44478         New abstract list operation 'node_set_value'.
44479         * lib/gl_list.h (gl_list_node_set_value): New function.
44480         (struct gl_list_implementation): New field node_set_value.
44481         * lib/gl_list.c (gl_list_node_set_value): New function.
44482         * lib/gl_array_list.c (gl_array_node_set_value): New function.
44483         (gl_array_list_implementation): Update.
44484         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
44485         (gl_carray_list_implementation): Update.
44486         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
44487         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
44488         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
44489         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
44490         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
44491         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
44492         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
44493         Update.
44494         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
44495         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
44496         (gl_sublist_list_implementation): Update.
44497
44498 2008-02-10  Bruno Haible  <bruno@clisp.org>
44499
44500         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
44501         Needed when ELEMENT is #defined to 'some_type *'.
44502
44503 2008-02-10  Jim Meyering  <meyering@redhat.com>
44504
44505         New script and module: useless-if-before-free
44506         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
44507         * build-aux/useless-if-before-free: New file.
44508         * modules/useless-if-before-free: New file.
44509
44510         * build-aux/gitlog-to-changelog: Use committer date, not author date.
44511
44512         xstrtol_error: Fix typo.
44513         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
44514         s/exit_failure/exit_status/.
44515
44516 2008-02-09  Jim Meyering  <meyering@redhat.com>
44517
44518         New script and module: gitlog-to-changelog
44519         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
44520         * modules/gitlog-to-changelog: New file.
44521         * build-aux/gitlog-to-changelog: New file.
44522
44523 2008-02-08  Jim Meyering  <meyering@redhat.com>
44524
44525         Avoid two "parameter unused" warnings.
44526         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
44527         Mark "st" as used.
44528
44529         Use "git COMMAND", not "git-COMMAND".
44530         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
44531         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
44532         * build-aux/git-version-gen: Use "git status", not "git-status".
44533
44534 2008-02-07  Bruno Haible  <bruno@clisp.org>
44535
44536         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
44537         Avoids a crash on Windows Vista.
44538         Reported by Adam Strzelecki <ono@java.pl> via
44539         Simon Josefsson <simon@josefsson.org>.
44540
44541 2008-02-06  Bruno Haible  <bruno@clisp.org>
44542
44543         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
44544         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
44545         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
44546         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
44547         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
44548         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44549         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
44550         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
44551         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44552         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44553         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44554         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44555         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44556         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44557         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44558         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
44559         left-adjust flag.
44560         * tests/test-snprintf-posix.h (test_function): Likewise.
44561         * tests/test-sprintf-posix.h (test_function): Likewise.
44562         * tests/test-vasprintf-posix.c (test_function): Likewise.
44563         * doc/posix-functions/fprintf.texi: Update.
44564         * doc/posix-functions/printf.texi: Update.
44565         * doc/posix-functions/snprintf.texi: Update.
44566         * doc/posix-functions/sprintf.texi: Update.
44567         * doc/posix-functions/vfprintf.texi: Update.
44568         * doc/posix-functions/vprintf.texi: Update.
44569         * doc/posix-functions/vsnprintf.texi: Update.
44570         * doc/posix-functions/vsprintf.texi: Update.
44571         Reported by Peter Fales <psfales@alcatel-lucent.com>.
44572
44573 2008-02-06  Bruno Haible  <bruno@clisp.org>
44574
44575         Fix bug introduced on 2008-01-26.
44576         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
44577
44578 2008-02-06  Bruno Haible  <bruno@clisp.org>
44579
44580         Fix bug introduced on 2007-06-10.
44581         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
44582         !NEED_PRINTF_FLAG_ZERO.
44583
44584 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
44585
44586         getloadavg: use libperfstat on AIX5
44587         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
44588
44589 2008-02-03  Bruno Haible  <bruno@clisp.org>
44590
44591         * lib/diffseq.h: Add comments about required #includes.
44592         Reported by Michael Biggs <gnulib@doubleplum.net>.
44593
44594 2008-02-01  Bruno Haible  <bruno@clisp.org>
44595
44596         * users.txt: Add gnuit.
44597
44598 2008-01-31  Bruno Haible  <bruno@clisp.org>
44599
44600         * lib/md4.c (set_uint32): Mark as inline.
44601         * lib/md5.c (set_uint32): Likewise.
44602         * lib/sha1.c (set_uint32): Likewise.
44603         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
44604         * m4/md5.m4 (gl_MD5): Likewise.
44605         * m4/sha1.m4 (gl_SHA1): Likewise.
44606
44607 2008-01-31  Jim Meyering  <meyering@redhat.com>
44608
44609         Use "sizeof VAR", rather than a literal "4".
44610         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
44611         * lib/md4.c (md4_read_ctx): Likewise.
44612         * lib/sha1.c (sha1_read_ctx): Likewise.
44613
44614 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44615
44616         * tests/test-sha1.c: New file, based on test-md5.c.
44617
44618         * modules/crypto/sha1-tests: New file.
44619
44620 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44621
44622         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
44623
44624 2008-01-31  Jim Meyering  <meyering@redhat.com>
44625
44626         Prefer "sizeof v" over the equivalent "4".
44627         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
44628         * lib/md5.c (set_uint32): Likewise.
44629         * lib/sha1.c (set_uint32): Likewise.
44630
44631 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44632
44633         * lib/sha1.c (set_uint32): Mark function as static.
44634
44635 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44636
44637         md2: clarify comments to say that alignment is not required.
44638         * lib/md2.h: Remove warning about alignment in comment.
44639         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
44640         never been required.
44641
44642 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44643
44644         md4: adapt alignment constraint fix from sha1.
44645         * lib/md4.c (set_uint32): New function, from sha1.c
44646         (md4_read_ctx): Use it.
44647         (md4_finish_ctx): Doc fix.
44648         * lib/md4.h: Doc fix.
44649
44650 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44651
44652         md5: adapt alignment constraint fix from sha1.
44653         * lib/md5.c (set_uint32): New function, from sha1.c
44654         (md5_read_ctx): Use it.
44655         (md5_finish_ctx): Doc fix.
44656         * lib/md5.h: Doc fix.
44657
44658 2008-01-30  Peter Palfrader  <weasel@debian.org>
44659
44660         sha1: remove the result buffer alignment constraint
44661         * lib/sha1.c (set_uint32): New function.
44662         (sha1_read_ctx): Rewrite to remove the result buffer alignment
44663         constraint.
44664         (sha1_finish_ctx): Remove comment warning about alignment constraint.
44665         * lib/sha1.h: Likewise.
44666
44667 2008-01-30  Andreas Schwab  <schwab@suse.de>
44668             Bruno Haible  <bruno@clisp.org>
44669
44670         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
44671         correct definition of LDBL_MIN_EXP.
44672
44673 2008-01-30  Karl Berry  <karl@gnu.org>
44674
44675         * config/srclist-update: try to preserve x bit on updates.
44676         * config/srclistvars.sh: update for karl.
44677
44678 2008-01-29  Jim Meyering  <meyering@redhat.com>
44679
44680         vasnprintf.c: Avoid warning about unused label
44681         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
44682         "overflow" label definition and associated code with the
44683         same cpp condition that guards the sole use of that label.
44684
44685 2008-01-26  Bruno Haible  <bruno@clisp.org>
44686
44687         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
44688         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
44689         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
44690         * lib/isnanl-nolibm.h (isnanl): Likewise.
44691         Reported by Paul Eggert <eggert@cs.ucla.edu>.
44692
44693 2008-01-26  Bruno Haible  <bruno@clisp.org>
44694
44695         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
44696         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
44697
44698 2008-01-26  Bruno Haible  <bruno@clisp.org>
44699
44700         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
44701         GCC >= 4.0 built-in.
44702         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
44703
44704 2008-01-26  Bruno Haible  <bruno@clisp.org>
44705
44706         Rename isnan, applicable to 'double' only, to isnand.
44707         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
44708         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
44709         (configure.ac): Update.
44710         (Include): Replace "isnan.h" with "isnand.h".
44711         * m4/isnand.m4: Renamed from m4/isnan.m4.
44712         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
44713         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
44714         instead of isnan.c.
44715         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
44716         instead of HAVE_ISNAN_IN_LIBC.
44717         (isnand): Renamed from isnan.
44718         * lib/isnand.c: New file.
44719         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
44720         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
44721         (Makefile.am): Update.
44722         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
44723         Include isnand.h instead of isnan.h.
44724         (main): Test isnand instead of isnan.
44725         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
44726         isnan-nolibm.
44727         * modules/frexp (Depends-on): Likewise.
44728         * modules/frexp-tests (Depends-on): Likewise.
44729         * modules/frexp-nolibm (Depends-on): Likewise.
44730         * modules/frexp-nolibm-tests (Depends-on): Likewise.
44731         * modules/isfinite (Depends-on): Likewise.
44732         * modules/round-tests (Depends-on): Likewise.
44733         * modules/signbit (Depends-on): Likewise.
44734         * modules/signbit-tests (Depends-on): Likewise.
44735         * modules/snprintf-posix (Depends-on): Likewise.
44736         * modules/sprintf-posix (Depends-on): Likewise.
44737         * modules/trunc-tests (Depends-on): Likewise.
44738         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
44739         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44740         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44741         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44742         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44743         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44744         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44745         * modules/vasnprintf-posix (Depends-on): Likewise.
44746         * modules/vasprintf-posix (Depends-on): Likewise.
44747         * modules/vfprintf-posix (Depends-on): Likewise.
44748         * modules/vsnprintf-posix (Depends-on): Likewise.
44749         * modules/vsprintf-posix (Depends-on): Likewise.
44750         * lib/frexp.c: Include isnand.h instead of isnan.h.
44751         (ISNAN): Set to isnand instead of isnan.
44752         * lib/isfinite.c: Include isnand.h instead of isnan.h.
44753         (gl_isfinited): Use isnand instead of isnan.
44754         * lib/signbitd.c: Include isnand.h instead of isnan.h.
44755         (gl_signbitd): Use isnand instead of isnan.
44756         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
44757         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
44758         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
44759         (main): Use isnand instead of isnan.
44760         * tests/test-round1.c: Include isnand.h.
44761         (main): Use isnand instead of isnan.
44762         * tests/test-round2.c: Include isnand.h instead of isnan.h.
44763         (ISNAN): Set to isnand instead of isnan.
44764         * tests/test-trunc1.c: Include isnand.h.
44765         (main): Use isnand instead of isnan.
44766         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
44767         (equal): Use isnand instead of isnan.
44768         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
44769         isnand-nolibm.
44770         * NEWS: Mention the change.
44771
44772 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
44773             Bruno Haible  <bruno@clisp.org>
44774
44775         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
44776         the GCC builtins for signbits are present and set
44777         REPLACE_SIGNBIT_USING_GCC if so.
44778         * lib/math.in.h (signbit): Define using GCC builtins if
44779         REPLACE_SIGNBIT_USING_GCC is set.
44780         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
44781         REPLACE_SIGNBIT_USING_GCC.
44782         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
44783
44784 2008-01-25  Jim Meyering  <meyering@redhat.com>
44785
44786         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
44787         * lib/poll.c: Include <config.h>, not "config.h".
44788         * tests/test-getaddrinfo.c: Likewise.
44789
44790 2008-01-25  Simon Josefsson  <simon@josefsson.org>
44791
44792         * modules/sockets-tests: New file.
44793
44794 2008-01-24  Simon Josefsson  <simon@josefsson.org>
44795
44796         * modules/sockets: New module, can be used to call WSA_Startup and
44797         WSA_Cleanup when needed.
44798
44799         * lib/sockets.h, lib/sockets.c: New files.
44800
44801         * m4/sockets.m4: New file.
44802
44803         * tests/test-sockets.c: New file.
44804
44805 2008-01-19  Bruno Haible  <bruno@clisp.org>
44806
44807         * doc/posix-headers: Renamed from doc/headers.
44808         * doc/posix-functions: Renamed from doc/functions.
44809         * doc/gnulib.texi: Update.
44810
44811 2008-01-19  Bruno Haible  <bruno@clisp.org>
44812
44813         * doc/glibc-functions/strcasestr.texi: Include contents of
44814         doc/functions/strcasestr.texi, fixing the list of platforms.
44815         * doc/functions/strcasestr.texi: Remove file.
44816
44817 2008-01-19  Bruno Haible  <bruno@clisp.org>
44818
44819         * doc/glibc-functions/memmem.texi: Include contents of
44820         doc/functions/memmem.texi.
44821         * doc/functions/memmem.texi: Remove file.
44822
44823 2008-01-18  Bruno Haible  <bruno@clisp.org>
44824
44825         * doc/glibc-functions/*.texi: New files.
44826         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
44827         to use the new files.
44828
44829 2008-01-17  Bruno Haible  <bruno@clisp.org>
44830
44831         * tests/test-gethostname.c (main): Fix printf statement.
44832
44833 2008-01-17  Simon Josefsson  <simon@josefsson.org>
44834
44835         * modules/gethostname-tests: New file.
44836
44837         * tests/test-gethostname.c: New file.
44838
44839 2008-01-17  Simon Josefsson  <simon@josefsson.org>
44840
44841         * lib/gethostname.c: Include string.h unconditionally, strncpy is
44842         used by the UNAME case.  Reported by Bruno Haible
44843         <bruno@clisp.org>.
44844
44845 2008-01-17  Eric Blake  <ebb9@byu.net>
44846
44847         Convert c-strcasestr to be more efficient.
44848         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
44849         (Depends-on): Add c-strcase, remove malloca, strnlen.
44850         * tests/test-c-strcasestr.c (main): Enhance test.
44851         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
44852
44853 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
44854
44855         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
44856         Use it in creating po/Makevars.
44857
44858 2008-01-15  Simon Josefsson  <simon@josefsson.org>
44859
44860         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
44861         Applications that requires it should initialize libgcrypt
44862         manually.
44863
44864 2008-01-16  Simon Josefsson  <simon@josefsson.org>
44865
44866         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
44867
44868 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
44869
44870         Fix problem with getdate on mingw32 reported by Simon Josefsson
44871         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
44872         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
44873         tzname", when deciding whether to declare tzname.
44874         * lib/strftime.c (tzname): Likewise.
44875
44876 2008-01-15  Bruno Haible  <bruno@clisp.org>
44877
44878         Work around a MacOS X 10.5 bug in frexpl().
44879         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
44880         * doc/functions/frexpl.texi: Document the bug.
44881         Reported by Elias Pipping <pipping@gentoo.org>.
44882
44883 2008-01-14  Eric Blake  <ebb9@byu.net>
44884
44885         Touch up previous patch.
44886         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
44887         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
44888
44889         Convert strcasestr module to use Two-Way algorithm.
44890         * modules/strcasestr-simple: New module, based on the old
44891         strcasestr, but with Two-Way rather than KMP.
44892         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
44893         * lib/string.in.h (rpl_strcasestr): Declare.
44894         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
44895         performance.
44896         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
44897         * modules/string (Makefile.am): Support strcasestr.
44898         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
44899         * modules/strcasestr-tests (Depends-on): Check for alarm.
44900         * tests/test-strcasestr.c: Augment test.
44901         * lib/str-two-way.h: Clean up stray macro.
44902         * NEWS: Document new module.
44903         * MODULES.html.sh (string handling): Likewise.
44904         * doc/functions/strcasestr.texi: New file.
44905         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
44906         here, since it is not a POSIX function.
44907
44908 2008-01-14  Colin Watson  <cjwatson@debian.org>
44909             Bruno Haible  <bruno@clisp.org>
44910
44911         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
44912         works fine; if not, set REPLACE_STRSIGNAL.
44913         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
44914         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
44915         REPLACE_STRSIGNAL.
44916         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
44917         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
44918         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
44919
44920 2008-01-14  Bruno Haible  <bruno@clisp.org>
44921
44922         * modules/strsignal (Include): Change to <string.h>.
44923
44924 2008-01-14  Colin Watson  <cjwatson@debian.org>
44925
44926         * modules/argp (Notice): Add a notice recommending to change
44927         XGETTEXT_OPTIONS.
44928         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
44929
44930 2008-01-13  Colin Watson  <cjwatson@debian.org>
44931
44932         * modules/strsignal-tests: New file.
44933         * tests/test-strsignal.c: New file.
44934
44935         * lib/strsignal.c: New file, from glibc with modifications.
44936         * lib/siglist.h: New file, from glibc with modifications.
44937         * lib/string.in.h (strsignal): New declaration.
44938         * m4/strsignal.m4: New file.
44939         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
44940         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
44941         * modules/strsignal: New file.
44942         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
44943         HAVE_DECL_STRSIGNAL.
44944
44945 2008-01-13  Bruno Haible  <bruno@clisp.org>
44946
44947         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
44948         locale encoding is not ASCII. Needed for OpenBSD 4.0.
44949         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
44950         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
44951
44952 2008-01-13  Bruno Haible  <bruno@clisp.org>
44953
44954         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
44955         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
44956         * lib/argp.h (__attribute__): Likewise.
44957         * lib/c-stack.c (__attribute__): Likewise.
44958         * lib/error.h (__attribute__): Likewise.
44959         * lib/fts.c (__attribute__): Likewise.
44960         * lib/openat.h (__attribute__): Likewise.
44961         * lib/stdio.in.h (__attribute__): Likewise.
44962         * lib/string.in.h (__attribute__): Likewise.
44963         * lib/utimens.c (__attribute__): Likewise.
44964         * lib/vasnprintf.h (__attribute__): Likewise.
44965         * lib/xalloc.h (__attribute__): Likewise.
44966         * lib/xprintf.h (__attribute__): Likewise.
44967         * lib/xstrtol.h (__attribute__): Likewise.
44968         * lib/xvasprintf.h (__attribute__): Likewise.
44969
44970 2008-01-12  Bruno Haible  <bruno@clisp.org>
44971
44972         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
44973         * doc/glibc-headers/a.out.texi: New file.
44974         * doc/glibc-headers/aliases.texi: New file.
44975         * doc/glibc-headers/alloca.texi: New file.
44976         * doc/glibc-headers/ar.texi: New file.
44977         * doc/glibc-headers/argp.texi: New file.
44978         * doc/glibc-headers/argz.texi: New file.
44979         * doc/glibc-headers/byteswap.texi: New file.
44980         * doc/glibc-headers/crypt.texi: New file.
44981         * doc/glibc-headers/endian.texi: New file.
44982         * doc/glibc-headers/envz.texi: New file.
44983         * doc/glibc-headers/err.texi: New file.
44984         * doc/glibc-headers/error.texi: New file.
44985         * doc/glibc-headers/execinfo.texi: New file.
44986         * doc/glibc-headers/fpu_control.texi: New file.
44987         * doc/glibc-headers/fstab.texi: New file.
44988         * doc/glibc-headers/fts.texi: New file.
44989         * doc/glibc-headers/getopt.texi: New file.
44990         * doc/glibc-headers/ieee754.texi: New file.
44991         * doc/glibc-headers/ifaddrs.texi: New file.
44992         * doc/glibc-headers/libintl.texi: New file.
44993         * doc/glibc-headers/mcheck.texi: New file.
44994         * doc/glibc-headers/mntent.texi: New file.
44995         * doc/glibc-headers/obstack.texi: New file.
44996         * doc/glibc-headers/paths.texi: New file.
44997         * doc/glibc-headers/printf.texi: New file.
44998         * doc/glibc-headers/pty.texi: New file.
44999         * doc/glibc-headers/resolv.texi: New file.
45000         * doc/glibc-headers/shadow.texi: New file.
45001         * doc/glibc-headers/sysexits.texi: New file.
45002         * doc/glibc-headers/ttyent.texi: New file.
45003
45004 2008-01-12  Jim Meyering  <meyering@redhat.com>
45005
45006         announce-gen: emit Gnulib's git-based version string.
45007         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
45008         New option --gnulib-version=V, where V is expected to be
45009         the output of running git describe in the gnulib directory.
45010         (get_tool_versions): Request feedback on xdelta.  I suspect it's
45011         not useful, and plan to stop publishing an xdelta file with each
45012         coreutils release.
45013
45014         * build-aux/announce-gen: Also check for lzma-compressed files.
45015
45016 2008-01-11  Bruno Haible  <bruno@clisp.org>
45017
45018         * tests/test-memmem.c (main): Increase maximum allowed time.
45019         * tests/test-strstr.c (main): Likewise.
45020
45021 2008-01-11  Bruno Haible  <bruno@clisp.org>
45022
45023         * doc/functions/memmem.texi: Add more precisions about platforms.
45024         * doc/functions/strstr.texi: Likewise.
45025
45026 2008-01-10  Eric Blake  <ebb9@byu.net>
45027
45028         * m4/strstr.m4: Delete cruft from copy-n-paste.
45029         Reported by Bruno Haible.
45030
45031 2008-01-10  Bruno Haible  <bruno@clisp.org>
45032
45033         Make c-strstr rely on strstr.
45034         * lib/c-strstr.c: Don't include str-kmp.h.
45035         (c_strstr): Define in terms of strstr.
45036         * modules/c-strstr (Files): Remove lib/str-kmp.h.
45037         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
45038
45039 2008-01-10  Bruno Haible  <bruno@clisp.org>
45040
45041         * doc/gnulib.texi (String Functions in C Locale): New section.
45042         * doc/c-ctype.texi: New file.
45043         * doc/c-strcase.texi: New file.
45044         * doc/c-strcaseeq.texi: New file.
45045         * doc/c-strcasestr.texi: New file.
45046         * doc/c-strstr.texi: New file.
45047         * doc/c-strtod.texi: New file.
45048         * doc/c-strtold.texi: New file.
45049
45050 2008-01-10  Eric Blake  <ebb9@byu.net>
45051
45052         * lib/relocatable.h: Fix a comment.
45053
45054 2008-01-10  Eric Blake  <ebb9@byu.net>
45055
45056         Share two-way algorithm.
45057         * lib/str-two-way.h: New file, merged from...
45058         * lib/memmem.c: ...here...
45059         * lib/strstr.c: ...and here.
45060         * modules/memmem (Files): Use it.
45061         * modules/strstr (Files): Likewise.
45062
45063         Avoid quadratic strstr implementations.
45064         * lib/strstr.c: New file.
45065         * m4/strstr.m4: Likewise.
45066         * modules/strstr: Likewise.
45067         * modules/strstr-tests: Likewise.
45068         * tests/test-strstr.c: Likewise.
45069         * lib/string.in.h (rpl_strstr): Declare.
45070         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
45071         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
45072         * modules/string (Makefile.am): Likewise.
45073         * MODULES.html.sh (string handling): Mention new module.
45074         * doc/functions/strstr.texi (strstr): Document the bug.
45075
45076 2008-01-10  Bruno Haible  <bruno@clisp.org>
45077
45078         * lib/relocatable.h (relocate): State whether result is freshly
45079         allocated or not.
45080         * lib/relocatable.c (relocate): Return a freshly allocated string
45081         instead of a pointer to a privately held string.
45082         Reported by Sylvain Beucler <beuc@gnu.org>.
45083
45084 2008-01-10  Colin Watson  <cjwatson@debian.org>
45085
45086         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
45087         s/S_ISNLK/S_ISLNK/.
45088
45089 2008-01-09  Bruno Haible  <bruno@clisp.org>
45090
45091         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
45092         and other files.
45093         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
45094         if it's only a guess.
45095         * modules/memmem: Simplify by depending on memmem-simple.
45096
45097 2008-01-09  Bruno Haible  <bruno@clisp.org>
45098
45099         Work around OpenBSD 4.0 tdelete() bug.
45100         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
45101         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
45102         macros and don't redefine the enum values.
45103         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
45104         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
45105         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
45106
45107 2008-01-09  Bruno Haible  <bruno@clisp.org>
45108
45109         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
45110         (main): Don't perform the tests if setlocale did not install a UTF-8
45111         locale. Needed on OpenBSD 4.0.
45112         * modules/wcwidth-tests (Depends-on): Add localcharset.
45113
45114 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
45115
45116         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
45117         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
45118         * NEWS: announce this.
45119         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
45120
45121 2008-01-09  Simon Josefsson  <simon@josefsson.org>
45122         and Eric Blake  <ebb9@byu.net>
45123
45124         Add memmem-simple module.
45125         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
45126         (gl_FUNC_MEMMEM): Separate performance from presence checks.
45127         * modules/memmem-simple: New file.
45128         * modules/memmem (Description): Tweak.
45129         * MODULES.html.sh (string handling): Mention new module.
45130         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
45131         addressed by memmem-simple.
45132         * NEWS: Document the difference.
45133
45134 2008-01-09  Eric Blake  <ebb9@byu.net>
45135
45136         Give gcc some memmem optimization hints.
45137         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
45138         (strcasestr): Declare as pure.
45139         * modules/memmem (Maintainer): Claim my implementation.
45140
45141 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45142
45143         Support AIX 6.1 and higher.
45144         * build-aux/config.libpath: Likewise.
45145         * build-aux/config.rpath: Likewise.
45146
45147 2008-01-08  Jim Meyering  <meyering@redhat.com>
45148             Bruno Haible  <bruno@clisp.org>
45149
45150         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
45151         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
45152         Reported by Peter Fales in
45153         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
45154
45155 2008-01-08  Bruno Haible  <bruno@clisp.org>
45156
45157         * modules/unictype/category-of (Depends-on): Add
45158         unictype/category-none.
45159         * modules/unictype/category-and-tests (Depends-on): Add
45160         unictype/category-{L,N,Lu,Nd}.
45161         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
45162         * modules/unictype/category-or-tests (Depends-on): Add
45163         unictype/category-{L,N}.
45164         * modules/unictype/category-name-tests (Depends-on): Add
45165         unictype/category-{Z,Nl}.
45166         Reported by Simon Josefsson.
45167
45168 2008-01-08  Bruno Haible  <bruno@clisp.org>
45169
45170         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
45171         convention better.
45172         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
45173         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
45174         Reported by Peter Miller <millerp@canb.auug.org.au>.
45175
45176 2008-01-08  Eric Blake  <ebb9@byu.net>
45177
45178         Rewrite memmem to guarantee linear complexity without malloc.
45179         * lib/memmem.c (memmem): Use Two-Way rather than
45180         Knuth-Morris-Pratt, to allow O(1) space usage.
45181         (critical_factorization, two_way_short_needle)
45182         (two_way_long_needle): New functions.
45183         (knuth_morris_pratt): Delete.
45184         * modules/memmem (Depends-on): No longer need malloca or stdbool.
45185         Add stdint.
45186         * tests/test-memmem.c (main): Add tests for periodic needle and
45187         sublinear performance.
45188         * doc/functions/memmem.texi (memmem): Document other deficiencies
45189         in cygwin and older glibc.
45190
45191 2008-01-08  Bruno Haible  <bruno@clisp.org>
45192
45193         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
45194         augmentation.
45195
45196 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
45197
45198         Add a configure time option: --disable-acl.
45199         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
45200         AC_ARG_ENABLE(acl).
45201
45202 2008-01-06  Simon Josefsson  <simon@josefsson.org>
45203
45204         * tests/test-localename.c: Don't include obsolete "setenv.h".
45205
45206         * modules/localename-tests (Depends-on): Need unsetenv.
45207
45208 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45209
45210         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
45211
45212 2008-01-06  Colin Watson  <cjwatson@debian.org>
45213
45214         * users.txt: Add man-db.
45215
45216 2008-01-07  Bruno Haible  <bruno@clisp.org>
45217
45218         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
45219         previous section name.
45220
45221 2008-01-07  Bruno Haible  <bruno@clisp.org>
45222
45223         * lib/progname.c (set_program_name): Don't strip off a leading
45224         "lt-" prefix outside a .libs directory.
45225         Suggested by Paul Eggert.
45226
45227 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
45228             Bruno Haible  <bruno@clisp.org>
45229
45230         Improve memory cleanup in 'relocatable' module.
45231         * lib/relocatable.h (compute_curr_prefix): Change return type to
45232         'char *'.
45233         * lib/relocatable.c (compute_curr_prefix): Change return type to
45234         'char *'. Free curr_installdir after use.
45235         (relocate): Free curr_prefix_better after use.
45236         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
45237
45238 2008-01-01  Bruno Haible  <bruno@clisp.org>
45239
45240         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
45241         failure on older glibc systems.
45242         Reported by Peter Fales <psfales@alcatel-lucent.com>.
45243
45244 2008-01-05  Eric Blake  <ebb9@byu.net>
45245
45246         Avoid quadratic system memmem.
45247         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
45248         Reported by Ralf Wildenhues.
45249
45250         Fix memmem test for mingw.
45251         * modules/memmem-tests (configure.ac): Check for alarm.
45252         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
45253         it.
45254         * doc/functions/memmem.texi: New file.
45255         * doc/gnulib.texi (Function Substitutes): Add memmem.
45256         Reported by Bruno Haible.
45257
45258 2008-01-04  Bruno Haible  <bruno@clisp.org>
45259
45260         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
45261         Require gl_HEADER_STRINGS_H_DEFAULTS, not
45262         gl_HEADER_STRING_H_DEFAULTS.
45263
45264 2008-01-04  Eric Blake  <ebb9@byu.net>
45265
45266         Shorten duration of memmem test.
45267         * tests/test-memmem.c (main): Use alarm to declare failure if test
45268         is taking too long.
45269         Reported by Ralf Wildenhues.
45270
45271 2007-12-21  Simon Josefsson  <simon@josefsson.org>
45272
45273         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
45274         string, needed by strerror.
45275
45276 2008-01-03  Colin Watson  <cjwatson@debian.org>
45277             Bruno Haible  <bruno@clisp.org>
45278
45279         * doc/gnulib-tool.texi (Localization): New section.
45280
45281 2008-01-02  Bruno Haible  <bruno@clisp.org>
45282
45283         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
45284         variables to 'unsigned char *' type.
45285         Reported by Paul Eggert.
45286
45287 2008-01-02  Jim Meyering  <jim@meyering.net>
45288
45289         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
45290
45291 2007-12-31  Jim Meyering  <jim@meyering.net>
45292
45293         Avoid use of private FTS type name.
45294         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
45295
45296 2007-12-30  Karl Berry  <karl@gnu.org>
45297
45298         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
45299         work around defect in Texinfo and/or the standalone Info browser.
45300
45301 2007-12-30  Bruno Haible  <bruno@clisp.org>
45302
45303         Unify 5 copies of the KMP code.
45304         * lib/str-kmp.h: New file.
45305         * lib/c-strcasestr.c: Include str-kmp.h.
45306         (knuth_morris_pratt): Remove function.
45307         (c_strcasestr): Update.
45308         * lib/c-strstr.c: Include str-kmp.h.
45309         (knuth_morris_pratt): Remove function.
45310         (c_strcasestr): Update.
45311         * lib/mbscasestr.c: Include str-kmp.h.
45312         (knuth_morris_pratt_unibyte): Remove function.
45313         * lib/mbsstr.c: Include str-kmp.h.
45314         (knuth_morris_pratt_unibyte): Remove function.
45315         * lib/strcasestr.c: Include str-kmp.h.
45316         (knuth_morris_pratt): Remove function.
45317         (strcasestr): Update.
45318         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
45319         * modules/c-strstr (Files): Likewise.
45320         * modules/mbscasestr (Files): Likewise.
45321         * modules/mbsstr (Files): Likewise.
45322         * modules/strcasestr (Files): Likewise.
45323         Suggested by Paul Eggert.
45324
45325 2007-12-30  Bruno Haible  <bruno@clisp.org>
45326
45327         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
45328         defined.
45329
45330 2007-12-30  Bruno Haible  <bruno@clisp.org>
45331
45332         * lib/xmalloca.h: Include xalloc.h.
45333         (xnmalloca): New macro.
45334
45335 2007-12-30  Bruno Haible  <bruno@clisp.org>
45336
45337         * lib/malloca.h (nmalloca): New macro.
45338         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
45339         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
45340         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
45341         knuth_morris_pratt_multibyte): Likewise.
45342         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
45343         knuth_morris_pratt_multibyte): Likewise.
45344         * lib/memmem.c (knuth_morris_pratt): Likewise.
45345         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
45346
45347 2007-12-25  Bruno Haible  <bruno@clisp.org>
45348
45349         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
45350         * lib/glob.c: Don't include openat.h.
45351         (link_exists2_p): Add back the code that deals with the
45352         !GLOB_ALTDIRFUNC case.
45353         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
45354         let it do the filename concatenation.
45355         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
45356         * modules/glob (Depends-on): Remove openat.
45357
45358 2007-12-31  Bruno Haible  <bruno@clisp.org>
45359
45360         * modules/dirfd (License): Change to LGPLv2+.
45361         Approved by Jim Meyering.
45362
45363 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
45364
45365         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
45366         when multiplying M by sizeof (size_t).
45367
45368 2007-12-10  Martin Lambers  <marlam@marlam.de>
45369
45370         Override getpagesize on mingw.
45371         * lib/getpagesize.c: New file.
45372         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
45373         * modules/getpagesize (Files): Add lib/getpagesize.c.
45374         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
45375         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45376         REPLACE_GETPAGESIZE.
45377         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
45378
45379 2007-12-25  Bruno Haible  <bruno@clisp.org>
45380
45381         * modules/localcharset (Notice): New field.
45382         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
45383         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
45384
45385 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
45386             Bruno Haible  <bruno@clisp.org>
45387
45388         Avoid using the syntax symbol() in formatted documentation.
45389         * MODULES.html.sh (func_module): When replacing symbol() with a
45390         hyperlink, remove the parentheses. Show an error if some remain.
45391         Recognize and render the '...' syntax.
45392         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
45393         Rework. Add paragraph about GCC's inlining.
45394         * doc/alloca.texi: Likewise.
45395         * doc/error.texi: Remove parentheses from symbol reference.
45396         * doc/gnulib-intro.texi: Likewise.
45397         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
45398         * modules/fnmatch (Description): Reword to say "the ... function".
45399         * modules/full-read (Description): Likewise.
45400         * modules/full-write (Description): Likewise.
45401         * modules/safe-read (Description): Likewise.
45402         * modules/safe-write (Description): Likewise.
45403         * modules/strchrnul (Description): Likewise.
45404         * modules/trim (Description): Likewise.
45405         * modules/error (Description): Remove parentheses from symbol
45406         references.
45407         * modules/verror (Description): Likewise.
45408         Reported by Karl Berry.
45409
45410 2007-12-25  Bruno Haible  <bruno@clisp.org>
45411
45412         Fixup after 2007-10-16 commit.
45413         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
45414
45415 2007-12-24  Bruno Haible  <bruno@clisp.org>
45416
45417         Make --enable-relocatable work with DESTDIR.
45418         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
45419         to compute installdir from destprog.
45420         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
45421         also set the RELOC_DESTDIR variable.
45422         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
45423
45424 2007-12-24  Bruno Haible  <bruno@clisp.org>
45425
45426         Fix link error due to xalloc_die().
45427         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
45428         of xreadlink.
45429         * lib/relocwrapper.c: Update comments.
45430         * build-aux/install-reloc: Remove xreadlink.c from file list.
45431         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
45432         xreadlink.c.
45433         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
45434
45435 2007-12-24  Bruno Haible  <bruno@clisp.org>
45436
45437         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
45438         * lib/setenv.h: Remove file.
45439         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
45440         lib/setenv.h.
45441         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
45442         (Depends-on): Add stdlib.
45443         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
45444         gl_FUNC_UNSETENV.
45445         (Include): Replace setenv.h with <stdlib.h>.
45446         * modules/unsetenv: New file.
45447         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
45448         * lib/unsetenv.c: Include <stdlib.h> first.
45449         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
45450         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
45451         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
45452         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
45453         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
45454         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
45455         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
45456         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
45457         * doc/functions/unsetenv.texi: Update.
45458         * modules/xsetenv (Depends-on): Add unsetenv.
45459         * modules/getdate (Depends-on): Likewise.
45460         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
45461         * lib/xsetenv.c: Don't include setenv.h.
45462         * lib/getdate.y: Likewise.
45463         * lib/relocwrapper.c: Likewise.
45464         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
45465         (Depends-on): Add stdlib.
45466         * NEWS: Mention the changes.
45467         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
45468
45469 2007-12-23  Bruno Haible  <bruno@clisp.org>
45470
45471         * lib/memmem.c (memmem): Use lowercase variable names. Tab
45472         indentation.
45473
45474 2007-12-23  Bruno Haible  <bruno@clisp.org>
45475
45476         * lib/c-strcasestr.c: Add more comments.
45477         * lib/c-strstr.c: Likewise.
45478         * lib/mbscasestr.c: Likewise.
45479         * lib/mbsstr.c: Likewise.
45480         * lib/strcasestr.c: Likewise.
45481         * lib/memmem.c: Likewise.
45482
45483 2007-12-23  Bruno Haible  <bruno@clisp.org>
45484
45485         * tests/test-memmem.c: Include <string.h> first.
45486
45487 2007-12-22  Bruno Haible  <bruno@clisp.org>
45488
45489         * gnulib-tool (func_create_testdir): Change $auxdir while generating
45490         the contents of $testsbase.
45491         Reported by Ralf Wildenhues.
45492
45493 2007-12-22  Bruno Haible  <bruno@clisp.org>
45494
45495         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
45496         two variables local_ldadd_before, local_ldadd_last.
45497
45498 2007-12-20  Eric Blake  <ebb9@byu.net>
45499
45500         Work around circular library issue when cross-compiling.
45501         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
45502         that progname.o does not need to pull in rpl_memcmp.
45503
45504 2007-12-19  Eric Blake  <ebb9@byu.net>
45505
45506         Fix memmem to avoid O(n^2) worst-case complexity.
45507         * lib/memmem.c (knuth_morris_pratt): New function.
45508         (memmem): Use it if first few naive iterations fail.
45509         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
45510         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
45511         * modules/memchr (License): Likewise.
45512         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
45513         malloca.
45514         * tests/test-memmem.c: Rewrite, borrowing ideas from
45515         test-mbsstr1.c; the old version wouldn't even compile!
45516         * modules/memmem-tests: New file.
45517         * lib/string.in.h (rpl_memmem): Add declaration.
45518         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
45519         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
45520         REPLACE_MEMMEM.
45521
45522 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
45523
45524         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
45525         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
45526         before any system include files, and undef after them all.  This
45527         should fix a problem on VMS reported by John E. Malmberg in
45528         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
45529
45530 2007-12-17  Eric Blake  <ebb9@byu.net>
45531
45532         Revert addition of verify, for BSD/OS.
45533         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
45534         can't handle large files, for the sake of obsolete platforms.
45535         * modules/fseeko (Depends-on): Remove verify.
45536         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
45537         * doc/functions/ftello.texi (ftello): Likewise.
45538         * doc/functions/fgetpos.texi (fgetpos): Likewise.
45539         Reported by Larry Jones.
45540
45541 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
45542
45543         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
45544         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
45545
45546 2007-12-17  Jim Meyering  <meyering@redhat.com>
45547
45548         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
45549         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
45550         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
45551         * modules/getcwd (Depends-on): Add openat.
45552         Reported by Petr Salinger.
45553
45554 2007-12-17  Bruno Haible  <bruno@clisp.org>
45555
45556         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
45557         avoid a segmentation fault of the configure test on x86_64 systems.
45558
45559 2007-12-15  Jim Meyering  <meyering@redhat.com>
45560
45561         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
45562
45563 2007-12-13  Eric Blake  <ebb9@byu.net>
45564
45565         Another fseek test.
45566         * tests/test-fseek.c (main): Also test ungetc handling.
45567         * tests/test-fseeko.c (main): Likewise.
45568         * modules/fseeko (Depends-on): Add verify.
45569         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
45570         large.
45571         Reported by Larry Jones.
45572
45573         Fix fseeko on mingw.
45574         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
45575         seek.
45576
45577         Beef up fseek tests.
45578         * tests/test-fseek.c (main): Also test eof handling.
45579         * tests/test-fseeko.c (main): Likewise.
45580         Reported by Larry Jones.
45581
45582 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
45583
45584         Fix fseeko on BSD-based platforms.
45585         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
45586         successful seek.
45587
45588 2007-12-12  Eric Blake  <ebb9@byu.net>
45589
45590         Allow circular dependency of separate libtests.a
45591         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
45592         when use_libtests.
45593
45594 2007-12-11  Eric Blake  <ebb9@byu.net>
45595
45596         Fix bug with -0.0L in previous patch.
45597         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
45598         * tests/test-isnan.c (main): Also test on zeroes.
45599         * tests/test-isnanf.c (main): Likewise.
45600         * tests/test-isnanl.h (main): Likewise.
45601
45602         Detect pseudo-denormals on x86 even when cross-compiling.
45603         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
45604         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
45605         invalid bit patterns that happen to satisfy ==.
45606
45607         Avoid link failures with separate libtests.a.
45608         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
45609         last, to satisfy circular dependencies.
45610
45611 2007-12-11  Eric Blake  <ebb9@byu.net>
45612         and Bruno Haible  <bruno@clisp.org>
45613
45614         Fix OpenBSD 4.0 <float.h> handling of long double.
45615         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
45616         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
45617         * doc/headers/float.texi (float.h): Document OpenBSD bug.
45618
45619 2007-12-11  Jim Meyering  <meyering@redhat.com>
45620
45621         * users.txt: Add libvirt.
45622
45623         Support versions of autoconf prior to 2.59c.
45624         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
45625         if it is not already defined.
45626
45627 2007-12-09  Bruno Haible  <bruno@clisp.org>
45628
45629         Let 'gnulib-tool --import' collect sources needed for the tests in
45630         tests/ rather than in lib/.
45631         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
45632         argument. If true, add rules to generate libtests.a, and put libtests.a
45633         into $(LDADD). Consider source files in subdirectories and set
45634         uses_subdirs.
45635         (func_emit_initmacro_start, func_emit_initmacro_end,
45636         func_emit_initmacro_done): Pass all arguments explicitly.
45637         (func_import): Determine two module lists main_modules,
45638         testsrelated_modules. Determine use_libtests. Determine two variables
45639         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
45640         instead of just sed_transform_lib_file. Determine two variables
45641         main_files and testsrelated_files. Compute 'files' as the union of
45642         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
45643         func_add_or_update. In the generated gnulib-comp.m4, collect the
45644         object files for tests/ in different variables than those for lib/.
45645         Substitute LIBTESTS_LIBDEPS.
45646         (func_create_testdir): Combine the uses_subdirs results from
45647         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
45648
45649 2007-12-09  Bruno Haible  <bruno@clisp.org>
45650
45651         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
45652         the build-aux directory.
45653
45654 2007-12-09  Bruno Haible  <bruno@clisp.org>
45655
45656         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
45657         introduced on 2006-09-09.
45658
45659 2007-12-07  Jim Meyering  <meyering@redhat.com>
45660
45661         Let these macros work also with autoconf-2.59.
45662         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
45663         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
45664         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
45665
45666 2007-12-06  Jim Meyering  <meyering@redhat.com>
45667
45668         Avoid a configure-time syntax error in gl_FUNC_ACL.
45669         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
45670         function in each branch, before testing the cache variable.
45671
45672 2007-12-04  Eric Blake  <ebb9@byu.net>
45673
45674         Make scripts executable.
45675         * build-aux/config.guess: Add execute permissions.
45676         * build-aux/config.sub: Likewise.
45677         * build-aux/gendocs.sh: Likewise.
45678
45679         Fix frexp on mingw.
45680         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
45681         cross-compiling.
45682         * doc/functions/frexp.texi (frexp): Document the bug.
45683
45684         Make cygwin fseeko check more reliable.
45685         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
45686         version numbers, rather than unrelated feature check.
45687         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
45688         * doc/functions/ftello.texi (ftello): Likewise.
45689         Reported by Bruno Haible.
45690
45691         * m4/strerror.m4: Bump version number.
45692
45693 2007-12-03  Bruno Haible  <bruno@clisp.org>
45694
45695         * doc/functions/mprotect.texi: Mention the mingw problem.
45696
45697 2007-12-03  Eric Blake  <ebb9@byu.net>
45698
45699         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
45700         REPLACE_STRERROR is initialized before this macro.
45701
45702 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
45703
45704         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
45705         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
45706         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
45707         put -lsec in even for programs other than 'ls'.  This fixes a problem
45708         for gettext reported by Bruno Haible in
45709         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
45710         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
45711         Add support for Solaris 10.  This isn't efficient, but should get the
45712         job done for now.
45713
45714 2007-12-03  James Youngman  <jay@gnu.org>
45715
45716         * doc/regexprops-generic.texi: change "an close-group" to "a
45717         close-group" and "illegal" to "not allowed".
45718
45719 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45720
45721         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
45722         pr_byname.h. Needed for the rare case when the maintainer has done
45723         "make maintainer-clean" in the source directory and then attempts a
45724         build outside the source directory.
45725         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
45726         scripts_byname.h.
45727
45728 2007-12-02  Martin Lambers <marlam@marlam.de>
45729             Bruno Haible  <bruno@clisp.org>
45730
45731         * lib/getpagesize.h: Remove file.
45732         * lib/unistd.in.h: Include declaration of getpagesize here.
45733         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
45734         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
45735         HAVE_SYS_PARAM_H.
45736         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
45737         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
45738         * modules/getpagesize (Files): Remove lib/getpagesize.h.
45739         (Depends-on): Add unistd.
45740         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45741         (Include): Use <unistd.h> instead of getpagesize.h.
45742         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
45743         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
45744         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
45745         gl_GETPAGESIZE invocation, already handled by module dependency.
45746         * lib/pagealign_alloc.c: Don't include getpagesize.h.
45747
45748 2007-12-02  Bruno Haible  <bruno@clisp.org>
45749
45750         * modules/strings-tests: New file.
45751         * tests/test-strings.c: New file.
45752
45753         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
45754         * lib/strings.in.h: New file.
45755         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
45756         * m4/strings_h.m4: New file.
45757         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
45758         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
45759         * modules/strings: New file.
45760         * modules/string (Makefile.am): Update.
45761         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
45762         Reported by Karl Berry.
45763
45764 2007-12-01  Eric Blake  <ebb9@byu.net>
45765
45766         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
45767         accomodate fix in cygwin 1.5.25.
45768
45769 2007-12-01  Jim Meyering  <meyering@redhat.com>
45770
45771         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
45772         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
45773         that would inhibit utf8-optimization of a regexp containing line-
45774         or buffer-anchors, e.g., `^', `$'.
45775
45776 2007-11-30  Bruno Haible  <bruno@clisp.org>
45777
45778         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
45779         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
45780         glthread_recursive_lock_init.
45781         * lib/lock.c (glthread_recursive_lock_init)
45782         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
45783         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45784
45785 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
45786
45787         New function qset_acl, like set_acl but with syscall semantics.
45788         * lib/acl.h (qset_acl): New decl.
45789         * lib/acl.c (qset_acl): New function.
45790         (set_acl): Use new function.  Use more-consistent diagnostics.
45791
45792 2007-11-28  Jim Meyering  <meyering@redhat.com>
45793
45794         * modules/physmem (License): Change from GPL to LGPLv2+.
45795
45796 2007-11-26  Bruno Haible  <bruno@clisp.org>
45797
45798         * lib/vasnprintf.c (decode_long_double): Don't abort if the
45799         'long double' type has excess precision.
45800         Reported by Jim Meyering in
45801         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
45802
45803 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45804
45805         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
45806         Sync from <http://gnu.org/licenses>.
45807         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
45808         with license text from same location.
45809         * doc/maintain.texi, doc/standards.texi:  Sync from
45810         <http://savannah.gnu.org/projects/gnustandards>.
45811
45812 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
45813         and Jim Meyering  <meyering@redhat.com>
45814
45815         Adjust getdate' grammar to accept a slightly more regular language.
45816         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
45817         Before, the former was rejected.
45818         * lib/getdate.y (digits_to_date_time): New function, factored
45819         out of ...
45820         (number): ...here.  Just call digits_to_date_time.
45821         (hybrid): New non-terminal to handle an <unsigned number,
45822         signed relative offset> sequence consistently.
45823
45824 2007-11-18  Jim Meyering  <meyering@redhat.com>
45825
45826         Pull my changes from coreutils:
45827         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
45828         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
45829         use of $gnulib_tool_option_extras, so that it's separated from the
45830         preceding argument.
45831
45832         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
45833         * build-aux/bootstrap (cp_mark_as_generated): Create any required
45834         parent destination directories before copying a file into place.
45835
45836 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
45837
45838         bootstrap: work also with 4-argument variant of AC_INIT
45839         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
45840
45841 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
45842
45843         Port test-getaddrinfo to Solaris.
45844         Problem reported by Bruno Haible in
45845         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
45846         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
45847         explanation of setting 'hints'.
45848         Don't reject an implementation merely because it returns EAI_SERVICE.
45849         (EAI_SERVICE): Define to 0 if not defined.
45850
45851 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
45852
45853         The license of gnu-make and posix-shell is now "GPLed build tool".
45854         * modules/gnu-make (License): Likewise.
45855         * modules/posix-shell (License): Likewise.
45856
45857         New module posix-shell, for determining a POSIX shell
45858         or perhaps something that is close enough to a POSIX shell.
45859         * m4/posix-shell.m4: New file.
45860         * modules/posix-shell: New file.
45861
45862         * MODULES.html.sh: Mention new module.
45863
45864         New module gnu-make, for determining whether we're using GNU Make.
45865         * m4/gnu-make.m4: New file.
45866         * modules/gnu-make: New file.
45867         * MODULES.html.sh: Mention new module.
45868
45869 2007-11-14  Jim Meyering  <meyering@redhat.com>
45870
45871         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
45872         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
45873         use this macro to create a function _definition_.
45874         Remove useless "#undef ARGMATCH_DIE".
45875
45876 2007-11-14  Bruno Haible  <bruno@clisp.org>
45877
45878         * lib/config.charset: Update for OpenBSD 4.1.
45879         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
45880
45881 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
45882
45883         Document 64-bit #if problems in stdint.texi.
45884         * doc/headers/stdint.texi (stdint.h): Mention problems with
45885         64-bit-#if, and how to work around them.
45886
45887         Don't insist on 'long long int' support in the preprocessor.  It
45888         breaks too many things.  For example, PRIdMAX still uses a 'long
45889         long int' format with the latest Sun compiler, even though
45890         HAVE_LONG_LONG_INT isn't defined due to that compiler's
45891         preprocessor problem.  This causes the latest coreutils to dump
45892         core on Solaris 10 sparc with the Sun C compiler.
45893         Instead, fix the 2007-10-16 problem in a different way, by evaluating
45894         the troublesome expressions at configure-time, not at #if-time.
45895         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
45896         preprocessor.
45897         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
45898         compile-time C checks, done at 'configure'-time.
45899         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
45900         * modules/inttypes (Makefile): Substitute the new symbols that
45901         gl_INTTYPES_H now generates.
45902         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
45903
45904 2007-11-12  Bruno Haible  <bruno@clisp.org>
45905
45906         Tests for Unicode character classification functions.
45907
45908         * modules/unictype/bidicategory-byname-tests: New file.
45909         * modules/unictype/bidicategory-name-tests: New file.
45910         * modules/unictype/bidicategory-of-tests: New file.
45911         * modules/unictype/bidicategory-test-tests: New file.
45912         * modules/unictype/block-list-tests: New file.
45913         * modules/unictype/block-of-tests: New file.
45914         * modules/unictype/block-test-tests: New file.
45915         * modules/unictype/category-C-tests: New file.
45916         * modules/unictype/category-Cc-tests: New file.
45917         * modules/unictype/category-Cf-tests: New file.
45918         * modules/unictype/category-Cn-tests: New file.
45919         * modules/unictype/category-Co-tests: New file.
45920         * modules/unictype/category-Cs-tests: New file.
45921         * modules/unictype/category-L-tests: New file.
45922         * modules/unictype/category-Ll-tests: New file.
45923         * modules/unictype/category-Lm-tests: New file.
45924         * modules/unictype/category-Lo-tests: New file.
45925         * modules/unictype/category-Lt-tests: New file.
45926         * modules/unictype/category-Lu-tests: New file.
45927         * modules/unictype/category-M-tests: New file.
45928         * modules/unictype/category-Mc-tests: New file.
45929         * modules/unictype/category-Me-tests: New file.
45930         * modules/unictype/category-Mn-tests: New file.
45931         * modules/unictype/category-N-tests: New file.
45932         * modules/unictype/category-Nd-tests: New file.
45933         * modules/unictype/category-Nl-tests: New file.
45934         * modules/unictype/category-No-tests: New file.
45935         * modules/unictype/category-P-tests: New file.
45936         * modules/unictype/category-Pc-tests: New file.
45937         * modules/unictype/category-Pd-tests: New file.
45938         * modules/unictype/category-Pe-tests: New file.
45939         * modules/unictype/category-Pf-tests: New file.
45940         * modules/unictype/category-Pi-tests: New file.
45941         * modules/unictype/category-Po-tests: New file.
45942         * modules/unictype/category-Ps-tests: New file.
45943         * modules/unictype/category-S-tests: New file.
45944         * modules/unictype/category-Sc-tests: New file.
45945         * modules/unictype/category-Sk-tests: New file.
45946         * modules/unictype/category-Sm-tests: New file.
45947         * modules/unictype/category-So-tests: New file.
45948         * modules/unictype/category-Z-tests: New file.
45949         * modules/unictype/category-Zl-tests: New file.
45950         * modules/unictype/category-Zp-tests: New file.
45951         * modules/unictype/category-Zs-tests: New file.
45952         * modules/unictype/category-and-not-tests: New file.
45953         * modules/unictype/category-and-tests: New file.
45954         * modules/unictype/category-byname-tests: New file.
45955         * modules/unictype/category-name-tests: New file.
45956         * modules/unictype/category-none-tests: New file.
45957         * modules/unictype/category-of-tests: New file.
45958         * modules/unictype/category-or-tests: New file.
45959         * modules/unictype/category-test-withtable-tests: New file.
45960         * modules/unictype/combining-class-tests: New file.
45961         * modules/unictype/ctype-alnum-tests: New file.
45962         * modules/unictype/ctype-alpha-tests: New file.
45963         * modules/unictype/ctype-blank-tests: New file.
45964         * modules/unictype/ctype-cntrl-tests: New file.
45965         * modules/unictype/ctype-digit-tests: New file.
45966         * modules/unictype/ctype-graph-tests: New file.
45967         * modules/unictype/ctype-lower-tests: New file.
45968         * modules/unictype/ctype-print-tests: New file.
45969         * modules/unictype/ctype-punct-tests: New file.
45970         * modules/unictype/ctype-space-tests: New file.
45971         * modules/unictype/ctype-upper-tests: New file.
45972         * modules/unictype/ctype-xdigit-tests: New file.
45973         * modules/unictype/decimal-digit-tests: New file.
45974         * modules/unictype/digit-tests: New file.
45975         * modules/unictype/mirror-tests: New file.
45976         * modules/unictype/numeric-tests: New file.
45977         * modules/unictype/property-alphabetic-tests: New file.
45978         * modules/unictype/property-ascii-hex-digit-tests: New file.
45979         * modules/unictype/property-bidi-arabic-digit-tests: New file.
45980         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
45981         * modules/unictype/property-bidi-block-separator-tests: New file.
45982         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
45983         * modules/unictype/property-bidi-common-separator-tests: New file.
45984         * modules/unictype/property-bidi-control-tests: New file.
45985         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
45986         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
45987         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
45988         * modules/unictype/property-bidi-european-digit-tests: New file.
45989         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
45990         * modules/unictype/property-bidi-left-to-right-tests: New file.
45991         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
45992         * modules/unictype/property-bidi-other-neutral-tests: New file.
45993         * modules/unictype/property-bidi-pdf-tests: New file.
45994         * modules/unictype/property-bidi-segment-separator-tests: New file.
45995         * modules/unictype/property-bidi-whitespace-tests: New file.
45996         * modules/unictype/property-byname-tests: New file.
45997         * modules/unictype/property-combining-tests: New file.
45998         * modules/unictype/property-composite-tests: New file.
45999         * modules/unictype/property-currency-symbol-tests: New file.
46000         * modules/unictype/property-dash-tests: New file.
46001         * modules/unictype/property-decimal-digit-tests: New file.
46002         * modules/unictype/property-default-ignorable-code-point-tests: New file.
46003         * modules/unictype/property-deprecated-tests: New file.
46004         * modules/unictype/property-diacritic-tests: New file.
46005         * modules/unictype/property-extender-tests: New file.
46006         * modules/unictype/property-format-control-tests: New file.
46007         * modules/unictype/property-grapheme-base-tests: New file.
46008         * modules/unictype/property-grapheme-extend-tests: New file.
46009         * modules/unictype/property-grapheme-link-tests: New file.
46010         * modules/unictype/property-hex-digit-tests: New file.
46011         * modules/unictype/property-hyphen-tests: New file.
46012         * modules/unictype/property-id-continue-tests: New file.
46013         * modules/unictype/property-id-start-tests: New file.
46014         * modules/unictype/property-ideographic-tests: New file.
46015         * modules/unictype/property-ids-binary-operator-tests: New file.
46016         * modules/unictype/property-ids-trinary-operator-tests: New file.
46017         * modules/unictype/property-ignorable-control-tests: New file.
46018         * modules/unictype/property-iso-control-tests: New file.
46019         * modules/unictype/property-join-control-tests: New file.
46020         * modules/unictype/property-left-of-pair-tests: New file.
46021         * modules/unictype/property-line-separator-tests: New file.
46022         * modules/unictype/property-logical-order-exception-tests: New file.
46023         * modules/unictype/property-lowercase-tests: New file.
46024         * modules/unictype/property-math-tests: New file.
46025         * modules/unictype/property-non-break-tests: New file.
46026         * modules/unictype/property-not-a-character-tests: New file.
46027         * modules/unictype/property-numeric-tests: New file.
46028         * modules/unictype/property-other-alphabetic-tests: New file.
46029         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
46030         * modules/unictype/property-other-grapheme-extend-tests: New file.
46031         * modules/unictype/property-other-id-continue-tests: New file.
46032         * modules/unictype/property-other-id-start-tests: New file.
46033         * modules/unictype/property-other-lowercase-tests: New file.
46034         * modules/unictype/property-other-math-tests: New file.
46035         * modules/unictype/property-other-uppercase-tests: New file.
46036         * modules/unictype/property-paired-punctuation-tests: New file.
46037         * modules/unictype/property-paragraph-separator-tests: New file.
46038         * modules/unictype/property-pattern-syntax-tests: New file.
46039         * modules/unictype/property-pattern-white-space-tests: New file.
46040         * modules/unictype/property-private-use-tests: New file.
46041         * modules/unictype/property-punctuation-tests: New file.
46042         * modules/unictype/property-quotation-mark-tests: New file.
46043         * modules/unictype/property-radical-tests: New file.
46044         * modules/unictype/property-sentence-terminal-tests: New file.
46045         * modules/unictype/property-soft-dotted-tests: New file.
46046         * modules/unictype/property-space-tests: New file.
46047         * modules/unictype/property-terminal-punctuation-tests: New file.
46048         * modules/unictype/property-test-tests: New file.
46049         * modules/unictype/property-titlecase-tests: New file.
46050         * modules/unictype/property-unassigned-code-value-tests: New file.
46051         * modules/unictype/property-unified-ideograph-tests: New file.
46052         * modules/unictype/property-uppercase-tests: New file.
46053         * modules/unictype/property-variation-selector-tests: New file.
46054         * modules/unictype/property-white-space-tests: New file.
46055         * modules/unictype/property-xid-continue-tests: New file.
46056         * modules/unictype/property-xid-start-tests: New file.
46057         * modules/unictype/property-zero-width-tests: New file.
46058         * modules/unictype/scripts-tests: New file.
46059         * modules/unictype/syntax-c-ident-tests: New file.
46060         * modules/unictype/syntax-c-whitespace-tests: New file.
46061         * modules/unictype/syntax-java-ident-tests: New file.
46062         * modules/unictype/syntax-java-whitespace-tests: New file.
46063         * tests/unictype/test-bidi_byname.c: New file.
46064         * tests/unictype/test-bidi_name.c: New file.
46065         * tests/unictype/test-bidi_of.c: New file.
46066         * tests/unictype/test-bidi_test.c: New file.
46067         * tests/unictype/test-block_list.c: New file.
46068         * tests/unictype/test-block_of.c: New file.
46069         * tests/unictype/test-block_test.c: New file.
46070         * tests/unictype/test-categ_and.c: New file.
46071         * tests/unictype/test-categ_and_not.c: New file.
46072         * tests/unictype/test-categ_byname.c: New file.
46073         * tests/unictype/test-categ_name.c: New file.
46074         * tests/unictype/test-categ_none.c: New file.
46075         * tests/unictype/test-categ_of.c: New file.
46076         * tests/unictype/test-categ_or.c: New file.
46077         * tests/unictype/test-categ_test_withtable.c: New file.
46078         * tests/unictype/test-combining.c: New file.
46079         * tests/unictype/test-decdigit.c: New file.
46080         * tests/unictype/test-digit.c: New file.
46081         * tests/unictype/test-mirror.c: New file.
46082         * tests/unictype/test-numeric.c: New file.
46083         * tests/unictype/test-pr_byname.c: New file.
46084         * tests/unictype/test-pr_test.c: New file.
46085         * tests/unictype/test-predicate-part1.h: New file.
46086         * tests/unictype/test-predicate-part2.h: New file.
46087         * tests/unictype/test-scripts.c: New file.
46088         * tests/unictype/test-sy_c_ident.c: New file.
46089         * tests/unictype/test-sy_java_ident.c: New file.
46090
46091         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
46092         for Unicode 5.0.0.
46093         * tests/unictype/test-categ_Cc.c: Likewise.
46094         * tests/unictype/test-categ_Cf.c: Likewise.
46095         * tests/unictype/test-categ_Cn.c: Likewise.
46096         * tests/unictype/test-categ_Co.c: Likewise.
46097         * tests/unictype/test-categ_Cs.c: Likewise.
46098         * tests/unictype/test-categ_L.c: Likewise.
46099         * tests/unictype/test-categ_Ll.c: Likewise.
46100         * tests/unictype/test-categ_Lm.c: Likewise.
46101         * tests/unictype/test-categ_Lo.c: Likewise.
46102         * tests/unictype/test-categ_Lt.c: Likewise.
46103         * tests/unictype/test-categ_Lu.c: Likewise.
46104         * tests/unictype/test-categ_M.c: Likewise.
46105         * tests/unictype/test-categ_Mc.c: Likewise.
46106         * tests/unictype/test-categ_Me.c: Likewise.
46107         * tests/unictype/test-categ_Mn.c: Likewise.
46108         * tests/unictype/test-categ_N.c: Likewise.
46109         * tests/unictype/test-categ_Nd.c: Likewise.
46110         * tests/unictype/test-categ_Nl.c: Likewise.
46111         * tests/unictype/test-categ_No.c: Likewise.
46112         * tests/unictype/test-categ_P.c: Likewise.
46113         * tests/unictype/test-categ_Pc.c: Likewise.
46114         * tests/unictype/test-categ_Pd.c: Likewise.
46115         * tests/unictype/test-categ_Pe.c: Likewise.
46116         * tests/unictype/test-categ_Pf.c: Likewise.
46117         * tests/unictype/test-categ_Pi.c: Likewise.
46118         * tests/unictype/test-categ_Po.c: Likewise.
46119         * tests/unictype/test-categ_Ps.c: Likewise.
46120         * tests/unictype/test-categ_S.c: Likewise.
46121         * tests/unictype/test-categ_Sc.c: Likewise.
46122         * tests/unictype/test-categ_Sk.c: Likewise.
46123         * tests/unictype/test-categ_Sm.c: Likewise.
46124         * tests/unictype/test-categ_So.c: Likewise.
46125         * tests/unictype/test-categ_Z.c: Likewise.
46126         * tests/unictype/test-categ_Zl.c: Likewise.
46127         * tests/unictype/test-categ_Zp.c: Likewise.
46128         * tests/unictype/test-categ_Zs.c: Likewise.
46129         * tests/unictype/test-ctype_alnum.c: Likewise.
46130         * tests/unictype/test-ctype_alpha.c: Likewise.
46131         * tests/unictype/test-ctype_blank.c: Likewise.
46132         * tests/unictype/test-ctype_cntrl.c: Likewise.
46133         * tests/unictype/test-ctype_digit.c: Likewise.
46134         * tests/unictype/test-ctype_graph.c: Likewise.
46135         * tests/unictype/test-ctype_lower.c: Likewise.
46136         * tests/unictype/test-ctype_print.c: Likewise.
46137         * tests/unictype/test-ctype_punct.c: Likewise.
46138         * tests/unictype/test-ctype_space.c: Likewise.
46139         * tests/unictype/test-ctype_upper.c: Likewise.
46140         * tests/unictype/test-ctype_xdigit.c: Likewise.
46141         * tests/unictype/test-decdigit.h: Likewise.
46142         * tests/unictype/test-digit.h: Likewise.
46143         * tests/unictype/test-numeric.h: Likewise.
46144         * tests/unictype/test-pr_alphabetic.c: Likewise.
46145         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
46146         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
46147         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
46148         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
46149         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
46150         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
46151         * tests/unictype/test-pr_bidi_control.c: Likewise.
46152         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
46153         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
46154         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
46155         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
46156         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
46157         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
46158         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
46159         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
46160         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
46161         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
46162         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
46163         * tests/unictype/test-pr_combining.c: Likewise.
46164         * tests/unictype/test-pr_composite.c: Likewise.
46165         * tests/unictype/test-pr_currency_symbol.c: Likewise.
46166         * tests/unictype/test-pr_dash.c: Likewise.
46167         * tests/unictype/test-pr_decimal_digit.c: Likewise.
46168         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
46169         * tests/unictype/test-pr_deprecated.c: Likewise.
46170         * tests/unictype/test-pr_diacritic.c: Likewise.
46171         * tests/unictype/test-pr_extender.c: Likewise.
46172         * tests/unictype/test-pr_format_control.c: Likewise.
46173         * tests/unictype/test-pr_grapheme_base.c: Likewise.
46174         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
46175         * tests/unictype/test-pr_grapheme_link.c: Likewise.
46176         * tests/unictype/test-pr_hex_digit.c: Likewise.
46177         * tests/unictype/test-pr_hyphen.c: Likewise.
46178         * tests/unictype/test-pr_id_continue.c: Likewise.
46179         * tests/unictype/test-pr_id_start.c: Likewise.
46180         * tests/unictype/test-pr_ideographic.c: Likewise.
46181         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
46182         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
46183         * tests/unictype/test-pr_ignorable_control.c: Likewise.
46184         * tests/unictype/test-pr_iso_control.c: Likewise.
46185         * tests/unictype/test-pr_join_control.c: Likewise.
46186         * tests/unictype/test-pr_left_of_pair.c: Likewise.
46187         * tests/unictype/test-pr_line_separator.c: Likewise.
46188         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
46189         * tests/unictype/test-pr_lowercase.c: Likewise.
46190         * tests/unictype/test-pr_math.c: Likewise.
46191         * tests/unictype/test-pr_non_break.c: Likewise.
46192         * tests/unictype/test-pr_not_a_character.c: Likewise.
46193         * tests/unictype/test-pr_numeric.c: Likewise.
46194         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
46195         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
46196         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
46197         * tests/unictype/test-pr_other_id_continue.c: Likewise.
46198         * tests/unictype/test-pr_other_id_start.c: Likewise.
46199         * tests/unictype/test-pr_other_lowercase.c: Likewise.
46200         * tests/unictype/test-pr_other_math.c: Likewise.
46201         * tests/unictype/test-pr_other_uppercase.c: Likewise.
46202         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
46203         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
46204         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
46205         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
46206         * tests/unictype/test-pr_private_use.c: Likewise.
46207         * tests/unictype/test-pr_punctuation.c: Likewise.
46208         * tests/unictype/test-pr_quotation_mark.c: Likewise.
46209         * tests/unictype/test-pr_radical.c: Likewise.
46210         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
46211         * tests/unictype/test-pr_soft_dotted.c: Likewise.
46212         * tests/unictype/test-pr_space.c: Likewise.
46213         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
46214         * tests/unictype/test-pr_titlecase.c: Likewise.
46215         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
46216         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
46217         * tests/unictype/test-pr_uppercase.c: Likewise.
46218         * tests/unictype/test-pr_variation_selector.c: Likewise.
46219         * tests/unictype/test-pr_white_space.c: Likewise.
46220         * tests/unictype/test-pr_xid_continue.c: Likewise.
46221         * tests/unictype/test-pr_xid_start.c: Likewise.
46222         * tests/unictype/test-pr_zero_width.c: Likewise.
46223         * tests/unictype/test-sy_c_whitespace.c: Likewise.
46224         * tests/unictype/test-sy_java_whitespace.c: Likewise.
46225
46226 2007-11-12  Bruno Haible  <bruno@clisp.org>
46227
46228         Unicode character classification functions.
46229         * lib/unictype.h: New file.
46230         * modules/unictype/base: New file.
46231         * modules/unictype/category-L: New file.
46232         * modules/unictype/category-Lu: New file.
46233         * modules/unictype/category-Ll: New file.
46234         * modules/unictype/category-Lt: New file.
46235         * modules/unictype/category-Lm: New file.
46236         * modules/unictype/category-Lo: New file.
46237         * modules/unictype/category-M: New file.
46238         * modules/unictype/category-Mn: New file.
46239         * modules/unictype/category-Mc: New file.
46240         * modules/unictype/category-Me: New file.
46241         * modules/unictype/category-N: New file.
46242         * modules/unictype/category-Nd: New file.
46243         * modules/unictype/category-Nl: New file.
46244         * modules/unictype/category-No: New file.
46245         * modules/unictype/category-P: New file.
46246         * modules/unictype/category-Pc: New file.
46247         * modules/unictype/category-Pd: New file.
46248         * modules/unictype/category-Ps: New file.
46249         * modules/unictype/category-Pe: New file.
46250         * modules/unictype/category-Pi: New file.
46251         * modules/unictype/category-Pf: New file.
46252         * modules/unictype/category-Po: New file.
46253         * modules/unictype/category-S: New file.
46254         * modules/unictype/category-Sm: New file.
46255         * modules/unictype/category-Sc: New file.
46256         * modules/unictype/category-Sk: New file.
46257         * modules/unictype/category-So: New file.
46258         * modules/unictype/category-Z: New file.
46259         * modules/unictype/category-Zs: New file.
46260         * modules/unictype/category-Zl: New file.
46261         * modules/unictype/category-Zp: New file.
46262         * modules/unictype/category-C: New file.
46263         * modules/unictype/category-Cc: New file.
46264         * modules/unictype/category-Cf: New file.
46265         * modules/unictype/category-Cs: New file.
46266         * modules/unictype/category-Co: New file.
46267         * modules/unictype/category-Cn: New file.
46268         * modules/unictype/category-or: New file.
46269         * modules/unictype/category-of: New file.
46270         * modules/unictype/category-test: New file.
46271         * modules/unictype/category-test-withtable: New file.
46272         * modules/unictype/category-byname: New file.
46273         * modules/unictype/category-none: New file.
46274         * modules/unictype/category-and: New file.
46275         * modules/unictype/category-and-not: New file.
46276         * modules/unictype/category-name: New file.
46277         * modules/unictype/combining-class: New file.
46278         * modules/unictype/category-all: New file.
46279         * modules/unictype/bidicategory-all: New file.
46280         * modules/unictype/bidicategory-byname: New file.
46281         * modules/unictype/bidicategory-name: New file.
46282         * modules/unictype/bidicategory-of: New file.
46283         * modules/unictype/bidicategory-test: New file.
46284         * modules/unictype/decimal-digit: New file.
46285         * modules/unictype/digit: New file.
46286         * modules/unictype/numeric: New file.
46287         * modules/unictype/mirror: New file.
46288         * modules/unictype/property-white-space: New file.
46289         * modules/unictype/property-alphabetic: New file.
46290         * modules/unictype/property-other-alphabetic: New file.
46291         * modules/unictype/property-not-a-character: New file.
46292         * modules/unictype/property-default-ignorable-code-point: New file.
46293         * modules/unictype/property-other-default-ignorable-code-point: New
46294         file.
46295         * modules/unictype/property-deprecated: New file.
46296         * modules/unictype/property-logical-order-exception: New file.
46297         * modules/unictype/property-variation-selector: New file.
46298         * modules/unictype/property-private-use: New file.
46299         * modules/unictype/property-unassigned-code-value: New file.
46300         * modules/unictype/property-uppercase: New file.
46301         * modules/unictype/property-other-uppercase: New file.
46302         * modules/unictype/property-lowercase: New file.
46303         * modules/unictype/property-other-lowercase: New file.
46304         * modules/unictype/property-titlecase: New file.
46305         * modules/unictype/property-soft-dotted: New file.
46306         * modules/unictype/property-id-start: New file.
46307         * modules/unictype/property-other-id-start: New file.
46308         * modules/unictype/property-id-continue: New file.
46309         * modules/unictype/property-other-id-continue: New file.
46310         * modules/unictype/property-xid-start: New file.
46311         * modules/unictype/property-xid-continue: New file.
46312         * modules/unictype/property-pattern-white-space: New file.
46313         * modules/unictype/property-pattern-syntax: New file.
46314         * modules/unictype/property-join-control: New file.
46315         * modules/unictype/property-grapheme-base: New file.
46316         * modules/unictype/property-grapheme-extend: New file.
46317         * modules/unictype/property-other-grapheme-extend: New file.
46318         * modules/unictype/property-grapheme-link: New file.
46319         * modules/unictype/property-bidi-control: New file.
46320         * modules/unictype/property-bidi-left-to-right: New file.
46321         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
46322         * modules/unictype/property-bidi-arabic-right-to-left: New file.
46323         * modules/unictype/property-bidi-european-digit: New file.
46324         * modules/unictype/property-bidi-eur-num-separator: New file.
46325         * modules/unictype/property-bidi-eur-num-terminator: New file.
46326         * modules/unictype/property-bidi-arabic-digit: New file.
46327         * modules/unictype/property-bidi-common-separator: New file.
46328         * modules/unictype/property-bidi-block-separator: New file.
46329         * modules/unictype/property-bidi-segment-separator: New file.
46330         * modules/unictype/property-bidi-whitespace: New file.
46331         * modules/unictype/property-bidi-non-spacing-mark: New file.
46332         * modules/unictype/property-bidi-boundary-neutral: New file.
46333         * modules/unictype/property-bidi-pdf: New file.
46334         * modules/unictype/property-bidi-embedding-or-override: New file.
46335         * modules/unictype/property-bidi-other-neutral: New file.
46336         * modules/unictype/property-hex-digit: New file.
46337         * modules/unictype/property-ascii-hex-digit: New file.
46338         * modules/unictype/property-ideographic: New file.
46339         * modules/unictype/property-unified-ideograph: New file.
46340         * modules/unictype/property-radical: New file.
46341         * modules/unictype/property-ids-binary-operator: New file.
46342         * modules/unictype/property-ids-trinary-operator: New file.
46343         * modules/unictype/property-zero-width: New file.
46344         * modules/unictype/property-space: New file.
46345         * modules/unictype/property-non-break: New file.
46346         * modules/unictype/property-iso-control: New file.
46347         * modules/unictype/property-format-control: New file.
46348         * modules/unictype/property-dash: New file.
46349         * modules/unictype/property-hyphen: New file.
46350         * modules/unictype/property-punctuation: New file.
46351         * modules/unictype/property-line-separator: New file.
46352         * modules/unictype/property-paragraph-separator: New file.
46353         * modules/unictype/property-quotation-mark: New file.
46354         * modules/unictype/property-sentence-terminal: New file.
46355         * modules/unictype/property-terminal-punctuation: New file.
46356         * modules/unictype/property-currency-symbol: New file.
46357         * modules/unictype/property-math: New file.
46358         * modules/unictype/property-other-math: New file.
46359         * modules/unictype/property-paired-punctuation: New file.
46360         * modules/unictype/property-left-of-pair: New file.
46361         * modules/unictype/property-combining: New file.
46362         * modules/unictype/property-composite: New file.
46363         * modules/unictype/property-decimal-digit: New file.
46364         * modules/unictype/property-numeric: New file.
46365         * modules/unictype/property-diacritic: New file.
46366         * modules/unictype/property-extender: New file.
46367         * modules/unictype/property-ignorable-control: New file.
46368         * modules/unictype/property-test: New file.
46369         * modules/unictype/property-byname: New file.
46370         * modules/unictype/property-all: New file.
46371         * modules/unictype/scripts: New file.
46372         * modules/unictype/scripts-all: New file.
46373         * modules/unictype/block-of: New file.
46374         * modules/unictype/block-test: New file.
46375         * modules/unictype/block-list: New file.
46376         * modules/unictype/block-all: New file.
46377         * modules/unictype/syntax-c-whitespace: New file.
46378         * modules/unictype/syntax-java-whitespace: New file.
46379         * modules/unictype/syntax-c-ident: New file.
46380         * modules/unictype/syntax-java-ident: New file.
46381         * modules/unictype/ctype-alnum: New file.
46382         * modules/unictype/ctype-alpha: New file.
46383         * modules/unictype/ctype-cntrl: New file.
46384         * modules/unictype/ctype-digit: New file.
46385         * modules/unictype/ctype-graph: New file.
46386         * modules/unictype/ctype-lower: New file.
46387         * modules/unictype/ctype-print: New file.
46388         * modules/unictype/ctype-punct: New file.
46389         * modules/unictype/ctype-space: New file.
46390         * modules/unictype/ctype-upper: New file.
46391         * modules/unictype/ctype-xdigit: New file.
46392         * modules/unictype/ctype-blank: New file.
46393         * lib/unictype/bidi_byname.c: New file.
46394         * lib/unictype/bidi_name.c: New file.
46395         * lib/unictype/bidi_of.c: New file.
46396         * lib/unictype/bidi_test.c: New file.
46397         * lib/unictype/bitmap.h: New file.
46398         * lib/unictype/block_test.c: New file.
46399         * lib/unictype/blocks.c: New file.
46400         * lib/unictype/categ_C.c: New file.
46401         * lib/unictype/categ_Cc.c: New file.
46402         * lib/unictype/categ_Cf.c: New file.
46403         * lib/unictype/categ_Cn.c: New file.
46404         * lib/unictype/categ_Co.c: New file.
46405         * lib/unictype/categ_Cs.c: New file.
46406         * lib/unictype/categ_L.c: New file.
46407         * lib/unictype/categ_Ll.c: New file.
46408         * lib/unictype/categ_Lm.c: New file.
46409         * lib/unictype/categ_Lo.c: New file.
46410         * lib/unictype/categ_Lt.c: New file.
46411         * lib/unictype/categ_Lu.c: New file.
46412         * lib/unictype/categ_M.c: New file.
46413         * lib/unictype/categ_Mc.c: New file.
46414         * lib/unictype/categ_Me.c: New file.
46415         * lib/unictype/categ_Mn.c: New file.
46416         * lib/unictype/categ_N.c: New file.
46417         * lib/unictype/categ_Nd.c: New file.
46418         * lib/unictype/categ_Nl.c: New file.
46419         * lib/unictype/categ_No.c: New file.
46420         * lib/unictype/categ_P.c: New file.
46421         * lib/unictype/categ_Pc.c: New file.
46422         * lib/unictype/categ_Pd.c: New file.
46423         * lib/unictype/categ_Pe.c: New file.
46424         * lib/unictype/categ_Pf.c: New file.
46425         * lib/unictype/categ_Pi.c: New file.
46426         * lib/unictype/categ_Po.c: New file.
46427         * lib/unictype/categ_Ps.c: New file.
46428         * lib/unictype/categ_S.c: New file.
46429         * lib/unictype/categ_Sc.c: New file.
46430         * lib/unictype/categ_Sk.c: New file.
46431         * lib/unictype/categ_Sm.c: New file.
46432         * lib/unictype/categ_So.c: New file.
46433         * lib/unictype/categ_Z.c: New file.
46434         * lib/unictype/categ_Zl.c: New file.
46435         * lib/unictype/categ_Zp.c: New file.
46436         * lib/unictype/categ_Zs.c: New file.
46437         * lib/unictype/categ_and.c: New file.
46438         * lib/unictype/categ_and_not.c: New file.
46439         * lib/unictype/categ_byname.c: New file.
46440         * lib/unictype/categ_name.c: New file.
46441         * lib/unictype/categ_none.c: New file.
46442         * lib/unictype/categ_of.c: New file.
46443         * lib/unictype/categ_or.c: New file.
46444         * lib/unictype/categ_test.c: New file.
46445         * lib/unictype/combining.c: New file.
46446         * lib/unictype/ctype_alnum.c: New file.
46447         * lib/unictype/ctype_alpha.c: New file.
46448         * lib/unictype/ctype_blank.c: New file.
46449         * lib/unictype/ctype_cntrl.c: New file.
46450         * lib/unictype/ctype_digit.c: New file.
46451         * lib/unictype/ctype_graph.c: New file.
46452         * lib/unictype/ctype_lower.c: New file.
46453         * lib/unictype/ctype_print.c: New file.
46454         * lib/unictype/ctype_punct.c: New file.
46455         * lib/unictype/ctype_space.c: New file.
46456         * lib/unictype/ctype_upper.c: New file.
46457         * lib/unictype/ctype_xdigit.c: New file.
46458         * lib/unictype/decdigit.c: New file.
46459         * lib/unictype/digit.c: New file.
46460         * lib/unictype/identsyntaxmap.h: New file.
46461         * lib/unictype/mirror.c: New file.
46462         * lib/unictype/numeric.c: New file.
46463         * lib/unictype/pr_alphabetic.c: New file.
46464         * lib/unictype/pr_ascii_hex_digit.c: New file.
46465         * lib/unictype/pr_bidi_arabic_digit.c: New file.
46466         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
46467         * lib/unictype/pr_bidi_block_separator.c: New file.
46468         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
46469         * lib/unictype/pr_bidi_common_separator.c: New file.
46470         * lib/unictype/pr_bidi_control.c: New file.
46471         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
46472         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
46473         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
46474         * lib/unictype/pr_bidi_european_digit.c: New file.
46475         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
46476         * lib/unictype/pr_bidi_left_to_right.c: New file.
46477         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
46478         * lib/unictype/pr_bidi_other_neutral.c: New file.
46479         * lib/unictype/pr_bidi_pdf.c: New file.
46480         * lib/unictype/pr_bidi_segment_separator.c: New file.
46481         * lib/unictype/pr_bidi_whitespace.c: New file.
46482         * lib/unictype/pr_byname.c: New file.
46483         * lib/unictype/pr_byname.gperf: New file.
46484         * lib/unictype/pr_combining.c: New file.
46485         * lib/unictype/pr_composite.c: New file.
46486         * lib/unictype/pr_currency_symbol.c: New file.
46487         * lib/unictype/pr_dash.c: New file.
46488         * lib/unictype/pr_decimal_digit.c: New file.
46489         * lib/unictype/pr_default_ignorable_code_point.c: New file.
46490         * lib/unictype/pr_deprecated.c: New file.
46491         * lib/unictype/pr_diacritic.c: New file.
46492         * lib/unictype/pr_extender.c: New file.
46493         * lib/unictype/pr_format_control.c: New file.
46494         * lib/unictype/pr_grapheme_base.c: New file.
46495         * lib/unictype/pr_grapheme_extend.c: New file.
46496         * lib/unictype/pr_grapheme_link.c: New file.
46497         * lib/unictype/pr_hex_digit.c: New file.
46498         * lib/unictype/pr_hyphen.c: New file.
46499         * lib/unictype/pr_id_continue.c: New file.
46500         * lib/unictype/pr_id_start.c: New file.
46501         * lib/unictype/pr_ideographic.c: New file.
46502         * lib/unictype/pr_ids_binary_operator.c: New file.
46503         * lib/unictype/pr_ids_trinary_operator.c: New file.
46504         * lib/unictype/pr_ignorable_control.c: New file.
46505         * lib/unictype/pr_iso_control.c: New file.
46506         * lib/unictype/pr_join_control.c: New file.
46507         * lib/unictype/pr_left_of_pair.c: New file.
46508         * lib/unictype/pr_line_separator.c: New file.
46509         * lib/unictype/pr_logical_order_exception.c: New file.
46510         * lib/unictype/pr_lowercase.c: New file.
46511         * lib/unictype/pr_math.c: New file.
46512         * lib/unictype/pr_non_break.c: New file.
46513         * lib/unictype/pr_not_a_character.c: New file.
46514         * lib/unictype/pr_numeric.c: New file.
46515         * lib/unictype/pr_other_alphabetic.c: New file.
46516         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
46517         * lib/unictype/pr_other_grapheme_extend.c: New file.
46518         * lib/unictype/pr_other_id_continue.c: New file.
46519         * lib/unictype/pr_other_id_start.c: New file.
46520         * lib/unictype/pr_other_lowercase.c: New file.
46521         * lib/unictype/pr_other_math.c: New file.
46522         * lib/unictype/pr_other_uppercase.c: New file.
46523         * lib/unictype/pr_paired_punctuation.c: New file.
46524         * lib/unictype/pr_paragraph_separator.c: New file.
46525         * lib/unictype/pr_pattern_syntax.c: New file.
46526         * lib/unictype/pr_pattern_white_space.c: New file.
46527         * lib/unictype/pr_private_use.c: New file.
46528         * lib/unictype/pr_punctuation.c: New file.
46529         * lib/unictype/pr_quotation_mark.c: New file.
46530         * lib/unictype/pr_radical.c: New file.
46531         * lib/unictype/pr_sentence_terminal.c: New file.
46532         * lib/unictype/pr_soft_dotted.c: New file.
46533         * lib/unictype/pr_space.c: New file.
46534         * lib/unictype/pr_terminal_punctuation.c: New file.
46535         * lib/unictype/pr_test.c: New file.
46536         * lib/unictype/pr_titlecase.c: New file.
46537         * lib/unictype/pr_unassigned_code_value.c: New file.
46538         * lib/unictype/pr_unified_ideograph.c: New file.
46539         * lib/unictype/pr_uppercase.c: New file.
46540         * lib/unictype/pr_variation_selector.c: New file.
46541         * lib/unictype/pr_white_space.c: New file.
46542         * lib/unictype/pr_xid_continue.c: New file.
46543         * lib/unictype/pr_xid_start.c: New file.
46544         * lib/unictype/pr_zero_width.c: New file.
46545         * lib/unictype/scripts.c: New file.
46546         * lib/unictype/sy_c_ident.c: New file.
46547         * lib/unictype/sy_c_whitespace.c: New file.
46548         * lib/unictype/sy_java_ident.c: New file.
46549         * lib/unictype/sy_java_whitespace.c: New file.
46550
46551         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
46552         Unicode 5.0.0.
46553         * lib/unictype/blocks.h: Likewise.
46554         * lib/unictype/categ_C.h: Likewise.
46555         * lib/unictype/categ_Cc.h: Likewise.
46556         * lib/unictype/categ_Cf.h: Likewise.
46557         * lib/unictype/categ_Cn.h: Likewise.
46558         * lib/unictype/categ_Co.h: Likewise.
46559         * lib/unictype/categ_Cs.h: Likewise.
46560         * lib/unictype/categ_L.h: Likewise.
46561         * lib/unictype/categ_Ll.h: Likewise.
46562         * lib/unictype/categ_Lm.h: Likewise.
46563         * lib/unictype/categ_Lo.h: Likewise.
46564         * lib/unictype/categ_Lt.h: Likewise.
46565         * lib/unictype/categ_Lu.h: Likewise.
46566         * lib/unictype/categ_M.h: Likewise.
46567         * lib/unictype/categ_Mc.h: Likewise.
46568         * lib/unictype/categ_Me.h: Likewise.
46569         * lib/unictype/categ_Mn.h: Likewise.
46570         * lib/unictype/categ_N.h: Likewise.
46571         * lib/unictype/categ_Nd.h: Likewise.
46572         * lib/unictype/categ_Nl.h: Likewise.
46573         * lib/unictype/categ_No.h: Likewise.
46574         * lib/unictype/categ_P.h: Likewise.
46575         * lib/unictype/categ_Pc.h: Likewise.
46576         * lib/unictype/categ_Pd.h: Likewise.
46577         * lib/unictype/categ_Pe.h: Likewise.
46578         * lib/unictype/categ_Pf.h: Likewise.
46579         * lib/unictype/categ_Pi.h: Likewise.
46580         * lib/unictype/categ_Po.h: Likewise.
46581         * lib/unictype/categ_Ps.h: Likewise.
46582         * lib/unictype/categ_S.h: Likewise.
46583         * lib/unictype/categ_Sc.h: Likewise.
46584         * lib/unictype/categ_Sk.h: Likewise.
46585         * lib/unictype/categ_Sm.h: Likewise.
46586         * lib/unictype/categ_So.h: Likewise.
46587         * lib/unictype/categ_Z.h: Likewise.
46588         * lib/unictype/categ_Zl.h: Likewise.
46589         * lib/unictype/categ_Zp.h: Likewise.
46590         * lib/unictype/categ_Zs.h: Likewise.
46591         * lib/unictype/categ_of.h: Likewise.
46592         * lib/unictype/combining.h: Likewise.
46593         * lib/unictype/ctype_alnum.h: Likewise.
46594         * lib/unictype/ctype_alpha.h: Likewise.
46595         * lib/unictype/ctype_blank.h: Likewise.
46596         * lib/unictype/ctype_cntrl.h: Likewise.
46597         * lib/unictype/ctype_digit.h: Likewise.
46598         * lib/unictype/ctype_graph.h: Likewise.
46599         * lib/unictype/ctype_lower.h: Likewise.
46600         * lib/unictype/ctype_print.h: Likewise.
46601         * lib/unictype/ctype_punct.h: Likewise.
46602         * lib/unictype/ctype_space.h: Likewise.
46603         * lib/unictype/ctype_upper.h: Likewise.
46604         * lib/unictype/ctype_xdigit.h: Likewise.
46605         * lib/unictype/decdigit.h: Likewise.
46606         * lib/unictype/digit.h: Likewise.
46607         * lib/unictype/mirror.h: Likewise.
46608         * lib/unictype/numeric.h: Likewise.
46609         * lib/unictype/pr_alphabetic.h: Likewise.
46610         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
46611         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
46612         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
46613         * lib/unictype/pr_bidi_block_separator.h: Likewise.
46614         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
46615         * lib/unictype/pr_bidi_common_separator.h: Likewise.
46616         * lib/unictype/pr_bidi_control.h: Likewise.
46617         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
46618         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
46619         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
46620         * lib/unictype/pr_bidi_european_digit.h: Likewise.
46621         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
46622         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
46623         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
46624         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
46625         * lib/unictype/pr_bidi_pdf.h: Likewise.
46626         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
46627         * lib/unictype/pr_bidi_whitespace.h: Likewise.
46628         * lib/unictype/pr_combining.h: Likewise.
46629         * lib/unictype/pr_composite.h: Likewise.
46630         * lib/unictype/pr_currency_symbol.h: Likewise.
46631         * lib/unictype/pr_dash.h: Likewise.
46632         * lib/unictype/pr_decimal_digit.h: Likewise.
46633         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
46634         * lib/unictype/pr_deprecated.h: Likewise.
46635         * lib/unictype/pr_diacritic.h: Likewise.
46636         * lib/unictype/pr_extender.h: Likewise.
46637         * lib/unictype/pr_format_control.h: Likewise.
46638         * lib/unictype/pr_grapheme_base.h: Likewise.
46639         * lib/unictype/pr_grapheme_extend.h: Likewise.
46640         * lib/unictype/pr_grapheme_link.h: Likewise.
46641         * lib/unictype/pr_hex_digit.h: Likewise.
46642         * lib/unictype/pr_hyphen.h: Likewise.
46643         * lib/unictype/pr_id_continue.h: Likewise.
46644         * lib/unictype/pr_id_start.h: Likewise.
46645         * lib/unictype/pr_ideographic.h: Likewise.
46646         * lib/unictype/pr_ids_binary_operator.h: Likewise.
46647         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
46648         * lib/unictype/pr_ignorable_control.h: Likewise.
46649         * lib/unictype/pr_iso_control.h: Likewise.
46650         * lib/unictype/pr_join_control.h: Likewise.
46651         * lib/unictype/pr_left_of_pair.h: Likewise.
46652         * lib/unictype/pr_line_separator.h: Likewise.
46653         * lib/unictype/pr_logical_order_exception.h: Likewise.
46654         * lib/unictype/pr_lowercase.h: Likewise.
46655         * lib/unictype/pr_math.h: Likewise.
46656         * lib/unictype/pr_non_break.h: Likewise.
46657         * lib/unictype/pr_not_a_character.h: Likewise.
46658         * lib/unictype/pr_numeric.h: Likewise.
46659         * lib/unictype/pr_other_alphabetic.h: Likewise.
46660         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
46661         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
46662         * lib/unictype/pr_other_id_continue.h: Likewise.
46663         * lib/unictype/pr_other_id_start.h: Likewise.
46664         * lib/unictype/pr_other_lowercase.h: Likewise.
46665         * lib/unictype/pr_other_math.h: Likewise.
46666         * lib/unictype/pr_other_uppercase.h: Likewise.
46667         * lib/unictype/pr_paired_punctuation.h: Likewise.
46668         * lib/unictype/pr_paragraph_separator.h: Likewise.
46669         * lib/unictype/pr_pattern_syntax.h: Likewise.
46670         * lib/unictype/pr_pattern_white_space.h: Likewise.
46671         * lib/unictype/pr_private_use.h: Likewise.
46672         * lib/unictype/pr_punctuation.h: Likewise.
46673         * lib/unictype/pr_quotation_mark.h: Likewise.
46674         * lib/unictype/pr_radical.h: Likewise.
46675         * lib/unictype/pr_sentence_terminal.h: Likewise.
46676         * lib/unictype/pr_soft_dotted.h: Likewise.
46677         * lib/unictype/pr_space.h: Likewise.
46678         * lib/unictype/pr_terminal_punctuation.h: Likewise.
46679         * lib/unictype/pr_titlecase.h: Likewise.
46680         * lib/unictype/pr_unassigned_code_value.h: Likewise.
46681         * lib/unictype/pr_unified_ideograph.h: Likewise.
46682         * lib/unictype/pr_uppercase.h: Likewise.
46683         * lib/unictype/pr_variation_selector.h: Likewise.
46684         * lib/unictype/pr_white_space.h: Likewise.
46685         * lib/unictype/pr_xid_continue.h: Likewise.
46686         * lib/unictype/pr_xid_start.h: Likewise.
46687         * lib/unictype/pr_zero_width.h: Likewise.
46688         * lib/unictype/scripts.h: Likewise.
46689         * lib/unictype/scripts_byname.gperf: Likewise.
46690         * lib/unictype/sy_c_ident.h: Likewise.
46691         * lib/unictype/sy_c_whitespace.h: Likewise.
46692         * lib/unictype/sy_java_ident.h: Likewise.
46693         * lib/unictype/sy_java_whitespace.h: Likewise.
46694
46695         * lib/unictype/Makefile: New file.
46696         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
46697         glibc.
46698         * lib/unictype/3level.h: New file, copied from glibc.
46699         * lib/unictype/3levelbit.h: New file.
46700
46701 2007-11-11  Bruno Haible  <bruno@clisp.org>
46702
46703         * modules/gperf: New file.
46704         * modules/iconv_open (Depends-on): Add it.
46705         (Makefile.am): Remove the GPERF definition.
46706
46707 2007-11-11  Bruno Haible  <bruno@clisp.org>
46708
46709         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
46710         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
46711
46712 2007-11-11  Bruno Haible  <bruno@clisp.org>
46713
46714         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
46715         (usage): Remove function.
46716
46717 2007-11-11  Bruno Haible  <bruno@clisp.org>
46718
46719         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
46720         gl_FUNC_CEILF_LIBS.
46721         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
46722         gl_FUNC_CEIL_LIBS.
46723         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
46724         gl_FUNC_CEILL_LIBS.
46725         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
46726         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
46727         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
46728
46729 2007-11-11  Bruno Haible  <bruno@clisp.org>
46730
46731         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
46732         roundf were declared but do not exist on functions.
46733         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
46734         roundl were declared but do not exist on functions.
46735         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
46736         HAVE_FLOORL_AND_CEILL, respectively.
46737         Needed for Sun C on Solaris 10.
46738
46739 2007-11-11  Bruno Haible  <bruno@clisp.org>
46740
46741         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
46742         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
46743         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
46744         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
46745         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
46746         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
46747         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
46748         HAVE_DECL_ROUNDF.
46749         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
46750         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
46751         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
46752         of HAVE_DECL_ROUND*.
46753         * modules/math (Makefile.am): Update.
46754
46755 2007-11-10  Bruno Haible  <bruno@clisp.org>
46756
46757         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
46758         ptrdiff_t as m4/intl.m4.
46759
46760 2007-11-10  Jim Meyering  <meyering@redhat.com>
46761
46762         Avoid link failure for the argmatch test.
46763         * tests/test-argmatch.c (usage): Define function to avoid a link
46764         failure: argmatch_die requires a usage function.
46765
46766 2007-11-09  Bruno Haible  <bruno@clisp.org>
46767
46768         * doc/functions/snprintf.texi: Mention BeOS deficiency.
46769         * doc/functions/vsnprintf.texi: Likewise.
46770         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
46771         with a size argument < 2.
46772
46773 2007-11-09  Bruno Haible  <bruno@clisp.org>
46774
46775         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
46776         buffer. Fixes an inefficiency introduced on 2007-11-03.
46777
46778 2007-11-09  Bruno Haible  <bruno@clisp.org>
46779
46780         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
46781         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
46782
46783 2007-11-08  Jim Meyering  <meyering@redhat.com>
46784
46785         Change cache variable name prefix "jm_" to "gl_" everywhere.
46786         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
46787         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
46788         * m4/uptime.m4: s/gl_/jm_/
46789
46790 2007-11-07  Bruno Haible  <bruno@clisp.org>
46791
46792         Update to GNU gettext 0.17.
46793         * m4/intl.m4: Update to GNU gettext 0.17.
46794         * m4/po.m4: Likewise.
46795         * modules/gettext (Files): Remove m4/ulonglong.m4.
46796         (configure.ac): Require gettext infrastructure from version 0.17.
46797
46798 2007-11-06  Bruno Haible  <bruno@clisp.org>
46799
46800         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
46801         symbolic values are not defined in a public header.
46802         * lib/freadable.c (freadable) [QNX]: Likewise.
46803         * lib/freadahead.c (freadahead) [QNX]: Likewise.
46804         * lib/freading.c (freading) [QNX]: Likewise.
46805         * lib/fseterr.c (fseterr) [QNX]: Likewise.
46806         * lib/fwritable.c (fwritable) [QNX]: Likewise.
46807         * lib/fwriting.c (fwriting) [QNX]: Likewise.
46808         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
46809         Reported by Alain Magloire.
46810
46811         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
46812
46813 2007-11-05  Bruno Haible  <bruno@clisp.org>
46814
46815         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
46816         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
46817         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
46818         Reported by Eric Blake.
46819
46820 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46821             Bruno Haible  <bruno@clisp.org>
46822
46823         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
46824         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
46825         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
46826         (malloc): Undefine also before including <stdlib.h>.
46827         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
46828         Needed on OSF/1 4.0.
46829
46830 2007-11-05  Jim Meyering  <meyering@redhat.com>
46831
46832         git-version-gen: sync from coreutils.
46833         * build-aux/git-version-gen: Add comments.
46834         Change the first '-' to '.' in the snapshot version string,
46835         e.g., 6.9-377-08144 -> 6.9.377-08144
46836         Remove first parameter.
46837         Don't declare a version "-dirty" merely because a time
46838         stamp has changed.
46839
46840 2007-11-04  Bruno Haible  <bruno@clisp.org>
46841
46842         * lib/lock.h: Protect all macro definitions containing an 'if'
46843         statement through a "do { ... } while (0)".
46844         * lib/tls.h: Likewise.
46845
46846 2007-11-04  Bruno Haible  <bruno@clisp.org>
46847
46848         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
46849
46850 2007-11-04  Bruno Haible  <bruno@clisp.org>
46851
46852         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
46853         * modules/fprintf-posix (Depends-on): Add nocrash.
46854         * modules/snprintf-posix (Depends-on): Likewise.
46855         * modules/sprintf-posix (Depends-on): Likewise.
46856         * modules/vasnprintf-posix (Depends-on): Likewise.
46857         * modules/vasprintf-posix (Depends-on): Likewise.
46858         * modules/vfprintf-posix (Depends-on): Likewise.
46859         * modules/vsnprintf-posix (Depends-on): Likewise.
46860         * modules/vsprintf-posix (Depends-on): Likewise.
46861         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
46862         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46863         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46864         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46865         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46866         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46867         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46868
46869 2007-11-04  Bruno Haible  <bruno@clisp.org>
46870
46871         * modules/nocrash: New file.
46872         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
46873         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
46874
46875 2007-11-04  Bruno Haible  <bruno@clisp.org>
46876
46877         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
46878         precision handling.
46879         * tests/test-vasprintf-posix.c (test_function): Likewise.
46880         * tests/test-snprintf-posix.h (test_function): Likewise.
46881         * tests/test-sprintf-posix.h (test_function): Likewise.
46882
46883         Fix *printf behaviour for large precisions on mingw and BeOS.
46884         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
46885         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
46886         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
46887         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46888         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46889         gl_PRINTF_PRECISION and test its result. Invoke
46890         gl_PREREQ_VASNPRINTF_PRECISION.
46891         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46892         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46893         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46894         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46895         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46896         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46897         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46898         * doc/functions/fprintf.texi: Update.
46899         * doc/functions/printf.texi: Update.
46900         * doc/functions/snprintf.texi: Update.
46901         * doc/functions/sprintf.texi: Update.
46902         * doc/functions/vfprintf.texi: Update.
46903         * doc/functions/vprintf.texi: Update.
46904         * doc/functions/vsnprintf.texi: Update.
46905         * doc/functions/vsprintf.texi: Update.
46906
46907 2007-11-04  Bruno Haible  <bruno@clisp.org>
46908
46909         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
46910
46911 2007-11-04  Bruno Haible  <bruno@clisp.org>
46912
46913         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
46914         Reported by Sylvain Beucler <beuc@gnu.org>.
46915
46916 2007-11-03  Bruno Haible  <bruno@clisp.org>
46917
46918         * tests/test-fprintf-posix2.sh: New file.
46919         * tests/test-fprintf-posix2.c: New file.
46920         * modules/fprintf-posix-tests (Files): Add them.
46921         (TESTS): Add test-fprintf-posix2.sh.
46922         (configure.ac): Check for getrlimit and setrlimit.
46923         (check_PROGRAMS): Add test-fprintf-posix2.
46924
46925         * tests/test-printf-posix2.sh: New file.
46926         * tests/test-printf-posix2.c: New file.
46927         * modules/printf-posix-tests (Files): Add them.
46928         (TESTS): Add test-printf-posix2.sh.
46929         (configure.ac): Check for getrlimit and setrlimit.
46930         (check_PROGRAMS): Add test-printf-posix2.
46931
46932         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
46933         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
46934         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
46935         (decode_double): New function, copied from decode_long_double.
46936         (scale10_round_decimal_decoded): New function, extracted from
46937         scale10_round_decimal_long_double.
46938         (scale10_round_decimal_long_double): Use it.
46939         (scale10_round_decimal_double): New function.
46940         (floorlog10): New function.
46941         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
46942         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
46943         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46944         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46945         gl_PRINTF_ENOMEM and test its result. Invoke
46946         gl_PREREQ_VASNPRINTF_ENOMEM.
46947         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46948         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46949         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46950         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46951         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46952         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46953         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46954         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
46955         * modules/snprintf-posix (Depends-on): Likewise.
46956         * modules/sprintf-posix (Depends-on): Likewise.
46957         * modules/vasnprintf-posix (Depends-on): Likewise.
46958         * modules/vasprintf-posix (Depends-on): Likewise.
46959         * modules/vfprintf-posix (Depends-on): Likewise.
46960         * modules/vsnprintf-posix (Depends-on): Likewise.
46961         * modules/vsprintf-posix (Depends-on): Likewise.
46962         * doc/functions/fprintf.texi: Update.
46963         * doc/functions/printf.texi: Update.
46964         * doc/functions/snprintf.texi: Update.
46965         * doc/functions/sprintf.texi: Update.
46966         * doc/functions/vfprintf.texi: Update.
46967         * doc/functions/vprintf.texi: Update.
46968         * doc/functions/vsnprintf.texi: Update.
46969         * doc/functions/vsprintf.texi: Update.
46970
46971 2007-11-03  Bruno Haible  <bruno@clisp.org>
46972
46973         * modules/frexp-nolibm-tests: New file.
46974
46975         * modules/frexp-nolibm: New file.
46976         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
46977
46978 2007-11-03  Bruno Haible  <bruno@clisp.org>
46979
46980         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
46981         value is C99 compliant.
46982         Needed for OSF/1 5.1.
46983
46984 2007-11-03  Bruno Haible  <bruno@clisp.org>
46985
46986         Fix out-of-memory handling of vasnprintf.
46987         * lib/printf-parse.c: Include <errno.h>.
46988         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
46989         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
46990         is already set.
46991
46992 2007-11-02  Eric Blake  <ebb9@byu.net>
46993
46994         Fix tests on cygwin.
46995         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
46996
46997 2007-11-01  Bruno Haible  <bruno@clisp.org>
46998
46999         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
47000         warning.
47001         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
47002         needed for POSIX compatibility.
47003
47004 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
47005
47006         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
47007         for compatibility with GNU.
47008
47009 2007-11-01  Bruno Haible  <bruno@clisp.org>
47010
47011         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
47012         (putenv): Renamed from rpl_putenv. Change argument type from
47013         'const char *' to 'char *'.
47014         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
47015         of defining putenv in config.h, just set REPLACE_PUTENV.
47016         * modules/putenv (Depends-on): Add stdlib.
47017         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47018         (Include): Use <stdlib.h>.
47019         * lib/stdlib.in.h (putenv): New declaration.
47020         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
47021         REPLACE_PUTENV.
47022         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
47023         REPLACE_PUTENV.
47024         Needed for MacOS X 10.5.0.
47025         Reported by Peter O'Gorman <peter@pogma.com>.
47026
47027 2007-11-01  Jim Meyering  <meyering@redhat.com>
47028
47029         Treat an empty date string exactly like "0".
47030         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
47031         if the remaining date string (to be parsed) is empty, use "0".
47032         Reported by Mischa Molhoek and discussed in this thread:
47033         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
47034
47035 2007-10-31  Bruno Haible  <bruno@clisp.org>
47036
47037         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
47038         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
47039         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
47040         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
47041         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
47042         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
47043
47044 2007-10-31  Bruno Haible  <bruno@clisp.org>
47045
47046         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
47047         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
47048         (AC_TYPE_LONG_LONG_INT): Use it.
47049         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
47050         it as well.
47051         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
47052         to m4/longlong.m4.
47053         * modules/stdint (Files): Remove m4/ulonglong.m4.
47054         * modules/strtoull (Files): Use m4/longlong.m4 instead of
47055         m4/ulonglong.m4.
47056         * modules/strtoumax (Files): Likewise.
47057
47058 2007-10-30  Bruno Haible  <bruno@clisp.org>
47059
47060         * modules/xvasprintf-posix: New file.
47061         Suggested by Eric Blake.
47062
47063 2007-10-30  Bruno Haible  <bruno@clisp.org>
47064
47065         * modules/xprintf-posix-tests: New file.
47066         * tests/test-xprintf-posix.sh: New file.
47067         * tests/test-xprintf-posix.c: New file.
47068         * tests/test-xfprintf-posix.c: New file.
47069
47070         * modules/xprintf-posix: New file.
47071
47072 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47073
47074         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
47075         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
47076         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
47077
47078 2007-10-29  Bruno Haible  <bruno@clisp.org>
47079
47080         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
47081         contain the special marker '_cv_'.
47082         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
47083         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
47084         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
47085         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
47086         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
47087         Reported by Ralf Wildenhues.
47088
47089 2007-10-29  Bruno Haible  <bruno@clisp.org>
47090
47091         * gnulib-tool (func_import): When --lgpl is not specified, set
47092         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
47093         GPLv3.
47094         Reported by Simon Josefsson.
47095
47096 2007-10-28  Bruno Haible  <bruno@clisp.org>
47097
47098         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
47099         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
47100         HAVE_DECL_ISFINITE.
47101         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
47102         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
47103         HAVE_DECL_ISFINITE.
47104
47105 2007-10-28  Bruno Haible  <bruno@clisp.org>
47106
47107         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
47108         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
47109
47110 2007-10-28  Bruno Haible  <bruno@clisp.org>
47111
47112         Fix link errors with Sun C 5.0 on Solaris 10.
47113         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
47114         function is declared but not present in the compiler's libm.
47115         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
47116         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
47117         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
47118         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
47119         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
47120         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
47121         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
47122         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
47123         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
47124         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
47125         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
47126         HAVE_DECL_FLOORL.
47127
47128 2007-10-28  Bruno Haible  <bruno@clisp.org>
47129
47130         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
47131         gl_FUNC_FLOORL. Cache the result.
47132         (gl_FUNC_FLOORL): Use it.
47133         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
47134         gl_FUNC_CEILL. Cache the result.
47135         (gl_FUNC_CEILL): Use it.
47136
47137         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
47138         gl_FUNC_FLOOR. Cache the result.
47139         (gl_FUNC_FLOOR): Use it.
47140         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
47141         gl_FUNC_CEIL. Cache the result.
47142         (gl_FUNC_CEIL): Use it.
47143
47144         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
47145         gl_FUNC_FLOORF. Cache the result.
47146         (gl_FUNC_FLOORF): Use it.
47147         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
47148         gl_FUNC_CEILF. Cache the result.
47149         (gl_FUNC_CEILF): Use it.
47150
47151 2007-10-28  Bruno Haible  <bruno@clisp.org>
47152
47153         * gnulib-tool: Allow specifying the LGPL version number through
47154         --lgpl=2 or --lgpl=3.
47155         (func_usage): Document --lgpl with argument.
47156         Handle --lgpl=... arguments.
47157         (func_import): Recognize also gl_LGPL calls with an argument. When
47158         --lgpl=2 is used and the module's license is just LGPL, report an
47159         error. Set sed_transform_lib_file according to the lgpl variable. In
47160         the generated files, use --lgpl or gl_LGPL invocations with argument,
47161         if necessary.
47162         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
47163         an LGPv2+ license.
47164         * doc/gnulib-tool.texi (Modified imports): Update explanation of
47165         gl_LGPL macro.
47166
47167 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47168             Bruno Haible  <bruno@clisp.org>
47169
47170         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
47171         (u16_uctomb_aux): Likewise.
47172         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
47173         !HAVE_INLINE.
47174         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
47175
47176 2007-10-28  Bruno Haible  <bruno@clisp.org>
47177
47178         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
47179         Invoke AM_GETTEXT_OPTION if it exists.
47180         * modules/vasprintf: Likewise.
47181         * modules/verror: Likewise.
47182         * modules/xprintf: Likewise.
47183         * modules/xvasprintf: Likewise.
47184
47185 2007-10-27  Ben Pfaff  <blp@gnu.org>
47186
47187         * lib/math.in.h: Define isfinite macro and prototypes for
47188         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
47189         implementations.
47190         * m4/math_h.m4: New substitutions for isfinite module.
47191         * lib/isfinite.c: New file.
47192         * m4/isfinite.m4: New file.
47193         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
47194         * modules/isfinite: New file.
47195         * modules/isfinite-tests: New file.
47196         * tests/tests-isfinite.c: New file.
47197         * doc/functions/isfinite.texi: Mention isfinite module.
47198         * MODULES.html.sh: Mention new module.
47199
47200 2007-10-27  Ben Pfaff  <blp@gnu.org>
47201
47202         Ralf Wildenhues reported that Tru64 4.0D declares the round
47203         functions but does not have definitions.
47204         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
47205         cannot be found in any library, set the output variable to
47206         "missing" instead of "".
47207         * m4/round.m4: Also use our substitute if we cannot find round in
47208         any library, even if it is declared.
47209         * m4/roundf.m4: Likewise for roundf.
47210         * m4/roundl.m4: Likewise for roundl.
47211         * lib/math.in.h: Undefine roundf, round, roundl before defining
47212         their replacements, to allow for hypothetical systems where these
47213         may be defined as macros but not available in libraries.
47214
47215 2007-10-27  Bruno Haible  <bruno@clisp.org>
47216
47217         * doc/gnulib.texi: Invoke @firstparagraphindent.
47218         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
47219         changes in gnulib.
47220         (Source changes): New section.
47221
47222 2007-10-26  Bruno Haible  <bruno@clisp.org>
47223
47224         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
47225         borrowed from autoconf.
47226
47227 2007-10-26  Bruno Haible  <bruno@clisp.org>
47228
47229         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
47230         strerror returned the empty string. Needed on HP-UX 11.00.
47231
47232 2007-10-24  Micah Cowan  <micah@cowan.name>
47233
47234         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
47235         * build-aux/bootstrap: Remove support for now-unnecessary option,
47236         --cvs-user, and envvars CVS_USER, CVS_RSH.
47237
47238 2007-10-24  Jim Meyering  <meyering@redhat.com>
47239
47240         Avoid diagnostics from sha1sum when there is no cached checksum.
47241         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
47242         if the po.s1 file hasn't been created yet.
47243
47244         * build-aux/bootstrap: Sync from coreutils:
47245         2007-10-24  Jim Meyering  <meyering@redhat.com>
47246         Get gnulib from the git repository, not from an obsolete cvs one.
47247         * build-aux/bootstrap: Suggestion from Micah Cowan.
47248         2007-10-04  Jim Meyering  <jim@meyering.net>
47249         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
47250         (update_po_files): Work also when there are no .po files in po/.
47251
47252 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
47253
47254         * README: Append ".git" to git and cg examples.
47255         Problem reported by Benoit Sigoure.
47256
47257 2007-10-23  Micah Cowan  <micah@cowan.name>
47258
47259         * users.txt: Add wget.
47260
47261 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47262
47263         Fix linking of some unistdio tests on FreeBSD.
47264         * modules/unistdio/u16-vsnprintf-tests
47265         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
47266         * modules/unistdio/u16-vsprintf-tests
47267         (test_u16_vsnprintf1_LDADD): Likewise.
47268         * modules/unistdio/u32-vsnprintf-tests
47269         (test_u32_vsnprintf1_LDADD): Likewise.
47270         * modules/unistdio/u32-vsprintf-tests
47271         (test_u32_vsprintf1_LDADD): Likewise.
47272         * modules/unistdio/u8-vsnprintf-tests
47273         (test_u8_vsnprintf1_LDADD): Likewise.
47274         * modules/unistdio/u8-vsprintf-tests
47275         (test_u8_vsprintf1_LDADD): Likewise.
47276         * modules/unistdio/ulc-vsnprintf-tests
47277         (test_ulc_vsnprintf1_LDADD): Likewise.
47278         * modules/unistdio/ulc-vsprintf-tests
47279         (test_ulc_vsprintf1_LDADD): Likewise.
47280
47281         Fix linking of some uniconv tests on FreeBSD.
47282         * modules/uniconv/u16-conv-from-enc-tests
47283         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
47284         * modules/uniconv/u16-conv-to-enc-tests
47285         (test_u16_conv_to_enc_LDADD): Likewise.
47286         * modules/uniconv/u16-strconv-from-enc-tests
47287         (test_u16_strconv_from_enc_LDADD): Likewise.
47288         * modules/uniconv/u16-strconv-to-enc-tests
47289         (test_u16_strconv_to_enc_LDADD): Likewise.
47290         * modules/uniconv/u32-conv-from-enc-tests
47291         (test_u32_conv_from_enc_LDADD): Likewise.
47292         * modules/uniconv/u32-conv-to-enc-tests
47293         (test_u32_conv_to_enc_LDADD): Likewise.
47294         * modules/uniconv/u32-strconv-from-enc-tests
47295         (test_u32_strconv_from_enc_LDADD): Likewise.
47296         * modules/uniconv/u32-strconv-to-enc-tests
47297         (test_u32_strconv_to_enc_LDADD): Likewise.
47298         * modules/uniconv/u8-conv-from-enc-tests
47299         (test_u8_conv_from_enc_LDADD): Likewise.
47300         * modules/uniconv/u8-conv-to-enc-tests
47301         (test_u8_conv_to_enc_LDADD): Likewise.
47302         * modules/uniconv/u8-strconv-from-enc-tests
47303         (test_u8_strconv_from_enc_LDADD): Likewise.
47304         * modules/uniconv/u8-strconv-to-enc-tests
47305         (test_u8_strconv_to_enc_LDADD): Likewise.
47306
47307 2007-10-22  Bruno Haible  <bruno@clisp.org>
47308
47309         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
47310         size.
47311
47312 2007-10-22  Eric Blake  <ebb9@byu.net>
47313
47314         Tweak x*printf documentation.
47315         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
47316         variable name and comments.
47317         Suggested by Bruno Haible.
47318
47319 2007-10-22  Bruno Haible  <bruno@clisp.org>
47320
47321         * lib/acl.c (copy_acl): Fix file name in comment.
47322
47323 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
47324
47325         Fix Tru64 problem with stdbool.h.
47326         * lib/stdbool.in.h (false, true):
47327         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
47328         Don't declare as an enum in this situation; it runs afoul of Tru64.
47329         Problem reported by Steven M. Schweda in
47330         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
47331
47332 2007-10-22  Eric Blake  <ebb9@byu.net>
47333
47334         Also wrap vf?printf.
47335         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
47336         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
47337         (xvprintf, xvfprintf): New functions.
47338
47339 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47340
47341         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
47342         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
47343
47344         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
47345         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
47346
47347 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
47348
47349         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
47350         by Bruno Haible.
47351
47352 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47353
47354         * lib/getloadavg.c
47355         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
47356         Undef `sys' after including sys/table.h, for Tru64 4.0D.
47357
47358         * tests/test-i-ring.c: Work for C89.
47359
47360 2007-10-22  Bruno Haible  <bruno@clisp.org>
47361
47362         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
47363         -1u, in preprocessor expression, so that we don't test for the bug
47364         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
47365         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
47366
47367 2007-10-22  Eric Blake  <ebb9@byu.net>
47368
47369         * tests/test-yesno.sh: Silence stderr during test.
47370
47371 2007-10-22  Simon Josefsson  <simon@josefsson.org>
47372
47373         * modules/crypto/gc-camellia: New file.
47374
47375         * m4/gc-camellia.m4: New file.
47376
47377         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
47378
47379         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
47380
47381 2007-10-22  Simon Josefsson  <simon@josefsson.org>
47382
47383         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
47384         --help to stdout.  Reported by sms@antinode.org (Steven
47385         M. Schweda).
47386
47387 2007-10-22  Simon Josefsson  <simon@josefsson.org>
47388
47389         * users.txt: Fix link to libksba.
47390
47391 2007-10-21  Ben Pfaff  <blp@gnu.org>
47392
47393         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
47394         round.c roundf implementation that depends on floorf and ceilf to
47395         be tested unconditionally.
47396
47397 2007-10-21  Ben Pfaff  <blp@gnu.org>
47398
47399         * m4/check-libm-func.m4: Removed.
47400         * m4/check-math-lib.m4: New file.
47401         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
47402         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
47403         definition and lack of AC_LIBOBJ([roundf]).
47404         * m4/roundl.m4: Ditto, and similarly for roundl.
47405         * modules/round: Reference new m4 file.
47406         * modules/roundf: Ditto.
47407         * modules/roundl: Ditto.
47408         * tests/test-round2.c (main): Use ROUND instead of round.
47409         Bug report from Bruno Haible.
47410
47411 2007-10-21  Bruno Haible  <bruno@clisp.org>
47412
47413         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
47414         context.
47415
47416 2007-10-21  Bruno Haible  <bruno@clisp.org>
47417
47418         * tests/test-wcwidth.c (main): Allow negative result for some control
47419         characters.
47420
47421         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
47422         Needed on OSF/1 5.1.
47423
47424 2007-10-21  Bruno Haible  <bruno@clisp.org>
47425
47426         * tests/test-floorf1.c: Include isnanf.h.
47427         (main): Use isnanf() instead of isnan().
47428         * tests/test-ceilf1.c: Include isnanf.h.
47429         (main): Use isnanf() instead of isnan().
47430         * tests/test-truncf1.c: Include isnanf.h.
47431         (main): Use isnanf() instead of isnan().
47432         * tests/test-roundf1.c: Include isnanf.h.
47433         (main): Use isnanf() instead of isnan().
47434
47435 2007-10-21  Eric Blake  <ebb9@byu.net>
47436
47437         * users.txt: Update URL for m4.
47438
47439 2007-10-21  Bruno Haible  <bruno@clisp.org>
47440
47441         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
47442
47443 2007-10-21  Bruno Haible  <bruno@clisp.org>
47444
47445         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
47446         Git's management files if the CVS files are not present.
47447
47448 2007-10-20  Bruno Haible  <bruno@clisp.org>
47449
47450         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
47451         gcc-3.4.x.
47452
47453 2007-10-20  Ben Pfaff  <blp@gnu.org>
47454
47455         * lib/math.in.h: Declare round, roundf, roundl if we are providing
47456         implementations.
47457         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
47458         * lib/round.c: New file.
47459         * lib/roundf.c: New file.
47460         * lib/roundl.c: New file.
47461         * m4/round.m4: New file.
47462         * m4/roundf.m4: New file.
47463         * m4/roundl.m4: New file.
47464         * m4/check-libm-func-m4: New file.
47465         * modules/math: Replace round, roundf, roundl related @VARS@ in
47466         math.in.h.
47467         * modules/round: New file.
47468         * modules/round-tests: New file.
47469         * modules/roundf: New file.
47470         * modules/roundf-tests: New file.
47471         * modules/roundl: New file.
47472         * modules/roundl-tests: New file.
47473         * tests/test-round1.c: New file.
47474         * tests/test-round2.c: New file.
47475         * tests/test-roundf1.c: New file.
47476         * tests/test-roundf2.c: New file.
47477         * tests/test-roundl.c: New file.
47478         * doc/functions/round.texi: Mention round module.
47479         * doc/functions/roundf.texi: Mention roundf module.
47480         * doc/functions/roundl.texi: Mention roundl module.
47481         * MODULES.html.sh: Mention new modules.
47482         Thanks to Bruno Haible for suggestions.
47483
47484 2007-10-20  Jim Meyering  <meyering@redhat.com>
47485
47486         * lib/xprintf.c: Include <config.h> unconditionally.
47487
47488         Change xprintf's license to GPL.
47489         * modules/xprintf (License): s/LGPL/GPL/, since this module
47490         depends on modules (exit and exitfail) which are GPL.
47491         Suggestion from Bruno Haible.
47492
47493         xprintf fixes.
47494         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
47495         Use a clearer diagnostic.
47496         Patch from Bruno Haible.
47497
47498 2007-10-20  Bruno Haible  <bruno@clisp.org>
47499
47500         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
47501         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
47502         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47503
47504 2007-10-20  Bruno Haible  <bruno@clisp.org>
47505
47506         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
47507         precision in the comparison result > x - 1 or similar.
47508         * tests/test-ceilf2.c (correct_result_p): Likewise.
47509         * tests/test-truncf2.c (correct_result_p): Likewise.
47510         * tests/test-trunc2.c (correct_result_p): Likewise.
47511         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47512
47513 2007-10-20  Bruno Haible  <bruno@clisp.org>
47514
47515         * modules/ceil: New file.
47516         * m4/ceil.m4: New file.
47517         * doc/functions/ceil.texi: Mention the 'ceil' module.
47518
47519 2007-10-20  Bruno Haible  <bruno@clisp.org>
47520
47521         * modules/floor: New file.
47522         * m4/floor.m4: New file.
47523         * doc/functions/floor.texi: Mention the 'floor' module.
47524
47525 2007-10-20  Bruno Haible  <bruno@clisp.org>
47526
47527         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
47528         of %a.
47529         * modules/floorf-tests (Depends-on): Likewise.
47530         * modules/truncf-tests (Depends-on): Likewise.
47531         * modules/trunc-tests (Depends-on): Likewise.
47532         Reported by Ben Pfaff.
47533
47534 2007-10-19  Jim Meyering  <meyering@redhat.com>
47535
47536         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
47537         Don't bother testing specific errno values.  Just test ferror.
47538
47539         New module: xprintf
47540         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
47541
47542 2007-10-19  Bruno Haible  <bruno@clisp.org>
47543
47544         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
47545         syntax.
47546         * modules/javaexec (Makefile.am): Likewise.
47547         * modules/relocatable-prog (Makefile.am): Likewise.
47548         Suggested by Jim Meyering.
47549
47550 2007-10-18  Bruno Haible  <bruno@clisp.org>
47551
47552         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
47553         Reported by Jim Meyering.
47554
47555 2007-10-18  Eric Blake  <ebb9@byu.net>
47556
47557         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
47558
47559 2007-10-18  Bruno Haible  <bruno@clisp.org>
47560
47561         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
47562         the format string into writable memory. Needed in Fortify conditions.
47563
47564 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
47565             Bruno Haible  <bruno@clisp.org>
47566
47567         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
47568         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
47569         * modules/trim (Depends-on): Add mbchar.
47570         (configure.ac): Add gl_FUNC_MBRTOWC.
47571         (Makefile.am): Augment lib_SOURCES.
47572
47573 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
47574
47575         Modify glob.c to use fstatat and dirfd, to simplify it.
47576         Suggested by Eric Blake.
47577         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
47578         Don't include <stdbool.h>; not used.
47579         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
47580         (link_exists_p): Simplify implementation, since we can now assume
47581         dirfd and fstatat.
47582         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
47583
47584 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47585
47586         * gnulib-tool (func_get_dependencies): Fix sed script to
47587         match only tests.
47588
47589 2007-10-17  Bruno Haible  <bruno@clisp.org>
47590
47591         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
47592         allow locale names without encoding suffix.
47593         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
47594         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
47595
47596 2007-10-16  Bruno Haible  <bruno@clisp.org>
47597
47598         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
47599         * lib/getgroups.c (getgroups): Likewise.
47600         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
47601
47602 2007-10-16  Bruno Haible  <bruno@clisp.org>
47603
47604         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
47605         * modules/malloc-posix (License): Likewise.
47606         * modules/realloc-posix (License): Likewise.
47607         * modules/calloc-posix (License): Likewise.
47608         * modules/intprops (License): Change from GPL to LGPL, with
47609         Paul Eggert's approval.
47610
47611 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
47612
47613         Merge glibc changes into lib/glob.c.
47614
47615         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
47616         2007-10-15 04:59:03 UTC.  Here are the changes:
47617
47618         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
47619
47620         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
47621
47622         * lib/glob.c: Add some branch prediction throughout.
47623
47624         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
47625
47626         [BZ #5103]
47627         * lib/glob.c (glob): Recognize patterns starting \/.
47628
47629         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
47630
47631         [BZ #3996]
47632         * lib/glob.c (attribute_hidden): Define if not defined.
47633         (glob): Unescape dirname, filename or username when needed and not
47634         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
47635         is NULL.  Handle unescaped [ in pattern without closing ].
47636         Don't pass GLOB_CHECK down to recursive glob for directories.
47637         (__glob_pattern_type): New function.
47638         (__glob_pattern_p): Implement using __glob_pattern_type.
47639         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
47640         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
47641         Remove unreachable code.
47642
47643         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
47644
47645         * lib/glob.c (glob_in_dir): Add some comments and asserts to
47646         explain why there are no leaks.
47647
47648         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
47649
47650         [BZ #3253]
47651         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
47652         time, rather allocate increasingly bigger arrays of pointers, if
47653         possible with alloca, if too large with malloc.
47654
47655 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
47656
47657         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
47658         Problem reported by H.Merijn Brand in
47659         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
47660         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
47661         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
47662
47663 2007-10-15  Bruno Haible  <bruno@clisp.org>
47664
47665         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
47666         with explicit rpl_ prefix.
47667         * lib/fopen.c (fopen): Likewise.
47668         * lib/freopen.c (freopen): Likewise.
47669         * lib/iconv.c (iconv): Likewise.
47670         * lib/iconv_close.c (iconv_close): Likewise.
47671
47672 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47673
47674         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
47675
47676 2007-10-15  Bruno Haible  <bruno@clisp.org>
47677
47678         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
47679         <stddef.h> instead of <stdlib.h> since we only need NULL.
47680         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47681
47682 2007-10-15  Bruno Haible  <bruno@clisp.org>
47683
47684         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
47685         Replace paragraph talking about LIBOBJS.
47686         Reported by Colin Watson <cjwatson@debian.org>.
47687
47688 2007-10-15  Bruno Haible  <bruno@clisp.org>
47689
47690         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
47691         <stdlib.h> before using NULL.
47692
47693 2007-10-15  Simon Josefsson  <simon@josefsson.org>
47694
47695         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
47696         Reported by Albert Chin <china@thewrittenword.com>.
47697
47698 2007-10-14  Bruno Haible  <bruno@clisp.org>
47699
47700         * modules/iconv_open-utf-tests: New file.
47701         * tests/test-iconv-utf.c: New file.
47702
47703         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
47704         * modules/iconv_open-utf: New file.
47705         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
47706         (iconv, iconv_close): New declarations.
47707         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
47708         be defined.
47709         (iconv_open): Add special handling of conversion between UTF-8 and
47710         UTF-{16,32}{BE,LE}.
47711         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
47712         * lib/iconv_close.c: New file.
47713         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
47714         gl_FUNC_ICONV_OPEN.
47715         (gl_FUNC_ICONV_OPEN): Use it.
47716         (gl_FUNC_ICONV_OPEN_UTF): New macro.
47717         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
47718         and REPLACE_ICONV_UTF.
47719         * modules/iconv_open (Depends-on): Add c-strcase.
47720         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
47721         ICONV_CONST.
47722         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
47723
47724 2007-10-13  Albert Chin  <china@thewrittenword.com>
47725             Bruno Haible  <bruno@clisp.org>
47726
47727         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
47728         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
47729
47730 2007-10-13  Bruno Haible  <bruno@clisp.org>
47731
47732         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
47733         defined, use the ISO C99 inline semantics.
47734         * lib/argp.h (ARGP_EI): Likewise.
47735
47736 2007-10-13  Bruno Haible  <bruno@clisp.org>
47737
47738         Handle 'inline' change in gcc 4.3.0.
47739         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
47740         argp_fmtstream_write, argp_fmtstream_set_lmargin,
47741         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
47742         argp_fmtstream_point): Disable 'extern' declaration if the function
47743         definition is going to be provided inline.
47744         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
47745         semantics, not the ISO C99 inline semantics.
47746         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
47747         'extern' declaration if the function definition is going to be provided
47748         inline.
47749         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
47750         the GNU C inline semantics, not the ISO C99 inline semantics. With
47751         GCC 4.2, avoid a warning.
47752
47753 2007-10-13  Bruno Haible  <bruno@clisp.org>
47754
47755         * lib/freading.h (freading): Enable the use of __freading for
47756         glibc >= 2.7.
47757         * lib/freading.c (freading): Likewise.
47758
47759 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
47760
47761         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
47762         "warning: C99 inline functions are not supported; using GNU89".
47763
47764 2007-10-12  Bruno Haible  <bruno@clisp.org>
47765
47766         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
47767         of 2.
47768         * tests/test-ceilf2.c: New file.
47769         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
47770
47771         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
47772         * modules/ceilf-tests: Update.
47773
47774 2007-10-12  Bruno Haible  <bruno@clisp.org>
47775
47776         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
47777         of 2.
47778         * tests/test-floorf2.c: New file.
47779         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
47780
47781         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
47782         * modules/floorf-tests: Update.
47783
47784 2007-10-12  Bruno Haible  <bruno@clisp.org>
47785
47786         * tests/test-trunc2.c: New file.
47787         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
47788
47789         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
47790         * modules/trunc-tests: Update.
47791
47792 2007-10-12  Bruno Haible  <bruno@clisp.org>
47793
47794         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
47795         of 2.
47796         * tests/test-truncf2.c: New file.
47797         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
47798
47799         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
47800         * modules/truncf-tests: Update.
47801
47802 2007-10-11  Eric Blake  <ebb9@byu.net>
47803
47804         Don't claim strerror is broken on Interix.
47805         * doc/functions/strerror.texi (strerror): Known broken systems are
47806         now Solaris 8, and not Interix.
47807         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
47808         Interix on cross-compile.
47809         Reported by Martin Koeppe in
47810         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
47811
47812 2007-10-11  Bruno Haible  <bruno@clisp.org>
47813
47814         * modules/i-ring-tests: New file.
47815         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
47816         instead of assert.
47817
47818 2007-10-11  Bruno Haible  <bruno@clisp.org>
47819
47820         * modules/filenamecat-tests: New file.
47821         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
47822         * lib/filenamecat.c: Remove test code.
47823
47824 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
47825
47826         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
47827
47828         * lib/strerror.c: Include <string.h> always, to test interface,
47829         and to remove the need for the dummy.
47830         Include intprops.h to compute width instead of doing it ourselves
47831         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
47832         (strerror): Define it to return NULL if there's no system strerror.
47833         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
47834         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
47835         ancient pre-strerror Unix systems well any more.  Saying "unknown
47836         system error" is enough.
47837         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
47838         simpler strerror.c implementation.
47839         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
47840         Simplify the tests to reflect the simpler strerror implementation.
47841         * modules/strerror (Depends-on): Add intprops.
47842
47843 2007-10-09  Eric Blake  <ebb9@byu.net>
47844
47845         Silence test-fpending.
47846         * modules/fpending-tests (Files): Add wrapper script.
47847         * tests/test-fpending.sh: New file.
47848
47849 2007-10-09  Bruno Haible  <bruno@clisp.org>
47850
47851         * MODULES.html.sh (func_module): Don't create a hyperlink for
47852         function names like 'printf_frexp'.
47853         (Misc): Add crc, memxor.
47854         (Characteristics of floating types): New section.
47855         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
47856         isnanf-nolibm, signbit, trunc, truncf, truncl.
47857         (Enhancements for ISO C 99 functions): New subsection Input/output.
47858         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
47859         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
47860         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
47861         (Compatibility checks for POSIX:2001 functions): Add clock-time.
47862         (Enhancements for POSIX:2001 functions): Add chdir-long.
47863         (File system functions): Add areadlink, chdir-safer, read-file.
47864         Remove cycle-check.
47865         (File system as inode set): New section.
47866         (Date and time): Add gethrxtime.
47867         (Multithreading): Add openmp.
47868         (Internationalization functions): Add localename.
47869         (Unicode string functions): Add unistr/u*-mbsnlen.
47870         (Support for maintaining and releasing projects): Add git-version-gen.
47871         (Lone files): Remove directories.
47872
47873 2007-10-08  Ben Pfaff  <blp@gnu.org>
47874
47875         * lib/xmalloca.h: Fix typo in comment.
47876
47877 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
47878
47879         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
47880         when avoiding problems with integer overflow.  Use a portable test
47881         instead.
47882
47883 2007-10-08  Simon Josefsson  <simon@josefsson.org>
47884
47885         * modules/dummy (License): Change to LGPLv2+.
47886         * modules/float (License): Likewise
47887         * modules/realloc (License): Likewise
47888         * modules/stdlib (License): Likewise
47889
47890 2007-10-07  Bruno Haible  <bruno@clisp.org>
47891
47892         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
47893         * floor.c (TWO_MANT_DIG): Likewise.
47894         * ceil.c (TWO_MANT_DIG): Likewise.
47895         Reported by Ben Pfaff.
47896
47897 2007-10-07  Bruno Haible  <bruno@clisp.org>
47898
47899         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
47900         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
47901         * lib/frexp.c (FUNC): Likewise.
47902         * lib/printf-frexp.h (printf_frexp): Likewise.
47903         * lib/printf-frexpl.h (printf_frexpl): Likewise.
47904         * lib/printf-frexp.c (FUNC): Likewise.
47905         Suggested by Jim Meyering.
47906
47907 2007-10-07  Jim Meyering  <meyering@redhat.com>
47908
47909         Make xnanosleep's integer overflow test more robust.
47910         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
47911         so that gcc-4.3.0 doesn't optimize away this test for overflow.
47912
47913 2007-10-07  Bruno Haible  <bruno@clisp.org>
47914
47915         * NEWS: Mention the license change.
47916
47917         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
47918         abbreviations in the modules files.
47919
47920         Change copyright notice from GPLv2+ to GPLv3+.
47921         * README: Change copyright notice.
47922         * MODULES.html.sh: Likewise.
47923         * build-aux/bootstrap.conf: Likewise.
47924         * build-aux/config.libpath: Likewise.
47925         * build-aux/csharpcomp.sh.in: Likewise.
47926         * build-aux/csharpexec.sh.in: Likewise.
47927         * build-aux/install-reloc: Likewise.
47928         * build-aux/javacomp.sh.in: Likewise.
47929         * build-aux/javaexec.sh.in: Likewise.
47930         * build-aux/ldd.sh.in: Likewise.
47931         * build-aux/reloc-ldflags: Likewise.
47932         * build-aux/relocatable.sh.in: Likewise.
47933         * build-aux/x-to-1.in: Likewise.
47934         * check-module: Likewise.
47935         * config/srclistvars.sh: Likewise.
47936         * gnulib-tool: Likewise.
47937         * lib/acl-internal.h: Likewise.
47938         * lib/acl.c: Likewise.
47939         * lib/acl.h: Likewise.
47940         * lib/acl_entries.c: Likewise.
47941         * lib/areadlink-with-size.c: Likewise.
47942         * lib/areadlink.c: Likewise.
47943         * lib/areadlink.h: Likewise.
47944         * lib/argmatch.c: Likewise.
47945         * lib/argmatch.h: Likewise.
47946         * lib/argp-ba.c: Likewise.
47947         * lib/argp-eexst.c: Likewise.
47948         * lib/argp-fmtstream.c: Likewise.
47949         * lib/argp-fmtstream.h: Likewise.
47950         * lib/argp-fs-xinl.c: Likewise.
47951         * lib/argp-help.c: Likewise.
47952         * lib/argp-namefrob.h: Likewise.
47953         * lib/argp-parse.c: Likewise.
47954         * lib/argp-pin.c: Likewise.
47955         * lib/argp-pv.c: Likewise.
47956         * lib/argp-pvh.c: Likewise.
47957         * lib/argp-xinl.c: Likewise.
47958         * lib/argp.h: Likewise.
47959         * lib/at-func.c: Likewise.
47960         * lib/atanl.c: Likewise.
47961         * lib/backupfile.c: Likewise.
47962         * lib/backupfile.h: Likewise.
47963         * lib/basename.c: Likewise.
47964         * lib/binary-io.h: Likewise.
47965         * lib/byteswap.in.h: Likewise.
47966         * lib/c-stack.c: Likewise.
47967         * lib/c-stack.h: Likewise.
47968         * lib/c-strcasestr.c: Likewise.
47969         * lib/c-strcasestr.h: Likewise.
47970         * lib/c-strstr.c: Likewise.
47971         * lib/c-strstr.h: Likewise.
47972         * lib/c-strtod.c: Likewise.
47973         * lib/calloc.c: Likewise.
47974         * lib/canon-host.c: Likewise.
47975         * lib/canon-host.h: Likewise.
47976         * lib/canonicalize-lgpl.c: Likewise.
47977         * lib/canonicalize.c: Likewise.
47978         * lib/canonicalize.h: Likewise.
47979         * lib/ceil.c: Likewise.
47980         * lib/ceilf.c: Likewise.
47981         * lib/ceill.c: Likewise.
47982         * lib/chdir-long.c: Likewise.
47983         * lib/chdir-long.h: Likewise.
47984         * lib/chdir-safer.c: Likewise.
47985         * lib/chdir-safer.h: Likewise.
47986         * lib/chown.c: Likewise.
47987         * lib/classpath.c: Likewise.
47988         * lib/classpath.h: Likewise.
47989         * lib/clean-temp.c: Likewise.
47990         * lib/clean-temp.h: Likewise.
47991         * lib/cloexec.c: Likewise.
47992         * lib/close-stream.c: Likewise.
47993         * lib/closein.c: Likewise.
47994         * lib/closein.h: Likewise.
47995         * lib/closeout.c: Likewise.
47996         * lib/closeout.h: Likewise.
47997         * lib/concat-filename.c: Likewise.
47998         * lib/copy-file.c: Likewise.
47999         * lib/copy-file.h: Likewise.
48000         * lib/count-one-bits.h: Likewise.
48001         * lib/crc.c: Likewise.
48002         * lib/crc.h: Likewise.
48003         * lib/creat-safer.c: Likewise.
48004         * lib/csharpcomp.c: Likewise.
48005         * lib/csharpcomp.h: Likewise.
48006         * lib/csharpexec.c: Likewise.
48007         * lib/csharpexec.h: Likewise.
48008         * lib/cycle-check.c: Likewise.
48009         * lib/cycle-check.h: Likewise.
48010         * lib/diacrit.c: Likewise.
48011         * lib/diacrit.h: Likewise.
48012         * lib/diffseq.h: Likewise.
48013         * lib/dirchownmod.c: Likewise.
48014         * lib/dirent.in.h: Likewise.
48015         * lib/dirfd.c: Likewise.
48016         * lib/dirfd.h: Likewise.
48017         * lib/dirname.c: Likewise.
48018         * lib/dirname.h: Likewise.
48019         * lib/dummy.c: Likewise.
48020         * lib/dup-safer.c: Likewise.
48021         * lib/dup2.c: Likewise.
48022         * lib/eealloc.h: Likewise.
48023         * lib/error.c: Likewise.
48024         * lib/error.h: Likewise.
48025         * lib/euidaccess.c: Likewise.
48026         * lib/exclude.c: Likewise.
48027         * lib/exclude.h: Likewise.
48028         * lib/execute.c: Likewise.
48029         * lib/execute.h: Likewise.
48030         * lib/exitfail.c: Likewise.
48031         * lib/exitfail.h: Likewise.
48032         * lib/expl.c: Likewise.
48033         * lib/fatal-signal.c: Likewise.
48034         * lib/fatal-signal.h: Likewise.
48035         * lib/fbufmode.c: Likewise.
48036         * lib/fbufmode.h: Likewise.
48037         * lib/fchdir.c: Likewise.
48038         * lib/fchmodat.c: Likewise.
48039         * lib/fchownat.c: Likewise.
48040         * lib/fcntl--.h: Likewise.
48041         * lib/fcntl-safer.h: Likewise.
48042         * lib/fcntl.in.h: Likewise.
48043         * lib/fd-safer.c: Likewise.
48044         * lib/fflush.c: Likewise.
48045         * lib/file-has-acl.c: Likewise.
48046         * lib/file-set.c: Likewise.
48047         * lib/file-type.c: Likewise.
48048         * lib/file-type.h: Likewise.
48049         * lib/fileblocks.c: Likewise.
48050         * lib/filemode.c: Likewise.
48051         * lib/filemode.h: Likewise.
48052         * lib/filename.h: Likewise.
48053         * lib/filenamecat.c: Likewise.
48054         * lib/filenamecat.h: Likewise.
48055         * lib/findprog.c: Likewise.
48056         * lib/findprog.h: Likewise.
48057         * lib/float.in.h: Likewise.
48058         * lib/floor.c: Likewise.
48059         * lib/floorf.c: Likewise.
48060         * lib/floorl.c: Likewise.
48061         * lib/fopen-safer.c: Likewise.
48062         * lib/fopen.c: Likewise.
48063         * lib/fpending.c: Likewise.
48064         * lib/fpending.h: Likewise.
48065         * lib/fprintf.c: Likewise.
48066         * lib/fprintftime.h: Likewise.
48067         * lib/fpucw.h: Likewise.
48068         * lib/fpurge.c: Likewise.
48069         * lib/fpurge.h: Likewise.
48070         * lib/freadable.c: Likewise.
48071         * lib/freadable.h: Likewise.
48072         * lib/freadahead.c: Likewise.
48073         * lib/freadahead.h: Likewise.
48074         * lib/freading.c: Likewise.
48075         * lib/freading.h: Likewise.
48076         * lib/free.c: Likewise.
48077         * lib/freopen.c: Likewise.
48078         * lib/frexp.c: Likewise.
48079         * lib/frexpl.c: Likewise.
48080         * lib/fseek.c: Likewise.
48081         * lib/fseterr.c: Likewise.
48082         * lib/fseterr.h: Likewise.
48083         * lib/fstatat.c: Likewise.
48084         * lib/fstrcmp.c: Likewise.
48085         * lib/fstrcmp.h: Likewise.
48086         * lib/fsusage.c: Likewise.
48087         * lib/fsusage.h: Likewise.
48088         * lib/ftell.c: Likewise.
48089         * lib/ftello.c: Likewise.
48090         * lib/fts-cycle.c: Likewise.
48091         * lib/fts.c: Likewise.
48092         * lib/fts_.h: Likewise.
48093         * lib/full-read.c: Likewise.
48094         * lib/full-read.h: Likewise.
48095         * lib/full-write.c: Likewise.
48096         * lib/full-write.h: Likewise.
48097         * lib/fwritable.c: Likewise.
48098         * lib/fwritable.h: Likewise.
48099         * lib/fwriteerror.c: Likewise.
48100         * lib/fwriteerror.h: Likewise.
48101         * lib/fwriting.c: Likewise.
48102         * lib/fwriting.h: Likewise.
48103         * lib/gcd.c: Likewise.
48104         * lib/gcd.h: Likewise.
48105         * lib/getcwd.c: Likewise.
48106         * lib/getdate.h: Likewise.
48107         * lib/getdate.y: Likewise.
48108         * lib/getdomainname.c: Likewise.
48109         * lib/getdomainname.h: Likewise.
48110         * lib/getgroups.c: Likewise.
48111         * lib/gethostname.c: Likewise.
48112         * lib/gethrxtime.c: Likewise.
48113         * lib/gethrxtime.h: Likewise.
48114         * lib/getloadavg.c: Likewise.
48115         * lib/getndelim2.c: Likewise.
48116         * lib/getndelim2.h: Likewise.
48117         * lib/getnline.c: Likewise.
48118         * lib/getnline.h: Likewise.
48119         * lib/getopt.c: Likewise.
48120         * lib/getopt.in.h: Likewise.
48121         * lib/getopt1.c: Likewise.
48122         * lib/getopt_int.h: Likewise.
48123         * lib/getpagesize.h: Likewise.
48124         * lib/getsubopt.c: Likewise.
48125         * lib/gettime.c: Likewise.
48126         * lib/getugroups.c: Likewise.
48127         * lib/getugroups.h: Likewise.
48128         * lib/getusershell.c: Likewise.
48129         * lib/gl_anyavltree_list1.h: Likewise.
48130         * lib/gl_anyavltree_list2.h: Likewise.
48131         * lib/gl_anyhash_list1.h: Likewise.
48132         * lib/gl_anyhash_list2.h: Likewise.
48133         * lib/gl_anylinked_list1.h: Likewise.
48134         * lib/gl_anylinked_list2.h: Likewise.
48135         * lib/gl_anyrbtree_list1.h: Likewise.
48136         * lib/gl_anyrbtree_list2.h: Likewise.
48137         * lib/gl_anytree_list1.h: Likewise.
48138         * lib/gl_anytree_list2.h: Likewise.
48139         * lib/gl_anytree_oset.h: Likewise.
48140         * lib/gl_anytreehash_list1.h: Likewise.
48141         * lib/gl_anytreehash_list2.h: Likewise.
48142         * lib/gl_array_list.c: Likewise.
48143         * lib/gl_array_list.h: Likewise.
48144         * lib/gl_array_oset.c: Likewise.
48145         * lib/gl_array_oset.h: Likewise.
48146         * lib/gl_avltree_list.c: Likewise.
48147         * lib/gl_avltree_list.h: Likewise.
48148         * lib/gl_avltree_oset.c: Likewise.
48149         * lib/gl_avltree_oset.h: Likewise.
48150         * lib/gl_avltreehash_list.c: Likewise.
48151         * lib/gl_avltreehash_list.h: Likewise.
48152         * lib/gl_carray_list.c: Likewise.
48153         * lib/gl_carray_list.h: Likewise.
48154         * lib/gl_linked_list.c: Likewise.
48155         * lib/gl_linked_list.h: Likewise.
48156         * lib/gl_linkedhash_list.c: Likewise.
48157         * lib/gl_linkedhash_list.h: Likewise.
48158         * lib/gl_list.c: Likewise.
48159         * lib/gl_list.h: Likewise.
48160         * lib/gl_oset.c: Likewise.
48161         * lib/gl_oset.h: Likewise.
48162         * lib/gl_rbtree_list.c: Likewise.
48163         * lib/gl_rbtree_list.h: Likewise.
48164         * lib/gl_rbtree_oset.c: Likewise.
48165         * lib/gl_rbtree_oset.h: Likewise.
48166         * lib/gl_rbtreehash_list.c: Likewise.
48167         * lib/gl_rbtreehash_list.h: Likewise.
48168         * lib/gl_sublist.c: Likewise.
48169         * lib/gl_sublist.h: Likewise.
48170         * lib/group-member.c: Likewise.
48171         * lib/group-member.h: Likewise.
48172         * lib/hard-locale.c: Likewise.
48173         * lib/hard-locale.h: Likewise.
48174         * lib/hash-pjw.c: Likewise.
48175         * lib/hash-pjw.h: Likewise.
48176         * lib/hash-triple.c: Likewise.
48177         * lib/hash.c: Likewise.
48178         * lib/hash.h: Likewise.
48179         * lib/human.c: Likewise.
48180         * lib/human.h: Likewise.
48181         * lib/i-ring.c: Likewise.
48182         * lib/i-ring.h: Likewise.
48183         * lib/idcache.c: Likewise.
48184         * lib/imaxabs.c: Likewise.
48185         * lib/imaxdiv.c: Likewise.
48186         * lib/inet_pton.c: Likewise.
48187         * lib/inet_pton.h: Likewise.
48188         * lib/intprops.h: Likewise.
48189         * lib/inttostr.c: Likewise.
48190         * lib/inttostr.h: Likewise.
48191         * lib/inttypes.in.h: Likewise.
48192         * lib/isapipe.c: Likewise.
48193         * lib/isdir.c: Likewise.
48194         * lib/isnan.c: Likewise.
48195         * lib/isnan.h: Likewise.
48196         * lib/isnanf.c: Likewise.
48197         * lib/isnanf.h: Likewise.
48198         * lib/isnanl-nolibm.h: Likewise.
48199         * lib/isnanl.c: Likewise.
48200         * lib/isnanl.h: Likewise.
48201         * lib/javacomp.c: Likewise.
48202         * lib/javacomp.h: Likewise.
48203         * lib/javaexec.c: Likewise.
48204         * lib/javaexec.h: Likewise.
48205         * lib/javaversion.c: Likewise.
48206         * lib/javaversion.h: Likewise.
48207         * lib/javaversion.java: Likewise.
48208         * lib/lbrkprop.h: Likewise.
48209         * lib/lchmod.h: Likewise.
48210         * lib/lchown.c: Likewise.
48211         * lib/ldexpl.c: Likewise.
48212         * lib/linebreak.c: Likewise.
48213         * lib/linebreak.h: Likewise.
48214         * lib/linebuffer.c: Likewise.
48215         * lib/linebuffer.h: Likewise.
48216         * lib/locale.in.h: Likewise.
48217         * lib/logl.c: Likewise.
48218         * lib/long-options.c: Likewise.
48219         * lib/long-options.h: Likewise.
48220         * lib/lstat.c: Likewise.
48221         * lib/lstat.h: Likewise.
48222         * lib/math.in.h: Likewise.
48223         * lib/mbchar.c: Likewise.
48224         * lib/mbchar.h: Likewise.
48225         * lib/mbfile.h: Likewise.
48226         * lib/mbiter.h: Likewise.
48227         * lib/mbscasecmp.c: Likewise.
48228         * lib/mbscasestr.c: Likewise.
48229         * lib/mbschr.c: Likewise.
48230         * lib/mbscspn.c: Likewise.
48231         * lib/mbslen.c: Likewise.
48232         * lib/mbsncasecmp.c: Likewise.
48233         * lib/mbsnlen.c: Likewise.
48234         * lib/mbspbrk.c: Likewise.
48235         * lib/mbspcasecmp.c: Likewise.
48236         * lib/mbsrchr.c: Likewise.
48237         * lib/mbssep.c: Likewise.
48238         * lib/mbsspn.c: Likewise.
48239         * lib/mbsstr.c: Likewise.
48240         * lib/mbstok_r.c: Likewise.
48241         * lib/mbswidth.c: Likewise.
48242         * lib/mbswidth.h: Likewise.
48243         * lib/mbuiter.h: Likewise.
48244         * lib/memcasecmp.c: Likewise.
48245         * lib/memcasecmp.h: Likewise.
48246         * lib/memchr.c: Likewise.
48247         * lib/memcmp.c: Likewise.
48248         * lib/memcoll.c: Likewise.
48249         * lib/memcoll.h: Likewise.
48250         * lib/memcpy.c: Likewise.
48251         * lib/memrchr.c: Likewise.
48252         * lib/mkancesdirs.c: Likewise.
48253         * lib/mkdir-p.c: Likewise.
48254         * lib/mkdir-p.h: Likewise.
48255         * lib/mkdir.c: Likewise.
48256         * lib/mkdirat.c: Likewise.
48257         * lib/mkdtemp.c: Likewise.
48258         * lib/mkstemp-safer.c: Likewise.
48259         * lib/mkstemp.c: Likewise.
48260         * lib/modechange.c: Likewise.
48261         * lib/modechange.h: Likewise.
48262         * lib/mountlist.c: Likewise.
48263         * lib/mountlist.h: Likewise.
48264         * lib/mpsort.c: Likewise.
48265         * lib/nanosleep.c: Likewise.
48266         * lib/obstack.c: Likewise.
48267         * lib/obstack.h: Likewise.
48268         * lib/open-safer.c: Likewise.
48269         * lib/open.c: Likewise.
48270         * lib/openat-die.c: Likewise.
48271         * lib/openat-priv.h: Likewise.
48272         * lib/openat-proc.c: Likewise.
48273         * lib/openat.c: Likewise.
48274         * lib/openat.h: Likewise.
48275         * lib/pagealign_alloc.c: Likewise.
48276         * lib/pagealign_alloc.h: Likewise.
48277         * lib/physmem.c: Likewise.
48278         * lib/physmem.h: Likewise.
48279         * lib/pipe-safer.c: Likewise.
48280         * lib/pipe.c: Likewise.
48281         * lib/pipe.h: Likewise.
48282         * lib/posixtm.c: Likewise.
48283         * lib/posixtm.h: Likewise.
48284         * lib/posixver.c: Likewise.
48285         * lib/printf-frexp.c: Likewise.
48286         * lib/printf-frexp.h: Likewise.
48287         * lib/printf-frexpl.c: Likewise.
48288         * lib/printf-frexpl.h: Likewise.
48289         * lib/printf.c: Likewise.
48290         * lib/progname.c: Likewise.
48291         * lib/progname.h: Likewise.
48292         * lib/progreloc.c: Likewise.
48293         * lib/putenv.c: Likewise.
48294         * lib/quote.c: Likewise.
48295         * lib/quote.h: Likewise.
48296         * lib/quotearg.c: Likewise.
48297         * lib/quotearg.h: Likewise.
48298         * lib/raise.c: Likewise.
48299         * lib/readline.c: Likewise.
48300         * lib/readline.h: Likewise.
48301         * lib/readlink.c: Likewise.
48302         * lib/readtokens.c: Likewise.
48303         * lib/readtokens.h: Likewise.
48304         * lib/readtokens0.c: Likewise.
48305         * lib/readtokens0.h: Likewise.
48306         * lib/readutmp.c: Likewise.
48307         * lib/readutmp.h: Likewise.
48308         * lib/realloc.c: Likewise.
48309         * lib/relocwrapper.c: Likewise.
48310         * lib/rename-dest-slash.c: Likewise.
48311         * lib/rename.c: Likewise.
48312         * lib/rmdir.c: Likewise.
48313         * lib/rpmatch.c: Likewise.
48314         * lib/safe-read.c: Likewise.
48315         * lib/safe-read.h: Likewise.
48316         * lib/safe-write.c: Likewise.
48317         * lib/safe-write.h: Likewise.
48318         * lib/same-inode.h: Likewise.
48319         * lib/same.c: Likewise.
48320         * lib/same.h: Likewise.
48321         * lib/save-cwd.c: Likewise.
48322         * lib/save-cwd.h: Likewise.
48323         * lib/savedir.c: Likewise.
48324         * lib/savedir.h: Likewise.
48325         * lib/savewd.c: Likewise.
48326         * lib/savewd.h: Likewise.
48327         * lib/search.in.h: Likewise.
48328         * lib/setenv.c: Likewise.
48329         * lib/setenv.h: Likewise.
48330         * lib/settime.c: Likewise.
48331         * lib/sh-quote.c: Likewise.
48332         * lib/sh-quote.h: Likewise.
48333         * lib/sig2str.c: Likewise.
48334         * lib/sig2str.h: Likewise.
48335         * lib/signal.in.h: Likewise.
48336         * lib/signbitd.c: Likewise.
48337         * lib/signbitf.c: Likewise.
48338         * lib/signbitl.c: Likewise.
48339         * lib/sigprocmask.c: Likewise.
48340         * lib/sincosl.c: Likewise.
48341         * lib/sleep.c: Likewise.
48342         * lib/sprintf.c: Likewise.
48343         * lib/sqrtl.c: Likewise.
48344         * lib/stat-time.h: Likewise.
48345         * lib/stdio--.h: Likewise.
48346         * lib/stdio-safer.h: Likewise.
48347         * lib/stdlib--.h: Likewise.
48348         * lib/stdlib-safer.h: Likewise.
48349         * lib/stdlib.in.h: Likewise.
48350         * lib/stpcpy.c: Likewise.
48351         * lib/stpncpy.c: Likewise.
48352         * lib/strchrnul.c: Likewise.
48353         * lib/strcspn.c: Likewise.
48354         * lib/strerror.c: Likewise.
48355         * lib/strftime.c: Likewise.
48356         * lib/strftime.h: Likewise.
48357         * lib/striconveh.c: Likewise.
48358         * lib/striconveh.h: Likewise.
48359         * lib/striconveha.c: Likewise.
48360         * lib/striconveha.h: Likewise.
48361         * lib/stripslash.c: Likewise.
48362         * lib/strnlen1.c: Likewise.
48363         * lib/strnlen1.h: Likewise.
48364         * lib/strtod.c: Likewise.
48365         * lib/strtoimax.c: Likewise.
48366         * lib/strtok_r.c: Likewise.
48367         * lib/strtol.c: Likewise.
48368         * lib/strtoll.c: Likewise.
48369         * lib/strtoul.c: Likewise.
48370         * lib/strtoull.c: Likewise.
48371         * lib/sysexits.in.h: Likewise.
48372         * lib/tempname.c: Likewise.
48373         * lib/tempname.h: Likewise.
48374         * lib/timespec.h: Likewise.
48375         * lib/tls.c: Likewise.
48376         * lib/tls.h: Likewise.
48377         * lib/tmpdir.c: Likewise.
48378         * lib/tmpdir.h: Likewise.
48379         * lib/tmpfile-safer.c: Likewise.
48380         * lib/tmpfile.c: Likewise.
48381         * lib/trigl.c: Likewise.
48382         * lib/trigl.h: Likewise.
48383         * lib/trim.c: Likewise.
48384         * lib/trim.h: Likewise.
48385         * lib/trunc.c: Likewise.
48386         * lib/truncf.c: Likewise.
48387         * lib/truncl.c: Likewise.
48388         * lib/tsearch.c: Likewise.
48389         * lib/unicodeio.c: Likewise.
48390         * lib/unicodeio.h: Likewise.
48391         * lib/unistd--.h: Likewise.
48392         * lib/unistd-safer.h: Likewise.
48393         * lib/unistdio/ulc-fprintf.c: Likewise.
48394         * lib/unistdio/ulc-vfprintf.c: Likewise.
48395         * lib/unlinkdir.c: Likewise.
48396         * lib/unlinkdir.h: Likewise.
48397         * lib/unlocked-io.h: Likewise.
48398         * lib/unsetenv.c: Likewise.
48399         * lib/userspec.c: Likewise.
48400         * lib/utime.c: Likewise.
48401         * lib/utimecmp.c: Likewise.
48402         * lib/utimecmp.h: Likewise.
48403         * lib/utimens.c: Likewise.
48404         * lib/verify.h: Likewise.
48405         * lib/verror.c: Likewise.
48406         * lib/verror.h: Likewise.
48407         * lib/version-etc-fsf.c: Likewise.
48408         * lib/version-etc.c: Likewise.
48409         * lib/version-etc.h: Likewise.
48410         * lib/vfprintf.c: Likewise.
48411         * lib/vprintf.c: Likewise.
48412         * lib/vsprintf.c: Likewise.
48413         * lib/w32spawn.h: Likewise.
48414         * lib/wait-process.c: Likewise.
48415         * lib/wait-process.h: Likewise.
48416         * lib/wcwidth.c: Likewise.
48417         * lib/write-any-file.c: Likewise.
48418         * lib/xalloc-die.c: Likewise.
48419         * lib/xalloc.h: Likewise.
48420         * lib/xasprintf.c: Likewise.
48421         * lib/xgetcwd.c: Likewise.
48422         * lib/xgetcwd.h: Likewise.
48423         * lib/xgetdomainname.c: Likewise.
48424         * lib/xgetdomainname.h: Likewise.
48425         * lib/xgethostname.c: Likewise.
48426         * lib/xmalloc.c: Likewise.
48427         * lib/xmalloca.c: Likewise.
48428         * lib/xmalloca.h: Likewise.
48429         * lib/xmemcoll.c: Likewise.
48430         * lib/xnanosleep.c: Likewise.
48431         * lib/xreadlink.c: Likewise.
48432         * lib/xreadlink.h: Likewise.
48433         * lib/xsetenv.c: Likewise.
48434         * lib/xsetenv.h: Likewise.
48435         * lib/xstriconv.c: Likewise.
48436         * lib/xstriconv.h: Likewise.
48437         * lib/xstrndup.c: Likewise.
48438         * lib/xstrndup.h: Likewise.
48439         * lib/xstrtod.c: Likewise.
48440         * lib/xstrtod.h: Likewise.
48441         * lib/xstrtol-error.c: Likewise.
48442         * lib/xstrtol.c: Likewise.
48443         * lib/xstrtol.h: Likewise.
48444         * lib/xtime.h: Likewise.
48445         * lib/xvasprintf.c: Likewise.
48446         * lib/xvasprintf.h: Likewise.
48447         * lib/yesno.c: Likewise.
48448         * lib/yesno.h: Likewise.
48449         * posix-modules: Likewise.
48450         * tests/test-alloca-opt.c: Likewise.
48451         * tests/test-arcfour.c: Likewise.
48452         * tests/test-arctwo.c: Likewise.
48453         * tests/test-argmatch.c: Likewise.
48454         * tests/test-argp-2.sh: Likewise.
48455         * tests/test-argp.c: Likewise.
48456         * tests/test-arpa_inet.c: Likewise.
48457         * tests/test-array_list.c: Likewise.
48458         * tests/test-array_oset.c: Likewise.
48459         * tests/test-atexit.c: Likewise.
48460         * tests/test-avltree_list.c: Likewise.
48461         * tests/test-avltree_oset.c: Likewise.
48462         * tests/test-avltreehash_list.c: Likewise.
48463         * tests/test-base64.c: Likewise.
48464         * tests/test-binary-io.c: Likewise.
48465         * tests/test-byteswap.c: Likewise.
48466         * tests/test-c-ctype.c: Likewise.
48467         * tests/test-c-strcasecmp.c: Likewise.
48468         * tests/test-c-strcasestr.c: Likewise.
48469         * tests/test-c-strncasecmp.c: Likewise.
48470         * tests/test-c-strstr.c: Likewise.
48471         * tests/test-canonicalize-lgpl.c: Likewise.
48472         * tests/test-canonicalize.c: Likewise.
48473         * tests/test-carray_list.c: Likewise.
48474         * tests/test-ceilf.c: Likewise.
48475         * tests/test-ceill.c: Likewise.
48476         * tests/test-count-one-bits.c: Likewise.
48477         * tests/test-crc.c: Likewise.
48478         * tests/test-dirname.c: Likewise.
48479         * tests/test-fbufmode.c: Likewise.
48480         * tests/test-fcntl.c: Likewise.
48481         * tests/test-fflush.c: Likewise.
48482         * tests/test-floorf.c: Likewise.
48483         * tests/test-floorl.c: Likewise.
48484         * tests/test-fopen.c: Likewise.
48485         * tests/test-fprintf-posix.c: Likewise.
48486         * tests/test-fprintf-posix.h: Likewise.
48487         * tests/test-fpurge.c: Likewise.
48488         * tests/test-freadable.c: Likewise.
48489         * tests/test-freadahead.c: Likewise.
48490         * tests/test-freading.c: Likewise.
48491         * tests/test-freopen.c: Likewise.
48492         * tests/test-frexp.c: Likewise.
48493         * tests/test-frexpl.c: Likewise.
48494         * tests/test-fseek.c: Likewise.
48495         * tests/test-fseeko.c: Likewise.
48496         * tests/test-fseterr.c: Likewise.
48497         * tests/test-fstrcmp.c: Likewise.
48498         * tests/test-ftell.c: Likewise.
48499         * tests/test-ftello.c: Likewise.
48500         * tests/test-fwritable.c: Likewise.
48501         * tests/test-fwriting.c: Likewise.
48502         * tests/test-getaddrinfo.c: Likewise.
48503         * tests/test-getpass.c: Likewise.
48504         * tests/test-gettimeofday.c: Likewise.
48505         * tests/test-hmac-md5.c: Likewise.
48506         * tests/test-hmac-sha1.c: Likewise.
48507         * tests/test-iconv.c: Likewise.
48508         * tests/test-iconvme.c: Likewise.
48509         * tests/test-inttypes.c: Likewise.
48510         * tests/test-isnan.c: Likewise.
48511         * tests/test-isnanf.c: Likewise.
48512         * tests/test-isnanl-nolibm.c: Likewise.
48513         * tests/test-isnanl.c: Likewise.
48514         * tests/test-isnanl.h: Likewise.
48515         * tests/test-ldexpl.c: Likewise.
48516         * tests/test-linked_list.c: Likewise.
48517         * tests/test-linkedhash_list.c: Likewise.
48518         * tests/test-locale.c: Likewise.
48519         * tests/test-localename.c: Likewise.
48520         * tests/test-lock.c: Likewise.
48521         * tests/test-lseek.c: Likewise.
48522         * tests/test-malloca.c: Likewise.
48523         * tests/test-math.c: Likewise.
48524         * tests/test-mbscasecmp.c: Likewise.
48525         * tests/test-mbscasestr1.c: Likewise.
48526         * tests/test-mbscasestr2.c: Likewise.
48527         * tests/test-mbscasestr3.c: Likewise.
48528         * tests/test-mbscasestr4.c: Likewise.
48529         * tests/test-mbschr.c: Likewise.
48530         * tests/test-mbscspn.c: Likewise.
48531         * tests/test-mbsncasecmp.c: Likewise.
48532         * tests/test-mbspbrk.c: Likewise.
48533         * tests/test-mbspcasecmp.c: Likewise.
48534         * tests/test-mbsrchr.c: Likewise.
48535         * tests/test-mbsspn.c: Likewise.
48536         * tests/test-mbsstr1.c: Likewise.
48537         * tests/test-mbsstr2.c: Likewise.
48538         * tests/test-mbsstr3.c: Likewise.
48539         * tests/test-md5.c: Likewise.
48540         * tests/test-memmem.c: Likewise.
48541         * tests/test-netinet_in.c: Likewise.
48542         * tests/test-open.c: Likewise.
48543         * tests/test-printf-frexp.c: Likewise.
48544         * tests/test-printf-frexpl.c: Likewise.
48545         * tests/test-printf-posix.c: Likewise.
48546         * tests/test-printf-posix.h: Likewise.
48547         * tests/test-rbtree_list.c: Likewise.
48548         * tests/test-rbtree_oset.c: Likewise.
48549         * tests/test-rbtreehash_list.c: Likewise.
48550         * tests/test-read-file.c: Likewise.
48551         * tests/test-rijndael.c: Likewise.
48552         * tests/test-search.c: Likewise.
48553         * tests/test-signbit.c: Likewise.
48554         * tests/test-sleep.c: Likewise.
48555         * tests/test-snprintf-posix.c: Likewise.
48556         * tests/test-snprintf-posix.h: Likewise.
48557         * tests/test-snprintf.c: Likewise.
48558         * tests/test-sprintf-posix.c: Likewise.
48559         * tests/test-sprintf-posix.h: Likewise.
48560         * tests/test-stat-time.c: Likewise.
48561         * tests/test-stdbool.c: Likewise.
48562         * tests/test-stdint.c: Likewise.
48563         * tests/test-stdio.c: Likewise.
48564         * tests/test-stdlib.c: Likewise.
48565         * tests/test-stpncpy.c: Likewise.
48566         * tests/test-strcasestr.c: Likewise.
48567         * tests/test-striconv.c: Likewise.
48568         * tests/test-striconveh.c: Likewise.
48569         * tests/test-striconveha.c: Likewise.
48570         * tests/test-string.c: Likewise.
48571         * tests/test-sys_select.c: Likewise.
48572         * tests/test-sys_socket.c: Likewise.
48573         * tests/test-sys_stat.c: Likewise.
48574         * tests/test-sys_time.c: Likewise.
48575         * tests/test-sysexits.c: Likewise.
48576         * tests/test-time.c: Likewise.
48577         * tests/test-tls.c: Likewise.
48578         * tests/test-trunc.c: Likewise.
48579         * tests/test-truncf.c: Likewise.
48580         * tests/test-truncl.c: Likewise.
48581         * tests/test-unistd.c: Likewise.
48582         * tests/test-vasnprintf-posix.c: Likewise.
48583         * tests/test-vasnprintf-posix2.c: Likewise.
48584         * tests/test-vasnprintf.c: Likewise.
48585         * tests/test-vasprintf-posix.c: Likewise.
48586         * tests/test-vasprintf.c: Likewise.
48587         * tests/test-verify.c: Likewise.
48588         * tests/test-vfprintf-posix.c: Likewise.
48589         * tests/test-vprintf-posix.c: Likewise.
48590         * tests/test-vsnprintf-posix.c: Likewise.
48591         * tests/test-vsnprintf.c: Likewise.
48592         * tests/test-vsprintf-posix.c: Likewise.
48593         * tests/test-wchar.c: Likewise.
48594         * tests/test-wctype.c: Likewise.
48595         * tests/test-wcwidth.c: Likewise.
48596         * tests/test-xstrtol.c: Likewise.
48597         * tests/test-xvasprintf.c: Likewise.
48598         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
48599         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
48600         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
48601         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
48602         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
48603         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
48604         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
48605         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
48606         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
48607         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
48608         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
48609         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
48610         * tests/uniname/test-uninames.c: Likewise.
48611         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
48612         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
48613         * tests/unistdio/test-u16-printf1.h: Likewise.
48614         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
48615         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
48616         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
48617         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
48618         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
48619         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
48620         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
48621         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
48622         * tests/unistdio/test-u32-printf1.h: Likewise.
48623         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
48624         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
48625         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
48626         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
48627         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
48628         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
48629         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
48630         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
48631         * tests/unistdio/test-u8-printf1.h: Likewise.
48632         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
48633         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
48634         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
48635         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
48636         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
48637         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
48638         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
48639         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
48640         * tests/unistdio/test-ulc-printf1.h: Likewise.
48641         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
48642         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
48643         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
48644         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
48645         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
48646         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
48647         * tests/uniwidth/test-u16-strwidth.c: Likewise.
48648         * tests/uniwidth/test-u16-width.c: Likewise.
48649         * tests/uniwidth/test-u32-strwidth.c: Likewise.
48650         * tests/uniwidth/test-u32-width.c: Likewise.
48651         * tests/uniwidth/test-u8-strwidth.c: Likewise.
48652         * tests/uniwidth/test-u8-width.c: Likewise.
48653         * tests/uniwidth/test-uc_width.c: Likewise.
48654         * config/srclist-update: Likewise.
48655         (fixlicense): Update to GPLv3+.
48656
48657         Change copyright notice from LGPLv2.1+ to LGPLv3+.
48658         * tests/test-tsearch.c: Change copyright notice.
48659
48660         Change copyright notice from LGPLv2.0+ to LGPLv3+.
48661         * lib/c-strcaseeq.h: Change copyright notice.
48662         * lib/streq.h: Likewise.
48663         * lib/uniconv.h: Likewise.
48664         * lib/uniconv/u-conv-from-enc.h: Likewise.
48665         * lib/uniconv/u-conv-to-enc.h: Likewise.
48666         * lib/uniconv/u-strconv-from-enc.h: Likewise.
48667         * lib/uniconv/u-strconv-to-enc.h: Likewise.
48668         * lib/uniconv/u16-conv-from-enc.c: Likewise.
48669         * lib/uniconv/u16-conv-to-enc.c: Likewise.
48670         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
48671         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
48672         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
48673         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
48674         * lib/uniconv/u32-conv-from-enc.c: Likewise.
48675         * lib/uniconv/u32-conv-to-enc.c: Likewise.
48676         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
48677         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
48678         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
48679         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
48680         * lib/uniconv/u8-conv-from-enc.c: Likewise.
48681         * lib/uniconv/u8-conv-to-enc.c: Likewise.
48682         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
48683         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
48684         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
48685         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
48686         * lib/uniname.h: Likewise.
48687         * lib/uniname/uniname.c: Likewise.
48688         * lib/unistdio.h: Likewise.
48689         * lib/unistdio/u-asnprintf.h: Likewise.
48690         * lib/unistdio/u-asprintf.h: Likewise.
48691         * lib/unistdio/u-printf-args.c: Likewise.
48692         * lib/unistdio/u-printf-args.h: Likewise.
48693         * lib/unistdio/u-printf-parse.h: Likewise.
48694         * lib/unistdio/u-snprintf.h: Likewise.
48695         * lib/unistdio/u-sprintf.h: Likewise.
48696         * lib/unistdio/u-vasprintf.h: Likewise.
48697         * lib/unistdio/u-vsnprintf.h: Likewise.
48698         * lib/unistdio/u-vsprintf.h: Likewise.
48699         * lib/unistdio/u16-asnprintf.c: Likewise.
48700         * lib/unistdio/u16-asprintf.c: Likewise.
48701         * lib/unistdio/u16-printf-parse.c: Likewise.
48702         * lib/unistdio/u16-snprintf.c: Likewise.
48703         * lib/unistdio/u16-sprintf.c: Likewise.
48704         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
48705         * lib/unistdio/u16-u16-asprintf.c: Likewise.
48706         * lib/unistdio/u16-u16-snprintf.c: Likewise.
48707         * lib/unistdio/u16-u16-sprintf.c: Likewise.
48708         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
48709         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
48710         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
48711         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
48712         * lib/unistdio/u16-vasnprintf.c: Likewise.
48713         * lib/unistdio/u16-vasprintf.c: Likewise.
48714         * lib/unistdio/u16-vsnprintf.c: Likewise.
48715         * lib/unistdio/u16-vsprintf.c: Likewise.
48716         * lib/unistdio/u32-asnprintf.c: Likewise.
48717         * lib/unistdio/u32-asprintf.c: Likewise.
48718         * lib/unistdio/u32-printf-parse.c: Likewise.
48719         * lib/unistdio/u32-snprintf.c: Likewise.
48720         * lib/unistdio/u32-sprintf.c: Likewise.
48721         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
48722         * lib/unistdio/u32-u32-asprintf.c: Likewise.
48723         * lib/unistdio/u32-u32-snprintf.c: Likewise.
48724         * lib/unistdio/u32-u32-sprintf.c: Likewise.
48725         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
48726         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
48727         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
48728         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
48729         * lib/unistdio/u32-vasnprintf.c: Likewise.
48730         * lib/unistdio/u32-vasprintf.c: Likewise.
48731         * lib/unistdio/u32-vsnprintf.c: Likewise.
48732         * lib/unistdio/u32-vsprintf.c: Likewise.
48733         * lib/unistdio/u8-asnprintf.c: Likewise.
48734         * lib/unistdio/u8-asprintf.c: Likewise.
48735         * lib/unistdio/u8-printf-parse.c: Likewise.
48736         * lib/unistdio/u8-snprintf.c: Likewise.
48737         * lib/unistdio/u8-sprintf.c: Likewise.
48738         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
48739         * lib/unistdio/u8-u8-asprintf.c: Likewise.
48740         * lib/unistdio/u8-u8-snprintf.c: Likewise.
48741         * lib/unistdio/u8-u8-sprintf.c: Likewise.
48742         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
48743         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
48744         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
48745         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
48746         * lib/unistdio/u8-vasnprintf.c: Likewise.
48747         * lib/unistdio/u8-vasprintf.c: Likewise.
48748         * lib/unistdio/u8-vsnprintf.c: Likewise.
48749         * lib/unistdio/u8-vsprintf.c: Likewise.
48750         * lib/unistdio/ulc-asnprintf.c: Likewise.
48751         * lib/unistdio/ulc-asprintf.c: Likewise.
48752         * lib/unistdio/ulc-printf-parse.c: Likewise.
48753         * lib/unistdio/ulc-snprintf.c: Likewise.
48754         * lib/unistdio/ulc-sprintf.c: Likewise.
48755         * lib/unistdio/ulc-vasnprintf.c: Likewise.
48756         * lib/unistdio/ulc-vasprintf.c: Likewise.
48757         * lib/unistdio/ulc-vsnprintf.c: Likewise.
48758         * lib/unistdio/ulc-vsprintf.c: Likewise.
48759         * lib/unistr.h: Likewise.
48760         * lib/unistr/u-cpy-alloc.h: Likewise.
48761         * lib/unistr/u-cpy.h: Likewise.
48762         * lib/unistr/u-endswith.h: Likewise.
48763         * lib/unistr/u-move.h: Likewise.
48764         * lib/unistr/u-set.h: Likewise.
48765         * lib/unistr/u-startswith.h: Likewise.
48766         * lib/unistr/u-stpcpy.h: Likewise.
48767         * lib/unistr/u-stpncpy.h: Likewise.
48768         * lib/unistr/u-strcat.h: Likewise.
48769         * lib/unistr/u-strcpy.h: Likewise.
48770         * lib/unistr/u-strcspn.h: Likewise.
48771         * lib/unistr/u-strdup.h: Likewise.
48772         * lib/unistr/u-strlen.h: Likewise.
48773         * lib/unistr/u-strncat.h: Likewise.
48774         * lib/unistr/u-strncpy.h: Likewise.
48775         * lib/unistr/u-strnlen.h: Likewise.
48776         * lib/unistr/u-strpbrk.h: Likewise.
48777         * lib/unistr/u-strspn.h: Likewise.
48778         * lib/unistr/u-strstr.h: Likewise.
48779         * lib/unistr/u-strtok.h: Likewise.
48780         * lib/unistr/u16-check.c: Likewise.
48781         * lib/unistr/u16-chr.c: Likewise.
48782         * lib/unistr/u16-cmp.c: Likewise.
48783         * lib/unistr/u16-cpy-alloc.c: Likewise.
48784         * lib/unistr/u16-cpy.c: Likewise.
48785         * lib/unistr/u16-endswith.c: Likewise.
48786         * lib/unistr/u16-mblen.c: Likewise.
48787         * lib/unistr/u16-mbsnlen.c: Likewise.
48788         * lib/unistr/u16-mbtouc-aux.c: Likewise.
48789         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
48790         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
48791         * lib/unistr/u16-mbtouc.c: Likewise.
48792         * lib/unistr/u16-mbtoucr.c: Likewise.
48793         * lib/unistr/u16-move.c: Likewise.
48794         * lib/unistr/u16-next.c: Likewise.
48795         * lib/unistr/u16-prev.c: Likewise.
48796         * lib/unistr/u16-set.c: Likewise.
48797         * lib/unistr/u16-startswith.c: Likewise.
48798         * lib/unistr/u16-stpcpy.c: Likewise.
48799         * lib/unistr/u16-stpncpy.c: Likewise.
48800         * lib/unistr/u16-strcat.c: Likewise.
48801         * lib/unistr/u16-strchr.c: Likewise.
48802         * lib/unistr/u16-strcmp.c: Likewise.
48803         * lib/unistr/u16-strcpy.c: Likewise.
48804         * lib/unistr/u16-strcspn.c: Likewise.
48805         * lib/unistr/u16-strdup.c: Likewise.
48806         * lib/unistr/u16-strlen.c: Likewise.
48807         * lib/unistr/u16-strmblen.c: Likewise.
48808         * lib/unistr/u16-strmbtouc.c: Likewise.
48809         * lib/unistr/u16-strncat.c: Likewise.
48810         * lib/unistr/u16-strncmp.c: Likewise.
48811         * lib/unistr/u16-strncpy.c: Likewise.
48812         * lib/unistr/u16-strnlen.c: Likewise.
48813         * lib/unistr/u16-strpbrk.c: Likewise.
48814         * lib/unistr/u16-strrchr.c: Likewise.
48815         * lib/unistr/u16-strspn.c: Likewise.
48816         * lib/unistr/u16-strstr.c: Likewise.
48817         * lib/unistr/u16-strtok.c: Likewise.
48818         * lib/unistr/u16-to-u32.c: Likewise.
48819         * lib/unistr/u16-to-u8.c: Likewise.
48820         * lib/unistr/u16-uctomb-aux.c: Likewise.
48821         * lib/unistr/u16-uctomb.c: Likewise.
48822         * lib/unistr/u32-check.c: Likewise.
48823         * lib/unistr/u32-chr.c: Likewise.
48824         * lib/unistr/u32-cmp.c: Likewise.
48825         * lib/unistr/u32-cpy-alloc.c: Likewise.
48826         * lib/unistr/u32-cpy.c: Likewise.
48827         * lib/unistr/u32-endswith.c: Likewise.
48828         * lib/unistr/u32-mblen.c: Likewise.
48829         * lib/unistr/u32-mbsnlen.c: Likewise.
48830         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
48831         * lib/unistr/u32-mbtouc.c: Likewise.
48832         * lib/unistr/u32-mbtoucr.c: Likewise.
48833         * lib/unistr/u32-move.c: Likewise.
48834         * lib/unistr/u32-next.c: Likewise.
48835         * lib/unistr/u32-prev.c: Likewise.
48836         * lib/unistr/u32-set.c: Likewise.
48837         * lib/unistr/u32-startswith.c: Likewise.
48838         * lib/unistr/u32-stpcpy.c: Likewise.
48839         * lib/unistr/u32-stpncpy.c: Likewise.
48840         * lib/unistr/u32-strcat.c: Likewise.
48841         * lib/unistr/u32-strchr.c: Likewise.
48842         * lib/unistr/u32-strcmp.c: Likewise.
48843         * lib/unistr/u32-strcpy.c: Likewise.
48844         * lib/unistr/u32-strcspn.c: Likewise.
48845         * lib/unistr/u32-strdup.c: Likewise.
48846         * lib/unistr/u32-strlen.c: Likewise.
48847         * lib/unistr/u32-strmblen.c: Likewise.
48848         * lib/unistr/u32-strmbtouc.c: Likewise.
48849         * lib/unistr/u32-strncat.c: Likewise.
48850         * lib/unistr/u32-strncmp.c: Likewise.
48851         * lib/unistr/u32-strncpy.c: Likewise.
48852         * lib/unistr/u32-strnlen.c: Likewise.
48853         * lib/unistr/u32-strpbrk.c: Likewise.
48854         * lib/unistr/u32-strrchr.c: Likewise.
48855         * lib/unistr/u32-strspn.c: Likewise.
48856         * lib/unistr/u32-strstr.c: Likewise.
48857         * lib/unistr/u32-strtok.c: Likewise.
48858         * lib/unistr/u32-to-u16.c: Likewise.
48859         * lib/unistr/u32-to-u8.c: Likewise.
48860         * lib/unistr/u32-uctomb.c: Likewise.
48861         * lib/unistr/u8-check.c: Likewise.
48862         * lib/unistr/u8-chr.c: Likewise.
48863         * lib/unistr/u8-cmp.c: Likewise.
48864         * lib/unistr/u8-cpy-alloc.c: Likewise.
48865         * lib/unistr/u8-cpy.c: Likewise.
48866         * lib/unistr/u8-endswith.c: Likewise.
48867         * lib/unistr/u8-mblen.c: Likewise.
48868         * lib/unistr/u8-mbsnlen.c: Likewise.
48869         * lib/unistr/u8-mbtouc-aux.c: Likewise.
48870         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
48871         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
48872         * lib/unistr/u8-mbtouc.c: Likewise.
48873         * lib/unistr/u8-mbtoucr.c: Likewise.
48874         * lib/unistr/u8-move.c: Likewise.
48875         * lib/unistr/u8-next.c: Likewise.
48876         * lib/unistr/u8-prev.c: Likewise.
48877         * lib/unistr/u8-set.c: Likewise.
48878         * lib/unistr/u8-startswith.c: Likewise.
48879         * lib/unistr/u8-stpcpy.c: Likewise.
48880         * lib/unistr/u8-stpncpy.c: Likewise.
48881         * lib/unistr/u8-strcat.c: Likewise.
48882         * lib/unistr/u8-strchr.c: Likewise.
48883         * lib/unistr/u8-strcmp.c: Likewise.
48884         * lib/unistr/u8-strcpy.c: Likewise.
48885         * lib/unistr/u8-strcspn.c: Likewise.
48886         * lib/unistr/u8-strdup.c: Likewise.
48887         * lib/unistr/u8-strlen.c: Likewise.
48888         * lib/unistr/u8-strmblen.c: Likewise.
48889         * lib/unistr/u8-strmbtouc.c: Likewise.
48890         * lib/unistr/u8-strncat.c: Likewise.
48891         * lib/unistr/u8-strncmp.c: Likewise.
48892         * lib/unistr/u8-strncpy.c: Likewise.
48893         * lib/unistr/u8-strnlen.c: Likewise.
48894         * lib/unistr/u8-strpbrk.c: Likewise.
48895         * lib/unistr/u8-strrchr.c: Likewise.
48896         * lib/unistr/u8-strspn.c: Likewise.
48897         * lib/unistr/u8-strstr.c: Likewise.
48898         * lib/unistr/u8-strtok.c: Likewise.
48899         * lib/unistr/u8-to-u16.c: Likewise.
48900         * lib/unistr/u8-to-u32.c: Likewise.
48901         * lib/unistr/u8-uctomb-aux.c: Likewise.
48902         * lib/unistr/u8-uctomb.c: Likewise.
48903         * lib/unitypes.h: Likewise.
48904         * lib/uniwidth.h: Likewise.
48905         * lib/uniwidth/cjk.h: Likewise.
48906         * lib/uniwidth/u16-strwidth.c: Likewise.
48907         * lib/uniwidth/u16-width.c: Likewise.
48908         * lib/uniwidth/u32-strwidth.c: Likewise.
48909         * lib/uniwidth/u32-width.c: Likewise.
48910         * lib/uniwidth/u8-strwidth.c: Likewise.
48911         * lib/uniwidth/u8-width.c: Likewise.
48912         * lib/uniwidth/width.c: Likewise.
48913
48914 2007-10-07  Bruno Haible  <bruno@clisp.org>
48915
48916         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
48917         The file is still under LGPL (see modules/inttypes).
48918
48919 2007-10-06  Bruno Haible  <bruno@clisp.org>
48920
48921         * modules/trunc (Dependencies): Add 'extensions'.
48922         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
48923         Reported by Ben Pfaff <blp@gnu.org>.
48924
48925 2007-10-06  Bruno Haible  <bruno@clisp.org>
48926
48927         * modules/freopen-tests: New file.
48928         * tests/test-freopen.c: New file.
48929
48930         * modules/fopen-tests: New file.
48931         * tests/test-fopen.c: New file.
48932
48933         * modules/fopen: New file.
48934         * lib/fopen.c: New file.
48935         * m4/fopen.m4: New file.
48936         * modules/freopen: New file.
48937         * lib/freopen.c: New file.
48938         * m4/freopen.m4: New file.
48939         * lib/stdio.in.h (fopen, freopen): New declarations.
48940         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
48941         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
48942         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
48943         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
48944         * doc/functions/fopen.texi: Mention the 'fopen' module.
48945         * doc/functions/freopen.texi: Mention the 'freopen' module.
48946
48947 2007-10-06  Bruno Haible  <bruno@clisp.org>
48948
48949         * modules/open-tests: New file.
48950         * tests/test-open.c: New file.
48951
48952         * modules/open: New file.
48953         * lib/open.c: New file.
48954         * m4/open.m4: New file.
48955         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
48956         lib/open.c does.
48957         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
48958         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
48959         macros.
48960         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
48961         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
48962         REPLACE_OPEN.
48963         * doc/functions/open.texi: Mention the 'open' module.
48964
48965 2007-10-04  Bruno Haible  <bruno@clisp.org>
48966
48967         * modules/ceill-tests: New file.
48968         * tests/test-ceill.c: New file.
48969
48970         * modules/ceill: New file.
48971         * lib/ceill.c: Replace entire file.
48972         * m4/ceill.m4: New file.
48973         * lib/math.in.h (ceill): Replace declaration.
48974         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
48975         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
48976         * doc/functions/ceill.texi: Mention the 'ceill' module.
48977         * modules/mathl (Files): Remove lib/ceill.c.
48978         (Depends-on): Add ceill.
48979
48980 2007-10-04  Bruno Haible  <bruno@clisp.org>
48981
48982         * modules/ceilf-tests: New file.
48983         * tests/test-ceilf.c: New file.
48984
48985         * modules/ceilf: New file.
48986         * lib/ceil.c: New file.
48987         * lib/ceilf.c: New file.
48988         * m4/ceilf.m4: New file.
48989         * lib/math.in.h (ceilf): New declaration.
48990         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
48991         HAVE_DECL_CEILF.
48992         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
48993         HAVE_DECL_CEILF.
48994         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
48995
48996 2007-10-04  Bruno Haible  <bruno@clisp.org>
48997
48998         * modules/floorl-tests: New file.
48999         * tests/test-floorl.c: New file.
49000
49001         * modules/floorl: New file.
49002         * lib/floorl.c: Replace entire file.
49003         * m4/floorl.m4: New file.
49004         * lib/math.in.h (floorl): Replace declaration.
49005         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
49006         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
49007         * doc/functions/floorl.texi: Mention the 'floorl' module.
49008         * modules/mathl (Files): Remove lib/floorl.c.
49009         (Depends-on): Add floorl.
49010
49011 2007-10-04  Bruno Haible  <bruno@clisp.org>
49012
49013         * modules/floorf-tests: New file.
49014         * tests/test-floorf.c: New file.
49015
49016         * modules/floorf: New file.
49017         * lib/floor.c: New file.
49018         * lib/floorf.c: New file.
49019         * m4/floorf.m4: New file.
49020         * lib/math.in.h (floorf): New declaration.
49021         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
49022         HAVE_DECL_FLOORF.
49023         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
49024         HAVE_DECL_FLOORF.
49025         * doc/functions/floorf.texi: Mention the 'floorf' module.
49026
49027 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
49028             Bruno Haible  <bruno@clisp.org>
49029
49030         Advertise for the Git server instead of the CVS server.
49031         * doc/gnulib-intro.texi (Steady Development): Mention the Git
49032         repository instead of the CVS one.
49033         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
49034         about all VCS systems generically.
49035         * doc/gnulib.texi (Introduction): Capitalize `Git'.
49036
49037 2007-10-04  Bruno Haible  <bruno@clisp.org>
49038
49039         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
49040         means.
49041         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
49042
49043 2007-10-04  Bruno Haible  <bruno@clisp.org>
49044
49045         * modules/truncl-tests: New file.
49046         * tests/test-truncl.c: New file.
49047
49048         * modules/truncl: New file.
49049         * lib/truncl.c: New file.
49050         * m4/truncl.m4: New file.
49051         * lib/math.in.h (truncl): New declaration.
49052         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
49053         HAVE_DECL_TRUNCL.
49054         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
49055         HAVE_DECL_TRUNCL.
49056         * doc/functions/truncl.texi: Mention the 'truncl' module.
49057
49058 2007-10-04  Bruno Haible  <bruno@clisp.org>
49059
49060         * modules/truncf-tests: New file.
49061         * tests/test-truncf.c: New file.
49062
49063         * modules/truncf: New file.
49064         * lib/trunc.c: Make paramerizable through USE_* macros.
49065         * lib/truncf.c: New file.
49066         * m4/truncf.m4: New file.
49067         * lib/math.in.h (truncf): New declaration.
49068         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
49069         HAVE_DECL_TRUNCF.
49070         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
49071         HAVE_DECL_TRUNCF.
49072         * doc/functions/truncf.texi: Mention the 'truncf' module.
49073
49074 2007-10-03  Bruno Haible  <bruno@clisp.org>
49075
49076         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
49077         augmentation also for tests modules.
49078         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
49079         * modules/atexit-tests (Makefile.am): Likewise.
49080         * modules/binary-io-tests (Makefile.am): Likewise.
49081         * modules/c-strcase-tests (Makefile.am): Likewise.
49082         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
49083         * modules/canonicalize-tests (Makefile.am): Likewise.
49084         * modules/closein-tests (Makefile.am): Likewise.
49085         * modules/fprintf-posix-tests (Makefile.am): Likewise.
49086         * modules/freadahead-tests (Makefile.am): Likewise.
49087         * modules/fseek-tests (Makefile.am): Likewise.
49088         * modules/fseeko-tests (Makefile.am): Likewise.
49089         * modules/ftell-tests (Makefile.am): Likewise.
49090         * modules/ftello-tests (Makefile.am): Likewise.
49091         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
49092         * modules/isnanl-tests (Makefile.am): Likewise.
49093         * modules/lseek-tests (Makefile.am): Likewise.
49094         * modules/mbscasecmp-tests (Makefile.am): Likewise.
49095         * modules/mbscasestr-tests (Makefile.am): Likewise.
49096         * modules/mbschr-tests (Makefile.am): Likewise.
49097         * modules/mbscspn-tests (Makefile.am): Likewise.
49098         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
49099         * modules/mbspbrk-tests (Makefile.am): Likewise.
49100         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
49101         * modules/mbsrchr-tests (Makefile.am): Likewise.
49102         * modules/mbsspn-tests (Makefile.am): Likewise.
49103         * modules/mbsstr-tests (Makefile.am): Likewise.
49104         * modules/printf-posix-tests (Makefile.am): Likewise.
49105         * modules/snprintf-posix-tests (Makefile.am): Likewise.
49106         * modules/sprintf-posix-tests (Makefile.am): Likewise.
49107         * modules/tsearch-tests (Makefile.am): Likewise.
49108         * modules/uniname/uniname-tests (Makefile.am): Likewise.
49109         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
49110         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
49111         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
49112         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
49113         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
49114         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
49115         * modules/vprintf-posix-tests (Makefile.am): Likewise.
49116         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
49117         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
49118         * modules/xstrtoimax-tests (Makefile.am): Likewise.
49119         * modules/xstrtol-tests (Makefile.am): Likewise.
49120         * modules/xstrtoumax-tests (Makefile.am): Likewise.
49121         * modules/yesno-tests (Makefile.am): Likewise.
49122
49123 2007-10-03  Bruno Haible  <bruno@clisp.org>
49124
49125         * modules/trunc-tests: New file.
49126         * tests/test-trunc.c: New file.
49127
49128         * modules/trunc: New file.
49129         * lib/trunc.c: New file.
49130         * m4/trunc.m4: New file.
49131         * lib/math.in.h (trunc): New declaration.
49132         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
49133         HAVE_DECL_TRUNC.
49134         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
49135         HAVE_DECL_TRUNC.
49136         * doc/functions/trunc.texi: Mention the 'trunc' module.
49137
49138 2007-10-03  Bruno Haible  <bruno@clisp.org>
49139
49140         * tests/test-fpending.c: New file, mostly copied
49141         from coreutils/lib/t-fpending.c.
49142         * modules/fpending-tests: New file.
49143
49144 2007-10-03  Bruno Haible  <bruno@clisp.org>
49145
49146         Port the stdio extensions to QNX (untested).
49147         * lib/fseterr.c (fseterr): Add support for QNX.
49148         * lib/fbufmode.c (fbufmode): Likewise.
49149         * lib/freadable.c (freadable): Likewise.
49150         * lib/fwritable.c (fwritable): Likewise.
49151         * lib/freading.c (freading): Likewise.
49152         * lib/fwriting.c (fwriting): Likewise.
49153         * lib/freadahead.c (freadahed): Likewise.
49154         * lib/fpurge.c (fpurge): Likewise.
49155         * lib/fseeko.c (rpl_fseeko): Likewise.
49156
49157 2007-10-03  Bruno Haible  <bruno@clisp.org>
49158             Jim Meyering  <jim@meyering.net>
49159             Eric Blake  <ebb9@byu.net>
49160
49161         * doc/relocatable.texi: Use @command instead of @program.
49162
49163 2007-10-02  Jim Meyering  <jim@meyering.net>
49164
49165         Perform one more "_.h" -> ".in.h" substitution.
49166         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
49167         instead of unistd_.h here, too.
49168
49169 2007-10-01  Bruno Haible  <bruno@clisp.org>
49170
49171         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
49172         Needed for the alloca-opt module.
49173
49174 2007-09-30  Bruno Haible  <bruno@clisp.org>
49175
49176         * lib/alloca.in.h: Renamed from lib/alloca_.h.
49177         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
49178         alloca_.h.
49179         * lib/argz.in.h: Renamed from lib/argz_.h.
49180         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
49181         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
49182         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
49183         byteswap_.h.
49184         * lib/dirent.in.h: Renamed from lib/dirent_.h.
49185         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
49186         dirent_.h.
49187         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
49188         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
49189         fcntl_.h.
49190         * lib/float.in.h: Renamed from lib/float_.h.
49191         * modules/float (Files, Makefile.am): Use float.in.h instead of
49192         float_.h.
49193         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
49194         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
49195         fnmatch_.h.
49196         * lib/getopt.in.h: Renamed from lib/getopt_.h.
49197         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
49198         getopt_.h.
49199         * lib/glob.in.h: Renamed from lib/glob_.h.
49200         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
49201         * lib/iconv.in.h: Renamed from lib/iconv_.h.
49202         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
49203         iconv_.h.
49204         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
49205         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
49206         inttypes_.h.
49207         * lib/locale.in.h: Renamed from lib/locale_.h.
49208         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
49209         locale_.h.
49210         * lib/math.in.h: Renamed from lib/math_.h.
49211         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
49212         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
49213         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
49214         of netinet_in_.h. Add dependency.
49215         * lib/poll.in.h: Renamed from lib/poll_.h.
49216         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
49217         * lib/search.in.h: Renamed from lib/search_.h.
49218         * modules/search (Files, Makefile.am): Use search.in.h instead of
49219         search_.h.
49220         * lib/signal.in.h: Renamed from lib/signal_.h.
49221         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
49222         _signal.h.
49223         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
49224         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
49225         stdbool_.h.
49226         * lib/stdint.in.h: Renamed from lib/stdint_.h.
49227         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
49228         stdint_.h.
49229         * lib/stdio.in.h: Renamed from lib/stdio_.h.
49230         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
49231         stdio_.h.
49232         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
49233         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
49234         stdlib_.h.
49235         * lib/string.in.h: Renamed from lib/string_.h.
49236         * modules/string (Files, Makefile.am): Use string.in.h instead of
49237         string_.h.
49238         * doc/gnulib-tool.texi (Initial import): Update.
49239         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
49240         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
49241         of sys_select_.h. Add dependency.
49242         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
49243         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
49244         of sys_socket_.h.
49245         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
49246         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
49247         sys_stat_.h.
49248         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
49249         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
49250         sys_time_.h.
49251         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
49252         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
49253         sysexits_.h.
49254         * lib/time.in.h: Renamed from lib/time_.h.
49255         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
49256         * lib/unistd.in.h: Renamed from lib/unistd_.h.
49257         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
49258         unistd_.h.
49259         * lib/wchar.in.h: Renamed from lib/wchar_.h.
49260         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
49261         wchar_.h.
49262         * lib/wctype.in.h: Renamed from lib/wctype_.h.
49263         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
49264         wctype_.h.
49265         * build-aux/bootstrap (slurp): Update.
49266         * lib/.cppi-disable: Update.
49267
49268 2007-09-30  Bruno Haible  <bruno@clisp.org>
49269
49270         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
49271         Needed on BeOS.
49272
49273 2007-09-30  Bruno Haible  <bruno@clisp.org>
49274
49275         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
49276
49277 2007-09-29  Bruno Haible  <bruno@clisp.org>
49278
49279         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
49280
49281 2007-09-29  Bruno Haible  <bruno@clisp.org>
49282
49283         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
49284         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
49285         * build-aux/install-reloc: Compile also areadlink.c.
49286         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
49287
49288 2007-09-29  Bruno Haible  <bruno@clisp.org>
49289
49290         * gnulib-tool (func_emit_initmacro_done): Indentation.
49291
49292 2007-09-29  Bruno Haible  <bruno@clisp.org>
49293
49294         * README: Add CVS checkout update instructions.
49295         Info from Bob Proulx <bob@proulx.com>.
49296
49297 2007-09-28  Eric Blake  <ebb9@byu.net>
49298
49299         Provide move-if-change.
49300         * build-aux/move-if-change: New file, based on best practice
49301         rather than any canonical upstream location.
49302
49303 2007-09-28  Jim Meyering  <jim@meyering.net>
49304
49305         Fix canonicalize loop-detection corner case.
49306         Do not attempt to stat the symlink values stored via seen_triple.
49307         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
49308         on linux-2.6.18, (but not 2.6.22).
49309         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
49310         triple_compare.  The former compares dev,ino,filename, while the latter
49311         would actually stat dirname(filename) when dev and ino were equal.
49312         * lib/hash-triple.c: Install <string.h>.
49313         (STREQ): Define.
49314         (triple_compare_ino_str): New function.
49315         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
49316
49317 2007-09-28  Eric Blake  <ebb9@byu.net>
49318
49319         Enforce that AC_REPLACE_FUNCS files exist.
49320         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
49321         override check for typos.
49322
49323         Fix test-closein on Solaris 10.
49324         * tests/test-closein.c (main): Don't assume stdin can be inherited
49325         closed on all systems.
49326         * tests/test-closein.sh: Likewise.
49327         Reported by Piotr Tarnowski.
49328
49329 2007-09-28  Jim Meyering  <jim@meyering.net>
49330
49331         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
49332
49333 2007-09-27  Jim Meyering  <jim@meyering.net>
49334
49335         canonicalize: Avoid a false-positive cycle failure.
49336         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
49337         Sort.  Remove cycle-check.
49338         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
49339         not cycle-check.h.
49340         (seen_triple): New function.
49341         (canonicalize_filename_mode): Use it instead of cycle-check.
49342         * tests/test-canonicalize.c: Add a test for this bug.
49343         * tests/test-canonicalize.sh: Set up and run the test.
49344
49345         New module, file-set, from coreutils.
49346         * modules/file-set: Define it.
49347         * lib/file-set.c, lib/file-set.h: Implement.
49348
49349         New module, hash-triple, from coreutils.
49350         * modules/hash-triple: Define it.
49351         * lib/hash-triple.c, lib/hash-triple.h: Implement.
49352
49353 2007-09-25  Eric Blake  <ebb9@byu.net>
49354
49355         Fix strerror on Interix.
49356         * lib/string_.h (strerror): Declare replacement.
49357         * doc/functions/strerror.texi (strerror): Document the Interix
49358         shortcoming.
49359         * modules/string (Makefile.am): Support new hooks.
49360         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
49361         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
49362         gl_FUNC_STRERROR_SEPARATE.
49363         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
49364         * lib/strerror.c (rpl_strerror): Provide replacement.
49365         * modules/strerror (Depends-on): Add string.
49366         (configure.ac): Detect use of module.
49367         * tests/test-strerror.c: New file.
49368         * modules/strerror-tests: New test module.
49369         * modules/argp (Depends-on): Add strerror.
49370         * modules/error (Depends-on): Likewise.
49371         Reported by Martin Koeppe.
49372
49373 2007-09-24  Bruno Haible  <bruno@clisp.org>
49374
49375         * README: Update git instructions.
49376
49377 2007-09-24  Eric Blake  <ebb9@byu.net>
49378
49379         Revert fpending breakage from 2007-09-08.
49380         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
49381         __fpending.c.
49382
49383 2007-09-24  Jim Meyering  <jim@meyering.net>
49384
49385         filenamecat.c: Add a test.
49386         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
49387         showing how the function works when DIR is the empty string.
49388
49389 2007-09-21  Simon Josefsson  <simon@josefsson.org>
49390
49391         * tests/test-canonicalize.sh: Turn on executable bit.
49392
49393 2007-09-19  Eric Blake  <ebb9@byu.net>
49394
49395         * README: Update CVS instructions.
49396
49397 2007-09-18  Bruno Haible  <bruno@clisp.org>
49398
49399         * modules/areadlink: New file.
49400         * lib/areadlink.h (areadlink): New declaration.
49401         * lib/areadlink.c: New file, based on lib/xreadlink.c.
49402
49403 2007-09-17  Jim Meyering  <jim@meyering.net>
49404
49405         * lib/savewd.c (ESTALE) [!defined]: Define.
49406         Reported to be required on Interix by Martin Koeppe.
49407
49408 2007-09-17  Bruno Haible  <bruno@clisp.org>
49409
49410         * gnulib-tool (func_version): Use $version.
49411
49412 2007-09-16  Bruno Haible  <bruno@clisp.org>
49413
49414         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
49415         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
49416         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
49417         Reported by Greg Schafer <gschafer@zip.com.au>.
49418
49419 2007-09-15  Bruno Haible  <bruno@clisp.org>
49420
49421         * gnulib-tool (sed): Try a little harder to make bash understand the
49422         alias.
49423         Reported by Bruce Korb <bruce.korb@gmail.com>.
49424
49425 2007-09-13  Eric Blake  <ebb9@byu.net>
49426
49427         * ChangeLog: Remove conflict markers.
49428
49429 2007-09-13  Simon Josefsson  <simon@josefsson.org>
49430
49431         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
49432         Reported by Bruno Haible <bruno@clisp.org>.
49433
49434 2007-09-12  Bruno Haible  <bruno@clisp.org>
49435
49436         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
49437         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
49438         is not defined.
49439
49440 2007-09-12  Eric Blake  <ebb9@byu.net>
49441
49442         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
49443         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
49444         Autoconf definition.
49445         * modules/euidaccess (Depends-on): Add extensions, for
49446         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
49447         * modules/fnmatch (Depends-on): Likewise.
49448         * modules/getaddrinfo (Depends-on): Likewise.
49449         * modules/getdelim (Depends-on): Likewise.
49450         * modules/getline (Depends-on): Likewise.
49451         * modules/getsubopt (Depends-on): Likewise.
49452         * modules/gettext (Depends-on): Likewise.
49453         * modules/group-member (Depends-on): Likewise.
49454         * modules/mbchar (Depends-on): Likewise.
49455         * modules/memmem (Depends-on): Likewise.
49456         * modules/mempcpy (Depends-on): Likewise.
49457         * modules/memrchr (Depends-on): Likewise.
49458         * modules/pagealign_alloc (Depends-on): Likewise.
49459         * modules/readutmp (Depends-on): Likewise.
49460         * modules/stpcpy (Depends-on): Likewise.
49461         * modules/stpncpy (Depends-on): Likewise.
49462         * modules/strchrnul (Depends-on): Likewise.
49463         * modules/strndup (Depends-on): Likewise.
49464         * modules/strsep (Depends-on): Likewise.
49465         * modules/strverscmp (Depends-on): Likewise.
49466         * modules/vasprintf (Depends-on): Likewise.
49467         * modules/wcwidth (Depends-on): Likewise.
49468         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
49469         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
49470         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
49471         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
49472         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
49473         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
49474         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
49475         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
49476         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
49477         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
49478         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
49479         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
49480         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
49481         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
49482         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
49483         * m4/readutmp.m4 (gl_READUTMP): Likewise.
49484         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
49485         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
49486         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
49487         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
49488         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
49489         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
49490         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
49491         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
49492         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
49493         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
49494         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
49495         so that lock.m4 can be used in gettext without extensions module.
49496
49497 2007-09-11  Bruno Haible  <bruno@clisp.org>
49498
49499         * m4/isc-posix.m4: Remove file.
49500         Suggested by Eric Blake.
49501
49502 2007-09-11  Eric Blake  <ebb9@byu.net>
49503
49504         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
49505
49506 2007-09-10  Bruno Haible  <bruno@clisp.org>
49507
49508         * posix-modules: Fix typo in error message.
49509         Reported by Matt <mkraai@beckman.com>.
49510
49511 2007-09-09  Bruno Haible  <bruno@clisp.org>
49512
49513         * doc/functions/getdelim.texi: Update list of platforms lacking the
49514         function.
49515         * doc/functions/getline.texi: Likewise.
49516
49517 2007-09-09  Jim Meyering  <jim@meyering.net>
49518
49519         * lib/hash.c (hash_initialize): Detect calloc failure.
49520         Reported by Bruno Haible.
49521
49522 2007-09-09  Bruno Haible  <bruno@clisp.org>
49523
49524         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
49525         malloc or realloc fails.
49526
49527 2007-09-09  Bruno Haible  <bruno@clisp.org>
49528
49529         * modules/getcwd (Depends-on): Add malloc-posix.
49530         * modules/glob (Depends-on): Likewise.
49531         * modules/putenv (Depends-on): Likewise.
49532         * modules/strdup (Depends-on): Likewise.
49533         * modules/getdelim (Depends-on): Add realloc-posix.
49534         * modules/read-file (Depends-on): Likewise.
49535
49536 2007-09-09  Bruno Haible  <bruno@clisp.org>
49537
49538         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
49539         (gl_FUNC_MALLOC_POSIX): Require it.
49540         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
49541         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
49542         * modules/realloc (Files): Add m4/malloc.m4.
49543         * modules/calloc (Files): Likewise.
49544
49545 2007-09-09  Bruno Haible  <bruno@clisp.org>
49546
49547         * modules/malloc-posix: New file.
49548         * modules/malloc (Depends-on): Add malloc-posix.
49549         * lib/malloc.c: Include errno.h.
49550         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
49551         and a POSIX-compatible malloc into a single function. Set ENOMEM
49552         when returning NULL.
49553         * m4/malloc.m4: New file.
49554         * doc/functions/malloc.texi: Mention the malloc-posix module.
49555         * lib/stdlib_.h (malloc): New declaration.
49556         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
49557         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
49558         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
49559         and HAVE_MALLOC_POSIX.
49560
49561 2007-09-09  Bruno Haible  <bruno@clisp.org>
49562
49563         * modules/realloc-posix: New file.
49564         * modules/realloc (Depends-on): Add realloc-posix.
49565         * lib/realloc.c: Include errno.h.
49566         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
49567         and a POSIX-compatible realloc into a single function. Set ENOMEM
49568         when returning NULL.
49569         * m4/realloc.m4: New file.
49570         * doc/functions/realloc.texi: Mention the realloc-posix module.
49571         * lib/stdlib_.h (realloc): New declaration.
49572         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
49573         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
49574         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
49575         and HAVE_REALLOC_POSIX.
49576
49577 2007-09-09  Bruno Haible  <bruno@clisp.org>
49578
49579         * modules/calloc-posix: New file.
49580         * modules/calloc (Depends-on): Add calloc-posix.
49581         * lib/calloc.c: Include errno.h.
49582         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
49583         and a POSIX-compatible calloc into a single function. Set ENOMEM
49584         when returning NULL.
49585         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
49586         * doc/functions/calloc.texi: Mention the calloc-posix module.
49587         * lib/stdlib_.h (calloc): New declaration.
49588         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
49589         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
49590         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
49591         and HAVE_CALLOC_POSIX.
49592
49593 2007-09-09  Bruno Haible  <bruno@clisp.org>
49594
49595         Allow for modules to show an arbitrary notice.
49596         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
49597         * gnulib-tool: New option --extract-notice.
49598         (func_usage): Document it.
49599         (sed_extract_prog): Update.
49600         (func_get_notice): New function.
49601         (func_modules_notice): New function.
49602         (func_import, func_create_testdir): Invoke it.
49603         Suggested by Jim Meyering.
49604
49605 2007-09-09  Bruno Haible  <bruno@clisp.org>
49606
49607         * gnulib-tool: New options --verbose, --quiet.
49608         (func_usage): Document them.
49609         (verbose): New variable.
49610         (func_execute_command): New function.
49611         (func_import): Don't show the module list and the file list if
49612         $verbose < 0.
49613         (func_create_testdir): Likewise. Use func_execute_command.
49614         (func_create_megatestdir): Use func_execute_command.
49615
49616 2007-09-08  Bruno Haible  <bruno@clisp.org>
49617
49618         * gnulib-tool (func_import): Prefer rsync over wget when available,
49619         for fetching the PO files.
49620
49621 2007-09-08  Bruno Haible  <bruno@clisp.org>
49622
49623         * posix-modules: New file. Portions copied from gnulib-tool.
49624         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
49625
49626 2007-09-08  Jim Meyering  <jim@meyering.net>
49627
49628         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
49629         * lib/fpending.h: Rename from __fpending.h.
49630         * lib/fpending.c: Rename from __fpending.c.
49631         Include "fpending.h", not "__fpending.h".
49632         * lib/__fpending.h, lib/__fpending.c: Remove files.
49633         * modules/fpending (Files): Reflect new file names.
49634         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
49635
49636 2007-09-08  Bruno Haible  <bruno@clisp.org>
49637
49638         * m4/inttypes-h.m4: Remove stub file.
49639
49640 2007-09-07  Simon Josefsson  <simon@josefsson.org>
49641
49642         * doc/headers/stdint.texi: Discuss #include_next issue.
49643
49644 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
49645
49646         * build-aux/bootstrap: Remove obsolete comment about wget --help.
49647
49648 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49649
49650         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
49651         in variable name.
49652
49653 2007-09-03  Jim Meyering  <jim@meyering.net>
49654
49655         New module: git-version-gen.
49656         * modules/git-version-gen: New file.
49657
49658         Import changes from coreutils for bootstrap script.
49659
49660         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
49661
49662         bootstrap: uses rsync to download the .po files
49663         * build-aux/bootstrap (po_download_command_format): New global.
49664         (download_po_files): Use rsync.
49665         (update_po_files): Don't remove .po files after download,
49666         so future rsync runs can take advantage of the copies.
49667
49668         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
49669
49670         Solve the unnecessary-.po-file-regeneration problem once and for all.
49671         * build-aux/bootstrap (download_po_files): New function, renamed from
49672         get_translations.  Now, downloads, but doesn't update LINGUAS.
49673         (update_po_files): New function.
49674
49675         bootstrap: Ignore more.
49676         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
49677         uniwidth to e.g., lib/.gitignore.
49678         (slurp): Handle the sys_stat_.h -> sys mapping, too.
49679
49680         * build-aux/bootstrap: New setting: vc_ignore.
49681         (insert_sorted_if_absent): Create $file if absent.
49682         Adapt to new, possibly empty, list: $vc_ignore.
49683
49684         bootstrap: generate more ignorable names
49685         * build-aux/bootstrap (slurp): When generating ignorable names,
49686         also map .sin to .sed, .gperf to .c, and .y to .c.
49687
49688 2007-09-03  Jim Meyering  <jim@meyering.net>
49689
49690         * build-aux/git-version-gen: New file, from coreutils.  For details, see
49691         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
49692
49693 2007-09-02  Bruno Haible  <bruno@clisp.org>
49694
49695         Fix mis-recognition of 'mcs' on QNX 6.
49696         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
49697         output contains the string "Mono".
49698         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
49699         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
49700
49701 2007-09-01  Bruno Haible  <bruno@clisp.org>
49702
49703         Fix collision between uniwidth/* and linebreak modules.
49704         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
49705         u32_width): Remove declarations.
49706         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
49707         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
49708         streq3, streq2, streq1, streq0): Remove functions.
49709         (STREQ): Remove macro.
49710         (is_cjk_encoding): Remove function.
49711         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
49712         (uc_width, u8_width, u16_width, u32_width): Remove functions.
49713         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
49714         * NEWS: Document the change.
49715
49716 2007-09-01  Bruno Haible  <bruno@clisp.org>
49717
49718         * lib/streq.h: Add double-inclusion guard.
49719
49720 2007-09-01  Karl Berry  <karl@gnu.org>
49721
49722         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
49723
49724 2007-08-28  Jim Meyering  <jim@meyering.net>
49725
49726         Rename mreadlink_with_size to areadlink_with_size.
49727         * NEWS: Document the change.
49728         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
49729         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
49730         * lib/mreadlink.h: Rename this to...
49731         * lib/areadlink.h: ...this.
49732         * modules/mreadlink-with-size: Rename this to...
49733         * modules/areadlink-with-size: ...this.
49734         * lib/canonicalize.c: Reflect the renaming.
49735         * modules/canonicalize: Likewise.
49736
49737 2007-08-26  Bruno Haible  <bruno@clisp.org>
49738
49739         * gnulib-tool (func_import): When deciding which files to remove,
49740         consider also dangling symbolic links.
49741         Reported by Eric Blake.
49742
49743 2007-08-26  Bruno Haible  <bruno@clisp.org>
49744
49745         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
49746
49747 2007-08-23  Simon Josefsson  <simon@josefsson.org>
49748
49749         * lib/readline.c: Don't include getline.h, the prototype is now
49750         found in stdio.h.
49751
49752 2007-08-23  Jim Meyering  <jim@meyering.net>
49753
49754         Getdelim touchup.
49755         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
49756         around the funlockfile call, since funlockfile never sets errno.
49757         Don't set errno upon failed realloc.
49758
49759 2007-08-22  Eric Blake  <ebb9@byu.net>
49760
49761         Getline touchups.
49762         * lib/getdelim.c (getdelim): Revert regression that required *n to
49763         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
49764         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
49765         getdelim, rather than whether implementation is missing.
49766         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
49767         * lib/stdio_.h (getline): Also declare if replacement is
49768         required.
49769         * doc/functions/getdelim.texi: New file.
49770         * doc/functions/getline.texi: Likewise.
49771         * doc/gnulib.texi (Function Substitutes): Add new files.
49772         Reported by Bruno Haible.
49773
49774 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
49775
49776         * users.txt: Add Guile.
49777
49778 2007-08-22  Eric Blake  <ebb9@byu.net>
49779
49780         * tests/test-getdelim.c (main): Use remove, not unlink.
49781         * tests/test-getline.c (main): Likewise.
49782
49783         Move getline and getdelim into stdio.h, per POSIX 200x.
49784         * modules/getline (Files): Remove getline.h.
49785         (Depends-on): Add stdio.
49786         (configure.ac): Add module indicator.
49787         * modules/getdelim (Files): Remove getdelim.h.
49788         (Depends-on): Add stdio.
49789         (configure.ac): Add module indicator.
49790         * modules/stdio (Makefile.am): Work with new indicators.
49791         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
49792         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
49793         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
49794         * lib/getdelim.h: Delete.
49795         * lib/getline.h: Delete.
49796         * lib/stdio_.h (getdelim, getline): Declare.
49797         * modules/getdelim-tests: New module.
49798         * modules/getline-tests: Likewise.
49799         * tests/test-getdelim.c: New file.
49800         * tests/test-getline.c: Likewise.
49801         * NEWS: Document the change.
49802         * lib/getline.c: Update choice of header.
49803         * lib/csharpcomp.c: Likewise.
49804         * lib/getpass.c: Likewise.
49805         * lib/javacomp.c: Likewise.
49806         * lib/javaversion.c: Likewise.
49807         * lib/yesno.c: Likewise.
49808         * lib/getdelim.c: Likewise.
49809         (getdelim): Set errno on failure, and avoid memory leak.
49810
49811 2007-08-19  Bruno Haible  <bruno@clisp.org>
49812
49813         * modules/closein (Depends-on): Add freadahead.
49814         * lib/closein.c: Include freadahead.h.
49815         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
49816         is zero.
49817
49818 2007-08-19  Bruno Haible  <bruno@clisp.org>
49819
49820         * modules/freadahead-tests: New file.
49821         * tests/test-freadahead.sh: New file.
49822         * tests/test-freadahead.c: New file.
49823
49824         * modules/freadahead: New file.
49825         * lib/freadahead.h: New file.
49826         * lib/freadahead.c: New file.
49827         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
49828         fbufmode, fpurge, freadable, fwritable.
49829
49830 2007-08-19  Eric Blake  <ebb9@byu.net>
49831
49832         Test yesno in combination with closein.
49833         * lib/yesno.c (yesno): Document use of stdin.
49834         * modules/yesno-tests (Files): New module.
49835         * tests/test-yesno.c (main): New file.
49836         * tests/test-yesno.sh: Likewise.
49837
49838 2007-08-19  Bruno Haible  <bruno@clisp.org>
49839
49840         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
49841         * lib/fseeko.c (rpl_fseeko): Likewise.
49842         * lib/fseterr.c (fseterr): Likewise.
49843
49844 2007-08-19  Bruno Haible  <bruno@clisp.org>
49845
49846         * tests/test-lseek.c (main): Disable a test for BeOS.
49847         * doc/functions/lseek.texi: Document the BeOS bug.
49848
49849 2007-08-19  Bruno Haible  <bruno@clisp.org>
49850             Eric Blake  <ebb9@byu.net>
49851
49852         * lib/lseek.c: Include <sys/stat.h>.
49853         (rpl_lseek): Add workaround code also for Unix platforms.
49854         Needed for BeOS.
49855         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
49856         * doc/functions/lseek.texi: Document BeOS definiency.
49857
49858 2007-08-18  Bruno Haible  <bruno@clisp.org>
49859
49860         * modules/fstrcmp-tests: New file.
49861         * tests/test-fstrcmp.c: New file.
49862
49863 2007-08-18  Bruno Haible  <bruno@clisp.org>
49864
49865         * modules/fstrcmp: New file, from GNU gettext with modifications.
49866         * lib/fstrcmp.h: New file, from GNU gettext.
49867         * lib/fstrcmp.c: New file, from GNU gettext.
49868         * MODULES.html.sh (String handling): Add fstrcmp.
49869
49870 2007-08-18  Bruno Haible  <bruno@clisp.org>
49871
49872         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
49873         'bool'.
49874         (diag, compareseq): Remove const from the ctxt argument.
49875         (USE_HEURISTIC): Undefine at the end.
49876
49877 2007-08-18  Jim Meyering  <jim@meyering.net>
49878
49879         New file: lib/idcache.h
49880         * NEWS: Mention the addition.
49881         * modules/idcache (Files): Add lib/idcache.h
49882         * lib/idcache.c: Include "idcache.h".
49883         Don't include <sys/types.h>.
49884         Add a FIXME comment.
49885         Move file-scoped "static" declarations to the top.
49886         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
49887
49888 2007-08-17  Bruno Haible  <bruno@clisp.org>
49889         and Paul Eggert  <eggert@cs.ucla.edu>
49890
49891         * MODULES.html.sh: Add diffseq.
49892         * modules/diffseq: New file.
49893         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
49894         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
49895
49896 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49897
49898         Import changes from coreutils for bootstrap script.
49899
49900         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
49901
49902         * build-aux/bootstrap (slurp): Work even in environments where
49903         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
49904         current code does not slurp files whose names start with ".", and
49905         this looks like it might be a troublesome area.
49906
49907         2007-07-11  Jim Meyering  <jim@meyering.net>
49908
49909         If there's a GPL vN copyright comment, require that N == 3.
49910
49911         2007-07-08  Jim Meyering  <jim@meyering.net>
49912
49913         Run the coreutils-specific code only if tests/Makefile.am.in exists.
49914         * build-aux/bootstrap (mam_template): Move definition out of loop.
49915
49916         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
49917
49918         * build-aux/bootstrap (symlink_to_dir): Rename function from
49919         symlink_to_gnulib.  Add a directory parameter.  Update all
49920         callers.
49921         (cp_mark_as_generated): Also check for -- and link to -- files in
49922         gl/.
49923
49924         2007-07-08  Jim Meyering  <jim@meyering.net>
49925
49926         Adapt to deeper hierarchy in gnulib.
49927         * build-aux/bootstrap (symlink_to_dir): If the destination
49928         directory doesn't exist, create it. This is required at least for
49929         "lib/uniwidth/cjk.h".
49930
49931         2007-05-15  Jim Meyering  <jim@meyering.net>
49932
49933         * build-aux/bootstrap: Now that generated Makefile.am files
49934         are no longer under version control, they must be created at
49935         bootstrap time.
49936
49937 2007-08-14  Ben Pfaff  <blp@gnu.org>
49938
49939         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
49940
49941 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49942
49943         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
49944         given the changes below.
49945         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
49946         even on hosts that have padding bits beyond the supported 64.
49947
49948 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
49949
49950         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
49951         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
49952         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
49953         depends on it.
49954         (xstrtol_error): Remove.
49955         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
49956         but with a different signature.
49957         (ATTRIBUTE_NORETURN, __attribute__): New macros.
49958         * lib/xstrtol-error.c: Include exitfail.h.
49959         (xstrtol_fatal): New function, with a different signature from the
49960         old xstrtol_error, so that the caller need not worry about passing
49961         in an exit status, or about storage management of the option argument.
49962         (xstrtol_error): Now a static function.  Redo signature to
49963         implement xstrtol_fatal.  Output the correct number of hyphens in
49964         front of the option so that the caller need not worry about
49965         storage management.
49966         (N_): New macro.
49967         (_): Remove; not used now.
49968         * modules/xstrtol: Depend on getopt.
49969         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
49970         of old STRTOL_FATAL_ERROR macro.
49971         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
49972         of test program.
49973         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
49974         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
49975
49976 2007-08-08  Eric Blake  <ebb9@byu.net>
49977
49978         * lib/xstrtol-error.c: Add missing include.
49979
49980         Move xstrtol messages into gnulib domain, when --pobase is used.
49981         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
49982         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
49983         * modules/xstrtol (Files): Distribute new file.
49984         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
49985         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
49986         * tests/test-xstrtol.c: ...into new file.
49987         * tests/test-xstrtoul.c: Also test xstrtoul.
49988         * tests/test-xstrtoimax.c: Also test xstrtoimax.
49989         * tests/test-xstrtoumax.c: Also test xstrtoumax.
49990         * tests/test-xstrtol.sh: Drive the tests.
49991         * tests/test-xstrtoimax.sh: Likewise.
49992         * tests/test-xstrtoumax.sh: Likewise.
49993         * modules/xstrtol-tests: New module.
49994         * modules/xstrtoimax-tests: Likewise.
49995         * modules/xstrtoumax-tests: Likewise.
49996
49997 2007-08-08  Jim Meyering  <jim@meyering.net>
49998
49999         New function: mfile_name_concat.
50000         * lib/filenamecat.c (mfile_name_concat): New function, just like
50001         file_name_concat, but return NULL upon failure rather than exiting
50002         with a diagnostic.
50003         * lib/filenamecat.h: Declare it.
50004
50005 2007-08-07  Bruno Haible  <bruno@clisp.org>
50006
50007         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
50008         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
50009         warning from gcc.
50010         Reported by Eric Blake.
50011
50012 2007-08-07  Simon Josefsson  <simon@josefsson.org>
50013
50014         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
50015         * modules/crypto/arcfour (License): Likewise.
50016         * modules/crypto/des-tests (License): Likewise.
50017         * modules/crypto/gc-arctwo-tests (License): Likewise.
50018         * modules/crypto/gc-des-tests (License): Likewise.
50019         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
50020         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
50021         * modules/crypto/gc-md2-tests (License): Likewise.
50022         * modules/crypto/gc-md4-tests (License): Likewise.
50023         * modules/crypto/gc-md5-tests (License): Likewise.
50024         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
50025         * modules/crypto/gc-rijndael-tests (License): Likewise.
50026         * modules/crypto/gc-sha1-tests (License): Likewise.
50027         * modules/crypto/gc-tests (License): Likewise.
50028         * modules/crypto/hmac-md5 (License): Likewise.
50029         * modules/crypto/hmac-sha1 (License): Likewise.
50030         * modules/crypto/md2-tests (License): Likewise.
50031         * modules/crypto/md4-tests (License): Likewise.
50032         * modules/crypto/md5 (License): Likewise.
50033         * modules/crypto/rijndael (License): Likewise.
50034         * modules/crypto/sha1 (License): Likewise.
50035         * modules/memxor (License): Likewise.
50036
50037 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
50038         and Bruno Haible  <bruno@clisp.org>
50039
50040         * NEWS: Describe interface changes to human, xstrtol.
50041         * lib/human.h: Include <xstrtol.h>.
50042         (human_options): Return enum strtol_error, not int.  Remove
50043         bool arg; take int * instead.
50044         * lib/human.c: Don't include "gettext.h".
50045         (_): Remove; no longer used.
50046         Don't include <xstrtol.h>, since human.h does it.
50047         (human_options): Adjust to abovementioned interface changes.
50048         Do not report error to stderr; that's now the caller's
50049         responsibility.
50050         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
50051         interface change.
50052         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
50053         Str, Argument_type_string.  All uses changed.  Put " argument"
50054         in diagnostics to make them clearer.  Change wording of suffix
50055         message for clarity.
50056         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
50057         Argument_type_string.
50058         (STRTOL_FATAL_WARN): Remove; no longer used.
50059         * modules/human (Depends-on): Remove gettext-h.
50060
50061 2007-08-06  Simon Josefsson  <simon@josefsson.org>
50062
50063         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
50064
50065 2007-07-31  Bruno Haible  <bruno@clisp.org>
50066
50067         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
50068         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
50069         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
50070
50071 2007-07-31  Bruno Haible  <bruno@clisp.org>
50072
50073         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
50074         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
50075
50076 2007-07-30  Bruno Haible  <bruno@clisp.org>
50077
50078         * modules/base64 (License): Use the synonymous term "LGPLv2+".
50079         * modules/c-ctype (License): Likewise.
50080         * modules/c-strcase (License): Likewise.
50081         * modules/check-version (License): Likewise.
50082         * modules/iconv (License): Likewise.
50083         * modules/iconv_open (License): Likewise.
50084         * modules/read-file (License): Likewise.
50085         * modules/striconv (License): Likewise.
50086         * modules/strverscmp (License): Likewise.
50087         * modules/vasprintf (License): Likewise.
50088         * modules/crypto/des (License): Likewise.
50089         * modules/crypto/gc (License): Likewise.
50090         * modules/crypto/gc-arcfour (License): Likewise.
50091         * modules/crypto/gc-arctwo (License): Likewise.
50092         * modules/crypto/gc-des (License): Likewise.
50093         * modules/crypto/gc-hmac-md5 (License): Likewise.
50094         * modules/crypto/gc-hmac-sha1 (License): Likewise.
50095         * modules/crypto/gc-md2 (License): Likewise.
50096         * modules/crypto/gc-md4 (License): Likewise.
50097         * modules/crypto/gc-md5 (License): Likewise.
50098         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
50099         * modules/crypto/gc-random (License): Likewise.
50100         * modules/crypto/gc-rijndael (License): Likewise.
50101         * modules/crypto/gc-sha1 (License): Likewise.
50102         * modules/crypto/md2 (License): Likewise.
50103         * modules/crypto/md4 (License): Likewise.
50104
50105 2007-07-30  Jim Meyering  <jim@meyering.net>
50106
50107         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
50108         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
50109         it has valid stat data.  This bug would cause du not to count the
50110         sizes of inaccessible directories.
50111         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
50112         in <http://bugzilla.redhat.com/250077>.
50113
50114 2007-07-25  Peter O'Gorman  <peter@pogma.com>
50115             Bruno Haible  <bruno@clisp.org>
50116
50117         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
50118         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
50119         #include_next, gives a diagnostic about it, but reports no error in
50120         the exit code.
50121         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
50122
50123 2007-07-24  Ben Pfaff  <blp@gnu.org>
50124
50125         Improve name: "count-one-bits" is better than "popcount".
50126         * MODULES.html.sh: Update name.
50127         * lib/popcount.h: Renamed lib/count-one-bits.h.
50128         (popcount): Renamed count_one_bits.
50129         (popcountl): Renamed count_one_bits_l.
50130         (popcountll): Renamed count_one_bits_ll.
50131         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
50132         * modules/popcount: Renamed module/count-one-bits.
50133         * modules/popcount-tests: Renamed module/count-one-bits-tests.
50134         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
50135
50136 2007-07-23  Ben Pfaff  <blp@gnu.org>
50137
50138         * lib/popcount.h (popcount32): Reduce size of constants, to allow
50139         better code generation, and add U to large constants to avoid
50140         warnings, in non-GCC case.
50141         Suggested by Bruno Haible.
50142
50143 2007-07-23  Ben Pfaff  <blp@gnu.org>
50144
50145         * lib/popcount.h: Use verify_true instead of if...abort.
50146         * modules/popcount: Depend on verify module.
50147         Suggested by Jim Meyering.
50148
50149 2007-07-23  Bruno Haible  <bruno@clisp.org>
50150
50151         * gnulib-tool (func_import): Create a .cvsignore file also when the
50152         directory is not yet in CVS but the toplevel directory is. When
50153         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
50154         Reported by Karl Berry.
50155
50156 2007-07-22  Ben Pfaff  <blp@gnu.org>
50157
50158         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
50159         case.
50160         Suggested by Eric Blake.
50161
50162 2007-07-22  Ben Pfaff  <blp@gnu.org>
50163
50164         New module: popcount.
50165         * MODULES.html.sh: Add popcount.
50166         * modules/popcount: New file.
50167         * modules/popcount-tests: New file.
50168         * tests/test-popcount.c: New file.
50169         * lib/popcount.h: New file.
50170         * m4/popcount.m4: New file.
50171
50172 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
50173
50174         * build-aux/announce-gen: Update to GPLv3.
50175
50176         * build-aux/config.guess: Update from config.
50177
50178 2007-07-21  Bruno Haible  <bruno@clisp.org>
50179
50180         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
50181         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
50182
50183 2007-07-20  Jim Meyering  <jim@meyering.net>
50184
50185         * check-module: Diagnose a self-dependency.
50186
50187 2007-07-19  Bruno Haible  <bruno@clisp.org>
50188
50189         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
50190         empty.
50191         Reported by Eric Blake.
50192
50193 2007-07-18  Bruno Haible  <bruno@clisp.org>
50194
50195         * gnulib-tool: New options --po-base, --po-domain.
50196         (func_usage): Document them.
50197         (pobase, po_domain): New variables.
50198         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
50199         DEFAULT_TEXT_DOMAIN.
50200         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
50201         (func_import): Consider pobase and po_domain. Create a po/ directory.
50202         (func_create_testdir): Set pobase and po_domain to empty.
50203         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
50204         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
50205
50206 2007-07-18  Bruno Haible  <bruno@clisp.org>
50207
50208         * gnulib-tool (func_get_automake_snippet): Synthesize also an
50209         EXTRA_DIST augmentation for files in build-aux/.
50210
50211 2007-07-16  Bruno Haible  <bruno@clisp.org>
50212
50213         * modules/lseek (License): Use the synonymous term "LGPLv2+".
50214         * modules/getdelim (License): Likewise.
50215
50216 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50217
50218         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
50219         * modules/d-type (License): Likewise.
50220         * modules/extensions (License): Likewise.
50221         * modules/fnmatch (License): Likewise.
50222         * modules/fseeko (License): Likewise.
50223         * modules/getaddrinfo (License): Likewise.
50224         * modules/getline (License): Likewise.
50225         * modules/getlogin_r (License): Likewise.
50226         * modules/getpass (License): Likewise.
50227         * modules/gettimeofday (License): Likewise.
50228         * modules/glob (License): Likewise.
50229         * modules/inet_ntop (License): Likewise.
50230         * modules/malloc (License): Likewise.
50231         * modules/malloca (License): Likewise.
50232         * modules/memmem (License): Likewise.
50233         * modules/mempcpy (License): Likewise.
50234         * modules/memset (License): Likewise.
50235         * modules/minmax (License): Likewise.
50236         * modules/mktime (License): Likewise.
50237         * modules/netinet_in (License): Likewise.
50238         * modules/pathmax (License): Likewise.
50239         * modules/poll (License): Likewise.
50240         * modules/regex (License): Likewise.
50241         * modules/snprintf (License): Likewise.
50242         * modules/stdbool (License): Likewise.
50243         * modules/stdint (License): Likewise.
50244         * modules/stdio (License): Likewise.
50245         * modules/strcase (License): Likewise.
50246         * modules/strcasestr (License): Likewise.
50247         * modules/strdup (License): Likewise.
50248         * modules/string (License): Likewise.
50249         * modules/strndup (License): Likewise.
50250         * modules/strnlen (License): Likewise.
50251         * modules/strpbrk (License): Likewise.
50252         * modules/strptime (License): Likewise.
50253         * modules/strsep (License): Likewise.
50254         * modules/sys_select (License): Likewise.
50255         * modules/sys_socket (License): Likewise.
50256         * modules/sys_stat (License): Likewise.
50257         * modules/sys_time (License): Likewise.
50258         * modules/time (License): Likewise.
50259         * modules/time_r (License): Likewise.
50260         * modules/timegm (License): Likewise.
50261         * modules/unistd (License): Likewise.
50262         * modules/vsnprintf (License): Likewise.
50263         * modules/wctype (License): Likewise.
50264
50265 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50266
50267         * modules/argz (License): LGPLv2+.
50268
50269 2007-07-15  Karl Berry  <karl@gnu.org>
50270
50271         * doc/gnulib.texi: revise node structure per new fdl.texi.
50272
50273 2007-07-14  Bruno Haible  <bruno@clisp.org>
50274
50275         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
50276         the output file.
50277         * lib/uniname/uninames.h: Regenerated.
50278
50279 2007-07-14  Karl Berry  <karl@gnu.org>
50280
50281         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
50282         omitting sectioning and index commands.
50283
50284 2007-07-13  Bruno Haible  <bruno@clisp.org>
50285
50286         New gnulib-tool option --more-symlinks.
50287         * gnulib-tool (func_usage): Document --more-symlinks.
50288         (do_copyrights): New variable.
50289         Recognize option --more-symlinks.
50290         (func_import): Don't add a copyright notice transform to
50291         sed_transform_lib_file if do_copyrights is empty.
50292
50293 2007-07-13  Bruno Haible  <bruno@clisp.org>
50294
50295         * lib/vasnprintf.c (decimal_point_char): Define also if
50296         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
50297         && !NEED_PRINTF_DIRECTIVE_A.
50298         Reported by Clemens Koller <clemens.koller@anagramm.de> via
50299         Gary V. Vaughan <gary@gnu.org>.
50300
50301 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
50302
50303         * lib/inttypes_.h: Undo previous change, since it was fixed
50304         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
50305
50306 2007-07-13  Bruno Haible  <bruno@clisp.org>
50307
50308         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
50309         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
50310
50311 2007-07-13  Jim Meyering  <jim@meyering.net>
50312
50313         df: Don't fail for Tru64's "file-on-file mount".
50314         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
50315         so we fall through and use statfs instead.  Details here:
50316         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
50317         Reported by Albert Chin.
50318
50319 2007-07-13  Bruno Haible  <bruno@clisp.org>
50320
50321         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
50322         * modules/configmake (License): Likewise.
50323         * modules/gettext (License): Likewise.
50324         * modules/gettext-h (License): Likewise.
50325         * modules/include_next (License): Likewise.
50326         * modules/link-warning (License): Likewise.
50327         * modules/localcharset (License): Likewise.
50328         * modules/localename (License): Likewise.
50329         * modules/lock (License): Likewise.
50330         * modules/relocatable-lib-lgpl (License): Likewise.
50331         * modules/size_max (License): Likewise.
50332         * modules/vasnprintf (License): Likewise.
50333         * modules/wchar (License): Likewise.
50334         * modules/xsize (License): Likewise.
50335
50336 2007-07-13  Bruno Haible  <bruno@clisp.org>
50337
50338         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
50339         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
50340
50341 2007-07-12  Bruno Haible  <bruno@clisp.org>
50342
50343         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
50344         in the modules files.
50345
50346 2007-07-11  Karl Berry  <karl@gnu.org>
50347
50348         * MODULES.html.sh (func_module): use
50349          sed -e '\|^'"${includefile}"'$|d'
50350          instead of /.../d, to avoid errors on $includefile's containing /.
50351
50352 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
50353
50354         * gnulib-tool (func_import): Avoid duplication of --avoid
50355         statements
50356         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
50357         names to `_' in variable names.
50358
50359 2007-07-10  Eric Blake  <ebb9@byu.net>
50360
50361         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
50362         * NEWS: Document this change.
50363
50364 2007-07-08  Bruno Haible  <bruno@clisp.org>
50365
50366         Update to Unicode 5.0.
50367         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
50368         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
50369         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
50370         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
50371         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
50372         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
50373         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
50374         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
50375         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
50376         U+10A3F, U+1D242..U+1D244.
50377         (nonspacing_table_ind): Update.
50378         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
50379         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
50380
50381 2007-07-08  Bruno Haible  <bruno@clisp.org>
50382
50383         Update to Unicode 5.0.
50384         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
50385         code transform. Extend the name index field of unicode_name_to_code and
50386         unicode_code_to_name from 16 to 24 bits.
50387         * lib/uniname/uniname.c (unicode_character_name,
50388         unicode_name_character): Add the range 0x12xxx to the code transform.
50389         * lib/uniname/uninames.h: Regenerated.
50390         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
50391
50392 2007-07-07  Bruno Haible  <bruno@clisp.org>
50393
50394         * modules/wcwidth-tests: New file.
50395         * tests/test-wcwidth.c: New file.
50396
50397         Work around MacOS X wcwidth() bug.
50398         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
50399         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
50400         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
50401         original wcwidth in non-UTF-8 locales.
50402         * modules/wcwidth (Depends-on): Add localcharset, streq,
50403         uniwidth/width.
50404         * doc/functions/wcwidth.texi: Update.
50405
50406 2007-07-07  Bruno Haible  <bruno@clisp.org>
50407
50408         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
50409         (wcwidth): New declaration.
50410         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
50411         macros.
50412         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
50413         here. Prepare for creating <wchar.h> unconditionally.
50414         * modules/wchar (Depends-on): Add link-warning.
50415         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
50416         REPLACE_WCWIDTH, and GL_LINK_WARNING.
50417         * lib/wcwidth.h: Remove file.
50418         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
50419         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
50420         * modules/wcwidth (Files): Remove lib/wcwidth.h.
50421         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
50422         (Include): Replace wcwidth.h with <wchar.h>.
50423         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
50424         * lib/mbchar.h: Don't include wcwidth.h.
50425         * lib/mbswidth.c: Likewise.
50426         * NEWS: Mention the change.
50427
50428 2007-07-07  Bruno Haible  <bruno@clisp.org>
50429
50430         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
50431         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
50432         definition with an external declaration.
50433         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
50434         defined as a function. Remove AC_C_INLINE requirement.
50435         * modules/wcwidth (Files): Add lib/wcwidth.c.
50436         (Makefile.am): Remove redundant statement.
50437
50438 2007-07-07  Bruno Haible  <bruno@clisp.org>
50439
50440         * MODULES.html.sh (Unicode string functions): Add the new modules.
50441
50442         * tests/uniwidth/test-u32-strwidth.c: New file.
50443         * modules/uniwidth/u32-strwidth-tests: New file.
50444
50445         * lib/uniwidth/u32-strwidth.c: New file.
50446         * modules/uniwidth/u32-strwidth: New file.
50447
50448         * tests/uniwidth/test-u16-strwidth.c: New file.
50449         * modules/uniwidth/u16-strwidth-tests: New file.
50450
50451         * lib/uniwidth/u16-strwidth.c: New file.
50452         * modules/uniwidth/u16-strwidth: New file.
50453
50454         * tests/uniwidth/test-u8-strwidth.c: New file.
50455         * modules/uniwidth/u8-strwidth-tests: New file.
50456
50457         * lib/uniwidth/u8-strwidth.c: New file.
50458         * modules/uniwidth/u8-strwidth: New file.
50459
50460         * tests/uniwidth/test-u32-width.c: New file.
50461         * modules/uniwidth/u32-width-tests: New file.
50462
50463         * lib/uniwidth/u32-width.c: New file.
50464         * modules/uniwidth/u32-width: New file.
50465
50466         * tests/uniwidth/test-u16-width.c: New file.
50467         * modules/uniwidth/u16-width-tests: New file.
50468
50469         * lib/uniwidth/u16-width.c: New file.
50470         * modules/uniwidth/u16-width: New file.
50471
50472         * tests/uniwidth/test-u8-width.c: New file.
50473         * modules/uniwidth/u8-width-tests: New file.
50474
50475         * lib/uniwidth/u8-width.c: New file.
50476         * modules/uniwidth/u8-width: New file.
50477
50478         * tests/uniwidth/test-uc_width.c: New file.
50479         * modules/uniwidth/width-tests: New file.
50480
50481         * lib/uniwidth/width.c: New file, from GNU libiconv.
50482         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
50483         * modules/uniwidth/width: New file.
50484
50485         * lib/uniwidth.h: New file, from GNU libiconv.
50486         * modules/uniwidth/base: New file.
50487
50488 2007-07-07  Bruno Haible  <bruno@clisp.org>
50489
50490         * lib/uniname.h: New file, from GNU gettext.
50491         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
50492         * lib/uniname/uninames.h: New file, from GNU gettext.
50493         * lib/uniname/uniname.c: New file, from GNU gettext.
50494         * tests/uniname/test-uninames.sh: New file.
50495         * tests/uniname/test-uninames.c: New file, from GNU gettext.
50496         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
50497         * modules/uniname/base: New file.
50498         * modules/uniname/uniname: New file.
50499         * modules/uniname/uniname-tests: New file.
50500         * MODULES.html.sh (Unicode string functions): Add the new modules.
50501
50502 2007-07-06  Bruno Haible  <bruno@clisp.org>
50503
50504         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
50505
50506 2007-07-06  Bruno Haible  <bruno@clisp.org>
50507
50508         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
50509         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
50510         includes <cygwin/sys_time.h> which includes <sys/select.h> which
50511         include <sys/time.h>.
50512         Reported by Eric Blake.
50513
50514 2007-07-06  Eric Blake  <ebb9@byu.net>
50515
50516         Fix testing canonicalize on cygwin.
50517         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
50518         Revert patch from 2007-06-19.
50519         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
50520         canonicalize module is also in use.
50521         * tests/test-canonicalize.c: New file.
50522         * tests/test-canonicalize.sh: Likewise.
50523         * modules/canonicalize-tests: Likewise.
50524
50525 2007-07-06  Jim Meyering  <jim@meyering.net>
50526
50527         * lib/getugroups.c (getugroups): Detect getgrent failure.
50528         Adjust comment to reflect reality: this function may return -1.
50529
50530 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
50531
50532         * build-aux/bootstrap (TP_URL,get_translations): Update to use
50533         the new TP address.
50534         (usage): Fix typo
50535         (gnulib_mk): New variable.
50536
50537 2007-07-05  Jim Meyering  <jim@meyering.net>
50538
50539         Don't let endgrent clobber errno, no matter how improbable.
50540         * lib/getugroups.c (getugroups): Save and restore errno around
50541         endgrent call.
50542
50543         Close the group DB even when failing with 2^31 or more members.
50544         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
50545
50546 2007-07-04  Jim Meyering  <jim@meyering.net>
50547
50548         * lib/getugroups.h: New file.
50549         * lib/getugroups.c: Include "getugroups.h".
50550         Remove uses of "register" keyword.
50551         Move local variable, "cp", down into scope where used.
50552         Give "username" parameter the "const" attribute.
50553         * modules/getugroups (Files): Add lib/getugroups.h
50554
50555 2007-07-04  Karl Berry  <karl@gnu.org>
50556
50557         * MODULES.html.sh (func_all_modules): Complete rename of
50558         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
50559
50560 2007-07-02  Bruno Haible  <bruno@clisp.org>
50561
50562         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
50563         mode, when inttypes.h comes from gnulib.
50564         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
50565
50566 2007-07-02  Simon Josefsson  <simon@josefsson.org>
50567
50568         * NEWS: Mention lgpl module name change.
50569
50570         * modules/lgpl-2.1: Renamed from lgpl.
50571
50572         * NEWS: Mention gpl module name change.
50573
50574         * modules/gpl-3.0: New file, based on gpl-2.0.
50575
50576         * modules/gpl-2.0: Renamed from gpl.
50577
50578         * modules/gpl: Fix filename, doc/gpl.texi is now found at
50579         doc/gpl-2.0.texi.
50580
50581 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
50582
50583         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
50584         #define __STDC_LIMIT_MACROS temporarily while including
50585         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
50586         Problem reported by Joel E. Denny in
50587         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
50588
50589 2007-07-01  Bruno Haible  <bruno@clisp.org>
50590
50591         * lib/unistdio.h: New file.
50592         * lib/unistdio/u-asnprintf.h: New file.
50593         * lib/unistdio/u-asprintf.h: New file.
50594         * lib/unistdio/u-printf-args.c: New file.
50595         * lib/unistdio/u-printf-args.h: New file.
50596         * lib/unistdio/u-printf-parse.h: New file.
50597         * lib/unistdio/u-snprintf.h: New file.
50598         * lib/unistdio/u-sprintf.h: New file.
50599         * lib/unistdio/u-vasprintf.h: New file.
50600         * lib/unistdio/u-vsnprintf.h: New file.
50601         * lib/unistdio/u-vsprintf.h: New file.
50602         * lib/unistdio/ulc-asnprintf.c: New file.
50603         * lib/unistdio/ulc-asprintf.c: New file.
50604         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
50605         * lib/unistdio/ulc-printf-parse.c: New file.
50606         * lib/unistdio/ulc-snprintf.c: New file.
50607         * lib/unistdio/ulc-sprintf.c: New file.
50608         * lib/unistdio/ulc-vasnprintf.c: New file.
50609         * lib/unistdio/ulc-vasprintf.c: New file.
50610         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
50611         * lib/unistdio/ulc-vsnprintf.c: New file.
50612         * lib/unistdio/ulc-vsprintf.c: New file.
50613         * lib/unistdio/u8-asnprintf.c: New file.
50614         * lib/unistdio/u8-asprintf.c: New file.
50615         * lib/unistdio/u8-printf-parse.c: New file.
50616         * lib/unistdio/u8-snprintf.c: New file.
50617         * lib/unistdio/u8-sprintf.c: New file.
50618         * lib/unistdio/u8-vasnprintf.c: New file.
50619         * lib/unistdio/u8-vasprintf.c: New file.
50620         * lib/unistdio/u8-vsnprintf.c: New file.
50621         * lib/unistdio/u8-vsprintf.c: New file.
50622         * lib/unistdio/u8-u8-asnprintf.c: New file.
50623         * lib/unistdio/u8-u8-asprintf.c: New file.
50624         * lib/unistdio/u8-u8-snprintf.c: New file.
50625         * lib/unistdio/u8-u8-sprintf.c: New file.
50626         * lib/unistdio/u8-u8-vasnprintf.c: New file.
50627         * lib/unistdio/u8-u8-vasprintf.c: New file.
50628         * lib/unistdio/u8-u8-vsnprintf.c: New file.
50629         * lib/unistdio/u8-u8-vsprintf.c: New file.
50630         * lib/unistdio/u16-asnprintf.c: New file.
50631         * lib/unistdio/u16-asprintf.c: New file.
50632         * lib/unistdio/u16-printf-parse.c: New file.
50633         * lib/unistdio/u16-snprintf.c: New file.
50634         * lib/unistdio/u16-sprintf.c: New file.
50635         * lib/unistdio/u16-vasnprintf.c: New file.
50636         * lib/unistdio/u16-vasprintf.c: New file.
50637         * lib/unistdio/u16-vsnprintf.c: New file.
50638         * lib/unistdio/u16-vsprintf.c: New file.
50639         * lib/unistdio/u16-u16-asnprintf.c: New file.
50640         * lib/unistdio/u16-u16-asprintf.c: New file.
50641         * lib/unistdio/u16-u16-snprintf.c: New file.
50642         * lib/unistdio/u16-u16-sprintf.c: New file.
50643         * lib/unistdio/u16-u16-vasnprintf.c: New file.
50644         * lib/unistdio/u16-u16-vasprintf.c: New file.
50645         * lib/unistdio/u16-u16-vsnprintf.c: New file.
50646         * lib/unistdio/u16-u16-vsprintf.c: New file.
50647         * lib/unistdio/u32-asnprintf.c: New file.
50648         * lib/unistdio/u32-asprintf.c: New file.
50649         * lib/unistdio/u32-printf-parse.c: New file.
50650         * lib/unistdio/u32-snprintf.c: New file.
50651         * lib/unistdio/u32-sprintf.c: New file.
50652         * lib/unistdio/u32-vasnprintf.c: New file.
50653         * lib/unistdio/u32-vasprintf.c: New file.
50654         * lib/unistdio/u32-vsnprintf.c: New file.
50655         * lib/unistdio/u32-vsprintf.c: New file.
50656         * lib/unistdio/u32-u32-asnprintf.c: New file.
50657         * lib/unistdio/u32-u32-asprintf.c: New file.
50658         * lib/unistdio/u32-u32-snprintf.c: New file.
50659         * lib/unistdio/u32-u32-sprintf.c: New file.
50660         * lib/unistdio/u32-u32-vasnprintf.c: New file.
50661         * lib/unistdio/u32-u32-vasprintf.c: New file.
50662         * lib/unistdio/u32-u32-vsnprintf.c: New file.
50663         * lib/unistdio/u32-u32-vsprintf.c: New file.
50664         * tests/unistdio/test-ulc-asnprintf1.c: New file.
50665         * tests/unistdio/test-ulc-asnprintf1.h: New file.
50666         * tests/unistdio/test-ulc-printf1.h: New file.
50667         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
50668         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
50669         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
50670         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
50671         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
50672         * tests/unistdio/test-ulc-vasprintf1.c: New file.
50673         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
50674         * tests/unistdio/test-ulc-vsprintf1.c: New file.
50675         * tests/unistdio/test-u8-asnprintf1.c: New file.
50676         * tests/unistdio/test-u8-asnprintf1.h: New file.
50677         * tests/unistdio/test-u8-printf1.h: New file.
50678         * tests/unistdio/test-u8-vasnprintf1.c: New file.
50679         * tests/unistdio/test-u8-vasnprintf2.c: New file.
50680         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
50681         * tests/unistdio/test-u8-vasnprintf3.c: New file.
50682         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
50683         * tests/unistdio/test-u8-vasprintf1.c: New file.
50684         * tests/unistdio/test-u8-vsnprintf1.c: New file.
50685         * tests/unistdio/test-u8-vsprintf1.c: New file.
50686         * tests/unistdio/test-u16-asnprintf1.c: New file.
50687         * tests/unistdio/test-u16-asnprintf1.h: New file.
50688         * tests/unistdio/test-u16-printf1.h: New file.
50689         * tests/unistdio/test-u16-vasnprintf1.c: New file.
50690         * tests/unistdio/test-u16-vasnprintf2.c: New file.
50691         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
50692         * tests/unistdio/test-u16-vasnprintf3.c: New file.
50693         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
50694         * tests/unistdio/test-u16-vasprintf1.c: New file.
50695         * tests/unistdio/test-u16-vsnprintf1.c: New file.
50696         * tests/unistdio/test-u16-vsprintf1.c: New file.
50697         * tests/unistdio/test-u32-asnprintf1.c: New file.
50698         * tests/unistdio/test-u32-asnprintf1.h: New file.
50699         * tests/unistdio/test-u32-printf1.h: New file.
50700         * tests/unistdio/test-u32-vasnprintf1.c: New file.
50701         * tests/unistdio/test-u32-vasnprintf2.c: New file.
50702         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
50703         * tests/unistdio/test-u32-vasnprintf3.c: New file.
50704         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
50705         * tests/unistdio/test-u32-vasprintf1.c: New file.
50706         * tests/unistdio/test-u32-vsnprintf1.c: New file.
50707         * tests/unistdio/test-u32-vsprintf1.c: New file.
50708         * modules/unistdio/base: New file.
50709         * modules/unistdio/u-printf-args: New file.
50710         * modules/unistdio/ulc-asnprintf: New file.
50711         * modules/unistdio/ulc-asprintf: New file.
50712         * modules/unistdio/ulc-fprintf: New file.
50713         * modules/unistdio/ulc-printf-parse: New file.
50714         * modules/unistdio/ulc-snprintf: New file.
50715         * modules/unistdio/ulc-sprintf: New file.
50716         * modules/unistdio/ulc-vasnprintf: New file.
50717         * modules/unistdio/ulc-vasprintf: New file.
50718         * modules/unistdio/ulc-vfprintf: New file.
50719         * modules/unistdio/ulc-vsnprintf: New file.
50720         * modules/unistdio/ulc-vsprintf: New file.
50721         * modules/unistdio/u8-asnprintf: New file.
50722         * modules/unistdio/u8-asprintf: New file.
50723         * modules/unistdio/u8-printf-parse: New file.
50724         * modules/unistdio/u8-snprintf: New file.
50725         * modules/unistdio/u8-sprintf: New file.
50726         * modules/unistdio/u8-vasnprintf: New file.
50727         * modules/unistdio/u8-vasprintf: New file.
50728         * modules/unistdio/u8-vsnprintf: New file.
50729         * modules/unistdio/u8-vsprintf: New file.
50730         * modules/unistdio/u8-u8-asnprintf: New file.
50731         * modules/unistdio/u8-u8-asprintf: New file.
50732         * modules/unistdio/u8-u8-snprintf: New file.
50733         * modules/unistdio/u8-u8-sprintf: New file.
50734         * modules/unistdio/u8-u8-vasnprintf: New file.
50735         * modules/unistdio/u8-u8-vasprintf: New file.
50736         * modules/unistdio/u8-u8-vsnprintf: New file.
50737         * modules/unistdio/u8-u8-vsprintf: New file.
50738         * modules/unistdio/u16-asnprintf: New file.
50739         * modules/unistdio/u16-asprintf: New file.
50740         * modules/unistdio/u16-printf-parse: New file.
50741         * modules/unistdio/u16-snprintf: New file.
50742         * modules/unistdio/u16-sprintf: New file.
50743         * modules/unistdio/u16-vasnprintf: New file.
50744         * modules/unistdio/u16-vasprintf: New file.
50745         * modules/unistdio/u16-vsnprintf: New file.
50746         * modules/unistdio/u16-vsprintf: New file.
50747         * modules/unistdio/u16-u16-asnprintf: New file.
50748         * modules/unistdio/u16-u16-asprintf: New file.
50749         * modules/unistdio/u16-u16-snprintf: New file.
50750         * modules/unistdio/u16-u16-sprintf: New file.
50751         * modules/unistdio/u16-u16-vasnprintf: New file.
50752         * modules/unistdio/u16-u16-vasprintf: New file.
50753         * modules/unistdio/u16-u16-vsnprintf: New file.
50754         * modules/unistdio/u16-u16-vsprintf: New file.
50755         * modules/unistdio/u32-asnprintf: New file.
50756         * modules/unistdio/u32-asprintf: New file.
50757         * modules/unistdio/u32-printf-parse: New file.
50758         * modules/unistdio/u32-snprintf: New file.
50759         * modules/unistdio/u32-sprintf: New file.
50760         * modules/unistdio/u32-vasnprintf: New file.
50761         * modules/unistdio/u32-vasprintf: New file.
50762         * modules/unistdio/u32-vsnprintf: New file.
50763         * modules/unistdio/u32-vsprintf: New file.
50764         * modules/unistdio/u32-u32-asnprintf: New file.
50765         * modules/unistdio/u32-u32-asprintf: New file.
50766         * modules/unistdio/u32-u32-snprintf: New file.
50767         * modules/unistdio/u32-u32-sprintf: New file.
50768         * modules/unistdio/u32-u32-vasnprintf: New file.
50769         * modules/unistdio/u32-u32-vasprintf: New file.
50770         * modules/unistdio/u32-u32-vsnprintf: New file.
50771         * modules/unistdio/u32-u32-vsprintf: New file.
50772         * modules/unistdio/ulc-asnprintf-tests: New file.
50773         * modules/unistdio/ulc-vasnprintf-tests: New file.
50774         * modules/unistdio/ulc-vasprintf-tests: New file.
50775         * modules/unistdio/ulc-vsnprintf-tests: New file.
50776         * modules/unistdio/ulc-vsprintf-tests: New file.
50777         * modules/unistdio/u8-asnprintf-tests: New file.
50778         * modules/unistdio/u8-vasnprintf-tests: New file.
50779         * modules/unistdio/u8-vasprintf-tests: New file.
50780         * modules/unistdio/u8-vsnprintf-tests: New file.
50781         * modules/unistdio/u8-vsprintf-tests: New file.
50782         * modules/unistdio/u16-asnprintf-tests: New file.
50783         * modules/unistdio/u16-vasnprintf-tests: New file.
50784         * modules/unistdio/u16-vasprintf-tests: New file.
50785         * modules/unistdio/u16-vsnprintf-tests: New file.
50786         * modules/unistdio/u16-vsprintf-tests: New file.
50787         * modules/unistdio/u32-asnprintf-tests: New file.
50788         * modules/unistdio/u32-vasnprintf-tests: New file.
50789         * modules/unistdio/u32-vasprintf-tests: New file.
50790         * modules/unistdio/u32-vsnprintf-tests: New file.
50791         * modules/unistdio/u32-vsprintf-tests: New file.
50792         * MODULES.html.sh (Unicode string functions): Add the new modules.
50793
50794 2007-07-01  Bruno Haible  <bruno@clisp.org>
50795
50796         * lib/sprintf.c (sprintf): Limit the available length estimation,
50797         to avoid address wraparound.
50798         * lib/vsprintf.c (vsprintf): Likewise.
50799         * modules/sprintf-posix (Dependencies): Add stdint.
50800         * modules/vsprintf-posix (Dependencies): Likewise.
50801
50802 2007-07-01  Bruno Haible  <bruno@clisp.org>
50803
50804         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
50805         Windows PATH as well. Conservative double-quoting. Comments.
50806
50807 2007-07-01  Bruno Haible  <bruno@clisp.org>
50808             Eric Blake  <ebb9@byu.net>
50809             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50810
50811         * gnulib-tool (self_abspathname): Fix algorithm to cope with
50812         empty components in $PATH, denoting '.'.
50813
50814 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50815
50816         * gnulib-tool: Fix indentation.
50817         (func_create_megatestdir): Likewise.
50818         Report by Bruno Haible.
50819
50820 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50821
50822         Sync from Automake.
50823         * build-aux/gnupload: Fix shell portability issues with for loops.
50824         Report by Karl Berry.
50825
50826 2007-06-29  Simon Josefsson  <simon@josefsson.org>
50827
50828         * build-aux/maint.mk (POURL): Use translationproject.org.
50829
50830 2007-06-27  Simon Josefsson  <simon@josefsson.org>
50831             Bruno Haible  <bruno@clisp.org>
50832
50833         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
50834         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
50835         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
50836         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
50837         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
50838
50839 2007-06-27  Bruno Haible  <bruno@clisp.org>
50840
50841         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
50842         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
50843
50844 2007-06-26  Karl Berry  <karl@gnu.org>
50845
50846         * MODULES.html.sh: remove xreadlink-with-size.
50847
50848 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
50849
50850         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
50851         method that I hope also handles the double-include problem noted
50852         by Bruno Haible in
50853         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
50854
50855 2007-06-23  Bruno Haible  <bruno@clisp.org>
50856
50857         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50858         Don't let the 'mostlyclean' target fail if the last subdirectory could
50859         not be removed.
50860         Reported by Karl Berry.
50861
50862 2007-06-23  Bruno Haible  <bruno@clisp.org>
50863
50864         * gnulib-tool (echo): Add a speedier workaround for ksh.
50865         * tests/test-echo.sh: Likewise.
50866
50867 2007-06-23  Bruno Haible  <bruno@clisp.org>
50868
50869         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
50870         * tests/test-echo.sh: Likewise.
50871
50872 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50873
50874         * gnulib-tool (IFS): Initialize early, so we don't set it to
50875         empty later.
50876         (self_abspathname): Rewrite algorithm to set it, reindent.
50877         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
50878         (func_create_megatestdir): Merge some sed scripts.
50879
50880 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
50881
50882         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
50883         exposed by Sun Studio 11 cc on Solaris 8.
50884
50885 2007-06-22  Bruno Haible  <bruno@clisp.org>
50886
50887         * gnulib-tool (echo): Ensure the echo primitive does not interpret
50888         backslashes.
50889         * tests/test-echo.sh: New file.
50890
50891 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50892
50893         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
50894         simplify `sed_replace_build_aux' scripts, they are portable but
50895         echoing them with `echo' is not.
50896         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
50897
50898 2007-06-21  Karl Berry  <karl@gnu.org>
50899
50900         * config/srclist.txt: guess we can't handle the licenses via
50901         srclist at the moment.
50902
50903 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
50904
50905         * MODULES.html.sh: Add include_next.
50906         * modules/include_next: New file.
50907
50908 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
50909
50910         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
50911         INCLUDE_NEXT.
50912         (gl_CHECK_NEXT_HEADERS): New macro.
50913         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
50914         the obsolescent gl_ABSOLUTE_HEADER.
50915         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
50916         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
50917         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
50918         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
50919         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
50920         * m4/math_h.m4 (gl_MATH_H): Likewise.
50921         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
50922         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
50923         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
50924         * m4/stdint.m4 (gl_STDINT_H): Likewise.
50925         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
50926         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
50927         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
50928         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
50929         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
50930         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
50931         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
50932         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
50933         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
50934         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
50935         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
50936         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
50937         * m4/inttypes.m4 (gl_INTTYPES_H): Define
50938         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
50939         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
50940         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
50941         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
50942         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
50943         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
50944         * lib/float_.h: Likewise.
50945         * lib/inttypes_.h: Likewise.
50946         * lib/math_.h: Likewise.
50947         * lib/search_.h: Likewise.
50948         * lib/signal_.h: Likewise.
50949         * lib/stdint_.h: Likewise.
50950         * lib/stdio_.h: Likewise.
50951         * lib/stdlib_.h: Likewise.
50952         * lib/string_.h: Likewise.
50953         * lib/sys_stat_.h: Likewise.
50954         * lib/sys_time_.h: Likewise.
50955         * lib/time_.h: Likewise.
50956         * lib/unistd_.h: Likewise.
50957         * lib/wchar_.h: Likewise.
50958         * lib/wctype_.h: Likewise.
50959         * lib/dirent_.h: Likewise.
50960         * lib/iconv_.h: Likewise.
50961         * lib/locale_.h: Likewise.
50962         * lib/netinet_in_.h: Likewise.
50963         * lib/sys_select_.h: Likewise.
50964         * lib/sys_socket_.h: Likewise.
50965         * lib/sysexits_.h: Likewise.
50966         * modules/fcntl (Depends-on): Depend on include_next, not
50967         absolute_header.
50968         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
50969         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
50970         * modules/fchdir: Likewise.
50971         * modules/float: Likewise.
50972         * modules/iconv_open: Likewise.
50973         * modules/inttypes: Likewise.
50974         * modules/locale: Likewise.
50975         * modules/math: Likewise.
50976         * modules/netinet_in: Likewise.
50977         * modules/search: Likewise.
50978         * modules/signal: Likewise.
50979         * modules/stdint: Likewise.
50980         * modules/stdio: Likewise.
50981         * modules/stdlib: Likewise.
50982         * modules/string: Likewise.
50983         * modules/sys_select: Likewise.
50984         * modules/sys_socket: Likewise.
50985         * modules/sys_stat: Likewise.
50986         * modules/sys_time: Likewise.
50987         * modules/sysexits: Likewise.
50988         * modules/time: Likewise.
50989         * modules/unistd: Likewise.
50990         * modules/wchar: Likewise.
50991         * modules/wctype: Likewise.
50992         * modules/sys_stat: Change maintainer to "all".
50993         * modules/unistd: Likewise.
50994
50995 2007-06-20  Karl Berry  <karl@gnu.org>
50996
50997         * config/srclist.txt: track www changes in license files.
50998
50999 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
51000
51001         * build-aux/bootstrap: Remove stray dot.
51002         Make sure build_aux settings are honored when linking
51003         gnulib_extra_files.
51004
51005 2007-06-19  Eric Blake  <ebb9@byu.net>
51006
51007         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
51008         Allow compilation on cygwin.
51009
51010 2007-06-19  Jim Meyering  <jim@meyering.net>
51011
51012         xreadlink-with-size: Remove module.  No longer used.
51013         Ex-callers now use xreadlink or mreadlink-with-size.
51014         * modules/xreadlink-with-size: Remove module.
51015         * lib/xreadlink-with-size.c: Remove file.
51016         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
51017         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
51018         just before the function definition *is* accurate.
51019
51020         Eliminate one way canonicalize_filename_mode could exit.
51021         * lib/canonicalize.c (canonicalize_filename_mode):
51022         Use mreadlink_with_size, not xreadlink_with_size.
51023
51024 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
51025
51026         Detect porting problems to FreeBSD/arm, which has time_t wider than
51027         long int.  Original problem reported for GNU diff by Xin Li in
51028         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
51029         * modules/getdate (Depends-on): Add intprops, verify.
51030         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
51031         is an integer type no wider than long int.
51032
51033 2007-06-18  Jim Meyering  <jim@meyering.net>
51034
51035         New module: mreadlink-with-size.
51036         * MODULES.html.sh: Add mreadlink-with-size.
51037         * modules/mreadlink-with-size: New module
51038         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
51039         not xreadlink-with-size.
51040         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
51041
51042 2007-06-16  Bruno Haible  <bruno@clisp.org>
51043
51044         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
51045         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
51046         Reported by Gary V. Vaughan <gary@gnu.org>.
51047
51048 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
51049
51050         Revamp lchown so that it lives in unistd.h where it belongs.
51051         * lib/lchown.h: Remove.
51052         * lib/dirchownmod.c: Don't include lib/lchown.h.
51053         * lib/fchownat.c: Likewise.
51054         * lib/openat.c: Likewise.
51055         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
51056         does not follow symlinks.
51057         (EOPNOTSUPP): Define if not defined.
51058         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
51059         is defined to 0.
51060         (lchown): New decl.
51061         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
51062         Do not check for lchown decl.
51063         Set REPLACE_LCHOWN.
51064         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
51065         REPLACE_LCHOWN.
51066         * modules/chown: Make it clear it follows symlinks.
51067         * modules/lchown: Make it clear it doesn't follow symlinks.
51068         (Files): Remove lib/lchown.h
51069         (Depends-on): Add unistd.
51070         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
51071         (Include): Include <unistd.h>, not "lchown.h".
51072         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
51073         REPLACE_LCHOWN.
51074
51075 2007-06-15  Jim Meyering  <jim@meyering.net>
51076
51077         Change license (GPL to LGPL) of fsusage and dependents.
51078         * modules/fsusage (License): Change to LGPL.
51079         * modules/full-read (License): Likewise.
51080         * modules/full-write (License): Likewise.
51081         * modules/safe-read (License): Likewise.
51082         * modules/safe-write (License): Likewise.
51083
51084 2007-06-14  Ben Pfaff  <blp@gnu.org>
51085
51086         Missing part of allocsa -> malloca transition.
51087         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
51088         gl_MALLOCA.
51089
51090 2007-06-12  Bruno Haible  <bruno@clisp.org>
51091
51092         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
51093         to ia64, x86_64, i386.
51094         Reported by Eric Blake.
51095
51096 2007-06-12  Bruno Haible  <bruno@clisp.org>
51097
51098         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
51099         cross-compiling to x86_64.
51100
51101 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
51102
51103         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
51104         glitch reported by Ralf Wildenhues in
51105         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
51106
51107         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
51108         Vin Shelton.
51109
51110 2007-06-11  Bruno Haible  <bruno@clisp.org>
51111
51112         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
51113         replacement string.
51114         Reported by Eric Blake.
51115
51116 2007-06-10  Bruno Haible  <bruno@clisp.org>
51117
51118         Prepare vasnprintf code for use with Unicode strings.
51119         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
51120         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
51121         TYPE_U32_STRING.
51122         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
51123         a_u32_string variants.
51124         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
51125         * lib/printf-args.c: Don't include config.h and the specification
51126         header if PRINTF_FETCHARGS is already defined.
51127         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
51128         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
51129         TYPE_U16_STRING, TYPE_U32_STRING.
51130         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
51131         u16_directive, u16_directives, u32_directive, u32_directives): New
51132         types.
51133         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
51134         New declarations.
51135         * lib/printf-parse.c: Don't include config.h and the specification
51136         header if PRINTF_PARSE is already defined. Eliminate the set of
51137         parameters for WIDE_CHAR_VERSION; the user of this file must provide
51138         them now. Include c-ctype.h.
51139         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
51140         directive and CHAR_T_ONLY_ASCII.
51141         * lib/vasnprintf.c: Don't include config.h and the specification header
51142         if VASNPRINTF is already defined.
51143         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
51144         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
51145         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
51146         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
51147         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
51148         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
51149         code accordingly.
51150         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
51151         pad_ourselves also in this case, with the 'c' and 's' directives, and
51152         with a different notion of "width".
51153         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
51154
51155 2007-06-10  Bruno Haible  <bruno@clisp.org>
51156
51157         * modules/unistr/u32-mbsnlen: New file.
51158         * lib/unistr/u32-mbsnlen.c: New file.
51159
51160         * modules/unistr/u16-mbsnlen: New file.
51161         * lib/unistr/u16-mbsnlen.c: New file.
51162
51163         * modules/unistr/u8-mbsnlen: New file.
51164         * lib/unistr/u8-mbsnlen.c: New file.
51165
51166         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
51167         declarations.
51168
51169 2007-06-10  Bruno Haible  <bruno@clisp.org>
51170
51171         * lib/string_.h (mbsnlen): New declaration.
51172         * lib/mbsnlen.c: New file.
51173         * m4/mbsnlen.m4: New file.
51174         * modules/mbsnlen: New file.
51175         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
51176         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
51177         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
51178
51179 2007-06-10  Bruno Haible  <bruno@clisp.org>
51180
51181         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
51182
51183 2007-06-10  Bruno Haible  <bruno@clisp.org>
51184
51185         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
51186         * lib/mbuiter.h: Likewise.
51187
51188 2007-06-10  Bruno Haible  <bruno@clisp.org>
51189
51190         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
51191         declaration.
51192
51193 2007-06-10  Karl Berry  <karl@gnu.org>
51194
51195         * config/srclist.txt: remove gettext entries, Bruno prefers
51196         to update individually.
51197
51198 2007-06-10  Bruno Haible  <bruno@clisp.org>
51199
51200         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
51201         'maxlen'. Ensure only length + width bytes are allocated, not
51202         length + 1 + width.
51203
51204 2007-06-09  Bruno Haible  <bruno@clisp.org>
51205
51206         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
51207         (CHAR_T): Remove macro.
51208         (VASNPRINTF): Update.
51209
51210 2007-06-09  Bruno Haible  <bruno@clisp.org>
51211
51212         * MODULES.html.sh (Unicode string functions): Add the new modules.
51213
51214         * modules/uniconv/u32-conv-to-enc: New file.
51215         * lib/uniconv/u32-conv-to-enc.c: New file.
51216         * modules/uniconv/u32-conv-to-enc-tests: New file.
51217         * tests/uniconv/test-u32-conv-to-enc.c: New file.
51218
51219         * modules/uniconv/u16-conv-to-enc: New file.
51220         * lib/uniconv/u16-conv-to-enc.c: New file.
51221         * lib/uniconv/u-conv-to-enc.h: New file.
51222         * modules/uniconv/u16-conv-to-enc-tests: New file.
51223         * tests/uniconv/test-u16-conv-to-enc.c: New file.
51224
51225         * modules/uniconv/u8-conv-to-enc: New file.
51226         * lib/uniconv/u8-conv-to-enc.c: New file.
51227         * modules/uniconv/u8-conv-to-enc-tests: New file.
51228         * tests/uniconv/test-u8-conv-to-enc.c: New file.
51229
51230         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
51231         u32_conv_to_encoding): New declarations.
51232
51233 2007-06-09  Bruno Haible  <bruno@clisp.org>
51234
51235         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
51236
51237 2007-06-09  Bruno Haible  <bruno@clisp.org>
51238
51239         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
51240         * modules/malloca: Renamed from modules/allocsa, updated.
51241         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
51242         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
51243         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
51244         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
51245         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
51246         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
51247         * modules/xmalloca: Renamed from modules/xallocsa, updated.
51248         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
51249         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
51250         * modules/c-strcasestr (Depends-on): Update.
51251         * lib/c-strcasestr.c: Update.
51252         * modules/c-strstr (Depends-on): Update.
51253         * lib/c-strstr.c: Update.
51254         * modules/canonicalize-lgpl (Depends-on): Update.
51255         * lib/canonicalize-lgpl.c: Update.
51256         * modules/clean-temp (Depends-on): Update.
51257         * lib/clean-temp.c: Update.
51258         * modules/csharpcomp (Depends-on): Update.
51259         * lib/csharpcomp.c: Update.
51260         * modules/csharpexec (Depends-on): Update.
51261         * lib/csharpexec.c: Update.
51262         * modules/javacomp (Depends-on): Update.
51263         * lib/javacomp.c: Update.
51264         * modules/javaexec (Depends-on): Update.
51265         * lib/javaexec.c: Update.
51266         * modules/mbscasestr (Depends-on): Update.
51267         * lib/mbscasestr.c: Update.
51268         * modules/mbsstr (Depends-on): Update.
51269         * lib/mbsstr.c: Update.
51270         * modules/setenv (Depends-on): Update.
51271         * lib/setenv.c: Update.
51272         * modules/strcasestr (Depends-on): Update.
51273         * lib/strcasestr.c: Update.
51274         * modules/striconveha (Depends-on): Update.
51275         * lib/striconveha.c: Update.
51276         * modules/relocatable-prog-wrapper (Files): Update.
51277         * lib/relocwrapper.c: Update.
51278         * build-aux/install-reloc: Update.
51279         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
51280
51281 2007-06-08  Bruno Haible  <bruno@clisp.org>
51282
51283         Port to uClibc.
51284         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
51285         * lib/fpurge.c (fpurge): Likewise.
51286         * lib/freading.c (freading): Likewise.
51287         * lib/fseeko.c (rpl_fseeko): Likewise.
51288         * lib/fseterr.c (fseterr): Likewise.
51289         * lib/fwriting.c (fwriting): Likewise.
51290         * tests/test-fflush.c (main): Avoid a failure on uClibc.
51291
51292 2007-06-08  Bruno Haible  <bruno@clisp.org>
51293
51294         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
51295         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
51296         * modules/gettext (Files): Add m4/intlmacosx.m4.
51297
51298 2007-06-07  Bruno Haible  <bruno@clisp.org>
51299
51300         * modules/localename-tests: New file.
51301         * tests/test-localename.c: New file.
51302
51303         New module 'localename'.
51304         * lib/localename.h: New file.
51305         * lib/localename.c: New file, from GNU gettext.
51306         * m4/localename.m4: New file.
51307         * modules/localename: New file.
51308
51309 2007-06-07  Bruno Haible  <bruno@clisp.org>
51310
51311         Work around the lack of <wchar.h> on some builds of uClibc.
51312         * doc/headers/wchar.texi: Update.
51313         * lib/wchar_.h: Include <wchar.h> only if it exists.
51314         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
51315         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
51316         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
51317         doesn't exist.
51318         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
51319         * modules/mbfile (Depends-on): Add wchar.
51320         * modules/mbiter (Depends-on): Likewise.
51321         * modules/mbuiter (Depends-on): Likewise.
51322         Reported by Simon Josefsson.
51323
51324 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
51325
51326         Work around problem reported by Steven M. Schweda in
51327         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
51328         Tru64 5.1B with the Compaq compiler environment installed declares
51329         an 'isblank' function but does not define it in the C library.
51330         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
51331         * lib/regex_internal.h (isblank): Likewise.
51332         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
51333         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
51334
51335 2007-06-05  Bruno Haible  <bruno@clisp.org>
51336
51337         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
51338         ia64.
51339         * modules/printf-safe: New file.
51340         * modules/fprintf-posix (Depends-on): Add printf-safe.
51341         * modules/printf-posix (Depends-on): Likewise.
51342         * modules/snprintf-posix (Depends-on): Likewise.
51343         * modules/sprintf-posix (Depends-on): Likewise.
51344         * modules/vasnprintf-posix (Depends-on): Likewise.
51345         * modules/vasprintf-posix (Depends-on): Likewise.
51346         * modules/vfprintf-posix (Depends-on): Likewise.
51347         * modules/vprintf-posix (Depends-on): Likewise.
51348         * modules/vsnprintf-posix (Depends-on): Likewise.
51349         * modules/vsprintf-posix (Depends-on): Likewise.
51350         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
51351         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
51352         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
51353         "no" on i386, x86_64, ia64.
51354         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
51355         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
51356         on i386, x86_64, ia64.
51357         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
51358         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
51359         on i386, x86_64, ia64.
51360         * tests/test-vasnprintf-posix.c: Include float.h.
51361         (LDBL80_WORDS): New macro.
51362         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
51363         on i386, x86_64, ia64.
51364         * tests/test-vasprintf-posix.c: Include float.h.
51365         (LDBL80_WORDS): New macro.
51366         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
51367         on i386, x86_64, ia64.
51368         * tests/test-snprintf-posix.c: Include float.h.
51369         * tests/test-sprintf-posix.c: Likewise.
51370         * tests/test-vsnprintf-posix.c: Likewise.
51371         * tests/test-vsprintf-posix.c: Likewise.
51372
51373 2007-06-05  Bruno Haible  <bruno@clisp.org>
51374
51375         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
51376         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
51377         non-IEEE numbers on i386, x86_64, ia64.
51378         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
51379         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
51380         * tests/test-isnanl.h: Include float.h.
51381         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
51382
51383 2007-06-05  Bruno Haible  <bruno@clisp.org>
51384
51385         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
51386         also the %a / %A. Handle the %a / %A code before this extra handling.
51387
51388 2007-06-05  Bruno Haible  <bruno@clisp.org>
51389
51390         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
51391         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
51392
51393 2007-06-05  Bruno Haible  <bruno@clisp.org>
51394
51395         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
51396         typo in variable name.
51397
51398 2007-06-05  Eric Blake  <ebb9@byu.net>
51399
51400         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
51401         Reported by Simon Josefsson.
51402
51403 2007-06-04  Bruno Haible  <bruno@clisp.org>
51404
51405         Avoid test failures on some PowerPC platforms.
51406         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
51407         Define differently for PowerPC.
51408         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
51409         Reported by Gary V. Vaughan <gary@gnu.org>.
51410
51411 2007-06-02  Bruno Haible  <bruno@clisp.org>
51412
51413         Fix test-stdint failure on FreeBSD/ia64.
51414         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
51415         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
51416         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
51417         * doc/headers/stdint.texi: Update.
51418
51419 2007-06-01  Bruno Haible  <bruno@clisp.org>
51420
51421         * tests/test-binary-io.c (main): Pass a third argument to open().
51422         Reported by Gary V. Vaughan <gary@gnu.org>.
51423
51424 2007-06-01  Bruno Haible  <bruno@clisp.org>
51425
51426         * doc/functions/frexpl.texi: Update for mingw.
51427
51428 2007-06-01  Bruno Haible  <bruno@clisp.org>
51429
51430         * tests/test-lseek.c (main): Disable test of errno for invalid third
51431         argument.
51432         * doc/functions/lseek.texi: Update.
51433         Reported by Gary V. Vaughan <gary@gnu.org>.
51434
51435 2007-05-28  Bruno Haible  <bruno@clisp.org>
51436
51437         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
51438
51439 2007-05-31  Eric Blake  <ebb9@byu.net>
51440
51441         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
51442         cross compiling.
51443
51444 2007-05-30  Eric Blake  <ebb9@byu.net>
51445         and Bruno Haible  <bruno@clisp.org>
51446
51447         Work around mingw test failures exposed by m4-1.4.9b.
51448         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
51449         * tests/test-unistd.c: Disable uid_t and git_t tests for the
51450         moment.
51451
51452 2007-05-30  Bruno Haible  <bruno@clisp.org>
51453
51454         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
51455         assuming that they are closed. Needed on HP-UX 11.
51456
51457 2007-05-29  Bruno Haible  <bruno@clisp.org>
51458
51459         Fix a problem with #include_next.
51460         * lib/dirent_.h: Split the double-inclusion guard.
51461         * lib/fcntl_.h: Likewise.
51462         * lib/float_.h: Likewise.
51463         * lib/iconv_.h: Likewise.
51464         * lib/inttypes_.h: Likewise.
51465         * lib/locale_.h: Likewise.
51466         * lib/math_.h: Likewise.
51467         * lib/netinet_in_.h: Likewise.
51468         * lib/search_.h: Likewise.
51469         * lib/signal_.h: Likewise.
51470         * lib/stdint_.h: Likewise.
51471         * lib/stdio_.h: Likewise.
51472         * lib/stdlib_.h: Likewise.
51473         * lib/string_.h: Likewise.
51474         * lib/sys_select_.h: Likewise.
51475         * lib/sys_socket_.h: Likewise.
51476         * lib/sys_stat_.h: Likewise.
51477         * lib/sys_time_.h: Likewise.
51478         * lib/sysexits_.h: Likewise.
51479         * lib/time_.h: Likewise.
51480         * lib/unistd_.h: Likewise.
51481         * lib/wchar_.h: Likewise.
51482         * lib/wctype_.h: Likewise.
51483
51484 2007-05-29  Bruno Haible  <bruno@clisp.org>
51485
51486         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
51487         for the moment.
51488
51489 2007-05-29  Bruno Haible  <bruno@clisp.org>
51490
51491         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
51492         invocation.
51493         Reported by Eric Blake.
51494
51495 2007-05-29  Bruno Haible  <bruno@clisp.org>
51496
51497         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
51498         compiling case.
51499
51500 2007-05-29  Eric Blake  <ebb9@byu.net>
51501             Bruno Haible  <bruno@clisp.org>
51502
51503         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
51504         cross compiles.
51505
51506 2007-05-28  Eric Blake  <ebb9@byu.net>
51507
51508         * modules/closein-tests (test_closein_LDADD): Support test on
51509         cygwin with libtool.
51510
51511 2007-05-28  Bruno Haible  <bruno@clisp.org>
51512
51513         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
51514         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
51515         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
51516         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
51517         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
51518         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
51519         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
51520         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
51521         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
51522
51523 2007-05-28  Eric Blake  <ebb9@byu.net>
51524
51525         Unconditionally include <config.h> in unit tests.
51526         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
51527         * tests/test-allocsa.c, tests/test-arcfour.c,
51528         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
51529         tests/test-array_list.c, tests/test-array_oset.c,
51530         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
51531         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
51532         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
51533         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
51534         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
51535         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
51536         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
51537         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
51538         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
51539         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
51540         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
51541         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
51542         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
51543         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
51544         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
51545         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
51546         test-md5.c, test-memmem.c, test-printf-posix.c,
51547         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
51548         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
51549         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
51550         test-strcasestr.c, test-striconv.c, test-striconveh.c,
51551         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
51552         test-vasnprintf-posix2.c, test-vasnprintf.c,
51553         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
51554         test-vfprintf-posix.c, test-vprintf-posix.c,
51555         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
51556         test-xvasprintf.c: Likewise.
51557
51558 2007-05-28  Bruno Haible  <bruno@clisp.org>
51559
51560         * gnulib-tool (func_import): Remember the --with-tests command-line
51561         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
51562         Reported by Eric Blake.
51563
51564 2007-05-28  Bruno Haible  <bruno@clisp.org>
51565
51566         * modules/ftell-tests: New file.
51567         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
51568         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
51569
51570         * lib/ftell.c: New file.
51571         * modules/ftell: New file.
51572         * m4/ftell.m4: New file.
51573         * doc/functions/ftell.texi: Update.
51574         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
51575         REPLACE_FTELL.
51576         * lib/stdio_.h (rpl_ftell): New declaration.
51577         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
51578         REPLACE_FTELL.
51579
51580 2007-05-28  Eric Blake  <ebb9@byu.net>
51581
51582         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
51583
51584 2007-05-28  Bruno Haible  <bruno@clisp.org>
51585
51586         * modules/fseek-tests: New file.
51587         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
51588         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
51589
51590         * lib/fseek.c: New file.
51591         * modules/fseek: New file.
51592         * m4/fseek.m4: New file.
51593         * doc/functions/fseek.texi: Update.
51594         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
51595         REPLACE_FSEEK.
51596         * lib/stdio_.h (rpl_fseek): New declaration.
51597         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
51598         REPLACE_FSEEK.
51599
51600 2007-05-28  Bruno Haible  <bruno@clisp.org>
51601
51602         * lib/stdio_.h (fflush): More comments.
51603
51604 2007-05-28  Bruno Haible  <bruno@clisp.org>
51605
51606         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
51607         runtime test.
51608
51609 2007-05-28  Eric Blake  <ebb9@byu.net>
51610
51611         Improve lseek module.
51612         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
51613         * lib/unistd_.h (lseek): Scale back link warning message.
51614         * tests/test-lseek.c: Beef up test.
51615         * tests/test-lseek.sh: Exercise more facets of lseek.
51616         Reported by Bruno Haible.
51617
51618 2007-05-28  Bruno Haible  <bruno@clisp.org>
51619
51620         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
51621         to define.
51622
51623 2007-05-27  Bruno Haible  <bruno@clisp.org>
51624
51625         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
51626
51627 2007-05-27  Bruno Haible  <bruno@clisp.org>
51628
51629         * modules/openmp: New file.
51630         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
51631         Noah Misch.
51632
51633 2007-05-26  Bruno Haible  <bruno@clisp.org>
51634
51635         * modules/chdir-long (Depends-on): Add fchdir.
51636         * modules/chdir-safer (Depends-on): Likewise.
51637         * modules/fts (Depends-on): Likewise.
51638         * modules/fts-lgpl (Depends-on): Likewise.
51639         * modules/openat (Depends-on): Likewise.
51640         * modules/savewd (Depends-on): Likewise.
51641
51642 2007-05-24  Eric Blake  <ebb9@byu.net>
51643
51644         Fix lseek on mingw.
51645         * modules/lseek: New module.
51646         * m4/lseek.m4: New file.
51647         * lib/lseek.c: New file.
51648         * modules/lseek-tests: New file.
51649         * tests/test-lseek.c: New file.
51650         * tests/test-lseek.sh: New file.
51651         * MODULES.html.sh: Document lseek module.
51652         * modules/fflush (Depends-on): Add lseek, fseeko.
51653         * modules/fseeko (Depends-on): Likewise.
51654         * modules/ftello (Depends-on): Likewise.
51655         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
51656         broken.
51657         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
51658         broken.
51659         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
51660         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
51661         * lib/ftello.c (rpl_ftello): Likewise.
51662         * tests/test-fseeko.c (main): Test this.
51663         * tests/test-fseeko.sh: Likewise.
51664         * tests/test-ftello.c (main): Likewise.
51665         * tests/test-ftello.sh: Likewise.
51666         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
51667         implies replacing fseek.
51668         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
51669         HAVE_FTELLO.
51670         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
51671         * modules/unistd (Makefile.am): Likewise.
51672         * lib/unistd_.h (lseek): Declare a replacement.
51673         * doc/functions/lseek.texi (lseek): Document this fix.
51674         * doc/functions/fseek.texi (fseek): Likewise.
51675         * doc/functions/ftell.texi (ftell): Likewise.
51676
51677 2007-05-24  Bruno Haible  <bruno@clisp.org>
51678
51679         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
51680         in the printed representation of a NaN.
51681         * tests/test-vasprintf-posix.c (test_function): Likewise.
51682         * tests/test-snprintf-posix.h (test_function): Likewise.
51683         * tests/test-sprintf-posix.h (test_function): Likewise.
51684         Reported by Eric Blake.
51685
51686 2007-05-23  Eric Blake  <ebb9@byu.net>
51687
51688         Fix fseeko/ftello on cygwin 1.5.24.
51689         * doc/functions/fseeko.texi (fseeko): Document the fix.
51690         * doc/functions/ftello.texi (ftello): Document the fix.
51691         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
51692         * doc/functions/stdout.text (stdout): New file.
51693         * doc/functions/stderr.text (stderr): New file.
51694         * doc/gnulib.texi (Function Substitutes): Use new files.
51695         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
51696         prior to 1.7.0.
51697         * tests/test-ftello.c (main): Likewise for ftello.
51698         * tests/test-fseeko.sh: New file.
51699         * tests/test-ftello.sh: New file.
51700         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
51701         with seekable stdin.
51702         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
51703         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
51704         (gl_REPLACE_FSEEKO): New macro.
51705         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
51706         * modules/fseeko (Files): Distribute fseeko.c.
51707         * modules/ftello (Files): Distribute ftello.c.
51708         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
51709         mode.
51710         * lib/ftello.c (rpl_ftello): New file.
51711         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
51712         fseeko, ftello.
51713         (gl_STDIN_LARGE_OFFSET): New macro.
51714         * modules/stdio (Makefile.am): Perform the replacement.
51715         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
51716
51717 2007-05-23  Bruno Haible  <bruno@clisp.org>
51718
51719         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
51720         GNULIB_POSIXCHECK is defined.
51721
51722 2007-05-21  Bruno Haible  <bruno@clisp.org>
51723
51724         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
51725         Check also the output for NaN arguments. When cross-compiling, guess
51726         no on IRIX.
51727         * lib/vasnprintf.c: Update comments.
51728         * tests/test-vasnprintf-posix.c (strisnan): New function.
51729         (test_function): Use it.
51730         * tests/test-vasprintf-posix.c (strisnan): New function.
51731         (test_function): Use it.
51732         * tests/test-snprintf-posix.h (strisnan): New function.
51733         (test_function): Use it.
51734         * tests/test-sprintf-posix.h (strisnan): New function.
51735         (test_function): Use it.
51736         Reported by Eric Blake.
51737
51738 2007-05-20  Bruno Haible  <bruno@clisp.org>
51739
51740         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
51741         numbers that fails on BeOS.
51742         * doc/functions/frexpl.texi: Update.
51743
51744 2007-05-20  Jim Meyering  <jim@meyering.net>
51745
51746         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
51747         forced upon us by glibc-2.6.
51748
51749 2007-05-20  Bruno Haible  <bruno@clisp.org>
51750
51751         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
51752         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
51753         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
51754         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
51755         NEED_PRINTF_INFINITE.
51756         (is_infinitel): New function.
51757         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
51758         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
51759         gl_PREREQ_VASNPRINTF_INFINITE.
51760         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
51761         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51762         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
51763         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
51764         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
51765         gl_PREREQ_VASNPRINTF_INFINITE.
51766         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51767         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51768         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51769         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51770         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51771         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51772         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51773         * doc/functions/fprintf.texi: Update.
51774         * doc/functions/printf.texi: Update.
51775         * doc/functions/snprintf.texi: Update.
51776         * doc/functions/sprintf.texi: Update.
51777         * doc/functions/vfprintf.texi: Update.
51778         * doc/functions/vprintf.texi: Update.
51779         * doc/functions/vsnprintf.texi: Update.
51780         * doc/functions/vsprintf.texi: Update.
51781
51782 2007-05-20  Bruno Haible  <bruno@clisp.org>
51783
51784         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
51785         was not found in libc.
51786         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
51787
51788 2007-05-20  Bruno Haible  <bruno@clisp.org>
51789
51790         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
51791         printed as "-nan" instead of "nan".
51792         * tests/test-vasprintf-posix.c (test_function): Likewise.
51793         * tests/test-snprintf-posix.h (test_function): Likewise.
51794         * tests/test-sprintf-posix.h (test_function): Likewise.
51795         Needed for HP-UX 11.
51796
51797 2007-05-20  Jim Meyering  <jim@meyering.net>
51798
51799         Fix buggy test for the fchownat-deref bug.
51800         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
51801         symlink required for the run-test.  Without it, this test would
51802         always declare that fchownat doesn't work, and client code would
51803         unnecessarily use the replacement function with fixed libc.
51804         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
51805         Reported by Greg Schafer.
51806
51807 2007-05-19  Bruno Haible  <bruno@clisp.org>
51808
51809         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
51810         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
51811         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
51812         Needed for IRIX 6.5 and Solaris 2.5.1.
51813
51814 2007-05-19  Bruno Haible  <bruno@clisp.org>
51815
51816         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
51817         (test_function): Skip tests involving -0.0 on platforms where
51818         -0.0 = 0.0.
51819         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
51820         (test_function): Skip tests involving -0.0 on platforms where
51821         -0.0 = 0.0.
51822         * tests/test-snprintf-posix.h (have_minus_zero): New function.
51823         (test_function): Skip tests involving -0.0 on platforms where
51824         -0.0 = 0.0.
51825         * tests/test-sprintf-posix.h (have_minus_zero): New function.
51826         (test_function): Skip tests involving -0.0 on platforms where
51827         -0.0 = 0.0.
51828         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
51829         tests.
51830         * tests/test-printf-posix.h (test_function): Likewise.
51831         * tests/test-printf-posix.output: Remove all -0.0 related results.
51832         Needed for IRIX 6.5.
51833
51834 2007-05-19  Bruno Haible  <bruno@clisp.org>
51835
51836         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
51837         printed as "nan0x7fffffff" instead of "nan".
51838         * tests/test-vasprintf-posix.c (test_function): Likewise.
51839         * tests/test-snprintf-posix.h (test_function): Likewise.
51840         * tests/test-sprintf-posix.h (test_function): Likewise.
51841         * tests/test-fprintf-posix.h (NaN): Remove macro.
51842         (test_function): Remove all NaN related tests.
51843         * tests/test-printf-posix.h (NaN): Remove macro.
51844         (test_function): Remove all NaN related tests.
51845         * tests/test-printf-posix.output: Remove all NaN related results.
51846         Needed for IRIX 6.5.
51847
51848 2007-05-19  Bruno Haible  <bruno@clisp.org>
51849
51850         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
51851         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
51852
51853 2007-05-19  Bruno Haible  <bruno@clisp.org>
51854
51855         * lib/float_.h: New file.
51856         * m4/float_h.m4: New file.
51857         * modules/float: New file.
51858         * modules/isnanl (Dependencies): Add float.
51859         * modules/isnanl-nolibm (Dependencies): Likewise.
51860         * modules/mathl (Dependencies): Likewise.
51861         * modules/printf-frexpl (Dependencies): Likewise.
51862         * modules/signbit (Dependencies): Likewise.
51863         * modules/vasnprintf (Dependencies): Likewise.
51864         * doc/headers/float.texi: Update.
51865
51866 2007-05-19  Jim Meyering  <jim@meyering.net>
51867
51868         * lib/utimens.c (gl_futimens): Rename from futimens,
51869         now that glibc-2.6 declares futimens.
51870         * lib/utimens.h: Likewise.
51871
51872 2007-05-19  Bruno Haible  <bruno@clisp.org>
51873
51874         Avoid test failures on mingw.
51875         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
51876         * tests/test-printf-posix.sh: Likewise.
51877         * tests/test-vfprintf-posix.sh: Likewise.
51878         * tests/test-vprintf-posix.sh: Likewise.
51879
51880 2007-05-19  Bruno Haible  <bruno@clisp.org>
51881
51882         Fix *printf result for NaN, Inf, -0.0 on mingw.
51883         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
51884         * lib/vasnprintf.c: Include math.h and isnan.h.
51885         (is_infinite_or_zero): New function.
51886         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
51887         values in the %f, %F, %e, %E, %g, %G directives.
51888         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
51889         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51890         gl_PRINTF_INFINITE and test its result. Invoke
51891         gl_PREREQ_VASNPRINTF_INFINITE.
51892         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51893         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51894         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51895         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51896         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51897         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51898         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51899         * doc/functions/fprintf.texi: Update.
51900         * doc/functions/printf.texi: Update.
51901         * doc/functions/snprintf.texi: Update.
51902         * doc/functions/sprintf.texi: Update.
51903         * doc/functions/vfprintf.texi: Update.
51904         * doc/functions/vprintf.texi: Update.
51905         * doc/functions/vsnprintf.texi: Update.
51906         * doc/functions/vsprintf.texi: Update.
51907
51908 2007-05-19  Bruno Haible  <bruno@clisp.org>
51909
51910         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
51911         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
51912         Instead of multiplying with 10^k, set extra_zeroes to k.
51913         (scale10_round_long_double): Remove function.
51914
51915 2007-05-18  Bruno Haible  <bruno@clisp.org>
51916
51917         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
51918         introduced on 2007-05-06.
51919
51920 2007-05-18  Bruno Haible  <bruno@clisp.org>
51921
51922         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
51923         %g directives.
51924         * tests/test-vasprintf-posix.c (test_function): Likewise.
51925         * tests/test-snprintf-posix.h (test_function): Likewise.
51926         * tests/test-sprintf-posix.h (test_function): Likewise.
51927
51928 2007-05-18  Bruno Haible  <bruno@clisp.org>
51929
51930         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
51931         (strmatch): New function.
51932         (test_function): Test the %f directive on numbers of various exponents.
51933         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
51934         (strmatch): New function.
51935         (test_function): Test the %f directive on numbers of various exponents.
51936         * tests/test-snprintf-posix.h (strmatch): New function.
51937         (test_function): Test the %f directive on numbers of various exponents.
51938         * tests/test-sprintf-posix.h (strmatch): New function.
51939         (test_function): Test the %f directive on numbers of various exponents.
51940         * tests/test-snprintf-posix.c (SIZEOF): New macro.
51941         * tests/test-sprintf-posix.c (SIZEOF): New macro.
51942         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
51943         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
51944
51945 2007-05-18  Bruno Haible  <bruno@clisp.org>
51946
51947         Add support for 'long double' number output.
51948         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
51949         * lib/vasnprintf.c: Include math.h and float+.h.
51950         (mp_limb_t): New type.
51951         (GMP_LIMB_BITS): New macro.
51952         (mp_twolimb_t): New type.
51953         (GMP_TWOLIMB_BITS): New macro.
51954         (mpn_t): New type.
51955         (multiply, divide, convert_to_decimal, decode_long_double,
51956         scale10_round_long_double, scale10_round_decimal_long_double,
51957         floorlog10l): New functions.
51958         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
51959         for the %f, %F, %e, %E, %g, %G directives.
51960         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
51961         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51962         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
51963         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
51964         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51965         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51966         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51967         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51968         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51969         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51970         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51971         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
51972         * modules/snprintf-posix (Depends-on): Likewise.
51973         * modules/sprintf-posix (Depends-on): Likewise.
51974         * modules/vasnprintf-posix (Depends-on): Likewise.
51975         * modules/vasprintf-posix (Depends-on): Likewise.
51976         * modules/vfprintf-posix (Depends-on): Likewise.
51977         * modules/vsnprintf-posix (Depends-on): Likewise.
51978         * modules/vsprintf-posix (Depends-on): Likewise.
51979         * modules/vasnprintf (Files): Add lib/float+.h.
51980         * doc/functions/fprintf.texi: Update.
51981         * doc/functions/printf.texi: Update.
51982         * doc/functions/snprintf.texi: Update.
51983         * doc/functions/sprintf.texi: Update.
51984         * doc/functions/vfprintf.texi: Update.
51985         * doc/functions/vprintf.texi: Update.
51986         * doc/functions/vsnprintf.texi: Update.
51987         * doc/functions/vsprintf.texi: Update.
51988
51989 2007-05-18  Bruno Haible  <bruno@clisp.org>
51990
51991         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
51992
51993 2007-05-18  Bruno Haible  <bruno@clisp.org>
51994
51995         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
51996         for printing 64-bit integers. Needed for mingw.
51997
51998 2007-05-18  Bruno Haible  <bruno@clisp.org>
51999
52000         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
52001         gl_FUNC_FREXPL_WORKS.
52002         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
52003
52004 2007-05-18  Bruno Haible  <bruno@clisp.org>
52005
52006         * modules/frexpl-nolibm-tests: New file.
52007
52008         * modules/frexpl-nolibm: New file.
52009         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
52010
52011 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
52012
52013         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
52014         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
52015         GCC 4.2, which otherwise issues a lot of warnings.
52016         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
52017         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
52018         Likewise.
52019         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
52020         * modules/iconv_open (iconv.h): Likewise.
52021         * modules/locale (locale.h): Likewise.
52022         * modules/netinet_in (netinet/in.h): Likewise.
52023         * modules/sys_select (sys_select.h): Likewise.
52024         * modules/sys_socket (sys/socket.h): Likewise.
52025         * modules/sys_stat (sys/stat.h): Likewise.
52026         * modules/sysexits (sysexits.h): Likewise.
52027         * modules/unistd (unistd.h): Likewise.
52028
52029 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52030
52031         * modules/closein-tests (Makefile.am): Distribute
52032         `test-closein.sh'.
52033
52034 2007-05-17  Bruno Haible  <bruno@clisp.org>
52035
52036         * tests/test-printf-posix.output: Renamed from
52037         tests/test-fprintf-posix.out.
52038         * modules/fprintf-posix-tests: Update.
52039         * modules/printf-posix-tests: Update.
52040         * modules/vfprintf-posix-tests: Update.
52041         * modules/vprintf-posix-tests: Update.
52042         * tests/test-fprintf-posix.sh: Update.
52043         * tests/test-printf-posix.sh: Update.
52044         * tests/test-vfprintf-posix.sh: Update.
52045         * tests/test-vprintf-posix.sh: Update.
52046         Reported by Ralf Wildenhues.
52047
52048 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
52049
52050         * lib/fcntl_.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/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
52054         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
52055         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
52056         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
52057         it should no longer be needed.
52058         * lib/string_.h: Likewise.
52059         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
52060         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
52061         * modules/inttypes (inttypes.h): Likewise.
52062         * modules/math (math.h): Likewise.
52063         * modules/search (search.h): Likewise.
52064         * modules/signal (signal.h): Likewise.
52065         * modules/stdint (stdint.h): Likewise.
52066         * modules/stdio (stdio.h): Likewise.
52067         * modules/stdlib (stdlib.h): Likewise.
52068         * modules/string (string.h): Likewise.
52069         * modules/sys_time (sys/time.h): Likewise.
52070         * modules/time (time.h): Likewise.
52071         * modules/wchar (wchar.h): Likewise.
52072         * modules/wctype (wtype.h): Likewise.
52073
52074 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
52075
52076         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
52077
52078 2007-05-13  Bruno Haible  <bruno@clisp.org>
52079
52080         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
52081         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
52082         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
52083         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
52084         (gl_PREREQ_STRTOK_R): Don't require it here.
52085
52086 2007-05-13  Bruno Haible  <bruno@clisp.org>
52087
52088         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
52089         when used in C++ mode.
52090
52091 2007-05-12  Bruno Haible  <bruno@clisp.org>
52092
52093         * lib/linebuffer.h: Tweak doc.
52094         * lib/linebuffer.c: Likewise.
52095
52096 2007-05-12  James Youngman  <jay@gnu.org>
52097
52098         * lib/linebuffer.c (readlinebuffer_delim): New function,
52099         like readlinebuffer, but use a caller-specified delimiter.
52100         (readlinebuffer): Just call readlinebuffer_delim with '\n'
52101         as the delimiter.
52102         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
52103
52104 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
52105
52106         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
52107         * modules/openat (Files): Remove openat-die.c.
52108         (Depends-on): Add openat-die.
52109         * modules/openat-die: New module.
52110
52111 2007-05-06  Bruno Haible  <bruno@clisp.org>
52112
52113         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
52114         Update with info about Cygwin.
52115         * doc/functions/fprintf.texi: Update.
52116         * doc/functions/printf.texi: Update.
52117         * doc/functions/snprintf.texi: Update.
52118         * doc/functions/sprintf.texi: Update.
52119         * doc/functions/vfprintf.texi: Update.
52120         * doc/functions/vprintf.texi: Update.
52121         * doc/functions/vsnprintf.texi: Update.
52122         * doc/functions/vsprintf.texi: Update.
52123         Reported by Eric Blake.
52124
52125 2007-05-06  Bruno Haible  <bruno@clisp.org>
52126
52127         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
52128         padding ourselves for the floating-point directives.
52129         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
52130         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
52131         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52132         gl_PRINTF_FLAG_ZERO and test its result. Invoke
52133         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
52134         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52135         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
52136         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52137         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52138         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52139         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52140         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52141         * tests/test-snprintf-posix.h (test_function): Also check the width
52142         and some flags in the %f directive.
52143         * tests/test-sprintf-posix.h (test_function): Likewise.
52144         * tests/test-vasnprintf-posix.c (test_function): Likewise.
52145         * tests/test-vasprintf-posix.c (test_function): Likewise.
52146         * doc/functions/fprintf.texi: Update.
52147         * doc/functions/printf.texi: Update.
52148         * doc/functions/snprintf.texi: Update.
52149         * doc/functions/sprintf.texi: Update.
52150         * doc/functions/vfprintf.texi: Update.
52151         * doc/functions/vprintf.texi: Update.
52152         * doc/functions/vsnprintf.texi: Update.
52153         * doc/functions/vsprintf.texi: Update.
52154
52155 2007-05-06  Bruno Haible  <bruno@clisp.org>
52156
52157         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
52158         pass the ' flag character to sprintf or snprintf.
52159         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
52160         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
52161         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52162         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
52163         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
52164         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52165         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
52166         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52167         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52168         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52169         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52170         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52171         * tests/test-snprintf-posix.h (test_function): Also check the grouping
52172         flag.
52173         * tests/test-sprintf-posix.h (test_function): Likewise.
52174         * tests/test-vasnprintf-posix.c (test_function): Likewise.
52175         * tests/test-vasprintf-posix.c (test_function): Likewise.
52176         * doc/functions/fprintf.texi: Update.
52177         * doc/functions/printf.texi: Update.
52178         * doc/functions/snprintf.texi: Update.
52179         * doc/functions/sprintf.texi: Update.
52180         * doc/functions/vfprintf.texi: Update.
52181         * doc/functions/vprintf.texi: Update.
52182         * doc/functions/vsnprintf.texi: Update.
52183         * doc/functions/vsprintf.texi: Update.
52184
52185 2007-05-01  Bruno Haible  <bruno@clisp.org>
52186
52187         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
52188
52189 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
52190
52191         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
52192         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
52193
52194 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
52195
52196         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
52197         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
52198         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
52199
52200 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
52201
52202         * lib/argp-help.c (struct hol_entry): New member `ord'.
52203         (HOL_ENTRY_PTRCMP): Use ord for comparison
52204         (hol_sort): Initialize ord.
52205
52206 2007-05-01  Bruno Haible  <bruno@clisp.org>
52207
52208         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
52209         Reported by Eric Blake.
52210         * doc/gnulib.texi (Function Substitutes): Update.
52211
52212 2007-05-01  Bruno Haible  <bruno@clisp.org>
52213
52214         * doc/functions.texi: Remove file, now redundant through
52215         doc/functions/*.texi.
52216
52217 2007-05-01  Bruno Haible  <bruno@clisp.org>
52218
52219         * modules/argp (Depends-on): Add sleep.
52220
52221 2007-05-01  Bruno Haible  <bruno@clisp.org>
52222
52223         * modules/sleep-tests: New file.
52224         * tests/test-sleep.c: New file.
52225
52226         * modules/sleep: New file.
52227         * lib/sleep.c: New file.
52228         * m4/sleep.m4: New file.
52229         * lib/unistd_.h (sleep): New declaration.
52230         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
52231         HAVE_SLEEP.
52232         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
52233         * doc/functions/sleep.texi: Document the sleep module.
52234
52235 2007-05-01  Bruno Haible  <bruno@clisp.org>
52236
52237         * lib/sigprocmask.h: Remove file.
52238         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
52239         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
52240         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
52241         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
52242         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
52243         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
52244         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
52245         HAVE_SIGSET_T as a shell variable.
52246         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
52247         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
52248         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
52249         (Depends-on): Add signal. Remove verify.
52250         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
52251         (Include): Mention <signal.h> instead of sigprocmask.h.
52252         * NEWS: Mention the change.
52253         * lib/fatal-signal.c: Don't include sigprocmask.h.
52254
52255 2007-05-01  Bruno Haible  <bruno@clisp.org>
52256
52257         * modules/signal: New file.
52258         * lib/signal_.h: New file.
52259         * m4/signal_h.m4: New file.
52260
52261 2007-05-01  Bruno Haible  <bruno@clisp.org>
52262
52263         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
52264         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
52265         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
52266         HAVE_WCTYPE_CTMP_BUG into wctype.h.
52267
52268 2007-05-01  Bruno Haible  <bruno@clisp.org>
52269
52270         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
52271         configure time.
52272         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
52273         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
52274         * modules/sys_stat (Makefile.am): Substitute their values into
52275         sys/stat.h.
52276
52277 2007-05-01  Bruno Haible  <bruno@clisp.org>
52278
52279         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
52280         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
52281         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
52282
52283 2007-05-01  Bruno Haible  <bruno@clisp.org>
52284
52285         * doc/header/assert.texi: Undo last change: don't mention the gnulib
52286         'assert' module here.
52287
52288 2007-05-01  Bruno Haible  <bruno@clisp.org>
52289
52290         * doc/functions/*.texi: New files.
52291         * doc/functions/google-ranking.txt: New file.
52292         * doc/gnulib.texi (Function Substitutes): New chapter.
52293         (ctime, inet_ntoa): Remove sections.
52294         * doc/ctime.texi: Remove file.
52295         * doc/inet_ntoa.texi: Remove file.
52296         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
52297         dependencies.
52298         (%.info): New rule, specifying a --reference-limit.
52299
52300 2007-05-01  Bruno Haible  <bruno@clisp.org>
52301
52302         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
52303
52304 2007-05-01  Bruno Haible  <bruno@clisp.org>
52305
52306         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
52307         the portability of 'mkdir' to mingw systems.
52308
52309 2007-05-01  Bruno Haible  <bruno@clisp.org>
52310
52311         * doc/headers/google-ranking.txt: New file.
52312
52313 2007-04-30  Eric Blake  <ebb9@byu.net>
52314
52315         Prefer fseeko to fseek.
52316         * modules/getpass (Depends-on): Add fseeko.
52317         * lib/getpass.c (getpass): Use fseeko, not fseek.
52318
52319 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
52320
52321         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
52322         assumes the sorting is stable, while most qsort implementations
52323         are not.  Use argument addresses to ensure they never compare as
52324         equal.
52325
52326         * tests/test-argp-2.sh (usage-indent test): Fix output
52327         (func_compare): Restore diff options
52328         * tests/test-argp.c: Restore #include "progname.h"
52329
52330 2007-04-29  Bruno Haible  <bruno@clisp.org>
52331
52332         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
52333         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52334         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
52335         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52336         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
52337         (configure.ac): Define CHECK_SNPRINTF_POSIX.
52338         (TESTS, check_PROGRAMS): Add test-snprintf.
52339         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
52340         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
52341         (TESTS, check_PROGRAMS): Add test-vsnprintf.
52342         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
52343         assertions that fail on HP-UX, OSF/1, or IRIX.
52344         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
52345
52346 2007-04-29  Bruno Haible  <bruno@clisp.org>
52347
52348         * MODULES.html.sh (posix_functions): Remove 'contents'.
52349
52350 2007-04-29  Karl Berry  <karl@gnu.org>
52351
52352         * config/srclist.txt (gendocs_template_min): new entry.
52353
52354 2007-04-29  Bruno Haible  <bruno@clisp.org>
52355
52356         Work around fpurge bug on BSD systems.
52357         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
52358         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
52359         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
52360         fpurge to rpl_fpurge if the system already has this function.
52361         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
52362         the case where the system already has this function. Correct invariants
52363         on BSD systems.
52364         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
52365         BSD systems.
52366
52367 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
52368
52369         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
52370         proposed by Sven Verdoolaege.
52371
52372         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
52373         options.
52374         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
52375         (usage and help tests): Update
52376
52377 2007-04-29  Bruno Haible  <bruno@clisp.org>
52378
52379         * tests/test-fflush.c (main): Use a file of size 17, not 10.
52380         Print more information in case of failure. Disable a test on BeOS.
52381
52382 2007-04-29  Bruno Haible  <bruno@clisp.org>
52383
52384         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
52385         This helps debugging on systems on which no gdb is available.
52386
52387 2007-04-29  Bruno Haible  <bruno@clisp.org>
52388
52389         * lib/freading.h: Improve comments.
52390         * lib/fwriting.h: Likewise.
52391         * tests/test-freading.c (main): Don't check freading immediately after
52392         repositioning. Needed for glibc.
52393
52394 2007-04-29  Bruno Haible  <bruno@clisp.org>
52395
52396         * lib/freading.c (freading): Trivial simplification.
52397
52398 2007-04-28  Bruno Haible  <bruno@clisp.org>
52399
52400         * tests/test-fwriting.c (main): Also test the interaction between
52401         fflush and fwriting.
52402         * modules/fwriting-tests (Depends-on): Add fflush.
52403
52404         * tests/test-freading.c (main): Also test the interaction between
52405         fflush and freading.
52406         * modules/freading-tests (Depends-on): Add fflush.
52407
52408 2007-04-28  Bruno Haible  <bruno@clisp.org>
52409
52410         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
52411         fseeko and ftello.
52412         Suggested by Eric Blake.
52413
52414 2007-04-28  Jim Meyering  <jim@meyering.net>
52415
52416         Avoid false-negative in gl_STDINT_H's C99 conformance test.
52417         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
52418         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
52419
52420 2007-04-27  Eric Blake  <ebb9@byu.net>
52421
52422         * doc/headers/assert.texi (assert.h): Document assert module use.
52423
52424 2007-04-27  Bruno Haible  <bruno@clisp.org>
52425
52426         * doc/headers/*.texi: New files.
52427         * doc/gnulib.texi (Header File Substitutes): New chapter.
52428         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
52429         dependencies.
52430         (standards.info ,standards.html, standards.dvi): Update dependencies.
52431         (mostlyclean, clean): New targets.
52432
52433 2007-04-27  Bruno Haible  <bruno@clisp.org>
52434
52435         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
52436         * modules/sysexits (Files, Makefile.am): Update.
52437
52438         * lib/sys_socket_.h: Renamed from lib/socket_.h.
52439         * modules/sys_socket (Files, Makefile.am): Update.
52440
52441         * lib/sys_stat_.h: Renamed from lib/stat_.h.
52442         * modules/sys_stat (Files, Makefile.am): Update.
52443
52444 2007-04-27  Eric Blake  <ebb9@byu.net>
52445
52446         * lib/freading.h: Improve comments.
52447         * lib/fwriting.h: Likewise.
52448         * lib/fflush.c: Likewise.
52449
52450         Fix closein for mingw.
52451         * modules/closein-tests: Add tests for closein.
52452         * tests/test-closein.c: New file.
52453         * tests/test-closein.sh: Likewise.
52454         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
52455         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
52456
52457 2007-04-27  Bruno Haible  <bruno@clisp.org>
52458
52459         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
52460         version is < 6.
52461         * lib/math_.h [__DECC]: Likewise.
52462         * lib/stdio_.h [__DECC]: Likewise.
52463         * lib/stdlib_.h [__DECC]: Likewise.
52464         * lib/string_.h [__DECC]: Likewise.
52465         * lib/time_.h [__DECC]: Likewise.
52466         * lib/wchar_.h [__DECC]: Likewise.
52467         * lib/wctype_.h [__DECC]: Likewise.
52468
52469 2007-04-27  Bruno Haible  <bruno@clisp.org>
52470
52471         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
52472
52473 2007-04-27  Bruno Haible  <bruno@clisp.org>
52474
52475         * lib/fflush.c: Add comments.
52476         * modules/fpurge-tests (Depends-on): Add fflush.
52477         * modules/freadable-tests (Depends-on): Likewise.
52478         * modules/fwritable-tests (Depends-on): Likewise.
52479
52480 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
52481
52482         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
52483         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
52484         Report by Bruno Haible <bruno@clisp.org>.
52485
52486 2007-04-26  Eric Blake  <ebb9@byu.net>
52487
52488         Fix fflush on mingw.
52489         * modules/fflush (Depends-on): Add freading.
52490         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
52491         but unread data.
52492
52493 2007-04-26  Eric Blake  <ebb9@byu.net>
52494         and Bruno Haible  <bruno@clisp.org>
52495
52496         Implement freading and fwriting.
52497         * lib/freading.c: New file.
52498         * lib/freading.h: Likewise.
52499         * m4/freading.m4: Likewise.
52500         * modules/freading: Likewise.
52501         * modules/freading-tests: Likewise.
52502         * tests/test-freading.c: Likewise.
52503         * lib/fwriting.c: New file.
52504         * lib/fwriting.h: Likewise.
52505         * m4/fwriting.m4: Likewise.
52506         * modules/fwriting: Likewise.
52507         * modules/fwriting-tests: Likewise.
52508         * tests/test-fwriting.c: Likewise.
52509         * MODULES.html.sh (File stream based Input/Output): Mention them.
52510
52511 2007-04-26  Bruno Haible  <bruno@clisp.org>
52512
52513         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
52514         'long' when we assume it.
52515         Suggested by Eric Blake.
52516
52517 2007-04-26  Bruno Haible  <bruno@clisp.org>
52518
52519         Ensure fseeko, ftello are declared on glibc systems.
52520         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
52521         * modules/fseeko (configure.ac-early): Likewise.
52522         * modules/ftello (configure.ac-early): Likewise.
52523         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
52524         AC_FUNC_FSEEKO for this.
52525         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
52526         (gl_CHECK_FSEEKO): Remove macro.
52527
52528 2007-04-26  Bruno Haible  <bruno@clisp.org>
52529
52530         * tests/test-fflush.c (main): Also check the ftell result after
52531         fflush and fseek/fseeko.
52532         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
52533         file descriptor position cache in the stream.
52534         * lib/fseeko.c (rpl_fseeko): Likewise.
52535
52536 2007-04-26  Bruno Haible  <bruno@clisp.org>
52537
52538         * modules/fflush-tests (Depends-on): Add fseeko.
52539
52540 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
52541             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52542
52543         * lib/argz_.h: ensure error_t definition is obtained in same
52544         mechanism system argz.h would have.
52545         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
52546         argz facilities are known bad.  Err on the side of caution if
52547         cross-compiling.
52548
52549 2007-04-25  Eric Blake  <ebb9@byu.net>
52550
52551         * lib/fpurge.c (includes): Use stdlib.h for free.
52552         * tests/test-fflush.c (main): Also test fflush-fseeko.
52553
52554 2007-04-25  Bruno Haible  <bruno@clisp.org>
52555
52556         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
52557         * lib/fseeko.c: New file.
52558         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
52559         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
52560         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
52561         gl_FUNC_FSEEKO.
52562         (gl_FUNC_FSEEKO): Invoke it.
52563         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
52564         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
52565         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
52566
52567 2007-04-25  Bruno Haible  <bruno@clisp.org>
52568
52569         * modules/fflush (Depends-on): Add ftello.
52570
52571 2007-04-25  Bruno Haible  <bruno@clisp.org>
52572
52573         * modules/ftello-tests: New file.
52574         * tests/test-ftello.c: New file.
52575
52576         * modules/ftello: New file.
52577         * m4/ftello.m4: New file.
52578         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
52579         HAVE_FTELLO.
52580         * lib/stdio_.h (ftello): New declaration.
52581         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
52582         HAVE_FTELLO.
52583
52584 2007-04-25  Bruno Haible  <bruno@clisp.org>
52585
52586         * modules/fseeko-tests: New file.
52587         * tests/test-fseeko.c: New file.
52588
52589         * modules/fseeko: New file.
52590         * m4/fseeko.m4: New file.
52591         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
52592         HAVE_FSEEKO.
52593         * lib/stdio_.h (fseeko): New declaration.
52594         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
52595         HAVE_FSEEKO.
52596
52597 2007-04-25  Bruno Haible  <bruno@clisp.org>
52598
52599         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
52600
52601 2007-04-25  Bruno Haible  <bruno@clisp.org>
52602
52603         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
52604         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
52605         * tests/test-unistd.c: Likewise.
52606         * tests/test-fcntl.c: Likewise.
52607
52608 2007-04-23  Eric Blake  <ebb9@byu.net>
52609
52610         * lib/fflush.c: Fix missing include.
52611         Reported by Bruno Haible.
52612
52613 2007-04-23  Bruno Haible  <bruno@clisp.org>
52614
52615         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
52616         Reported by Eric Blake.
52617
52618 2007-04-23  Bruno Haible  <bruno@clisp.org>
52619
52620         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
52621
52622 2007-04-23  Bruno Haible  <bruno@clisp.org>
52623
52624         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
52625
52626 2007-04-23  Bruno Haible  <bruno@clisp.org>
52627
52628         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
52629         Needed on HP-UX 11.
52630
52631 2007-04-16  Eric Blake  <ebb9@byu.net>
52632
52633         Make fflush rely on fpurge.
52634         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
52635         open coding all variants.
52636         * modules/fflush (Depends-on): Add fpurge and unistd.
52637         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
52638         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
52639
52640         Fix --with-tests compilation on cygwin.
52641         * modules/argmatch-tests (Makefile.am): List gnulib library first
52642         in LDADD.
52643         * modules/argp-tests (Makefile.am): Likewise.
52644         * modules/array-list-tests (Makefile.am): Likewise.
52645         * modules/array-oset-tests (Makefile.am): Likewise.
52646         * modules/avltree-list-tests (Makefile.am): Likewise.
52647         * modules/avltree-oset-tests (Makefile.am): Likewise.
52648         * modules/avltreehash-list-tests (Makefile.am): Likewise.
52649         * modules/carray-list-tests (Makefile.am): Likewise.
52650         * modules/dirname-tests (Makefile.am): Likewise.
52651         * modules/frexp-tests (Makefile.am): Likewise.
52652         * modules/isnanl-tests (Makefile.am): Likewise.
52653         * modules/linked-list-tests (Makefile.am): Likewise.
52654         * modules/linkedhash-list-tests (Makefile.am): Likewise.
52655         * modules/lock-tests (Makefile.am): Likewise.
52656         * modules/rbtree-list-tests (Makefile.am): Likewise.
52657         * modules/rbtree-oset-tests (Makefile.am): Likewise.
52658         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
52659         * modules/tls-tests (Makefile.am): Likewise.
52660         * modules/tsearch-tests (Makefile.am): Likewise.
52661         * modules/xvasprintf-tests (Makefile.am): Likewise.
52662
52663         Fix fpurge for cygwin.
52664         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
52665         value.
52666         * modules/fpurge-tests (Depends-on): Clean up trash.
52667
52668 2007-04-16  Simon Josefsson  <simon@josefsson.org>
52669
52670         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
52671
52672         * m4/autobuild.m4: Re-indent.
52673
52674 2007-04-13  Bruno Haible  <bruno@clisp.org>
52675
52676         * modules/fpurge-tests: New file.
52677         * tests/test-fpurge.c: New file.
52678
52679         * modules/fpurge: New file.
52680         * lib/fpurge.h: New file.
52681         * lib/fpurge.c: New file.
52682         * m4/fpurge.m4: New file.
52683
52684 2007-04-13  Bruno Haible  <bruno@clisp.org>
52685
52686         * modules/fbufmode-tests: New file.
52687         * tests/test-fbufmode.c: New file.
52688
52689         * modules/fbufmode: New file.
52690         * lib/fbufmode.h: New file.
52691         * lib/fbufmode.c: New file.
52692         * m4/fbufmode.m4: New file.
52693
52694 2007-04-13  Bruno Haible  <bruno@clisp.org>
52695
52696         * modules/fwritable-tests: New file.
52697         * tests/test-fwritable.c: New file.
52698
52699         * modules/fwritable: New file.
52700         * lib/fwritable.h: New file.
52701         * lib/fwritable.c: New file.
52702         * m4/fwritable.m4: New file.
52703
52704 2007-04-13  Bruno Haible  <bruno@clisp.org>
52705
52706         * modules/freadable-tests: New file.
52707         * tests/test-freadable.c: New file.
52708
52709         * modules/freadable: New file.
52710         * lib/freadable.h: New file.
52711         * lib/freadable.c: New file.
52712         * m4/freadable.m4: New file.
52713
52714 2007-04-13  Bruno Haible  <bruno@clisp.org>
52715
52716         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
52717         MOSTLYCLEANFILES.
52718
52719 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
52720
52721         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
52722         gzip bootstrap.conf to avoid dragging in i18n machinery.
52723         (gnulib_tool_option): Use it.
52724
52725 2007-04-13  Bruno Haible  <bruno@clisp.org>
52726
52727         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
52728         %F directives.
52729         * tests/test-vasprintf-posix.c (test_function): Likewise.
52730         * tests/test-snprintf-posix.h (test_function): Likewise.
52731         * tests/test-sprintf-posix.h (test_function): Likewise.
52732         * tests/test-fprintf-posix.h (test_function): Likewise.
52733         * tests/test-printf-posix.h (test_function): Likewise.
52734         * tests/test-fprintf-posix.out: Likewise.
52735
52736 2007-04-13  Bruno Haible  <bruno@clisp.org>
52737
52738         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
52739         * modules/tls-tests (configure.ac): Likewise.
52740         Reported by Arto C. Nirkko <anirkko@insel.ch>.
52741
52742 2007-04-13  Bruno Haible  <bruno@clisp.org>
52743
52744         * lib/tls.c (glthread_tls_get): Fix return type.
52745         Patch by Arto C. Nirkko <anirkko@insel.ch>.
52746
52747 2007-04-12  Eric Blake  <ebb9@byu.net>
52748
52749         * modules/gettime (Depends-on): Remove gettime.
52750         Reported by Dmitry V. Levin.
52751
52752 2007-04-12  Bruno Haible  <bruno@clisp.org>
52753
52754         * modules/fflush (Include): Mention <stdio.h>.
52755         * modules/strtoimax (Include): Mention <inttypes.h>.
52756         * modules/strtoumax (Include): Likewise.
52757
52758 2007-04-12  Eric Blake  <ebb9@byu.net>
52759
52760         * .cvsignore: New file.
52761         * .gitignore: Likewise.
52762
52763 2007-04-12  Bruno Haible  <bruno@clisp.org>
52764
52765         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
52766         not before, since $(LDADD) often contains libgnu.a.
52767         * modules/striconv-tests (test_striconv_LDADD): Likewise.
52768         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
52769         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
52770         Needed on Cygwin.
52771
52772 2007-04-12  Eric Blake  <ebb9@byu.net>
52773
52774         Work around glibc's failure to flush stdin on fclose.
52775         * lib/closein.c (close_stdin): Flush stdin before closing.
52776
52777         Work around glibc's failure to reset seekable stdin on exit.
52778         * modules/closein: New module.
52779         * lib/closein.c: New file.
52780         * lib/closein.h: Likewise.
52781         * m4/closein.m4: Likewise.
52782         * MODULES.html.sh (File stream based Input/Output): Document it.
52783
52784 2007-04-12  Simon Josefsson  <simon@josefsson.org>
52785
52786         * gnulib-tool: Rename generated 'autobuild' script to
52787         'do-autobuild' in --create-megatestdir output.
52788
52789         * doc/gnulib.texi (Build robot for gnulib): Fix.
52790
52791 2007-04-12  Simon Josefsson  <simon@josefsson.org>
52792
52793         * modules/sysexits (Depends-on): Add absolute-header.
52794
52795 2007-04-12  Eric Blake  <ebb9@byu.net>
52796
52797         No need to preserve errno on success.
52798         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
52799         Reported by Bruno Haible.
52800
52801 2007-04-12  Simon Josefsson  <simon@josefsson.org>
52802
52803         * MODULES.html.sh (Support for maintaining and releasing
52804         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
52805
52806 2007-04-12  Simon Josefsson  <simon@josefsson.org>
52807
52808         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
52809
52810 2007-04-12  Simon Josefsson  <simon@josefsson.org>
52811
52812         * modules/autobuild: New module.
52813
52814         * m4/autobuild.m4: New file.
52815
52816 2007-04-11  Bruno Haible  <bruno@clisp.org>
52817
52818         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
52819         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
52820         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
52821         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
52822         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52823         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52824         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52825         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52826         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52827         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52828         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
52829         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52830         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52831         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
52832         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52833         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52834         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
52835         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52836         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52837         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
52838         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52839         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52840         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
52841         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52842         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52843         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
52844         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52845         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52846         Reported by Eric Blake.
52847
52848 2007-04-11  Bruno Haible  <bruno@clisp.org>
52849
52850         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
52851
52852 2007-04-10  Bruno Haible  <bruno@clisp.org>
52853
52854         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
52855         for NaN and Infinity. Needed on FreeBSD 6.1.
52856         * tests/test-vasnprintf-posix.c (test_function): Undo last change
52857         regarding results for "%010a" of Infinity and NaN.
52858         * tests/test-vasprintf-posix.c (test_function): Likewise.
52859         * tests/test-snprintf-posix.h (test_function): Likewise.
52860         * tests/test-sprintf-posix.h (test_function): Likewise.
52861         * tests/test-fprintf-posix.h (test_function): Likewise.
52862         * tests/test-printf-posix.h (test_function): Likewise.
52863         * tests/test-fprintf-posix.out: Likewise.
52864
52865 2007-04-10  Bruno Haible  <bruno@clisp.org>
52866
52867         * modules/locale-tests: New file.
52868         * tests/test-locale.c: New file.
52869
52870         * modules/locale: New file.
52871         * lib/locale_.h: New file.
52872         * m4/locale_h.m4: New file.
52873
52874 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
52875             Bruno Haible  <bruno@clisp.org>
52876
52877         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
52878         be determined, test for availability of the copysignf, copysign,
52879         copysignl functions.
52880         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
52881         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
52882         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
52883
52884 2007-04-09  Eric Blake  <ebb9@byu.net>
52885
52886         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
52887         * modules/stdio (Makefile.am): Support fflush.
52888         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
52889         * modules/fflush: New file.
52890         * lib/fflush.c: Likewise.
52891         * m4/fflush.m4: Likewise.
52892         * modules/fflush-tests: New test.
52893         * tests/test-fflush.c: Likewise.
52894         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
52895
52896 2007-04-06  Bruno Haible  <bruno@clisp.org>
52897
52898         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
52899         (VASNPRINTF): Use signbit for faster determination whether to print a
52900         minus sign.
52901         * modules/vasnprintf (Files): Remove lib/float+.h.
52902         * modules/fprintf-posix (Depends-on): Add signbit.
52903         * modules/snprintf-posix (Depends-on): Likewise.
52904         * modules/sprintf-posix (Depends-on): Likewise.
52905         * modules/vasnprintf-posix (Depends-on): Likewise.
52906         * modules/vasprintf-posix (Depends-on): Likewise.
52907         * modules/vfprintf-posix (Depends-on): Likewise.
52908         * modules/vsnprintf-posix (Depends-on): Likewise.
52909         * modules/vsprintf-posix (Depends-on): Likewise.
52910
52911 2007-04-06  Bruno Haible  <bruno@clisp.org>
52912
52913         * tests/test-frexp.c (main): Test also the sign bit of zero results.
52914         * tests/test-frexpl.c (main): Likewise.
52915         * tests/test-ldexpl.c (main): Likewise.
52916         * modules/frexp-tests (Depends-on): Add signbit.
52917         * modules/frexpl-tests (Depdends-on): Likewise.
52918         * modules/ldexpl-tests (Depdends-on): Likewise.
52919
52920 2007-04-06  Bruno Haible  <bruno@clisp.org>
52921
52922         * modules/signbit-tests: New file.
52923         * tests/test-signbit.c: New file.
52924
52925         * modules/signbit: New file.
52926         * lib/signbitf.c: New file.
52927         * lib/signbitd.c: New file.
52928         * lib/signbitl.c: New file.
52929         * m4/signbit.m4: New file.
52930         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
52931         (signbit): New macro.
52932         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
52933         REPLACE_SIGNBIT.
52934         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
52935         REPLACE_FREXPL into math.h.
52936
52937 2007-04-06  Bruno Haible  <bruno@clisp.org>
52938
52939         * modules/isnanf-nolibm-tests: New file.
52940         * tests/test-isnanf.c: New file.
52941
52942         * modules/isnanf-nolibm: New file.
52943         * lib/isnanf.h: New file.
52944         * lib/isnanf.c: New file.
52945         * lib/isnan.c: Consider the USE_FLOAT macro.
52946         * m4/isnanf.m4: New file.
52947
52948 2007-04-06  Bruno Haible  <bruno@clisp.org>
52949
52950         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
52951         (Link): New section.
52952
52953         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
52954
52955 2007-04-06  Bruno Haible  <bruno@clisp.org>
52956
52957         Assume the 'long double' type.
52958         * m4/longdouble.m4: Remove file.
52959         * config/srclist.txt: Don't mention longdouble.m4.
52960         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
52961         * lib/float+.h: Likewise.
52962         * lib/frexp.c: Likewise.
52963         * lib/printf-args.h: Likewise.
52964         * lib/printf-args.c: Likewise.
52965         * lib/printf-frexp.c: Likewise.
52966         * lib/printf-parse.c: Likewise.
52967         * lib/vasnprintf.c: Likewise.
52968         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
52969         * m4/intl.m4: Likewise.
52970         * m4/isnanl.m4: Likewise.
52971         * m4/printf.m4: Likewise.
52972         * m4/printf-frexpl.m4: Likewise.
52973         * m4/vasnprintf.m4: Likewise.
52974         * modules/allocsa (Files): Remove m4/longdouble.m4.
52975         * modules/gettext (Files): Likewise.
52976         * modules/relocatable-prog-wrapper (Files): Likewise.
52977         * modules/vasnprintf (Files): Likewise.
52978         * modules/isnanl (Files): Likewise.
52979         (Include): Simplify.
52980         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
52981         (Include): Simplify.
52982         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
52983         (Include): Simplify.
52984         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
52985         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52986         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
52987         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52988         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
52989         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52990         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
52991         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52992         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
52993         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52994         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
52995         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52996         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
52997         * tests/test-isnanl.c: Likewise.
52998         * tests/test-snprintf-posix.h: Likewise.
52999         * tests/test-sprintf-posix.h: Likewise.
53000         * tests/test-vasnprintf-posix.c: Likewise.
53001         * tests/test-vasnprintf-posix2.c: Likewise.
53002         * tests/test-vasprintf-posix.c: Likewise.
53003
53004 2007-04-06  Bruno Haible  <bruno@clisp.org>
53005
53006         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
53007         * lib/math_.h [__DECC]: Include the overridden include file through
53008         #include_next, outside the double-inclusion guard.
53009         * lib/stdio_.h [__DECC]: Likewise.
53010         * lib/stdlib_.h [__DECC]: Likewise.
53011         * lib/string_.h [__DECC]: Likewise.
53012         * lib/time_.h [__DECC]: Likewise.
53013         * lib/wchar_.h [__DECC]: Likewise.
53014         * lib/wctype_.h [__DECC]: Likewise.
53015         * lib/inttypes_.h [__DECC]: Likewise.
53016         Reported by Albert Chin <china@thewrittenword.com> in
53017         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
53018
53019 2007-04-04  Eric Blake  <ebb9@byu.net>
53020
53021         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
53022         1.5.x.
53023
53024 2007-04-04  Bruno Haible  <bruno@clisp.org>
53025
53026         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
53027         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
53028
53029 2007-04-04  Bruno Haible  <bruno@clisp.org>
53030
53031         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
53032         results for "%010a" of Infinity and NaN.
53033         * tests/test-vasprintf-posix.c (test_function): Likewise.
53034         * tests/test-snprintf-posix.h (test_function): Likewise.
53035         * tests/test-sprintf-posix.h (test_function): Likewise.
53036         * tests/test-fprintf-posix.h (test_function): Remove these tests.
53037         * tests/test-printf-posix.h (test_function): Likewise.
53038         * tests/test-fprintf-posix.out: Update.
53039         Needed for FreeBSD 6.1.
53040
53041 2007-04-04  Bruno Haible  <bruno@clisp.org>
53042
53043         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
53044         directly used by the gnulib modules nor by gnulib-tool.
53045
53046 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
53047
53048         * DEPENDENCIES: Give overall description of version dependency
53049         desirability.  Use more-typical names for apps.
53050         Add shell, coreutils, diffutils, grep, tar, gzip.
53051
53052 2007-04-04  Simon Josefsson  <simon@josefsson.org>
53053
53054         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
53055
53056 2007-04-04  Karl Berry  <karl@gnu.org>
53057
53058         * MODULES.html.sh (func_module): missing '.
53059
53060 2007-04-03  Bruno Haible  <bruno@clisp.org>
53061
53062         * modules/argmatch-tests (Makefile.am): New variable
53063         test_argmatch_LDADD.
53064         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
53065         * modules/array-list-tests (Makefile.am): New variable
53066         test_array_list_LDADD.
53067         * modules/array-oset-tests (Makefile.am): New variable
53068         test_array_oset_LDADD.
53069         * modules/avltree-list-tests (Makefile.am): New variable
53070         test_avltree_list_LDADD.
53071         * modules/avltree-oset-tests (Makefile.am): New variable
53072         test_avltree_oset_LDADD.
53073         * modules/avltreehash-list-tests (Makefile.am): New variable
53074         test_avltreehash_list_LDADD.
53075         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
53076         test_canonicalize_lgpl_LDADD.
53077         * modules/carray-list-tests (Makefile.am): New variable
53078         test_carray_list_LDADD.
53079         * modules/dirname-tests (Makefile.am): New variable
53080         test_dirname_LDADD.
53081         * modules/linked-list-tests (Makefile.am): New variable
53082         test_linked_list_LDADD.
53083         * modules/linkedhash-list-tests (Makefile.am): New variable
53084         test_linkedhash_list_LDADD.
53085         * modules/rbtree-list-tests (Makefile.am): New variable
53086         test_rbtree_list_LDADD.
53087         * modules/rbtree-oset-tests (Makefile.am): New variable
53088         test_rbtree_oset_LDADD.
53089         * modules/rbtreehash-list-tests (Makefile.am): New variable
53090         test_rbtreehash_list_LDADD.
53091         * modules/xvasprintf-tests (Makefile.am): New variable
53092         test_xvasprintf_LDADD.
53093         Reported by Eric Blake.
53094
53095 2007-04-03  Eric Blake  <ebb9@byu.net>
53096
53097         * DEPENDENCIES: Weaken m4 requirements.
53098
53099 2007-04-03  Bruno Haible  <bruno@clisp.org>
53100
53101         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
53102         * modules/isnanl-tests (configure.ac): Likewise.
53103
53104 2007-04-03  Ben Pfaff  <blp@gnu.org>
53105
53106         * modules/iconv_open: Add $(srcdir)/ to source directory
53107         references in Makefile fragments that call gperf, to fix VPATH
53108         builds.
53109
53110 2007-04-03  Bruno Haible  <bruno@clisp.org>
53111
53112         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
53113         * lib/ldexpl.c: Undo last change.
53114
53115 2007-04-03  Bruno Haible  <bruno@clisp.org>
53116
53117         * modules/printf-frexpl (Depends-on): Undo last change.
53118         (Files): Add m4/ldexpl.m4.
53119
53120 2007-04-03  Bruno Haible  <bruno@clisp.org>
53121
53122         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
53123         * modules/isnanl (Link): New section.
53124
53125         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
53126         * modules/frexp (Link): New section.
53127
53128         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
53129         * modules/frexpl (Link): New section.
53130
53131         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
53132         * modules/ldexpl (Link): New section.
53133
53134 2007-04-03  Bruno Haible  <bruno@clisp.org>
53135
53136         * modules/TEMPLATE-EXTENDED: New file.
53137         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
53138
53139 2007-04-03  Bruno Haible  <bruno@clisp.org>
53140
53141         * DEPENDENCIES: New file.
53142         Suggested by Simon Josefsson.
53143
53144 2007-04-03  Bruno Haible  <bruno@clisp.org>
53145
53146         * doc/gnulib.texi: Escape @.
53147
53148 2007-04-03  James Youngman  <jay@gnu.org>
53149         and Paul Eggert  <eggert@cs.ucla.edu>
53150
53151         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
53152         birthtime on all systems that have birthtime, not just those which
53153         use st_birthtimensec rather than st_birthtim.  Putting zero in
53154         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
53155         that the birth time is not available for files on an NFS mount.
53156
53157 2007-04-03  Simon Josefsson  <simon@josefsson.org>
53158
53159         * modules/memxor: Move back from crypto/, suggested by Bruno.
53160         * modules/crypto/hmac-sha1: Fix memxor dependency.
53161
53162         * modules/crypto/gc: Moved from ../.
53163
53164 2007-04-02  Eric Blake  <ebb9@byu.net>
53165
53166         * lib/ldexpl.c (includes): Avoid libm.
53167
53168         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
53169
53170 2007-04-02  Bruno Haible  <bruno@clisp.org>
53171
53172         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
53173         on IRIX.
53174
53175 2007-04-02  Bruno Haible  <bruno@clisp.org>
53176
53177         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
53178         x86 or x86_64 platforms running MacOS X.
53179         Reported by Ryan Schmidt <@ryandesign.com>.
53180
53181 2007-04-02  Bruno Haible  <bruno@clisp.org>
53182
53183         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
53184         i386.
53185
53186 2007-04-01  Simon Josefsson  <simon@josefsson.org>
53187
53188         * modules/crypto/arcfour: Moved from ../.
53189         * modules/crypto/arcfour-tests: Moved from ../.
53190         * modules/crypto/arctwo: Moved from ../.
53191         * modules/crypto/arctwo-tests: Moved from ../.
53192         * modules/crypto/des: Moved from ../.
53193         * modules/crypto/des-tests: Moved from ../.
53194         * modules/crypto/gc-arcfour: Moved from ../.
53195         * modules/crypto/gc-arcfour-tests: Moved from ../.
53196         * modules/crypto/gc-arctwo: Moved from ../.
53197         * modules/crypto/gc-arctwo-tests: Moved from ../.
53198         * modules/crypto/gc-des: Moved from ../.
53199         * modules/crypto/gc-des-tests: Moved from ../.
53200         * modules/crypto/gc-hmac-md5: Moved from ../.
53201         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
53202         * modules/crypto/gc-hmac-sha1: Moved from ../.
53203         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
53204         * modules/crypto/gc-md2: Moved from ../.
53205         * modules/crypto/gc-md2-tests: Moved from ../.
53206         * modules/crypto/gc-md4: Moved from ../.
53207         * modules/crypto/gc-md4-tests: Moved from ../.
53208         * modules/crypto/gc-md5: Moved from ../.
53209         * modules/crypto/gc-md5-tests: Moved from ../.
53210         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
53211         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
53212         * modules/crypto/gc-random: Moved from ../.
53213         * modules/crypto/gc-rijndael: Moved from ../.
53214         * modules/crypto/gc-rijndael-tests: Moved from ../.
53215         * modules/crypto/gc-sha1: Moved from ../.
53216         * modules/crypto/gc-sha1-tests: Moved from ../.
53217         * modules/crypto/gc-tests: Moved from ../.
53218         * modules/crypto/hmac-md5: Moved from ../.
53219         * modules/crypto/hmac-md5-tests: Moved from ../.
53220         * modules/crypto/hmac-sha1: Moved from ../.
53221         * modules/crypto/hmac-sha1-tests: Moved from ../.
53222         * modules/crypto/md2: Moved from ../.
53223         * modules/crypto/md2-tests: Moved from ../.
53224         * modules/crypto/md4: Moved from ../.
53225         * modules/crypto/md4-tests: Moved from ../.
53226         * modules/crypto/md5: Moved from ../.
53227         * modules/crypto/md5-tests: Moved from ../.
53228         * modules/crypto/memxor: Moved from ../.
53229         * modules/crypto/rijndael: Moved from ../.
53230         * modules/crypto/rijndael-tests: Moved from ../.
53231         * modules/crypto/sha1: Moved from ../.
53232
53233 2007-03-30  James Youngman  <jay@gnu.org>
53234
53235         * tests/test-stat-time.c (prepare_test): use chmod() rather than
53236         rename() to change the ctime of a file (because ctime is unaffected
53237         by rename on jfs2 on AIX 5.1).
53238         (main): Start by doing cleanup, in case a previous run failed leaving
53239         test files behind.
53240
53241 2007-03-31  Bruno Haible  <bruno@clisp.org>
53242
53243         Support old proprietary implementations of iconv.
53244         * modules/iconv_open: New file.
53245         * lib/iconv_.h: New file.
53246         * m4/iconv_h.m4: New file.
53247         * lib/iconv_open.c: New file.
53248         * lib/iconv_open-aix.gperf: New file.
53249         * lib/iconv_open-hpux.gperf: New file.
53250         * lib/iconv_open-irix.gperf: New file.
53251         * lib/iconv_open-osf.gperf: New file.
53252         * m4/iconv_open.m4: New file.
53253         * modules/linebreak (Depends-on): Add iconv_open.
53254         * modules/striconv (Depends-on): Likewise.
53255         * modules/striconveh (Depends-on): Likewise.
53256         * modules/unicodeio (Depends-on): Likewise.
53257         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
53258         (iconv_t)(-1).
53259         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
53260         conversion if cd is (iconv_t)(-1).
53261         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
53262         is not possible.
53263
53264 2007-03-31  Bruno Haible  <bruno@clisp.org>
53265
53266         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
53267         work on Solaris either. Protect also second use of "autodetect_jp".
53268
53269 2007-03-31  Bruno Haible  <bruno@clisp.org>
53270
53271         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
53272         the function is not present.
53273
53274 2007-03-31  Bruno Haible  <bruno@clisp.org>
53275
53276         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
53277         the function is not present.
53278
53279 2007-03-31  Bruno Haible  <bruno@clisp.org>
53280
53281         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
53282         a bug in HP-UX iconv_open().
53283
53284 2007-03-31  Bruno Haible  <bruno@clisp.org>
53285
53286         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
53287         (Mathematics <math.h>): New section, add fpieee.
53288         (Input/output <stdio.h>): Add fseterr.
53289         (Mathematics <math.h>): New section, add printf-frexp.
53290         (Container data structures): Add sublist.
53291         (Core language properties): Add fpucw, inline.
53292         (Functions for greatest-width integer types <inttypes.h>): Add
53293         imaxabs, imaxdiv, inttypes.
53294         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
53295         isnanl-nolibm, ldexp.
53296         (Mathematics <math.h>): New section, add printf-frexpl.
53297         (Support for systems lacking POSIX:2001): Add fprintf-posix,
53298         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
53299         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
53300         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
53301         (Unicode string functions): Add unistr/u*-mbtoucr.
53302         (Java): Add javacomp-script, javaexec-script.
53303         (C#): Add csharpcomp-script, csharpexec-script.
53304         (Support for building libraries and executables): Add havelib,
53305         relocatable-*.
53306         (Support for maintaining and releasing projects): Renamed from
53307         'Support for maintaining and release projects'. Add announce-gen.
53308
53309 2007-03-31  Bruno Haible  <bruno@clisp.org>
53310
53311         * README: Talk primarily about git.
53312         (git and CVS): Renamed from CVS.
53313         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
53314         gnulib is available through git.
53315         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
53316
53317 2007-03-30  Bruno Haible  <bruno@clisp.org>
53318
53319         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
53320         * lib/poll_.h: Likewise.
53321         * lib/stat_.h: Likewise.
53322         * lib/sys_time_.h: Likewise.
53323         * lib/sysexit_.h: Likewise.
53324         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
53325         * lib/stdbool_.h: Likewise.
53326         * lib/byteswap_.h: Add double-inclusion guard.
53327
53328 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
53329
53330         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
53331
53332 2007-03-30  Karl Berry  <karl@gnu.org>
53333
53334         * config/srclist-update: double space after USA in the license
53335         substitution, since that's how it's usually (?) written.
53336
53337 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
53338
53339         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
53340         reported by Bruno Haible.
53341
53342 2007-03-29  Bruno Haible  <bruno@clisp.org>
53343
53344         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
53345         a bug in AIX iconv().
53346
53347 2007-03-29  Bruno Haible  <bruno@clisp.org>
53348
53349         * modules/ldexpl-tests: New file.
53350         * tests/test-ldexpl.c: New file.
53351
53352 2007-03-29  Bruno Haible  <bruno@clisp.org>
53353
53354         * lib/ldexpl.c: Include fpucw.h.
53355         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
53356         multiplication.
53357         * modules/ldexpl (Depends-on): Add fpucw.
53358
53359 2007-03-29  Bruno Haible  <bruno@clisp.org>
53360
53361         * modules/ldexpl: New file.
53362         * m4/ldexpl.m4: New file.
53363         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
53364         set.
53365         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
53366         REPLACE_LDEXPL.
53367         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
53368         REPLACE_LDEXPL.
53369         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
53370         gl_FUNC_LDEXPL_WORKS.
53371         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
53372         * modules/mathl (Files): Remove lib/ldexpl.c.
53373         (Depends-on): Add ldexpl.
53374
53375 2007-03-29  Bruno Haible  <bruno@clisp.org>
53376
53377         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
53378
53379 2007-03-29  Bruno Haible  <bruno@clisp.org>
53380
53381         * tests/test-striconveh.c (main): Don't assume that a direct conversion
53382         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
53383         and possibly also HP-UX.
53384         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
53385         work on AIX, IRIX, HP-UX, OSF/1.
53386         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
53387         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
53388         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
53389         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
53390         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
53391         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
53392
53393 2007-03-29  Bruno Haible  <bruno@clisp.org>
53394
53395         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
53396
53397 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
53398
53399         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
53400         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
53401
53402 2007-03-29  Eric Blake  <ebb9@byu.net>
53403
53404         * lib/acl-internal.h: Remove redundant include.
53405         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
53406         Cygwin when a file is locked.
53407
53408 2007-03-29  Bruno Haible  <bruno@clisp.org>
53409
53410         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
53411         file.
53412         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
53413
53414 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
53415
53416         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
53417         try to remove a parent directory if the child couldn't be removed
53418         (except for the first rmdir, which could fail because the child
53419         doesn't exist).  Problem reported by Jeff Blaine in
53420         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
53421
53422 2007-03-28  Bruno Haible  <bruno@clisp.org>
53423
53424         * lib/striconveh.c (utf8conv_carefully): New function.
53425         (mem_cd_iconveh_internal): Invoke it.
53426
53427 2007-03-28  Bruno Haible  <bruno@clisp.org>
53428
53429         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
53430         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
53431         input.
53432         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
53433         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
53434         unistr/u8-uctomb.
53435
53436 2007-03-28  Bruno Haible  <bruno@clisp.org>
53437
53438         * modules/unistr/u8-mbtoucr: New file.
53439         * lib/unistr/u8-mbtoucr.c: New file.
53440         * modules/unistr/u16-mbtoucr: New file.
53441         * lib/unistr/u16-mbtoucr.c: New file.
53442         * modules/unistr/u16-mbtoucr: New file.
53443         * lib/unistr/u16-mbtoucr.c: New file.
53444         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
53445
53446 2007-03-27  Simon Josefsson  <simon@josefsson.org>
53447             Bruno Haible  <bruno@clisp.org>
53448
53449         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
53450         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
53451         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
53452
53453         * m4/stdio_h.m4: Add stubs for vasprintf too.
53454
53455         * modules/stdio: Support vasprintf in sed command.
53456
53457         * modules/vasprintf: Depend on stdio for prototypes.  Remove
53458         vasprintf.h.  Add stdio module indicator.
53459
53460         * lib/stdio_.h: Declare asprintf and vasprintf, based on
53461         vasprintf.h.
53462
53463         * lib/vasprintf.h: File removed.
53464
53465         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
53466         * lib/vasprintf.c: Ditto.
53467         * lib/xvasprintf.c: Ditto.
53468         * tests/test-vasprintf-posix.c: Ditto.
53469         * tests/test-vasprintf.c: Ditto.
53470
53471 2007-03-27  Bruno Haible  <bruno@clisp.org>
53472
53473         Make vasnprintf multithread-safe.
53474         * lib/vasnprintf.c (decimal_point_char): New function.
53475         (VASNPRINTF): Use it.
53476         Suggested by Simon Josefsson.
53477
53478 2007-03-27  Eric Blake  <ebb9@byu.net>
53479
53480         Support sub-second birthtime on cygwin.
53481         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
53482         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
53483         (get_stat_birthtime): Also work with st_birthtim.
53484
53485 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
53486
53487         * lib/stat-time.h (USE_BIRTHTIME): Remove.
53488         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
53489         (get_stat_birthtime_ns): Do not try to use "spare" fields.
53490         (get_stat_birthtime_ns): Simplify compile-time tests.
53491         (get_stat_birthtime): Change the API to look like
53492         get_stat_mtime etc., except return a negative tv_nsec on error.
53493         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
53494         Don't check for "spare" fields.
53495         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
53496         or for struct stat.st_birthtime, as these tests aren't used.
53497         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
53498
53499 2007-03-27  Bruno Haible  <bruno@clisp.org>
53500
53501         * lib/stat-time.h: Include <sys/stat.h>.
53502
53503 2007-03-27  James Youngman  <jay@gnu.org>
53504
53505         * lib/stat-time.h (get_stat_birthtime): New function for
53506           retrieving st_birthtime as provided by UFS2 (hence *BSD).
53507         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
53508           and its variants.
53509         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
53510         * modules/stat-time-test: New file.
53511         * tests/test-stat-time.c: New test, devised by Bruno Haible.
53512
53513 2007-03-26  Bruno Haible  <bruno@clisp.org>
53514
53515         Better support of signalling NaNs.
53516         * lib/atanl.c: Include isnanl.h.
53517         (atanl): Perform test for NaN at the beginning of the function and
53518         through a call to isnanl.
53519         * lib/cosl.c: Include isnanl.h.
53520         (cosl): Perform test for NaN at the beginning of the function and
53521         through a call to isnanl.
53522         * lib/ldexpl.c: Include isnanl.h.
53523         (ldexpl): Perform test for NaN through a call to isnanl.
53524         * lib/logl.c: Include isnanl.h.
53525         (logl): Perform test for NaN at the beginning of the function and
53526         through a call to isnanl.
53527         * lib/sinl.c: Include isnanl.h.
53528         (sinl): Perform test for NaN at the beginning of the function and
53529         through a call to isnanl.
53530         * lib/sqrtl.c: Include isnanl.h.
53531         (sqrtl): Perform test for NaN at the beginning of the function and
53532         through a call to isnanl.
53533         * lib/tanl.c: Include isnanl.h.
53534         (tanl): Perform test for NaN at the beginning of the function and
53535         through a call to isnanl.
53536         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
53537         * modules/mathl (Depends-on): Add isnanl.
53538
53539 2007-03-26  Eric Blake  <ebb9@byu.net>
53540
53541         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
53542         regression in logic sense of previous patch.
53543
53544 2007-03-26  Bruno Haible  <bruno@clisp.org>
53545
53546         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
53547         unportable shell command "if ! ...".
53548         Reported by Ralf Wildenhues.
53549
53550 2007-03-25  Bruno Haible  <bruno@clisp.org>
53551
53552         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
53553         <sysexits.h> file, and only add EX_CONFIG.
53554         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
53555         absolute file name and whether it is sufficient. Substitute also
53556         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
53557         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
53558         ABSOLUTE_SYSEXITS_H into sysexits.h.
53559
53560 2007-03-25  Bruno Haible  <bruno@clisp.org>
53561
53562         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
53563         hints is NULL.
53564
53565 2007-03-25  Bruno Haible  <bruno@clisp.org>
53566
53567         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
53568         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
53569
53570 2007-03-25  Bruno Haible  <bruno@clisp.org>
53571
53572         * lib/vasnprintf.c: Include langinfo.h.
53573         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
53574         multithread-safe.
53575         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
53576         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
53577         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53578         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53579         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53580         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53581         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53582         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
53583         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53584         Reported by Simon Josefsson.
53585
53586 2007-03-25  Bruno Haible  <bruno@clisp.org>
53587
53588         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
53589         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
53590         * modules/vasnprintf (Depends-on): Add stdint.
53591
53592 2007-03-25  Bruno Haible  <bruno@clisp.org>
53593
53594         * modules/fpieee: New file.
53595         * m4/fpieee.m4: New file.
53596         * modules/isnan-nolibm (Depends-on): Add fpieee.
53597         * modules/isnanl-nolibm (Depends-on): Add fpieee.
53598         * modules/isnanl (Depends-on): Add fpieee.
53599
53600 2007-03-25  Bruno Haible  <bruno@clisp.org>
53601
53602         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
53603
53604 2007-03-25  Bruno Haible  <bruno@clisp.org>
53605
53606         Avoid test failures on IRIX 6.5.
53607         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
53608         (main): Use it.
53609         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
53610         macros.
53611         (main): Use them.
53612
53613 2007-03-25  Bruno Haible  <bruno@clisp.org>
53614
53615         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
53616         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
53617         exists but doesn't work.
53618         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
53619         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
53620         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
53621         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
53622         math.h.
53623
53624 2007-03-25  Bruno Haible  <bruno@clisp.org>
53625
53626         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
53627         returns inf. Needed on IRIX 6.5.
53628
53629 2007-03-25  Bruno Haible  <bruno@clisp.org>
53630
53631         * tests/test-frexpl.c: Include isnanl-nolibm.h.
53632         (main): Use isnanl instead of x != x idiom.
53633         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
53634
53635         * tests/test-frexp.c: Include isnan.h.
53636         (main): Use isnan instead of x != x idiom.
53637         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
53638
53639 2007-03-25  Bruno Haible  <bruno@clisp.org>
53640
53641         * tests/test-frexp.c (NaN): New function/macro.
53642         (main): Use it instead of 0.0 / 0.0.
53643         * tests/test-isnan.c (NaN): New function/macro.
53644         (main): Use it instead of 0.0 / 0.0.
53645         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
53646         (test_function): Use it instead of 0.0 / 0.0.
53647         * tests/test-vasprintf-posix.c (NaN): New function/macro.
53648         (test_function): Use it instead of 0.0 / 0.0.
53649         * tests/test-snprintf-posix.h (NaN): New function/macro.
53650         (test_function): Use it instead of 0.0 / 0.0.
53651         * tests/test-sprintf-posix.h (NaN): New function/macro.
53652         (test_function): Use it instead of 0.0 / 0.0.
53653         * tests/test-fprintf-posix.h (NaN): New function/macro.
53654         (test_function): Use it instead of 0.0 / 0.0.
53655         * tests/test-printf-posix.h (NaN): New function/macro.
53656         (test_function): Use it instead of 0.0 / 0.0.
53657
53658         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
53659
53660 2007-03-25  Bruno Haible  <bruno@clisp.org>
53661
53662         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
53663
53664 2007-03-25  Bruno Haible  <bruno@clisp.org>
53665
53666         * lib/regexec.c (merge_state_with_log): Make static.
53667
53668 2007-03-25  Bruno Haible  <bruno@clisp.org>
53669
53670         * lib/trigl.c (kernel_rem_pio2): Make static.
53671
53672 2007-03-25  Bruno Haible  <bruno@clisp.org>
53673
53674         * lib/sincosl.c (sincosl_table): Make static.
53675
53676 2007-03-25  Bruno Haible  <bruno@clisp.org>
53677
53678         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
53679         if the compiler does not support C99.
53680
53681 2007-03-25  Bruno Haible  <bruno@clisp.org>
53682
53683         * modules/time (Makefile.am): Ensure all rule action lines start with a
53684         tab.
53685
53686 2007-03-24  Bruno Haible  <bruno@clisp.org>
53687
53688         * modules/tsearch-tests: New file.
53689         * tests/test-tsearch.sh: New file.
53690         * tests/test-tsearch.c: New file, mostly copied from glibc.
53691
53692         * modules/search-tests: New file.
53693         * tests/test-search.c: New file.
53694
53695         * modules/search: New file.
53696         * lib/search_.h: New file, incorporating lib/tsearch.h.
53697         * m4/search_h.m4: New file.
53698         * lib/tsearch.h: Remove file.
53699         * lib/tsearch.c: Include search.h instead of tsearch.h.
53700         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
53701         HAVE_TSEARCH.
53702         * modules/tsearch (Files): Remove lib/tsearch.h.
53703         (Depends-on): Add search.
53704         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
53705         (Include): Change tsearch.h into search.h.
53706
53707 2007-03-24  Bruno Haible  <bruno@clisp.org>
53708
53709         * modules/fpucw: New file.
53710         * lib/fpucw.h: New file.
53711         * lib/frexp.c: Include fpucw.h.
53712         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
53713         (FUNC): Use them.
53714         * lib/printf-frexp.c: Include fpucw.h.
53715         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
53716         (FUNC): Use them.
53717         * lib/vasnprintf.c: Include fpucw.h.
53718         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
53719         'long double' calculations.
53720         * tests/test-frexpl.c: Include fpucw.h.
53721         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
53722         * tests/test-printf-frexpl.c: Include fpucw.h.
53723         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
53724         * modules/frexpl (Depends-on): Add fpucw.
53725         * modules/printf-frexpl (Depends-on): Likewise.
53726         * modules/fprintf-posix (Depends-on): Likewise.
53727         * modules/snprintf-posix (Depends-on): Likewise.
53728         * modules/sprintf-posix (Depends-on): Likewise.
53729         * modules/vasnprintf-posix (Depends-on): Likewise.
53730         * modules/vasprintf-posix (Depends-on): Likewise.
53731         * modules/vfprintf-posix (Depends-on): Likewise.
53732         * modules/vsnprintf-posix (Depends-on): Likewise.
53733         * modules/vsprintf-posix (Depends-on): Likewise.
53734         * modules/frexpl-tests (Depends-on): Likewise.
53735         * modules/printf-frexpl-tests (Depends-on): Likewise.
53736
53737 2007-03-24  Bruno Haible  <bruno@clisp.org>
53738
53739         * lib/float+.h: New file.
53740         * lib/isnan.c: Include float+.h.
53741         (SIZE): New macro.
53742         (FUNC): Compare only SIZE bytes of the value.
53743         * lib/vasnprintf.c: Include float+.h.
53744         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
53745         SIZEOF_LDBL or SIZEOF_DBL bytes.
53746         * modules/isnan-nolibm (Files): Add lib/float+.h.
53747         * modules/isnanl-nolibm (Files): Add lib/float+.h.
53748         * modules/isnanl (Files): Add lib/float+.h.
53749         * modules/vasnprintf (Files): Add lib/float+.h.
53750
53751 2007-03-24  Bruno Haible  <bruno@clisp.org>
53752
53753         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
53754         include isnanl-nolibm.h.
53755
53756 2007-03-24  Bruno Haible  <bruno@clisp.org>
53757
53758         * tests/test-read-file.c (main): Don't produce spurious output for
53759         expected situations. Make the test fail if it encountered unexpected
53760         results.
53761
53762 2007-03-24  Bruno Haible  <bruno@clisp.org>
53763
53764         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
53765         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
53766
53767 2007-03-24  Bruno Haible  <bruno@clisp.org>
53768
53769         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
53770
53771 2007-03-24  Bruno Haible  <bruno@clisp.org>
53772
53773         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
53774         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
53775
53776         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
53777         * modules/utf8-ucs4: Turn into a symbolic link to module
53778         unistr/u8-mbtouc.
53779
53780         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
53781         utf8-ucs4-unsafe.
53782         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
53783         unistr/u8-mbtouc-unsafe.
53784
53785         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
53786         * modules/utf16-ucs4: Turn into a symbolic link to module
53787         unistr/u16-mbtouc.
53788
53789         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
53790         utf16-ucs4-unsafe.
53791         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
53792         unistr/u16-mbtouc-unsafe.
53793
53794         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
53795         * modules/ucs4-utf8: Turn into a symbolic link to module
53796         unistr/u8-ubtomb.
53797
53798         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
53799         * modules/ucs4-utf16: Turn into a symbolic link to module
53800         unistr/u16-ubtomb.
53801
53802 2007-03-24  Bruno Haible  <bruno@clisp.org>
53803
53804         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
53805         Enable the function only if HAVE_INLINE.
53806         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
53807         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
53808         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
53809         Enable the function only if HAVE_INLINE.
53810         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
53811         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
53812         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
53813         Enable the function only if HAVE_INLINE.
53814         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
53815         Enable the function only if HAVE_INLINE.
53816         * modules/utf8-ucs4: Update.
53817         * modules/utf8-ucs4-unsafe: Update.
53818         * modules/utf16-ucs4: Update.
53819         * modules/utf16-ucs4-unsafe: Update.
53820         * modules/ucs4-utf8: Update.
53821         * modules/ucs4-utf16: Update.
53822
53823 2007-03-24  Bruno Haible  <bruno@clisp.org>
53824
53825         * lib/utf8-ucs4.h: Remove file.
53826         * lib/utf8-ucs4-unsafe.h: Remove file.
53827         * lib/utf16-ucs4.h: Remove file.
53828         * lib/utf16-ucs4-unsafe.h: Remove file.
53829         * lib/ucs4-utf8.h: Remove file.
53830         * lib/ucs4-utf16.h: Remove file.
53831         * lib/unistr.h: Include their previous contents.
53832         * m4/utf-ucs4.m4: Remove file.
53833         * m4/ucs4-utf.m4: Remove file.
53834         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
53835         (Depends-on): Add unistr/base.
53836         (configure.ac): Remove gl_UTF_UCS4.
53837         (Makefile.am): Update.
53838         (Include): Change to unistr.h.
53839         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
53840         (Depends-on): Add unistr/base.
53841         (configure.ac): Remove gl_UTF_UCS4.
53842         (Makefile.am): Update.
53843         (Include): Change to unistr.h.
53844         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
53845         (Depends-on): Add unistr/base.
53846         (configure.ac): Remove gl_UTF_UCS4.
53847         (Makefile.am): Update.
53848         (Include): Change to unistr.h.
53849         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
53850         (Depends-on): Add unistr/base.
53851         (configure.ac): Remove gl_UTF_UCS4.
53852         (Makefile.am): Update.
53853         (Include): Change to unistr.h.
53854         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
53855         (Depends-on): Add unistr/base.
53856         (configure.ac): Remove gl_UCS4_UTF.
53857         (Makefile.am): Update.
53858         (Include): Change to unistr.h.
53859         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
53860         (Depends-on): Add unistr/base.
53861         (configure.ac): Remove gl_UCS4_UTF.
53862         (Makefile.am): Update.
53863         (Include): Change to unistr.h.
53864         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
53865         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
53866         utf8-ucs4-unsafe.h.
53867         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
53868         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
53869         utf16-ucs4-unsafe.h.
53870         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
53871         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
53872         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
53873         * lib/unistr/u8-strchr.c: Likewise.
53874         * lib/unistr/u8-strrchr.c: Likewise.
53875         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
53876         * lib/unistr/u16-strchr.c: Likewise.
53877         * lib/unistr/u16-strrchr.c: Likewise.
53878         * lib/striconveh.c: Update.
53879         * lib/linebreak.c: Update.
53880
53881 2007-03-24  Bruno Haible  <bruno@clisp.org>
53882
53883         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
53884         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
53885
53886 2007-03-22  Bruno Haible  <bruno@clisp.org>
53887
53888         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
53889
53890 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
53891
53892         * MODULES.html.sh (File system functions): New module write-any-file.
53893         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
53894         * m4/write-any-file.m4: New files.
53895
53896 2007-03-23  Eric Blake  <ebb9@byu.net>
53897
53898         * gnulib-tool: Rearrange space-tab sequences, since some editors
53899         like to eat them.
53900
53901 2007-03-23  Eric Blake  <ebb9@byu.net>
53902
53903         * lib/version-etc.c (version_etc_va): Update license wording to
53904         be more concise.  Recommended by Richard Stallman.
53905
53906 2007-03-22  Bruno Haible  <bruno@clisp.org>
53907
53908         * lib/poll.c (MSG_PEEK): New fallback definition.
53909
53910 2007-03-22  Bruno Haible  <bruno@clisp.org>
53911
53912         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
53913         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
53914         (main): Update.
53915         Fixes a compilation error on BeOS.
53916
53917 2007-03-22  Bruno Haible  <bruno@clisp.org>
53918
53919         * modules/frexpl-tests: New file.
53920         * tests/test-frexpl.c: New file.
53921
53922         * modules/frexpl: New file.
53923         * m4/frexpl.m4: New file.
53924         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
53925         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
53926         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
53927         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
53928         (Depends-on): Add frexpl. Remove isnanl-nolibm.
53929         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
53930
53931 2007-03-22  Bruno Haible  <bruno@clisp.org>
53932
53933         * lib/frexpl.c: Share code with lib/frexp.c.
53934         * modules/mathl (Files): Add lib/frexp.c.
53935         (Depends-on): Add isnanl-nolibm.
53936
53937 2007-03-22  Bruno Haible  <bruno@clisp.org>
53938
53939         * modules/printf-frexp (Files): Add m4/frexp.m4.
53940         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
53941         only if the found frexp function actually works.
53942
53943 2007-03-22  Bruno Haible  <bruno@clisp.org>
53944
53945         * lib/frexp.c: Remove older implementation that uses divisions.
53946
53947 2007-03-21  Bruno Haible  <bruno@clisp.org>
53948
53949         * modules/frexp-tests: New file.
53950         * tests/test-frexp.c: New file.
53951
53952         * modules/frexp: New file.
53953         * lib/frexp.c: New file.
53954         * m4/frexp.m4: New file.
53955         * lib/math_.h (frexp): New declaration.
53956         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
53957         REPLACE_FREXP.
53958         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
53959
53960 2007-03-21  Bruno Haible  <bruno@clisp.org>
53961
53962         * modules/isnanl-tests: New file.
53963         * tests/test-isnanl.c: New file.
53964
53965         * modules/isnanl: New file.
53966         * lib/isnanl.h: New file.
53967         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
53968         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
53969         gl_FUNC_ISNANL_WORKS.
53970         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
53971         New macros.
53972
53973 2007-03-21  Bruno Haible  <bruno@clisp.org>
53974
53975         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
53976         lib/isnanl.h.
53977         (Include): Update.
53978         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
53979         * lib/vasnprintf.c: Update.
53980         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
53981         tests/test-isnanl.h, remove tests/test-isnanl.c.
53982         (Makefile.am): Update.
53983         * tests/test-isnanl-nolibm.c: New file.
53984         * tests/test-isnanl.h: New file.
53985         * tests/test-isnanl.c: Remove file.
53986
53987 2007-03-21  Jim Meyering  <jim@meyering.net>
53988
53989         When trying to open ".", treat ESTALE like EACCES.
53990         * lib/savewd.c (savewd_save): Resort to forking not just upon
53991         failure with EACCES, but also when errno is ESTALE.
53992
53993 2007-03-20  Bruno Haible  <bruno@clisp.org>
53994
53995         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
53996         Needed on AIX 5.1. Reported by Matthew Woehlke.
53997
53998 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
53999
54000         Suggestions by Bruno Haible:
54001         * lib/acl-internal.h: Include "gettext.h" rather than rolling
54002         our own.
54003         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
54004         * modules/acl (Depends-on): Add gettext.
54005
54006 2007-03-19  Bruno Haible  <bruno@clisp.org>
54007
54008         * modules/iconvme: Remove file.
54009         * lib/iconvme.h: Remove file.
54010         * lib/iconvme.c: Remove file.
54011         * m4/iconvme.m4: Remove file.
54012
54013 2007-03-19  Bruno Haible  <bruno@clisp.org>
54014
54015         * doc/relocatable-maint.texi: Break long shell script line.
54016         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
54017
54018 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
54019
54020         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
54021         handle file_has_acl.
54022         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
54023         * lib/acl.c: Move header inclusions and related macro defns into
54024         lib/acl-internal.h.
54025         (S_ISLNK): Remove defn, since that's now done for us.
54026         (file_has_acl): Move to lib/file-has-acl.c.
54027         Call acl_trivial if available.  This is the crucial part of the fix.
54028         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
54029         shared within the library.  Rewrite a bit, partly to make it compatible
54030         with the GNU coding style.
54031         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
54032         Remove unnecessary double-quotes.
54033         Don't test for acl_to_text; the build will catch that.
54034         Replace acl_entries if it doesn't exist and it is needed.
54035         Check for -lsec and acl_trivial (as used on Solaris 10).
54036         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
54037         lib/file-has-acl.c.
54038         (Depends-on): Add sys_stat, for S_ISLNK.
54039
54040 2007-03-19  Ben Pfaff  <blp@gnu.org>
54041
54042         * doc/gnulib.texi: Fix typos.
54043         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
54044
54045 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
54046
54047         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
54048         If size is zero here, buf must be zero.
54049
54050 2007-03-19  Simon Josefsson  <simon@josefsson.org>
54051
54052         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
54053         <bruno@clisp.org>.
54054
54055 2007-03-18  Bruno Haible  <bruno@clisp.org>
54056
54057         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
54058         Suggested by Eric Blake.
54059
54060 2007-03-18  Ben Pfaff  <blp@gnu.org>
54061
54062         * doc/relocatable.texi: Recommend using as prefix a directory
54063         that does not exist and will never be created.  Based on
54064         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
54065         and others.
54066
54067 2007-03-17  Bruno Haible  <bruno@clisp.org>
54068
54069         * lib/fchownat.c: Include lchown.h.
54070
54071 2007-03-17  Bruno Haible  <bruno@clisp.org>
54072
54073         Fix endless loop when the given allocated size was > INT_MAX.
54074         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
54075         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
54076         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
54077         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
54078         * lib/sprintf.c (sprintf): Likewise.
54079
54080 2007-03-17  Bruno Haible  <bruno@clisp.org>
54081
54082         * tests/test-argp-2.sh (func_compare): Output a context diff.
54083
54084 2007-03-17  Bruno Haible  <bruno@clisp.org>
54085
54086         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
54087         locale's decimal-point character.
54088
54089 2007-03-17  Bruno Haible  <bruno@clisp.org>
54090
54091         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
54092         before comparing it. Needed because on some platforms (e.g. x86) a
54093         'long double' occupies less bytes than sizeof (long double).
54094
54095 2007-03-17  Bruno Haible  <bruno@clisp.org>
54096
54097         * tests/test-crc.c (main): Make printf statements 64-bit clean.
54098         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
54099         * tests/test-getaddrinfo.c (simple): Likewise.
54100         * tests/test-read-file.c (main): Likewise.
54101
54102 2007-03-17  Bruno Haible  <bruno@clisp.org>
54103
54104         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
54105
54106 2007-03-17  Bruno Haible  <bruno@clisp.org>
54107
54108         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
54109         unused variable.
54110
54111 2007-03-17  Bruno Haible  <bruno@clisp.org>
54112
54113         * tests/test-c-strcasecmp.c: Include c-strcase.h.
54114         * tests/test-c-strncasecmp.c: Likewise.
54115
54116 2007-03-17  Bruno Haible  <bruno@clisp.org>
54117
54118         * modules/stdlib (Depends-on): Add unistd.
54119         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
54120         Needed for MacOS X 10.3.
54121
54122 2007-03-17  Bruno Haible  <bruno@clisp.org>
54123
54124         * lib/unistr/u-strdup.h: Include <stdlib.h>.
54125
54126 2007-03-17  Bruno Haible  <bruno@clisp.org>
54127
54128         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
54129
54130 2007-03-17  Bruno Haible  <bruno@clisp.org>
54131
54132         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
54133         to reflect files copied from gnulib (with or without modifications).
54134         Suggested by Jim Meyering.
54135
54136 2007-03-17  Eric Blake  <ebb9@byu.net>
54137
54138         * NEWS: Document stdlib change from 2007-02-18.
54139
54140 2007-03-17  Jim Meyering  <jim@meyering.net>
54141
54142         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
54143         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
54144         someone uses a name containing shell meta-characters.
54145         Reported by Alfred M. Szmidt.
54146
54147         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
54148
54149 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
54150
54151         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
54152         and copy gettext configuration files only if configure.ac contains
54153         a use of AM_GNU_GETTEXT_VERSION.
54154
54155 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
54156
54157         * build-aux/bootstrap (gnulib_name): New variable.
54158         (gnulib_tool_options): Use it.
54159
54160 2007-03-13  Simon Josefsson  <simon@josefsson.org>
54161
54162         * tests/test-des.c: Use new namespace.
54163
54164 2007-03-15  Bruno Haible  <bruno@clisp.org>
54165
54166         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
54167         Reported by James Youngman <jay@gnu.org>.
54168
54169 2007-03-15  Bruno Haible  <bruno@clisp.org>
54170
54171         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
54172         declared prototype. Needed with cc on OSF/1 5.1.
54173
54174 2007-03-15  Bruno Haible  <bruno@clisp.org>
54175
54176         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
54177         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
54178         (struct gl_list_implementation): Add dispose_fn argument to the
54179         'create_empty', 'create' methods.
54180         (struct gl_list_impl_base): Add field 'dispose_fn'.
54181         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
54182         argument.
54183         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
54184         dispose_fn argument.
54185         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
54186         dispose_fn on the dropped values.
54187         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
54188         dispose_fn argument.
54189         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
54190         dropped values.
54191         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
54192         (gl_tree_remove_node): Call dispose_fn on the dropped value.
54193         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
54194         (gl_tree_remove_node): Call dispose_fn on the dropped value.
54195         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
54196         argument.
54197         (gl_tree_list_free): Call dispose_fn on the dropped values.
54198         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
54199         the dropped values.
54200         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
54201         Add dispose_fn argument.
54202         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
54203         Call dispose_fn on the dropped values.
54204         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
54205         Add dispose_fn argument.
54206         (gl_sublist_create): Initialize the 'dispose_fn' field.
54207         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
54208         * tests/test-array_list.c (main): Update.
54209         * tests/test-carray_list.c (main): Update.
54210         * tests/test-avltree_list.c (main): Update.
54211         * tests/test-rbtree_list.c (main): Update.
54212         * tests/test-avltreehash_list.c (main): Update.
54213         * tests/test-rbtreehash_list.c (main): Update.
54214         * tests/test-linked_list.c (main): Update.
54215         * tests/test-linkedhash_list.c (main): Update.
54216         * tests/test-array_oset.c (main): Update.
54217
54218 2007-03-15  Bruno Haible  <bruno@clisp.org>
54219
54220         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
54221         (gl_oset_create_empty): Add dispose_fn argument.
54222         (struct gl_oset_implementation): Add dispose_fn argument to
54223         'create_empty' method.
54224         (struct gl_oset_impl_base): Add dispose_fn field.
54225         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
54226         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
54227         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
54228         values.
54229         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
54230         (gl_tree_oset_free): Call dispose_fn on the dropped values.
54231         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
54232         dropped value.
54233         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
54234         dropped value.
54235         * tests/test-array_oset.c (main): Update.
54236         * tests/test-avltree_oset.c (main): Update.
54237         * tests/test-rbtree_oset.c (main): Update.
54238         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
54239
54240 2007-03-13  Bruno Haible  <bruno@clisp.org>
54241
54242         * tests/test-stdbool.c (i): Update after last patch.
54243
54244 2007-03-12  Bruno Haible  <bruno@clisp.org>
54245
54246         * lib/quotearg.c: Include <wctype.h> early, before the definition of
54247         the iswprint macro. Needed on Solaris 2.5.1.
54248
54249 2007-03-12  Bruno Haible  <bruno@clisp.org>
54250
54251         * tests/test-printf-frexp.c (main): Declare x as volatile.
54252
54253 2007-03-12  Simon Josefsson  <simon@josefsson.org>
54254
54255         * doc/gnulib.texi (Build robot for gnulib): New section.
54256
54257 2007-03-12  Jim Meyering  <jim@meyering.net>
54258
54259         * build-aux/bootstrap: New file.
54260         * build-aux/bootstrap.conf: New file, from coreutils.
54261
54262 2007-03-11  Bruno Haible  <bruno@clisp.org>
54263
54264         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
54265
54266 2007-03-12  Simon Josefsson  <simon@josefsson.org>
54267
54268         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
54269         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
54270         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
54271
54272 2007-03-11  Bruno Haible  <bruno@clisp.org>
54273
54274         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
54275         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
54276
54277 2007-03-11  Bruno Haible  <bruno@clisp.org>
54278
54279         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
54280         formula. Needed for SunPRO C 5.0.
54281
54282 2007-03-11  Bruno Haible  <bruno@clisp.org>
54283
54284         * modules/long-options (Depends-on): Add getopt.
54285
54286 2007-03-11  Bruno Haible  <bruno@clisp.org>
54287
54288         * modules/modechange (Depends-on): Add stdbool.
54289
54290 2007-03-11  Bruno Haible  <bruno@clisp.org>
54291
54292         * modules/i-ring (Depends-on): Add stdbool.
54293
54294 2007-03-11  Bruno Haible  <bruno@clisp.org>
54295
54296         * modules/gc-des (Depends-on): Add stdbool.
54297
54298 2007-03-11  Bruno Haible  <bruno@clisp.org>
54299
54300         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
54301
54302 2007-03-11  Bruno Haible  <bruno@clisp.org>
54303
54304         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
54305
54306 2007-03-11  Bruno Haible  <bruno@clisp.org>
54307
54308         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
54309
54310 2007-03-11  Bruno Haible  <bruno@clisp.org>
54311
54312         * lib/vasnprintf.c (sprintf): Undefine.
54313
54314 2007-03-11  Bruno Haible  <bruno@clisp.org>
54315
54316         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
54317         initializers in SunPRO C and Compaq C compilers.
54318
54319 2007-03-11  Bruno Haible  <bruno@clisp.org>
54320
54321         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
54322         decrementing code ANSI C compliant.
54323
54324 2007-03-11  Bruno Haible  <bruno@clisp.org>
54325
54326         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
54327         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
54328
54329 2007-03-11  Bruno Haible  <bruno@clisp.org>
54330
54331         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
54332         <stdbool.h> substitute doesn't pass.
54333
54334 2007-03-11  Bruno Haible  <bruno@clisp.org>
54335
54336         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
54337
54338 2007-03-11  Bruno Haible  <bruno@clisp.org>
54339
54340         * gnulib-tool (func_create_megatestdir): Create also an autobuild
54341         script, for submission to autobuild.josefsson.org.
54342
54343 2007-03-10  Bruno Haible  <bruno@clisp.org>
54344
54345         * modules/canonicalize-lgpl-tests: New file.
54346         * tests/test-canonicalize-lgpl.sh: New file.
54347         * tests/test-canonicalize-lgpl.c: New file.
54348
54349         * modules/c-strcase-tests: New file.
54350         * tests/test-c-strcase.sh: New file.
54351         * tests/test-c-strcasecmp.c: New file.
54352         * tests/test-c-strncasecmp.c: New file.
54353
54354         * modules/atexit-tests: New file.
54355         * tests/test-atexit.sh: New file.
54356         * tests/test-atexit.c: New file.
54357
54358 2007-03-10  Bruno Haible  <bruno@clisp.org>
54359
54360         * tests/test-binary-io.sh: Use temporary filenames that are not so
54361         likely to clash with those of other tests (in a parallel make).
54362         * tests/test-binary-io.c: Likewise.
54363
54364 2007-03-10  Bruno Haible  <bruno@clisp.org>
54365
54366         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
54367         fallback; use #error instead.
54368         Suggested by Simon Josefsson.
54369
54370 2007-03-10  Bruno Haible  <bruno@clisp.org>
54371
54372         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
54373         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
54374         first and the last.
54375
54376 2007-03-10  Bruno Haible  <bruno@clisp.org>
54377
54378         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
54379
54380 2007-03-10  Bruno Haible  <bruno@clisp.org>
54381
54382         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
54383         "make distcheck".
54384         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
54385         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
54386         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
54387
54388 2007-03-10  Bruno Haible  <bruno@clisp.org>
54389
54390         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
54391         variable.
54392         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
54393         variable.
54394
54395 2007-03-09  Eric Blake  <ebb9@byu.net>
54396         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
54397
54398         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
54399         types are not being provided by gnulib.
54400         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
54401         types are supported.
54402
54403 2007-03-10  Bruno Haible  <bruno@clisp.org>
54404
54405         * lib/stdio_.h (__attribute__): New macro.
54406         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
54407         vsprintf): Specify __attribute__ __format__ for GCC.
54408         Suggested by Eric Blake.
54409
54410 2007-03-09  Bruno Haible  <bruno@clisp.org>
54411
54412         * modules/printf-posix-tests: New file.
54413         * tests/test-printf-posix.sh: New file.
54414         * tests/test-printf-posix.c: New file.
54415
54416         * modules/printf-posix: New file.
54417         * lib/printf.c: New file.
54418         * m4/printf-posix-rpl.m4: New file.
54419         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
54420         REPLACE_PRINTF.
54421         * lib/stdio_.h (printf): New declaration.
54422         (format, __format__, ____printf____, ____scanf____, ____strftime____,
54423         ____strfmon____): New macros.
54424         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
54425         REPLACE_PRINTF.
54426
54427 2007-03-09  Bruno Haible  <bruno@clisp.org>
54428
54429         * tests/test-vasnprintf-posix2.sh: New file.
54430         * tests/test-vasnprintf-posix2.c: New file.
54431         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
54432         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
54433         (Makefile.am): Activate test-vasnprintf-posix2.sh.
54434
54435         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
54436         a locale dependent decimal point, rather than always '.'.
54437
54438 2007-03-09  Eric Blake  <ebb9@byu.net>
54439
54440         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
54441         spite of platforms like Tandem/NSK that define it to -1.
54442
54443 2007-03-08  Bruno Haible  <bruno@clisp.org>
54444
54445         * modules/vprintf-posix-tests: New file.
54446         * tests/test-vprintf-posix.sh: New file.
54447         * tests/test-vprintf-posix.c: New file.
54448         * tests/test-printf-posix.h: New file.
54449
54450         * modules/vprintf-posix: New file.
54451         * lib/vprintf.c: New file.
54452         * m4/vprintf-posix.m4: New file.
54453         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
54454         REPLACE_VPRINTF.
54455         * lib/stdio_.h (vprintf): New declaration.
54456         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
54457         REPLACE_VPRINTF.
54458
54459 2007-03-08  Bruno Haible  <bruno@clisp.org>
54460
54461         * modules/fprintf-posix-tests: New file.
54462         * tests/test-fprintf-posix.sh: New file.
54463         * tests/test-fprintf-posix.c: New file.
54464
54465         * modules/fprintf-posix: New file.
54466         * lib/fprintf.c: New file.
54467         * m4/fprintf-posix.m4: New file.
54468         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
54469         REPLACE_FPRINTF.
54470         * lib/stdio_.h (fprintf): New declaration.
54471         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
54472         REPLACE_FPRINTF.
54473
54474 2007-03-08  Bruno Haible  <bruno@clisp.org>
54475
54476         * modules/vfprintf-posix-tests: New file.
54477         * tests/test-vfprintf-posix.sh: New file.
54478         * tests/test-vfprintf-posix.c: New file.
54479         * tests/test-fprintf-posix.h: New file.
54480         * tests/test-fprintf-posix.out: New file.
54481
54482         * modules/vfprintf-posix: New file.
54483         * lib/vfprintf.c: New file.
54484         * m4/vfprintf-posix.m4: New file.
54485         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
54486         REPLACE_VFPRINTF.
54487         * lib/stdio_.h (vfprintf): New declaration.
54488         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
54489         REPLACE_VFPRINTF.
54490
54491 2007-03-08  Bruno Haible  <bruno@clisp.org>
54492
54493         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
54494
54495 2007-03-08  Bruno Haible  <bruno@clisp.org>
54496
54497         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
54498         instead of 'expr' invocations.
54499         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54500         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54501         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54502         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54503         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54504         Suggested by Paul Eggert.
54505
54506 2007-03-08  Bruno Haible  <bruno@clisp.org>
54507
54508         * modules/fseterr-tests: New file.
54509         * tests/test-fseterr.c: New file.
54510
54511         * modules/fseterr: New file.
54512         * lib/fseterr.h: New file.
54513         * lib/fseterr.c: New file.
54514
54515 2007-03-08  Bruno Haible  <bruno@clisp.org>
54516
54517         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
54518         * lib/getopt_.h: Likewise.
54519         * lib/mbswidth.h: Likewise.
54520         * lib/setenv.h: Likewise.
54521         * lib/vasnprintf.h: Likewise.
54522         * lib/vasprintf.h: Likewise.
54523         * lib/verror.h: Likewise.
54524         * lib/xsetenv.h: Likewise.
54525         * lib/xvasprintf.h: Likewise.
54526
54527 2007-03-08  Jim Meyering  <jim@meyering.net>
54528
54529         * users.txt: Add parted.
54530
54531         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
54532
54533 2007-03-07  Bruno Haible  <bruno@clisp.org>
54534
54535         * m4/printf.m4: Make the shell script snippets copy&pastable.
54536
54537 2007-03-02  Bruno Haible  <bruno@clisp.org>
54538
54539         * lib/netinet_in_.h: New file.
54540         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
54541         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
54542         * modules/netinet_in (Files): Add lib/netinet_in_.h.
54543         (Depends-on): Add absolute-header.
54544         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
54545         into netinet/in.h.
54546
54547 2007-03-03  Bruno Haible  <bruno@clisp.org>
54548
54549         * lib/sys_select_.h: New file.
54550         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
54551         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
54552         * modules/sys_select (Files): Add lib/sys_select_.h.
54553         (Depends-on): Add absolute-header.
54554         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
54555         into sys/select.h.
54556
54557 2007-03-02  Bruno Haible  <bruno@clisp.org>
54558
54559         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
54560         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
54561         values.
54562         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
54563         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
54564         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
54565         * modules/sys_socket (Depends-on): Add absolute-header.
54566         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
54567         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
54568         (Include): Remove requirement of inclusion of <sys/types.h>.
54569
54570 2007-03-02  Bruno Haible  <bruno@clisp.org>
54571
54572         * lib/byteswap_.h (bswap_32): Fix formula.
54573
54574 2007-03-06  Bruno Haible  <bruno@clisp.org>
54575
54576         * modules/sprintf-posix-tests: New file.
54577         * tests/test-sprintf-posix.c: New file.
54578
54579         * modules/sprintf-posix: New file.
54580         * lib/sprintf.c: New file.
54581         * m4/sprintf-posix.m4: New file.
54582         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
54583         REPLACE_SPRINTF.
54584         * lib/stdio_.h (sprintf): New declaration.
54585         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
54586         REPLACE_SPRINTF.
54587
54588 2007-03-06  Bruno Haible  <bruno@clisp.org>
54589
54590         * modules/vsprintf-posix-tests: New file.
54591         * tests/test-vsprintf-posix.c: New file.
54592         * tests/test-sprintf-posix.h: New file.
54593
54594         * modules/vsprintf-posix: New file.
54595         * lib/vsprintf.c: New file.
54596         * m4/vsprintf-posix.m4: New file.
54597         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
54598         REPLACE_VSPRINTF.
54599         * lib/stdio_.h (vsprintf): New declaration.
54600         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
54601         REPLACE_VSPRINTF.
54602
54603 2007-03-06  Bruno Haible  <bruno@clisp.org>
54604
54605         * modules/vsnprintf (Depend-on): Remove minmax.
54606
54607 2007-03-06  Bruno Haible  <bruno@clisp.org>
54608
54609         * modules/snprintf-posix-tests: New file.
54610         * tests/test-snprintf-posix.c: New file.
54611
54612         * modules/snprintf-posix: New file.
54613         * m4/snprintf-posix.m4: New file.
54614         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
54615         gl_FUNC_SNPRINTF.
54616         (gl_FUNC_SNPRINTF): Invoke it.
54617         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
54618         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
54619         is set.
54620         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
54621
54622 2007-03-06  Bruno Haible  <bruno@clisp.org>
54623
54624         * modules/vsnprintf-posix-tests: New file.
54625         * tests/test-vsnprintf-posix.c: New file.
54626         * tests/test-snprintf-posix.h: New file.
54627
54628         * modules/vsnprintf-posix: New file.
54629         * m4/vsnprintf-posix.m4: New file.
54630         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
54631         gl_FUNC_VSNPRINTF.
54632         (gl_FUNC_VSNPRINTF): Invoke it.
54633         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
54634         * lib/stdio_.h (vsnprintf): Define as a replacement if
54635         REPLACE_VSNPRINTF is set.
54636         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
54637
54638 2007-03-06  Bruno Haible  <bruno@clisp.org>
54639
54640         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
54641         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
54642
54643 2007-03-06  Bruno Haible  <bruno@clisp.org>
54644
54645         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
54646         (asinl): Declare also if HAVE_DECL_ASINL is set.
54647         (atanl): Declare also if HAVE_DECL_ATANL is set.
54648         (ceill): Declare also if HAVE_DECL_CEILL is set.
54649         (cosl): Declare also if HAVE_DECL_COSL is set.
54650         (expl): Declare also if HAVE_DECL_EXPL is set.
54651         (floorl): Declare also if HAVE_DECL_FLOORL is set.
54652         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
54653         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
54654         (logl): Declare also if HAVE_DECL_LOGL is set.
54655         (sinl): Declare also if HAVE_DECL_SINL is set.
54656         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
54657         (tanl): Declare also if HAVE_DECL_TANL is set.
54658         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
54659         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
54660         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
54661         declaration of frexpl, ldexpl.
54662         * modules/printf-frexpl (Depends-on): Add math.
54663         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
54664
54665 2007-03-05  Bruno Haible  <bruno@clisp.org>
54666
54667         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
54668         frexpl and ldexpl are declared.
54669         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
54670
54671 2007-03-05  Bruno Haible  <bruno@clisp.org>
54672
54673         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
54674         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
54675
54676 2007-03-05  Bruno Haible  <bruno@clisp.org>
54677
54678         * lib/stdio_.h: Include <stddef.h>.
54679
54680 2007-03-05  Bruno Haible  <bruno@clisp.org>
54681
54682         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
54683
54684 2007-03-05  Bruno Haible  <bruno@clisp.org>
54685
54686         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
54687         NetBSD 4, from Ralf Wildenhues.
54688
54689 2007-03-04  Bruno Haible  <bruno@clisp.org>
54690
54691         * lib/vasprintf.h: Update #if logic for the case when the functions
54692         exist but are overridden.
54693
54694 2007-03-04  Bruno Haible  <bruno@clisp.org>
54695
54696         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
54697         implementations: glibc-2.4 and MacOS X 10.3.
54698         * tests/test-vasnprintf-posix.c (test_function): Test also the case
54699         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
54700         * tests/test-vasprintf-posix.c (test_function): Likewise.
54701
54702 2007-03-04  Bruno Haible  <bruno@clisp.org>
54703
54704         * modules/vasprintf-posix-tests: New file.
54705         * tests/test-vasprintf-posix.c: New file.
54706
54707         * modules/vasprintf-posix: New file.
54708         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
54709         defined.
54710         * m4/vasprintf-posix.m4: New file.
54711         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
54712         gl_FUNC_VASPRINTF.
54713         (gl_FUNC_VASPRINTF): Invoke it.
54714         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
54715         here.
54716         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
54717
54718 2007-03-04  Bruno Haible  <bruno@clisp.org>
54719
54720         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
54721         REPLACE_GETTIMEOFDAY.
54722         * modules/sys_time (Makefile.am): Likewise.
54723         * m4/sys_time_h.m4: Likewise.
54724         * m4/gettimeofday.m4: Likewise.
54725
54726 2007-03-04  Bruno Haible  <bruno@clisp.org>
54727
54728         * modules/vasnprintf-posix-tests: New file.
54729         * tests/test-vasnprintf-posix.c: New file.
54730
54731         * modules/vasnprintf-posix: New file.
54732         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
54733         printf-frexpl.h.
54734         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
54735         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
54736         REPLACE_VASNPRINTF is defined.
54737         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
54738         gl_FUNC_VASNPRINTF.
54739         (gl_FUNC_VASNPRINTF): Invoke it.
54740         * m4/vasnprintf-posix.m4: New file.
54741         * m4/printf.m4: New file.
54742
54743 2007-03-04  Bruno Haible  <bruno@clisp.org>
54744
54745         Compile progreloc.c only if --enable-relocatable is specified.
54746         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
54747         if --enable-relocatable was specified.
54748         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
54749         lib_SOURCES.
54750
54751 2007-03-04  Jim Meyering  <jim@meyering.net>
54752
54753         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
54754         Use it consistently, rather than enumerating errno constants.
54755
54756 2007-03-04  Bruno Haible  <bruno@clisp.org>
54757
54758         * modules/xvasprintf-tests: New file.
54759         * tests/test-xvasprintf.c: New file.
54760
54761         * modules/vasprintf-tests: New file.
54762         * tests/test-vasprintf.c: New file.
54763
54764         * modules/vasnprintf-tests: New file.
54765         * tests/test-vasnprintf.c: New file.
54766
54767         * modules/vsnprintf-tests: New file.
54768         * tests/test-vsnprintf.c: New file.
54769
54770         * modules/snprintf-tests: New file.
54771         * tests/test-snprintf.c: New file.
54772
54773 2007-03-04  Bruno Haible  <bruno@clisp.org>
54774
54775         Compile relocatable.c only if --enable-relocatable is specified.
54776         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
54777         gl_RELOCATABLE_LIBRARY.
54778         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
54779         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
54780         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
54781         gl_RELOCATABLE_LIBRARY.
54782         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
54783         (Makefile.am): Remove lib_SOURCES.
54784         * modules/relocatable-lib-lgpl (configure.ac): Invoke
54785         gl_RELOCATABLE_LIBRARY.
54786         (Makefile.am): Remove lib_SOURCES.
54787         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
54788         always.
54789         * modules/relocatable-prog-wrapper (configure.ac): Invoke
54790         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
54791
54792 2007-03-04  Bruno Haible  <bruno@clisp.org>
54793
54794         * modules/argmatch-tests: New file.
54795         * tests/test-argmatch.c: New file.
54796
54797         * tests/test-allocsa.c (main): Halve the number of loop runs.
54798
54799         * modules/alloca-opt-tests: New file.
54800         * tests/test-alloca-opt.c: New file.
54801
54802 2007-03-04  Jim Meyering  <jim@meyering.net>
54803
54804         Work around difference between Linux ACLs and Solaris 10 ZFS.
54805         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
54806         for EINVAL.
54807
54808 2007-03-03  Bruno Haible  <bruno@clisp.org>
54809
54810         * modules/relocatable-prog (Depends-on): Add back progreloc's
54811         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
54812
54813 2007-03-03  Bruno Haible  <bruno@clisp.org>
54814
54815         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
54816         * modules/relocatable-lib: New file.
54817
54818 2007-03-03  Bruno Haible  <bruno@clisp.org>
54819
54820         * modules/relocatable-prog: Renamed from modules/relocatable.
54821         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
54822
54823 2007-03-03  Bruno Haible  <bruno@clisp.org>
54824
54825         * modules/relocatable-script (Files): Add doc/relocatable.texi,
54826         m4/relocatable-lib.m4.
54827         (Depends-on): Remove 'relocatable'.
54828         (configure.ac): Add gl_RELOCATABLE_NOP.
54829
54830 2007-03-03  Bruno Haible  <bruno@clisp.org>
54831
54832         * modules/relocatable-prog-wrapper: New file.
54833         * modules/relocatable (Depends-on): Add it. Remove all other
54834         dependencies except progname.
54835         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
54836
54837         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
54838         (gl_FUNC_STRERROR): Nop.
54839         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
54840
54841         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
54842         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
54843
54844         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
54845         (gl_FUNC_READLINK): Update.
54846
54847         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
54848
54849 2007-03-03  Bruno Haible  <bruno@clisp.org>
54850
54851         * lib/xreadlink.c: Include <unistd.h> unconditionally.
54852         * modules/xreadlink (Depends-on): Add unistd.
54853         * modules/xreadlink-with-size (Depends-on): Likewise.
54854
54855 2007-03-03  Bruno Haible  <bruno@clisp.org>
54856
54857         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
54858         extracted from gt_FUNC_SETENV.
54859         (gt_FUNC_SETENV): Remove macro.
54860         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
54861         remove gt_FUNC_SETENV.
54862
54863 2007-03-03  Bruno Haible  <bruno@clisp.org>
54864
54865         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
54866         ENABLE_RELOCATABLE here.
54867         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
54868
54869 2007-03-03  Bruno Haible  <bruno@clisp.org>
54870
54871         * modules/rbtreehash-list-tests (Depends-on): Add progname.
54872         * tests/test-rbtreehash_list.c: Include progname.h.
54873         (main): Call set_program_name.
54874
54875         * modules/rbtree-oset-tests (Depends-on): Add progname.
54876         * tests/test-rbtree_oset.c: Include progname.h.
54877         (main): Call set_program_name.
54878
54879         * modules/rbtree-list-tests (Depends-on): Add progname.
54880         * tests/test-rbtree_list.c: Include progname.h.
54881         (main): Call set_program_name.
54882
54883         * modules/linked-list-tests (Depends-on): Add progname.
54884         * tests/test-linked_list.c: Include progname.h.
54885         (main): Call set_program_name.
54886
54887 2007-03-03  Bruno Haible  <bruno@clisp.org>
54888
54889         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
54890         All uses of __restrict changed to _Restrict_.
54891         * lib/glob_.h (__restrict): Remove macro.
54892
54893 2007-03-02  Bruno Haible  <bruno@clisp.org>
54894
54895         * modules/gettext (configure.ac): Require gettext infrastructure
54896         from version 0.16.1.
54897
54898 2007-03-02  Bruno Haible  <bruno@clisp.org>
54899
54900         * modules/linkedhash-list-tests (Depends-on): Add progname.
54901         * tests/test-linkedhash_list.c: Include progname.h.
54902         (main): Call set_program_name.
54903
54904         * modules/carray-list-tests (Depends-on): Add progname.
54905         * tests/test-carray_list.c: Include progname.h.
54906         (main): Call set_program_name.
54907
54908         * modules/avltreehash-list-tests (Depends-on): Add progname.
54909         * tests/test-avltreehash_list.c: Include progname.h.
54910         (main): Call set_program_name.
54911
54912         * modules/avltree-oset-tests (Depends-on): Add progname.
54913         * tests/test-avltree_oset.c: Include progname.h.
54914         (main): Call set_program_name.
54915
54916         * modules/avltree-list-tests (Depends-on): Add progname.
54917         * tests/test-avltree_list.c: Include progname.h.
54918         (main): Call set_program_name.
54919
54920         * modules/array-oset-tests (Depends-on): Add progname.
54921         * tests/test-array_oset.c: Include progname.h.
54922         (main): Call set_program_name.
54923
54924         * modules/array-list-tests (Depends-on): Add progname.
54925         * tests/test-array_list.c: Include progname.h.
54926         (main): Call set_program_name.
54927
54928         * modules/argp-tests (Depends-on): Add progname.
54929         * tests/test-argp.c: Include argp.h first. Include progname.h.
54930         (main): Call set_program_name.
54931
54932 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
54933
54934         * doc/gnulib-tool.texi (Initial import): Reword description of
54935         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
54936         limited effect even if defined after the first system include.
54937
54938 2007-03-01  Bruno Haible  <bruno@clisp.org>
54939
54940         * build-aux/config.libpath: Update to libtool-1.5.22.
54941         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54942
54943 2007-03-01  Bruno Haible  <bruno@clisp.org>
54944
54945         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
54946         foo_CFLAGS.
54947         Reported by Ralf Wildenhues.
54948
54949 2007-03-01  Bruno Haible  <bruno@clisp.org>
54950
54951         * build-aux/install-reloc: Remove object files left over by some
54952         compilers.
54953         Reported by Ralf Wildenhues.
54954
54955 2007-03-01  Bruno Haible  <bruno@clisp.org>
54956
54957         * build-aux/install-reloc: Break long lines.
54958
54959 2007-03-01  Bruno Haible  <bruno@clisp.org>
54960
54961         * doc/relocatable.texi: Document that it may not work on OpenBSD.
54962         Reported by Ralf Wildenhues.
54963
54964 2007-03-01  Bruno Haible  <bruno@clisp.org>
54965
54966         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
54967         include ordering constraints.
54968
54969 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
54970
54971         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
54972         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
54973         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
54974         as another example.
54975         * lib/time_.h: Fix misspelling.
54976         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
54977         Require gl_HEADER_TIME_H_DEFAULTS.
54978         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
54979         * m4/time_r.m4 (gl_TIME_R): Likewise.
54980         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
54981
54982 2007-03-01  Bruno Haible  <bruno@clisp.org>
54983
54984         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
54985         * m4/utimens.m4 (gl_UTIMENS): Likewise.
54986
54987 2007-03-01  Jim Meyering  <jim@meyering.net>
54988
54989         * modules/xreadlink (Maintainer): Add my name.
54990         * modules/xreadlink-with-size (Depends-on): Alphabetize.
54991
54992 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
54993             Bruno Haible  <bruno@clisp.org>
54994
54995         * build-aux/install-reloc: Compile also c-ctype.c.
54996         * build-aux/relocatable.sh.in: New file.
54997         * doc/relocatable.texi: New file.
54998         * doc/relocatable-maint.texi: New file.
54999         * doc/gnulib.texi: Include relocatable-maint.texi.
55000         * lib/progreloc.c: Include unistd.h unconditionally.
55001         * lib/relocwrapper.c: Include unistd.h unconditionally.
55002         Include c-ctype.h.
55003         (add_dotbin): Use c_tolower.
55004         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
55005         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
55006         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
55007         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
55008         to m4/relocatable-lib.m4.
55009         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
55010         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
55011         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
55012         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
55013         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
55014         * modules/relocatable: New file.
55015         * modules/relocatable-lib: New file.
55016         * modules/relocatable-script: New file.
55017
55018 2007-02-28  Bruno Haible  <bruno@clisp.org>
55019
55020         Import --enable-relocatable infrastructure.
55021         * build-aux/config.libpath: New file, from GNU gettext.
55022         * build-aux/install-reloc: New file, from GNU gettext.
55023         * build-aux/reloc-ldflags: New file, from GNU gettext.
55024         * lib/relocatable.h: New file, from GNU gettext.
55025         * lib/relocatable.c: New file, from GNU gettext.
55026         * lib/relocwrapper.c: New file, from GNU gettext.
55027         * m4/relocatable.m4: New file, from GNU gettext.
55028
55029 2007-02-28  Bruno Haible  <bruno@clisp.org>
55030
55031         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
55032
55033         * modules/xreadlink: New file, from GNU gettext with modifications.
55034         * lib/xreadlink.c: New file, from GNU gettext.
55035         * lib/xreadlink.h: Add comments.
55036         (xreadlink): New declaration.
55037
55038         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
55039         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
55040         lib/xreadlink-with-size.c.
55041         (configure.ac): Remove gl_XREADLINK invocation.
55042         (Makefile.am): Augment lib_SOURCES.
55043         * m4/xreadlink.m4: Remove file.
55044         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
55045         (xreadlink_with_size): Renamed from xreadink.
55046         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
55047         * modules/canonicalize (Depends-on): Replace xreadlink with
55048         xreadlink-with-size.
55049         * lib/canonicalize.c (canonicalize_filename_mode): Update.
55050
55051 2007-02-25  Jim Meyering  <jim@meyering.net>
55052
55053         * build-aux/announce-gen: When complaining about excess arguments,
55054         list them.
55055
55056 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
55057
55058         * README: Document signed integer overflow situation more
55059         accurately.
55060
55061 2007-02-25  Bruno Haible  <bruno@clisp.org>
55062
55063         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
55064         'a' or 'A' conversion.
55065
55066 2007-02-25  Bruno Haible  <bruno@clisp.org>
55067
55068         * modules/filename: Renamed from modules/pathname.
55069         (Files): Replace lib/pathname.h with lib/filename.h. Replace
55070         lib/concatpath.c with lib/concat-filename.c.
55071         (Makefile.am): Update.
55072         (Include): Replace pathname.h with filename.h.
55073         * lib/filename.h: Renamed from lib/pathname.h.
55074         (concatenated_filename): Renamed from concatenated_pathname.
55075         * lib/concat-filename.c: Renamed from lib/concatpath.c.
55076         (concatenated_filename): Renamed from concatenated_pathname.
55077         * lib/findprog.c: Include filename.h instead of pathname.h.
55078         (find_in_path): Update.
55079         * lib/javacomp.c: Include filename.h instead of pathname.h.
55080         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
55081         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
55082         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
55083         is_oldgcj_14_13_usable, is_javac_usable): Update.
55084         * lib/javaexec.c: Include filename.h instead of pathname.h.
55085         (execute_java_class): Update.
55086         * modules/findprog: Update.
55087         * modules/javacomp: Update.
55088         * modules/javaexec: Update.
55089         * MODULES.html.sh (File system functions): Add 'filename', remove
55090         'pathname'.
55091
55092 2007-02-25  Bruno Haible  <bruno@clisp.org>
55093
55094         * modules/printf-frexpl-tests: New file.
55095         * tests/test-printf-frexpl.c: New file.
55096
55097         * modules/printf-frexpl: New file.
55098         * lib/printf-frexpl.h: New file.
55099         * lib/printf-frexpl.c: New file.
55100         * m4/printf-frexpl.m4: New file.
55101
55102 2007-02-25  Bruno Haible  <bruno@clisp.org>
55103
55104         * modules/printf-frexp-tests: New file.
55105         * tests/test-printf-frexp.c: New file.
55106
55107         * modules/printf-frexp: New file.
55108         * lib/printf-frexp.h: New file.
55109         * lib/printf-frexp.c: New file.
55110         * m4/printf-frexp.m4: New file.
55111
55112 2007-02-25  Bruno Haible  <bruno@clisp.org>
55113
55114         Assume automake >= 1.10 for the tests.
55115         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
55116         * modules/arctwo-tests: Likewise.
55117         * modules/argp-tests: Likewise.
55118         * modules/avltree-list-tests: Likewise.
55119         * modules/avltree-oset-tests: Likewise.
55120         * modules/avltreehash-list-tests: Likewise.
55121         * modules/carray-list-tests: Likewise.
55122         * modules/crc-tests: Likewise.
55123         * modules/des-tests: Likewise.
55124         * modules/gc-arcfour-tests: Likewise.
55125         * modules/gc-arctwo-tests: Likewise.
55126         * modules/gc-des-tests: Likewise.
55127         * modules/gc-hmac-md5-tests: Likewise.
55128         * modules/gc-hmac-sha1-tests: Likewise.
55129         * modules/gc-md2-tests: Likewise.
55130         * modules/gc-md4-tests: Likewise.
55131         * modules/gc-md5-tests: Likewise.
55132         * modules/gc-pbkdf2-sha1-tests: Likewise.
55133         * modules/gc-rijndael-tests: Likewise.
55134         * modules/gc-sha1-tests: Likewise.
55135         * modules/gc-tests: Likewise.
55136         * modules/getaddrinfo-tests: Likewise.
55137         * modules/hmac-md5-tests: Likewise.
55138         * modules/hmac-sha1-tests: Likewise.
55139         * modules/linked-list-tests: Likewise.
55140         * modules/linkedhash-list-tests: Likewise.
55141         * modules/lock-tests: Likewise.
55142         * modules/md2-tests: Likewise.
55143         * modules/md4-tests: Likewise.
55144         * modules/md5-tests: Likewise.
55145         * modules/rbtree-list-tests: Likewise.
55146         * modules/rbtree-oset-tests: Likewise.
55147         * modules/rbtreehash-list-tests: Likewise.
55148         * modules/read-file-tests: Likewise.
55149         * modules/rijndael-tests: Likewise.
55150         * modules/stdint-tests: Likewise.
55151         * modules/tls-tests: Likewise.
55152
55153 2007-02-24  Bruno Haible  <bruno@clisp.org>
55154
55155         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
55156         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
55157         function; instead check whether isnan with a double argument links.
55158         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
55159         function; instead check whether isnan with a 'long double' argument
55160         links.
55161         Reported by Eric Blake <ebb9@byu.net>.
55162
55163 2007-02-24  Bruno Haible  <bruno@clisp.org>
55164
55165         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
55166         defined.
55167         * lib/isnanl.c: Remove all code. Just include isnan.c.
55168         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
55169
55170 2007-02-25  Jim Meyering  <jim@meyering.net>
55171
55172         Avoid conflicting types for 'unsetenv' on FreeBSD.
55173         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
55174         conflicting with FreeBSD's (5.0 and 6.1) function declaration
55175         in stdlib.h.
55176
55177 2007-02-24  Bruno Haible  <bruno@clisp.org>
55178
55179         * modules/isnanl-nolibm-tests: New file.
55180         * tests/test-isnanl.c: New file.
55181
55182         * modules/isnanl-nolibm: New file.
55183         * lib/isnanl.h: New file.
55184         * lib/isnanl.c: New file.
55185         * m4/isnanl.m4: New file.
55186
55187 2007-02-24  Bruno Haible  <bruno@clisp.org>
55188
55189         * modules/isnan-nolibm-tests: New file.
55190         * tests/test-isnan.c: New file.
55191
55192         * modules/isnan-nolibm: New file.
55193         * lib/isnan.h: New file.
55194         * lib/isnan.c: New file.
55195         * m4/isnan.m4: New file.
55196
55197 2007-02-24  Bruno Haible  <bruno@clisp.org>
55198
55199         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
55200         assume that an exponent fits in 20 bits.
55201
55202 2007-02-24  Jim Meyering  <jim@meyering.net>
55203
55204         * m4/regex.m4: Update the description of the configure-time option,
55205         --without-included-regex, to state accurately what the defaults are,
55206         and perhaps to give people an idea why using this option is risky.
55207
55208 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
55209
55210         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
55211         loops on small arguments.  This attempts to avoid the problem
55212         Bruno Haible reported for AIX 4.3.2 in
55213         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
55214
55215 2007-02-23  Bruno Haible  <bruno@clisp.org>
55216
55217         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
55218         Needed for help2man.
55219
55220 2007-02-23  Karl Berry  <karl@gnu.org>
55221
55222         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
55223         exists, foo.h should be cvs-ignored, not committed.
55224
55225 2007-02-23  Eric Blake  <ebb9@byu.net>
55226
55227         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
55228         * lib/stat-time.h (includes): Likewise.
55229         * lib/utimecmp.c (includes): Likewise.
55230         * lib/utimens.h (includes): Likewise.
55231         * lib/getdate.y (includes): Also include "timespec.h" for use
55232         internal to the module.
55233         * modules/utimens (Depends-on): Revert yesterday's patch.
55234         * modules/nanosleep (Depends-on): Add missing dependency.
55235
55236 2007-02-22  Bruno Haible  <bruno@clisp.org>
55237
55238         * lib/glob.c: Don't include getlogin_r.h.
55239
55240 2007-02-22  Jim Meyering  <jim@meyering.net>
55241
55242         * modules/utimens (Depends-on): Add timespec, required for
55243         utimens.h's inclusion of timespec.h.
55244
55245 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
55246
55247         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
55248         long unreadable paths in GNU/Linux.  Problem reported by Andreas
55249         Schwab in
55250         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
55251         I'll try to think of a better way to fix the Solaris problem.
55252
55253         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
55254         like glibc; on Solaris 10, it fails with errno == EINVAL.
55255         POSIX says the behavior is unspecified if the first argument is NULL,
55256         so play it safe and never pass NULL to the system getcwd.
55257
55258 2007-02-21  Jim Meyering  <jim@meyering.net>
55259
55260         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
55261         of gettimeofday.  It would conflict with the one now always
55262         provided via sys_time_.h.  Reported by Matthew Woehlke, as
55263         an IRIX 6.5 build failure.
55264
55265 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
55266
55267         Minor fixups to port to Solaris 10 with Sun C 5.8.
55268         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
55269         * modules/getcwd (Depends-on): Add dirfd.
55270         * lib/putenv.c (putenv): #undef it.
55271         (rpl_putenv): New decl.
55272         (malloc, free): Include <stdlib.h> rather than prototyping separately.
55273
55274 2007-02-20  Bruno Haible  <bruno@clisp.org>
55275
55276         * modules/stdio-tests: New file.
55277         * tests/test-stdio.c: New file.
55278
55279         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
55280         (Depends-on): Add stdio.
55281         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
55282         (Include): Use <stdio.h> instead of vsnprintf.h.
55283         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
55284         HAVE_DECL_VSNPRINTF.
55285         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
55286
55287         * modules/snprintf (Files): Remove lib/snprintf.h.
55288         (Depends-on): Add stdio.
55289         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
55290         (Include): Use <stdio.h> instead of snprintf.h.
55291         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
55292         HAVE_DECL_SNPRINTF.
55293         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
55294         * lib/getaddrinfo.c: Likewise.
55295
55296         * modules/stdio: New file.
55297         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
55298         * lib/snprintf.h: Remove file.
55299         * lib/vsnprintf.h: Remove file.
55300         * lib/.cppi-disable: Remove snprintf.h.
55301         * m4/stdio_h.m4: New file.
55302         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
55303
55304 2007-02-20  Jim Meyering  <jim@meyering.net>
55305
55306         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
55307         used by e.g., mingw.  From Bruno Haible.
55308
55309 2007-02-19  Bruno Haible  <bruno@clisp.org>
55310
55311         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
55312         warnings.
55313         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55314
55315 2007-02-19  Bruno Haible  <bruno@clisp.org>
55316
55317         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
55318         from mingw users.
55319
55320 2007-02-19  Bruno Haible  <bruno@clisp.org>
55321
55322         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
55323         warnings.
55324         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
55325
55326 2007-02-19  Jim Meyering  <jim@meyering.net>
55327
55328         Don't use FD after a successful "fdopendir (fd)".
55329         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
55330         Reset it by calling dirfd on the just-obtained DIR*.
55331
55332         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
55333         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
55334
55335 2007-02-18  Bruno Haible  <bruno@clisp.org>
55336
55337         * lib/readlink.c: Include <unistd.h>.
55338         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
55339         HAVE_READLINK.
55340         * modules/readlink (Depends-on): Add unistd.
55341         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55342         (Include): Add <unistd.h>.
55343
55344         * lib/getlogin_r.h: Remove file.
55345         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
55346         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
55347         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
55348         HAVE_DECL_GETLOGIN_R.
55349         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
55350         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55351         (Include): Use <unistd.h> instead of getlogin_r.h.
55352
55353         * lib/getcwd.h: Remove file.
55354         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
55355         * lib/xgetcwd.c: Likewise.
55356         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
55357         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
55358         * modules/getcwd (Files): Remove lib/getcwd.h.
55359         (Depends-on): Add unistd.
55360         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55361         (Include): Use <unistd.h> instad of getcwd.h.
55362
55363         * lib/ftruncate.c: Include <unistd.h> first.
55364         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
55365         Set HAVE_FTRUNCATE.
55366         * modules/ftruncate (Depends-on): Add unistd.
55367         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55368
55369         * lib/fchdir.c: Include <unistd.h> first.
55370         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
55371         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
55372         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
55373         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55374         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
55375
55376         * lib/dup2.c: Include <unistd.h> first.
55377         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
55378         HAVE_DUP2.
55379         * modules/dup2 (Depends-on): Add unistd.
55380         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55381
55382         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
55383         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
55384         REPLACE_CHOWN. Don't define chown as a macro here.
55385         * modules/chown (Depends-on): Add unistd.
55386         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55387
55388         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
55389         Add definition for GL_LINK_WARNING.
55390         (chown, dup2): New declarations.
55391         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
55392         link warning.
55393         (ftruncate): New declaration.
55394         (getcwd): New declaration, taken from old getcwd.h.
55395         (getlogin_r): New declaration, taken from old getlogin_r.h.
55396         (readlink): New declaration.
55397         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
55398         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
55399         (gl_PREREQ_UNISTD): Remove macro.
55400         (gl_UNISTD_MODULE_INDICATOR): New macro.
55401         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
55402         many new variables. Don't set UNISTD_H.
55403         * modules/unistd (Description): Change.
55404         (Depends-on): Add link-warning.
55405         (configure.ac): Update.
55406         (Makefile.am): Create unistd.h always. Substitute many new variables
55407         into it.
55408
55409 2007-02-18  Bruno Haible  <bruno@clisp.org>
55410
55411         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
55412         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
55413         HAVE_GETSUBOPT.
55414         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
55415         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
55416         * lib/getsubopt.h: Remove file.
55417         * modules/getsubopt (Files): Remove lib/getsubopt.h.
55418         (Depends-on): Add stdlib.
55419         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55420         (Includes): Use <stdlib.h> instead of getsubopt.h.
55421         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
55422         Set HAVE_GETSUBOPT.
55423         * lib/getsubopt.c: Don't include getsubopt.h.
55424
55425 2007-02-18  Bruno Haible  <bruno@clisp.org>
55426
55427         * modules/fchdir (Depends-on): Add dup2.
55428
55429 2007-02-18  Bruno Haible  <bruno@clisp.org>
55430
55431         * lib/stdlib_.h: Handle glibc's special invocation convention
55432         specially.
55433
55434 2007-02-18  Bruno Haible  <bruno@clisp.org>
55435
55436         * modules/stdlib-tests: New file.
55437         * tests/test-stdlib.c: New file.
55438
55439         * modules/mkstemp (Files): Remove lib/mkstemp.h.
55440         (Depends-on): Add stdlib.
55441         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55442         (Includes): Use <stdlib.h> instead of mkstemp.h.
55443         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
55444         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
55445         * lib/mkstemp.c: Don't include mkstemp.h.
55446         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
55447         * lib/stdlib--.h: Don't include mkstemp.h.
55448
55449         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
55450         (Depends-on): Add stdlib.
55451         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55452         (Includes): Use <stdlib.h> instead of mkdtemp.h.
55453         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
55454         HAVE_MKDTEMP.
55455         * lib/mkdtemp.c: Don't include mkdtemp.h.
55456         * lib/clean-temp.c: Don't include mkdtemp.h.
55457
55458         * modules/exit (Files): Remove lib/exit.h.
55459         (Depends-on): Add stdlib.
55460         (Makefile.am): Remove lib_SOURCES.
55461         (Include): Use <stdlib.h> instead of exit.h.
55462         * lib/argmatch.c: Don't include exit.h.
55463         * lib/execute.c: Likewise.
55464         * lib/pagealign_alloc.c: Likewise.
55465         * lib/pipe.c: Likewise.
55466         * lib/wait-process.c: Likewise.
55467         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
55468         * lib/exitfail.c: Likewise.
55469         * lib/savewd.c: Likewise.
55470         * lib/xsetenv.c: Likewise.
55471
55472         * modules/stdlib: New file.
55473         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
55474         and extra comments about mkstemp().
55475         * lib/exit.h: Remove file.
55476         * lib/mkdtemp.h: Remove file.
55477         * lib/mkstemp.h: Remove file.
55478         * m4/stdlib_h.m4: New file.
55479         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
55480
55481 2007-02-18  Bruno Haible  <bruno@clisp.org>
55482
55483         * modules/math-tests: New file.
55484         * tests/test-math.c: New file.
55485
55486         * modules/math: New file.
55487         * modules/mathl (Files): Remove lib/mathl.h.
55488         (Depends-on): Add math.
55489         (Makefile.am): Don't mention mathl.h.
55490         (Include): Use <math.h> instead of mathl.h.
55491         * lib/math_.h: New file.
55492         * lib/mathl.h: Remove file.
55493         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
55494         mathl.h.
55495         * lib/asinl.c: Likewise.
55496         * lib/atanl.c: Likewise.
55497         * lib/ceill.c: Likewise.
55498         * lib/cosl.c: Likewise.
55499         * lib/expl.c: Likewise.
55500         * lib/floorl.c: Likewise.
55501         * lib/frexpl.c: Likewise.
55502         * lib/ldexpl.c: Likewise.
55503         * lib/logl.c: Likewise.
55504         * lib/sincosl.c: Likewise.
55505         * lib/sinl.c: Likewise.
55506         * lib/sqrtl.c: Likewise.
55507         * lib/tanl.c: Likewise.
55508         * lib/trigl.c: Likewise.
55509         * m4/math_h.m4: New file.
55510         * MODULES.html.sh (Mathematics): Add math.
55511
55512 2007-02-17  Bruno Haible  <bruno@clisp.org>
55513
55514         * modules/wctype-tests: New file.
55515         * tests/test-wctype.c: New file.
55516
55517         * modules/wchar-tests: New file.
55518         * tests/test-wchar.c: New file.
55519
55520         * modules/unistd-tests: New file.
55521         * tests/test-unistd.c: New file.
55522
55523         * modules/time-tests: New file.
55524         * tests/test-time.c: New file.
55525
55526         * modules/sysexits-tests: New file.
55527         * tests/test-sysexits.c: New file.
55528
55529         * modules/sys_time-tests: New file.
55530         * tests/test-sys_time.c: New file.
55531
55532         * modules/sys_stat-tests: New file.
55533         * tests/test-sys_stat.c: New file.
55534
55535         * modules/sys_socket-tests: New file.
55536         * tests/test-sys_socket.c: New file.
55537
55538         * modules/sys_select-tests: New file.
55539         * tests/test-sys_select.c: New file.
55540
55541         * modules/string-tests: New file.
55542         * tests/test-string.c: New file.
55543
55544         * modules/stdbool-tests: New file.
55545         * tests/test-stdbool.c: New file.
55546
55547         * modules/netinet_in-tests: New file.
55548         * tests/test-netinet_in.c: New file.
55549
55550         * modules/inttypes-tests: New file.
55551         * tests/test-inttypes.c: New file.
55552
55553         * modules/fcntl-tests: New file.
55554         * tests/test-fcntl.c: New file.
55555
55556         * modules/byteswap-tests: New file.
55557         * tests/test-byteswap.c: New file.
55558
55559         * modules/arpa_inet-tests: New file.
55560         * tests/test-arpa_inet.c: New file.
55561
55562 2007-02-17  Bruno Haible  <bruno@clisp.org>
55563
55564         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
55565         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
55566         if the corresponding module is not enabled. Emit link warnings if
55567         the function is used nevertheless.
55568         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
55569         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
55570         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
55571         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
55572         * modules/inttypes (Depends-on): Add link-warning.
55573         (Makefile.am): Copy the contents of build-aux/link-warning.h into
55574         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
55575         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
55576         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
55577         * modules/imaxdiv (configure.ac): Likewise.
55578         * modules/strtoimax (configure.ac): Likewise.
55579         * modules/strtoumax (configure.ac): Likewise.
55580
55581 2007-02-17  Bruno Haible  <bruno@clisp.org>
55582
55583         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
55584         gl_STRING_MODULE_INDICATOR_DEFAULTS.
55585         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
55586         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
55587
55588 2007-02-17  Bruno Haible  <bruno@clisp.org>
55589
55590         * modules/link-warning: New file.
55591         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
55592         * lib/string_.h (GL_LINK_WARNING): Remove definition.
55593         * modules/string (Depends-on): Add link-warning.
55594         (Makefile.am): Copy the contents of build-aux/link-warning.h into
55595         string.h.
55596         * MODULES.html.sh (Support for building libraries and executables): Add
55597         link-warning.
55598
55599 2007-02-17  Bruno Haible  <bruno@clisp.org>
55600
55601         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
55602         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
55603         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
55604         long lines.
55605
55606 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
55607             Bruno Haible  <bruno@clisp.org>
55608
55609         * modules/tmpfile: New file.
55610         * lib/tmpfile.c: New file.
55611         * m4/tmpfile.m4: New file.
55612         * MODULES.html.sh (func_all_modules): New section "Input/output".
55613
55614 2007-02-15  Bruno Haible  <bruno@clisp.org>
55615
55616         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
55617         (supports_delete_on_close): New function.
55618         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
55619
55620 2007-02-14  Bruno Haible  <bruno@clisp.org>
55621
55622         * modules/mbspcasecmp-tests: New file.
55623         * tests/test-mbspcasecmp.sh: New file.
55624         * tests/test-mbspcasecmp.c: New file.
55625
55626         New module mbspcasecmp.
55627         * modules/mbspcasecmp: New file.
55628         * lib/mbspcasecmp.c: New file.
55629         * lib/string_.h (strncasecmp): Change warning message.
55630         (mbspcasecmp): New declaration.
55631         * m4/mbspcasecmp.m4: New file.
55632         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55633         GNULIB_MBSPCASECMP.
55634         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
55635         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
55636
55637 2007-02-14  Bruno Haible  <bruno@clisp.org>
55638
55639         * modules/mbsncasecmp-tests: New file.
55640         * tests/test-mbsncasecmp.sh: New file.
55641         * tests/test-mbsncasecmp.c: New file.
55642
55643         New module mbsncasecmp.
55644         * modules/mbsncasecmp: New file.
55645         * lib/mbsncasecmp.c: New file.
55646         * lib/string_.h (mbsncasecmp): New declaration.
55647         * m4/mbsncasecmp.m4: New file.
55648         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55649         GNULIB_MBSNCASECMP.
55650         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
55651         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
55652
55653 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
55654
55655         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
55656         Verify that it doesn't overlap with our flags.
55657         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
55658         do not have the desired effect in multibyte locales; instead, use
55659         mbscasecmp.
55660         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
55661         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
55662         we don't require GNU fnmatch ourselves (if our users require it, they
55663         should do so explicitly).
55664
55665         Fix regex code so it doesn't rely on strcasecmp.
55666         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
55667         Otherwise, include gnulib's langinfo.h.
55668         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
55669         undesirable behavior in non-C locales.  Instead, rely on localecharset.
55670         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
55671         * modules/regex (FILES): Remove m4/codeset.m4.
55672         (Depends-on): Add localcharset.  Remove strcase.
55673
55674 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55675
55676         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
55677         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
55678
55679 2007-02-13  Bruno Haible  <bruno@clisp.org>
55680
55681         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
55682         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55683
55684 2007-02-12  Bruno Haible  <bruno@clisp.org>
55685
55686         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
55687         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
55688         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
55689         time warning rather than a link error.
55690
55691 2007-02-12  Bruno Haible  <bruno@clisp.org>
55692
55693         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
55694         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
55695         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55696
55697 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
55698
55699         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
55700         args, not 2.
55701
55702 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
55703
55704         New module 'time', so that apps can include <time.h> as per
55705         POSIX and GNU instead of separate include files like time_r.h
55706         and timegm.h.  This implementation tries out a simpler approach
55707         for replacing decls in standard include files (as compared to
55708         the string module), somewhat as an experiment.
55709
55710         * config/srclist.txt: Comment out mktime.c for now.
55711         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
55712         since it doesn't apply any more.  Use generic wording instead.
55713         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
55714         'time'.
55715         * lib/time_.h, m4/time_h.m4, modules/time: New files.
55716         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
55717         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
55718         Don't include <sys/types.h>; no longer needed since we assume C89.
55719         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
55720         * lib/strftime.c: Likewise.
55721         * lib/time_r.c: Likewise.
55722         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
55723         * lib/nanosleep.c: Include <time.h> first, to check interface.
55724         * lib/strptime.c: Likewise.
55725         * lib/time_r.c: Likewise.
55726         * lib/timegm.c: Likewise.
55727         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
55728         needed.
55729         * lib/timegm.c: Don't include timegm.h; no longer needed.
55730         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
55731         time.h now handles any problems in that area.
55732         (struct timespec, nanosleep): Remove; time.h now arranges for these.
55733         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
55734         that time.h defines struct timespec.
55735         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
55736         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
55737         handles that.
55738         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
55739         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
55740         needed.  Set REPLACE_LOCALTIME.
55741         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
55742         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
55743         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
55744         nanosleep; time_h.m4 now does that.  Don't require
55745         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
55746         module handles this now.
55747         * modules/getdate (Depends-on): Remove timespec.  Add time.
55748         * modules/nanosleep (Depends-on): Likewise.
55749         * modules/stat-time (Depends-on): Likewise.
55750         * modules/nanosleep (Include): Include time.h, not timespec.h.
55751         * modules/strptime (Files): Remove lib/strptime.h.
55752         (Depends-on): Add extensions, time.
55753         (Include): Include time.h, not strptime.h.
55754         * modules/time_r (Files): Remove lib/time_r.h.
55755         (Depends-on): Add time.
55756         (Include): Include time.h, not time_r.h.
55757         * modules/timegm: Likewise.
55758         * modules/timespec (Description): Now does timespec-related decls
55759         of our own, instead of struct timespec itself.
55760         (Depends-on): Add time; remove extensions.
55761         (Maintainer): Add self.
55762         * modules/utimecmp (Depends-on): Add time; remove timespec.
55763         * modules/utimens (Depends-on): Likewise.
55764         * modules/xnanosleep (Depends-on): Likewise.
55765
55766 2007-02-11  Bruno Haible  <bruno@clisp.org>
55767
55768         * lib/c-strstr.c: Include allocsa.h.
55769         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
55770         * lib/c-strcasestr.c: Include allocsa.h.
55771         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
55772         * lib/strcasestr.c: Include allocsa.h.
55773         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
55774         * lib/mbsstr.c: Include allocsa.h.
55775         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
55776         allocsa/freesa instead of malloc/free.
55777         * lib/mbscasestr.c: Include allocsa.h.
55778         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
55779         allocsa/freesa instead of malloc/free.
55780         * modules/c-strstr (Depends-on): Add allocsa.
55781         * modules/c-strcasestr (Depends-on): Likewise.
55782         * modules/strcasestr (Depends-on): Likewise.
55783         * modules/mbsstr (Depends-on): Likewise.
55784         * modules/mbscasestr (Depends-on): Likewise.
55785
55786 2007-02-11  Bruno Haible  <bruno@clisp.org>
55787
55788         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
55789
55790         * modules/mbsspn-tests: New file.
55791         * tests/test-mbsspn.sh: New file.
55792         * tests/test-mbsspn.c: New file.
55793
55794 2007-02-11  Bruno Haible  <bruno@clisp.org>
55795
55796         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
55797
55798         * modules/mbspbrk-tests: New file.
55799         * tests/test-mbspbrk.sh: New file.
55800         * tests/test-mbspbrk.c: New file.
55801
55802 2007-02-11  Bruno Haible  <bruno@clisp.org>
55803
55804         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
55805         unneeded cast.
55806
55807         * modules/mbscspn-tests: New file.
55808         * tests/test-mbscspn.sh: New file.
55809         * tests/test-mbscspn.c: New file.
55810
55811 2007-02-11  Bruno Haible  <bruno@clisp.org>
55812
55813         * modules/mbscasecmp-tests: New file.
55814         * tests/test-mbscasecmp.sh: New file.
55815         * tests/test-mbscasecmp.c: New file.
55816
55817 2007-02-11  Bruno Haible  <bruno@clisp.org>
55818
55819         Ensure O(n) worst-case complexity of mbscasestr.
55820         * lib/mbscasestr.c: Include stdbool.h.
55821         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
55822         functions.
55823         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
55824         the bookkeeping indicates that it's worth it.
55825         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
55826
55827         * modules/mbscasestr-tests: New file.
55828         * tests/test-mbscasestr1.c: New file.
55829         * tests/test-mbscasestr2.sh: New file.
55830         * tests/test-mbscasestr2.c: New file.
55831         * tests/test-mbscasestr3.sh: New file.
55832         * tests/test-mbscasestr3.c: New file.
55833         * tests/test-mbscasestr4.sh: New file.
55834         * tests/test-mbscasestr4.c: New file.
55835         * m4/locale-tr.m4: New file.
55836
55837 2007-02-11  Bruno Haible  <bruno@clisp.org>
55838
55839         Ensure O(n) worst-case complexity of mbsstr.
55840         * lib/mbsstr.c: Include stdbool.h.
55841         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
55842         functions.
55843         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
55844         bookkeeping indicates that it's worth it.
55845         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
55846
55847         * modules/mbsstr-tests: New file.
55848         * tests/test-mbsstr1.c: New file.
55849         * tests/test-mbsstr2.sh: New file.
55850         * tests/test-mbsstr2.c: New file.
55851         * tests/test-mbsstr3.sh: New file.
55852         * tests/test-mbsstr3.c: New file.
55853         * m4/locale-fr.m4: New file.
55854
55855 2007-02-11  Bruno Haible  <bruno@clisp.org>
55856
55857         * lib/mbsrchr.c (mbsrchr): Fix bug.
55858
55859         * modules/mbsrchr-tests: New file.
55860         * tests/test-mbsrchr.sh: New file.
55861         * tests/test-mbsrchr.c: New file.
55862
55863 2007-02-11  Bruno Haible  <bruno@clisp.org>
55864
55865         * lib/mbschr.c (mbschr): Fix bug.
55866
55867         * modules/mbschr-tests: New file.
55868         * tests/test-mbschr.sh: New file.
55869         * tests/test-mbschr.c: New file.
55870         * m4/locale-zh.m4: New file.
55871
55872 2007-02-11  Bruno Haible  <bruno@clisp.org>
55873
55874         Support for copying multibyte string iterators.
55875         * lib/mbiter.h: Include <string.h>.
55876         (mbiter_multi_copy): New function.
55877         (mbi_copy): New macro.
55878         * lib/mbuiter.h: Include <string.h>.
55879         (mbuiter_multi_copy): New function.
55880         (mbui_copy): New macro.
55881
55882 2007-02-11  Bruno Haible  <bruno@clisp.org>
55883
55884         New module mbslen.
55885         * modules/mbslen: New file.
55886         * lib/mbslen.c: New file.
55887         * lib/string_.h (mbslen): New declaration.
55888         * m4/mbslen.m4: New file.
55889         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55890         GNULIB_MBSLEN.
55891         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
55892         * MODULES.html.sh (Internationalization functions): Add mbslen.
55893
55894 2007-02-11  Bruno Haible  <bruno@clisp.org>
55895
55896         Ensure O(n) worst-case complexity of strcasestr substitute.
55897         * lib/strcasestr.c: Include stdbool.h.
55898         (knuth_morris_pratt): New function.
55899         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
55900         bookkeeping indicates that it's worth it.
55901         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
55902
55903         * modules/strcasestr-tests: New file.
55904         * tests/test-strcasestr.c: New file.
55905
55906 2007-02-11  Bruno Haible  <bruno@clisp.org>
55907
55908         Ensure O(n) worst-case complexity of c_strcasestr.
55909         * lib/c-strcasestr.c: Include stdbool.h, string.h.
55910         (knuth_morris_pratt): New function.
55911         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
55912         the bookkeeping indicates that it's worth it.
55913         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
55914
55915         * modules/c-strcasestr-tests: New file.
55916         * tests/test-c-strcasestr.c: New file.
55917
55918 2007-02-11  Bruno Haible  <bruno@clisp.org>
55919
55920         Ensure O(n) worst-case complexity of c_strstr.
55921         * lib/c-strstr.c: Include stdbool.h, string.h.
55922         (knuth_morris_pratt): New function.
55923         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
55924         bookkeeping indicates that it's worth it.
55925         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
55926
55927         * lib/c-strstr.c: Complete rewrite for maintainability.
55928
55929         * modules/c-strstr-tests: New file.
55930         * tests/test-c-strstr.c: New file.
55931
55932 2007-02-11  Bruno Haible  <bruno@clisp.org>
55933
55934         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
55935         5.2.1 and earlier, whereby \055 was treated just like the range
55936         delimiter '-'.
55937         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
55938
55939 2007-02-08  Bruno Haible  <bruno@clisp.org>
55940
55941         * modules/regex (Depends-on): Add stdbool.
55942         Reported by Dalibor Topic <robilad@kaffe.org>.
55943
55944 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
55945
55946         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
55947         Prefer returning from main to exiting from it.
55948         Remove unnecessary parens after sizeof.
55949
55950 2007-02-05  Bruno Haible  <bruno@clisp.org>
55951
55952         New module mbssep.
55953         * modules/mbssep: New file.
55954         * lib/mbssep.c: New file.
55955         * lib/string_.h (strsep): Add a conditional link warning.
55956         (mbssep): New declaration.
55957         * m4/mbssep.m4: New file.
55958         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55959         GNULIB_MBSSEP.
55960         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
55961         * MODULES.html.sh (Internationalization functions): Add mbssep.
55962
55963 2007-02-05  Bruno Haible  <bruno@clisp.org>
55964
55965         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
55966         Optimize search in case of 1 delimiter.
55967
55968 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
55969
55970         * lib/acl.h: Include sys/types.h before sys/acl.h.
55971
55972 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
55973
55974         Merge upstream fix for glibc bugzilla #3957:
55975
55976         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
55977
55978         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
55979         bit for RE_HAT_LISTS_NOT_NEWLINE.
55980         (build_charclass_op): Remove bogus comment.
55981
55982 2007-02-05  Simon Josefsson  <simon@josefsson.org>
55983
55984         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
55985
55986 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
55987
55988         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
55989         * lib/memmem.c [!defined _LIBC]: Include config.h.
55990
55991 2007-02-04  Bruno Haible  <bruno@clisp.org>
55992
55993         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
55994         warning message.
55995
55996 2007-02-04  Bruno Haible  <bruno@clisp.org>
55997
55998         New module mbstok_r.
55999         * modules/mbstok_r: New file.
56000         * lib/mbstok_r.c: New file.
56001         * lib/string_.h (strtok_r): Change argument names to match the
56002         comments. Add a conditional link warning.
56003         (mbstok_r): New declaration.
56004         * m4/mbstok_r.m4: New file.
56005         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56006         GNULIB_MBSTOK_R.
56007         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
56008         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
56009
56010 2007-02-04  Bruno Haible  <bruno@clisp.org>
56011
56012         New module mbsspn.
56013         * modules/mbsspn: New file.
56014         * lib/mbsspn.c: New file.
56015         * lib/string_.h (strspn): Add a conditional link warning.
56016         (mbsspn): New declaration.
56017         * m4/mbsspn.m4: New file.
56018         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56019         GNULIB_MBSSPN.
56020         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
56021         * MODULES.html.sh (Internationalization functions): Add mbsspn.
56022
56023 2007-02-04  Bruno Haible  <bruno@clisp.org>
56024
56025         New module mbspbrk.
56026         * modules/mbspbrk: New file.
56027         * lib/mbspbrk.c: New file.
56028         * lib/string_.h (strpbrk): Add a conditional link warning.
56029         (mbspbrk): New declaration.
56030         * m4/mbspbrk.m4: New file.
56031         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56032         GNULIB_MBSPBRK.
56033         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
56034         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
56035
56036 2007-02-04  Bruno Haible  <bruno@clisp.org>
56037
56038         New module mbscspn.
56039         * modules/mbscspn: New file.
56040         * lib/mbscspn.c: New file.
56041         * lib/string_.h (strcspn): Add a conditional link warning.
56042         (mbscspn): New declaration.
56043         * m4/mbscspn.m4: New file.
56044         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56045         GNULIB_MBSCSPN.
56046         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
56047         * MODULES.html.sh (Internationalization functions): Add mbscspn.
56048
56049 2007-02-04  Bruno Haible  <bruno@clisp.org>
56050
56051         New module mbscasestr, reduced goal of strcasestr.
56052         * modules/mbscasestr: New file.
56053         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
56054         (mbscasestr): Renamed from strcasestr.
56055         * lib/strcasestr.c: Don't include mbuiter.h.
56056         (strcasestr): Remove support for multibyte locales.
56057         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
56058         Change the conditional link warning.
56059         (mbscasestr): New declaration.
56060         * m4/mbscasestr.m4: New file.
56061         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
56062         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
56063         REPLACE_STRCASESTR.
56064         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
56065         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
56066         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
56067         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
56068         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
56069         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
56070         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
56071         (Depends-on): Remove mbuiter.
56072         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
56073
56074 2007-02-04  Bruno Haible  <bruno@clisp.org>
56075
56076         Simplify handling of strncasecmp.
56077         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
56078         the conditional link warning.
56079         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
56080         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
56081         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
56082         * modules/strcase (configure.ac): Don't invoke
56083         gl_STRING_MODULE_INDICATOR.
56084         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
56085
56086 2007-02-04  Bruno Haible  <bruno@clisp.org>
56087
56088         New module mbscasecmp, reduced goal of strcasecmp.
56089         * modules/mbscasecmp: New file.
56090         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
56091         (mbscasecmp): Renamed from strcasecmp.
56092         * lib/strcasecmp.c: Don't include mbuiter.h.
56093         (strcasecmp): Remove support for multibyte locales.
56094         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
56095         Change the conditional link warning.
56096         (mbscasecmp): New declaration.
56097         * m4/mbscasecmp.m4: New file.
56098         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
56099         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
56100         REPLACE_STRCASECMP.
56101         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
56102         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56103         GNULIB_MBSCASECMP.
56104         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
56105         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
56106         * modules/strcase (Files): Remove m4/mbrtowc.m4.
56107         (Depends-on): Remove mbuiter.
56108         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
56109
56110 2007-02-04  Bruno Haible  <bruno@clisp.org>
56111
56112         New module mbsstr. Remove module strstr.
56113         * modules/mbsstr: New file.
56114         * modules/strstr: Remove file.
56115         * lib/mbsstr.c: Renamed from lib/strstr.c.
56116         (mbsstr): Renamed from strstr.
56117         * lib/string_.h (strstr): Remove declaration. Change the conditional
56118         link warning.
56119         (mbsstr): New declaration.
56120         * m4/mbsstr.m4: New file.
56121         * m4/strstr.m4: Remove file.
56122         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
56123         REPLACE_STRSTR.
56124         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
56125         Don't initialize GNULIB_STRSTR.
56126         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
56127         substitute GNULIB_STRSTR and REPLACE_STRSTR.
56128         * MODULES.html.sh (Internationalization functions): Add mbsstr.
56129         (Support for systems lacking ANSI C 89): Remove strstr.
56130
56131 2007-02-04  Bruno Haible  <bruno@clisp.org>
56132
56133         New module mbsrchr.
56134         * modules/mbsrchr: New file.
56135         * lib/mbsrchr.c: New file.
56136         * lib/string_.h (strrchr): Add a conditional link warning.
56137         (mbsrchr): New declaration.
56138         * m4/mbsrchr.m4: New file.
56139         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56140         GNULIB_MBSRCHR.
56141         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
56142         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
56143
56144 2007-02-04  Bruno Haible  <bruno@clisp.org>
56145
56146         New module mbschr.
56147         * modules/mbschr: New file.
56148         * lib/mbschr.c: New file.
56149         * lib/string_.h (strchr): Add a conditional link warning.
56150         (mbschr): New declaration.
56151         * m4/mbschr.m4: New file.
56152         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56153         GNULIB_MBSCHR.
56154         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
56155         * MODULES.html.sh (Internationalization functions): Add mbschr.
56156
56157 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
56158
56159         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
56160
56161         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
56162
56163 2007-02-04  Bruno Haible  <bruno@clisp.org>
56164
56165         New module description section 'configure.ac-early'.
56166         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
56167         (func_get_autoconf_early_snippet): New function.
56168         (func_import, func_create_testdir): Use it. Remove special cases for
56169         modules 'extensions' and 'lock'.
56170         * modules/extensions (configure.ac-early): Require
56171         gl_USE_SYSTEM_EXTENSIONS.
56172         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
56173
56174 2007-02-04  Bruno Haible  <bruno@clisp.org>
56175
56176         Make use of gcj-4.3's -fsource and -ftarget option.
56177         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
56178         and if so try the options -fsource and -ftarget.
56179         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
56180         source_version, ftarget_option, target_version arguments.
56181         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
56182         (is_envjavac_oldgcj_14_14_usable): Renamed from
56183         is_envjavac_gcj_14_14_usable.
56184         (is_envjavac_oldgcj_14_13_usable): Renamed from
56185         is_envjavac_gcj_14_13_usable.
56186         (is_gcj_present): Update.
56187         (is_gcj_43, is_gcj43_usable): New functions.
56188         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
56189         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
56190         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
56191         try the options -fsource and -ftarget.
56192
56193 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
56194
56195         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
56196         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
56197         larger value.
56198
56199 2007-02-03  Jim Meyering  <jim@meyering.net>
56200
56201         Give tools a better chance to allocate space for very large buffers.
56202         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
56203
56204         Make pwd and readlink work also when run with an unreadable parent dir
56205         on systems with openat support.
56206         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
56207         provided getcwd function, even when we have openat support.
56208         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
56209
56210 2007-02-02  Bruno Haible  <bruno@clisp.org>
56211
56212         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
56213         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
56214         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
56215         portability problems if one of these functions is only used on specific
56216         platforms.
56217         Reported by Paul Eggert.
56218
56219 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
56220
56221         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
56222         is causing more trouble than it's curing.
56223         * lib/regex_internal.h (__mempcpy): Remove.
56224         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
56225         (and make the code a tad smaller to boot).
56226         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
56227
56228 2007-02-02  Jim Meyering  <jim@meyering.net>
56229
56230         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
56231         section, not in the Makefile.am: one.
56232
56233 2007-02-02  Eric Blake  <ebb9@byu.net>
56234
56235         * lib/strchrnul.c: Always include config.h first.
56236
56237         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
56238         gnulib strstr is not necessary here.
56239
56240 2007-02-02  Simon Josefsson  <simon@josefsson.org>
56241
56242         * m4/socklen.m4: Fix typo.
56243
56244 2007-02-02  Eric Blake  <ebb9@byu.net>
56245
56246         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
56247         * modules/netinet_in (Makefile.am): Likewise.
56248
56249 2007-02-01  Bruno Haible  <bruno@clisp.org>
56250
56251         * lib/string_.h (GL_LINK_WARNING): New macro.
56252         (strcasecmp, strstr, strcasestr): If provided by the system,
56253         conditionally define as a macro that leads to a warning instead of to
56254         an error.
56255         (strncasecmp): Conditionally define as a macro that leads to a warning.
56256
56257 2007-02-01  Karl Berry  <karl@gnu.org>
56258
56259         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
56260
56261 2007-02-01  Bruno Haible  <bruno@clisp.org>
56262
56263         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
56264         renamings.
56265
56266 2007-02-01  Eric Blake  <ebb9@byu.net>
56267
56268         * modules/regex (Depends-on): Revert dependence on mempcpy.
56269         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
56270         module's definition of mempcpy.
56271         Reported by Paul Eggert.
56272
56273 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
56274
56275         * lib/string_.h: If the gnulib module XYZ is not present, undefine
56276         the symbol XYZ before redefining it.  This fixes a problem with
56277         programs that don't use XYZ, when compiled on systems that define
56278         XYZ to something else.
56279
56280 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
56281
56282         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
56283         occurs when "mkdir -m foo" creates a setgid directory that is (1)
56284         writeable to group or other and (2) is intended to have a special
56285         mode bit that is set or cleared.  In such a case, the directory
56286         should be neither group- nor other-writeable until the special
56287         mode bits are right.
56288
56289 2007-01-31  Eric Blake  <ebb9@byu.net>
56290
56291         * modules/mountlist (Depends-on): Add strstr.
56292
56293         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
56294         bug.
56295         * modules/string (Makefile.am): Remove redundant replacement.
56296         * modules/regex (Depends-on): Add mempcpy.
56297
56298 2007-01-31  Bruno Haible  <bruno@clisp.org>
56299
56300         New module description field 'Link'.
56301         * gnulib-tool (func_usage): Document --extract-link-directive.
56302         (sed_extract_prog): Recognize 'Link' directive.
56303         (func_get_link_directive): New function.
56304         (func_import): Show summary of link directives.
56305         Handle --extract-link-directive option.
56306         * modules/acl (Link): New section.
56307         * modules/clock-time (Link): New section.
56308         * modules/euidaccess (Link): New section.
56309         * modules/gettext (Link): New section.
56310         * modules/iconv (Link): New section.
56311         * modules/lock (Link): New section.
56312         * modules/nanosleep (Link): New section.
56313         * modules/readline (Link): New section.
56314
56315 2007-01-27  Bruno Haible  <bruno@clisp.org>
56316
56317         Enforce the use of gnulib modules for unportable <string.h> functions.
56318         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
56319         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
56320         (gl_HEADER_STRING_H_BODY): Require it.
56321         * lib/string_.h: If the gnulib module XYZ is not present, redefine
56322         the symbol XYZ to one that gives a link error.
56323         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
56324         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
56325         * modules/mempcpy (configure.ac): Likewise.
56326         * modules/memrchr (configure.ac): Likewise.
56327         * modules/stpcpy (configure.ac): Likewise.
56328         * modules/stpncpy (configure.ac): Likewise.
56329         * modules/strcase (configure.ac): Likewise.
56330         * modules/strcasestr (configure.ac): Likewise.
56331         * modules/strchrnul (configure.ac): Likewise.
56332         * modules/strdup (configure.ac): Likewise.
56333         * modules/strndup (configure.ac): Likewise.
56334         * modules/strnlen (configure.ac): Likewise.
56335         * modules/strpbrk (configure.ac): Likewise.
56336         * modules/strsep (configure.ac): Likewise.
56337         * modules/strstr (configure.ac): Likewise.
56338         * modules/strtok_r (configure.ac): Likewise.
56339
56340 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
56341
56342         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
56343
56344 2007-01-30  Jim Meyering  <jim@meyering.net>
56345
56346         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
56347
56348 2007-01-29  Bruno Haible  <bruno@clisp.org>
56349
56350         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
56351         * lib/execute.c: Likewise.
56352         * lib/pipe.c: Likewise.
56353         * lib/printf-args.h: Likewise.
56354         * lib/printf-args.c: Likewise.
56355         * lib/printf-parse.c: Likewise.
56356         * lib/vasnprintf.c: Likewise.
56357
56358 2007-01-29  Eric Blake  <ebb9@byu.net>
56359
56360         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
56361         declaration.
56362
56363 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
56364
56365         * lib/strptime.h (strptime): Use 'restrict' for args where
56366         POSIX requires this.
56367         * lib/strptime.c (strptime): Likewise.
56368         Change license notice from LGPL to GPL, since gnulib-tool will
56369         change this as needed.
56370         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
56371         defined.
56372         Include "strptime.h" first, to check interface.
56373         Do not #undef _LIBC and _NL_CURRENT.
56374         Do not include <stdlib.h>; no longer needed.
56375         Include "time_r.h" and declare ptime_locale_status
56376         only if _LIBC is not defined.
56377         (__P): Remove unused macro.
56378         (match_string): Bring back glibc version, but use it only if _LIBC
56379         is defined.
56380         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
56381         Remove unnecessary assertion and abort() call.
56382         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
56383         * m4/strptime.m4: Fix serial number comment.
56384         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
56385         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
56386         (Depends-on): Add time_r.
56387
56388 2007-01-29  Bruno Haible  <bruno@clisp.org>
56389
56390         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56391         strptime.
56392         * modules/strptime (Depends-on): Add stdbool.
56393         * lib/strptime.h: Include <time.h> always. Add comments.
56394
56395 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
56396
56397         * modules/strptime: New file.
56398         * lib/strptime.h: New file.
56399         * lib/strptime.c: New file.
56400         * m4/strptime.m4: New file.
56401
56402 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
56403
56404         * MODULES.html.sh: New module mpsort.
56405         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
56406
56407         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
56408         a circularity problem with HP-UX ia64 reported by Bob Proulx in
56409         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
56410         All uses changed.
56411         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
56412         All uses changed.
56413         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
56414         to _Restrict_.
56415         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
56416         the parameter matches the prototype.
56417
56418 2007-01-28  Jim Meyering  <jim@meyering.net>
56419
56420         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
56421         sys/time.h here, reverting that part of the previous patch:
56422         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
56423
56424 2007-01-28  Bruno Haible  <bruno@clisp.org>
56425
56426         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
56427         value of $(SYS_TIME_H).
56428         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
56429         remove it conditionally, too. [added by Jim Meyering]
56430         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
56431         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
56432         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
56433         GETTIMEOFDAY_REPLACEMENT to 1.
56434
56435 2007-01-28  Bruno Haible  <bruno@clisp.org>
56436
56437         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
56438         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
56439         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
56440         Set UNISTD_H instead of UNISTD_H2.
56441         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
56442
56443 2007-01-28  Bruno Haible  <bruno@clisp.org>
56444
56445         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
56446         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
56447
56448 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56449
56450         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
56451         (func_create_testdir): Ensure C locale for `grep' and `tr'
56452         character ranges.
56453         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
56454         ACLOCAL_AMFLAGS parsing state machine.
56455
56456 2007-01-27  Bruno Haible  <bruno@clisp.org>
56457
56458         * modules/unistr/base: Update.
56459
56460 2007-01-27  Bruno Haible  <bruno@clisp.org>
56461
56462         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
56463         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
56464         * modules/unistr/u32-mbtouc-unsafe: Renamed from
56465         modules/unistr/u32-mbtouc.
56466         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
56467         * lib/unistr.h: Update.
56468         * lib/linebreak.c: Update.
56469         * modules/unistr/u32-mbtouc: Renamed from
56470         modules/unistr/u32-mbtouc-safe.
56471         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
56472         * lib/unistr.h: Update.
56473         * lib/unistr/u32-to-u8.c: Update.
56474         * lib/unistr/u32-to-u16.c: Update.
56475
56476 2007-01-27  Bruno Haible  <bruno@clisp.org>
56477
56478         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
56479         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
56480         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
56481         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
56482         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
56483         * modules/unistr/u16-mbtouc-unsafe: Renamed from
56484         modules/unistr/u16-mbtouc.
56485         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
56486         * lib/unistr.h: Update.
56487         * lib/linebreak.c: Update.
56488         * modules/linebreak: Update.
56489         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
56490         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
56491         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
56492         * modules/unistr/u16-mbtouc: Renamed from
56493         modules/unistr/u16-mbtouc-safe.
56494         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
56495         * lib/unistr.h: Update.
56496         * lib/unistr/u16-to-u8.c: Update.
56497         * modules/unistr/u16-to-u8: Update.
56498         * lib/unistr/u16-to-u32.c: Update.
56499         * modules/unistr/u16-to-u32: Update.
56500
56501 2007-01-27  Bruno Haible  <bruno@clisp.org>
56502
56503         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
56504         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
56505         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
56506         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
56507         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
56508         * modules/unistr/u8-mbtouc-unsafe: Renamed from
56509         modules/unistr/u8-mbtouc.
56510         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
56511         * lib/unistr.h: Update.
56512         * lib/striconveh.c: Update.
56513         * modules/striconveh: Update.
56514         * lib/linebreak.c: Update.
56515         * modules/linebreak: Update.
56516         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
56517         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
56518         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
56519         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
56520         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
56521         * lib/unistr.h: Update.
56522         * lib/striconveh.c: Update.
56523         * modules/striconveh: Update.
56524         * lib/unistr/u8-to-u16.c: Update.
56525         * modules/unistr/u8-to-u16: Update.
56526         * lib/unistr/u8-to-u32.c: Update.
56527         * modules/unistr/u8-to-u32: Update.
56528
56529 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56530
56531         Sync from Libtool.
56532         * lib/argz.c: Do not include strings.h nor memory.h, include
56533         string.h unconditionally.  Patch by Simon Josefsson.
56534
56535 2007-01-27  Bruno Haible  <bruno@clisp.org>
56536
56537         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
56538         from gl_HEADER_STRING_H_BODY.
56539         (gl_HEADER_STRING_H_BODY): Require it.
56540         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
56541         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
56542         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
56543         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
56544         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
56545         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
56546         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56547         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
56548         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
56549         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
56550         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
56551         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
56552         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
56553         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56554         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
56555
56556 2007-01-27  Bruno Haible  <bruno@clisp.org>
56557
56558         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
56559         check_PROGRAMS into noinst_PROGRAMS.
56560         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
56561         check_PROGRAMS in this case.
56562         (func_import): Set for_test to false.
56563         (func_create_testdir): Set for_test to true.
56564
56565 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
56566             Bruno Haible  <bruno@clisp.org>
56567
56568         * modules/strcasestr (Files): Remove lib/strcasestr.h.
56569         (Depends-on): Add string.
56570         (Includes): Use <string.h> instead of strcasestr.h.
56571         * modules/string (Makefile.am): Also substitute the value of
56572         REPLACE_STRCASESTR.
56573         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
56574         assume strcasestr is declared in <string.h> not <strings.h>. Also
56575         set REPLACE_STRCASESTR.
56576         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
56577         REPLACE_STRCASESTR.
56578         * lib/strcasestr.h: Remove file.
56579         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
56580         * lib/string_.h (strcasestr): New declaration.
56581
56582 2007-01-27  Bruno Haible  <bruno@clisp.org>
56583
56584         * lib/string_.h: Use 'extern'.
56585
56586 2007-01-27  Jim Meyering  <jim@meyering.net>
56587
56588         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
56589         of set-but-not-used local, "q".
56590
56591         * lib/mempcpy.c: Include <config.h> before <string.h>.
56592         This fixes a compilation error on HP-UX, due to the system's
56593         "restrict"-using mempcpy prototype.
56594
56595 2007-01-26  Bruno Haible  <bruno@clisp.org>
56596
56597         Small optimization.
56598         * lib/javacomp.c: Include c-strstr.h.
56599          (is_envjavac_gcj): Use c_strstr instead of strstr.
56600         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
56601
56602 2007-01-26  Bruno Haible  <bruno@clisp.org>
56603
56604         * MODULES.html.sh (Unicode string functions): Add the new modules.
56605
56606         * modules/uniconv/u32-strconv-to-locale: New file.
56607         * lib/uniconv/u32-strconv-to-locale.c: New file.
56608
56609         * modules/uniconv/u16-strconv-to-locale: New file.
56610         * lib/uniconv/u16-strconv-to-locale.c: New file.
56611
56612         * modules/uniconv/u8-strconv-to-locale: New file.
56613         * lib/uniconv/u8-strconv-to-locale.c: New file.
56614
56615         * modules/uniconv/u32-strconv-from-locale: New file.
56616         * lib/uniconv/u32-strconv-from-locale.c: New file.
56617
56618         * modules/uniconv/u16-strconv-from-locale: New file.
56619         * lib/uniconv/u16-strconv-from-locale.c: New file.
56620
56621         * modules/uniconv/u8-strconv-from-locale: New file.
56622         * lib/uniconv/u8-strconv-from-locale.c: New file.
56623
56624         * modules/uniconv/u32-strconv-to-enc: New file.
56625         * lib/uniconv/u32-strconv-to-enc.c: New file.
56626         * modules/uniconv/u32-strconv-to-enc-tests: New file.
56627         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
56628
56629         * modules/uniconv/u16-strconv-to-enc: New file.
56630         * lib/uniconv/u16-strconv-to-enc.c: New file.
56631         * lib/uniconv/u-strconv-to-enc.h: New file.
56632         * modules/uniconv/u16-strconv-to-enc-tests: New file.
56633         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
56634
56635         * modules/uniconv/u8-strconv-to-enc: New file.
56636         * lib/uniconv/u8-strconv-to-enc.c: New file.
56637         * modules/uniconv/u8-strconv-to-enc-tests: New file.
56638         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
56639
56640         * modules/uniconv/u32-strconv-from-enc: New file.
56641         * lib/uniconv/u32-strconv-from-enc.c: New file.
56642         * modules/uniconv/u32-strconv-from-enc-tests: New file.
56643         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
56644
56645         * modules/uniconv/u16-strconv-from-enc: New file.
56646         * lib/uniconv/u16-strconv-from-enc.c: New file.
56647         * modules/uniconv/u16-strconv-from-enc-tests: New file.
56648         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
56649
56650         * modules/uniconv/u8-strconv-from-enc: New file.
56651         * lib/uniconv/u8-strconv-from-enc.c: New file.
56652         * lib/uniconv/u-strconv-from-enc.h: New file.
56653         * modules/uniconv/u8-strconv-from-enc-tests: New file.
56654         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
56655
56656         * modules/uniconv/u32-conv-from-enc: New file.
56657         * lib/uniconv/u32-conv-from-enc.c: New file.
56658         * modules/uniconv/u32-conv-from-enc-tests: New file.
56659         * tests/uniconv/test-u32-conv-from-enc.c: New file.
56660
56661         * modules/uniconv/u16-conv-from-enc: New file.
56662         * lib/uniconv/u16-conv-from-enc.c: New file.
56663         * lib/uniconv/u-conv-from-enc.h: New file.
56664         * modules/uniconv/u16-conv-from-enc-tests: New file.
56665         * tests/uniconv/test-u16-conv-from-enc.c: New file.
56666
56667         * modules/uniconv/u8-conv-from-enc: New file.
56668         * lib/uniconv/u8-conv-from-enc.c: New file.
56669         * modules/uniconv/u8-conv-from-enc-tests: New file.
56670         * tests/uniconv/test-u8-conv-from-enc.c: New file.
56671
56672         * modules/uniconv/base: New file.
56673         * lib/uniconv.h: New file.
56674
56675 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
56676
56677         * doc/gnulib-tool.texi (Initial import): Update to match current
56678         behavior with strdup module.
56679         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
56680         * lib/memmem.h: Remove; all uses removed.  This is now done
56681         by <string.h>.
56682         * lib/mempcpy.h: Likewise.
56683         * lib/memrchr.h: Likewise.
56684         * lib/stpcpy.h: Likewise.
56685         * lib/stpncpy.h: Likewise.
56686         * lib/strcase.h: Likewise.
56687         * lib/strchrnul.h: Likewise.
56688         * lib/strdup.h: Likewise.
56689         * lib/strndup.h: Likewise.
56690         * lib/strnlen.h: Likewise.
56691         * lib/strpbrk.h: Likewise.
56692         * lib/strsep.h: Likewise.
56693         * lib/strstr.h: Likewise.
56694         * lib/strtok_r.h: Likewise.
56695         * lib/string_.h: New file.
56696         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
56697         Rely on <string.h> instead.
56698         * lib/canon-host.c: Likewise.
56699         * lib/chdir-long.c: Likewise.
56700         * lib/concatpath.c: Likewise.
56701         * lib/exclude.c: Likewise.
56702         * lib/fchdir.c: Likewise.
56703         * lib/getaddrinfo.c: Likewise.
56704         * lib/getcwd.c: Likewise.
56705         * lib/getsubopt.c: Likewise.
56706         * lib/glob.c: Likewise.
56707         * lib/hard-locale.c: Likewise.
56708         * lib/iconvme.c: Likewise.
56709         * lib/javacomp.c: Likewise.
56710         * lib/mempcpy.c: Likewise.
56711         * lib/memrchr.c: Likewise.
56712         * lib/regex_internal.h: Likewise.
56713         * lib/stpncpy.c: Likewise.
56714         * lib/strcasecmp.c: Likewise.
56715         * lib/strchrnul.c: Likewise.
56716         * lib/strdup.c: Likewise.
56717         * lib/striconv.c: Likewise.
56718         * lib/striconveh.c: Likewise.
56719         * lib/striconveha.c: Likewise.
56720         * lib/strncasecmp.c: Likewise.
56721         * lib/strndup.c: Likewise.
56722         * lib/strnlen.c: Likewise.
56723         * lib/strsep.c: Likewise.
56724         * lib/strstr.c: Likewise.
56725         * lib/strtok_r.c: Likewise.
56726         * lib/userspec.c: Likewise.
56727         * lib/w32spawn.h: Likewise.
56728         * lib/xstrndup.c: Likewise.
56729         * lib/mountlist.c (strstr): Remove decl.
56730         * m4/string_h.m4: New file.
56731         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
56732         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
56733         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
56734         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
56735         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
56736         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
56737         Set REPLACE_STRCASECMP if necessary.
56738         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
56739         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
56740         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
56741         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
56742         HAVE_DECL_STRDUP if necessary.
56743         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
56744         since gl_FUNC_STRNDUP does that now.
56745         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
56746         Check for decl here...
56747         (gl_PREREQ_STRNLEN): ... not here.
56748         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
56749         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
56750         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
56751         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
56752         necessary.
56753         * modules/string: New file.
56754         * modules/memmem (Files): Remove special-purpose include file.
56755         (Depends-on): Add string.
56756         (Include): Include <string.h>, not the removed file.
56757         * modules/mempcpy: Likewise.
56758         * modules/memrchr: Likewise.
56759         * modules/stpcpy: Likewise.
56760         * modules/stpncpy: Likewise.
56761         * modules/strcase: Likewise.
56762         * modules/strchrnul: Likewise.
56763         * modules/strdup: Likewise.
56764         * modules/strndup: Likewise.
56765         * modules/strnlen: Likewise.
56766         * modules/strpbrk: Likewise.
56767         * modules/strsep: Likewise.
56768         * modules/strstr: Likewise.
56769         * modules/strtok_r: Likewise.
56770         * tests/test-dirname.c: Don't include "strdup.h", since
56771         <string.h> now suffices.
56772         * tests/test-memmem.c: Don't include "memmem.h", since
56773         <string.h> now suffices.
56774
56775 2007-01-25  Bruno Haible  <bruno@clisp.org>
56776
56777         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
56778         *resultp is 0.
56779
56780         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
56781         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
56782         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
56783         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
56784
56785         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
56786         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
56787         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
56788         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
56789         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
56790         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
56791
56792 2007-01-24  Bruno Haible  <bruno@clisp.org>
56793
56794         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
56795         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
56796         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
56797         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
56798         gl_FUNC_FTS_CORE.
56799         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
56800         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
56801         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
56802         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
56803         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
56804         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
56805         gl_FUNC_FCHOWNAT.
56806         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
56807         gl_FUNC_STRFTIME.
56808         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
56809         Reported by Ralf Wildenhues.
56810
56811 2007-01-24  Bruno Haible  <bruno@clisp.org>
56812
56813         Drop AC_REQUIRE calls that are redundant with the module dependencies.
56814         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
56815         gl_GETADDRINFO.
56816         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
56817         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
56818         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
56819
56820 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
56821
56822         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
56823         Don't use 'exit'; just return from 'main'.
56824         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
56825
56826         * lib/fnmatch_.h: Readjust white space and comments to match
56827         glibc, to avoid spurious diffs.
56828
56829 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
56830
56831         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
56832         2004-12-01 change by Jakub Jelinek, since this code won't compile
56833         if !LIBC.  Problem reported by Bob Proulx.
56834
56835 2007-01-23  Bruno Haible  <bruno@clisp.org>
56836
56837         * lib/striconveh.c: Include c-strcaseeq.h.
56838         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
56839         * modules/striconveh (Depends-on): Add c-strcaseeq.
56840
56841 2007-01-23  Bruno Haible  <bruno@clisp.org>
56842
56843         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
56844
56845         * modules/c-strcaseeq: New file.
56846         * lib/c-strcaseeq.h: New file.
56847
56848         * modules/streq: New file.
56849         * lib/streq.h: New file.
56850
56851 2007-01-23  Bruno Haible  <bruno@clisp.org>
56852
56853         * modules/striconveha-tests: New file.
56854         * tests/test-striconveha.c: New file.
56855
56856         * lib/striconveha.h: Include <stdbool.h>.
56857         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
56858         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
56859         (mem_iconveha_notranslit): Renamed from mem_iconveha.
56860         (mem_iconveha): New function.
56861         (str_iconveha_notranslit): Renamed from str_iconveha.
56862         (str_iconveha): New function.
56863         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
56864         c-strcase.
56865
56866 2007-01-23  Bruno Haible  <bruno@clisp.org>
56867
56868         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
56869         encodings without forgiving before trying any encoding with handler.
56870         (str_iconveha): Try all encodings without forgiving before trying any
56871         encoding with handler.
56872
56873 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
56874
56875         Import the following changes from libc.
56876
56877         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
56878
56879         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
56880
56881         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
56882
56883         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
56884         normal_bracket label.
56885
56886         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
56887
56888         [BZ #361]
56889         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
56890         to normal_bracket after fetching the next character.
56891
56892 2007-01-22  Bruno Haible  <bruno@clisp.org>
56893
56894         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
56895         argument.
56896         * lib/striconveh.c (iconv_carefully_1): New function.
56897         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
56898         argument.
56899         (str_cd_iconveh): Update.
56900         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
56901         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
56902         * tests/test-striconveh.c (MAGIC): New macro.
56903         (new_offsets): New function.
56904         (main): Test call with and without offsets.
56905
56906 2007-01-22  Bruno Haible  <bruno@clisp.org>
56907
56908         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
56909         * modules/sys_select (Makefile.am): Likewise.
56910         * modules/sys_socket (Makefile.am): Likewise.
56911         * modules/sys_time (Makefile.am): Likewise.
56912
56913 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
56914
56915         * modules/gettimeofday (License): Change from GPL to LGPL, since
56916         gettimeofday is a library function.
56917
56918 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56919
56920         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
56921
56922 2007-01-21  Bruno Haible  <bruno@clisp.org>
56923
56924         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
56925
56926 2007-01-21  Bruno Haible  <bruno@clisp.org>
56927
56928         * modules/striconveha: New file.
56929         * lib/striconveha.h: New file.
56930         * lib/striconveha.c: New file.
56931         * MODULES.html.sh (Internationalization functions): Add striconveha.
56932         * lib/striconv.c (str_iconv): Optimize the case of an empty input
56933         string.
56934         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
56935
56936 2007-01-21  Bruno Haible  <bruno@clisp.org>
56937
56938         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
56939         * lib/striconveh.c (str_iconveh): Likewise.
56940
56941 2007-01-21  Bruno Haible  <bruno@clisp.org>
56942
56943         * lib/striconveh.h (mem_iconveh): New declaration.
56944         * lib/striconveh.c (mem_iconveh): New function.
56945         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
56946
56947 2007-01-21  Bruno Haible  <bruno@clisp.org>
56948
56949         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
56950
56951         * lib/striconveh.h (mem_cd_iconveh): Change specification.
56952         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
56953         original result buffer.
56954         (str_cd_iconveh): Update.
56955         * tests/test-striconveh.c (main): Update.
56956
56957         * lib/striconv.h (mem_cd_iconv): Change specification.
56958         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
56959         result buffer.
56960         (str_cd_iconv): Update.
56961         * tests/test-striconv.c (main): Update.
56962
56963 2007-01-21  Bruno Haible  <bruno@clisp.org>
56964
56965         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
56966
56967 2007-01-20  Jim Meyering  <jim@meyering.net>
56968
56969         * lib/userspec.c (parse_with_separator): If a user or group string
56970         starts with "+", skip the corresponding name-to-ID look-up, since
56971         such a look-up must fail: user and group names may not include "+".
56972
56973 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
56974
56975         * lib/poll.c: Include sys/time.h and time.h unconditionally,
56976         since we now assume the sys_time module.
56977         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
56978         check for sys/time.h; no longer needed.
56979         * modules/poll (Depends-on): Depend on sys_time.
56980
56981 2007-01-18  Bruno Haible  <bruno@clisp.org>
56982
56983         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
56984         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
56985
56986         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
56987         gettimeofday.
56988
56989         * tests/test-gettimeofday.c: Include <time.h>.
56990         (dummy): Remove variable.
56991
56992         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
56993         gl_HEADER_SYS_TIME_H.
56994         (gl_HEADER_SYS_TIME_H): New macro.
56995
56996         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
56997         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56998         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
56999         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
57000         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57001         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
57002         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
57003         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57004         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
57005         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
57006         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57007
57008         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
57009         last change; it caused a compilation error when cross-compiling to
57010         Cygwin.
57011
57012 2007-01-18  Jim Meyering  <jim@meyering.net>
57013
57014         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
57015         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
57016         than the race-prone "test -d sys || mkdir sys".
57017         (configure.ac): Use AC_PROG_MKDIR_P.
57018         * modules/sys_select: Likewise.
57019         * modules/sys_socket: Likewise.
57020         * modules/sys_time: Likewise.
57021
57022 2007-01-18  Eric Blake  <ebb9@byu.net>
57023
57024         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
57025         replace gettimeofday.
57026         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
57027         name, to avoid infinite recursion.
57028
57029 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
57030
57031         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
57032         module sys_time.
57033         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
57034         assume timespec.h defines struct timeval.
57035         * lib/settime.c: Likewise.
57036         * lib/utimens.c: Likewise.
57037         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
57038         since we now assume the gettimeofday module.
57039         * lib/tempname.c (__gen_tempname): Likewise.
57040         * lib/gettimeofday.h: Remove.
57041         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
57042         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
57043         Include <time.h>, for 'time()'.
57044         (localtime_buffer_addr): Also use this workaround if
57045         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
57046         to simplify the uses.  All uses changed.
57047         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
57048         that #undef is inside {}, and 'const' follows type name consistently.
57049         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
57050         (gettimeofday): Do not use the maximum possible value for
57051         tv->tv_usec, since that might break usages other than ls.c.
57052         Instead, we'll leave ls.c alone.  This undoes today's patch
57053         by Bruno.  Add a compile-time warning for 1s-clock resolution;
57054         we've never observed the problem but might as well keep the
57055         canary.
57056         * lib/nanosleep.c: Include timespec.h first, for interface check.
57057         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
57058         now assume the sys_time module.
57059         * lib/tempname.c: Likewise.
57060         * lib/timespec.h: Likewise.
57061         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
57062         needed.
57063         * lib/strftime.c: Likewise.
57064         * lib/timespec.h: Likewise.
57065         * lib/posixtm.c: Include posixtm.h first, for interface check.
57066         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
57067         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
57068         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
57069         * lib/sys_time_.h: New file.
57070         * lib/timespec.h (struct timespec): Use long int, not long.
57071         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
57072         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
57073         Remove obsolescent call to AC_HEADER_TIME.
57074         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
57075         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
57076         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
57077         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
57078         Likewise.
57079         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
57080         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
57081         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
57082         into the sys_time module.  Check for gettimeofday just once.
57083         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
57084         for gettimeofday signature to just check the signature.  Merely
57085         compile it, since linking doesn't test signature.  Improve test for
57086         whether gettimeofday.o is actually needed.
57087         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
57088         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
57089         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
57090         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57091         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
57092         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
57093         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
57094         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
57095         than worrying about sys/time.h.
57096         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
57097         Don't bother worrying about TIME_WITH_SYS_TIME.
57098         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
57099         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
57100         * m4/sys_time_h.m4: New file.
57101         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
57102         Don't include sys/time.h.  Return from main rather than exiting.
57103         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
57104         all uses changed.
57105         * modules/gethrxtime (Depends-on): Add sys_time.
57106         * modules/gettime (Depends-on): Likewise.
57107         * modules/gettimeofday (Depends-on): Likewise.
57108         * modules/nanosleep (Depends-on): Likewise.
57109         * modules/settime (Depends-on): Likewise.
57110         * modules/tempname (Depends-on): Likewise.
57111         * modules/utimens (Depends-on): Likewise.
57112         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
57113         (Include): Change back to <sys/time.h>.
57114         (Maintainer): Add self.
57115         * modules/sys_time: New file.
57116         * modules/tempname (Depends-on): Add gettimeofday.
57117         * tests/test-gettimeofday.c: Include <sys/time.h>
57118         rather than gettimeofday.h.
57119
57120 2007-01-17  Bruno Haible  <bruno@clisp.org>
57121
57122         * gnulib-tool (func_get_license): Revert last patch. Instead, let
57123         the license default to GPL.
57124         (func_create_testdir): Don't complain if a module is LGPL and its
57125         tests module depends on GPLed modules.
57126
57127 2007-01-17  Bruno Haible  <bruno@clisp.org>
57128
57129         * lib/gettimeofday.c (gettimeofday): Add code for the case
57130         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
57131         maximum possible value for tv->tv_usec, rather than the minimum one.
57132
57133 2005-10-08  Martin Lambers  <marlam@marlam.de>
57134 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
57135 2007-01-16  Bruno Haible  <bruno@clisp.org>
57136
57137         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
57138         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
57139         gl_FUNC_GETTIMEOFDAY.
57140         (Include): Add gettimeofday.h.
57141         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
57142         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
57143         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
57144         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
57145         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
57146         * lib/gettimeofday.h: New file.
57147         * lib/gettimeofday.c: Include <sys/timeb.h>.
57148         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
57149         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57150         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
57151         fall back on time().
57152
57153         * tests/test-gettimeofday.c: New file.
57154         * modules/gettimeofday-tests: New file.
57155
57156 2007-01-16  Eric Blake  <ebb9@byu.net>
57157
57158         * modules/fnmatch (Depends-on): Depend on wchar.
57159         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
57160         * m4/fnmatch.m4: Likewise.
57161         * modules/mbchar (Makefile.am): Assume <wchar.h>.
57162         * m4/mbchar.m4: Likewise.
57163         * modules/mbswidth (Depends-on): Depend on wchar.
57164         * lib/mbswidth.c: Assume <wchar.h>.
57165         * m4/mbswidth.m4: Likewise.
57166         * modules/quotearg (Depends-on): Depend on wchar.
57167         * lib/quotearg.c: Assume <wchar.h>.
57168         * m4/quotearg.m4: Likewise.
57169         * modules/regex (Depends-on): Depend on wchar.
57170         * lib/regex_internal.h: Assume <wchar.h>.
57171         * m4/regex.m4: Likewise.
57172         * modules/stdint (Depends-on): Depend on wchar.
57173         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
57174         * m4/stdint.m4: Likewise.
57175         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
57176         * modules/strftime (Depends-on): Depend on wchar.
57177         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
57178         * modules/strtol (Depends-on): Depend on wchar.
57179         * lib/strtol.c: Assume <wchar.h>.
57180         * modules/wcwidth (Depends-on): Depend on wchar.
57181         * lib/wcwidth.h: Assume <wchar.h>.
57182         * m4/wcwidth.m4: Likewise.
57183
57184 2007-01-16  Bruno Haible  <bruno@clisp.org>
57185
57186         * modules/csharpexec-script: New, created from...
57187         * modules/csharpexec: ... this.
57188
57189 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
57190
57191         * modules/javaexec-script: New, created from...
57192         * modules/javaexec: ... this.
57193
57194 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57195
57196         * modules/poll (Dependencies): Add sys_select.
57197
57198 2007-01-15  Jim Meyering  <jim@meyering.net>
57199
57200         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
57201         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
57202         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
57203         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
57204
57205 2007-01-15  Bruno Haible  <bruno@clisp.org>
57206
57207         * modules/striconveh: New file.
57208         * lib/striconveh.h: New file.
57209         * lib/striconveh.c: New file.
57210         * MODULES.html.sh (Internationalization functions): Add striconveh.
57211
57212         * modules/striconveh-tests: New file.
57213         * tests/test-striconveh.c: New file.
57214
57215 2007-01-15  Bruno Haible  <bruno@clisp.org>
57216
57217         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
57218         not from GNU libiconv or GNU libc.
57219
57220 2007-01-15  Bruno Haible  <bruno@clisp.org>
57221
57222         * doc/gnulib-intro.texi (Copyright): Explain the different license
57223         terms for module descriptions, autoconf macros, tests, documentation.
57224
57225 2007-01-14  Bruno Haible  <bruno@clisp.org>
57226
57227         * modules/striconv-tests: New file.
57228         * tests/test-striconv.c: New file.
57229
57230 2007-01-14  Bruno Haible  <bruno@clisp.org>
57231
57232         * modules/iconv-tests: New file.
57233         * tests/test-iconv.c: New file.
57234
57235 2007-01-14  Bruno Haible  <bruno@clisp.org>
57236
57237         * gnulib-tool (func_get_license): For test modules, use the license of
57238         the main module.
57239
57240 2007-01-14  Bruno Haible  <bruno@clisp.org>
57241
57242         * modules/iconv (Include): Clarify that <iconv.h> can only be included
57243         if iconv is found to exist.
57244
57245 2007-01-14  Bruno Haible  <bruno@clisp.org>
57246
57247         * modules/c-ctype-tests: New file.
57248         * tests/test-c-ctype.c: New file.
57249
57250 2007-01-14  Bruno Haible  <bruno@clisp.org>
57251
57252         * modules/binary-io-tests: New file.
57253         * tests/test-binary-io.sh: New file.
57254         * tests/test-binary-io.c: New file.
57255
57256 2007-01-14  Bruno Haible  <bruno@clisp.org>
57257
57258         * modules/array-oset-tests: New file.
57259         * tests/test-array_oset.c: New file.
57260
57261 2007-01-14  Bruno Haible  <bruno@clisp.org>
57262
57263         * modules/array-list-tests: New file.
57264         * tests/test-array_list.c: New file.
57265
57266 2007-01-14  Bruno Haible  <bruno@clisp.org>
57267
57268         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
57269         and make.
57270         Reported by Simon Josefsson in
57271         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
57272
57273 2007-01-14  Bruno Haible  <bruno@clisp.org>
57274
57275         * modules/allocsa-tests: New file.
57276         * tests/test-allocsa.c: New file.
57277
57278 2007-01-14  Bruno Haible  <bruno@clisp.org>
57279
57280         * modules/fchdir (Depends-on): Add absolute-header.
57281         * modules/unistd (Depends-on): Likewise.
57282
57283 2006-12-30  Bruno Haible  <bruno@clisp.org>
57284
57285         * modules/fchdir: New file.
57286         * modules/unistd (Files): Add lib/unistd_.h.
57287         (Makefile.am): Generate unistd.h from unistd_.h.
57288         * lib/fchdir.c: New file.
57289         * lib/dirent_.h: New file.
57290         * lib/unistd_.h: New file.
57291         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
57292         * m4/fchdir.m4: New file.
57293         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
57294         (gl_HEADER_UNISTD): Invoke it.
57295         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
57296         function.
57297         * lib/backupfile.c (opendir, closedir): Undefine.
57298         * lib/chown.c (open, close): Undefine.
57299         * lib/clean-temp.c (open, close): Undefine.
57300         * lib/copy-file.c (open, close): Undefine.
57301         * lib/execute.c (open, close): Undefine.
57302         * lib/fsusage.c (open, close): Undefine.
57303         * lib/gc-gnulib.c (open, close): Undefine.
57304         * lib/getcwd.c (opendir, closedir): Undefine.
57305         * lib/glob.c (opendir, closedir): Undefine.
57306         * lib/javacomp.c (open, close): Undefine.
57307         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
57308         * lib/openat-proc.c (open, close): Undefine.
57309         * lib/pagealign_alloc.c (open, close): Undefine.
57310         * lib/pipe.c (open, close): Undefine.
57311         * lib/progreloc.c (open, close): Undefine.
57312         * lib/savedir.c (opendir, closedir): Undefine.
57313         * lib/utime.c (open, close): Undefine.
57314         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
57315
57316 2007-01-10  Bruno Haible  <bruno@clisp.org>
57317
57318         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
57319
57320 2007-01-12  Eric Blake  <ebb9@byu.net>
57321
57322         Provide a robust <wchar.h>.  Further simplifications are now
57323         possible in other modules, but not included here.
57324         * modules/wchar: New module.
57325         * m4/wchar.m4: New file.
57326         * lib/wchar_.h: Likewise.
57327         * modules/mbchar (Depends-on): Depend on wchar, as the first use
57328         of the new module.
57329         * MODULES.html.sh (Extended multibyte and wide character utilities):
57330         New section.
57331
57332 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
57333
57334         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
57335         to a reasonable default for memory allocation.
57336         (xreadlink): Don't allocate a huge buffer, to work around a buggy
57337         file system that reports garbage st_size values for symlinks.
57338         Problem reported by Liyang Hu.
57339
57340 2007-01-11  Simon Josefsson  <simon@josefsson.org>
57341
57342         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
57343         Emacs .#* auto-save files).
57344
57345 2007-01-11  Bruno Haible  <bruno@clisp.org>
57346
57347         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
57348         directory.
57349
57350 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
57351
57352         Use @...@ consistently in lib/wctype_.h.
57353         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
57354         on it being set to 1 or 0.
57355         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
57356         go back to AC_SUBSTing it.
57357         * modules/wctype (Makefile.am): Undo previous change.
57358
57359 2007-01-10  Eric Blake  <ebb9@byu.net>
57360
57361         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
57362         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
57363         * modules/wctype (Makefile.am): Likewise.
57364         Reported by Chris McGuire.
57365
57366 2007-01-10  Jim Meyering  <jim@meyering.net>
57367
57368         fts.c: a small readability/maintainability improvement
57369         * lib/fts.c (fts_read): Make this code slightly more readable and
57370         maintainable by hoisting the "sp->fts_cur = p" assignments to
57371         immediately follow the statements that set P.  Derived from
57372         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
57373
57374 2007-01-10  Eric Blake  <ebb9@byu.net>
57375
57376         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
57377         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
57378         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
57379         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
57380         Reported by Chris McGuire.
57381
57382 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57383
57384         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
57385         in sed script.
57386
57387 2007-01-09  Bruno Haible  <bruno@clisp.org>
57388
57389         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
57390         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
57391         variables.
57392         (func_module): Use them.
57393
57394 2007-01-09  Bruno Haible  <bruno@clisp.org>
57395
57396         * modules/unistr/base: New file.
57397         * lib/unistr.h: New file.
57398
57399         * modules/unistr/u8-to-u16: New file.
57400         * lib/unistr/u8-to-u16.c: New file.
57401
57402         * modules/unistr/u8-to-u32: New file.
57403         * lib/unistr/u8-to-u32.c: New file.
57404
57405         * modules/unistr/u16-to-u8: New file.
57406         * lib/unistr/u16-to-u8.c: New file.
57407
57408         * modules/unistr/u16-to-u32: New file.
57409         * lib/unistr/u16-to-u32.c: New file.
57410
57411         * modules/unistr/u32-to-u8: New file.
57412         * lib/unistr/u32-to-u8.c: New file.
57413
57414         * modules/unistr/u32-to-u16: New file.
57415         * lib/unistr/u32-to-u16.c: New file.
57416
57417         * modules/unistr/u8-check: New file.
57418         * modules/unistr/u16-check: New file.
57419         * modules/unistr/u32-check: New file.
57420         * lib/unistr/u8-check.c: New file.
57421         * lib/unistr/u16-check.c: New file.
57422         * lib/unistr/u32-check.c: New file.
57423
57424         * modules/unistr/u8-chr: New file.
57425         * modules/unistr/u16-chr: New file.
57426         * modules/unistr/u32-chr: New file.
57427         * lib/unistr/u8-chr.c: New file.
57428         * lib/unistr/u16-chr.c: New file.
57429         * lib/unistr/u32-chr.c: New file.
57430
57431         * modules/unistr/u8-cmp: New file.
57432         * modules/unistr/u16-cmp: New file.
57433         * modules/unistr/u32-cmp: New file.
57434         * lib/unistr/u8-cmp.c: New file.
57435         * lib/unistr/u16-cmp.c: New file.
57436         * lib/unistr/u32-cmp.c: New file.
57437
57438         * modules/unistr/u8-cpy: New file.
57439         * modules/unistr/u16-cpy: New file.
57440         * modules/unistr/u32-cpy: New file.
57441         * lib/unistr/u8-cpy.c: New file.
57442         * lib/unistr/u16-cpy.c: New file.
57443         * lib/unistr/u32-cpy.c: New file.
57444         * lib/unistr/u-cpy.h: New file.
57445
57446         * modules/unistr/u8-cpy-alloc: New file.
57447         * modules/unistr/u16-cpy-alloc: New file.
57448         * modules/unistr/u32-cpy-alloc: New file.
57449         * lib/unistr/u8-cpy-alloc.c: New file.
57450         * lib/unistr/u16-cpy-alloc.c: New file.
57451         * lib/unistr/u32-cpy-alloc.c: New file.
57452         * lib/unistr/u-cpy-alloc.h: New file.
57453
57454         * modules/unistr/u8-endswith: New file.
57455         * modules/unistr/u16-endswith: New file.
57456         * modules/unistr/u32-endswith: New file.
57457         * lib/unistr/u8-endswith.c: New file.
57458         * lib/unistr/u16-endswith.c: New file.
57459         * lib/unistr/u32-endswith.c: New file.
57460         * lib/unistr/u-endswith.h: New file.
57461
57462         * modules/unistr/u8-mblen: New file.
57463         * modules/unistr/u16-mblen: New file.
57464         * modules/unistr/u32-mblen: New file.
57465         * lib/unistr/u8-mblen.c: New file.
57466         * lib/unistr/u16-mblen.c: New file.
57467         * lib/unistr/u32-mblen.c: New file.
57468
57469         * modules/unistr/u8-mbtouc: New file.
57470         * modules/unistr/u16-mbtouc: New file.
57471         * modules/unistr/u32-mbtouc: New file.
57472         * lib/unistr/u8-mbtouc.c: New file.
57473         * lib/unistr/u16-mbtouc.c: New file.
57474         * lib/unistr/u32-mbtouc.c: New file.
57475
57476         * modules/unistr/u8-mbtouc-safe: New file.
57477         * modules/unistr/u16-mbtouc-safe: New file.
57478         * modules/unistr/u32-mbtouc-safe: New file.
57479         * lib/unistr/u8-mbtouc-safe.c: New file.
57480         * lib/unistr/u16-mbtouc-safe.c: New file.
57481         * lib/unistr/u32-mbtouc-safe.c: New file.
57482
57483         * modules/unistr/u8-move: New file.
57484         * modules/unistr/u16-move: New file.
57485         * modules/unistr/u32-move: New file.
57486         * lib/unistr/u8-move.c: New file.
57487         * lib/unistr/u16-move.c: New file.
57488         * lib/unistr/u32-move.c: New file.
57489         * lib/unistr/u-move.h: New file.
57490
57491         * modules/unistr/u8-next: New file.
57492         * modules/unistr/u16-next: New file.
57493         * modules/unistr/u32-next: New file.
57494         * lib/unistr/u8-next.c: New file.
57495         * lib/unistr/u16-next.c: New file.
57496         * lib/unistr/u32-next.c: New file.
57497
57498         * modules/unistr/u8-prev: New file.
57499         * modules/unistr/u16-prev: New file.
57500         * modules/unistr/u32-prev: New file.
57501         * lib/unistr/u8-prev.c: New file.
57502         * lib/unistr/u16-prev.c: New file.
57503         * lib/unistr/u32-prev.c: New file.
57504
57505         * modules/unistr/u8-set: New file.
57506         * modules/unistr/u16-set: New file.
57507         * modules/unistr/u32-set: New file.
57508         * lib/unistr/u8-set.c: New file.
57509         * lib/unistr/u16-set.c: New file.
57510         * lib/unistr/u32-set.c: New file.
57511         * lib/unistr/u-set.h: New file.
57512
57513         * modules/unistr/u8-startswith: New file.
57514         * modules/unistr/u16-startswith: New file.
57515         * modules/unistr/u32-startswith: New file.
57516         * lib/unistr/u8-startswith.c: New file.
57517         * lib/unistr/u16-startswith.c: New file.
57518         * lib/unistr/u32-startswith.c: New file.
57519         * lib/unistr/u-startswith.h: New file.
57520
57521         * modules/unistr/u8-stpcpy: New file.
57522         * modules/unistr/u16-stpcpy: New file.
57523         * modules/unistr/u32-stpcpy: New file.
57524         * lib/unistr/u8-stpcpy.c: New file.
57525         * lib/unistr/u16-stpcpy.c: New file.
57526         * lib/unistr/u32-stpcpy.c: New file.
57527         * lib/unistr/u-stpcpy.h: New file.
57528
57529         * modules/unistr/u8-stpncpy: New file.
57530         * modules/unistr/u16-stpncpy: New file.
57531         * modules/unistr/u32-stpncpy: New file.
57532         * lib/unistr/u8-stpncpy.c: New file.
57533         * lib/unistr/u16-stpncpy.c: New file.
57534         * lib/unistr/u32-stpncpy.c: New file.
57535         * lib/unistr/u-stpncpy.h: New file.
57536
57537         * modules/unistr/u8-strcat: New file.
57538         * modules/unistr/u16-strcat: New file.
57539         * modules/unistr/u32-strcat: New file.
57540         * lib/unistr/u8-strcat.c: New file.
57541         * lib/unistr/u16-strcat.c: New file.
57542         * lib/unistr/u32-strcat.c: New file.
57543         * lib/unistr/u-strcat.h: New file.
57544
57545         * modules/unistr/u8-strchr: New file.
57546         * modules/unistr/u16-strchr: New file.
57547         * modules/unistr/u32-strchr: New file.
57548         * lib/unistr/u8-strchr.c: New file.
57549         * lib/unistr/u16-strchr.c: New file.
57550         * lib/unistr/u32-strchr.c: New file.
57551
57552         * modules/unistr/u8-strcmp: New file.
57553         * modules/unistr/u16-strcmp: New file.
57554         * modules/unistr/u32-strcmp: New file.
57555         * lib/unistr/u8-strcmp.c: New file.
57556         * lib/unistr/u16-strcmp.c: New file.
57557         * lib/unistr/u32-strcmp.c: New file.
57558
57559         * modules/unistr/u8-strcpy: New file.
57560         * modules/unistr/u16-strcpy: New file.
57561         * modules/unistr/u32-strcpy: New file.
57562         * lib/unistr/u8-strcpy.c: New file.
57563         * lib/unistr/u16-strcpy.c: New file.
57564         * lib/unistr/u32-strcpy.c: New file.
57565         * lib/unistr/u-strcpy.h: New file.
57566
57567         * modules/unistr/u8-strcspn: New file.
57568         * modules/unistr/u16-strcspn: New file.
57569         * modules/unistr/u32-strcspn: New file.
57570         * lib/unistr/u8-strcspn.c: New file.
57571         * lib/unistr/u16-strcspn.c: New file.
57572         * lib/unistr/u32-strcspn.c: New file.
57573         * lib/unistr/u-strcspn.h: New file.
57574
57575         * modules/unistr/u8-strdup: New file.
57576         * modules/unistr/u16-strdup: New file.
57577         * modules/unistr/u32-strdup: New file.
57578         * lib/unistr/u8-strdup.c: New file.
57579         * lib/unistr/u16-strdup.c: New file.
57580         * lib/unistr/u32-strdup.c: New file.
57581         * lib/unistr/u-strdup.h: New file.
57582
57583         * modules/unistr/u8-strlen: New file.
57584         * modules/unistr/u16-strlen: New file.
57585         * modules/unistr/u32-strlen: New file.
57586         * lib/unistr/u8-strlen.c: New file.
57587         * lib/unistr/u16-strlen.c: New file.
57588         * lib/unistr/u32-strlen.c: New file.
57589         * lib/unistr/u-strlen.h: New file.
57590
57591         * modules/unistr/u8-strmblen: New file.
57592         * modules/unistr/u16-strmblen: New file.
57593         * modules/unistr/u32-strmblen: New file.
57594         * lib/unistr/u8-strmblen.c: New file.
57595         * lib/unistr/u16-strmblen.c: New file.
57596         * lib/unistr/u32-strmblen.c: New file.
57597
57598         * modules/unistr/u8-strmbtouc: New file.
57599         * modules/unistr/u16-strmbtouc: New file.
57600         * modules/unistr/u32-strmbtouc: New file.
57601         * lib/unistr/u8-strmbtouc.c: New file.
57602         * lib/unistr/u16-strmbtouc.c: New file.
57603         * lib/unistr/u32-strmbtouc.c: New file.
57604
57605         * modules/unistr/u8-strncat: New file.
57606         * modules/unistr/u16-strncat: New file.
57607         * modules/unistr/u32-strncat: New file.
57608         * lib/unistr/u8-strncat.c: New file.
57609         * lib/unistr/u16-strncat.c: New file.
57610         * lib/unistr/u32-strncat.c: New file.
57611         * lib/unistr/u-strncat.h: New file.
57612
57613         * modules/unistr/u8-strncmp: New file.
57614         * modules/unistr/u16-strncmp: New file.
57615         * modules/unistr/u32-strncmp: New file.
57616         * lib/unistr/u8-strncmp.c: New file.
57617         * lib/unistr/u16-strncmp.c: New file.
57618         * lib/unistr/u32-strncmp.c: New file.
57619
57620         * modules/unistr/u8-strncpy: New file.
57621         * modules/unistr/u16-strncpy: New file.
57622         * modules/unistr/u32-strncpy: New file.
57623         * lib/unistr/u8-strncpy.c: New file.
57624         * lib/unistr/u16-strncpy.c: New file.
57625         * lib/unistr/u32-strncpy.c: New file.
57626         * lib/unistr/u-strncpy.h: New file.
57627
57628         * modules/unistr/u8-strnlen: New file.
57629         * modules/unistr/u16-strnlen: New file.
57630         * modules/unistr/u32-strnlen: New file.
57631         * lib/unistr/u8-strnlen.c: New file.
57632         * lib/unistr/u16-strnlen.c: New file.
57633         * lib/unistr/u32-strnlen.c: New file.
57634         * lib/unistr/u-strnlen.h: New file.
57635
57636         * modules/unistr/u8-strpbrk: New file.
57637         * modules/unistr/u16-strpbrk: New file.
57638         * modules/unistr/u32-strpbrk: New file.
57639         * lib/unistr/u8-strpbrk.c: New file.
57640         * lib/unistr/u16-strpbrk.c: New file.
57641         * lib/unistr/u32-strpbrk.c: New file.
57642         * lib/unistr/u-strpbrk.h: New file.
57643
57644         * modules/unistr/u8-strrchr: New file.
57645         * modules/unistr/u16-strrchr: New file.
57646         * modules/unistr/u32-strrchr: New file.
57647         * lib/unistr/u8-strrchr.c: New file.
57648         * lib/unistr/u16-strrchr.c: New file.
57649         * lib/unistr/u32-strrchr.c: New file.
57650
57651         * modules/unistr/u8-strspn: New file.
57652         * modules/unistr/u16-strspn: New file.
57653         * modules/unistr/u32-strspn: New file.
57654         * lib/unistr/u8-strspn.c: New file.
57655         * lib/unistr/u16-strspn.c: New file.
57656         * lib/unistr/u32-strspn.c: New file.
57657         * lib/unistr/u-strspn.h: New file.
57658
57659         * modules/unistr/u8-strstr: New file.
57660         * modules/unistr/u16-strstr: New file.
57661         * modules/unistr/u32-strstr: New file.
57662         * lib/unistr/u8-strstr.c: New file.
57663         * lib/unistr/u16-strstr.c: New file.
57664         * lib/unistr/u32-strstr.c: New file.
57665         * lib/unistr/u-strstr.h: New file.
57666
57667         * modules/unistr/u8-strtok: New file.
57668         * modules/unistr/u16-strtok: New file.
57669         * modules/unistr/u32-strtok: New file.
57670         * lib/unistr/u8-strtok.c: New file.
57671         * lib/unistr/u16-strtok.c: New file.
57672         * lib/unistr/u32-strtok.c: New file.
57673         * lib/unistr/u-strtok.h: New file.
57674
57675         * modules/unistr/u8-uctomb: New file.
57676         * modules/unistr/u16-uctomb: New file.
57677         * modules/unistr/u32-uctomb: New file.
57678         * lib/unistr/u8-uctomb.c: New file.
57679         * lib/unistr/u16-uctomb.c: New file.
57680         * lib/unistr/u32-uctomb.c: New file.
57681
57682         * MODULES.html.sh (Unicode string functions): Add the new modules.
57683
57684 2007-01-08  Bruno Haible  <bruno@clisp.org>
57685
57686         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
57687         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
57688         subdirectories.
57689
57690 2007-01-08  Karl Berry  <karl@gnu.org>
57691
57692         * doc/error.texi: mention that main() fns must set program_name
57693         when progname is used.
57694
57695 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
57696
57697         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
57698         WCTYPE_H is empty, for the benefit of builds from non-distclean
57699         directories.  Problem reported by Eric Blake in
57700         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
57701
57702 2007-01-08  Bruno Haible  <bruno@clisp.org>
57703
57704         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
57705         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
57706         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
57707         PROVIDE_CANONICALIZE_FILENAME_MODE.
57708         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
57709
57710 2007-01-08  Bruno Haible  <bruno@clisp.org>
57711
57712         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
57713         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
57714         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
57715         * lib/fts.c: Likewise.
57716         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
57717
57718 2006-12-25  Bruno Haible  <bruno@clisp.org>
57719
57720         * modules/utf8-ucs4-safe: New file.
57721         * lib/utf8-ucs4-safe.h: New file.
57722         * lib/unistr/utf8-ucs4-safe.c: New file.
57723
57724         * modules/utf16-ucs4-safe: New file.
57725         * lib/utf16-ucs4-safe.h: New file.
57726         * lib/unistr/utf16-ucs4-safe.c: New file.
57727
57728         * MODULES.html.sh (Unicode string functions): Add the new modules.
57729
57730 2007-01-08  Bruno Haible  <bruno@clisp.org>
57731
57732         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
57733         (Depends-on): Add unitypes.
57734         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
57735         (u8_mbtouc_aux): Move out to separate file.
57736         (u8_mbtouc): Use ucs4_t, uint8_t types.
57737         * lib/unistr/utf8-ucs4.c: New file.
57738
57739         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
57740         (Depends-on): Add unitypes.
57741         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
57742         (u16_mbtouc_aux): Move out to separate file.
57743         (u16_mbtouc): Use ucs4_t, uint16_t types.
57744         * lib/unistr/utf16-ucs4.c: New file.
57745
57746         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
57747         (Depends-on): Add unitypes.
57748         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
57749         (u8_uctomb_aux): Move out to separate file.
57750         (u8_uctomb): Use ucs4_t, uint8_t types.
57751         * lib/unistr/ucs4-utf8.c: New file.
57752
57753         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
57754         (Depends-on): Add unitypes.
57755         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
57756         (u16_uctomb_aux): Move out to separate file.
57757         (u16_uctomb): Use ucs4_t, uint16_t types.
57758         * lib/unistr/ucs4-utf16.c: New file.
57759
57760 2006-12-25  Bruno Haible  <bruno@clisp.org>
57761
57762         * modules/unitypes: New file.
57763         * lib/unitypes.h: New file.
57764         * MODULES.html.sh (func_all_modules): New section "Unicode string
57765         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
57766         this section. Add unitypes.
57767
57768 2007-01-08  Bruno Haible  <bruno@clisp.org>
57769
57770         Avoid variable names that conflict with those from libtool.
57771         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
57772         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
57773         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
57774         library_names_spec to acl_library_names_spec, hardcode_* to
57775         acl_hardcode_*.
57776         Reported by Ralf Wildenhues.
57777
57778 2007-01-08  Bruno Haible  <bruno@clisp.org>
57779
57780         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
57781         definition.
57782         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
57783         definition.
57784         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
57785         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
57786         definition.
57787         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
57788         definition.
57789         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
57790         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
57791         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
57792         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
57793         definition.
57794         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
57795         definition.
57796         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
57797         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
57798         GC_USE_<algorithm>.
57799         * lib/gc-libgcrypt.c: Likewise.
57800         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
57801         * modules/gc-arctwo (configure.ac): Likewise.
57802         * modules/gc-des (configure.ac): Likewise.
57803         * modules/gc-hmac-md5 (configure.ac): Likewise.
57804         * modules/gc-hmac-sha1 (configure.ac): Likewise.
57805         * modules/gc-md2 (configure.ac): Likewise.
57806         * modules/gc-md4 (configure.ac): Likewise.
57807         * modules/gc-md5 (configure.ac): Likewise.
57808         * modules/gc-random (configure.ac): Likewise.
57809         * modules/gc-rijndael (configure.ac): Likewise.
57810         * modules/gc-sha1 (configure.ac): Likewise.
57811
57812 2007-01-08  Bruno Haible  <bruno@clisp.org>
57813
57814         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
57815         macro definition.
57816         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
57817         definition.
57818         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
57819         definition.
57820         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
57821         * modules/fcntl-safer (configure.ac): Likewise.
57822         * modules/fopen-safer (configure.ac): Likewise.
57823         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
57824         GNULIB_FWRITEERROR macro definition.
57825
57826 2007-01-08  Bruno Haible  <bruno@clisp.org>
57827
57828         * m4/gnulib-common.m4: New file.
57829         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
57830         (func_get_filelist): Add m4/gnulib-common.m4.
57831
57832 2007-01-08  Bruno Haible  <bruno@clisp.org>
57833
57834         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
57835         command.
57836
57837 2007-01-08  Jim Meyering  <jim@meyering.net>
57838
57839         Use a more robust test for a "can't happen" condition.
57840         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
57841         narrowed the st_size value.  Presuming the "can't happen" condition
57842         is true, that narrowing could conceivably convert an invalid st_size
57843         value into a valid one.  Instead, use a change based on Matthew
57844         Woehlke's original patch.
57845
57846         Slight readability improvement: use an assert-like macro
57847         in place of literal "abort ()" uses.
57848         * lib/fts.c (fts_assert): Define.
57849         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
57850         Use this macro instead of a bare 'abort'.
57851
57852 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
57853
57854         Don't worry about using IRIX 5.3's wctype.h broken definitions;
57855         simply work around them.
57856         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
57857         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
57858         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
57859         declaring.
57860         Don't bother to define as macros, since the standard doesn't require it.
57861         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
57862         longer worry about IRIX 5.3.
57863         (HAVE_WCTYPE_CTMP_BUG): Remove.
57864
57865 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
57866
57867         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
57868         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
57869         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
57870         Problems reported by Georg Schwarz for IRIX 5.3.
57871
57872         * gnulib-tool (autoconf_minversion): Take the maximum version number
57873         found, not the minimum.  Problem reported by James Youngman.
57874
57875 2007-01-03  Karl Berry  <karl@gnu.org>
57876
57877         * doc/error.texi: new file, explaining interaction with progname.
57878         * doc/gnulib.texi: include it.  Update copyright.
57879
57880 2007-01-03  Simon Josefsson  <simon@josefsson.org>
57881
57882         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
57883         AC_CANONICAL_HOST, to improve autobuild outputs.
57884
57885 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
57886             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
57887
57888         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
57889         sockets, server sockets, and other file descriptors.  Count errors
57890         to compute the return value.  Reorder the code a bit to be easier
57891         to follow.  Don't set event bits that were not requested (except
57892         POLLERR and POLLHUP).
57893
57894 2007-01-01  Bruno Haible  <bruno@clisp.org>
57895
57896         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
57897
57898 2007-01-03  Jim Meyering  <jim@meyering.net>
57899
57900         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
57901
57902 2007-01-02  Bruno Haible  <bruno@clisp.org>
57903
57904         * modules/settime (Include): Require timespec.h.
57905         * modules/nanosleep (Include): Likewise.
57906
57907 2007-01-01  Bruno Haible  <bruno@clisp.org>
57908
57909         * gnulib-tool (func_emit_copyright_notice): Bump year.
57910         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
57911
57912 2007-01-01  Bruno Haible  <bruno@clisp.org>
57913
57914         Improve support for OpenBSD.
57915         * build-aux/config.rpath (libname_spec): Export.
57916         (library_names_spec): New variable. Export.
57917         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
57918         library_names_spec from the config.rpath output. Locate shared library
57919         through the name pattern in library_names_spec.
57920
57921 2007-01-01  Eric Blake  <ebb9@byu.net>
57922
57923         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
57924
57925 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
57926
57927         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
57928         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
57929         assume the C locale, and avoid an "eval" that could cause trouble.
57930         Problem with SORT reported by Bob Proulx.
57931
57932         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
57933         Define.  Trivial patch from Henning Nielsen Lund, originally
57934         sent to bug-grep@gnu.org today.
57935
57936 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
57937
57938         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
57939         struct stat.  Problem reported by Henning Nielsen Lund.
57940         * lib/acl.c: Include acl.h first, to check interface.  Don't
57941         bother to include sys/types.h and sys/stat.h again.
57942
57943 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
57944
57945         Import the following change from libc; problem reported by
57946         Sven Verdoolaege.
57947
57948         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
57949
57950         [BZ #1373]
57951         * lib/argp.h: Remove __NTH for __argp_usage inline function.
57952
57953 2006-12-28  Jim Meyering  <jim@meyering.net>
57954
57955         * build-aux/announce-gen: Do not assume that the package
57956         builds any of tar.gz, tar.bz2, and .xdelta files.
57957         Suggestion from Simon Josefsson.
57958
57959 2006-12-28  Simon Josefsson  <simon@josefsson.org>
57960
57961         * modules/announce-gen: New file.
57962
57963 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
57964
57965         * lib/mbchar.h: Just include <wctype.h>; the wctype module
57966         handles its gotchas now.
57967         * lib/mbswidth.c: Likewise.
57968         * lib/wcwidth.h: Likewise.
57969         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
57970         and iswcntrl; the wctype module does this stuff now.
57971         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
57972         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
57973         * modules/mbchar (Depends-on): Add wctype.
57974         * modules/mbswidth (Depends-on): Likewise.
57975         * modules/wcwidth (Depends-on): Likewise.
57976
57977 2006-12-27  Eric Blake  <ebb9@byu.net>
57978
57979         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
57980         module uses more than what <wctype.h> is required to provide.
57981
57982 2006-12-26  Eric Blake  <ebb9@byu.net>
57983
57984         * gnulib-tool (sed_extract_prog): Avoid space-tab.
57985
57986 2006-12-26  Eric Blake  <ebb9@byu.net>
57987
57988         * modules/absolute-header: New module.
57989         * modules/fcntl (Depends-on): Depend on it.
57990         * modules/inttypes (Depends-on): Likewise.
57991         * modules/stdint (Depends-on): Likewise.
57992         * modules/sys_stat (Depends-on): Likewise.
57993         * modules/wctype (Depends-on): Likewise.
57994         * MODULES.html.sh (Support for building libraries and
57995         executables): Document it.
57996
57997 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
57998
57999         * gnulib-tool (SED): Remove, undoing previous change.
58000         The problem was that it broke coreutils on Solaris, because
58001         "sed --posix" leaked into a makefile.
58002         (sed): New alias, if 'alias' and GNU sed.
58003
58004 2006-12-24  Jim Meyering  <jim@meyering.net>
58005
58006         Work around an fchownat bug in glibc-2.4:
58007         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
58008         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
58009         in spite of the -P option.
58010         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
58011         New macros.
58012         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
58013         * modules/openat (Files): Add lib/fchownat.c.
58014         * lib/openat.c (fchownat): Don't define here.  Move to...
58015         * lib/fchownat.c: ...this new file.
58016
58017 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58018
58019         Fix bug reported by Bruno Haible in
58020         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
58021         where quotearg.c didn't compile on Mac OS X 10.2 because it
58022         lacks <wchar.h> and wint_t.
58023         * lib/wctype_.h (__wctype_wint_t): New type.
58024         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
58025         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
58026         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
58027         Arg is now of type __wctype_wint_t, not wint_t.
58028         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
58029         substitute HAVE_WINT_T.
58030         * modules/wctype (Files): Add m4/wint_t.m4.
58031         (wctype.h): Substitute HAVE_WINT_T.
58032
58033 2006-12-23  Bruno Haible  <bruno@clisp.org>
58034
58035         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
58036
58037 2006-12-23  Bruno Haible  <bruno@clisp.org>
58038
58039         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
58040         S_ISLNK.
58041         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
58042         mingw.
58043
58044 2006-12-22  Bruno Haible  <bruno@clisp.org>
58045
58046         * lib/copy-file.c: Include acl.h.
58047         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
58048         Close the file descriptors only after being done with copy_acl.
58049         * modules/copy-file (Depends-on): Add acl.
58050
58051 2006-12-22  Bruno Haible  <bruno@clisp.org>
58052
58053         * gnulib-tool (SED): New variable.
58054         Use $SED instead of sed everywhere.
58055
58056 2006-12-22  Bruno Haible  <bruno@clisp.org>
58057
58058         * modules/no-c++: New file.
58059         * m4/no-c++.m4: New file.
58060         * MODULES.html.sh (Support for building libraries and executables):
58061         Add no-c++.
58062
58063 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
58064
58065         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
58066         Include <limits.h>, and use its INT_MAX to rewrite the
58067         j loop so that it does not overflow 'int'.  Problem reported by
58068         Ralf Wildenhues in
58069         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
58070         Play it safe by shifting left by 1 rather than multiplying by 2,
58071         as GCC is less likely to optimize this away when the value
58072         is signed (when it assumes overflow leads to undefined behavior).
58073         Also, don't assume time_t uses two's complement.
58074
58075 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
58076
58077         * MODULES.html.sh: New module wctype.
58078         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
58079         * lib/fnmatch.c: Don't bother to include <wchar.h> before
58080         <wctype.h>, since the new wctype module should fix this.
58081         * lib/quotearg.c: Include <wctype.h> unconditionally, since
58082         the wctype module should arrange for it.
58083         * lib/regex_internal.h: Likewise.
58084         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
58085         since the wctype module should handle this now.
58086         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
58087         * modules/fnmatch (Depends-on): Add wctype.
58088         * modules/quotearg (Depends-on): Likewise.
58089         * modules/regex (Depends-on): Likewise.
58090
58091 2006-12-19  Bruno Haible  <bruno@clisp.org>
58092
58093         * lib/strdup.h [C++]: Wrap definitions in extern "C".
58094         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
58095
58096 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58097
58098         * modules/savewd (Depends-on): Fix dependency on fcntl.
58099
58100 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58101
58102         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
58103         conforms to C99, rather than relying on the user's environment
58104         setting of STDINT_H.
58105
58106 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58107         and Eric Blake  <ebb9@byu.net>
58108
58109         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
58110         This is more consistent with the other defines here.
58111         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
58112         Port to z/OS.  Problem reported by Paul Gilmartin.
58113         Change local vars to use gl_ prefix rather than ac_.
58114         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
58115         with other defines.
58116         * modules/double-slash-root: New module.
58117         * modules/dirname (Files): Remove m4/double-slash-root.m4.
58118         (Depends-on): Add double-slash-root.
58119         * MODULES.html.sh (File system functions): Mention new module.
58120
58121 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
58122
58123         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
58124         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
58125         This is for the benefit of gzip, which doesn't do i18n.
58126
58127 2006-12-12  Jim Meyering  <jim@meyering.net>
58128
58129         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
58130         Reported by Andreas Schwab <schwab@suse.de>.
58131
58132 2006-12-12  Bruno Haible  <bruno@clisp.org>
58133
58134         Merge these changes.
58135         2006-09-05  Bruno Haible  <bruno@clisp.org>
58136         * lib/iconvme.c (iconv_string): No need to save and restore errno when
58137         iconv_alloc succeeded.
58138         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
58139         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
58140         test for " && dest " at the end - dest is always != NULL there. Call
58141         iconv with 4xNULL arguments initially, to reset the state. Call iconv
58142         with 2xNULL arguments, also to flush the state storage. Handle the
58143         IRIX iconv behaviour. Realloc the final result, to throw away unused
58144         memory.
58145
58146 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
58147
58148         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
58149         and fchmodat unconditionally, since glibc 2.4 has them.
58150         Problem reported by Arkadiusz Miskiewicz.
58151
58152 2006-12-10  Bruno Haible  <bruno@clisp.org>
58153
58154         * gnulib-tool (func_import): Show the include files only for those
58155         modules that are copied and specified.
58156         Reported by Karl Berry.
58157
58158 2006-12-08  Jim Meyering  <jim@meyering.net>
58159
58160         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
58161         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
58162
58163         * build-aux/announce-gen: Add two new options, both optional:
58164         --bootstrap-tools=TOOL_LIST
58165               a comma-separated list of tools, e.g.,
58166               autoconf,automake,bison,gnulib
58167         --gnulib-snapshot-date=DATE
58168               if gnulib is in the bootstrap tool list,
58169               then report this as the snapshot date.
58170               If not specified, use the current date/time.
58171               If you specify a date here, be sure it's UTC.
58172
58173 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58174
58175         * tests/test-argp-2.sh: Fix test to match actual output.
58176         (func_compare): Fix sed script to be portable.
58177
58178 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
58179
58180         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
58181         workaround for this case.  It is not autoconfigured now; offhand
58182         it's hard to see how to autoconfigure it.
58183
58184 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
58185
58186         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
58187         a directory that is about to be chowned.  Such a directory's
58188         initial file permissions should permit the owner only and this
58189         should not be changed until after the chown, since the group and
58190         other bits would be incorrect if they granted permission before
58191         the chown.
58192
58193         Fix porting problem for iswctype reported by Georg Schwarz in:
58194         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
58195         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
58196         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
58197         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
58198         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58199
58200 2006-12-03  Jim Meyering  <jim@meyering.net>
58201
58202         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
58203         p->fts_statp may not yet be defined.
58204         (fts_read): Instead, set it in the caller, once p->fts_statp is
58205         sure to be defined, and corresponds to a top-level directory.
58206         This bug made du -x fail.  Here's the coreutils test case:
58207         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
58208         Reported by Mike Frysinger.
58209
58210 2006-12-01  Jim Meyering  <jim@meyering.net>
58211
58212         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
58213         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
58214         Reported by Simon Josefsson.
58215
58216 2006-11-30  Jim Meyering  <jim@meyering.net>
58217
58218         * m4/warning.m4: Use the all-permissive copyright notice
58219         recommended by RMS (rather than LGPL).
58220         * m4/vararrays.m4: Likewise.
58221         * m4/flexmember.m4: Likewise.
58222
58223 2006-11-29  Bruno Haible  <bruno@clisp.org>
58224
58225         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
58226         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
58227         using +=.
58228         Reported by Simon Josefsson <simon@josefsson.org>.
58229
58230 2006-11-28  James Youngman <jay@gnu.org>
58231
58232         * README: Advise users that they might find the bug-gnulib@gnu.org
58233         and autotools-announce@gnu.org mailing lists useful.
58234
58235 2006-11-28  Bruno Haible  <bruno@clisp.org>
58236
58237         * m4/ptrdiff_max.m4: Remove file.
58238
58239 2006-11-21  Bruno Haible  <bruno@clisp.org>
58240
58241         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
58242         _AC_COMPUTE_INT.
58243         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
58244         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
58245         _AC_COMPUTE_INT.
58246         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
58247         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
58248         _AC_COMPUTE_INT.
58249         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
58250
58251 2006-11-28  Jim Meyering  <jim@meyering.net>
58252
58253         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
58254         warning from "gcc -Wshadow" about shadowing the builtin.
58255
58256 2006-11-27  Bruno Haible  <bruno@clisp.org>
58257
58258         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
58259         _AC_COMPUTE_INT.
58260         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
58261
58262 2006-11-27  Bruno Haible  <bruno@clisp.org>
58263             Paul Eggert  <eggert@cs.ucla.edu>
58264
58265         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
58266
58267 2006-11-26  Bruno Haible  <bruno@clisp.org>
58268
58269         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
58270         noinst_LTLIBRARIES.
58271
58272 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
58273             Bruno Haible  <bruno@clisp.org>
58274
58275         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
58276         if compiling with "gcc -ansi".
58277
58278 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
58279
58280         Fix some incompatibilities with gcc -ansi -pedantic.
58281         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
58282         if compiling pedantically with GCC, unless it's C99 or later.
58283         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
58284         it mishandles gcc -ansi -pedantic as well.
58285         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
58286         if gcc -pedantic.
58287         * lib/regexec.c (check_node_accept_bytes): Don't use auto
58288         initializers for struct if -pedantic, unless it's C99 or later.
58289
58290 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
58291
58292         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
58293         Don't close an fd more than once. Identical atimes indicate
58294         success, not failure.
58295
58296 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
58297
58298         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
58299
58300 2006-11-23  Jim Meyering  <jim@meyering.net>
58301
58302         * build-aux/announce-gen: New file.  From coreutils.
58303
58304 2006-11-22  Jim Meyering  <jim@meyering.net>
58305
58306         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
58307         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
58308         (fts_read): Use a temporary to narrow the overused st_size member
58309         before using it in a switch statement.  Reported by Matthew Woehlke.
58310
58311         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
58312         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
58313
58314 2006-11-20  Bruno Haible  <bruno@clisp.org>
58315
58316         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
58317         changequote instead of pairs of brackets.
58318         Reported by Andreas Schwab <schwab@suse.de>.
58319
58320 2006-11-21  Jim Meyering  <jim@meyering.net>
58321
58322         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
58323         so as to remain compatible with older compilers.
58324         Patch from Michael Deutschmann.
58325
58326 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
58327
58328         * MODULES.html.sh (File system functions): Add openat.
58329
58330         * lib/openat.h (rpl_fstatat): New macro, if
58331         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
58332         (fstatat): Define to rpl_fstatat under the same conditions,
58333         unless COMPILING_FSTATAT.
58334         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
58335         seems to have the bug.
58336         * lib/fstatat.c: New file.
58337         * modules/openat (Files): Add it.
58338
58339 2006-11-20  Bruno Haible  <bruno@clisp.org>
58340
58341         * Makefile: New file.
58342
58343 2006-11-20  Jim Meyering  <jim@meyering.net>
58344
58345         The beginnings of syntax-related checks for gnulib.
58346         * lib/Makefile: New file.
58347         * lib/t-idcache: New script.  Ensure that the two halves of
58348         idcache.c stay in sync.
58349
58350         * lib/idcache.c: Adjust comments in user- and group- portions to
58351         be more accurate, and to be consistent with one another.
58352
58353 2006-11-20  Jim Meyering  <jim@meyering.net>
58354
58355         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
58356         continue using the flexible array member (thus, this module performs
58357         half as many malloc calls), with the addition that...
58358         (getgroup, getuser): Consistently record a non-match via an empty
58359         "name" string, and map an empty string match to a NULL return value.
58360         * modules/idcache (Depends-on): Re-add flexmember.
58361
58362         * lib/idcache.c (getuser): Remove all uses of the register keyword.
58363         (getuidbyname, getgroup, getgidbyname): Likewise.
58364
58365         Use cleaner syntax: NULL rather than 0.
58366         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
58367
58368 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
58369
58370         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
58371         It mishandled the case where the group was missing.
58372         Problem reported by Greg Schafer.
58373         * modules/idcache: Likewise.
58374
58375 2006-11-18  Jim Meyering  <jim@meyering.net>
58376
58377         * check-module (%exempt_header): Add exception for some
58378         conditionally-included headers.
58379
58380         * modules/i-ring (Depends-on): Add verify.
58381         (License): Change to LGPL.
58382
58383 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58384
58385         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
58386         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
58387         and inttostr.h.  Use snprintf rather than uinttostr, so that
58388         LGPLed code doesn't depend on GPLed.
58389
58390 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
58391
58392         * modules/inline (License): Change from GPL to LGPL.
58393
58394 2006-11-17  Jim Meyering  <jim@meyering.net>
58395
58396         * modules/d-type (License): Switch to LGPL.
58397
58398 2006-11-15  Bruno Haible  <bruno@clisp.org>
58399
58400         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
58401
58402 2006-11-15  Eric Blake  <ebb9@byu.net>
58403
58404         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
58405         the module dependency.
58406
58407 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58408             Bruno Haible  <bruno@clisp.org>
58409
58410         * gnulib-tool (func_create_testdir): Add license consistency check.
58411
58412 2006-11-15  Eric Blake  <ebb9@byu.net>
58413
58414         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
58415         random "(cached)" in configure output.
58416
58417 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58418
58419         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
58420         test for conforming inttypes.h is both announced and cached.
58421
58422         * MODULES.html.sh (seen_modules, seen_files): New variables.
58423         (func_module): Rewrite to use a few less gnulib-tool and sed
58424         invocations.  Avoid a couple of quadratic algorithms for ...
58425         (missed_modules, missed_files): ... these, with ...
58426         (func_append, func_tmpdir): ... these new functions, from
58427         gnulib-tool.  Analogously, install traps for cleanup.
58428
58429         * tests/test-gc.c (main): Remove unused variables.
58430         * tests/test-read-file.c: Include stdlib.h, for 'free'.
58431
58432 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
58433
58434         * modules/inttostr (License): Change to LGPL.
58435
58436 2006-11-14  Eric Blake  <ebb9@byu.net>
58437
58438         * modules/tempname (License): Change to LGPL.
58439
58440 2006-11-14  Eric Blake  <ebb9@byu.net>
58441
58442         * doc/functions.texi (Function Portability): *printf functions on
58443         Cygwin now understand all POSIX size specifiers.
58444
58445 2006-11-14  Bruno Haible  <bruno@clisp.org>
58446
58447         * modules/c-ctype (License): Change to LGPL.
58448
58449 2006-11-12  Bruno Haible  <bruno@clisp.org>
58450
58451         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
58452         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
58453         for GNOME libraries, for which the include files are installed in
58454         subdirectories of $prefix/include.
58455
58456 2006-11-12  Bruno Haible  <bruno@clisp.org>
58457
58458         * m4/lib-link.m4: Require at least autoconf-2.54.
58459         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
58460         name to underscores for the --with option.
58461
58462 2006-11-13  Bruno Haible  <bruno@clisp.org>
58463
58464         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
58465         the tests directory.
58466         Reported by Ralf Wildenhues.
58467
58468 2006-11-13  Bruno Haible  <bruno@clisp.org>
58469
58470         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
58471         (func_emit_initmacro_end): Undo the override here.
58472         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
58473         Works around the famous automake error in coreutils.
58474
58475 2006-11-13  Eric Blake  <ebb9@byu.net>
58476
58477         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
58478         element, not its node.
58479
58480 2006-11-12  Bruno Haible  <bruno@clisp.org>
58481
58482         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
58483         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
58484
58485 2006-11-12  Bruno Haible  <bruno@clisp.org>
58486
58487         * gnulib-tool: New option --local-symlink.
58488         (func_usage): Document it.
58489         (lsymbolic): New variable.
58490         (func_import, func_create_testdir): If --symlink was not specified,
58491         test whether --local-symlink was specified and the file comes from
58492         the local_gnulib_dir.
58493
58494 2006-11-12  Bruno Haible  <bruno@clisp.org>
58495
58496         * gnulib-tool (func_ln): New function.
58497         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
58498
58499 2006-11-12  Bruno Haible  <bruno@clisp.org>
58500
58501         Finish support for source files in subdirectories.
58502         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
58503         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
58504         AUTOMAKE_OPTIONS.
58505         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
58506
58507 2006-11-12  Bruno Haible  <bruno@clisp.org>
58508
58509         * gnulib-tool (func_get_automake_snippet): Synthesize also an
58510         EXTRA_lib_SOURCES augmentation.
58511         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
58512
58513 2006-11-12  Jim Meyering  <jim@meyering.net>
58514
58515         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
58516         file descriptors.  This also averts a failure on systems with
58517         native openat support when a traversed directory lacks "x" access.
58518         * lib/fts_.h: Include "i-ring.h"
58519         (struct FTS) [fts_fd_ring]: New member.
58520         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
58521         (FCHDIR): Add parentheses.
58522         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
58523         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
58524         When descending, rather than simply closing the previous
58525         fts_cwd_fd value, push that file descriptor onto the ring.
58526         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
58527         (fts_open): Initialize the new fd_ring member.
58528         (fts_close): Clear the ring.
58529         (fts_safe_changedir): When possible, use our new fd_ring to skip
58530         the diropen and fstat and dev/ino comparison that would normally
58531         accompany a virtual `chdir ("..")'.
58532
58533         * modules/fts (Depends-on): Add i-ring.
58534         * modules/i-ring: New module.
58535         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
58536         * m4/i-ring.m4: New file.
58537
58538 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58539
58540         * gnulib-tool (func_create_testdir): Fix replacement of
58541         `build-aux' in configure.ac.  Run autotools in gltests
58542         subdirectory.
58543         (func_create_testdir, func_create_megatestdir, test): There is
58544         no need for '--force' in most autotool invocations in a new
58545         tree.  Actually fail the whole test if any of the tools, or the
58546         configure or make stages fail.
58547
58548         Sync from Automake.
58549         * build-aux/gnupload: Revert last change.  Add pointer to upload
58550         instructions of the GNU Maintenance Instructions.
58551         Suggestion by Karl Berry.
58552
58553 2006-11-10  Jim Meyering  <jim@meyering.net>
58554
58555         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
58556
58557 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
58558
58559         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
58560         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
58561         (bind_textdomain_codeset) [! ENABLE_NLS]:
58562         Evaluate all the arguments.  That way, callers get compatible behavior
58563         if the arguments have side effects.  Also, it avoids some GCC
58564         diagnostics in some cases; Joel E. Denny reported problems when Bison
58565         was configured with --enable-gcc-warnigs.
58566
58567 2006-11-10  Jim Meyering  <jim@meyering.net>
58568
58569         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
58570         relevant options in CFLAGS (like -O, -fno-inline) are taken into
58571         account.
58572
58573 2006-11-10  Jim Meyering  <jim@meyering.net>
58574
58575         * modules/inline: New file/module.
58576         * modules/xalloc (Files): Remove m4/inline.m4.
58577         (Depends-on): Add inline, instead.
58578         * modules/oset: Likewise.
58579         * modules/list: Likewise.
58580
58581 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
58582
58583         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
58584         Problem reported by Matthew Woehlke.
58585
58586 2006-11-09  Bruno Haible  <bruno@clisp.org>
58587
58588         * lib/tempname.c (gen_tempname): Remove variant that invokes
58589         __gen_tempname.
58590         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
58591         __gen_tempname.
58592
58593 2006-11-08  Bruno Haible  <bruno@clisp.org>
58594
58595         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
58596         to 'yes' instead of 'cross-compiling'.
58597
58598 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
58599
58600         * lib/quotearg.h (quotearg_free): New decl.
58601         * lib/quotearg.c (quotearg_free): New function.
58602         (slot0, nslots, slotvec0, slotvec):
58603         Now file-scope so that quotearg_free can get at them.
58604
58605 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58606
58607         Sync from Automake.
58608         * build-aux/gnupload: Add missing 'gnu' to example URL.
58609         Report by Karl Berry.
58610
58611 2006-11-08  Bruno Haible  <bruno@clisp.org>
58612
58613         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
58614         Suggested by Paul Eggert.
58615
58616 2006-11-08  Jim Meyering  <jim@meyering.net>
58617
58618         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
58619         It's already included if !_LIBC.
58620         (fts_safe_changedir): Add a comment.
58621
58622 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
58623
58624         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
58625         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
58626         Matthew Woehlke.
58627
58628         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
58629         definitions up, to avoid colliding with change below.
58630         (static_inline) [HAVE_INLINE]: New macro.
58631         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
58632         Provide extern decls when !HAVE_INLINE.  Do not define unless
58633         static_inline is defined, either by us or by xmalloc.c.  Use
58634         static_inline rather than static inline.
58635         (XCALLOC): Optimize sizeof(T) = 1 case.
58636         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
58637
58638 2006-11-07  Bruno Haible  <bruno@clisp.org>
58639
58640         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
58641         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
58642         AC_C_INLINE.
58643         * modules/xalloc (Files): Add m4/inline.m4.
58644
58645 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58646
58647         * README: Fix typo.
58648         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
58649         (Miscellanous Notes): ...from this.
58650
58651 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
58652
58653         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
58654         Mention that offsetof should be used instead of sizeof.
58655         From Bruno Haible.
58656
58657 2006-11-07  Bruno Haible  <bruno@clisp.org>
58658
58659         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
58660
58661 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
58662
58663         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
58664         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
58665         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
58666         (gl_tree_add_before, gl_tree_add_after):
58667         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
58668         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
58669         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
58670         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
58671         (gl_linked_add_after, gl_linked_add_at): Likewise.
58672         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
58673         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
58674         (gl_tree_add_before, gl_tree_add_after): Likewise.
58675         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
58676         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
58677         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
58678
58679 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58680
58681         * lib/gl_oset.h: Use C comment style, not C++ comment style.
58682
58683 2006-11-06  Bruno Haible  <bruno@clisp.org>
58684
58685         * m4/inline.m4: New file.
58686         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
58687         * modules/list (Files): Add m4/inline.m4.
58688         * modules/oset (Files): Likewise.
58689
58690 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
58691
58692         * lib/idcache.c: Include <stddef.h>, for offsetof.
58693         (struct userid.name): Change from char * to a flexible array member.
58694         All uses changed.
58695         * modules/idcache (Depends-on): Add flexmember.
58696
58697         * MODULES.html.sh (Core language properties): New module flexmember.
58698         * modules/flexmember, m4/flexmember.m4: New files.
58699
58700         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
58701         inline functions that are identical with the old xnmalloc_inline,
58702         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
58703         that we can avoid some unnecessary integer multiplications and
58704         divisions in the common case where the element size is known at
58705         compile time.
58706         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
58707         needed.
58708         (xnboundedmalloc): Remove.
58709         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
58710         arguments, for consistency with rest of this header.
58711         (xcharalloc): Rewrite using XNMALLOC.
58712         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
58713         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
58714         versions have been moved to lib/xalloc.h and renamed to be the
58715         non-*_inline versions.
58716         (xmalloc, xrealloc): Implement without reference to the xnmalloc
58717         and xnrealloc functions, since those functions are now inline and
58718         now call us.
58719         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
58720         renaming described above.
58721         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
58722         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
58723         captures the dependency in AC_C_INLINE.
58724
58725         New module canonicalize-lgpl, proposed by Charles Wilson in
58726         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
58727         with a few small changes afterwards.
58728         * MODULES.html.sh (File system functions): New module
58729         canonicalize-lgpl.
58730         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
58731         and canonicalize_file_name.
58732         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
58733         * modules/canonicalize-lgpl: New files.
58734
58735 2006-11-05  Bruno Haible  <bruno@clisp.org>
58736
58737         * gnulib-tool (func_import, func_create_testdir): Create directories
58738         also for files in subdirectories of lib/.
58739
58740 2006-11-05  Bruno Haible  <bruno@clisp.org>
58741
58742         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
58743         ANSI C compliant.
58744
58745 2006-11-03  Bruno Haible  <bruno@clisp.org>
58746
58747         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
58748         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
58749         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
58750         (xnboundedmalloc): New inline function.
58751         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
58752         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
58753         xmalloc.
58754         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
58755         xmalloc.
58756         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
58757         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
58758         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
58759         xmalloc.
58760         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
58761         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
58762         xmalloc.
58763         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
58764         gl_tree_add_after): Use XMALLOC instead of xmalloc.
58765         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
58766         xmalloc.
58767         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
58768         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
58769         gl_tree_add_after): Use XMALLOC instead of xmalloc.
58770         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
58771         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
58772         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
58773         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
58774
58775 2006-11-03  Bruno Haible  <bruno@clisp.org>
58776
58777         * lib/c-ctype.h [C++]: Define functions without name mangling.
58778         * lib/fwriteerror.h [C++]: Likewise.
58779         * lib/gcd.h [C++]: Likewise.
58780         * lib/linebreak.h [C++]: Likewise.
58781
58782 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
58783
58784         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
58785         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
58786         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
58787         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
58788         Check for functions and headers just once.
58789         Check for declaration of canonicalize_file_name.
58790         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
58791
58792 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
58793
58794         * gnulib-tool (func_import): Fix typo in actioncmd.
58795
58796 2006-11-02  Bruno Haible  <bruno@clisp.org>
58797
58798         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
58799         newline sequence in the Makefile.am snippet as a space, like "make"
58800         does.
58801         Reported by Roger Persson <perrog@gmail.com>.
58802
58803 2006-11-01  Bruno Haible  <bruno@clisp.org>
58804
58805         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
58806         already declared in <string.h>.
58807         * lib/strcase.h (strncasecmp): Don't declare it if yes.
58808
58809 2006-11-01  Bruno Haible  <bruno@clisp.org>
58810
58811         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
58812         * lib/strcase.h: Include <string.h>.
58813         (strcasecmp): Define to rpl_strcasecmp here.
58814
58815 2006-11-01  Bruno Haible  <bruno@clisp.org>
58816
58817         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
58818
58819 2006-11-01  Eric Blake  <ebb9@byu.net>
58820
58821         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
58822
58823         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
58824
58825 2006-10-29  Bruno Haible  <bruno@clisp.org>
58826
58827         Make it compile in C++ mode.
58828         * lib/full-write.c (full_rw): Add a cast.
58829
58830 2006-11-01  Bruno Haible  <bruno@clisp.org>
58831
58832         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
58833         be POSIX compliant.
58834         Reported by Roger Persson <perrog@gmail.com>.
58835
58836 2006-11-01  Eric Blake  <ebb9@byu.net>
58837
58838         * lib/getopt_.h: Fix comments.
58839
58840 2006-10-31  Eric Blake  <ebb9@byu.net>
58841
58842         * modules/tmpdir (Depends-on): Add sys_stat.
58843         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
58844         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
58845         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
58846         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
58847         tempname.
58848
58849 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
58850
58851         Avoid some C++ diagnostics reported by Bruno Haible.
58852         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
58853         xmalloc.
58854         (quotearg_alloc): Use xcharalloc rather than xmalloc.
58855         (struct slotvec): Move to top level.
58856         (quotearg_n_options): Rewrite to avoid xmalloc.
58857         * lib/xalloc.h (xcharalloc): New function.
58858         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
58859         [defined __cplusplus]: Add function template that provides result
58860         type propagation.  This part of the change is from Bruno Haible.
58861
58862 2006-10-29  Bruno Haible  <bruno@clisp.org>
58863
58864         Make it compile in C++ mode.
58865         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
58866         * lib/strnlen1.c (strnlen1): Cast memchr result.
58867         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
58868         * lib/clean-temp.c (string_equals, string_hash): Add casts.
58869         (create_temp_dir): Rename local variable 'template'.
58870         (compile_csharp_using_sscli): Add cast.
58871         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
58872         * lib/findprog.c (find_in_path): Likewise.
58873         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
58874         * lib/wait-process.c (register_slave_subprocess): Likewise.
58875
58876 2006-10-22  Bruno Haible  <bruno@clisp.org>
58877
58878         * modules/tsearch: New file.
58879         * lib/tsearch.h: New file.
58880         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
58881         * m4/tsearch.m4: New file.
58882         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
58883
58884 2006-10-29  Eric Blake  <ebb9@byu.net>
58885
58886         * lib/arcfour.c: Assume config.h.
58887         * lib/arctwo.c: Likewise.
58888         * lib/base64.c: Likewise.
58889         * lib/check-version.c: Likewise.
58890         * lib/crc.c: Likewise.
58891         * lib/des.c: Likewise.
58892         * lib/gc-gnulib.c: Likewise.
58893         * lib/gc-libgcrypt.c: Likewise.
58894         * lib/gc-pbkdf2-sha1.c: Likewise.
58895         * lib/getaddrinfo.c: Likewise.
58896         * lib/getdelim.c: Likewise.
58897         * lib/getline.c: Likewise.
58898         * lib/hmac-md5.c: Likewise.
58899         * lib/hmac-sha1.c: Likewise.
58900         * lib/iconvme.c: Likewise.
58901         * lib/md2.c: Likewise.
58902         * lib/md4.c: Likewise.
58903         * lib/memxor.c: Likewise.
58904         * lib/read-file.c: Likewise.
58905         * lib/readline.c: Likewise.
58906         * lib/rijndael-alg-fst.c: Likewise.
58907         * lib/rijndael-api-fst.c: Likewise.
58908         * lib/xgetdomainname.c: Likewise.
58909
58910 2006-10-28  Eric Blake  <ebb9@byu.net>
58911
58912         * lib/xstrndup.c: Assume config.h.
58913
58914 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
58915
58916         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
58917         stat-macros.h is now for our own macros, whereas stat_h is for
58918         macros in the <sys/stat.h> name space.
58919         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
58920         (STAT_MACROS_H): Remove.
58921         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
58922         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
58923         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
58924         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
58925         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
58926         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
58927         Move these macros to ...
58928         * lib/stat_.h: here.  Don't include stat-macros.h.
58929         * lib/canonicalize.c: Don't include stat-macros.h.
58930         * lib/chown.c: Likewise.
58931         * lib/euidaccess.c: Likewise.
58932         * lib/file-type.c: Likewise.
58933         * lib/filemode.c: Likewise.
58934         * lib/glob.c: Likewise.
58935         * lib/isapipe.c: Likewise.
58936         * lib/lchown.c: Likewise.
58937         * lib/lstat.c: Likewise.
58938         * lib/mkdir-p.c: Likewise.
58939         * lib/rmdir.c: Likewise.
58940         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
58941         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
58942         unless mkdir isn't declared, to speed up 'configure'.
58943         Always create sys/stat.h, since it's unlikely any real sys/stat.h
58944         would define all the S_* symbols.
58945         * modules/canonicalize (Depends-on):
58946         Depend on sys_stat, not stat-macros.
58947         * modules/chown: Likewise.
58948         * modules/euidaccess: Likewise.
58949         * modules/filemode: Likewise.
58950         * modules/file-type: Likewise.
58951         * modules/glob: Likewise.
58952         * modules/isapipe: Likewise.
58953         * modules/lchown: Likewise.
58954         * modules/lstat: Likewise.
58955         * modules/mkancesdirs: Likewise.
58956         * modules/rmdir: Likewise.
58957         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
58958         * modules/modechange: Likewise.
58959         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
58960         (configure.ac): Remove gl_STAT_MACROS.
58961         * modules/sys_stat (Depends-on): Remove stat-macros.
58962
58963 2006-10-27  Bruno Haible  <bruno@clisp.org>
58964
58965         * m4/signed.m4: Remove file.
58966         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
58967         invocation.
58968         * modules/vasnprintf (Files): Remove m4/signed.m4.
58969
58970 2006-10-27  Bruno Haible  <bruno@clisp.org>
58971
58972         Update to GNU gettext 0.16.
58973         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
58974         m4/inttypes-h.m4, m4/signed.m4.
58975         * m4/gettext.m4: Update to GNU gettext 0.16.
58976         * m4/intl.m4: New file, from GNU gettext.
58977         * m4/intldir.m4: New file, from GNU gettext.
58978         * config/srclist.txt: Update
58979
58980 2006-10-27  Eric Blake  <ebb9@byu.net>
58981
58982         * MODULES.html.sh: Document tempname.
58983         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
58984         dependencies.
58985         (Files): Move lib/tempname.c...
58986         * modules/tempname: ...to this new module.
58987         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
58988         (gl_PREREQ_TEMPNAME): Move...
58989         * m4/tempname.m4: ...to this new file.
58990         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
58991         * modules/sys_stat (Depends-on): Add stat-macros.
58992         * lib/stat_.h (includes): Pick up stat macros.
58993         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
58994         if stat macros are broken.
58995         * lib/tempname.c (includes): No need to include "stat-macros.h".
58996         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
58997         (direxists, __path_search) [!_LIBC]: Don't compile these in
58998         gnulib; the tmpdir module covers that.
58999         * lib/tempname.h: New file.
59000
59001 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
59002
59003         * COPYING: Explain how gnulib-tool converts licence headers.
59004         Almost all wording by Eric Blake.
59005
59006 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
59007
59008         * lib/mbchar.h (is_basic_table): Make read-only.
59009         * lib/mbchar.c (is_basic_table): Likewise.
59010         Reported by John Darrington.
59011
59012 2006-10-25  Bruno Haible  <bruno@clisp.org>
59013
59014         * lib/progname.h (set_program_name): Undefine before defining.
59015
59016 2006-10-25  Bruno Haible  <bruno@clisp.org>
59017
59018         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
59019         false for non-gcc C++ compilers.
59020         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
59021
59022 2006-10-24  Bruno Haible  <bruno@clisp.org>
59023
59024         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
59025         iconv implementations like Irix iconv.
59026
59027 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59028
59029         * modules/vararrays: New file.
59030         * m4/vararrays.m4: New file, taken from diffutils.
59031         * MODULES.html.sh: New module vararrays.
59032
59033 2006-10-24  Karl Berry  <karl@gnu.org>
59034
59035         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
59036         Don't call GNU Unix.
59037
59038 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59039
59040         * users.txt: Add Libtool.
59041
59042         Sync from Libtool:
59043
59044         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59045
59046         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
59047         to gnulib's policy of including config.h unconditionally.
59048
59049 2006-10-24  Bruno Haible  <bruno@clisp.org>
59050
59051         * modules/wcwidth (Files): Add m4/wint_t.m4.
59052         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
59053         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
59054
59055 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59056
59057         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
59058         to pacify GCC with some -W flags enabled.  Problem reported by
59059         Bruno Haible.
59060
59061 2006-10-24  Jim Meyering  <jim@meyering.net>
59062
59063         * MODULES.html.sh: Remove uinttostr.  It's not a module.
59064         Reported by Karl Berry.
59065
59066 2006-10-23  Bruno Haible  <bruno@clisp.org>
59067
59068         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
59069
59070 2006-10-24  Bruno Haible  <bruno@clisp.org>
59071
59072         * lib/gl_list.h: Use C comment style, not C++ comment style.
59073
59074 2006-10-23  Eric Blake  <ebb9@byu.net>
59075
59076         * lib/getaddrinfo.c (includes): Add missing include.
59077
59078 2006-10-23  Bruno Haible  <bruno@clisp.org>
59079             Paul Eggert  <eggert@cs.ucla.edu>
59080
59081         Ability to rename obstack_free.
59082         * lib/obstack.h (__obstack_free): New macro. Declare instead of
59083         obstack_free.
59084         (obstack_free): Invoke the __obstack_free macro.
59085         * lib/obstack.c (obstack_free): Use __obstack_free macro.
59086
59087 2006-10-23  Bruno Haible  <bruno@clisp.org>
59088             Paul Eggert  <eggert@cs.ucla.edu>
59089
59090         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
59091         __argc, __argv from the declaration. (They are defined as macros on
59092         mingw.)
59093
59094 2006-10-22  Bruno Haible  <bruno@clisp.org>
59095
59096         * doc/gnulib-intro.texi: New file.
59097         * doc/gnulib.texi: Include it.
59098
59099 2006-10-21  Bruno Haible  <bruno@clisp.org>
59100
59101         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
59102         "Introduction", "Miscellanous Notes", "Particular Modules".
59103
59104 2006-10-21  Bruno Haible  <bruno@clisp.org>
59105
59106         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59107         Change mostlyclean-local rule to avoid sh syntax error from bash
59108         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
59109
59110 2006-10-23  Jim Meyering  <jim@meyering.net>
59111
59112         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
59113         in place of snprintf.
59114
59115         * modules/inttostr (Files): Add lib/uinttostr.c.
59116         * lib/uinttostr.c (inttostr): New file/function.
59117         * lib/inttostr.h (uinttostr): Declare.
59118         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
59119         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
59120         Add uinttostr.
59121         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
59122
59123 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
59124
59125         * lib/canonicalize.c (ELOOP): Define if not already defined.
59126         Problem reported by Bruno Haible in
59127         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
59128
59129 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
59130
59131         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
59132         Problem reported by Perry Smith and Ville Laurikari.
59133
59134         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
59135         uses.
59136
59137 2006-10-19  Bruno Haible  <bruno@clisp.org>
59138
59139         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
59140         for mingw.
59141
59142 2006-10-19  Bruno Haible  <bruno@clisp.org>
59143
59144         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
59145         Needed for mingw.
59146
59147 2006-10-19  Bruno Haible  <bruno@clisp.org>
59148
59149         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
59150
59151 2006-10-19  Bruno Haible  <bruno@clisp.org>
59152
59153         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
59154         it.
59155
59156 2006-10-19  Bruno Haible  <bruno@clisp.org>
59157
59158         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
59159         invocation.
59160
59161 2006-10-19  Bruno Haible  <bruno@clisp.org>
59162
59163         * gnulib-tool (func_create_testdir): Don't include ftruncate and
59164         mountlist by default.
59165
59166 2006-10-16  Bruno Haible  <bruno@clisp.org>
59167
59168         * lib/c-strstr.c: Include c-strstr.h.
59169
59170 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
59171
59172         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
59173         in a slash.
59174
59175 2006-10-18  Bruno Haible  <bruno@clisp.org>
59176
59177         * lib/lock.h [C++]: Wrap definitions in extern "C".
59178
59179 2006-10-18  Bruno Haible  <bruno@clisp.org>
59180
59181         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
59182         gl_LIBOBJS list.
59183
59184 2006-10-18  Bruno Haible  <bruno@clisp.org>
59185
59186         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
59187
59188 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
59189
59190         * lib/xstrtol.h: Include gettext.h.
59191         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
59192         Problem reported by Eric Blake.
59193         * modules/xstrtol (Depends-on): Add gettext-h.
59194
59195 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
59196
59197         * lib/strftime.c (advance): New macro.
59198         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
59199         incomplete type, so you can't add 0 to it.  Problem and patch
59200         reported by Eelco Dolstra for dietlibc.
59201
59202 2006-10-18  Jim Meyering  <jim@meyering.net>
59203
59204         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
59205         type for a local, and rename it: s/up/user_proc/.
59206
59207 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
59208
59209         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
59210         READ_UTMP_USER_PROCESS.
59211         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
59212
59213 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
59214
59215         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
59216         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
59217
59218 2006-10-17  Eric Blake  <ebb9@byu.net>
59219
59220         * lib/sigprocmask.c (sigprocmask): Fix typo.
59221
59222         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
59223
59224         * modules/clean-temp (Makefile.am): Don't add to make output...
59225         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
59226         config.h.
59227
59228 2006-10-17  Bruno Haible  <bruno@clisp.org>
59229
59230         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
59231         differently if DEFAULT_TEXT_DOMAIN is set.
59232
59233 2006-10-16  Bruno Haible  <bruno@clisp.org>
59234
59235         * lib/clean-temp.c: Include fwriteerror.h.
59236
59237 2006-10-16  Bruno Haible  <bruno@clisp.org>
59238
59239         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
59240
59241 2006-10-16  Bruno Haible  <bruno@clisp.org>
59242
59243         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
59244         * lib/sigprocmask.h: Include <sys/types.h>.
59245         (sigset_t): Use the system's definition if present.
59246
59247 2006-10-17  Eric Blake  <ebb9@byu.net>
59248
59249         * lib/xvasprintf.c (includes): Assume config.h.
59250         * lib/xasprintf.c (includes): Likewise.
59251
59252 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
59253
59254         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
59255         at least as wide as intmax_t.
59256
59257 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
59258
59259         (Imported from Automake.)
59260         * build-aux/gnupload: Update to version 1.1 of directive file.
59261
59262 2006-10-16  Eric Blake  <ebb9@byu.net>
59263
59264         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
59265         match Automake 1.10a.
59266
59267 2006-10-14  Bruno Haible  <bruno@clisp.org>
59268
59269         * modules/sigprocmask: New file.
59270         * lib/sigprocmask.h: New file.
59271         * lib/sigprocmask.c: New file.
59272         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
59273         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
59274         request sigprocmask.o.
59275         (gl_PREREQ_SIGPROCMASK): New macro.
59276         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
59277         (Depends-on): Add sigprocmask.
59278         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
59279         gt_SIGNALBLOCKING. Test for 'raise' only once.
59280         * lib/fatal-signal.c: Include sigprocmask.h.
59281         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
59282         unblock_fatal_signals): Define always.
59283         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59284         sigprocmask.
59285
59286 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
59287
59288         Sync from Automake.
59289         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
59290         which incorrectly sets the mode of an existing destination
59291         directory.  In some cases the unpatched install-sh could do the
59292         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
59293         system.  We hope this is rare in practice, but it's clearly worth
59294         fixing.  Problem reported by Alex Unleashed in
59295         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
59296         Also, don't bother to check for -m bugs unless we're using -m;
59297         suggested by Stepan Kasal.
59298
59299 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59300
59301         Sync from Automake.
59302         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
59303         `-c' flag, so they appear at the same position as in %FASTDEP%
59304         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
59305         which ignores unknown options only after the first non-option.
59306         Bug report against M4 by Nelson H. F. Beebe.
59307
59308 2006-10-13  Jim Meyering  <jim@meyering.net>
59309
59310         Fix a bug in yesterday's change.
59311         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
59312         p->fts_statp->st_dev would be used uninitialized.
59313         Ensures that we always call fts_stat on the very first entry.
59314         Miklos Szeredi reported that find -xdev stopped working.
59315
59316 2006-10-12  Bruno Haible  <bruno@clisp.org>
59317
59318         * gnulib-tool (func_get_automake_snippet): Append an automatically
59319         computed EXTRA_DIST augmentation.
59320         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
59321         * modules/alloca-opt (Makefile.am): Likewise.
59322         * modules/allocsa (Makefile.am): Likewise.
59323         * modules/arcfour (Makefile.am): Likewise.
59324         * modules/arctwo (Makefile.am): Likewise.
59325         * modules/argmatch (Makefile.am): Likewise.
59326         * modules/argz (Makefile.am): Likewise.
59327         * modules/atexit (Makefile.am): Likewise.
59328         * modules/backupfile (Makefile.am): Likewise.
59329         * modules/byteswap (Makefile.am): Likewise.
59330         * modules/c-strtod (Makefile.am): Likewise.
59331         * modules/c-strtold (Makefile.am): Likewise.
59332         * modules/calloc (Makefile.am): Likewise.
59333         * modules/canon-host (Makefile.am): Likewise.
59334         * modules/canonicalize (Makefile.am): Likewise.
59335         * modules/chdir-long (Makefile.am): Likewise.
59336         * modules/chdir-safer (Makefile.am): Likewise.
59337         * modules/check-version (Makefile.am): Likewise.
59338         * modules/chown (Makefile.am): Likewise.
59339         * modules/cloexec (Makefile.am): Likewise.
59340         * modules/close-stream (Makefile.am): Likewise.
59341         * modules/closeout (Makefile.am): Likewise.
59342         * modules/crc (Makefile.am): Likewise.
59343         * modules/csharpexec (Makefile.am): Likewise.
59344         * modules/cycle-check (Makefile.am): Likewise.
59345         * modules/des (Makefile.am): Likewise.
59346         * modules/dev-ino (Makefile.am): Likewise.
59347         * modules/dirfd (Makefile.am): Likewise.
59348         * modules/dirname (Makefile.am): Likewise.
59349         * modules/dup2 (Makefile.am): Likewise.
59350         * modules/eealloc (Makefile.am): Likewise.
59351         * modules/error (Makefile.am): Likewise.
59352         * modules/euidaccess (Makefile.am): Likewise.
59353         * modules/exclude (Makefile.am): Likewise.
59354         * modules/exitfail (Makefile.am): Likewise.
59355         * modules/fcntl-safer (Makefile.am): Likewise.
59356         * modules/fcntl (Makefile.am): Likewise.
59357         * modules/file-type (Makefile.am): Likewise.
59358         * modules/fileblocks (Makefile.am): Likewise.
59359         * modules/filemode (Makefile.am): Likewise.
59360         * modules/filenamecat (Makefile.am): Likewise.
59361         * modules/fnmatch (Makefile.am): Likewise.
59362         * modules/fopen-safer (Makefile.am): Likewise.
59363         * modules/fpending (Makefile.am): Likewise.
59364         * modules/fprintftime (Makefile.am): Likewise.
59365         * modules/free (Makefile.am): Likewise.
59366         * modules/fsusage (Makefile.am): Likewise.
59367         * modules/ftruncate (Makefile.am): Likewise.
59368         * modules/fts (Makefile.am): Likewise.
59369         * modules/gc-arcfour (Makefile.am): Likewise.
59370         * modules/gc-des (Makefile.am): Likewise.
59371         * modules/gc-hmac-md5 (Makefile.am): Likewise.
59372         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
59373         * modules/gc-md4 (Makefile.am): Likewise.
59374         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
59375         * modules/gc-sha1 (Makefile.am): Likewise.
59376         * modules/gc (Makefile.am): Likewise.
59377         * modules/getaddrinfo (Makefile.am): Likewise.
59378         * modules/getcwd (Makefile.am): Likewise.
59379         * modules/getdelim (Makefile.am): Likewise.
59380         * modules/getdomainname (Makefile.am): Likewise.
59381         * modules/getgroups (Makefile.am): Likewise.
59382         * modules/gethostname (Makefile.am): Likewise.
59383         * modules/gethrxtime (Makefile.am): Likewise.
59384         * modules/getline (Makefile.am): Likewise.
59385         * modules/getloadavg (Makefile.am): Likewise.
59386         * modules/getlogin_r (Makefile.am): Likewise.
59387         * modules/getndelim2 (Makefile.am): Likewise.
59388         * modules/getopt (Makefile.am): Likewise.
59389         * modules/getpagesize (Makefile.am): Likewise.
59390         * modules/getpass-gnu (Makefile.am): Likewise.
59391         * modules/getpass (Makefile.am): Likewise.
59392         * modules/getsubopt (Makefile.am): Likewise.
59393         * modules/gettime (Makefile.am): Likewise.
59394         * modules/gettimeofday (Makefile.am): Likewise.
59395         * modules/getugroups (Makefile.am): Likewise.
59396         * modules/getusershell (Makefile.am): Likewise.
59397         * modules/glob (Makefile.am): Likewise.
59398         * modules/group-member (Makefile.am): Likewise.
59399         * modules/hard-locale (Makefile.am): Likewise.
59400         * modules/hash (Makefile.am): Likewise.
59401         * modules/hmac-md5 (Makefile.am): Likewise.
59402         * modules/hmac-sha1 (Makefile.am): Likewise.
59403         * modules/human (Makefile.am): Likewise.
59404         * modules/idcache (Makefile.am): Likewise.
59405         * modules/imaxabs (Makefile.am): Likewise.
59406         * modules/imaxdiv (Makefile.am): Likewise.
59407         * modules/inet_ntop (Makefile.am): Likewise.
59408         * modules/inet_pton (Makefile.am): Likewise.
59409         * modules/intprops (Makefile.am): Likewise.
59410         * modules/inttostr (Makefile.am): Likewise.
59411         * modules/inttypes (Makefile.am): Likewise.
59412         * modules/isapipe (Makefile.am): Likewise.
59413         * modules/javaversion (Makefile.am): Likewise.
59414         * modules/lchmod (Makefile.am): Likewise.
59415         * modules/lchown (Makefile.am): Likewise.
59416         * modules/localcharset (Makefile.am): Likewise.
59417         * modules/long-options (Makefile.am): Likewise.
59418         * modules/lstat (Makefile.am): Likewise.
59419         * modules/malloc (Makefile.am): Likewise.
59420         * modules/mathl (Makefile.am): Likewise.
59421         * modules/mbchar (Makefile.am): Likewise.
59422         * modules/md2 (Makefile.am): Likewise.
59423         * modules/md4 (Makefile.am): Likewise.
59424         * modules/md5 (Makefile.am): Likewise.
59425         * modules/memcasecmp (Makefile.am): Likewise.
59426         * modules/memchr (Makefile.am): Likewise.
59427         * modules/memcmp (Makefile.am): Likewise.
59428         * modules/memcoll (Makefile.am): Likewise.
59429         * modules/memcpy (Makefile.am): Likewise.
59430         * modules/memmem (Makefile.am): Likewise.
59431         * modules/memmove (Makefile.am): Likewise.
59432         * modules/mempcpy (Makefile.am): Likewise.
59433         * modules/memrchr (Makefile.am): Likewise.
59434         * modules/memset (Makefile.am): Likewise.
59435         * modules/memxor (Makefile.am): Likewise.
59436         * modules/mkancesdirs (Makefile.am): Likewise.
59437         * modules/mkdir-p (Makefile.am): Likewise.
59438         * modules/mkdir (Makefile.am): Likewise.
59439         * modules/mkdtemp (Makefile.am): Likewise.
59440         * modules/mkstemp (Makefile.am): Likewise.
59441         * modules/mktime (Makefile.am): Likewise.
59442         * modules/modechange (Makefile.am): Likewise.
59443         * modules/mountlist (Makefile.am): Likewise.
59444         * modules/nanosleep (Makefile.am): Likewise.
59445         * modules/obstack (Makefile.am): Likewise.
59446         * modules/openat (Makefile.am): Likewise.
59447         * modules/pagealign_alloc (Makefile.am): Likewise.
59448         * modules/pathmax (Makefile.am): Likewise.
59449         * modules/physmem (Makefile.am): Likewise.
59450         * modules/poll (Makefile.am): Likewise.
59451         * modules/posixtm (Makefile.am): Likewise.
59452         * modules/posixver (Makefile.am): Likewise.
59453         * modules/putenv (Makefile.am): Likewise.
59454         * modules/quote (Makefile.am): Likewise.
59455         * modules/quotearg (Makefile.am): Likewise.
59456         * modules/raise (Makefile.am): Likewise.
59457         * modules/read-file (Makefile.am): Likewise.
59458         * modules/readline (Makefile.am): Likewise.
59459         * modules/readlink (Makefile.am): Likewise.
59460         * modules/readtokens (Makefile.am): Likewise.
59461         * modules/readutmp (Makefile.am): Likewise.
59462         * modules/realloc (Makefile.am): Likewise.
59463         * modules/regex (Makefile.am): Likewise.
59464         * modules/rename-dest-slash (Makefile.am): Likewise.
59465         * modules/rename (Makefile.am): Likewise.
59466         * modules/rijndael (Makefile.am): Likewise.
59467         * modules/rmdir (Makefile.am): Likewise.
59468         * modules/rpmatch (Makefile.am): Likewise.
59469         * modules/safe-read (Makefile.am): Likewise.
59470         * modules/safe-write (Makefile.am): Likewise.
59471         * modules/same-inode (Makefile.am): Likewise.
59472         * modules/same (Makefile.am): Likewise.
59473         * modules/save-cwd (Makefile.am): Likewise.
59474         * modules/savedir (Makefile.am): Likewise.
59475         * modules/setenv (Makefile.am): Likewise.
59476         * modules/settime (Makefile.am): Likewise.
59477         * modules/sha1 (Makefile.am): Likewise.
59478         * modules/sig2str (Makefile.am): Likewise.
59479         * modules/snprintf (Makefile.am): Likewise.
59480         * modules/stat-macros (Makefile.am): Likewise.
59481         * modules/stat-time (Makefile.am): Likewise.
59482         * modules/stdbool (Makefile.am): Likewise.
59483         * modules/stdint (Makefile.am): Likewise.
59484         * modules/stdlib-safer (Makefile.am): Likewise.
59485         * modules/stpcpy (Makefile.am): Likewise.
59486         * modules/stpncpy (Makefile.am): Likewise.
59487         * modules/strcase (Makefile.am): Likewise.
59488         * modules/strcasestr (Makefile.am): Likewise.
59489         * modules/strchrnul (Makefile.am): Likewise.
59490         * modules/strcspn (Makefile.am): Likewise.
59491         * modules/strdup (Makefile.am): Likewise.
59492         * modules/strerror (Makefile.am): Likewise.
59493         * modules/strftime (Makefile.am): Likewise.
59494         * modules/strndup (Makefile.am): Likewise.
59495         * modules/strnlen (Makefile.am): Likewise.
59496         * modules/strpbrk (Makefile.am): Likewise.
59497         * modules/strsep (Makefile.am): Likewise.
59498         * modules/strstr (Makefile.am): Likewise.
59499         * modules/strtod (Makefile.am): Likewise.
59500         * modules/strtoimax (Makefile.am): Likewise.
59501         * modules/strtok_r (Makefile.am): Likewise.
59502         * modules/strtol (Makefile.am): Likewise.
59503         * modules/strtoll (Makefile.am): Likewise.
59504         * modules/strtoul (Makefile.am): Likewise.
59505         * modules/strtoull (Makefile.am): Likewise.
59506         * modules/strtoumax (Makefile.am): Likewise.
59507         * modules/strverscmp (Makefile.am): Likewise.
59508         * modules/sys_socket (Makefile.am): Likewise.
59509         * modules/sys_stat (Makefile.am): Likewise.
59510         * modules/sysexits (Makefile.am): Likewise.
59511         * modules/time_r (Makefile.am): Likewise.
59512         * modules/timegm (Makefile.am): Likewise.
59513         * modules/timespec (Makefile.am): Likewise.
59514         * modules/tmpfile-safer (Makefile.am): Likewise.
59515         * modules/trim (Makefile.am): Likewise.
59516         * modules/unistd-safer (Makefile.am): Likewise.
59517         * modules/unlinkdir (Makefile.am): Likewise.
59518         * modules/unlocked-io (Makefile.am): Likewise.
59519         * modules/userspec (Makefile.am): Likewise.
59520         * modules/utime (Makefile.am): Likewise.
59521         * modules/utimecmp (Makefile.am): Likewise.
59522         * modules/utimens (Makefile.am): Likewise.
59523         * modules/vasnprintf (Makefile.am): Likewise.
59524         * modules/vasprintf (Makefile.am): Likewise.
59525         * modules/vsnprintf (Makefile.am): Likewise.
59526         * modules/xalloc (Makefile.am): Likewise.
59527         * modules/xgetcwd (Makefile.am): Likewise.
59528         * modules/xnanosleep (Makefile.am): Likewise.
59529         * modules/xreadlink (Makefile.am): Likewise.
59530         * modules/xstrtod (Makefile.am): Likewise.
59531         * modules/xstrtol (Makefile.am): Likewise.
59532         * modules/xstrtold (Makefile.am): Likewise.
59533         * modules/yesno (Makefile.am): Likewise.
59534         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
59535
59536 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
59537
59538         * modules/error (Makefile.am): Distribute files through
59539         EXTRA_DIST, not lib_SOURCES.
59540
59541 2006-10-12  Eric Blake  <ebb9@byu.net>
59542
59543         * modules/error (Makefile.am): Distribute files in /lib.
59544         * modules/obstack (Makefile.am): Likewise.
59545
59546 2006-10-12  Bruno Haible  <bruno@clisp.org>
59547
59548         * modules/acl (Makefile.am): Distribute all files in lib/ through
59549         EXTRA_DIST.
59550         * modules/arcfour (Makefile.am): Likewise.
59551         * modules/arctwo (Makefile.am): Likewise.
59552         * modules/argmatch (Makefile.am): Likewise.
59553         * modules/argz (Makefile.am): Likewise.
59554         * modules/atexit (Makefile.am): Likewise.
59555         * modules/backupfile (Makefile.am): Likewise.
59556         * modules/c-strtod (Makefile.am): Likewise.
59557         * modules/c-strtold (Makefile.am): Likewise.
59558         * modules/calloc (Makefile.am): Likewise.
59559         * modules/canon-host (Makefile.am): Likewise.
59560         * modules/canonicalize (Makefile.am): Likewise.
59561         * modules/chdir-long (Makefile.am): Likewise.
59562         * modules/chdir-safer (Makefile.am): Likewise.
59563         * modules/check-version (Makefile.am): Likewise.
59564         * modules/chown (Makefile.am): Likewise.
59565         * modules/cloexec (Makefile.am): Likewise.
59566         * modules/close-stream (Makefile.am): Likewise.
59567         * modules/closeout (Makefile.am): Likewise.
59568         * modules/crc (Makefile.am): Likewise.
59569         * modules/cycle-check (Makefile.am): Likewise.
59570         * modules/des (Makefile.am): Likewise.
59571         * modules/dirfd (Makefile.am): Likewise.
59572         * modules/dirname (Makefile.am): Likewise.
59573         * modules/dup2 (Makefile.am): Likewise.
59574         * modules/euidaccess (Makefile.am): Likewise.
59575         * modules/exclude (Makefile.am): Likewise.
59576         * modules/exitfail (Makefile.am): Likewise.
59577         * modules/fcntl-safer (Makefile.am): Likewise.
59578         * modules/file-type (Makefile.am): Likewise.
59579         * modules/fileblocks (Makefile.am): Likewise.
59580         * modules/filemode (Makefile.am): Likewise.
59581         * modules/filenamecat (Makefile.am): Likewise.
59582         * modules/fnmatch (Makefile.am): Likewise.
59583         * modules/fopen-safer (Makefile.am): Likewise.
59584         * modules/fpending (Makefile.am): Likewise.
59585         * modules/fprintftime (Makefile.am): Likewise.
59586         * modules/free (Makefile.am): Likewise.
59587         * modules/fsusage (Makefile.am): Likewise.
59588         * modules/ftruncate (Makefile.am): Likewise.
59589         * modules/fts (Makefile.am): Likewise.
59590         * modules/gc (Makefile.am): Likewise.
59591         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
59592         * modules/getaddrinfo (Makefile.am): Likewise.
59593         * modules/getcwd (Makefile.am): Likewise.
59594         * modules/getdelim (Makefile.am): Likewise.
59595         * modules/getdomainname (Makefile.am): Likewise.
59596         * modules/getgroups (Makefile.am): Likewise.
59597         * modules/gethostname (Makefile.am): Likewise.
59598         * modules/gethrxtime (Makefile.am): Likewise.
59599         * modules/getline (Makefile.am): Likewise.
59600         * modules/getloadavg (Makefile.am): Likewise.
59601         * modules/getlogin_r (Makefile.am): Likewise.
59602         * modules/getopt (Makefile.am): Likewise.
59603         * modules/getpass (Makefile.am): Likewise.
59604         * modules/getpass-gnu (Makefile.am): Likewise.
59605         * modules/getsubopt (Makefile.am): Likewise.
59606         * modules/gettime (Makefile.am): Likewise.
59607         * modules/gettimeofday (Makefile.am): Likewise.
59608         * modules/getugroups (Makefile.am): Likewise.
59609         * modules/getusershell (Makefile.am): Likewise.
59610         * modules/glob (Makefile.am): Likewise.
59611         * modules/group-member (Makefile.am): Likewise.
59612         * modules/hard-locale (Makefile.am): Likewise.
59613         * modules/hash (Makefile.am): Likewise.
59614         * modules/hmac-md5 (Makefile.am): Likewise.
59615         * modules/hmac-sha1 (Makefile.am): Likewise.
59616         * modules/human (Makefile.am): Likewise.
59617         * modules/idcache (Makefile.am): Likewise.
59618         * modules/imaxabs (Makefile.am): Likewise.
59619         * modules/imaxdiv (Makefile.am): Likewise.
59620         * modules/inet_ntop (Makefile.am): Likewise.
59621         * modules/inet_pton (Makefile.am): Likewise.
59622         * modules/inttostr (Makefile.am): Likewise.
59623         * modules/isapipe (Makefile.am): Likewise.
59624         * modules/lchown (Makefile.am): Likewise.
59625         * modules/long-options (Makefile.am): Likewise.
59626         * modules/lstat (Makefile.am): Likewise.
59627         * modules/malloc (Makefile.am): Likewise.
59628         * modules/mathl (Makefile.am): Likewise.
59629         * modules/mbchar (Makefile.am): Likewise.
59630         * modules/md2 (Makefile.am): Likewise.
59631         * modules/md4 (Makefile.am): Likewise.
59632         * modules/md5 (Makefile.am): Likewise.
59633         * modules/memcasecmp (Makefile.am): Likewise.
59634         * modules/memchr (Makefile.am): Likewise.
59635         * modules/memcmp (Makefile.am): Likewise.
59636         * modules/memcoll (Makefile.am): Likewise.
59637         * modules/memcpy (Makefile.am): Likewise.
59638         * modules/memmem (Makefile.am): Likewise.
59639         * modules/memmove (Makefile.am): Likewise.
59640         * modules/mempcpy (Makefile.am): Likewise.
59641         * modules/memrchr (Makefile.am): Likewise.
59642         * modules/memset (Makefile.am): Likewise.
59643         * modules/memxor (Makefile.am): Likewise.
59644         * modules/mkancesdirs (Makefile.am): Likewise.
59645         * modules/mkdir (Makefile.am): Likewise.
59646         * modules/mkdir-p (Makefile.am): Likewise.
59647         * modules/mkdtemp (Makefile.am): Likewise.
59648         * modules/mkstemp (Makefile.am): Likewise.
59649         * modules/mktime (Makefile.am): Likewise.
59650         * modules/modechange (Makefile.am): Likewise.
59651         * modules/mountlist (Makefile.am): Likewise.
59652         * modules/nanosleep (Makefile.am): Likewise.
59653         * modules/openat (Makefile.am): Likewise.
59654         * modules/pagealign_alloc (Makefile.am): Likewise.
59655         * modules/physmem (Makefile.am): Likewise.
59656         * modules/poll (Makefile.am): Likewise.
59657         * modules/posixtm (Makefile.am): Likewise.
59658         * modules/posixver (Makefile.am): Likewise.
59659         * modules/putenv (Makefile.am): Likewise.
59660         * modules/quote (Makefile.am): Likewise.
59661         * modules/quotearg (Makefile.am): Likewise.
59662         * modules/raise (Makefile.am): Likewise.
59663         * modules/read-file (Makefile.am): Likewise.
59664         * modules/readline (Makefile.am): Likewise.
59665         * modules/readlink (Makefile.am): Likewise.
59666         * modules/readtokens (Makefile.am): Likewise.
59667         * modules/readutmp (Makefile.am): Likewise.
59668         * modules/realloc (Makefile.am): Likewise.
59669         * modules/regex (Makefile.am): Likewise.
59670         * modules/rename (Makefile.am): Likewise.
59671         * modules/rename-dest-slash (Makefile.am): Likewise.
59672         * modules/rijndael (Makefile.am): Likewise.
59673         * modules/rmdir (Makefile.am): Likewise.
59674         * modules/rpmatch (Makefile.am): Likewise.
59675         * modules/safe-read (Makefile.am): Likewise.
59676         * modules/safe-write (Makefile.am): Likewise.
59677         * modules/same (Makefile.am): Likewise.
59678         * modules/save-cwd (Makefile.am): Likewise.
59679         * modules/savedir (Makefile.am): Likewise.
59680         * modules/setenv (Makefile.am): Likewise.
59681         * modules/settime (Makefile.am): Likewise.
59682         * modules/sha1 (Makefile.am): Likewise.
59683         * modules/sig2str (Makefile.am): Likewise.
59684         * modules/snprintf (Makefile.am): Likewise.
59685         * modules/stdlib-safer (Makefile.am): Likewise.
59686         * modules/stpcpy (Makefile.am): Likewise.
59687         * modules/stpncpy (Makefile.am): Likewise.
59688         * modules/strcase (Makefile.am): Likewise.
59689         * modules/strcasestr (Makefile.am): Likewise.
59690         * modules/strchrnul (Makefile.am): Likewise.
59691         * modules/strcspn (Makefile.am): Likewise.
59692         * modules/strdup (Makefile.am): Likewise.
59693         * modules/strerror (Makefile.am): Likewise.
59694         * modules/strftime (Makefile.am): Likewise.
59695         * modules/strndup (Makefile.am): Likewise.
59696         * modules/strnlen (Makefile.am): Likewise.
59697         * modules/strpbrk (Makefile.am): Likewise.
59698         * modules/strsep (Makefile.am): Likewise.
59699         * modules/strstr (Makefile.am): Likewise.
59700         * modules/strtod (Makefile.am): Likewise.
59701         * modules/strtoimax (Makefile.am): Likewise.
59702         * modules/strtok_r (Makefile.am): Likewise.
59703         * modules/strtol (Makefile.am): Likewise.
59704         * modules/strtoll (Makefile.am): Likewise.
59705         * modules/strtoul (Makefile.am): Likewise.
59706         * modules/strtoull (Makefile.am): Likewise.
59707         * modules/strtoumax (Makefile.am): Likewise.
59708         * modules/strverscmp (Makefile.am): Likewise.
59709         * modules/time_r (Makefile.am): Likewise.
59710         * modules/timegm (Makefile.am): Likewise.
59711         * modules/tmpfile-safer (Makefile.am): Likewise.
59712         * modules/unistd-safer (Makefile.am): Likewise.
59713         * modules/unlinkdir (Makefile.am): Likewise.
59714         * modules/userspec (Makefile.am): Likewise.
59715         * modules/utime (Makefile.am): Likewise.
59716         * modules/utimecmp (Makefile.am): Likewise.
59717         * modules/utimens (Makefile.am): Likewise.
59718         * modules/vasnprintf (Makefile.am): Likewise.
59719         * modules/vasprintf (Makefile.am): Likewise.
59720         * modules/vsnprintf (Makefile.am): Likewise.
59721         * modules/xalloc (Makefile.am): Likewise.
59722         * modules/xgetcwd (Makefile.am): Likewise.
59723         * modules/xnanosleep (Makefile.am): Likewise.
59724         * modules/xreadlink (Makefile.am): Likewise.
59725         * modules/xstrtod (Makefile.am): Likewise.
59726         * modules/xstrtol (Makefile.am): Likewise.
59727         * modules/xstrtold (Makefile.am): Likewise.
59728         * modules/yesno (Makefile.am): Likewise.
59729
59730 2006-10-12  Jim Meyering  <jim@meyering.net>
59731
59732         * m4/getloadavg.m4: Revert the change below.
59733
59734         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
59735         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
59736         fail with a symlink, which is what coreutils' ./bootstrap now
59737         creates by default.
59738
59739 2006-10-12  Bruno Haible  <bruno@clisp.org>
59740
59741         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
59742         mingw.
59743         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
59744         MSVC and mingw explicitly.
59745
59746 2006-10-11  Simon Josefsson  <jas@extundo.com>
59747             Bruno Haible  <bruno@clisp.org>
59748
59749         Add support for multiple gnulib-tool invocations in the scope of a
59750         single configure.ac file.
59751         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
59752         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
59753         with the same contents as the _LIBADD variable.
59754         (func_emit_initmacro_start, func_emit_initmacro_end,
59755         func_emit_initmacro_done): New functions.
59756         (func_import, func_create_testdir): Invoke them. Allow the identifiers
59757         gl_LIBOBJS and gl_LTLIBOBJS.
59758
59759 2006-10-11  Bruno Haible  <bruno@clisp.org>
59760
59761         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
59762         (func_create_testdir): Don't create po/Makefile.am, don't invoke
59763         autoreconf. Instead, invoke autopoint explicitly but move back the
59764         *.m4 files from gnulib.
59765
59766 2006-10-11  Bruno Haible  <bruno@clisp.org>
59767
59768         * gnulib-tool (func_usage): Make module names after --create-testdir
59769         optional.
59770         (func_create_testdir): If no module was specified, use nearly all
59771         modules.
59772
59773 2006-10-12  Jim Meyering  <jim@meyering.net>
59774
59775         Big performance improvement for fts-based tools that use FTS_NOSTAT.
59776         Avoid spurious inode-mismatch problems on non-POSIX file systems.
59777         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
59778         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
59779         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
59780         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
59781         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
59782         (fts_set_stat_required): New function.
59783         (fts_open): Defer the calls to fts_stat, if possible or requested.
59784         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
59785         into fts_stat itself.
59786         (fts_read): Perform any required (deferred) fts_stat call.
59787         (fts_build): Likewise, for the directory we're about to open and read.
59788         In the readdir loop, carefully decide whether each entry will require
59789         an eventual call to fts_stat, using dirent.d_type info if available.
59790         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
59791         a command line argument into this function.  Update all callers.
59792         Map a return value of FTS_DOT to FTS_D for a command line argument.
59793         * modules/fts (Depends-on): Add d-type.  Alphabetize.
59794         Thanks to Miklos Szeredi for his tenacity and for the initial
59795         bug report about "find" failing on a FUSE-based file system.
59796
59797         * lib/fts.c (fts_open): Use consistent indentation.
59798
59799 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
59800
59801         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
59802         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
59803         reported by Jim Meyering.  All uses of cache variables renamed
59804         to match Autoconf's.
59805         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
59806         the other one.
59807
59808         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
59809         Fix misspelling in diagnostic.
59810
59811 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
59812
59813         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
59814         defined.  Problem reported by Matthew Woehlke.
59815
59816         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
59817         Add support for Tandem NonStop R series.
59818         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
59819         Use new macro.
59820
59821         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
59822         (has_trailing_slash): Omit size arg; all callers changed.
59823         Omit 'inline', since it doesn't help performance and we'd
59824         need to configure it.
59825         Don't count //, ///, etc. as having a trailing slash.
59826         As a side effect, this removes a C99ism reported by Matthew Woehlke.
59827         (rpl_rename_dest_slash): On failure, use rename's errno rather
59828         than (in some cases) an incorrect or junk errno.
59829         Simplify code by removing need to compute length; this does
59830         cause it to make two passes instead of one over the file name,
59831         but it's worth it.
59832
59833         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
59834         change, since Autoconf's version may no longer be appropriate now
59835         that we are using CVS Autoconf's version.  Add support for Tandem.
59836
59837 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
59838             Bruno Haible  <bruno@clisp.org>
59839
59840         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
59841         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
59842         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
59843         gl_AC_TYPE_LONG_LONG.
59844
59845         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
59846         instead of HAVE_LONG_LONG.
59847         * lib/printf-args.c (printf_fetchargs): Likewise.
59848         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
59849         * lib/vasnprintf.c (VASNPRINTF): Likewise.
59850         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
59851         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
59852         gl_AC_TYPE_LONG_LONG.
59853
59854 2006-10-11  Bruno Haible  <bruno@clisp.org>
59855
59856         * m4/longlong.m4: Add comments.
59857         * m4/ulonglong.m4: Likewise.
59858
59859 2006-10-10  Bruno Haible  <bruno@clisp.org>
59860
59861         Make it possible to #define stpcpy, strdup to aliases.
59862         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
59863         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
59864
59865 2006-10-10  Bruno Haible  <bruno@clisp.org>
59866
59867         Make it possible to #define gcd to an alias.
59868         * lib/gcd.c: Include config.h.
59869
59870 2006-10-10  Bruno Haible  <bruno@clisp.org>
59871
59872         Make it possible to #define c_isascii to an alias.
59873         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
59874         defined. Undefine the macros before defining them, to avoid gcc
59875         warnings.
59876         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
59877         define NO_C_CTYPE_MACROS early.
59878
59879 2006-10-10  Bruno Haible  <bruno@clisp.org>
59880
59881         Make it possible to #define set_program_name to an alias.
59882         * lib/progname.c: Don't undefine set_program_name; instead, undefine
59883         ENABLE_RELOCATABLE early.
59884
59885 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
59886
59887         Port to Tandem NSK OSS, which has 64-bit signed int but at most
59888         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
59889         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
59890         More generally, don't assume that 64-bit signed int is available
59891         if unsigned int is, and vice versa.
59892         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
59893         unsigned symbols, not on their signed counterparts.
59894         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
59895         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
59896         (UINT64_C, UINTMAX_C):
59897         Likewise.
59898         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
59899         unsigned counterparts.
59900         (Have_long_long, Unsigned): New macros.
59901         (Int): Renamed from INT.
59902         (strtoimax): Use the new macros.
59903         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
59904         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
59905         * modules/inttypes (inttypes.h): Substitute
59906         HAVE_UNSIGNED_LONG_LONG_INT.
59907         * modules/stdint (stdint.h): Likewise.
59908         (Files): Add m4/ulonglong.m4.
59909
59910 2006-10-10  Bruno Haible  <bruno@clisp.org>
59911
59912         Fix a gcc -Wshadow warning.
59913         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
59914         to 'bucket'.
59915         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
59916         gl_linked_indexof_from_to): Likewise.
59917         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
59918         Likewise.
59919         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
59920         Likewise.
59921         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
59922         Reported by Eric Blake.
59923
59924 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
59925
59926         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
59927         for NetBSD.  Problem reported by Bruno Haible.
59928
59929 2006-10-09  Jim Meyering  <jim@meyering.net>
59930
59931         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
59932         Patch from Bruno Haible.
59933
59934 2006-10-09  Jim Meyering  <jim@meyering.net>
59935
59936         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
59937         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
59938         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
59939
59940 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
59941
59942         Don't include <config.h> twice; this doesn't work in some cases,
59943         e.g., when config.h has "#define intmax_t long long int" and
59944         we include <config.h>, <inttypes.h>, <config.h> in that order.
59945         Problem reported by Matthew Woehlke in:
59946         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
59947         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
59948         * lib/fts-cycle.c: Don't include config.h.
59949         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
59950         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
59951         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
59952         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
59953         inttypes.h.
59954         * lib/xstrtoumax.c: Likewise.
59955         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
59956         __strtol and the like, so that this module is more like its siblings.
59957         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
59958         Remove; no longer needed now that we assume gnulib inttypes.h.
59959
59960 2006-10-08  Bruno Haible  <bruno@clisp.org>
59961
59962         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
59963         option.
59964
59965 2006-10-07  Jim Meyering  <jim@meyering.net>
59966
59967         * modules/inttypes (inttypes.h): Revert what seems to have been
59968         an inadvertent part of today's change: use "|", not "/" in the
59969         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
59970
59971 2006-10-07  Bruno Haible  <bruno@clisp.org>
59972
59973         * modules/sublist: New file.
59974
59975 2006-10-07  Bruno Haible  <bruno@clisp.org>
59976
59977         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
59978         * modules/argz (argz.h): Likewise.
59979         * modules/arpa_inet (arpa/inet.h): Likewise.
59980         * modules/byteswap (byteswap.h): Likewise.
59981         * modules/configmake (configmake.h): Likewise.
59982         * modules/fcntl (fcntl.h): Likewise.
59983         * modules/fnmatch (fnmatch.h): Likewise.
59984         * modules/getopt (getopt.h): Likewise.
59985         * modules/glob (glob.h): Likewise.
59986         * modules/inttypes (inttypes.h): Likewise.
59987         * modules/netinet_in (netinet/in.h): Likewise.
59988         * modules/poll (poll.h): Likewise.
59989         * modules/stdbool (stdbool.h): Likewise.
59990         * modules/stdint (stdint.h): Likewise.
59991         * modules/sys_select (sys/select.h): Likewise.
59992         * modules/sys_socket (sys/socket.h): Likewise.
59993         * modules/sys_stat (sys/stat.h): Likewise.
59994         * modules/sysexits (sysexits.h): Likewise.
59995         * modules/unistd (unistd.h): Likewise.
59996         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59997         Add a "DO NOT EDIT" comment to the generated file.
59998         (func_import): Likewise for gnulib-comp.m4.
59999
60000 2006-10-07  Bruno Haible  <bruno@clisp.org>
60001
60002         * lib/gl_sublist.h: New file.
60003         * lib/gl_sublist.c: New file.
60004
60005 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
60006
60007         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
60008         name (relative to the original working directory) and the file
60009         name component (relative to the temporary working directory).  All
60010         callers changed.
60011         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
60012         * lib/mkdir-p.c (make_dir_parents): Likewise.
60013         * lib/mkdir-p.h (make_dir_parents): Likewise.
60014
60015 2006-10-06  Eric Blake  <ebb9@byu.net>
60016
60017         Define several macros for use by the clean-temp module.
60018         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
60019         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
60020         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
60021
60022         * lib/clean-temp.h (close_stream_temp): New declaration.
60023         * lib/clean-temp.c (includes): Pull in headers according to what
60024         other modules are in use.
60025         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
60026
60027 2006-10-06  Bruno Haible  <bruno@clisp.org>
60028
60029         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
60030         instead of fopen, fwriteerror.
60031
60032 2006-10-06  Bruno Haible  <bruno@clisp.org>
60033
60034         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
60035         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
60036         int.
60037         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
60038         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
60039         Return an error indicator.
60040         Suggested by Eric Blake.
60041
60042 2006-10-06  Bruno Haible  <bruno@clisp.org>
60043
60044         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
60045         Reported by Eric Blake.
60046
60047 2006-10-06  Bruno Haible  <bruno@clisp.org>
60048
60049         * modules/closeout (Description): Mention stderr too.
60050
60051 2006-10-06  Bruno Haible  <bruno@clisp.org>
60052         and Paul Eggert  <eggert@cs.ucla.edu>
60053
60054         * lib/closeout.c (close_stdout): Also close stderr.
60055         * lib/closeout.h: Update comment.
60056
60057 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
60058
60059         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
60060         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
60061         * lib/dirchownmod.c: Include lchown.h.
60062         * lib/lchown.c: Don't include files that lchown.h now includes.
60063         Don't declare chown, since lchown.h now does that.
60064         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
60065         (lchown): Define to rpl_chown if lchown is declared but
60066         does not exist.  Declare using a prototype if lchown is not
60067         declared.  Add a copyright notice.
60068         * lib/mkstemp.h: Include <unistd.h>.
60069         * lib/openat.c: Include lchown.h.
60070
60071         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
60072         we now test for that separately.
60073         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
60074         rather than O_NOFOLLOW, when testing whether it's possible to
60075         avoid a race condition reliably.
60076         * lib/savewd.c (savewd_chdir): Likewise.
60077
60078         Remove macros that are no longer needed now that stdint.h is
60079         reliable.
60080         * lib/fsusage.c (UINTMAX_MAX): Remove.
60081         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
60082         * lib/utimecmp.c (SIZE_MAX): Remove.
60083
60084         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
60085
60086         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
60087         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
60088         O_NOATIME works.
60089
60090 2006-10-05  Bruno Haible  <bruno@clisp.org>
60091
60092         * lib/gl_list.h (gl_sortedlist_search_from_to,
60093         gl_sortedlist_indexof_from_to): New declarations.
60094         (gl_list_implementation): New fields sortedlist_search_from_to,
60095         sortedlist_indexof_from_to.
60096         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
60097         inline functions.
60098         * lib/gl_list.c (gl_sortedlist_search_from_to,
60099         gl_sortedlist_indexof_from_to): New functions.
60100         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
60101         function.
60102         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
60103         (gl_array_sortedlist_search_from_to): New function.
60104         (gl_array_list_implementation): Update.
60105         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
60106         function.
60107         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
60108         (gl_carray_sortedlist_search_from_to): New function.
60109         (gl_carray_list_implementation): Update.
60110         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
60111         gl_linked_sortedlist_indexof_from_to): New functions.
60112         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
60113         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
60114         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
60115         gl_tree_sortedlist_indexof_from_to): New functions.
60116         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
60117         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
60118         Update.
60119         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
60120         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
60121         Update.
60122
60123 2006-10-05  Bruno Haible  <bruno@clisp.org>
60124
60125         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
60126         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
60127         (struct gl_list_implementation): Add fields search_from_to,
60128         indexof_from_to. Remove fields search, indexof.
60129         (gl_list_search): Use the search_from_to method.
60130         (gl_list_search_from, gl_list_search_from_to): New functions.
60131         (gl_list_indexof): Use the indexof_from_to method.
60132         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
60133         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
60134         (gl_list_search_from, gl_list_search_from_to): New functions.
60135         (gl_list_indexof): Use the indexof_from_to method.
60136         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
60137         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
60138         gl_array_indexof. Add start_index, end_index arguments.
60139         (gl_array_search_from_to): Renamed from gl_array_search. Add
60140         start_index, end_index arguments.
60141         (gl_array_remove, gl_array_list_implementation): Update.
60142         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
60143         gl_carray_indexof. Add start_index, end_index arguments.
60144         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
60145         start_index, end_index arguments.
60146         (gl_carray_remove, gl_carray_list_implementation): Update.
60147         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
60148         gl_linked_search. Add start_index, end_index arguments.
60149         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
60150         start_index, end_index arguments.
60151         (gl_linked_remove): Update.
60152         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
60153         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
60154         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
60155         field to 'size_t'.
60156         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
60157         gl_tree_search. Add start_index, end_index arguments.
60158         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
60159         start_index, end_index arguments.
60160         (gl_tree_remove): Update.
60161         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
60162         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
60163         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
60164         function.
60165         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
60166         gl_tree_search. Add start_index, end_index arguments.
60167         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
60168         start_index, end_index arguments.
60169         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
60170         Update.
60171         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
60172
60173 2006-10-05  Bruno Haible  <bruno@clisp.org>
60174
60175         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
60176
60177         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
60178         fwriteerror_temp): New declarations.
60179         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
60180         (descriptors): New variable.
60181         (cleanup): First, close the descriptors.
60182         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
60183         fclose_temp, fwriteerror_temp): New functions.
60184
60185 2006-10-04  Jim Meyering  <jim@meyering.net>
60186
60187         * lib/fts.c (fts_open): Tiny comment change.
60188
60189 2006-10-04  Bruno Haible  <bruno@clisp.org>
60190
60191         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
60192         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
60193         gl_LOCK_BODY.
60194         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
60195         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
60196         gl_LOCK_EARLY_BODY.
60197         (gl_LOCK): Require gl_LOCK_BODY.
60198
60199 2006-10-04  Bruno Haible  <bruno@clisp.org>
60200
60201         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
60202         (gl_oset_search_atleast): New declaration.
60203         (struct gl_oset_implementation): Add field 'search_atleast'.
60204         (gl_oset_search_atleast): New inline function.
60205         * lib/gl_oset.c (gl_oset_search_atleast): New function.
60206         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
60207         (gl_array_oset_implementation): Update.
60208         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
60209         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
60210         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
60211
60212 2006-10-04  Bruno Haible  <bruno@clisp.org>
60213
60214         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
60215
60216 2006-10-03  Bruno Haible  <bruno@clisp.org>
60217
60218         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
60219         from gl_avltreehash_list_implementation.
60220
60221 2006-10-03  Bruno Haible  <bruno@clisp.org>
60222
60223         * lib/gl_oset.c (gl_oset_add): Fix return type.
60224
60225 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
60226
60227         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
60228
60229 2006-10-02  Eric Blake  <ebb9@byu.net>
60230
60231         * modules/strnlen (Depends-on): Add extensions.
60232
60233 2006-10-02  Eric Blake  <ebb9@byu.net>
60234
60235         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
60236         definition in 2.60+.
60237
60238 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
60239
60240         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
60241         checks.
60242
60243 2006-10-02  Bruno Haible  <bruno@clisp.org>
60244
60245         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
60246         to the AUTOMAKE_OPTIONS.
60247         Reported by Jim Meyering.
60248
60249 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
60250
60251         Work around bug in Solaris 10 /proc file system:
60252         /proc/self/fd/NNN/.. isn't the parent directory of
60253         the directory whose file descriptor is NNN.  This needs to
60254         be worked around at run time, not compile time, since a
60255         program might be built on Solaris 8, where things work, and
60256         run on Solaris 10.
60257         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
60258         to use the following interface instead:
60259         (OPENAT_BUFFER_SIZE): New macro.
60260         (openat_proc_name): New function.
60261         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
60262         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
60263         Likewise.
60264         * lib/openat-proc.c: New file.
60265         * modules/openat (Files): Add lib/openat-proc.c.
60266         (Depends-on): Add same-inode, stdbool.
60267         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
60268
60269 2006-09-29  Bruno Haible  <bruno@clisp.org>
60270
60271         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
60272         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
60273         argument. Set stdout_closed before testing for ferror, not after.
60274         (fwriteerror, fwriteerror_no_ebadf): New functions.
60275
60276 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60277
60278         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
60279
60280 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
60281
60282         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
60283         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
60284
60285 2006-09-28  Jim Meyering  <jim@meyering.net>
60286
60287         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
60288         Include <unistd.h>.
60289
60290 2006-09-28  Bruno Haible  <bruno@clisp.org>
60291
60292         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
60293         * modules/linkedhash-list (Depends-on): Likewise.
60294         * modules/rbtreehash-list (Depends-on): Likewise.
60295
60296 2006-09-28  Bruno Haible  <bruno@clisp.org>
60297
60298         * lib/strndup.h: Simplify the redefinition of strndup.
60299         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
60300         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
60301
60302 2006-09-28  Bruno Haible  <bruno@clisp.org>
60303
60304         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
60305         * lib/gl_linkedhash_list.c: Likewise.
60306         * lib/gl_rbtreehash_list.c: Likewise.
60307
60308 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
60309
60310         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
60311         getaddrinfo.
60312
60313         * lib/__fpending.h: Don't include <stdio_ext.h> unless
60314         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
60315         it causes <stdio_ext.h> to cause a compile-time error.
60316         Problem reported by Nelson H. F. Beebe.
60317         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
60318         of HAVE_DECL___PENDING.
60319
60320         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
60321         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
60322         declaration.
60323
60324 2006-09-27  Jim Meyering  <jim@meyering.net>
60325
60326         This file could end up with a definition for a function
60327         named __strndup, rather than rpl_strndup on a system with
60328         incomplete weak_alias support.
60329         * lib/strndup.c (strndup): Rename from __strndup.
60330         Remove #defines that used to map __strndup to strndup.
60331         Don't use K&R prototypes.
60332         Remove LIBC-related code, since this file is not sync'd with glibc.
60333         * lib/strndup.h: Revamp, accordingly.
60334         * m4/strndup.m4: Modernize.
60335
60336 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
60337
60338         * modules/savewd (Depends-on): Add 'raise'.
60339         * lib/savewd.c: Include <signal.h>, for 'raise'.
60340
60341 2006-09-26  Jim Meyering  <jim@meyering.net>
60342
60343         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
60344         when we detect Darwin 8.7.0's acl_get_file bug.
60345         Rearrange to perform the new (below) run-test while $LIBS
60346         contains any acl-related library.  Set USE_ACL at the end.
60347         (gl_ACL_GET_FILE): New function.
60348
60349 2006-09-26  Eric Blake  <ebb9@byu.net>
60350
60351         * lib/verror.c: Include <config.h> unconditionally.
60352
60353 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
60354
60355         * modules/clock-time (Maintainer): Add self.
60356         * modules/getlogin_r (Depends-on): Add extensions.
60357
60358 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60359
60360         * modules/clock-time: New module.
60361         * modules/nanosleep (Depends-on): Add clock-time.
60362         * modules/gethrxtime (Depends-on): Likewise.
60363         * modules/gettime (Depends-on): Likewise.
60364         * modules/settime (Depends-on): Likewise.
60365
60366         * modules/fts-lgpl: Depend on openat.
60367         * modules/mkancesdirs: Depend on savewd.
60368         * modules/mkdir-p: Likewise.
60369
60370 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60371
60372         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
60373
60374         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
60375         `gl_have_arbitrary_file_name_length_limit' to
60376         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
60377         actually works between configure runs.
60378
60379 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60380             Bruno Haible  <bruno@clisp.org>
60381
60382         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
60383
60384 2006-09-25  Jim Meyering  <jim@meyering.net>
60385
60386         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
60387         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
60388
60389 2006-09-25  Eric Blake  <ebb9@byu.net>
60390
60391         * gnulib-tool (func_import, func_create_testdir): Fix typos in
60392         exec's in 2006-09-18 patch when shuffling fds.
60393
60394 2006-09-25  Bruno Haible  <bruno@clisp.org>
60395
60396         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
60397         Reported by Jim Meyering.
60398
60399 2006-09-24  Jim Meyering  <jim@meyering.net>
60400
60401         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
60402         compare a pointer against a literal "0".  That caused failures with
60403         at least HP-UX's hpcc.
60404
60405 2006-09-22  Simon Josefsson  <jas@extundo.com>
60406
60407         * modules/gc-sha1:
60408         * modules/gc-md4:
60409         * modules/gc-hmac-sha1:
60410         * modules/gc-hmac-md5:
60411         * modules/gc-des:
60412         * modules/gc-arcfour: Distribute more files.
60413
60414 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60415
60416         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
60417         (gl_linked_iterator_from_to): Initialize struct completely.
60418         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
60419         (gl_tree_iterator_from_to): Likewise
60420         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
60421         * lib/gl_array_list.c [lint] (gl_array_iterator)
60422         (gl_array_iterator_from_to): Likewise.
60423         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
60424         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
60425         (gl_carray_iterator_from_to): Likewise.
60426
60427         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
60428         * lib/md4.c (md4_process_block): Remove unused variable.
60429         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
60430         parentheses for clarity.
60431
60432 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60433
60434         * modules/bison-i18n (Depends-on): Add gettext.
60435
60436 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60437
60438         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
60439         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
60440         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
60441         also add missing comma that caused broken test.
60442         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
60443         stdlib.h, for `abort'.
60444         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
60445         variables.
60446         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
60447         include unistd.h if present, for `rmdir'.
60448         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
60449         variables.
60450         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
60451         in the process include standard headers for prototypes.
60452         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
60453         gets declared on GNU/Linux.
60454         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
60455         unistd.h, for `rmdir'.
60456         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
60457
60458         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
60459         always true.
60460         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
60461
60462         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
60463
60464 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60465
60466         * gnulib-tool (func_version): Create output all at once.  This
60467         may help avoid triggering unnecessary SIGPIPEs, and at any
60468         rate it doesn't hurt.
60469
60470 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60471             Bruno Haible  <bruno@clisp.org>
60472
60473         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
60474         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
60475         * m4/signed.m4 (bh_C_SIGNED): Likewise.
60476
60477         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
60478         (gl_FUNC_VASPRINTF): Invoke it.
60479
60480 2006-09-22  Bruno Haible  <bruno@clisp.org>
60481
60482         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
60483         getloadavg.c as first argument.
60484
60485 2006-09-22  Bruno Haible  <bruno@clisp.org>
60486
60487         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
60488         at the beginning of the gl_INIT macro.
60489         * modules/getloadavg (configure.ac): Pass $gl_source_base to
60490         gl_GETLOADAVG.
60491
60492 2006-09-22  Bruno Haible  <bruno@clisp.org>
60493
60494         * gnulib-tool (func_create_megatestdir): Don't include the config-h
60495         module.
60496         Suggested by Ralf Wildenhues.
60497
60498 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
60499
60500         Import this patch from libc:
60501
60502         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
60503
60504         * lib/regex_internal.c (re_string_reconstruct): Handle
60505         offset < pstr->valid_raw_len && pstr->offsets_needed case.
60506         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
60507         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
60508         re_string_context_at.
60509
60510         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
60511         now requires it.
60512         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
60513         gl_REGEX now does it for us.
60514         (gl_REGEX): Add test taken from
60515         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
60516
60517         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
60518         Check that large offsets work.  Modernize Autoconf usages.
60519         Prefer "yes" to mean a good thing rather than a bad.
60520         Don't put "#define mkstemp" in config.h, as this might interfere
60521         with standard system headers that "#define mkstemp mkstemp64".
60522
60523         * modules/mkstemp (Depends-on): Add extensions, so that
60524         mkstemp is visible on some platforms.
60525         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
60526         (Include): Change to "mkstemp.h" from <stdlib.h>.
60527         (Files): Add mkstemp.h.
60528
60529         * lib/mkstemp.h: New file, since some standard headers
60530         #define mkstemp.
60531         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
60532         Include "mkstemp.h".
60533         Make the _LIBC code resemble glibc original more,
60534         e.g., use K&R style.
60535         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
60536         (mkstemp): Remove, since mkstemp.h does this for us.
60537         * lib/stdlib--.h: Include mkstemp.h.
60538
60539         Import this patch from libc:
60540
60541         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
60542
60543         * lib/tempname.c (__gen_tempname): Change attempts_min
60544         into a macro.  Use preprocessor to decide how to initialize
60545         attempts [Coverity CID 67].
60546
60547 2006-09-20  Bruno Haible  <bruno@clisp.org>
60548
60549         * lib/mkdtemp.c: Import from libc.
60550         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
60551                 * sysdeps/posix/tempname.c (__gen_tempname): Change
60552                 attempts_min into a macro.  Use preprocessor to decide how to
60553                 initialize attempts [Coverity CID 67].
60554         2001-11-27  Paul Eggert  <eggert@twinsun.com>
60555                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
60556                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
60557
60558 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60559
60560         * gnulib-tool (func_exit): New function, to allow to pass the
60561         exit status portably through the trap.  Use everywhere.
60562         (--help, --version): Signal a write error.
60563         (trap): catch SIGPIPE, for write errors.
60564         Exit at the end of the trap, with the correct exit status.
60565
60566 2006-09-19  Karl Berry  <karl@gnu.org>
60567
60568         * doc/gnulib.texi: note about the license texinfo files.
60569
60570 2006-09-19  Eric Blake  <ebb9@byu.net>
60571
60572         * gnulib-tool: Avoid space-tab.
60573
60574 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
60575
60576         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
60577         that prevented coreutils 6.1 from building.  Problem reported
60578         by Petter Reinholdtsen.
60579
60580 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
60581
60582         * gnulib-tool (avoidlist): Fix typo that broke options like
60583         --avoid=lock that are used by coreutils bootstrap.
60584
60585 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
60586
60587         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
60588         more systematically.
60589
60590 2006-09-18  Jim Meyering  <jim@meyering.net>
60591
60592         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
60593
60594 2006-09-18  Bruno Haible  <bruno@clisp.org>
60595
60596         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
60597
60598 2006-09-18  Bruno Haible  <bruno@clisp.org>
60599
60600         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
60601         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
60602         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
60603         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
60604         * m4/gettext.m4: Require autoconf >= 2.52.
60605         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
60606         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
60607         of gl_cv_header_inttypes_h.
60608
60609 2006-09-18  Bruno Haible  <bruno@clisp.org>
60610
60611         * lib/javaversion.c: Include configmake.h.
60612
60613 2006-09-18  Bruno Haible  <bruno@clisp.org>
60614
60615         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
60616         avoid that the while loops be executed in a subshell.
60617
60618 2006-09-18  Bruno Haible  <bruno@clisp.org>
60619
60620         * MODULES.html.sh (func_module): Break long lines.
60621         Suggested by Bruce Korb <bkorb@gnu.org>.
60622
60623 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60624
60625         Speed up by a factor of 1.12.
60626         * gnulib-tool (nl): New variable.
60627         (func_import): Rewrite include directive extraction to only read each
60628         directive once.
60629
60630 2006-09-17  Bruno Haible  <bruno@clisp.org>
60631
60632         * modules/javaversion (Makefile.am): Remove DEFS setting.
60633         (Depends-on): Add configmake, for PKGDATADIR definition.
60634
60635 2006-09-17  Bruno Haible  <bruno@clisp.org>
60636
60637         * gnulib-tool (func_create_testdir): Rewrite all files at once.
60638
60639 2006-09-17  Bruno Haible  <bruno@clisp.org>
60640
60641         * gnulib-tool (func_append): New function, stolen from libtool.m4.
60642         (func_modules_transitive_closure, func_modules_add_dummy,
60643         func_modules_to_filelist, func_import, func_create_testdir,
60644         func_create_megatestdir, ...): Use it wherever possible.
60645         Suggested by Ralf Wildenhues.
60646
60647 2006-09-16  Karl Berry  <karl@gnu.org>
60648
60649         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
60650         to avoid sectioning errors.
60651         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
60652         [ifinfo]: blank line after @center-ed titles.
60653         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
60654         Spell FSF address consistently with others.
60655         (These changes approved by rms.)
60656
60657 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60658
60659         Speed up by a factor of 1.61.
60660         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
60661         already checked module names again.
60662
60663 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60664
60665         Speed up by a factor of 1.13.
60666         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
60667         for new_files, and the input to func_add_or_update.
60668
60669 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60670
60671         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
60672         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
60673
60674 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
60675
60676         * modules/mkancesdirs (Depends-on): Add fcntl.
60677         * modules/savewd: New file.
60678         * MODULES.html.sh (File system functions): Add savewd.
60679
60680         * modules/configmake (Makefile.am): Add support for the
60681         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
60682
60683 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
60684
60685         * m4/savewd.m4: New file.
60686
60687 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
60688
60689         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
60690         (dirchownmod): New arg FD.  All callers changed.
60691         Use FD rather than opening the directory ourself, as opening is
60692         now the caller's responsibility.
60693         * lib/dirchownmod.h: Likewise.
60694         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
60695         hosts that require <sys/types.h> before <sys/stat.h>.  Include
60696         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
60697         (test_dir): Remove.
60698         (mkancesdirs): Return length of prefix of FILE that has already
60699         been made, or -2 if there is a child doing the work.  Redo
60700         algorithm so that it is O(N) rather than O(N**2).  Optimize away
60701         ".", and treat ".." specially since it might stray back into
60702         already-created areas.  Use a subprocess if necessary.  New arg
60703         WD; all users changed.  MAKE_DIR function should now return 1
60704         if it creates a directory that is not readable.  Return -2 if
60705         a child process is spun off.
60706         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
60707         Adjust signature to match code.
60708         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
60709         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
60710         all users changed.
60711         * lib/savewd.c, lib/savewd.h: New files.
60712
60713 2006-09-15  Jim Meyering  <jim@meyering.net>
60714
60715         * modules/rename-dest-slash: New module.
60716         * MODULES.html.sh (posix_compat): Add it here.
60717
60718         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
60719
60720 2006-09-15  Jim Meyering  <jim@meyering.net>
60721
60722         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
60723         file.
60724
60725         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
60726
60727 2006-09-15  Jim Meyering  <jim@meyering.net>
60728
60729         * lib/rename-dest-slash.c (has_trailing_slash): Use
60730         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
60731         (rpl_rename_dest_slash): Perform the cheaper trailing slash
60732         test before testing whether SRC is a directory.
60733         Suggestions from Bruno Haible.
60734
60735         Avoid a warning about an unused variable.
60736         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
60737         into the #ifdef block where it's used.
60738
60739         * lib/rename-dest-slash.c: New file.
60740
60741 2006-09-14  Bruno Haible  <bruno@clisp.org>
60742
60743         * lib/allocsa.c: Include <config.h> unconditionally.
60744         * lib/asnprintf.c: Likewise.
60745         * lib/asprintf.c: Likewise.
60746         * lib/c-strcasecmp.c: Likewise.
60747         * lib/c-strcasestr.c: Likewise.
60748         * lib/c-strncasecmp.c: Likewise.
60749         * lib/c-strstr.c: Likewise.
60750         * lib/classpath.c: Likewise.
60751         * lib/clean-temp.c: Likewise.
60752         * lib/concatpath.c: Likewise.
60753         * lib/copy-file.c: Likewise.
60754         * lib/csharpcomp.c: Likewise.
60755         * lib/csharpexec.c: Likewise.
60756         * lib/execute.c: Likewise.
60757         * lib/fatal-signal.c: Likewise.
60758         * lib/findprog.c: Likewise.
60759         * lib/fwriteerror.c: Likewise.
60760         * lib/gl_array_list.c: Likewise.
60761         * lib/gl_array_oset.c: Likewise.
60762         * lib/gl_avltree_list.c: Likewise.
60763         * lib/gl_avltree_oset.c: Likewise.
60764         * lib/gl_avltreehash_list.c: Likewise.
60765         * lib/gl_carray_list.c: Likewise.
60766         * lib/gl_linked_list.c: Likewise.
60767         * lib/gl_linkedhash_list.c: Likewise.
60768         * lib/gl_list.c: Likewise.
60769         * lib/gl_oset.c: Likewise.
60770         * lib/gl_rbtree_list.c: Likewise.
60771         * lib/gl_rbtree_oset.c: Likewise.
60772         * lib/gl_rbtreehash_list.c: Likewise.
60773         * lib/imaxabs.c: Likewise.
60774         * lib/imaxdiv.c: Likewise.
60775         * lib/javacomp.c: Likewise.
60776         * lib/javaexec.c: Likewise.
60777         * lib/javaversion.c: Likewise.
60778         * lib/linebreak.c: Likewise.
60779         * lib/localcharset.c: Likewise.
60780         * lib/lock.c: Likewise.
60781         * lib/mbchar.c: Likewise.
60782         * lib/mbswidth.c: Likewise.
60783         * lib/mkdtemp.c: Likewise.
60784         * lib/pipe.c: Likewise.
60785         * lib/printf-args.c: Likewise.
60786         * lib/printf-parse.c: Likewise.
60787         * lib/progname.c: Likewise.
60788         * lib/progreloc.c: Likewise.
60789         * lib/readlink.c: Likewise.
60790         * lib/sh-quote.c: Likewise.
60791         * lib/stpcpy.c: Likewise.
60792         * lib/stpncpy.c: Likewise.
60793         * lib/strcasecmp.c: Likewise.
60794         * lib/strcasestr.c: Likewise.
60795         * lib/strcspn.c: Likewise.
60796         * lib/striconv.c: Likewise.
60797         * lib/strncasecmp.c: Likewise.
60798         * lib/strnlen1.c: Likewise.
60799         * lib/strstr.c: Likewise.
60800         * lib/strtok_r.c: Likewise.
60801         * lib/tls.c: Likewise.
60802         * lib/tmpdir.c: Likewise.
60803         * lib/unicodeio.c: Likewise.
60804         * lib/unsetenv.c: Likewise.
60805         * lib/vasnprintf.c: Likewise.
60806         * lib/vasprintf.c: Likewise.
60807         * lib/wait-process.c: Likewise.
60808         * lib/xallocsa.c: Likewise.
60809         * lib/xsetenv.c: Likewise.
60810         * lib/xstriconv.c: Likewise.
60811
60812 2006-09-13  Simon Josefsson  <jas@extundo.com>
60813
60814         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
60815         that internally, suggested by Ralf Wildenhues
60816         <Ralf.Wildenhues@gmx.de>.
60817
60818 2006-09-13  Simon Josefsson  <jas@extundo.com>
60819
60820         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
60821         @LIBOBJS@.
60822         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60823
60824 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
60825
60826         * lib/_fpending.c: Include <config.h> unconditionally, since we no
60827         longer worry about uses that don't define HAVE_CONFIG_H.
60828         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
60829         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
60830         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
60831         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
60832         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
60833         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
60834         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
60835         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
60836         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
60837         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
60838         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
60839         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
60840         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
60841         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
60842         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
60843         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
60844         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
60845         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
60846         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
60847         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
60848         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
60849         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
60850         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
60851         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
60852         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
60853         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
60854         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
60855         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
60856         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
60857         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
60858         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
60859         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
60860         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
60861         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
60862         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
60863         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
60864         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
60865         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
60866         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
60867         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
60868         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
60869         Likewise.
60870
60871 2006-09-13  Eric Blake  <ebb9@byu.net>
60872
60873         * lib/getopt.c: Fix typo in last commit.
60874
60875 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
60876
60877         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
60878         dgettext.
60879
60880 2006-09-12  Jim Meyering  <jim@meyering.net>
60881
60882         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
60883         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
60884         Reported by Nelson H. F. Beebe.
60885
60886 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
60887
60888         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
60889         program_invocation_name and program_invocation_short_name are
60890         initialized.
60891         * lib/argp-namefrob.h: Move declarations of program_invocation_name
60892         and program_invocation_short_name to argp.h, so they are visible
60893         to user programs.
60894         * lib/argp.h: Likewise
60895
60896 2006-09-10  Bruno Haible  <bruno@clisp.org>
60897
60898         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
60899         m4/inttypes_h.m4, m4/uintmax_t.m4.
60900
60901 2006-09-10  Bruno Haible  <bruno@clisp.org>
60902
60903         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
60904         gl_AC_TYPE_UINTMAX_T.
60905
60906 2006-09-10  Bruno Haible  <bruno@clisp.org>
60907
60908         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
60909
60910 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
60911
60912         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
60913         convention.  Text proposed by Bruno Haible.
60914         (struct argp_option): Document the use of N_() wrappers.
60915
60916         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
60917         '\v', and translate the two parts separately, instead of feeding
60918         the whole string to gettext.  This allows to exclude
60919         '\v' from the strings visible to the translator by writing doc
60920         strings as N_("..") "\v" N_("..").
60921
60922 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
60923
60924         * config/srclist.txt: Undo latest change; the bug was fixed.
60925
60926 2006-09-09  Bruno Haible  <bruno@clisp.org>
60927
60928         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
60929         assignments if building a library without libtool.
60930         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
60931         in func_emit_lib_Makefile_am.
60932         (func_import): When building a static library libfoo.a, arrange to
60933         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
60934         (func_create_testdir): Likewise.
60935         * modules/gc (configure.ac, Makefile.am): If building statically,
60936         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
60937         * modules/iconvme (configure.ac, Makefile.am): Likewise.
60938         * modules/striconv (configure.ac, Makefile.am): Likewise.
60939         Based on a suggestion by Ralf Wildenhues.
60940
60941 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60942
60943         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
60944         Check for unistd.h too, since Autoconf doesn't assume POSIX.
60945         Also:
60946
60947         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60948         Add year_2050_test to catch glibc bug 2821
60949         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
60950
60951         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60952         Prefer #ifdef to #if.
60953
60954         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
60955         Return from 'main' instead of calling 'exit'.
60956
60957 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60958
60959         * lib/mktime.c (guess_time_tm): Fix bug where mktime
60960         returned the maximum time_t value rather than (time_t) -1.
60961         Problem originally reported by William Bardwell
60962         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
60963
60964         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
60965         Moved to here ...
60966         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
60967         ... from here.
60968
60969 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60970
60971         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
60972         2821 is fixed.
60973
60974 2006-09-08  Jim Meyering  <jim@meyering.net>
60975
60976         Don't make generated files read-only.  That would bother too many
60977         people.  However, do retain the ability to work when targets are
60978         read-only: remove the destination and temporary files before writing
60979         them (when generated via sed or echo), or by using the -f option for
60980         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
60981         * modules/alloca-opt, modules/argz, modules/arpa_inet:
60982         * modules/byteswap, modules/configmake, modules/fcntl:
60983         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
60984         * modules/localcharset, modules/netinet_in, modules/poll:
60985         * modules/stdbool, modules/stdint, modules/sys_select:
60986         * modules/sys_socket, modules/sys_stat, modules/sysexits:
60987
60988 2006-09-08  Jim Meyering  <jim@meyering.net>
60989
60990         Avoid new build failure on FreeBSD 6.0.
60991         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
60992         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
60993         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
60994
60995 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60996
60997         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
60998
60999 2006-09-07  Jim Meyering  <jim@meyering.net>
61000
61001         Fix global typo in last change: use chmod u-w, not chmod u-x.
61002         Spotted by Paul Eggert and Bruce Korb.
61003         * modules/alloca-opt, modules/argz, modules/arpa_inet:
61004         * modules/byteswap, modules/configmake, modules/fcntl:
61005         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
61006         * modules/localcharset, modules/netinet_in, modules/poll:
61007         * modules/stdbool, modules/stdint, modules/sys_select:
61008         * modules/sys_socket, modules/sys_stat, modules/sysexits:
61009
61010 2006-09-06  Jim Meyering  <jim@meyering.net>
61011
61012         Make generated files be read-only.
61013         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
61014         Ensure that each generated file is now read-only.
61015         * modules/argz: Likewise.
61016         * modules/arpa_inet: Likewise.
61017         * modules/byteswap: Likewise.
61018         * modules/configmake: Likewise.
61019         * modules/fcntl: Likewise.
61020         * modules/fnmatch: Likewise.
61021         * modules/getopt: Likewise.
61022         * modules/glob: Likewise.
61023         * modules/inttypes: Likewise.
61024         * modules/netinet_in: Likewise.
61025         * modules/poll: Likewise.
61026         * modules/stdbool: Likewise.
61027         * modules/stdint: Likewise.
61028         * modules/sys_select: Likewise.
61029         * modules/sys_socket: Likewise.
61030         * modules/sys_stat: Likewise.
61031         * modules/sysexits: Likewise.
61032         * modules/localcharset: Same as above, but continue using temporary
61033         file named "t-$@" (why different?) rather than the "$@-t" used
61034         everywhere else.
61035
61036         * modules/sysexits (Makefile.am): Replace literal occurrences
61037         of "sysexit.h" more readable, and more consistent, "$@".
61038
61039 2006-09-06  Bruno Haible  <bruno@clisp.org>
61040
61041         * modules/striconv: New file.
61042         * modules/xstriconv: New file.
61043         * MODULES.html.sh (Internationalization functions): Add striconv,
61044         xstriconv.
61045
61046 2006-09-06  Bruno Haible  <bruno@clisp.org>
61047
61048         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
61049         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
61050         not using libtool correctly.
61051
61052 2006-09-06  Bruno Haible  <bruno@clisp.org>
61053
61054         * lib/striconv.h: New file.
61055         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
61056         iconvstring.c.
61057         * lib/xstriconv.h: New file.
61058         * lib/xstriconv.c: New file.
61059
61060 2006-09-06  Bruno Haible  <bruno@clisp.org>
61061
61062         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
61063         lib_..._LDFLAGS.
61064
61065 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61066
61067         * lib/argz_.h: Sync from Libtool.
61068
61069         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
61070                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
61071
61072         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
61073
61074 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
61075
61076         * modules/trim: New file.
61077
61078 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
61079
61080         * lib/trim.h: New file.
61081         * lib/trim.c: New file.
61082
61083 2006-09-05  Bruno Haible  <bruno@clisp.org>
61084
61085         * MODULES.html.sh (String handling): Add trim.
61086
61087 2006-09-04  Karl Berry  <karl@gnu.org>
61088
61089         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
61090         until next release.
61091
61092 2006-09-03  Bruno Haible  <bruno@clisp.org>
61093
61094         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
61095         correctly.
61096
61097 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
61098
61099         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
61100         not gl_GETLOADAVG.  Omit unneeded semicolons.
61101         Problems reported by Ralf Wildenhues in
61102         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
61103         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
61104         at the end, which is the usual gnulib style.
61105
61106         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
61107         of doing all the work ourselves.
61108         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
61109         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
61110
61111 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
61112
61113         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
61114         Problem reported by Ralf Wildenhues in
61115         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
61116
61117         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
61118         HAVE_STRUCT_STATFS_F_FSTYPENAME.
61119
61120 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
61121
61122         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
61123         yesterday's patch by changing test -n to test -z.
61124
61125 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
61126
61127         * modules/getloadavg (Files): Add m4/getloadavg.m4.
61128         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
61129         the former is now obsolescent.
61130
61131         * modules/chdir-long (Depends-on): Add fcntl.
61132
61133 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
61134
61135         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
61136         obsolescent, and programs should use gnulib instead.
61137         * m4/getloadavg.m4: New file, with contents taken from Autoconf
61138         but with prefixes changed.
61139
61140 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
61141
61142         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
61143         or stdbool.h, because they might not exist while configuring.
61144
61145         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
61146         Don't include unistd.h or limits.h; not needed, since chdir-long.h
61147         does that for us.
61148         (O_DIRECTORY): Remove.
61149
61150 2006-08-31  Eric Blake  <ebb9@byu.net>
61151
61152         * gnulib-tool: Don't let emacs change spaces to TAB.
61153
61154 2006-08-31  Bruno Haible  <bruno@clisp.org>
61155
61156         * gnulib-tool: When calling func_import more than once, do it in a
61157         subshell.
61158         Reported by Eric Blake <ebb9@byu.net>.
61159
61160 2006-08-31  Bruno Haible  <bruno@clisp.org>
61161
61162         * gnulib-tool (nl): Remove variable.
61163         (sed_transform_lib_file): Use more robust test for config-h module.
61164         (func_import): Fix typo in 2006-08-25 patch.
61165
61166 2006-08-31  Bruno Haible  <bruno@clisp.org>
61167
61168         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
61169         specified, augment Makefile.am variables instead of assigning them.
61170
61171 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
61172
61173         Work around a bug in both the Linux and SunOS 64-bit kernels:
61174         nanosleep mishandles sleeps for longer than 2**31 seconds.
61175         Problem reported by Frank v Waveren in
61176         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
61177         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
61178         Check for nanosleep bug.
61179         (LIB_NANOSLEEP): Append clock_gettime library if needed.
61180
61181 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
61182
61183         Work around a bug in both the Linux and SunOS 64-bit kernels:
61184         nanosleep mishandles sleeps for longer than 2**31 seconds.
61185         Problem reported by Frank v Waveren in
61186         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
61187         * lib/nanosleep.c (BILLION): New constant.
61188         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
61189         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
61190         implementation.
61191
61192 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
61193
61194         * modules/nanosleep (Depends-on): Add gettime.
61195
61196 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
61197         and Simon Josefsson  <jas@extundo.com>
61198         and Oskar Liljeblad  <oskar@osk.mine.nu>
61199
61200         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
61201         * gnulib-tool (func_import): New license type 'unmodifiable license
61202         text'.
61203         * modules/fdl: Use it.  Longer description.
61204         * module/gpl, module/lgpl: New files.
61205
61206 2006-08-30  Jim Meyering  <jim@meyering.net>
61207
61208         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
61209         shadowing the parameter.
61210
61211 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61212
61213         Sync from Libtool:
61214
61215         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61216
61217         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
61218         sharing with gnulib.  Report by Eric Blake.
61219
61220 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
61221
61222         * modules/isapipe: New file.
61223         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
61224
61225 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
61226
61227         * modules/configmake (Makefile.am): Add a comment, and omit
61228         the CONFIGMAKE_ prefix from generated macro names.  Suggested
61229         by Bruno Haible.
61230
61231 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
61232
61233         * m4/isapipe.m4: New file.
61234
61235 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
61236
61237         * lib/isapipe.c, lib/isapipe.h: New files.
61238
61239 2006-08-29  Jim Meyering  <jim@meyering.net>
61240
61241         * modules/configmake (Makefile.am): Make configmake.h depend on
61242         Makefile.  Otherwise, a stale configmake.h could hang around.
61243
61244 2006-08-29  Eric Blake  <ebb9@byu.net>
61245
61246         * lib/error.c (error_at_line, print_errno_message): Match libc, after
61247         resolution of upstream bug 3044.
61248
61249 2006-08-29  Bruno Haible  <bruno@clisp.org>
61250
61251         * modules/localcharset (Depends-on): Add configmake.
61252         (Makefile.am): Remove setting of LIBDIR through DEFS.
61253
61254 2006-08-29  Bruno Haible  <bruno@clisp.org>
61255
61256         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
61257         defined.
61258
61259 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61260
61261         * modules/fcntl: New file.
61262         * modules/chdir-safer (Depends-on): Add fcntl.
61263         * modules/fts: Likewise.
61264         * modules/mkdir-p: Likewise.
61265
61266         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
61267         This undoes the most recent change, since we're now addressing the
61268         problem in a different way.
61269
61270         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
61271         into output, since the output might be called Makefile.am even
61272         if $makefile_name is something different.
61273         (func_import): Use $makefile_am rather than
61274         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
61275         empty.
61276
61277         * modules/inttypes (Files): Add m4/inttypes-h.m4.
61278
61279 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61280
61281         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
61282         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
61283         recent change to stdint.m4, since we're now addressing the problem in a
61284         different way.
61285
61286 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61287
61288         * m4/fcntl_h.m4: New file.
61289
61290 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61291
61292         * lib/fcntl_.h: New file.
61293         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
61294         the fcntl module.
61295         * lib/dirchownmod.c: Likewise.
61296         * lib/fts.c: Likewise.
61297
61298         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
61299         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
61300         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
61301         just before including <inttypes.h>, to avoid circular inclusion.
61302
61303 2006-08-28  Jim Meyering  <jim@meyering.net>
61304
61305         * doc/visibility.texi: Actually read and correct the grammar of the
61306         sentence affected by yesterday's change.
61307
61308 2006-08-28  Eric Blake  <ebb9@byu.net>
61309
61310         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
61311         needs wrapper.
61312
61313 2006-08-28  Eric Blake  <ebb9@byu.net>
61314
61315         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
61316
61317 2006-08-28  Eric Blake  <ebb9@byu.net>
61318
61319         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
61320
61321 2006-08-28  Bruno Haible  <bruno@clisp.org>
61322
61323         * modules/c-strstr: New file, from GNU gettext.
61324         * MODULES.html.sh (String handling): Add c-strstr.
61325
61326 2006-08-28  Bruno Haible  <bruno@clisp.org>
61327
61328         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
61329         macros.
61330         Reported by Eric Blake.
61331
61332 2006-08-28  Bruno Haible  <bruno@clisp.org>
61333
61334         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
61335         (VASNPRINTF): Return a string of length > INT_MAX without failing.
61336         * lib/vasprintf.c: Include errno.h, limits.h.
61337         (EOVERFLOW): New fallback definition.
61338         (vasprintf): Test here whether the string length is > INT_MAX.
61339         * lib/vsnprintf.c: Include errno.h, limits.h.
61340         (EOVERFLOW): New fallback definition.
61341         (vsnprintf): Fix bug when generated string was too long for the buffer.
61342         Test here whether the string length is > INT_MAX.
61343
61344 2006-08-28  Bruno Haible  <bruno@clisp.org>
61345
61346         * lib/inttypes_.h (SCNX*): Remove definitions.
61347         Reported by Eric Blake.
61348
61349 2006-08-28  Bruno Haible  <bruno@clisp.org>
61350
61351         * lib/c-strstr.h: New file, from GNU gettext.
61352         * lib/c-strstr.c: New file, from GNU gettext.
61353
61354 2006-08-28  Bruno Haible  <bruno@clisp.org>
61355
61356         * gnulib-tool: Reorder some statements.
61357
61358 2006-08-28  Bruno Haible  <bruno@clisp.org>
61359
61360         * gnulib-tool: New option --makefile-name.
61361         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
61362         $makefile_name.
61363         (func_import): Write $makefile_name to the cache file, and read it from
61364         there unless explicitly specified. Use $makefile_name as file name
61365         instead of Makefile.am. Adjust the recommendations accordingly.
61366
61367 2006-08-28  Bruno Haible  <bruno@clisp.org>
61368
61369         * gnulib-tool (func_verify_module): Check against misapplying patch.
61370
61371 2006-08-28  Bruno Haible  <bruno@clisp.org>
61372
61373         * gnulib-tool (func_relativize, func_relconcat): New functions.
61374         Give an error if --local-dir is given with --update.
61375         Remove trailing slashes from $local_gnulib_dir.
61376         (func_import): Store the relativized $local_gnulib_dir in
61377         gnulib-cache.m4, and read it from there if not specified explicitly.
61378
61379 2006-08-28  Bruno Haible  <bruno@clisp.org>
61380
61381         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
61382         is the current directory. Respect also $local_gnulib_dir.
61383
61384 2006-08-28  Bruno Haible  <bruno@clisp.org>
61385             Simon Josefsson  <jas@extundo.com>
61386
61387         BeOS portability.
61388         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
61389
61390 2006-08-27  Jim Meyering  <jim@meyering.net>
61391
61392         * doc/visibility.texi: Remove duplicate word: "pointer".
61393
61394 2006-08-26  Bruno Haible  <bruno@clisp.org>
61395
61396         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
61397         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
61398         (Makefile.am): Create inttypes.h from inttypes_.h.
61399         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
61400
61401         * modules/imaxabs: New file.
61402
61403         * modules/imaxdiv: New file.
61404
61405 2006-08-26  Bruno Haible  <bruno@clisp.org>
61406
61407         * m4/inttypes.m4: New file.
61408         * m4/_inttypes_h.m4: Remove file.
61409         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
61410         PRI_MACROS_BROKEN.
61411         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
61412
61413         * m4/imaxabs.m4: New file.
61414
61415         * m4/imaxdiv.m4: New file.
61416
61417 2006-08-26  Bruno Haible  <bruno@clisp.org>
61418
61419         * lib/inttypes_.h: New file.
61420         * lib/inttypes.h: Remove file.
61421         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
61422
61423         * lib/imaxabs.c: New file.
61424
61425         * lib/imaxdiv.c: New file.
61426
61427 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
61428
61429         New config-h module, so that "make" output needn't be cluttered
61430         by -DHAVE_CONFIG_H.
61431         * MODULES.html.sh (Support for building libraries and executables):
61432         Add config-h.
61433         * modules/config-h: New file.
61434         * gnulib-tool (nl, sed_transform_lib_file): New vars.
61435         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
61436         the config-h module is used.
61437
61438         New configmake module, so that "make" output needn't be cluttered
61439         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
61440         * MODULES.html.sh (Support for building libraries and executables):
61441         Add configmake.
61442         * modules/configmake: New file.
61443
61444 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
61445
61446         * m4/config-h.m4: New file.
61447
61448 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
61449
61450         * config/srclist.txt: Add elisp-comp.
61451
61452 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
61453
61454         * MODULES.html.sh (Support for building libraries and executables):
61455         Add elisp-comp.
61456         * build-aux/elisp-comp: New file.
61457         * modules/elisp-comp: New file.
61458
61459 2006-08-24  Bruno Haible  <bruno@clisp.org>
61460
61461         * gnulib-tool (func_create_testdir): Use non-default values of
61462         sourcebase and m4base.
61463
61464 2006-08-24  Bruno Haible  <bruno@clisp.org>
61465
61466         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
61467         HTML structure.
61468
61469 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
61470
61471         * modules/openat (Depends-on): Add lchown.
61472
61473 2006-08-23  Bruno Haible  <bruno@clisp.org>
61474
61475         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
61476         of gl_LOCK_EARLY instead of gl_LOCK.
61477
61478 2006-08-23  Bruno Haible  <bruno@clisp.org>
61479
61480         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
61481         on OSF/1 to no.
61482         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
61483
61484 2006-08-23  Bruno Haible  <bruno@clisp.org>
61485
61486         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
61487         as unusable.
61488
61489         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
61490         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
61491         (gl_LOCK): New macro.
61492
61493 2006-08-22  Simon Josefsson  <jas@extundo.com>
61494
61495         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
61496         to md5 module.
61497
61498 2006-08-22  Simon Josefsson  <jas@extundo.com>
61499
61500         * MODULES.html.sh: Add "Support for maintaining and release
61501         projects".
61502
61503         * build-aux/gnupload: New file, from coreutils.
61504
61505 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
61506
61507         Avoid the need for AC_LIBSOURCES in m4 macros.
61508         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
61509         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
61510         * modules/check-version (EXTRA_DIST): Add check-version.h.
61511         * modules/crc (EXTRA_DIST): Add crc.h.
61512         * modules/des (EXTRA_DIST): Add des.h.
61513         * modules/gc (EXTRA_DIST): Add gc.h.
61514         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
61515         * modules/getline (EXTRA_DIST): Add getline.h.
61516         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
61517         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
61518         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
61519         * modules/md2 (EXTRA_DIST): Add md2.h.
61520         * modules/md4 (EXTRA_DIST): Add md4.h.
61521         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
61522         * modules/read-file (EXTRA_DIST): Add read-file.h.
61523         * modules/readline (EXTRA_DIST): Add readline.h.
61524         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
61525         rijndael-api-fst.h.
61526
61527 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
61528
61529         * m4/rijndael.m4 (gl_ARCFOUR):
61530         * m4/arctwo.m4 (gl_ARCTWO):
61531         * m4/check-version.m4 (gl_CHECK_VERSION):
61532         * m4/crc.m4 (gl_CRC):
61533         * m4/des.m4 (gl_DES):
61534         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
61535         * m4/gc.m4 (gl_GC):
61536         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
61537         * m4/getline.m4 (gl_FUNC_GETLINE):
61538         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
61539         * m4/hmac-md5.m4 (gl_HMAC_MD5):
61540         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
61541         * m4/md2.m4 (gl_MD2):
61542         * m4/md4.m4 (gl_MD4):
61543         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
61544         * m4/read-file.m4 (gl_FUNC_READ_FILE):
61545         * m4/readline.m4 (gl_FUNC_READLINE):
61546         * m4/rijndael.m4 (gl_RIJNDAEL):
61547         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
61548         to get the necessary .h files and whatnot.
61549
61550 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
61551
61552         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
61553         gnulib rather than the other way around.
61554         * config/srclistvars.sh (COREUTILS): Remove.
61555
61556 2006-08-22  Jim Meyering  <jim@meyering.net>
61557
61558         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
61559
61560         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
61561
61562 2006-08-22  Eric Blake  <ebb9@byu.net>
61563
61564         * modules/regexprops-generic: New file.
61565         * MODULES.html.sh (Support for building documentation): List it.
61566
61567 2006-08-22  Eric Blake  <ebb9@byu.net>
61568
61569         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
61570         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
61571         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
61572         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
61573
61574 2006-08-22  Bruno Haible  <bruno@clisp.org>
61575
61576         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
61577         and lib_LTLIBRARIES like the other lib_* variables.
61578
61579 2006-08-22  Bruno Haible  <bruno@clisp.org>
61580
61581         * build-aux/x-to-1.in: New file, from GNU gettext.
61582
61583 2006-08-22  Bruno Haible  <bruno@clisp.org>
61584
61585         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
61586         <utmpx.h> exists.
61587
61588 2006-08-22  Bruno Haible  <bruno@clisp.org>
61589
61590         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
61591         <utmpx.h> exists.
61592
61593 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
61594
61595         BeOS portability.
61596         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
61597         exist.
61598         Problem reported by Bruno Haible.
61599
61600 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
61601
61602         Avoid the need for AC_LIBSOURCES in m4 macros.
61603         * modules/acl (EXTRA_DIST): Add acl.h.
61604         * modules/argmatch (Files): Add m4/argmatch.m4.
61605         (configure.ac): Add gl_ARGMATCH.
61606         (EXTRA_DIST): Renamed from lib_SOURCES, for
61607         consistency with the other modules.  Remove argmatch.c.
61608         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
61609         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
61610         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
61611         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
61612         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
61613         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
61614         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
61615         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
61616         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
61617         * modules/closeout (EXTRA_DIST): Add closeout.h.
61618         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
61619         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
61620         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
61621         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
61622         dirname.h; remove basename.c and stripslash.c.
61623         * modules/exclude (EXTRA_DIST): Add exclude.h.
61624         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
61625         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
61626         * modules/file-type (EXTRA_DIST): Add file-type.h.
61627         * modules/filemode (EXTRA_DIST): Add filemode.h.
61628         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
61629         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
61630         * modules/fpending (EXTRA_DIST): Add __fpending.h.
61631         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
61632         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
61633         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
61634         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
61635         * modules/getdate (EXTRA_DIST): Add getdate.c.
61636         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
61637         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
61638         * modules/getpass (EXTRA_DIST): Add getpass.h.
61639         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
61640         * modules/group-member (EXTRA_DIST): Add group-member.h.
61641         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
61642         * modules/hash (EXTRA_DIST): Add hash.h.
61643         * modules/human (EXTRA_DIST): Add human.h.
61644         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
61645         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
61646         * modules/lchown (EXTRA_DIST): Add lchown.h.
61647         * modules/long-options (EXTRA_DIST): Add long-options.h.
61648         * modules/lstat (EXTRA_DIST): Add lstat.h.
61649         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
61650         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
61651         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
61652         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
61653         * modules/memxor (EXTRA_DIST): Add memxor.h.
61654         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
61655         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
61656         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
61657         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
61658         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
61659         * modules/physmem (EXTRA_DIST): Add physmem.h.
61660         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
61661         * modules/posixver (EXTRA_DIST): Add posixver.h.
61662         * modules/quote (EXTRA_DIST): Add quote.h.
61663         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
61664         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
61665         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
61666         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
61667         regex_internal.h regexec.c.
61668         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
61669         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
61670         * modules/same (EXTRA_DIST): Add same.h.
61671         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
61672         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
61673         * modules/savedir (EXTRA_DIST): Add savedir.h.
61674         * modules/sha1 (EXTRA_DIST): Add sha1.h.
61675         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
61676         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
61677         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
61678         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
61679         * modules/strdup (EXTRA_DIST): Add strdup.h.
61680         * modules/strftime (EXTRA_DIST): Add strftime.h.
61681         * modules/strndup (EXTRA_DIST): Add strndup.h.
61682         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
61683         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
61684         * modules/time_r (EXTRA_DIST): Add time_r.h.
61685         * modules/timespec (EXTRA_DIST): Add timespec.h.
61686         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
61687         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
61688         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
61689         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
61690         * modules/userspec (EXTRA_DIST): Add userspec.h.
61691         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
61692         * modules/utimens (EXTRA_DIST): Add utimens.h.
61693         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
61694         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
61695         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
61696         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
61697         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
61698         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
61699         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
61700         * modules/yesno (EXTRA_DIST): Add yesno.h.
61701
61702 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
61703
61704         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
61705
61706         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
61707         * m4/dev-ino.m4, same-inode.m4: Remove.
61708
61709         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
61710         * m4/acl.m4 (AC_FUNC_ACL):
61711         * m4/backupfile.m4 (gl_BACKUPFILE):
61712         * m4/c-strtod.m4 (gl_C99_STRTOLD):
61713         * m4/canon-host.m4 (gl_CANON_HOST):
61714         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
61715         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
61716         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
61717         * m4/cloexec.m4 (gl_CLOEXEC):
61718         * m4/close-stream.m4 (gl_CLOSE_STREAM):
61719         * m4/closeout.m4 (gl_CLOSEOUT):
61720         * m4/dirfd.m4 (gl_FUNC_DIRFD):
61721         * m4/dirname.m4 (gl_DIRNAME):
61722         * m4/exclude.m4 (gl_EXCLUDE):
61723         * m4/exitfail.m4 (gl_EXITFAIL):
61724         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
61725         * m4/file-type.m4 (gl_FILE_TYPE):
61726         * m4/filemode.m4 (gl_FILEMODE):
61727         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
61728         * m4/fpending.m4 (gl_FUNC_FPENDING):
61729         * m4/fprintftime.m4 (gl_FPRINTFTIME):
61730         * m4/fts.m4 (gl_FUNC_FTS):
61731         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
61732         * m4/getdate.m4 (gl_GETDATE):
61733         * m4/gethrxtime.m4 (gl_GETHRXTIME):
61734         * m4/getpagesize.m4 (gl_GETPAGESIZE):
61735         * m4/getpass.m4 (gl_FUNC_GETPASS):
61736         * m4/gettime.m4 (gl_GETTIME):
61737         * m4/getugroups.m4 (gl_GETUGROUPS):
61738         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
61739         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
61740         * m4/hard-locale.m4 (gl_HARD_LOCALE):
61741         * m4/hash.m4 (gl_HASH):
61742         * m4/idcache.m4 (gl_IDCACHE):
61743         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
61744         * m4/lchown.m4 (gl_FUNC_LCHOWN):
61745         * m4/long-options.m4 (gl_LONG_OPTIONS):
61746         * m4/lstat.m4 (gl_FUNC_LSTAT):
61747         * m4/md5.m4 (gl_MD5):
61748         * m4/memcasecmp.m4 (gl_MEMCASECMP):
61749         * m4/memcoll.m4 (gl_MEMCOLL):
61750         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
61751         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
61752         * m4/memxor.m4 (gl_MEMXOR):
61753         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
61754         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
61755         * m4/modechange.m4 (gl_MODECHANGE):
61756         * m4/mountlist.m4 (gl_MOUNTLIST):
61757         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
61758         * m4/openat.m4 (gl_FUNC_OPENAT):
61759         * m4/pathmax.m4 (gl_PATHMAX):
61760         * m4/physmem.m4 (gl_PHYSMEM):
61761         * m4/posixtm.m4 (gl_POSIXTM):
61762         * m4/posixver.m4 (gl_POSIXVER):
61763         * m4/quote.m4 (gl_QUOTE):
61764         * m4/quotearg.m4 (gl_QUOTEARG):
61765         * m4/readtokens.m4 (gl_READTOKENS):
61766         * m4/readutmp.m4 (gl_READUTMP):
61767         * m4/regex.m4 (gl_REGEX):
61768         * m4/safe-read.m4 (gl_SAFE_READ):
61769         * m4/safe-write.m4 (gl_SAFE_WRITE):
61770         * m4/same.m4 (gl_SAME):
61771         * m4/save-cwd.m4 (gl_SAVE_CWD):
61772         * m4/savedir.m4 (gl_SAVEDIR):
61773         * m4/settime.m4 (gl_SETTIME):
61774         * m4/sha1.m4 (gl_SHA1):
61775         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
61776         * m4/stat-macros.m4 (gl_STAT_MACROS):
61777         * m4/stat-time.m4 (gl_STAT_TIME):
61778         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
61779         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
61780         * m4/strdup.m4 (gl_FUNC_STRDUP):
61781         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
61782         * m4/strndup.m4 (gl_FUNC_STRNDUP):
61783         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
61784         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
61785         * m4/time_r.m4 (gl_TIME_R):
61786         * m4/timespec.m4 (gl_TIMESPEC):
61787         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
61788         * m4/unlinkdir.m4 (gl_UNLINKDIR):
61789         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
61790         * m4/userspec.m4 (gl_USERSPEC):
61791         * m4/utimecmp.m4 (gl_UTIMECMP):
61792         * m4/utimens.m4 (gl_UTIMENS):
61793         * m4/xalloc.m4 (gl_XALLOC):
61794         * m4/xgetcwd.m4 (gl_XGETCWD):
61795         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
61796         * m4/xreadlink.m4 (gl_XREADLINK):
61797         * m4/xstrtod.m4 (gl_XSTRTOD):
61798         * m4/yesno.m4 (gl_YESNO):
61799         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
61800         to get the necessary .h files and whatnot.
61801
61802 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
61803             Bruno Haible  <bruno@clisp.org>
61804
61805         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
61806         /bin/sh understanding of '!' conditional negation.
61807
61808 2006-08-21  Jim Meyering  <jim@meyering.net>
61809
61810         * modules/openat (Depends-on): Really alphabetize.
61811
61812         * modules/acl (Depends-on): Add error and quote.
61813
61814         * check-module (find_included_lib_files): Add at-func.c to the
61815         ok-to-include-more-than-once white list.
61816
61817         * modules/openat (Depends-on): Add lstat.  Alphabetize.
61818
61819 2006-08-21  Bruno Haible  <bruno@clisp.org>
61820
61821         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61822         Emit a pkgdata_DATA variable only if some snippets add contents to it.
61823         Reported by Martin Lambers <marlam@marlam.de>.
61824
61825 2006-08-21  Bruno Haible  <bruno@clisp.org>
61826
61827         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
61828         specify an installation location, don't emit a noinst_LIBRARIES or
61829         noinst_LTLIBRARIES assignment.
61830
61831 2006-08-21  Bruno Haible  <bruno@clisp.org>
61832
61833         BeOS portability.
61834         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
61835         BeOS has mbrtowc() but no <wctype.h>.
61836
61837 2006-08-21  Bruno Haible  <bruno@clisp.org>
61838
61839         BeOS portability.
61840         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
61841         exist.
61842
61843 2006-08-21  Bruno Haible  <bruno@clisp.org>
61844
61845         BeOS portability.
61846         * lib/mbchar.h: Include <wctype.h> only if it exists.
61847
61848 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
61849
61850         Remove files that are no longer needed by their respective modules.
61851         * m4/obstack.m4: Remove.
61852         * m4/strerror_r.m4: Remove.
61853         * m4/uint32_t.m4: Remove.
61854         * m4/uintptr_t.m4: Remove.
61855         * m4/ullong_max.m4: Remove.
61856         * m4/xstrtoimax.m4: Remove.
61857         * m4/xstrtoumax.m4: Remove.
61858
61859         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
61860         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
61861         dependencies now capture this.
61862
61863         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
61864         Do not use AC_LIBSOURCES, since gnulib modules now do this.
61865         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
61866         * m4/human.m4 (gl_HUMAN): Likewise.
61867         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
61868         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
61869
61870         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
61871
61872         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
61873         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
61874         stdint.
61875         * m4/human.m4 (gl_HUMAN): Likewise.
61876         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
61877         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
61878         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
61879         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
61880         * m4/xstrtol (gl_XSTRTOL): Likewise.
61881
61882         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
61883         AC_TYPE_LONG_LONG_INT.
61884         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
61885         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
61886         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
61887         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
61888
61889         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
61890         on stdbool.
61891
61892         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
61893         (gl_PREREQ_XSTRTOUL): Remove.
61894
61895         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
61896
61897         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
61898         mode.
61899
61900 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
61901
61902         Add and change modules to make it easier for coreutils to use
61903         gnulib-tool.
61904         * modules/backupfile (Files): Remove m4/d-ino.m4.
61905         (Depends-on): Add d-ino.
61906         * modules/cycle-check (Depends-on): Add stdint.
61907         (lib_SOURCES): Add cycle-check.h.
61908         * modules/d-ino: New module.
61909         * modules/d-type: New module.
61910         * modules/error (Files): Remove m4/strerror_r.m4.
61911         * modules/filemode (Files): Add m4/st_dm_mode.m4.
61912         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
61913         m4/inttypes_h.m4, m4/uintmax_t.m4.
61914         (Depends-on): Add stdint.
61915         (lib_SOURCES): Add fsusage.h.
61916         * modules/getcwd (Files): Remove d-ino.m4.
61917         (Depends-on): Add d-ino.
61918         * modules/getndelim2 (Depends-on): Add stdint.
61919         * modules/glob (Files): Remove m4/d-type.m4.
61920         (Depends-on): Add d-type.
61921         * modules/host-os: New module.
61922         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
61923         m4/inttypes_h.m4, m4/uintmax_t.m4.
61924         * Depends-on: Add stdint.
61925         (lib_SOURCES): Add human.h.
61926         * modules/inttostr (Files): Remove m4/intmax_t.m4,
61927         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
61928         m4/uintmax_t.m4, m4/ulonglong.m4.
61929         (Depends-on): Add stdint.
61930         (EXTRA_DIST): Add inttostr.h.
61931         * modules/lchmod: New module.
61932         * modules/link-follow: New module.
61933         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
61934         (Depends-on): Add lchmod.
61935         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
61936         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
61937         (Depends-on): Add stdint.
61938         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
61939         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
61940         (Depends-on): Add stdint.
61941         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
61942         * modules/perl: New module.
61943         * modules/regex (Depends-on): Add stdint.
61944         * modules/rmdir-errno: New module.
61945         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
61946         m4/intmax_t.m4.
61947         (Depends-on): Add stdint.
61948         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
61949         m4/uintmax_t.m4.
61950         (Depends-on): Add stdint.
61951         * modules/unlink-busy: New module.
61952         * modules/utimecmp (Depends-on): Add stdint.
61953         * modules/uptime: New module.
61954         * modules/winsz-ioctl: New module.
61955         * modules/winsz-termios: New module.
61956         * modules/xnanosleep (Depends-on): Add nanosleep.
61957         * modules/ullong_max: Remove.
61958         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
61959         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
61960         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
61961         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
61962         (Depends-on): Add inttypes.
61963         (lib_SOURCES): Add xstrtol.h.
61964         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
61965         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
61966         * MODULES.html.sh: Move 'assert' into the assert section.
61967         Move 'dummy' into the linking section.
61968         Remove ullong_max.
61969         Add section for compatibility checks for POSIX:2001 functions,
61970         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
61971         winsz-ioctl, and winsz-termios into it.
61972         Add lchmod.
61973         Add top-level Misc section and put host-os, perl, and uptime
61974         into it.
61975
61976 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
61977
61978         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
61979         now assume the stdint module.  Do not include inttypes.h.
61980         * lib/fsusage.h: Likewise.
61981         * lib/getndelim2.c: Likewise.
61982         * lib/human.h: Likewise.
61983         * lib/inttostr.h: Likewise.
61984         * lib/obstack.c: Likewise.
61985         * lib/regex_internal.h: Likewise.
61986         * lib/tempname.c: Likewise.
61987         * lib/utimecmp.c: Likewise.
61988         * lib/xstrtol.h: Likewise.
61989
61990         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
61991
61992         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
61993         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
61994         * lib/xtime.h: Likewise.
61995
61996 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61997
61998         * modules/openat (Files): Add lib/fchmodat.c.
61999         Fixes problem reported by Jay Youngman.
62000
62001 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62002
62003         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
62004         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
62005
62006 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
62007             Bruno Haible  <bruno@clisp.org>
62008
62009         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
62010         and is a script that invokes bison. Tighten the code. Add comments.
62011
62012 2006-08-18  Jim Meyering  <jim@meyering.net>
62013
62014         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
62015         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
62016         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
62017         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
62018
62019 2006-08-18  Bruno Haible  <bruno@clisp.org>
62020
62021         * modules/bison-i18n: New file.
62022         * MODULES.html.sh (Internationalization functions): Add it.
62023
62024 2006-08-18  Bruno Haible  <bruno@clisp.org>
62025
62026         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
62027         sys/statvfs.h. When getmntinfo was found, check its declaration and
62028         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
62029
62030 2006-08-18  Bruno Haible  <bruno@clisp.org>
62031
62032         * m4/bison-i18n.m4: New file, from bison.
62033
62034 2006-08-18  Bruno Haible  <bruno@clisp.org>
62035
62036         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
62037         (ME_DUMMY): Treat "kernfs" as a dummy.
62038         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
62039
62040 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
62041
62042         Update from coreutils.
62043
62044         2006-08-15  Jim Meyering  <jim@meyering.net>
62045
62046         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
62047
62048         2006-01-17  Jim Meyering  <jim@meyering.net>
62049
62050         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
62051
62052         2006-01-11  Jim Meyering  <jim@meyering.net>
62053
62054         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
62055         Check for the lchmod function.
62056
62057 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
62058
62059         Update from coreutils.
62060
62061         * lib/__fpending.h: Add copyright notice.
62062         * lib/fprintftime.h: Likewise.
62063         * lib/savedir.c: Use (C) in copyright notice.
62064         * lib/savedir.h: Likewise.
62065
62066         2006-08-15  Jim Meyering  <jim@meyering.net>
62067
62068         * lib/at-func.c: New file, with the logic of all emulated at-functions.
62069         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
62070         in support of the EXPECTED_ERRNO macro.
62071         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
62072         definitions.  Instead, define the appropriate symbols and include
62073         "at-func.c".
62074         * lib/mkdirat.c (mkdirat): Likewise.
62075         * lib/fchmodat.c (fchmodat): Likewise.
62076         (ENOSYS): Remove definition.
62077         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
62078         it.  Don't include "unistd--.h" -- it wasn't ever used.
62079
62080         2006-01-17  Jim Meyering  <jim@meyering.net>
62081
62082         Rewrite fts.c not to change the current working directory,
62083         by using openat, fstatat, fdopendir, etc..
62084
62085         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
62086         (HAVE_OPENAT_SUPPORT): Define.
62087         [_LIBC] (fchdir): Don't undef or define; no longer used.
62088         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
62089         Now, this `function' always succeeds, and consumes its file descriptor
62090         parameter -- so callers must not close such FDs.  Update callers.
62091         (diropen_fd, opendirat, cwd_advance_fd): New functions.
62092         (diropen): Add parameter, SP.  Adjust all callers.
62093         Implement using diropen_fd, rather than open.
62094         (fts_open): Initialize new member, fts_cwd_fd.
62095         Remove fts_rft-setting code.
62096         (fts_close): Close fts_cwd_fd, if necessary.
62097         (__opendir2): Define in terms of opendir or opendirat,
62098         depending on whether the FST_NOCHDIR flag is set.
62099         (fts_build): Since fts_safe_changedir consumes its FD, and since
62100         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
62101         and close the dup'd file descriptor upon failure.
62102         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
62103         (fts_safe_changedir): Tweak semantics to reflect that this function
62104         now calls cwd_advance_fd and hence consumes its FD argument.
62105         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
62106         [struct FTS] (fts_rft): Remove now-unused member.
62107         [struct FTS] (fts_cycle.state): Improve comment.
62108
62109         * lib/openat.c (openat_needs_fchdir): New function.
62110         * lib/openat.h (openat_needs_fchdir): Declare it.
62111
62112 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
62113
62114         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
62115         Problem and fix reported by Pádraig Brady in
62116         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
62117
62118 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62119
62120         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
62121
62122 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62123
62124         * lib/memcoll.c (memcoll): Optimize for the common case where the
62125         arguments are bytewise equal.
62126
62127 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62128
62129         * doc/regexprops-generic.texi: Add a copyright notice.
62130
62131 2006-08-15  Bruno Haible  <bruno@clisp.org>
62132
62133         * modules/tmpdir (License): Change to LGPL.
62134
62135 2006-08-15  Bruno Haible  <bruno@clisp.org>
62136
62137         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
62138         module.
62139
62140 2006-08-14  Simon Josefsson  <jas@extundo.com>
62141
62142         * config/srclist.txt: Add gnupload.
62143
62144 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62145
62146         Change copyright notice from LGPL 2 to GPL 2, since that's the
62147         standard form used in the gnulib repository.
62148         * tests/test-lock.c: Likewise.
62149         * tests/test-stdint.c: Likewise.
62150         * tests/test-tls.c: Likewise.
62151
62152         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
62153         prelude-manager.  User shorter URLs for GNU projects, without '?'.
62154         Add copyright notice.
62155
62156         * check-module: Add copyright notice.  Output a copyright
62157         notice if "--version" is specified.
62158         * modules/COPYING: New file.
62159         * tests/test-getaddrinfo.c: Add copyright notice.
62160         * tests/test-verify.c: Likewise.
62161
62162 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62163
62164         Change copyright notice from LGPL 2 to GPL 2, since that's the
62165         standard form used in the gnulib repository.
62166         * lib/lock.c: LGPL -> GPL.
62167         * lib/lock.h: Likewise.
62168         * lib/strnlen1.c: Likewise.
62169         * lib/strnlen1.h: Likewise.
62170         * lib/tls.c: Likewise.
62171         * lib/tls.h: Likewise.
62172         * lib/tmpdir.c: Likewise.
62173
62174         * lib/TODO: Remove; this belongs only in coreutils.
62175
62176 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62177
62178         Add copyright notices to long-enough files that lack them, since
62179         otherwise the files aren't clearly free.  Use the same notice that
62180         getdate.texi already uses.
62181         * doc/alloca-opt.texi: Add copyright notice.
62182         * doc/alloca.texi: Likewise.
62183         * doc/ctime.texi: Likewise.
62184         * doc/functions.texi: Likewise.
62185         * doc/gcd.texi: Likewise.
62186         * doc/gnulib-tool.texi: Likewise.
62187         * doc/inet_ntoa.texi: Likewise.
62188         * doc/visibility.texi: Likewise.
62189
62190         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
62191         * doc/quote.texi: Add copyright notice.
62192
62193         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
62194         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
62195         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
62196         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
62197         is now obsolete, and give a pointer to the Sun list.
62198         Add copyright notice.
62199
62200 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62201
62202         * config/srclistvars.sh: Add copyright notice.
62203
62204 2006-08-14  Eric Blake  <ebb9@byu.net>
62205
62206         Import the following change from libc:
62207
62208         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
62209
62210         Upstream bug 2997.
62211         * lib/misc/error.c: Add space between program name and message if file
62212         name is missing.
62213
62214 2006-08-12  Karl Berry  <karl@gnu.org>
62215
62216         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
62217         remove, these originate in gnulib now.
62218
62219 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62220
62221         * doc/Makefile (standards.info standards.html standards.dvi):
62222         Also depend on make-stds.texi.
62223
62224 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
62225
62226         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
62227         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
62228
62229         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
62230         in wchar_t.  Problem reported by Eric Blake.
62231
62232         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
62233         LEN is smaller than SIZE.  Suggested by Bruno Haible.
62234         Also, help the compiler to keep LEN in a register.
62235
62236 2006-08-11  Eric Blake  <ebb9@byu.net>
62237
62238         * users.txt: Sort.  Add tar.
62239
62240 2006-08-11  Bruno Haible  <bruno@clisp.org>
62241
62242         * users.txt: New file.
62243
62244 2006-08-11  Bruno Haible  <bruno@clisp.org>
62245
62246         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
62247         before <wchar.h>. Needed for OSF/1 and BSD/OS.
62248
62249 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
62250
62251         * modules/snprintf (Depends-on): Remove minmax.
62252         (Maintainer): Add self and Bruno.
62253
62254 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
62255
62256         * lib/.cppi-disable: Add snprintf.h, socket_.h.
62257         * lib/snprintf.c: Include <errno.h> and <limits.h>.
62258         (EOVERFLOW): Define if the system does not.
62259         Do not include "minmax.h"; it wasn't used.
62260         (snprintf): Don't assume size_t promotes to an unsigned type.
62261         Fix bug when generated string was too long for the buffer: the
62262         buffer's contents are supposed to be the initial prefix of the
62263         output.  Don't assume vasnprintf returns EOVERFLOW if the size
62264         exceeds INT_MAX; do the check ourselves.
62265
62266         Import the following changes from libc:
62267
62268         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
62269
62270         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
62271         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
62272         set wc to the byte which couldn't be converted.
62273         (re_string_reconstruct): Don't clear valid_raw_len before calling
62274         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
62275         tip_context using re_string_context_at.
62276
62277         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
62278
62279         * lib/posix/regex.h: g++ still cannot handled [restrict].
62280
62281         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
62282
62283         * lib/posix/regex.h: Remove special handling for VMS.
62284
62285 2006-08-10  Jim Meyering  <jim@meyering.net>
62286
62287         * modules/same-inode: New module.
62288         * modules/dev-ino: New module.
62289         * modules/cycle-check: Depend on these modules, rather than simply
62290         including their .h files.
62291         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
62292         required via m4/cycle-check.m4.
62293         * modules/same: Depend on new same-inode module, rather than
62294         including same-inode.h.
62295         * modules/chdir-safer: New file.
62296
62297         * modules/chown (Depends-on): Add stat-macros.
62298
62299 2006-08-10  Jim Meyering  <jim@meyering.net>
62300
62301         * m4/cycle-check.m4: New file.
62302         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
62303         * m4/dev-ino.m4, m4/same-inode.m4: New files.
62304
62305 2006-08-10  Eric Blake  <ebb9@byu.net>
62306
62307         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
62308         in from original proposal.
62309
62310 2006-08-10  Eric Blake  <ebb9@byu.net>
62311         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
62312
62313         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
62314         namespace.
62315
62316 2006-08-10  Bruno Haible  <bruno@clisp.org>
62317
62318         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
62319         as well.
62320
62321 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62322
62323         Sync from coreutils.
62324
62325         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
62326
62327         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
62328         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
62329
62330 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62331
62332         * modules/restrict: Remove; no longer needed now that we assume
62333         Autoconf 2.59 or later.
62334         * MODULES.html.sh: Remove 'restrict'.
62335         * modules/argp (Depends-on): Remove 'restrict'.
62336         * modules/base64 (Depends-on): Likewise.
62337         * modules/gc (Depends-on): Likewise.
62338         * modules/getaddrinfo (Depends-on): Likewise.
62339         * modules/glob (Depends-on): Likewise.
62340         * modules/inet_ntop (Depends-on): Likewise.
62341         * modules/inet_pton (Depends-on): Likewise.
62342         * modules/memxor (Depends-on): Likewise.
62343         * modules/regex (Depends-on): Likewise.
62344         * modules/strtok_r (Depends-on): Likewise.
62345         * modules/time_r (Depends-on): Likewise.
62346
62347 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62348
62349         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
62350         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
62351         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
62352         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
62353         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
62354         * m4/memxor.m4 (gl_MEMXOR): Likewise.
62355         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
62356         gl_C_RESTRICT replaced by AC_C_RESTRICT.
62357
62358         Merge from coreutils.
62359         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
62360         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
62361         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
62362         * m4/time_r.m4 (gl_TIME_R): Likewise.
62363
62364 2006-08-09  Karl Berry  <karl@gnu.org>
62365
62366         * config/srclist.txt: no more gettext-tools, per Bruno.
62367
62368 2006-08-08  Eric Blake  <ebb9@byu.net>
62369
62370         * modules/verror: New module.
62371         * MODULES.html.sh: Document it.
62372
62373 2006-08-08  Eric Blake  <ebb9@byu.net>
62374
62375         * lib/verror.h, lib/verror.c: New files.
62376
62377 2006-08-08  Eric Blake  <ebb9@byu.net>
62378
62379         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
62380         verror_at_line output complies with GNU Coding Standards even when
62381         file is NULL.
62382
62383 2006-08-07  Bruno Haible  <bruno@clisp.org>
62384
62385         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
62386         versions of AIX.
62387         Reported by Ralf Wildenhues.
62388
62389 2006-08-07  Bruno Haible  <bruno@clisp.org>
62390
62391         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
62392         in an AC_DEFUN. Needed so that the autoconf snippets can use
62393         AC_REQUIRE.
62394
62395 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62396
62397         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62398         Initialize pkgdata_DATA.
62399         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
62400         overriding it.
62401
62402 2006-08-06  Eric Blake  <ebb9@byu.net>
62403
62404         * lib/error.h: Fold in some upstream changes from glibc.
62405         * lib/error.c: Likewise.
62406
62407 2006-08-04  Bruno Haible  <bruno@clisp.org>
62408
62409         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62410         Make the mostlyclean-local rule depend on mostlyclean-generic.
62411         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
62412
62413 2006-07-31  Bruno Haible  <bruno@clisp.org>
62414
62415         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
62416         <stdlib.h>, <string.h>.
62417
62418 2006-07-30  Bruno Haible  <bruno@clisp.org>
62419
62420         * modules/readlink (License): Change to LGPL.
62421
62422 2006-07-30  Bruno Haible  <bruno@clisp.org>
62423
62424         * modules/javaversion (Makefile.am): Distribute javaversion.java and
62425         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
62426         set PKGDATADIR to point to it.
62427
62428 2006-07-30  Bruno Haible  <bruno@clisp.org>
62429
62430         * modules/csharpexec (configure.ac): Comment out macro invocation.
62431         * modules/javaexec (configure.ac): Likewise.
62432         * modules/javacomp-script (configure.ac): Likewise.
62433
62434         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
62435
62436 2006-07-30  Bruno Haible  <bruno@clisp.org>
62437
62438         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
62439         linked-list.
62440
62441 2006-07-30  Bruno Haible  <bruno@clisp.org>
62442
62443         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
62444
62445 2006-07-30  Bruno Haible  <bruno@clisp.org>
62446
62447         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62448         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
62449         get removed.
62450
62451 2006-07-29  Bruno Haible  <bruno@clisp.org>
62452
62453         Make it possible for gnulib-tool to work with locally modified or
62454         augmented gnulib repositories.
62455         * gnulib-tool (func_usage): Document --local-dir option.
62456         (local_gnulib_dir): New variable.
62457         Handle --local-dir option.
62458         (func_lookup_file): New function.
62459         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
62460         (func_get_description, func_get_filelist, func_get_description,
62461         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
62462         func_get_automake_snippet, func_get_include_directive,
62463         func_get_license, func_get_maintainer): Use func_lookup_file.
62464         (func_import, func_create_testdir): Use func_lookup_file.
62465
62466 2006-07-29  Bruno Haible  <bruno@clisp.org>
62467
62468         * modules/setenv (Depends-on): Add unistd.
62469
62470 2006-07-29  Bruno Haible  <bruno@clisp.org>
62471
62472         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
62473
62474 2006-07-29  Bruno Haible  <bruno@clisp.org>
62475
62476         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
62477
62478 2006-07-29  Bruno Haible  <bruno@clisp.org>
62479
62480         * gnulib-tool (import, update): If there is no Makefile.am, look at
62481         aclocal.m4, instead of bailing out.
62482
62483 2006-07-29  Bruno Haible  <bruno@clisp.org>
62484
62485         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
62486         Categorize the options by when they are useful.
62487
62488 2006-07-29  Bruno Haible  <bruno@clisp.org>
62489
62490         * gnulib-tool (func_usage): Document option --no-libtool.
62491         Handle option --no-libtool.
62492         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
62493         for changed semantics of $libtool variable.
62494         (func_import): Likewise. If libtool is not used, show this through
62495         an option --no-libtool.
62496         (func_create_testdir): Update.
62497
62498 2006-07-29  Bruno Haible  <bruno@clisp.org>
62499
62500         * gnulib-tool (func_import): Extend error message about missing
62501         --doc-base.
62502
62503 2006-07-29  Bruno Haible  <bruno@clisp.org>
62504
62505         * gnulib-tool (func_import): Don't create the $docbase directory if
62506         there is no file to store there.
62507
62508 2006-07-29  Bruno Haible  <bruno@clisp.org>
62509
62510         * gnulib-tool (autoconf_minversion): If a --dir option is given and
62511         relevant, look for configure.ac there, not in the current directory.
62512         Also use a simple search for AC_PREREQ, not "autoconf --trace".
62513
62514 2006-07-29  Bruno Haible  <bruno@clisp.org>
62515
62516         * gnulib-tool (SORT): New variable.
62517         (func_usage): Undocument --assume-autoconf option.
62518         Remove --assume-autoconf option handling.
62519         (autoconf_minversion): Determine from the contents of configure.ac.
62520         (func_import): Remove autoconf_minversion handling.
62521         Suggested by Eric Blake.
62522
62523 2006-07-29  Bruno Haible  <bruno@clisp.org>
62524
62525         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
62526
62527 2006-07-29  Bruno Haible  <bruno@clisp.org>
62528
62529         * config/srclist.txt (*setenv.[ch]): Remove rules.
62530
62531 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62532
62533         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
62534
62535 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62536
62537         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
62538         arpa/inet.h.
62539
62540 2006-07-28  Simon Josefsson  <jas@extundo.com>
62541
62542         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
62543         * modules/inet_pton (Depends-on): Likewise.
62544
62545 2006-07-28  Simon Josefsson  <jas@extundo.com>
62546
62547         * m4/netinet_in_h.m4: New file.
62548
62549 2006-07-28  Simon Josefsson  <jas@extundo.com>
62550
62551         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
62552         #include's.
62553
62554 2006-07-28  Simon Josefsson  <jas@extundo.com>
62555
62556         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
62557         #include's.
62558
62559 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
62560
62561         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
62562         setgid on directories only if they set these bits.
62563         * lib/modechange.h: Remove obsolete comment about masks.
62564
62565 2006-07-28  Eric Blake  <ebb9@byu.net>
62566
62567         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
62568         macro expansion.
62569
62570 2006-07-28  Bruno Haible  <bruno@clisp.org>
62571
62572         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
62573
62574 2006-07-28  Bruno Haible  <bruno@clisp.org>
62575
62576         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
62577
62578 2006-07-28  Bruno Haible  <bruno@clisp.org>
62579
62580         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
62581         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
62582         Define fallbacks.
62583         Avoids link error on FreeBSD 4.x.
62584         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
62585
62586         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
62587         encoding.
62588         * lib/mbswidth.c (iswcntrl): Likewise.
62589
62590 2006-07-27  Bruno Haible  <bruno@clisp.org>
62591
62592         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
62593         test.
62594
62595 2006-07-27  Bruno Haible  <bruno@clisp.org>
62596
62597         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
62598         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
62599         defined.
62600
62601 2006-07-26  Eric Blake  <ebb9@byu.net>
62602
62603         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
62604
62605 2006-07-26  Eric Blake  <ebb9@byu.net>
62606
62607         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
62608         like mingw that lack mkstemp.
62609         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
62610         avoid compilation warning on mingw.
62611
62612 2006-07-26  Bruno Haible  <bruno@clisp.org>
62613
62614         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
62615         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
62616         INT_FAST*_MIN, INTPTR_MIN.
62617
62618 2006-07-25  Bruno Haible  <bruno@clisp.org>
62619
62620         * modules/version-etc (Depends-on): Add stdarg.
62621
62622 2006-07-25  Bruno Haible  <bruno@clisp.org>
62623
62624         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
62625         complex commands.
62626
62627 2006-07-25  Bruno Haible  <bruno@clisp.org>
62628
62629         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
62630         defined in <stdarg.h> or config.h.
62631
62632 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
62633
62634         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
62635         (gl_STDIO_SAFER): Remove.
62636
62637 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
62638
62639         * MODULES.html.sh (File stream based Input/Output):
62640         Add fopen-safer, tmpfile-safer; remove stdio-safer.
62641         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
62642         * modules/fopen-safer, modules/tmpfile-safer: New files.
62643         * modules/stdio-safer: Remove.
62644
62645 2006-07-24  Bruno Haible  <bruno@clisp.org>
62646
62647         * modules/tmpdir: New file.
62648         * MODULES.html.sh (File system functions): Add it.
62649
62650 2006-07-24  Bruno Haible  <bruno@clisp.org>
62651
62652         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
62653         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
62654
62655 2006-07-24  Bruno Haible  <bruno@clisp.org>
62656
62657         * modules/clean-temp: New file.
62658
62659 2006-07-24  Bruno Haible  <bruno@clisp.org>
62660
62661         * m4/tmpdir.m4: New file, from GNU gettext.
62662
62663 2006-07-24  Bruno Haible  <bruno@clisp.org>
62664
62665         * lib/tmpdir.h: New file, from GNU gettext.
62666         * lib/tmpdir.c: New file, from GNU gettext.
62667
62668 2006-07-24  Bruno Haible  <bruno@clisp.org>
62669
62670         * lib/clean-temp.h: New file, from GNU gettext.
62671         * lib/clean-temp.c: New file, from GNU gettext.
62672
62673 2006-07-23  Eric Blake  <ebb9@byu.net>
62674
62675         * modules/stdio-safer (Files): Add tmpfile-safer.c.
62676         (Depends-on): Add binary-io.
62677
62678 2006-07-23  Eric Blake  <ebb9@byu.net>
62679
62680         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
62681
62682 2006-07-23  Eric Blake  <ebb9@byu.net>
62683
62684         * lib/tmpfile-safer.c: New file.
62685         * lib/stdio-safer.h (fopen_safer): Add prototype.
62686         * lib/stdio--.h (tmpfile): Make safer.
62687
62688 2006-07-23  Bruno Haible  <bruno@clisp.org>
62689
62690         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
62691         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
62692         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
62693         gl_linked_remove_at): Use it.
62694
62695 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62696         and Simon Josefsson <jas@extundo.com>
62697
62698         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
62699
62700         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
62701
62702 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
62703
62704         * modules/close-stream: New file.
62705         * modules/closeout (Description): Make it clear that it exits
62706         with a diagnostic on error.
62707         (Depends-on): Add close-stream.  Remove fpending, stdbool.
62708         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
62709
62710 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
62711
62712         * m4/close-stream.m4: New file.
62713
62714 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
62715
62716         * lib/close-stream.c, lib/close-stream.h: New files.
62717
62718 2006-07-22  Bruno Haible  <bruno@clisp.org>
62719
62720         Merge from GNU gettext 0.15.
62721
62722         2006-05-01  Bruno Haible  <bruno@clisp.org>
62723
62724                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
62725
62726         2006-07-22  Bruno Haible  <bruno@clisp.org>
62727
62728                 * modules/javaversion: New file.
62729                 * MODULES.html.sh (Java): Add javaversion.
62730
62731         2006-03-12  Bruno Haible  <bruno@clisp.org>
62732
62733                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
62734
62735         2005-12-04  Bruno Haible  <bruno@clisp.org>
62736
62737                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
62738                 (untested).
62739
62740         2006-06-21  Bruno Haible  <bruno@clisp.org>
62741
62742                 Avoid warnings from recent versions of mcs.
62743                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
62744                 -o, -L, -r any more. Use options documented since mcs-1.0
62745                 instead. Similarly for -g.
62746
62747         2005-12-04  Bruno Haible  <bruno@clisp.org>
62748
62749                 * build-aux/csharpcomp.sh.in: Suffix for resources is
62750                 .resources, not .resource.
62751
62752         2005-07-09  Bruno Haible  <bruno@clisp.org>
62753
62754                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
62755                 add a .dll suffix.
62756                 Reported by Mark Junker <mjscod@gmx.de>.
62757
62758         2006-07-22  Bruno Haible  <bruno@clisp.org>
62759
62760                 * modules/gettext: Upgrade to gettext-0.15.
62761                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
62762                 m4/visibility.m4.
62763                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
62764
62765 2006-07-22  Bruno Haible  <bruno@clisp.org>
62766
62767         Merge from GNU gettext 0.15.
62768
62769         2006-03-25  Bruno Haible  <bruno@clisp.org>
62770
62771                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
62772
62773         2006-07-21  Bruno Haible  <bruno@clisp.org>
62774
62775                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
62776                 "1.1".
62777
62778         2006-05-09  Bruno Haible  <bruno@clisp.org>
62779
62780                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
62781                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
62782                 for the conftestver execution.
62783
62784         2006-05-01  Bruno Haible  <bruno@clisp.org>
62785
62786                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
62787                 optional target-version argument. Verify that the compiler
62788                 groks source of the specified source-version, or add -source
62789                 option as necessary. Verify that the compiler produces
62790                 bytecode in the specified target-version, or add -target and
62791                 -source options as necessary. Make the result of the test
62792                 available as variable CONF_JAVAC. Also log error output in
62793                 config.log.
62794
62795         2006-03-11  Bruno Haible  <bruno@clisp.org>
62796
62797                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
62798
62799         2006-05-09  Bruno Haible  <bruno@clisp.org>
62800
62801                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
62802                 CLASSPATH_SEPARATOR to a semicolon.
62803
62804         2006-03-12  Bruno Haible  <bruno@clisp.org>
62805
62806                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
62807                 available as variable CONF_JAVA, for subsequent autoconf
62808                 tests. Also log error output in config.log.
62809
62810         2006-07-19  Bruno Haible  <bruno@clisp.org>
62811
62812                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
62813                 that getline works on glibc2 systems. Needed to avoid trouble
62814                 in relocatable.c.
62815                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
62816
62817         2005-12-04  Bruno Haible  <bruno@clisp.org>
62818
62819                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
62820                 launcher (untested).
62821
62822         2005-12-04  Bruno Haible  <bruno@clisp.org>
62823
62824                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
62825
62826         2006-07-22  Bruno Haible  <bruno@clisp.org>
62827
62828                 * gettext.m4: Update from GNU gettext-0.15.
62829                 * nls.m4: Likewise.
62830                 * po.m4: Likewise.
62831                 * inttypes-pri.m4: Likewise.
62832                 * inttypes-h.m4: Renamed from inttypes.m4.
62833                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
62834
62835 2006-07-22  Bruno Haible  <bruno@clisp.org>
62836
62837         Merge from GNU gettext 0.15.
62838
62839         2005-07-05  Bruno Haible  <bruno@clisp.org>
62840
62841                 * printf-args.c (printf_fetchargs): Work around broken
62842                 definition of wint_t on mingw.
62843
62844         2005-02-12  Bruno Haible  <bruno@clisp.org>
62845
62846                 * xallocsa.h: Add extern "C" for C++.
62847
62848         2006-05-17  Bruno Haible  <bruno@clisp.org>
62849
62850                 Cygwin portability.
62851                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
62852
62853         2006-04-30  Bruno Haible  <bruno@clisp.org>
62854
62855                 * progreloc.c: Include <mach-o/dyld.h> if available.
62856                 (find_executable): Use _NSGetExecutablePath when possible.
62857
62858         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
62859
62860                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
62861                 function.
62862
62863         2005-12-29  Bruno Haible  <bruno@clisp.org>
62864
62865                 * progreloc.c (set_program_name_and_installdir): Fix
62866                 compilation error.
62867
62868         2005-12-04  Bruno Haible  <bruno@clisp.org>
62869
62870                 Cygwin portability.
62871                 * progreloc.c: Include <windows.h> also on Cygwin.
62872                 (find_executable): Add support for Cygwin.
62873                 (set_program_name_and_installdir): Handle also platforms with
62874                 nonempty EXEEXT.
62875
62876         2006-07-11  Bruno Haible  <bruno@clisp.org>
62877
62878                 * javacomp.c: Fix a comment.
62879                 Reported by Jim Meyering.
62880
62881         2006-04-30  Bruno Haible  <bruno@clisp.org>
62882
62883                 * javacomp.h (compile_java_class): Add source_version,
62884                 target_version arguments.
62885                 * javacomp.c: Rewritten to choose only a compiler that
62886                 respects the specified source_version and target_version.
62887
62888         2006-06-27  Bruno Haible  <bruno@clisp.org>
62889
62890                 Assume correct S_ISDIR macro.
62891                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
62892
62893         2006-07-22  Bruno Haible  <bruno@clisp.org>
62894
62895                 * javaversion.h: New file, from GNU gettext.
62896                 * javaversion.c: New file, from GNU gettext.
62897                 * javaversion.java: New file, from GNU gettext.
62898                 * javaversion.class: New file, from GNU gettext.
62899
62900         2006-05-17  Bruno Haible  <bruno@clisp.org>
62901
62902                 Cygwin portability.
62903                 * javaexec.c (execute_java_class): Test for jview program
62904                 also on Cygwin.
62905
62906         2006-04-09  Bruno Haible  <bruno@clisp.org>
62907
62908                 * fatal-signal.c: Don't include string.h.
62909                 (at_fatal_signal): Use a copying loop instead of memcpy.
62910
62911         2005-12-04  Bruno Haible  <bruno@clisp.org>
62912
62913                 * csharpexec.c: Add support for 'clix' launcher (untested).
62914                 (execute_csharp_using_sscli): New function.
62915                 (execute_csharp_program): Call it.
62916
62917         2006-06-21  Bruno Haible  <bruno@clisp.org>
62918
62919                 Avoid warnings from recent versions of mcs.
62920                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
62921                 -o, -L, -r any more. Use options documented since mcs-1.0
62922                 instead. Similarly for -g.
62923
62924         2005-07-09  Bruno Haible  <bruno@clisp.org>
62925
62926                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
62927                 add a .dll suffix.
62928                 Reported by Mark Junker <mjscod@gmx.de>.
62929
62930         2006-06-17  Bruno Haible  <bruno@clisp.org>
62931
62932                 * config.charset: Update for NetBSD 3.0.
62933
62934         2006-05-17  Bruno Haible  <bruno@clisp.org>
62935
62936                 Cygwin portability.
62937                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
62938
62939         2006-05-16  Bruno Haible  <bruno@clisp.org>
62940
62941                 * localcharset.c [CYGWIN]: Include <windows.h>.
62942                 (get_charset_aliases): For Cygwin, return the same CPxxx
62943                 aliases list as under WIN32.
62944                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
62945                 the environment variables. Fall back to GetACP().
62946
62947         2006-04-05  Bruno Haible  <bruno@clisp.org>
62948
62949                 * config.charset: Update Juan Manuel Guerrero's address.
62950
62951         2005-02-12  Bruno Haible  <bruno@clisp.org>
62952
62953                 * allocsa.h: Add extern "C" for C++.
62954
62955         2005-02-10  Bruno Haible  <bruno@clisp.org>
62956
62957                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
62958                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
62959
62960         2006-07-22  Bruno Haible  <bruno@clisp.org>
62961
62962                 * gettext.h: Update to GNU gettext-0.15.
62963
62964 2006-07-22  Bruno Haible  <bruno@clisp.org>
62965
62966         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
62967         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
62968         lib-prefix.m4, longdouble.m4, ssize_t.m4.
62969
62970 2006-07-21  Eric Blake  <ebb9@byu.net>
62971
62972         * modules/stdlib-safer: New file.
62973         * MODULES.html.sh (File stream based Input/Output): Add
62974         stdlib-safer.
62975
62976 2006-07-21  Eric Blake  <ebb9@byu.net>
62977
62978         * lib/stdlib-safer.h: New file from coreutils, required by
62979         stdlib--.h.
62980
62981 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
62982
62983         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
62984
62985 2006-07-20  Bruno Haible  <bruno@clisp.org>
62986
62987         * gnulib-tool: Recognize new option --assume-autoconf.
62988         (autoconf_minversion): New variable.
62989         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
62990
62991 2006-07-20  Bruno Haible  <bruno@clisp.org>
62992
62993         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
62994
62995 2006-07-19  Derek R. Price  <derek@ximbiot.com>
62996
62997         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
62998         Reindent and repaginate.
62999
63000 2006-07-19  Derek Price  <derek@ximbiot.com>
63001
63002         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
63003         Correct grammar.
63004
63005 2006-07-17  Bruno Haible  <bruno@clisp.org>
63006
63007         * modules/list: New file.
63008         * modules/array-list: New file.
63009         * modules/carray-list, modules/carray-list-tests: New files.
63010         * modules/linked-list, modules/linked-list-tests: New files.
63011         * modules/avltree-list, modules/avltree-list-tests: New files.
63012         * modules/rbtree-list, modules/rbtree-list-tests: New files.
63013         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
63014         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
63015         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
63016         * modules/oset: New file.
63017         * modules/array-oset: New file.
63018         * modules/avltree-oset, modules/avltree-oset-tests: New files.
63019         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
63020         * tests/test-carray_list.c: New file.
63021         * tests/test-linked_list.c: New file.
63022         * tests/test-avltree_list.c: New file.
63023         * tests/test-rbtree_list.c: New file.
63024         * tests/test-linkedhash_list.c: New file.
63025         * tests/test-avltreehash_list.c: New file.
63026         * tests/test-rbtreehash_list.c: New file.
63027         * tests/test-avltree_oset.c: New file.
63028         * tests/test-rbtree_oset.c: New file.
63029         * MODULES.html.sh (Container data structures): New section.
63030
63031 2006-07-17  Bruno Haible  <bruno@clisp.org>
63032
63033         * m4/gl_list.m4: New file.
63034
63035 2006-07-17  Bruno Haible  <bruno@clisp.org>
63036
63037         * lib/gl_list.h: New file.
63038         * lib/gl_list.c: New file.
63039         * lib/gl_array_list.h: New file.
63040         * lib/gl_array_list.c: New file.
63041         * lib/gl_carray_list.h: New file.
63042         * lib/gl_carray_list.c: New file.
63043         * lib/gl_linked_list.h: New file.
63044         * lib/gl_linked_list.c: New file.
63045         * lib/gl_anylinked_list1.h: New file.
63046         * lib/gl_anylinked_list2.h: New file.
63047         * lib/gl_avltree_list.h: New file.
63048         * lib/gl_avltree_list.c: New file.
63049         * lib/gl_anyavltree_list1.h: New file.
63050         * lib/gl_anyavltree_list2.h: New file.
63051         * lib/gl_rbtree_list.h: New file.
63052         * lib/gl_rbtree_list.c: New file.
63053         * lib/gl_anyrbtree_list1.h: New file.
63054         * lib/gl_anyrbtree_list2.h: New file.
63055         * lib/gl_anytree_list1.h: New file.
63056         * lib/gl_anytree_list2.h: New file.
63057         * lib/gl_linkedhash_list.h: New file.
63058         * lib/gl_linkedhash_list.c: New file.
63059         * lib/gl_anyhash_list1.h: New file.
63060         * lib/gl_anyhash_list2.h: New file.
63061         * lib/gl_avltreehash_list.h: New file.
63062         * lib/gl_avltreehash_list.c: New file.
63063         * lib/gl_rbtreehash_list.h: New file.
63064         * lib/gl_rbtreehash_list.c: New file.
63065         * lib/gl_anytreehash_list1.h: New file.
63066         * lib/gl_anytreehash_list2.h: New file.
63067
63068         * lib/gl_oset.h: New file.
63069         * lib/gl_oset.c: New file.
63070         * lib/gl_array_oset.h: New file.
63071         * lib/gl_array_oset.c: New file.
63072         * lib/gl_avltree_oset.h: New file.
63073         * lib/gl_avltree_oset.c: New file.
63074         * lib/gl_rbtree_oset.h: New file.
63075         * lib/gl_rbtree_oset.c: New file.
63076         * lib/gl_anytree_oset.h: New file.
63077
63078 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
63079
63080         * m4/mkancesdirs.m4: New file.
63081         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
63082         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
63083         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
63084         it.
63085
63086 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
63087
63088         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
63089         * lib/mkancesdirs.h: New files.
63090         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
63091         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
63092         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
63093         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
63094         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
63095         callers changed.  Revamp internals significantly, by not
63096         attempting to create directories that are temporarily more
63097         permissive than the final results.  Do not attempt to use
63098         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
63099         This removes some race conditions, fixes some bugs, and simplifies
63100         things.  Use new dirchownmod function to do owner and mode changes.
63101         * lib/mkdir-p.h: Likewise.
63102         * lib/modechange.c (octal_to_mode): New function.
63103         (struct mode_change): New member mentioned.
63104         (make_node_op_equals): New arg mentioned.  All callers changed.
63105         (mode_compile): Keep track of which mode bits the user has explicitly
63106         mentioned.
63107         (mode_adjust): New arg DIR, so that we implement the X op correctly.
63108         New arg PMODE_BITS, to keep track of which mode bits the user
63109         mentioned; it treats S_ISUID and S_ISGID speciall.
63110         All callers changed.
63111         * lib/modechange.h: Likewise.
63112
63113 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
63114
63115         * MODULES.html.sh: Add mkancestors.
63116         * modules/mkancesdirs: New module.
63117         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
63118         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
63119         The chdir-safer and afs files are now orphans; I'll remove them
63120         unless someone speaks up.
63121         Add lib/dirchownmod.c, lib/dirchownmod.h.
63122         (Depends-on): Remove alloca, chown, save-cwd, dirname.
63123         Add lchown, mkancesdirs.
63124         (Maintainer): Add self.
63125
63126 2006-07-15  Karl Berry  <karl@gnu.org>
63127
63128         * gnulib-tool: help message wording/arrangement.
63129
63130 2006-07-14  Simon Josefsson  <jas@extundo.com>
63131
63132         * doc/gnulib.texi (Libtool and Windows): New section.
63133
63134 2006-07-12  Simon Josefsson  <jas@extundo.com>
63135
63136         * modules/gendocs (License): Fix license, approved by Karl.
63137
63138 2006-07-12  Eric Blake  <ebb9@byu.net>
63139
63140         * MODULES.html.sh: Add gendocs.
63141
63142 2006-07-11  Eric Blake  <ebb9@byu.net>
63143
63144         * modules/fdl: New module, to install doc/fdl.texi.
63145         * MODULES.html.sh: Add new section for documentation modules.
63146         * gnulib-tool: Avoid space-tab.
63147         (--doc-base): New option, to manage files from doc.
63148
63149 2006-07-11  Eric Blake  <ebb9@byu.net>
63150
63151         * m4/absolute-header.m4: Fix comments to match recent change.
63152
63153 2006-07-11  Eric Blake  <ebb9@byu.net>
63154
63155         * gnulib-tool: List --doc-base before --tests-base.
63156
63157 2006-07-11  Derek R. Price  <derek@ximbiot.com>
63158
63159         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
63160
63161 2006-07-11  Bruno Haible  <bruno@clisp.org>
63162
63163         * README: Mention where to put documentation.
63164
63165 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63166
63167         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
63168
63169 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
63170
63171         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
63172         to stdint.m4.
63173
63174 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
63175
63176         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
63177         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
63178         "no/such/file/stdint.h" when there is no such file, so that
63179         the resulting C code can be parsed by dodgy compilers.
63180         Problems reported by Bob Proulx.
63181
63182 2006-07-10  Derek R. Price  <derek@ximbiot.com>
63183
63184         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
63185         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
63186         macros into the GNU _D_EXACT_NAMLEN.
63187         * lib/savedir.c:  Likewise.
63188         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
63189
63190 2006-07-10  Derek R. Price  <derek@ximbiot.com>
63191         and Paul Eggert  <eggert@cs.ucla.edu>
63192
63193         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
63194         * m4/savedir.m4:
63195         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
63196         macros into the GNU _D_EXACT_NAMLEN.
63197
63198 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
63199
63200         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
63201         around the absolute name, to work around a problem with the HP-UX
63202         11.23 native C compiler, reported by Bob Proulx.
63203
63204 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
63205
63206         * doc/maintain.texi, make-stds.texi: Sync from
63207         <http://savannah.gnu.org/projects/gnustandards>.
63208
63209 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
63210
63211         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
63212
63213 2006-07-09  Jim Meyering  <jim@meyering.net>
63214
63215         * m4/glob.m4: Remove a doubled word in a comment.
63216
63217 2006-07-09  Jim Meyering  <jim@meyering.net>
63218
63219         * lib/argp-pv.c: Remove a doubled word in a comment.
63220         * lib/check-version.c (check_version): Likewise.
63221         * lib/javacomp.c (compile_java_class): Likewise.
63222
63223 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
63224
63225         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
63226         for the benefit of people using Autoconf 2.60.  If you want to
63227         support older Autoconf versions you can copy m4/onceonly_2_57.m4
63228         (or m4/onceonly.m4, if pre-2.57) manually.
63229
63230 2006-07-08  Jim Meyering  <jim@meyering.net>
63231
63232         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
63233         comment.
63234         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
63235         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
63236         comment.
63237
63238 2006-07-08  Jim Meyering  <jim@meyering.net>
63239
63240         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
63241
63242 2006-07-07  Simon Josefsson  <jas@extundo.com>
63243
63244         * tests/test-crc.c: Change expected crc value, the test vector
63245         were probably computed using the old broken crc.c?
63246
63247 2006-07-06  Simon Josefsson  <jas@extundo.com>
63248
63249         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
63250         now the canonical place for the M4 file).
63251
63252         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
63253         from the sys_socket dependency now.
63254
63255         * modules/inet_pton (Files): Ditto.
63256
63257         * modules/inet_ntop (Files): Ditto.
63258
63259 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
63260
63261         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
63262         not gl_PREREQ_GETUSERSHELL.
63263
63264 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63265
63266         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
63267         with only one argument, for Autoconf 2.60.
63268         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
63269         expand to nothing, so add a shell command to avoid syntax error.
63270         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
63271
63272 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63273
63274         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
63275
63276 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
63277
63278         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
63279         no longer needed.  Check for isblank decl.
63280         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
63281         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
63282         of existence.
63283
63284 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
63285
63286         * lib/getloadavg.c: Use __VMS, not VMS.
63287         * lib/getopt.c: Likewise.
63288         * lib/getpagesize.h: Likewise.
63289         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
63290         and probably does not work.
63291
63292 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
63293
63294         * lib/.cppi-disable: Add wcwidth.
63295         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
63296         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
63297         (ISGRAPH): Remove.  All uses changed to isgraph.
63298         (FOLD) [!defined _LIBC]: Remove special case.
63299         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
63300         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
63301         HAVE_ISBLANK.
63302         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
63303         case.
63304
63305 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
63306
63307         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
63308         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
63309         brackets.  Other minor changes to suppress some compiler
63310         warnings.
63311
63312 2006-07-06  Derek R. Price  <derek@ximbiot.com>
63313         and Paul Eggert  <eggert@cs.ucla.edu>
63314
63315         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
63316         of invoking obsolescent AC_HEADER_DIRENT macro.
63317         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
63318         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
63319         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
63320         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
63321         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
63322         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
63323         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
63324         * m4/readdir.m4: Remove; no longer needed.
63325
63326 2006-07-06  Derek R. Price  <derek@ximbiot.com>
63327         and Paul Eggert  <eggert@cs.ucla.edu>
63328
63329         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
63330         Don't worry about this obsolete case any more.
63331         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
63332         directories.
63333         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
63334         worry about this obsolete case any more.
63335         * lib/fts.c: Likewise.
63336         * lib/getcwd.c: Likewise.
63337         * lib/glob.h: Likewise.
63338         * lib/savedir.c: Likewise.
63339
63340 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
63341
63342         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
63343         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
63344         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
63345         needed.
63346         All uses removed.
63347         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
63348         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
63349         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
63350         needed.
63351         * m4/getdate.m4 (gl_GETDATE): Likewise.
63352         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
63353         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
63354         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
63355         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
63356         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
63357         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
63358         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
63359         needed.
63360
63361 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
63362
63363         * lib/memcasecmp.c: Include <limits.h>.
63364         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
63365         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
63366         Don't assume isdigit succeeds only on '0' through '9'.
63367
63368 2006-07-05  Eric Blake  <ebb9@byu.net>
63369
63370         * modules/getaddrinfo (Depends-on): Add snprintf.
63371
63372 2006-07-05  Eric Blake  <ebb9@byu.net>
63373
63374         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
63375         to avoid 'header present but could not be compiled' on cygwin.
63376
63377 2006-07-05  Eric Blake  <ebb9@byu.net>
63378
63379         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
63380         missing from netdb.h.
63381         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
63382
63383 2006-07-05  Derek R. Price  <derek@ximbiot.com>
63384
63385         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
63386         no longer needed.
63387         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
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/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
63394
63395 2006-07-05  Derek R. Price  <derek@ximbiot.com>
63396
63397         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
63398         All uses of is_space replaced by isspace.
63399         * lib/exit.h: Don't talk about STDC_HEADERS.
63400         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
63401         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
63402         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
63403         replaced by isprint etc.
63404         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
63405         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
63406         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
63407         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
63408         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
63409         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
63410
63411 2006-07-05  Bruno Haible  <bruno@clisp.org>
63412
63413         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
63414         the function exists, before testing against AIX.
63415         Reported by Martin Lambers <marlam@marlam.de>.
63416
63417 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
63418
63419         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
63420         From Mark D. Baushke.
63421
63422 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
63423
63424         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
63425         to the absolute name, not just one, to bypass Sun C 5.8's
63426         "warning: #include of /usr/include/... may be non-portable".
63427
63428 2006-07-04  Eric Blake  <ebb9@byu.net>
63429
63430         * modules/dirname-tests: New test module.
63431         * tests/test-dirname.c: New file, replacing dirname.c
63432         TEST_DIRNAME section that was recently deleted.
63433
63434 2006-07-04  Bruno Haible  <bruno@clisp.org>
63435
63436         Assume ANSI C header files and <ctype.h> functions.
63437         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
63438         (mbsnwidth): Use isprint, iscntrl instead.
63439
63440 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
63441
63442         Merge from coreutils.
63443         * MODULES.html.sh: Add xstrtold.
63444         * modules/xstrtold: New file.
63445         * modules/cycle-check (Files): Add lib/same-inode.h.
63446         * modules/dirname (Files): Add m4/double-slash-root.m4.
63447         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
63448         * modules/mkdir-p (Files): Add lib/same-inode.h.
63449         * modules/same (Files): Add lib/same-inode.h.
63450
63451 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
63452
63453         * m4/absolute-header.m4: Renamed from full-header-path.m4.
63454         This is to keep the terminology clean; POSIX talks about
63455         "absolute pathnames", not "full pathnames", but the GNU
63456         Coding Standards say to use "path" for something else;
63457         so use "absolute" to keep both sides happy.
63458         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
63459         Set gl_absolute_header, not gl_full_header_path.
63460         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
63461         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
63462         All uses changed.
63463
63464         Merge from coreutils.
63465
63466         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
63467
63468         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
63469         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
63470         want to require the building of c-strtod.o.
63471         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
63472         needs -lm directly.
63473         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
63474
63475         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
63476
63477         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
63478         --as-needed option if available.  Problem reported by Albert Chin in
63479         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
63480         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
63481         cc merely issues a bunch of annoying warnings for --as-needed
63482         (this problem was reported by Bob Proulx).  Also, try linking with
63483         -lm to detect a bug in binutils 2.16 (this problem was reported
63484         by Ralf Wildenhues).
63485
63486         2006-06-18  Jim Meyering  <jim@meyering.net>
63487
63488         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
63489         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
63490         macro.
63491         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
63492         also check for glibc-2.4's abort-inducing bug.
63493
63494         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
63495         Low-probability clean-up should be to use rmdir to get rid of
63496         the just-created directory, not unlink.
63497
63498         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
63499         configure fail, and request a bug report to inform us about it.
63500         Add a comment that, barring reports to the contrary, in 2007 we'll
63501         assume ftruncate is universally available.
63502
63503         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
63504
63505         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
63506
63507         2006-03-12  Jim Meyering  <jim@meyering.net>
63508
63509         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
63510         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
63511         * m4/same.m4 (gl_SAME): Likewise.
63512         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
63513
63514         2006-03-11  Eric Blake  <ebb9@byu.net>
63515
63516         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
63517         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
63518         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
63519         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
63520
63521 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
63522
63523         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
63524         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
63525         reported by Mark D. Baushke, one in
63526         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
63527
63528         Merge from coreutils.
63529
63530         * lib/.cppi-disable: Add stdint_.h.
63531         * lib/.cvsignore: Add stdint.h.
63532
63533         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
63534
63535         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
63536         both double and long double versions.
63537         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
63538         * lib/xstrtold.c: New file.
63539         * lib/xstrtod.h (xstrtold): New decl.
63540
63541         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
63542
63543         * lib/filemode.c (setst): Remove.
63544         (strmode): Rewrite to avoid setst.  This makes the code shorter,
63545         (arguably) clearer, and the generated code is a bit smaller on my
63546         Debian GNU/Linux stable x86 host.
63547
63548         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
63549
63550         * lib/filemode.c: Include "filemode.h" first, to test the interface.
63551         Assume that filemode.h includes sys/types.h and sys/stat.h.
63552         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
63553         (ftypelet): Reorder to put common cases first, for efficiency.
63554         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
63555         to do 'M'.
63556         (strmode): Renamed from mode_string, and now stores 12 bytes instead
63557         of 10, for compatibility with FreeBSD.  All callers changed.
63558         (filemodestring): Now stores 12 bytes instead of 10, and sets file
63559         types that can't be deduced solely from st_mode.  First arg is now a
63560         const pointer.
63561         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
63562         (strmode): Renamed from mode_string.
63563         (filemodestring): New decl.
63564         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
63565         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
63566         needed.
63567         (S_ISPORT, S_ISWHT): New macros, if not already defined.
63568
63569         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
63570
63571         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
63572         fsusage.h now does that.  Include fsusage.h first, to test interface.
63573         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
63574         at most one method (the old code could have generated decls that
63575         didn't conform to C89, not that this was ever exercised).
63576         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
63577
63578         2006-03-19  Jim Meyering  <jim@meyering.net>
63579
63580         Work even in a chroot where d_ino values for entries in "/"
63581         don't match the stat.st_ino values for the same names.
63582         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
63583         number, iterate through all entries again, using lstat instead.
63584         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
63585         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
63586
63587         * lib/getcwd.c (__getcwd): Clarify a comment.
63588         Use memcpy in place of a call to strcpy.
63589
63590         2006-03-12  Jim Meyering  <jim@meyering.net>
63591
63592         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
63593         matches that of the current directory (which we're about to chdir ".."
63594         out of), then save the dev-ino of the parent, instead.
63595
63596         * lib/same-inode.h (SAME_INODE): New file/macro.
63597         * lib/chdir-safer.c (SAME_INODE): Remove definition.
63598         Include "same-inode.h", instead.
63599         * lib/same.c: Likewise.
63600         * lib/cycle-check.h: Include "same-inode.h".
63601         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
63602         * lib/cycle-check.c (SAME_INODE): Remove definition.
63603         * lib/root-dev-ino.h: Include "same-inode.h".
63604
63605         2006-03-11  Eric Blake  <ebb9@byu.net>
63606
63607         * lib/same.c (same_name): s/base_name/last_component/
63608         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
63609         * lib/filenamecat.c (file_name_concat): Likewise.
63610
63611         2006-03-11  Eric Blake  <ebb9@byu.net>,
63612                     Paul Eggert  <eggert@cs.ucla.edu>
63613
63614         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
63615         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
63616         drive prefix.
63617         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
63618         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
63619         (last_component): New method.
63620         * lib/dirname.c (dir_len): Determine when drive letters need a
63621         subsequent slash.  Preserve // when it is special.
63622         (dir_name): Don't append dot when drive letter is absolute.
63623         [TEST_DIRNAME]: Move into a full-blown gnulib test.
63624         * lib/basename.c (base_name): New semantics - malloc the result.
63625         Preserve // when it is special.  Preserve relative files that look
63626         like drive letters.
63627         (base_len): Preserve // when it is special.
63628         (last_component): New method, similar to old base_name semantics.
63629         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
63630         base_name.  Strip redundant slashes from ///.
63631
63632 2006-07-03  Jim Meyering  <jim@meyering.net>
63633
63634         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
63635         macro is used before the first cycle_check call.
63636
63637 2006-07-03  Eric Blake  <ebb9@byu.net>
63638
63639         * modules/dirname (Depends-on): Add xstrndup.
63640
63641 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
63642
63643         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
63644         test cases, so that config.log is a bit easier to follow.
63645
63646 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
63647
63648         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
63649         both are 64 bits, since this seems to be the tradition, and this
63650         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
63651         we ever run into a host that prefers long long to long in this
63652         case, we'll need another configure-time test.  Problem reported by
63653         Jim Meyering.
63654
63655 2006-07-02  Eric Blake  <ebb9@byu.net>
63656
63657         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
63658
63659 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
63660
63661         * modules/inttypes (Depends-on): No longer depends on stdint.
63662         * modules/stdint (Description): Say more about assumptions.
63663         Say that the fast types might differ.  Say macros are used.
63664         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
63665         (Makefile.am): Revise list of substituted symbols to match
63666         new stdint.m4.
63667         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
63668         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
63669         * tests/test-stdint.c (verify_same_types)
63670         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
63671         the code conforms to C99/C89.
63672         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
63673         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
63674
63675 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
63676
63677         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
63678         but fix a bug, by requiring at least 64 bits.
63679         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
63680         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
63681         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
63682         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
63683
63684         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
63685         changes.  Make 2.59 a prerequisite.  Check and substitute for
63686         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
63687         inttypes.h.  Do not use special include files; just use the
63688         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
63689         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
63690         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
63691         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
63692         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
63693         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
63694         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
63695         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
63696         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
63697         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
63698         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
63699         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
63700         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
63701         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
63702         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
63703         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
63704         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
63705         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
63706         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
63707         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
63708         WINT_MAX.  Check for C99 conformance more strictly, by detecting
63709         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
63710         not check for things that C99 does not require, e.g., int8_t.  If
63711         a test isn't needed unless <stdint.h> isn't working, and is
63712         unlikely to be needed for any other reason, then don't do it
63713         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
63714         size_t, since we assume C89 freestanding at least.  Do not check
63715         for sig_atomic_t, wchar_t, or wint_t, since the code now does
63716         the right thing even if the types are not defined.  Instead use:
63717         (gl_STDINT_TYPE_PROPERTIES): New macro.
63718         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
63719         testing whether <sys/types.h> clashes, as Autoconf does this for
63720         us now.  All uses removed.
63721         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
63722         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
63723         (gl_CHECK_TYPE_SAME):
63724         Remove; no longer needed.
63725         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
63726         exists, since we'll return 0 anyway in that case.
63727         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
63728
63729 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
63730
63731         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
63732         possible collision with system files.
63733         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
63734         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
63735         WCHAR_MIN and WCHAR_MAX in this case.
63736         (<stddef.h>): Do not include; no longer needed.
63737         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
63738         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
63739         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
63740         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
63741         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
63742         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
63743         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
63744         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
63745         !defined(__c99))]: Include in this case too, since it's harmless
63746         now.
63747         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
63748         dangerous to do so.
63749         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
63750         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
63751         (_STDINT_MIN, _STDINT_MAX): New macros.
63752         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
63753         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
63754         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
63755         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
63756         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
63757         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
63758         macros, not typedefs; this simplifies things quite a bit.
63759         Use long int for all types narrower than int64_t.
63760         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
63761         Define in terms of long long int or int64_t or long int,
63762         not int64_t or int32_t.  This saves some compile-time testing.
63763         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
63764         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
63765         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
63766         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
63767         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
63768         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
63769         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
63770         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
63771         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
63772         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
63773         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
63774         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
63775         undef any previous version and define our own version, for
63776         simplicity and consistency with the new macros for types.
63777         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
63778         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
63779         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
63780         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
63781         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
63782         @WINT_T_SUFFIX@ to keep things simple here.
63783         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
63784         Simplify by assuming typical 8/16/32/64 host, since we're
63785         already doing that elsewhere anyway.
63786         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
63787         and assume long long int is 64 bits if available.  This
63788         speeds up 'configure'.
63789
63790 2006-07-01  Eric Blake  <ebb9@byu.net>
63791
63792         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
63793         Reported by Andreas Buening.
63794
63795 2006-07-01  Eric Blake  <ebb9@byu.net>
63796
63797         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
63798
63799 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
63800
63801         * lib/getaddrinfo.c: fixed typo
63802
63803 2006-06-29  Jim Meyering  <jim@meyering.net>
63804
63805         * modules/strftime (Maintainer): Add my name, since with the
63806         FPRINTFTIME changes strftime.c has forked from glibc.
63807
63808 2006-06-29  Eric Blake  <ebb9@byu.net>
63809
63810         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
63811
63812 2006-06-29  Eric Blake  <ebb9@byu.net>
63813
63814         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
63815
63816 2006-06-29  Eric Blake  <ebb9@byu.net>
63817
63818         * lib/stat_.h: New file.
63819
63820 2006-06-29  Eric Blake  <ebb9@byu.net>
63821
63822         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
63823         unused static function.
63824
63825 2006-06-29  Eric Blake  <ebb9@byu.net>
63826
63827         * doc/functions.texi (Function Portability): Document missing lstat
63828         on mingw.
63829
63830 2006-06-29  Eric Blake  <ebb9@byu.net>
63831
63832         * MODULES.html.sh: Add sys_stat.
63833         * modules/sys_stat: New module.
63834         * modules/mkstemp (Depends-on): Add sys_stat.
63835
63836 2006-06-29  Derek R. Price  <derek@ximbiot.com>
63837
63838         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
63839
63840 2006-06-29  Derek R. Price  <derek@ximbiot.com>
63841
63842         * m4/c-bs-a.m4: Removed.
63843
63844 2006-06-29  Derek R. Price  <derek@ximbiot.com>
63845
63846         * lib/strftime.c: Assume strftime() exists.
63847
63848 2006-06-29  Derek Price  <derek@ximbiot.com>
63849
63850         * modules/c-bs-a: Removed - \a is C89.
63851         * MODULES.html.sh: Remove c-bs-a.
63852
63853 2006-06-29  Bruno Haible  <bruno@clisp.org>
63854
63855         * modules/wcwidth (License): Change to LGPL.
63856
63857 2006-06-28  Simon Josefsson  <jas@extundo.com>
63858
63859         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
63860         on _WIN32.
63861
63862         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
63863         getnameinfo.
63864
63865 2006-06-28  Simon Josefsson  <jas@extundo.com>
63866
63867         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
63868
63869 2006-06-28  Simon Josefsson  <jas@extundo.com>
63870
63871         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
63872         functions there.  It will succeed on Windows XP, but on Windows
63873         2000 and (presumably) earlier, it will fail, and use the internal
63874         re-implementation.
63875         (use_win32_p): New function.
63876         (getaddrinfo): Use strtoul on servname, to support numeric ports.
63877         Support AI_NUMERICSERV to disable getservbyname.
63878         (getnameinfo): New function, only supports
63879         NI_NUMERICHOST|NI_NUMERICSERV for now.
63880
63881         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
63882         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
63883         getnameinfo.
63884
63885 2006-06-28  Eric Blake  <ebb9@byu.net>
63886
63887         * modules/wcwidth: New file.
63888         * modules/mbchar (Depends-on): Add wcwidth.
63889         * modules/mbswidth (Depends-on): Add wcwidth.
63890         * MODULES.html.sh: Add wcwidth.
63891
63892 2006-06-28  Eric Blake  <ebb9@byu.net>
63893
63894         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
63895         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
63896
63897 2006-06-28  Eric Blake  <ebb9@byu.net>
63898
63899         * lib/xvasprintf.h: Fix comments.
63900
63901 2006-06-28  Eric Blake  <ebb9@byu.net>
63902
63903         * lib/mbchar.h (wcwidth): Include wcwidth.h.
63904         * lib/mbswidth.c (wcwidth): Move from here...
63905         * lib/wcwidth.h: ...to this new file.
63906
63907 2006-06-28  Derek R. Price  <derek@ximbiot.com>
63908
63909         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
63910
63911         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
63912         it's obsolete.
63913         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
63914
63915 2006-06-28  Derek R. Price  <derek@ximbiot.com>
63916
63917         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
63918         Autoconf 2.60 says this stuff was obsolete.
63919
63920 2006-06-28  Bruno Haible  <bruno@clisp.org>
63921
63922         * modules/wcwidth (Files): Add m4/wchar_t.m4.
63923
63924 2006-06-28  Bruno Haible  <bruno@clisp.org>
63925
63926         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
63927         gt_TYPE_WCHAR_T.
63928
63929 2006-06-28  Bruno Haible  <bruno@clisp.org>
63930
63931         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
63932         declaration for wcwidth.
63933         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
63934
63935 2006-06-28  Bruno Haible  <bruno@clisp.org>
63936
63937         * lib/mkdtemp.c [MINGW]: Include <io.h>.
63938         (mkdir): Define using _mkdir.
63939
63940 2006-06-28  Bruno Haible  <bruno@clisp.org>
63941
63942         * lib/getaddrinfo.h: Fix POSIX URL.
63943         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
63944         _WIN32.
63945         (use_win32_p): Make static.
63946         (getaddrinfo): Reject service name if it is empty or does not consist
63947         solely of decimal digits, or if its value is > 65535.
63948         (getnameinfo): Remove useless casts.
63949
63950 2006-06-27  Simon Josefsson  <jas@extundo.com>
63951
63952         * modules/sys_select: New file, suggested by Bruno Haible, Paul
63953         Eggert and Martin Lambers.
63954
63955 2006-06-27  Simon Josefsson  <jas@extundo.com>
63956
63957         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
63958         Eggert and Martin Lambers.
63959
63960 2006-06-27  Bruno Haible  <bruno@clisp.org>
63961
63962         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
63963         result to 0, not to empty.
63964         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
63965
63966 2006-06-27  Bruno Haible  <bruno@clisp.org>
63967
63968         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
63969
63970 2006-06-26  Simon Josefsson  <jas@extundo.com>
63971
63972         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
63973         present.
63974
63975 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
63976
63977         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
63978         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
63979         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
63980
63981 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
63982
63983         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
63984
63985 2006-06-26  Bruno Haible  <bruno@clisp.org>
63986
63987         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
63988
63989 2006-06-26  Bruno Haible  <bruno@clisp.org>
63990
63991         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
63992
63993 2006-06-26  Bruno Haible  <bruno@clisp.org>
63994
63995         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
63996         SGI C compiler in pre-C99 mode.
63997         Suggested by Mark D. Baushke and Larry Jones.
63998
63999 2006-06-26  Bruno Haible  <bruno@clisp.org>
64000
64001         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
64002         WCHAR_MAX.
64003         Reported by Mark D. Baushke and Larry Jones.
64004
64005 2006-06-26  Bruno Haible  <bruno@clisp.org>
64006
64007         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
64008         in pre-C99 mode.
64009         Suggested by Mark D. Baushke and Larry Jones.
64010
64011 2006-06-23  Simon Josefsson  <jas@extundo.com>
64012             Bruno Haible  <bruno@clisp.org>
64013
64014         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
64015         Emit mostlyclean-local rule.
64016         (func_emit_tests_Makefile_am): Likewise.
64017         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
64018
64019 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
64020
64021         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
64022
64023 2006-06-23  Bruno Haible  <bruno@clisp.org>
64024
64025         * tests/test-stdint.c: Update to match ISO C 99 Technical
64026         Corrigendum 1.
64027
64028 2006-06-23  Bruno Haible  <bruno@clisp.org>
64029
64030         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
64031
64032 2006-06-23  Bruno Haible  <bruno@clisp.org>
64033
64034         * lib/stdint_.h: Treat IRIX like OpenBSD.
64035
64036 2006-06-23  Bruno Haible  <bruno@clisp.org>
64037
64038         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
64039         ISO C 99 Technical Corrigendum 1.
64040
64041 2006-06-22  Simon Josefsson  <jas@extundo.com>
64042
64043         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
64044         MinGW.
64045
64046 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
64047
64048         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
64049         needed.  Some compiler complained about some of them.  Problem reported
64050         by Larry Jones in
64051         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
64052
64053 2006-06-21  Simon Josefsson  <jas@extundo.com>
64054
64055         * tests/test-getaddrinfo.c: New file.
64056
64057         * modules/getaddrinfo-tests: New file.
64058
64059         * MODULES.html.sh: Add inet_pton.
64060
64061         * modules/inet_pton: New file.
64062
64063 2006-06-21  Simon Josefsson  <jas@extundo.com>
64064
64065         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
64066         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
64067         of using the (limited) gnulib implementation on Windows XP.
64068
64069         * m4/inet_pton.m4: New file.
64070
64071 2006-06-21  Simon Josefsson  <jas@extundo.com>
64072
64073         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
64074         variable.
64075
64076         * lib/socket_.h: Don't define WINVER.
64077
64078         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
64079         slightly modified to work in gnulib.
64080
64081 2006-06-21  Simon Josefsson  <jas@extundo.com>
64082
64083         * doc/gnulib.texi (Windows sockets): Add.
64084
64085 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
64086
64087         * lib/read-file.c (fread_file): Start with buffer allocation of
64088         0 bytes rather than 1 byte; this simplifies the code.
64089         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
64090         code to free buffer and save/restore errno.
64091         (internal_read_file): Remove unused local.
64092
64093 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
64094
64095         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
64096         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
64097         Problem reported by Denis Excoffier in
64098         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
64099
64100 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64101
64102         * modules/sys_socket, modules/socklen: Include sys/types since
64103         FreeBSD 4.x's sys/socket.h needs it.
64104
64105 2006-06-19  Simon Josefsson  <jas@extundo.com>
64106
64107         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
64108
64109 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
64110
64111         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
64112
64113 2006-06-19  Bruno Haible  <bruno@clisp.org>
64114
64115         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
64116         and FULL_PATH_INTTYPES_H in angle brackets.
64117         Reported by Mark D. Baushke <mdb@gnu.org>.
64118
64119 2006-06-17  Eric Blake  <ebb9@byu.net>
64120
64121         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
64122         errno.
64123
64124 2006-06-17  Bruno Haible  <bruno@clisp.org>
64125
64126         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
64127         <sys/inttypes.h>.
64128
64129 2006-06-17  Bruno Haible  <bruno@clisp.org>
64130
64131         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
64132         whether errno is declared. Assume <errno.h> declares errno.
64133
64134 2006-06-17  Bruno Haible  <bruno@clisp.org>
64135
64136         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
64137
64138 2006-06-17  Bruno Haible  <bruno@clisp.org>
64139
64140         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
64141         problem on Solaris 2.5.1.
64142
64143 2006-06-16  Eric Blake  <ebb9@byu.net>
64144
64145         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
64146         * lib/unicodeio.c [!defined errno]: Likewise.
64147         * lib/strtol.c [!defined errno]: Likewise.
64148         * lib/strtod.c [!defined errno]: Likewise.
64149
64150 2006-06-15  Eric Blake  <ebb9@byu.net>
64151
64152         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
64153
64154 2006-06-15  Eric Blake  <ebb9@byu.net>
64155
64156         * config/srclist.txt (ssize_t.m4): Lose sync.
64157
64158 2006-06-15  Bruno Haible  <bruno@clisp.org>
64159
64160         * modules/stdint (Files): Include m4/full-header-path.m4,
64161         m4/size_max.m4, m4/wchar_t.m4.
64162         (Makefile.am): Many more substitutions.
64163         * modules/stdint-tests: New file.
64164         * tests/test-stdint.c: New file.
64165
64166 2006-06-15  Bruno Haible  <bruno@clisp.org>
64167
64168         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
64169         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
64170         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
64171         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
64172         gl_CHECK_TYPE_SAME): New macros.
64173
64174 2006-06-15  Bruno Haible  <bruno@clisp.org>
64175
64176         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
64177
64178 2006-06-15  Bruno Haible  <bruno@clisp.org>
64179
64180         * lib/stdint_.h: Rewritten to be fully auto-configured.
64181         Fixes bug on HP-UX/IA64.
64182
64183 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
64184
64185         * lib/getdate.y (__attribute__): Don't define if already defined.
64186         Problem reported by Larry Jones.
64187         * lib/utimens.c (__attribute__): Likewise.
64188
64189 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
64190
64191         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
64192         reported by Andreas Schwab.
64193
64194 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64195             Bruno Haible  <bruno@clisp.org>
64196
64197         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
64198         check for the declaration of strnlen and a run test that exposes the
64199         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
64200         rpl_strndup.
64201
64202 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64203             Bruno Haible  <bruno@clisp.org>
64204
64205         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
64206
64207 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64208
64209         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
64210         compile test, for Tru64 4.0D.
64211
64212 2006-05-28  Karl Berry  <karl@gnu.org>
64213
64214         * config/srclist.txt (printf-args.c): lose sync.
64215
64216 2006-05-26  Martin Lambers  <marlam@marlam.de>
64217
64218         * lib/getpass.c: Updates the test for the native W32 API, and adds
64219         missing includes, thus fixing compilation warnings.
64220
64221 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
64222
64223         * lib/exclude.c (exclude_fnmatch): New function.
64224         (excluded_file_name): Call exclude_fnmatch.
64225         * lib/exclude.h (excluded_file_name): New prototype
64226
64227 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
64228
64229         * lib/tempname.c (small_open, large_open): New macros.
64230         (__open, __open64) [!_LIBC]: Remove.
64231         (__gen_tempname): Use small_open and large_open instead of __open
64232         and __open64.  This fixes a portability bug on HP-UX 11.11i
64233         reported by Simon Wing-Tang in
64234         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
64235
64236 2006-05-24  Bruno Haible  <bruno@clisp.org>
64237
64238         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
64239         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
64240         Reported by Thorsten Maerz <torte@netztorte.de> via
64241         Aaron Stone <aaron@serendipity.cx>.
64242
64243 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
64244
64245         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
64246         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
64247         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
64248         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
64249         not really conditional on the cache.
64250         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
64251
64252 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
64253
64254         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
64255         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
64256         (my_usleep): Don't mishandle maximum value.
64257
64258 2006-05-19  Jim Meyering  <jim@meyering.net>
64259
64260         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
64261
64262 2006-05-17  Bruno Haible  <bruno@clisp.org>
64263
64264         Cygwin portability.
64265         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
64266
64267 2006-05-17  Bruno Haible  <bruno@clisp.org>
64268
64269         * lib/stdint_.h: Fix recognition of Cygwin.
64270
64271 2006-05-15  Bruno Haible  <bruno@clisp.org>
64272
64273         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
64274         on libtool patch by Ralf Wildenhues.
64275
64276 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
64277
64278         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
64279         test for C99 conformance; (bool) 0.5 is an integer constant
64280         expression, but (bool) -0.5 is not.  Problem reported by Fedor
64281         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
64282
64283 2006-05-11  Simon Josefsson  <jas@extundo.com>
64284
64285         * m4/xvasprintf.m4: Fix obvious typo.
64286
64287 2006-05-11  Jim Meyering  <jim@meyering.net>
64288
64289         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
64290         James Lemley.
64291
64292 2006-05-10  Simon Josefsson  <jas@extundo.com>
64293
64294         * lib/md4.c: Typo fix, update copyright years.
64295         (K1, K2): Don't use L because it turn computations into 64-bit on
64296         64-bit platforms.
64297
64298 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
64299
64300         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
64301         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
64302         unwanted sign propagation, e.g., on hosts with 64-bit int.
64303         There still are some problems with reeelly weird theoretical hosts
64304         (e.g., 33-bit int) but it's not worth worrying about now.
64305         * lib/sha1.c (rol): Likewise.
64306         (K1, K2, K3, K4): Remove unnecessary L suffix.
64307
64308 2006-05-10  Bruno Haible  <bruno@clisp.org>
64309
64310         * lib/des.c: Cast to avoid warnings.
64311
64312 2006-05-09  Bruno Haible  <bruno@clisp.org>
64313
64314         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
64315         (Depends-on): Depend also on xsize, stdarg.
64316         (configure.ac): Add gl_XVASPRINTF.
64317
64318 2006-05-09  Bruno Haible  <bruno@clisp.org>
64319
64320         * m4/xvasprintf.m4: New file.
64321
64322 2006-05-09  Bruno Haible  <bruno@clisp.org>
64323
64324         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
64325         (EOVERFLOW): Define fallback value.
64326         (xstrcat): New function.
64327         (xvasprintf): Recognize the special case of a string concatenation.
64328
64329 2006-05-08  Eric Blake  <ebb9@byu.net>
64330
64331         * gnulib-tool (func_version): Base copyright year on CVS date.
64332         (func_emit_copyright_notice): New function.
64333         (func_emit_lib_Makefile_am): Use it.
64334         (func_emit_tests_Makefile_am): Likewise.
64335         (func_import): Likewise.
64336
64337 2006-05-08  Bruno Haible  <bruno@clisp.org>
64338
64339         * modules/stdarg: New file.
64340         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
64341
64342 2006-05-08  Bruno Haible  <bruno@clisp.org>
64343
64344         * m4/stdarg.m4: New file, from GNU gettext.
64345
64346 2006-05-08  Bruno Haible  <bruno@clisp.org>
64347
64348         * config/srclist.txt (build-aux/config.rpath): different from latest
64349         release.
64350
64351 2006-05-08  Bruno Haible  <bruno@clisp.org>
64352
64353         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
64354
64355 2006-05-05  Jim Meyering  <jim@meyering.net>
64356
64357         * m4/warning.m4: New file, derived from bison's file by the same name.
64358
64359 2006-05-03  Bruno Haible  <bruno@clisp.org>
64360
64361         * lib/stdint_.h: Shorter URL.
64362         * lib/inttypes.h: Likewise.
64363
64364 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64365
64366         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
64367
64368 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64369
64370         * lib/verify.h: Document the internals better.  Most of this change
64371         was written by Bruno Haible.
64372
64373 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64374
64375         * doc/verify.texi: New file, partly based on a proposal by
64376         Bruno Haible.
64377
64378 2006-05-02  Bruno Haible  <bruno@clisp.org>
64379
64380         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
64381         test from here...
64382         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
64383
64384 2006-04-29  Bruno Haible  <bruno@clisp.org>
64385
64386         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
64387         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
64388
64389 2006-04-29  Bruno Haible  <bruno@clisp.org>
64390
64391         * gnulib-tool: Make --update option actually work.
64392
64393 2006-04-29  Bruno Haible  <bruno@clisp.org>
64394
64395         * doc/gcd.texi: New file.
64396         * doc/gnulib.texi: Include it.
64397
64398 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
64399
64400         * lib/getdate.y (get_date): When adding relative date, start with the
64401         initial time, not with the result of the first mktime call.
64402
64403 2006-04-25  Bruno Haible  <bruno@clisp.org>
64404
64405         * gnulib-tool (func_import): Output the include directives in three
64406         blocks, sorted separately.
64407         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64408
64409 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
64410
64411         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
64412         to define main with arguments, for C++.  Reported by Eric Blake.
64413         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
64414         Prefer 'int main ()' to 'int main (void)', for C++.
64415         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
64416         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
64417         for 'main', for C99 and C++.
64418
64419 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
64420
64421         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
64422         Don't assume that exit status -1 is valid.
64423         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
64424         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
64425         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
64426         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
64427         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
64428         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
64429         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
64430         functions can be used without declaring them, or that you can
64431         exit with status -1.
64432         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
64433
64434 2006-04-24  Karl Berry  <karl@gnu.org>
64435
64436         * config/srclist.txt (longdouble.m4): sync lost.
64437
64438 2006-04-24  Eric Blake  <ebb9@byu.net>
64439
64440         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
64441
64442 2006-04-24  Bruno Haible  <bruno@clisp.org>
64443
64444         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
64445         poll() implementation in AIX.
64446         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64447
64448 2006-04-24  Bruno Haible  <bruno@clisp.org>
64449
64450         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
64451         assigned exactly once.
64452
64453 2006-04-23  Claudio Fontana  <claudio@gnu.org>
64454             Bruno Haible  <bruno@clisp.org>
64455
64456         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
64457         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
64458         for AM_CPPFLAGS.
64459
64460 2006-04-23  Bruno Haible  <bruno@clisp.org>
64461
64462         * modules/copy-file: Depend on unistd.
64463         * modules/execute: Likewise.
64464         * modules/fatal-signal: Likewise.
64465         * modules/findprog: Likewise.
64466         * modules/mkdtemp : Likewise.
64467         * modules/pipe: Likewise.
64468         * modules/wait-process: Likewise.
64469
64470 2006-04-23  Bruno Haible  <bruno@clisp.org>
64471
64472         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
64473         condition was already detected.
64474         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64475
64476 2006-04-23  Bruno Haible  <bruno@clisp.org>
64477
64478         * lib/copy-file.c: Include <unistd.h> unconditionally.
64479         * lib/execute.c: Likewise.
64480         * lib/fatal-signal.c: Likewise.
64481         * lib/findprog.c: Likewise.
64482         * lib/mkdtemp.c: Likewise.
64483         * lib/pipe.h: Likewise.
64484         * lib/pipe.c: Likewise.
64485         * lib/wait-process.h: Likewise.
64486
64487 2006-04-23  Bruno Haible  <bruno@clisp.org>
64488
64489         * gnulib-tool (func_usage): Fix --import description. Document
64490         --update.
64491         (func_import): Create temporary file in a temporary directory, if
64492         --dry-run is specified. Silence errors from 'grep' when there are no
64493         m4 files in $m4dir.
64494         (func_create_testdir): Silence errors from 'grep' when there are no
64495         m4 files in $m4dir.
64496         Reported by Karl Berry <karl@freefriends.org>.
64497
64498 2006-04-20  Bruno Haible  <bruno@clisp.org>
64499
64500         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
64501         one argument, so that the code will be portable to Autoconf 2.60.
64502         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
64503         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
64504         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
64505
64506 2006-04-19  Derek Price  <derek@ximbiot.com>
64507             Eric Blake  <ebb9@byu.net>
64508
64509         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
64510         rather than "/full/path.h".  Update comment to match.  Shorten &
64511         generalize m4_translit call via AS_TR_CPP.
64512
64513 2006-04-19  Derek Price  <derek@ximbiot.com>
64514             Eric Blake  <ebb9@byu.net>
64515
64516         * lib/inttypes.h: Correct grammar in comment.
64517
64518 2006-04-18  Derek Price  <derek@ximbiot.com>
64519             Paul Eggert  <eggert@cs.ucla.edu>
64520
64521         * modules/inttypes: New file.
64522         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
64523
64524 2006-04-18  Derek Price  <derek@ximbiot.com>
64525             Paul Eggert  <eggert@cs.ucla.edu>
64526
64527         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
64528         New files.
64529
64530 2006-04-18  Derek Price  <derek@ximbiot.com>
64531             Paul Eggert  <eggert@cs.ucla.edu>
64532
64533         * lib/inttypes.h: New file.
64534         * lib/strtoimax.c: Assume <inttypes.h>.
64535
64536 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
64537
64538         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
64539         isn't mounted.  Problem reported by Kir Kolyshkin.
64540
64541 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
64542
64543         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
64544         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
64545         Derek R. Price.
64546         * lib/regex.h (RE_DUP_MAX): Update comment to match current
64547         implementation.
64548
64549 2006-04-12  Eric Blake  <ebb9@byu.net>
64550
64551         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
64552         is now done automatically by the corresponding Autoconf macro.
64553
64554 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
64555
64556         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
64557         time_r.h.
64558
64559 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
64560
64561         Merge regex changes from libc, removing some of our
64562         POSIX-conformance changes that were rejected and redoing them in a
64563         less-intrusive way.
64564
64565         * lib/regcomp.c (re_compile_internal, init_dfa):
64566         Length arg is now size_t, not Idx.  All uses changed.
64567         (peek_token): Forward decl now says internal_function.
64568         (__re_error_msgid, __re_error_msgid_idx):
64569         Now static rather than extern with attribute_hidden.
64570         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
64571         For some reason libc prefers K&R style defns for external functions.
64572         (regerror) [!defined _LIBC]: Likewise.
64573         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
64574         (seek_collating_symbol_entry, lookup_collation_sequence_value):
64575         (build_range_exp, build_collating_symbol):
64576         Use K&R-style defn.
64577         (re_compile_fastmap): Use '\0' to memset, not 0.
64578         (utf8_sb_map): Make the calculations more obvious.
64579         (init_dfa, parse_bracket_exp, build_charclass_op):
64580         Call calloc and cast result, as glibc does.
64581         (init_word_char, fetch_token, peek_token, peek_token_bracket):
64582         (build_range_exp, build_collating_symbol):
64583         Now internal functions.
64584
64585         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
64586
64587         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
64588         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
64589         Don't depend on VMS; depend on __VMS instead, for POSIX
64590         namespace cleanness.
64591         (regoff_t): Define to ssize_t, not long int.
64592
64593         Remove the REG_ macros named below.  Instead, make the old names
64594         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
64595         __USE_GNU_REGEX.
64596         (REG_BACKSLASH_ESCAPE_IN_LISTS):
64597         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
64598         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
64599         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
64600         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
64601         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
64602         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
64603         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
64604         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
64605         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
64606         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
64607         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
64608         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
64609         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
64610         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
64611         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
64612         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
64613         (REG_NREGS):
64614         Remove.  All uses replaced by the old RE_* names.
64615         (RE_BACKSLASH_ESCAPE_IN_LISTS):
64616         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
64617         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
64618         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
64619         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
64620         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
64621         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
64622         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
64623         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
64624         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
64625         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
64626         Don't bother having these macros be independent of each others'
64627         values, since they no longer exist in the POSIX name space.
64628
64629         Rename the following member names back to their old names,
64630         unless !__USE_GNU_REGEX.  All uses changed back.
64631         (buffer): Renamed from re_buffer.
64632         (allocated): Renamed from re_allocated.
64633         (used): Renamed from re_used.
64634         (syntax): Renamed from re_syntax.
64635         (fastmap): Renamed from re_fastmap.
64636         (translate): Renamed from re_translate.
64637         (can_be_null): Renamed from re_can_be_null.
64638         (regs_allocated): Renamed from re_regs_allocated.
64639         (fastmap_accurate): Renamed from re_fastmap_accurate.
64640         (no_sub): Renamed from re_no_sub.
64641         (not_bol): Renamed from re_not_bol.
64642         (not_eol): Renamed from re_not_eol.
64643         (newline_anchor): Renamed from re_newline_anchor.
64644         (num_regs): Renamed from rm_num_regs.
64645         (start): Renamed from rm_start.
64646         (end): Renamed from rm_end.
64647
64648         (free_state): Move up a bit.
64649
64650         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
64651         #define to be empty.
64652         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
64653         when that is what is intended.
64654         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
64655         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
64656         (MAX): New macro.
64657         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
64658         All uses changed back to re_malloc, etc.  It's now the caller's
64659         responsibility to check for overflow; all callers changed.
64660         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
64661         (re_x2nrealloc): Remove.
64662         (free_state): Remove decl.
64663
64664         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
64665         (re_set_registers, re_exec):
64666         Use K&R-style defn.
64667
64668         2006-01-31  Roland McGrath  <roland@redhat.com>
64669
64670         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
64671         Reported by Mike Frysinger <vapier@gentoo.org>.
64672
64673         2006-01-15  Andreas Jaeger  <aj@suse.de>
64674
64675         [BZ #1950]
64676         * lib/regex_internal.c (re_string_reconstruct): Adjust for
64677         build_wcs_upper_buffer change.
64678         (build_wcs_upper_buffer): Change return type.
64679
64680         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
64681
64682         * lib/regex_internal.h: Include <stdint.h> if available.
64683
64684         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
64685
64686         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
64687
64688         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
64689
64690         * lib/regcomp.c: Adjust for changed secondary hash function.
64691
64692         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
64693
64694         * lib/regex.h: Pretty printing.
64695         Clean up namespace a bit.
64696
64697         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
64698
64699         * lib/regexec.c (update_cur_sifted_state, check_arrival,
64700         check_arrival_add_next_nodes): Avoid using uninitialized variable.
64701
64702         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
64703                     Ulrich Drepper  <drepper@redhat.com>
64704
64705         [BZ #1302]
64706         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
64707         changed.
64708         (bitset_word_t): Renamed from bitset_word.  All uses changed.
64709
64710         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
64711
64712         [BZ #281]
64713         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
64714         * lib/regcomp.c: Remove unnecessary uses of
64715         unsigned RE_TRANSLATE_TYPE.
64716         * lib/regex_internal.h: Likewise.
64717         * lib/regex_internal.c: Likewise.
64718         * lib/regexec.c: Likewise.
64719         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
64720
64721         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
64722
64723         * lib/regexec.c (find_recover_state): Remove unnecessary
64724         initialization.
64725         (transit_state_bkref): Make DFA a const pointer.
64726         (get_subexp): Likewise.
64727         (check_arrival): Likewise.
64728         (update_cur_sifted_state): Likewise.
64729         (re_search_internal): Likewise.
64730         (prune_impossible_nodes): Likewise.
64731         (acquire_init_state_context): Likewise.
64732         (proceed_next_node): Likewise.
64733         (set_regs): Likewise.
64734         (free_fail_stack_return): Likewise.
64735         (check_arrival_expand_ecl): Mark DFA parameter as const.
64736         (check_arrival_expand_ecl_sub): Likewise.
64737         (check_subexp_limits): Likewise.
64738         (sub_epsilon_src_nodes):  Likewise.
64739         (add_epsilon_src_nodes):  Likewise.
64740         (merge_state_array): Likewise.
64741         (update_regs): Likewise.
64742         (build_trtable): Likewise.
64743         (sift_states_backward): Mark MCTX parameter as const.
64744         (build_sifted_states): Likewise.
64745         (update_cur_sifted_state): Likewise.
64746         (sift_states_mkref): Likewise.
64747         (check_arrival_expand_ecl): Mark eclosure as const.
64748         (check_dst_limits_calc_pos_1): Likewise.
64749         * lib/regex_internal.h (re_match_context_t): Make dfa a const
64750         pointer.
64751
64752         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
64753
64754         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
64755         (transit_state_sb): Likewise.
64756         (transit_state_mb): Likewise.
64757         (sift_states_iter_mb): Likewise.
64758         (check_arrival_add_next_nodes): Likewise.
64759         (check_node_accept_bytes): Change first parameter to pointer-to-const.
64760         [_LIBC] (re_search_2_stub): Use mempcpy.
64761
64762         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
64763         mbrtowc for very simple UTF-8 case.
64764
64765         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
64766         a pointer-to-const.
64767         (re_acquire_state_context): Likewise.
64768         * lib/regex_internal.h: Adjust prototypes.
64769
64770         * lib/regex.c: Prevent using C++ compilers.
64771
64772         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
64773         (re_acquire_state_context): Likewise.
64774
64775 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
64776
64777         * modules/regex (Depends-on): Add ssize_t.
64778
64779 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
64780
64781         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
64782         translation table.
64783
64784 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
64785
64786         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
64787
64788 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
64789             Bruno Haible  <bruno@clisp.org>
64790
64791         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
64792         <sys/types.h> and <inttypes.h>.
64793
64794 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64795
64796         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
64797         `__error_t_defined', so argp.h will not typedef the former.
64798
64799 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
64800
64801         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
64802         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
64803         glibc names.  Even if glibc is changed to conform to POSIX, the
64804         traditional names will be available anyway, since regex depends on
64805         the extensions module.  Also, fix a longstanding typo in the
64806         implementation of Spencer ERE test #75 from grep 2.3.  Problems
64807         reported by Emanuele Giaquinta.  Also, change sense of cached
64808         variable, so that the message makes sense.
64809
64810 2006-03-24  Simon Josefsson  <jas@extundo.com>
64811
64812         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
64813         including some doc fixes.
64814         (base64_encode_alloc): Fix +1 bug on allocation failures.
64815
64816 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64817
64818         * lib/base64.c (base64_encode): Do not read past end of array with
64819         unsanitized input on systems with CHAR_BIT > 8.
64820
64821 2006-03-24  Eric Blake  <ebb9@byu.net>
64822
64823         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
64824
64825 2006-03-22  Karl Berry  <karl@gnu.org>
64826
64827         * config/srclist.txt (*setenv.[ch]): get from coreutils.
64828         * config/srclistvars.sh (COREUTILS): new var.
64829
64830 2006-03-17  Jim Meyering  <jim@meyering.net>
64831
64832         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
64833         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
64834
64835 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
64836
64837         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
64838         no longer needs it.  Instead, check that regoff_t is as least
64839         as wide as ptrdiff_t.
64840
64841         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
64842         so that our regex.h stays compatible with the installed regex.
64843         This is helpful for installers who configure --without-included-regex.
64844         Problem reported by Emanuele Giaquinta.
64845
64846 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
64847
64848         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
64849         Typedef to long int, not to off_, as POSIX will likely change
64850         in that direction.
64851
64852 2006-03-15  Eric Blake  <ebb9@byu.net>
64853
64854         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
64855
64856 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
64857
64858         * lib/argp-help.c (validate_uparams): Fix typo
64859         * lib/argp-parse.c (argp_default_options): Consistently begin help
64860         messages with a lowercase letter.
64861
64862 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
64863
64864         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
64865         overrun buffers and shouldn't be used (much as gets shouldn't be
64866         used).
64867         * lib/time_r.c (asctime_r, ctime_r): Likewise.
64868
64869 2006-03-08  Simon Josefsson  <jas@extundo.com>
64870
64871         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
64872         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64873
64874 2006-03-08  Simon Josefsson  <jas@extundo.com>
64875
64876         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
64877         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64878
64879 2006-03-08  Simon Josefsson  <jas@extundo.com>
64880
64881         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
64882         signal that configure disabled the device.
64883
64884 2006-03-08  Simon Josefsson  <jas@extundo.com>
64885
64886         * build-aux/maint.mk: Fix refresh-po, to handle no translated
64887         languages.
64888
64889 2006-03-07  Simon Josefsson  <jas@extundo.com>
64890
64891         * modules/getopt (Depends-on): Add unistd.
64892
64893         * modules/unistd: New file.
64894
64895 2006-03-07  Simon Josefsson  <jas@extundo.com>
64896
64897         * modules/gc-random: New file.
64898
64899 2006-03-07  Simon Josefsson  <jas@extundo.com>
64900
64901         * m4/unistd_h.m4: New file.
64902
64903 2006-03-07  Simon Josefsson  <jas@extundo.com>
64904
64905         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
64906         test to be side-effect free by storing the result in the cache
64907         variable gl_cv_lib_readline, and moving the assignment of
64908         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
64909         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64910
64911 2006-03-07  Simon Josefsson  <jas@extundo.com>
64912
64913         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
64914         error on missing devices (the functions will return an error).
64915
64916         * m4/gc.m4: Move random stuff to gc-random.m4
64917
64918 2006-03-07  Simon Josefsson  <jas@extundo.com>
64919
64920         * lib/unistd_.h: New file.
64921
64922 2006-03-07  Simon Josefsson  <jas@extundo.com>
64923
64924         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
64925
64926 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
64927
64928         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
64929         Problem reported by Juan Manuel Guerrero.
64930
64931 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
64932
64933         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
64934         the unistd module.
64935         * lib/getlogin_r.c: Likewise.
64936         * lib/getlogin_r.h: Likewise.
64937         * lib/glob.c: Likewise.
64938         * lib/pagealign_alloc.c: Likewise.
64939         * lib/unistd_.h: Remove; no longer needed.
64940
64941 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
64942
64943         * MODULES.html.sh (Support for systems lacking POSIX:2001):
64944         Add unistd.
64945         * modules/c-stack (Depends-on): Add unistd.
64946         * modules/getlogin_r: Likewise.
64947         * modules/glob: Likewise.
64948         * modules/pagealign_alloc: Likewise.
64949         * modules/unistd (Files): Remove lib/unistd_.h.
64950         (EXTRA_DIST): Remove.
64951         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
64952         need unistd_.h.
64953         (MOSTLYCLEANFILES): Remove unistd.h-t.
64954
64955 2006-03-03  Simon Josefsson  <jas@extundo.com>
64956
64957         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
64958
64959 2006-03-03  Simon Josefsson  <jas@extundo.com>
64960
64961         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
64962         libidn and bison.
64963
64964 2006-03-03  Simon Josefsson  <jas@extundo.com>
64965
64966         * build-aux/maint.mk: Add indent target.
64967
64968 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
64969
64970         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
64971         our replacement poll.h in any case, to avoid a differing
64972         declaration from a system header.  Seen on AIX.
64973
64974 2006-03-01  Simon Josefsson  <jas@extundo.com>
64975
64976         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
64977         <kasal@ucw.cz>.
64978
64979 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
64980
64981         * modules/gettime (Depends-on): Add extensions module.
64982         * modules/nanosleep (Depends-on): Likewise.
64983         * modules/settime (Depends-on): Likewise.
64984
64985 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
64986
64987         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
64988         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
64989         pedantically.
64990         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
64991         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
64992
64993         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
64994         not "==".  Reported by Ralf Wildenhues.
64995
64996 2006-03-01  Karl Berry  <karl@gnu.org>
64997
64998         * doc/Copyright/request-*: new files, synced from gnuorg.
64999
65000 2006-03-01  Karl Berry  <karl@gnu.org>
65001
65002         * config/srclist.txt (Copyright/*): new entries.
65003
65004 2006-02-28  Simon Josefsson  <jas@extundo.com>
65005
65006         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
65007
65008 2006-02-27  Simon Josefsson  <jas@extundo.com>
65009
65010         * lib/base64.h: Indent #define's.  From Jim Meyering
65011         <jim@meyering.net>.
65012
65013 2006-02-27  Jim Meyering  <jim@meyering.net>
65014
65015         Revert the change of 2006-02-24, so these files can continue
65016         to be sync'd from gettext.
65017         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
65018         of `config.h'.
65019
65020 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
65021
65022         * modules/intprops: New file.
65023         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
65024         Add intprops.
65025         * modules/getloadavg (Files): Remove lib/intprops.h.
65026         (Depends-on): Add intprops.
65027         * modules/human: Likewise.
65028         * modules/inttostr: Likewise.
65029         * modules/openat: Likewise.
65030         * modules/sig2str: Likewise.
65031         * modules/userspec: Likewise.
65032         * modules/utimecmp: Likewise.
65033         * modules/xnanosleep: Likewise.
65034         * modules/xstrtol: Likewise.
65035
65036 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
65037
65038         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
65039         * modules/lock-tests (TESTS): Use $(EXEEXT).
65040         * modules/tls-tests: Likewise.
65041         * modules/argp-tests: Likewise.
65042         (check_PROGRAMS): New var, replacing...
65043         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
65044
65045 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65046
65047         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
65048         `config.h'.
65049
65050 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
65051
65052         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
65053
65054 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65055
65056         Sync from coreutils.
65057         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
65058         gl_CHDIR_SAFER.
65059
65060 2006-02-22  Jim Meyering  <jim@meyering.net>
65061
65062         Sync from coreutils.
65063         * m4/chdir-safer.m4: New file.
65064
65065 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
65066
65067         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
65068         AT_FDCWD exceeds INT_MAX.
65069         * lib/openat.h (AT_FDCWD): Likewise.
65070
65071 2006-02-17  Eric Blake  <address@hidden>
65072
65073         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
65074
65075 2006-02-16  Simon Josefsson  <jas@extundo.com>
65076
65077         * modules/getaddrinfo (Depends-on): Add sys_socket.
65078
65079 2006-02-15  Simon Josefsson  <jas@extundo.com>
65080
65081         * build-aux/maint.mk: Add dsyntax-check rule.
65082
65083 2006-02-15  Eric Blake  <ebb9@byu.net>
65084
65085         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
65086         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
65087         'present but cannot compile' warnings on cygwin.
65088         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
65089         use ws2tcpip.h if sys/socket.h works.
65090         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
65091         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
65092
65093 2006-02-14  Simon Josefsson  <jas@extundo.com>
65094
65095         * modules/maintainer-makefile (Files): Rename.
65096
65097         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
65098         and (the local) Makefile.cfg to maint-cfg.mk.
65099
65100         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
65101         to the latter.
65102
65103         * modules/maintainer-makefile: New module.
65104
65105         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
65106         severaly stripped to make it possible to build it up from scratch
65107         with reliable tests.
65108
65109         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
65110         fixes to permit overriding the default actions when configure and
65111         makefile are not available.
65112
65113 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
65114
65115         Sync from coreutils.
65116         * modules/lstat (Depends-on): Don't depend on xalloc.
65117         (License): Change from GPL to LGPL, since this is now simply a
65118         replacement for a libc function.
65119
65120 2006-02-14  Jim Meyering  <jim@meyering.net>
65121
65122         Sync from coreutils.
65123
65124         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
65125         failure on deficient systems, and simplify gnulib lgpl dependencies.
65126         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
65127         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
65128
65129         * lib/xalloc-die.c: Remove unused definition of N_.
65130
65131 2006-02-14  Jim Meyering  <jim@meyering.net>
65132
65133         Sync from coreutils.
65134         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
65135         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
65136         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
65137         double-quote uses of that variable, to accommodate the rare case in
65138         which getmntent is available in none of the libraries checked.  This
65139         happens at least on FreeBSD 5.0.
65140
65141 2006-02-13  Simon Josefsson  <jas@extundo.com>
65142
65143         * gnulib-tool (Usage): Fix --import, from
65144         karl@freefriends.org (Karl Berry).
65145
65146 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
65147
65148         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
65149
65150 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
65151
65152         * lib/argp-namefrob.h: Restore changes accidentally lost during the
65153         "autoupdate" on 2005-12-12.
65154
65155 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
65156
65157         * modules/closeout (Depends-on): Remove atexit.
65158
65159 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
65160
65161         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
65162         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
65163
65164 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
65165
65166         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
65167         __EXTENSIONS__ if this causes compilation to fail.  Problem
65168         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
65169         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
65170
65171 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
65172
65173         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
65174         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
65175         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
65176         All uses changed.
65177
65178 2006-01-26  Simon Josefsson  <jas@extundo.com>
65179
65180         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
65181         prototype is visible on mingw32.
65182
65183         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
65184         for mingw32.
65185
65186         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
65187         mingw32).
65188
65189 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
65190
65191         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
65192         attempt to open for write; this always fails, at least on POSIX
65193         hosts.  This reinstates the 2006-01-09 change, which was
65194         inadvertently removed.
65195
65196 2006-01-26  Bruno Haible  <bruno@clisp.org>
65197
65198         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
65199         Reported by Paul Eggert.
65200
65201 2006-01-26  Bruno Haible  <bruno@clisp.org>
65202             Paul Eggert  <eggert@cs.ucla.edu>
65203
65204         * lib/stdbool_.h (_Bool)
65205         [(! (defined __cplusplus || defined __BEOS__)
65206           && !defined __GNUC__
65207           && !(defined __HP_cc || defined __xlc__
65208                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
65209                || defined __sgi))]:
65210         #define to signed char in these cases too; this simplifies
65211         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
65212         etc., separately) and makes it more conservative.
65213
65214 2006-01-25  Simon Josefsson  <jas@extundo.com>
65215
65216         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
65217         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
65218         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
65219
65220 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
65221
65222         * lib/argp-namefrob.h: Bugfix. Remove stray #
65223
65224 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
65225
65226         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
65227         so that we test the test.
65228         Check for yet another HP-UX cc bug involving *bool |= bool.
65229
65230 2006-01-25  Karl Berry  <karl@gnu.org>
65231
65232         * config/srclist.txt (vasnprintf.c): sync lost.
65233
65234 2006-01-25  Jim Meyering  <jim@meyering.net>
65235
65236         Sync from the stable (b5) branch of coreutils:
65237
65238         * lib/fts.c (fts_children): Don't let close() clobber errno from
65239         failed fchdir().
65240
65241         * lib/fts.c (fts_stat): When following a symlink-to-directory,
65242         don't necessarily interpret stat-fails+lstat-succeeds as indicating
65243         a dangling symlink.  That can also happen at least for ELOOP.
65244         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
65245         FYI, this bug predates the inclusion of fts.c in coreutils.
65246
65247         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
65248         in their own block, so pre-c99 compilers don't object.
65249
65250         Avoid the double-free (first in fts_read, second in fts_close) that
65251         would occur when an `active' directory is made inaccessible (e.g.,
65252         via chmod a-x) during a traversal.
65253         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
65254         before returning.  Reproduce this failure by
65255         mkdir -p a/b; cd a; chmod a-x . b
65256         Reported by Stavros Passas.
65257
65258 2006-01-25  Jim Meyering  <jim@meyering.net>
65259
65260         * lib/fileblocks.c: Remove more useless parentheses.
65261         * lib/readutmp.h: Likewise.
65262
65263 2006-01-25  Bruno Haible  <bruno@clisp.org>
65264
65265         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
65266         warnings.
65267         Reported by Paul Eggert.
65268
65269 2006-01-25  Bruno Haible  <bruno@clisp.org>
65270
65271         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
65272         rid of a trap command. For Solaris sh.
65273         Reported by Mark D. Baushke <mdb@gnu.org>.
65274
65275 2006-01-24  Simon Josefsson  <jas@extundo.com>
65276
65277         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
65278         Bruno.
65279
65280 2006-01-24  Karl Berry  <karl@gnu.org>
65281
65282         * config/srclist.txt (argp-namefrob.h): sync lost.
65283
65284 2006-01-24  Jim Meyering  <jim@meyering.net>
65285
65286         * modules/openat (Files): Add lib/intprops.h.
65287         From Mark D. Baushke.
65288
65289 2006-01-24  Jim Meyering  <jim@meyering.net>
65290
65291         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
65292         Reported by Mark D. Baushke.
65293
65294 2006-01-24  Jim Meyering  <jim@meyering.net>
65295
65296         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
65297
65298 2006-01-24  Bruno Haible  <bruno@clisp.org>
65299
65300         * modules/strnlen (Maintainer): Change from glibc to all.
65301
65302 2006-01-24  Bruno Haible  <bruno@clisp.org>
65303
65304         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
65305         Patch by Paul Eggert.
65306
65307 2006-01-24  Bruno Haible  <bruno@clisp.org>
65308
65309         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
65310         already has it.
65311         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
65312         2005-11-26.
65313
65314         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
65315         'signed char' to avoid problems with the built-in _Bool type.
65316         Reported by Paul Eggert on 2005-11-26.
65317
65318 2006-01-24  Bruno Haible  <bruno@clisp.org>
65319
65320         * gnulib-tool (func_import): Avoid constructing complicated sed
65321         expressions inside backquote.
65322         Report and solution by Mark D. Baushke <mdb@gnu.org>.
65323
65324 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
65325
65326         These changes imported from libc.
65327         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
65328         test and two separate function calls.
65329         * lib/strndup.c (__strndup): Add libc_hidden_def.
65330
65331 2006-01-23  Simon Josefsson  <jas@extundo.com>
65332
65333         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
65334         Remove the test_*_SOURCES variable: automake infers it by default.
65335         * modules/tls-tests: Likewise.
65336
65337 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65338
65339         Work around porting bugs reported by Dieter in
65340         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
65341         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
65342         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
65343         Include "getopt.h" first, to check interface.
65344         (getenv): Declare only if defined HAVE_DECL_GETENV &&
65345         !HAVE_DECL_GETENV.
65346         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
65347         (__strndup): Revert to K&R-style function dfns, the glibc style.
65348         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
65349         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
65350         Include strnlen.h first, to get prototype properly.
65351         (strnlen): Renamed from __strnlen.
65352         Remove weak alias.
65353
65354 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65355
65356         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
65357
65358 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65359
65360         * config/srclist.txt: Adjust to reflect glibc reorganization.
65361         This affects only comments.
65362
65363 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
65364
65365          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
65366          Reported by Bruce Korb <bkorb@gnu.org>.
65367
65368 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
65369
65370         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
65371         to pacify gcc -Wswitch-default.
65372
65373 2006-01-22  Bruno Haible  <bruno@clisp.org>
65374
65375         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
65376         temporary buffer for sprintf, take into account the precision also
65377         for 'd', 'i', 'u', 'o', 'x', 'X'.
65378
65379 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
65380
65381         * modules/argp-tests: New module
65382         * tests/test-argp.c: New file
65383         * tests/test-argp-2.sh: New file
65384
65385 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
65386
65387         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
65388         (__argp_base_name): Removed
65389         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
65390         typo.
65391         (__argp_base_name): Provide macro definition or extern declaration
65392         depending on the configuration
65393
65394 2006-01-20  Simon Josefsson  <jas@extundo.com>
65395
65396         * modules/inet_ntop (Depends-on): Depend on sys_socket.
65397
65398 2006-01-20  Simon Josefsson  <jas@extundo.com>
65399
65400         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
65401
65402 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
65403
65404         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
65405         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
65406         Suggested by Bruno Haible.
65407
65408 2006-01-20  Karl Berry  <karl@gnu.org>
65409
65410         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
65411         until changes propagate, I guess.
65412
65413 2006-01-19  Simon Josefsson  <jas@extundo.com>
65414
65415         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
65416
65417 2006-01-19  Simon Josefsson  <jas@extundo.com>
65418
65419         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
65420
65421 2006-01-19  Simon Josefsson  <jas@extundo.com>
65422
65423         * gnulib-tool: Set check_PROGRAMS.
65424
65425         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
65426         modules/des-tests, modules/gc-arcfour-tests,
65427         modules/gc-arctwo-tests, modules/gc-des-tests,
65428         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
65429         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
65430         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
65431         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
65432         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
65433         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
65434         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
65435         test_*_SOURCES.
65436
65437 2006-01-18  Simon Josefsson  <jas@extundo.com>
65438
65439         * modules/socklen (Depends-on): Depend on sys_socket.
65440
65441 2006-01-18  Simon Josefsson  <jas@extundo.com>
65442
65443         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
65444         modules/des-tests, modules/gc-arcfour-tests,
65445         modules/gc-arctwo-tests, modules/gc-des-tests,
65446         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
65447         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
65448         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
65449         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
65450         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
65451         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
65452         $(EXEEXT) to automake TESTS variable, for mingw32.
65453
65454 2006-01-17  Simon Josefsson  <jas@extundo.com>
65455
65456         * modules/socklen (Include): Need sys/socket.h.
65457
65458 2006-01-17  Bruno Haible  <bruno@clisp.org>
65459
65460         * modules/ssize_t (Include): Add <sys/types.h>.
65461
65462 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
65463
65464         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
65465         it's not portable and it doesn't work with cross-compiles.
65466         Problem reported by Bruno Haible.  Fix missing-$ typo in
65467         'test "gl_cv_ignore_unused_libraries" ...' that prevented
65468         -zignore from being used with Sun's C compiler.
65469
65470 2006-01-12  Simon Josefsson  <jas@extundo.com>
65471
65472         * lib/base64.c: Fix warning, reported by Bruno Haible
65473         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
65474
65475 2006-01-12  Bruno Haible  <bruno@clisp.org>
65476
65477         * modules/ldd: New file.
65478         * build-aux/ldd.sh.in: New file.
65479         * MODULES.html.sh (Support for building libraries and executables): Add
65480         ldd.
65481
65482 2006-01-12  Bruno Haible  <bruno@clisp.org>
65483
65484         * m4/ldd.m4: New file.
65485
65486 2006-01-12  Bruno Haible  <bruno@clisp.org>
65487
65488         * gnulib-tool (func_import, func_create_testdir): Don't go into an
65489         endless loop while replacing $auxdir with build-aux.
65490
65491 2006-01-11  Simon Josefsson  <jas@extundo.com>
65492
65493         * lib/stdint_.h (SIZE_MAX): Add missing (.
65494
65495 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
65496
65497         Sync from coreutils.
65498         * lib/md5.c: Fix commentary typos.
65499         (alignof, UNALIGNED_P): No need for a GCC-specific version.
65500         * lib/md5.h (__attribute__): Remove; unused.
65501         * lib/sha1.c: Fix commentary to match md5 better.
65502         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
65503         so that we don't need to worry about alignment.  All uses changed.
65504         This merges the 2005-10-28 md5 change into sha1.
65505
65506 2006-01-11  Jim Meyering  <jim@meyering.net>
65507
65508         Sync from coreutils.
65509         * lib/md5.c (OP): Fix spacing.
65510
65511 2006-01-11  Bruno Haible  <bruno@clisp.org>
65512
65513         Ensure automatic ordering between gl_LOCK and gl_ARGP.
65514         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
65515         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
65516
65517 2006-01-11  Bruno Haible  <bruno@clisp.org>
65518
65519         Ensure automatic ordering between gl_LOCK and gl_ARGP.
65520         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
65521         the "early" section as well.
65522
65523 2006-01-11  Bruno Haible  <bruno@clisp.org>
65524
65525         Avoid "ar: no archive members specified" error on MacOS X.
65526         * gnulib-tool (func_modules_add_dummy): New function.
65527         (func_import, func_create_testdir): Invoke it.
65528
65529 2006-01-11  Bruno Haible  <bruno@clisp.org>
65530
65531         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
65532         with $auxdir in AC_CONFIG_FILES statements.
65533
65534 2006-01-11  Bruno Haible  <bruno@clisp.org>
65535
65536         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65537         Initialize also noinst_HEADERS to empty.
65538
65539 2006-01-11  Bruno Haible  <bruno@clisp.org>
65540
65541         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
65542         variables.
65543         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
65544         autoreconf.
65545
65546 2006-01-11  Bruno Haible  <bruno@clisp.org>
65547
65548         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
65549         overridable by the user.
65550         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65551
65552 2006-01-10  Simon Josefsson  <jas@extundo.com>
65553
65554         * modules/sys_socket: New file.
65555
65556 2006-01-10  Simon Josefsson  <jas@extundo.com>
65557
65558         * m4/sys_socket_h.m4: New file.
65559
65560 2006-01-10  Simon Josefsson  <jas@extundo.com>
65561
65562         * lib/socket_.h: New file.
65563
65564 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65565
65566         * modules/readutmp (Maintainer): Add myself.
65567
65568 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65569
65570         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
65571         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
65572         People who are still concerned with buggy memcmp implementations
65573         can invoke gl_FUNC_MEMCMP themselves.
65574
65575 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65576
65577         * lib/regex_internal.h (BITSET_WORD_BITS):
65578         Work around a bug in 64-bit PGC (before version 6.1-2), where the
65579         preprocessor mishandles large unsigned values as if they were signed.
65580         Problem reported by Claudio Fontana in
65581         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
65582
65583 2006-01-10  Jim Meyering  <jim@meyering.net>
65584
65585         Avoid the double-free (first in fts_read, second in fts_close) that
65586         would occur when an `active' directory is made inaccessible (e.g.,
65587         via chmod a-x) during a traversal.
65588         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
65589         before returning.  Reproduce this failure by
65590         mkdir -p a/b; cd a; chmod a-x . b
65591         Reported by Stavros Passas.
65592
65593         Sync from coreutils.
65594         * lib/sha1.c: Tweak grammar in a comment.
65595
65596 2006-01-10  Jim Meyering  <jim@meyering.net>
65597
65598         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
65599         Patch by Joerg Sonnenberger.
65600
65601 2006-01-10  Bruno Haible  <bruno@clisp.org>
65602
65603         * modules/readutmp: Depend on module free.
65604         * modules/strtok_r: Depend on module restrict.
65605
65606 2006-01-10  Bruno Haible  <bruno@clisp.org>
65607
65608         * modules/gettext (configure.ac): Add an invocation of
65609         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
65610
65611 2006-01-10  Bruno Haible  <bruno@clisp.org>
65612
65613         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
65614         Reported by Werner Lemberg <wl@gnu.org>.
65615
65616 2006-01-10  Bruno Haible  <bruno@clisp.org>
65617
65618         * lib/localcharset.c: Update from GNU gettext.
65619
65620 2006-01-10  Bruno Haible  <bruno@clisp.org>
65621
65622         * lib/argp.h (__const): Remove macro. Use const instead.
65623         * lib/argp-fmtstream.h (__const): Likewise.
65624         * lib/glob_.h (__const): Remove macro.
65625         * lib/glob-libc.h: Use const instead of __const.
65626
65627 2006-01-10  Bruno Haible  <bruno@clisp.org>
65628
65629         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
65630         variable.
65631         Needed to avoid an automake error regarding the 'gettext' module.
65632
65633 2006-01-09  Simon Josefsson  <jas@extundo.com>
65634
65635         * modules/inet_ntop (Depends-on): Add restrict.
65636
65637 2006-01-09  Simon Josefsson  <jas@extundo.com>
65638
65639         * modules/gc-rijndael-tests (License): Put under LGPL.
65640
65641         * modules/gc-des-tests (License): Likewise.
65642
65643         * modules/gc-arcfour-tests (License): Likewise.
65644
65645         * modules/gc-arctwo-tests (License): Likewise.
65646
65647         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
65648
65649         * modules/gc-hmac-sha1-tests (Files): Likewise.
65650
65651         * modules/gc-hmac-md5-tests (License): Likewise.
65652
65653         * modules/gc-sha1-tests (License): Likewise.
65654
65655         * modules/gc-md5-tests (License): Likewise.
65656
65657         * modules/gc-md4-tests (License): Likewise.
65658
65659         * modules/gc-md2-tests (License): Likewise.
65660
65661         * modules/gc-tests (License): Likewise.
65662
65663         * modules/des-tests (License): Likewise.
65664
65665         * modules/md4-tests (License): Likewise.
65666
65667         * modules/md2-tests (License): Likewise.
65668
65669 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
65670
65671         Sync from coreutils:
65672
65673         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
65674         * modules/lib-ignore: New file.
65675         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
65676         chdir-safer.m4, lchmod.m4.
65677         * modules/openat: Add mkdirat.c, openat-priv.h.
65678
65679 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
65680
65681         Sync from coreutils.
65682         * m4/lib-ignore.m4: New file.
65683         * m4/lchmod.m4: New file.
65684
65685 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
65686
65687         Sync from coreutils.
65688         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
65689         for write access: POSIX says that must fail.
65690         * lib/fts.c (diropen): Likewise.
65691         * lib/save-cwd.c (save_cwd): Likewise.
65692         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
65693         well, for minor improvements on hosts that lack O_DIRECTORY.
65694         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
65695         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
65696         Fall back on chown if open failed with EACCES.
65697
65698         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
65699         Report an error at compile-time if only a 1-second nominal clock
65700         resolution is found.
65701
65702         * lib/lchmod.h: New file.
65703         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
65704         (make_dir_parents): Use lchown rather than chown, and
65705         lchmod rather than chmod.
65706
65707         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
65708         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
65709         "proc" reported by n0dalus.
65710
65711         * lib/mountlist.c: Include <limits.h>.
65712         (dev_from_mount_options)
65713         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
65714         New function.  It no longer assumes "dev=" has the System V meaning
65715         on Linux (since it doesn't).  It also parses "dev=" more carefully.
65716         (read_file_system_list)
65717         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
65718         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
65719         dev= in that case.
65720
65721         * lib/posixtm.h (PDS_PRE_2000): New macro.
65722         * lib/posixtm.c (year): Arg is now syntax_bits rather than
65723         allow_century.  All usages changed.  Reject dates outside the range
65724         1969-1999 if PDS_PRE_2000 is used.
65725
65726 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
65727
65728         Sync from coreutils.
65729         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
65730         (Time of day items): Mention the possibility of leap seconds.
65731         Problem reported by Dr. David Alan Gilbert.
65732
65733 2006-01-09  Jim Meyering  <jim@meyering.net>
65734
65735         Sync from coreutils.
65736
65737         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
65738
65739         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
65740
65741         * lib/modechange.c (mode_compile): Reject an invalid mode string
65742         that starts with an octal digit.  From Andreas Gruenbacher.
65743
65744         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
65745         and dup to open_safer and dup_safer, respectively.
65746         (openat_permissive): Fix typo in comment.
65747
65748         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
65749         "gettext.h"; either no longer needed or are guaranteed by openat.h.
65750         (_): Remove; no longer needed.
65751         (openat): Renamed from rpl_openat; no need for rpl_openat
65752         since openat.h renames openat for us.
65753         Replace most of the body with a call to openat_permissive,
65754         to avoid duplicate code.
65755         Port to (probably hypothetical) environments were mode_t is
65756         wider than int.
65757         (openat_permissive): Require mode arg, so that we can check
65758         types better.  Put it just after flags.  Change cwd failure
65759         indicator from pointer-to-bool to pointer-to-errno-value.
65760         All callers changed.
65761         Invoke openat_save_fail and/or openat_restore_fail if
65762         cwd_errno is null, so that openat can call us.
65763         (openat_permissive, fdopendir, fstatat, unlinkat):
65764         Simplify errno handling to avoid some duplicate code,
65765         as it's OK to set errno on success.
65766         * lib/openat.h: Revamp code so that function macros depend on
65767         __OPENAT_PREFIX only, not also on AT_FDCWD.
65768         (openat_ro): Remove.  Caller changed to use openat_permissive.
65769         (openat_permissive): Now a macro, if not a function.
65770         (openat_restore_fail, openat_save_fail): Now always functions,
65771         since mkdirat needs them even if __OPENAT_PREFIX is defined.
65772
65773         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
65774         and openat.c.
65775         * lib/mkdirat.c: Include openat-priv.h.
65776         Remove definitions of macros defined therein.
65777         * lib/openat.c: Likewise.
65778
65779         * lib/mkdirat.c (mkdirat): New file and function.
65780         * lib/openat.h (mkdirat): Declare.
65781
65782         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
65783
65784         * lib/openat.h (openat_permissive): Declare.
65785         (openat_ro): Define.
65786
65787         * lib/openat.c (EXPECTED_ERRNO): New macro.
65788         (openat_permissive): New function -- used in remove.c rewrite.
65789         (all functions): Set errno just before returning, only if there
65790         was an actual failure.
65791         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
65792
65793         Emulate openat-family functions using Linux's procfs, if possible.
65794         Idea and some code based on Ulrich Drepper's glibc changes.
65795
65796         * lib/openat.c: (BUILD_PROC_NAME): New macro.
65797         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
65798         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
65799         before falling back on save_cwd and restore_cwd.
65800         (fdopendir, fstatat, unlinkat): Likewise.
65801
65802         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
65803         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
65804
65805         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
65806         as second argument to va_arg.  Otherwise, some versions of gcc
65807         warn that `if this code is reached, the program will abort'.
65808
65809 2006-01-09  Jim Meyering  <jim@meyering.net>
65810
65811         Sync from coreutils.
65812         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
65813         Require openat-priv.h.
65814
65815 2006-01-09  Bruno Haible  <bruno@clisp.org>
65816
65817         * modules/strnlen (Include): Use strnlen.h.
65818
65819 2006-01-09  Bruno Haible  <bruno@clisp.org>
65820
65821         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
65822
65823 2006-01-09  Bruno Haible  <bruno@clisp.org>
65824
65825         * lib/sysexit_.h (EX_OK): New macro.
65826         Suggested by Martin Lambers <marlam@marlam.de>.
65827
65828 2006-01-09  Bruno Haible  <bruno@clisp.org>
65829
65830         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
65831         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
65832
65833 2006-01-09  Bruno Haible  <bruno@clisp.org>
65834
65835         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
65836         numbers.
65837
65838 2006-01-09  Bruno Haible  <bruno@clisp.org>
65839
65840         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
65841         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
65842         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
65843         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
65844
65845 2006-01-09  Bruno Haible  <bruno@clisp.org>
65846
65847         * build-aux/javacomp.sh.in: New file, moved from lib/.
65848         * modules/javacomp-script (Files): Update.
65849         (configure.ac): Add AC_CONFIG_FILES invocation.
65850         (EXTRA_DIST): Remove variable.
65851
65852         * build-aux/javaexec.sh.in: New file, moved from lib/.
65853         * modules/javaexec (Files): Update.
65854         (configure.ac): Add AC_CONFIG_FILES invocation.
65855         (EXTRA_DIST): Remove javaexec.sh.in.
65856
65857         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
65858         * modules/csharpcomp-script (Files): Update.
65859         (configure.ac): Add AC_CONFIG_FILES invocation.
65860         (EXTRA_DIST): Remove variable.
65861
65862         * build-aux/csharpexec.sh.in: New file, moved from lib/.
65863         * modules/csharpexec (Files): Update.
65864         (configure.ac): Add AC_CONFIG_FILES invocation.
65865         (EXTRA_DIST): Remove csharpexec.sh.in.
65866
65867 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
65868
65869         Sync from coreutils.
65870
65871         Add POSIX ACL support
65872         * lib/acl.h (copy_acl, set_acl): Add declarations.
65873         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
65874         systems other than Linux.
65875         (chmod_or_fchmod): New function: use fchmod when possible,
65876         and chmod otherwise.
65877         (file_has_acl): Add a POSIX ACL implementation, with a
65878         Linux-specific subcase.
65879         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
65880         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
65881         acls are unsupported.
65882         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
65883         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
65884         are unsupported.
65885
65886 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
65887
65888         Sync from coreutils.
65889         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
65890
65891 2006-01-07  Bruno Haible  <bruno@clisp.org>
65892
65893         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
65894         gl_EARLY.
65895
65896 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65897
65898         * lib/strftime.c (tzname): Don't declare if it is already #defined.
65899         Problem reported for Mingw by Mark Junker.
65900
65901 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65902
65903         * README: Gnulib normally doesn't generate a tarball.
65904
65905 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
65906
65907         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
65908         long int, not int, for nanosecond counts, so that people who are
65909         used to POSIX struct timespec won't be surprised.  Reported by Jim
65910         Meyering.
65911
65912 2005-12-28  Bruno Haible  <bruno@clisp.org>
65913
65914         * build-aux/config.rpath: Update from GNU gettext.
65915
65916 2005-12-16  Jim Meyering  <jim@meyering.net>
65917
65918         * modules/fprintftime: New module.
65919         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
65920
65921 2005-12-16  Jim Meyering  <jim@meyering.net>
65922
65923         * m4/fprintftime.m4: New file.
65924
65925 2005-12-16  Jim Meyering  <jim@meyering.net>
65926
65927         * lib/fprintftime.c, lib/fprintftime.h: New files.
65928
65929 2005-12-15  Simon Josefsson  <jas@extundo.com>
65930
65931         * modules/socklen (configure.ac): Fix M4 macro name, to align with
65932         new m4/socklen.m4.
65933
65934 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
65935
65936         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
65937         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
65938
65939 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
65940
65941         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
65942         * lib/argp-help.c (fill_in_uparams): Check if the constructed
65943         struct uparams is valid. Fall back to the default values if it is
65944         not.
65945
65946 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65947
65948         * modules/argp (Files): Add argp-pin.c
65949         (Depends-on): dirname
65950         (lib_SOURCES): Add argp-pin.c
65951
65952 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65953
65954         * m4/argp.m4:  Check if program_invocation_name and
65955         program_invocation_short_name are declared and define appropriate
65956         macros if they are not.
65957
65958 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65959
65960         * lib/argp-help.c (__argp_base_name): New function
65961         (__argp_short_program_name): Rewrite using __argp_base_name
65962         * lib/argp-namefrob.h: Define program_invocation_name and
65963         program_invocation_short_name if requested
65964         (__argp_base_name): Add prototype
65965         * lib/argp-parse.c (argp_def): Use gettext wrappers
65966         (argp_default_parser): Use __argp_base_name
65967         * lib/argp-pin.c: New file. Defines program_invocation_name and
65968         program_invocation_short_name on systems that lack them.
65969
65970 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
65971
65972         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
65973         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
65974         porting problem reported by Georg Schwarz in
65975         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
65976
65977 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
65978
65979         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
65980         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
65981         porting problem reported by Georg Schwarz in
65982         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
65983
65984 2005-12-05  Bruno Haible  <bruno@clisp.org>
65985
65986         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
65987         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
65988         Reported by Mark Junker <mjscod@gmx.de>.
65989
65990 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
65991
65992         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
65993         Use implementation from Albert Chin, with some
65994         comments/corrections by Stepan Kasal and myself.
65995
65996 2005-12-02  Bruno Haible  <bruno@clisp.org>
65997
65998         * gnulib-tool (func_import): Accept GPLed build tool modules when
65999         --lgpl is given.
66000         * modules/csharpcomp-script: New file.
66001         * modules/csharpcomp: Depend on it.
66002         * modules/javacomp-script: New file.
66003         * modules/javacomp: Depend on it.
66004         Suggested by Simon Josefsson.
66005
66006 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
66007
66008         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
66009         statement, to work around an HP-UX 10.20 compiler bug reported by
66010         Peter O'Gorman.
66011
66012 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
66013
66014         * modules/savedir (Depends-on): Add openat.
66015
66016 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
66017
66018         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
66019         (uintmax_t) [defined uintmax_t]: Do not declare.
66020         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
66021         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
66022         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
66023         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
66024         sake of portability to weird hosts that C allows (though we don't
66025         know of any practical examples).
66026
66027         * lib/savedir.h (fdsavedir): New decl.
66028         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
66029         contains most of the former guts of savedir.
66030         (savedir): Use savedirstream.
66031         Include "openat.h".
66032
66033 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
66034
66035         * modules/obstack (Files): Add m4/ulonglong.m4.
66036         Problem reported by Davide Angelocola.
66037
66038 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
66039
66040         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
66041         coreutils no longer futzes with rounding modes.
66042
66043 2005-11-14  Jim Meyering  <jim@meyering.net>
66044
66045         * lib/mkstemp-safer.c: Include <config.h>, required for possible
66046         replacement of mkstemp.
66047
66048 2005-11-10  Simon Josefsson  <jas@extundo.com>
66049
66050         * lib/readline.c: Remove EOL.
66051
66052 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
66053
66054         * modules/gethrxtime (Depends-on): Add gettime.
66055
66056 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
66057
66058         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
66059         or gettimeofday; no longer needed.
66060
66061 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
66062
66063         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
66064         time business.
66065         (gethrxtime) [! (HAVE_NANOUPTIME
66066         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
66067         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
66068         our own approximation.
66069
66070 2005-11-08  Eric Blake  <ebb9@byu.net>
66071
66072         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
66073
66074 2005-11-08  Eric Blake  <ebb9@byu.net>
66075
66076         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
66077
66078 2005-11-04  Bruno Haible  <bruno@clisp.org>
66079
66080         * gnulib-tool: Implement --update mode.
66081
66082 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
66083
66084         Fix porting problem reported by Theodoros V. Kalamatianos.
66085         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
66086         Don't assume that futimes failing means we must fail.
66087
66088 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
66089
66090         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
66091         variables to suggest the intended function of the PATH_MAX check.
66092
66093 2005-10-30  Kean Johnston  <jkj@sco.com>
66094
66095         Trivial changes to support SCO systems.
66096         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
66097         as PATH_MAX.
66098         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
66099         where __ptr is null when no I/O is pending.
66100
66101 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
66102
66103         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
66104         leave errno alone.  Problem reported by Dmitry V. Levin.
66105
66106 2005-10-28  Simon Josefsson  <jas@extundo.com>
66107
66108         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
66109         Test more.
66110
66111         * tests/test-gc-md2.c, tests/test-md2.c: New files.
66112
66113         * modules/md2, modules/md2-tests: New files.
66114
66115 2005-10-28  Simon Josefsson  <jas@extundo.com>
66116
66117         * m4/inet_ntop.m4: More tests.
66118
66119         * m4/gc-md2.m4, md2.m4: New file.
66120
66121 2005-10-28  Simon Josefsson  <jas@extundo.com>
66122
66123         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
66124         "restrict" keywords, as per POSIX.  Protect the function
66125         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
66126         Don't use K&R prototypes.  Check the sprintf return values.
66127         Re-define EAFNOSUPPORT if not present.  Indent.
66128
66129         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
66130         suggested by Bruno Haible <bruno@clisp.org>.
66131
66132         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
66133
66134         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
66135
66136         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
66137         libgcrypt).
66138
66139         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
66140
66141         * lib/md2.h, lib/md2.c: New files.
66142
66143 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
66144
66145         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
66146         errno alone.  Problem reported by Frederic Jolliton.
66147
66148 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
66149
66150         * modules/verify (License): Change from GPL to LGPL.  This is a
66151         tiny module and there are apparently near-equivalents that are
66152         under the BSD license.
66153
66154 2005-10-24  Simon Josefsson  <jas@extundo.com>
66155
66156         * modules/sha1: Relicense to LGPL.
66157
66158 2005-10-24  Simon Josefsson  <jas@extundo.com>
66159
66160         * lib/md4.h: Shrink buffer size, now that we changed the type.
66161
66162 2005-10-23  Simon Josefsson  <jas@extundo.com>
66163
66164         * gnulib-tool (func_import): Fix --tests-base.
66165
66166 2005-10-22  Simon Josefsson  <jas@extundo.com>
66167
66168         * modules/arcfour (Depends-on): Need stdint.
66169
66170 2005-10-22  Simon Josefsson  <jas@extundo.com>
66171
66172         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
66173         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
66174
66175 2005-10-22  Simon Josefsson  <jas@extundo.com>
66176
66177         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
66178         suggested by Bruno Haible <bruno@clisp.org>.
66179
66180 2005-10-22  Simon Josefsson  <jas@extundo.com>
66181
66182         * lib/crc.h: Include stddef.h, for size_t.
66183
66184 2005-10-22  Simon Josefsson  <jas@extundo.com>
66185
66186         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
66187         arcfour_context struct (simplify test vector testing in GNU
66188         Shishi).
66189
66190 2005-10-21  Simon Josefsson  <jas@extundo.com>
66191
66192         * modules/des, modules/des-tests: New files.
66193
66194         * modules/gc-des, modules/gc-des-tests: New files.
66195
66196         * tests/test-des.c, tests/test-gc-des.c: New file.
66197
66198 2005-10-21  Simon Josefsson  <jas@extundo.com>
66199
66200         * modules/arctwo, modules/arctwo-tests: New files.
66201
66202         * tests/test-arctwo.c: New file.
66203
66204         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
66205
66206         * tests/test-gc-arctwo.c: New file.
66207
66208 2005-10-21  Simon Josefsson  <jas@extundo.com>
66209
66210         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
66211         Bruno Haible <bruno@clisp.org>.
66212
66213         * m4/gc-des.m4: New file.
66214
66215 2005-10-21  Simon Josefsson  <jas@extundo.com>
66216
66217         * m4/arctwo.m4: New file.
66218
66219         * m4/gc-arctwo.m4: New file.
66220
66221 2005-10-21  Simon Josefsson  <jas@extundo.com>
66222
66223         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
66224         block.
66225
66226 2005-10-21  Simon Josefsson  <jas@extundo.com>
66227
66228         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
66229         <bruno@clisp.org>.
66230
66231         * lib/hmac-sha1.c (hmac_sha1): Likewise.
66232
66233         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
66234         Bruno Haible <bruno@clisp.org>.
66235
66236         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
66237         <bruno@clisp.org>.
66238
66239 2005-10-21  Simon Josefsson  <jas@extundo.com>
66240
66241         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
66242
66243 2005-10-21  Simon Josefsson  <jas@extundo.com>
66244
66245         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
66246
66247 2005-10-21  Simon Josefsson  <jas@extundo.com>
66248
66249         * lib/des.h, lib/des.c: New files.
66250
66251         * lib/gc-gnulib.c: Support DES.c
66252
66253 2005-10-21  Simon Josefsson  <jas@extundo.com>
66254
66255         * lib/arctwo.h, lib/arctwo.c: New files.
66256
66257         * lib/gc-gnulib.c: Support ARCTWO.
66258
66259 2005-10-21  Simon Josefsson  <jas@extundo.com>
66260
66261         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
66262         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66263
66264 2005-10-21  Simon Josefsson  <jas@extundo.com>
66265
66266         * gnulib-tool (func_import, func_create_testdir): Define automake
66267         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
66268         Makefile.am snippet),
66269         suggested by Bruno Haible <bruno@clisp.org>.
66270
66271         * modules/gc (Makefile.am): Use it.
66272
66273 2005-10-21  Bruno Haible  <bruno@clisp.org>
66274
66275         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
66276         patch.
66277
66278 2005-10-19  Simon Josefsson  <jas@extundo.com>
66279
66280         * tests/test-gc-rijndael.c: New file.
66281
66282         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
66283
66284 2005-10-19  Simon Josefsson  <jas@extundo.com>
66285
66286         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
66287         interface too.
66288
66289 2005-10-19  Simon Josefsson  <jas@extundo.com>
66290
66291         * tests/test-gc-arcfour.c: New file.
66292
66293         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
66294
66295 2005-10-19  Simon Josefsson  <jas@extundo.com>
66296
66297         * modules/gc-md4, modules/gc-md4-tests: New file.
66298
66299         * tests/test-gc-md4.c: New file.
66300
66301 2005-10-19  Simon Josefsson  <jas@extundo.com>
66302
66303         * m4/gc-md4.m4: New file.
66304
66305 2005-10-19  Simon Josefsson  <jas@extundo.com>
66306
66307         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
66308         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
66309         <kasal@ucw.cz>.
66310
66311 2005-10-19  Simon Josefsson  <jas@extundo.com>
66312
66313         * m4/gc-arcfour.m4: New file.
66314
66315         * m4/gc-rijndael.m4: New file.
66316
66317 2005-10-19  Simon Josefsson  <jas@extundo.com>
66318
66319         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
66320
66321 2005-10-19  Simon Josefsson  <jas@extundo.com>
66322
66323         * lib/gc-gnulib.c: Support ARCFOUR.
66324
66325 2005-10-19  Simon Josefsson  <jas@extundo.com>
66326
66327         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
66328         support.
66329
66330         * lib/gc.h: Add ECB enum type.
66331
66332         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
66333
66334 2005-10-18  Simon Josefsson  <jas@extundo.com>
66335
66336         * tests/test-md5.c: New file.
66337
66338         * modules/md5-tests: New file.
66339
66340 2005-10-18  Simon Josefsson  <jas@extundo.com>
66341
66342         * tests/test-md4.c: New file.
66343
66344         * modules/md4, modules/md4-tests: New files.
66345
66346 2005-10-18  Simon Josefsson  <jas@extundo.com>
66347
66348         * m4/md4.m4: New file.
66349
66350 2005-10-18  Simon Josefsson  <jas@extundo.com>
66351
66352         * lib/md4.h, lib/md4.c: New files, based on md5.?.
66353
66354 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
66355
66356         * gnulib-tool (func_create_testdir): Omit the second check whether
66357         BUILT_SOURCES in nonempty.
66358
66359 2005-10-17  Simon Josefsson  <jas@extundo.com>
66360
66361         * tests/test-rijndael.c: New file.
66362
66363 2005-10-17  Simon Josefsson  <jas@extundo.com>
66364
66365         * modules/sha1: Depend on stdint instead of md5.
66366
66367         * modules/md5: Depend on stdint, remove uint32_t.
66368
66369 2005-10-17  Simon Josefsson  <jas@extundo.com>
66370
66371         * modules/gc-sha1-tests: New file.
66372
66373         * tests/test-gc-sha1.c: New file.
66374
66375 2005-10-17  Simon Josefsson  <jas@extundo.com>
66376
66377         * m4/md5.m4: Remove call to uint32_t.m4.
66378
66379 2005-10-17  Simon Josefsson  <jas@extundo.com>
66380
66381         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
66382
66383         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
66384         md5.h.
66385
66386         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
66387
66388         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
66389
66390 2005-10-17  Simon Josefsson  <jas@extundo.com>
66391
66392         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
66393
66394 2005-10-17  Simon Josefsson  <jas@extundo.com>
66395
66396         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
66397
66398 2005-10-17  Simon Josefsson  <jas@extundo.com>
66399
66400         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
66401
66402         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
66403
66404 2005-10-17  Bruno Haible  <bruno@clisp.org>
66405
66406         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
66407         that it can also be used in a test.
66408
66409 2005-10-16  Bruno Haible  <bruno@clisp.org>
66410
66411         * gnulib-tool (func_emit_tests_Makefile_am): Also define
66412         TESTS_ENVIRONMENT, so that individual tests can augment it.
66413
66414         * gnulib-tool (func_create_testdir): Use an intermediate target for
66415         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
66416         macros, like $(ALLOCA_H), which cannot be passed through the command
66417         line.
66418
66419 2005-10-15  Simon Josefsson  <jas@extundo.com>
66420
66421         * modules/rijndael-tests: New file.
66422
66423         * modules/rijndael: New file.
66424
66425 2005-10-15  Simon Josefsson  <jas@extundo.com>
66426
66427         * m4/rijndael.m4: New file.
66428
66429 2005-10-15  Simon Josefsson  <jas@extundo.com>
66430
66431         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
66432
66433         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
66434
66435 2005-10-14  Simon Josefsson  <jas@extundo.com>
66436
66437         * tests/test-arcfour.c: New file.
66438
66439         * modules/arcfour, modules/arcfour-tests: New files.
66440
66441 2005-10-14  Simon Josefsson  <jas@extundo.com>
66442
66443         * m4/arcfour.m4: New file.
66444
66445 2005-10-14  Simon Josefsson  <jas@extundo.com>
66446
66447         * lib/arcfour.h, lib/arcfour.c: New files.
66448
66449 2005-10-14  Roland McGrath  <roland@redhat.com>
66450
66451         Import from libc.  [BZ #1331]
66452         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
66453         macro argument.
66454         Reported by Matej Vela <vela@debian.org>.
66455
66456 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
66457
66458         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
66459         include <wchar.h>; no longer needed.
66460
66461 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
66462
66463         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
66464
66465 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
66466         and  Ulrich Drepper  <drepper@redhat.com>
66467
66468         Import from libc.
66469         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
66470         instead of inline stream orientation test and two separate
66471         function calls.  Pay no attention to USE_IN_LIBIO.
66472
66473 2005-10-13  Simon Josefsson  <jas@extundo.com>
66474
66475         * modules/gc-hmac-md5-tests: New file.
66476
66477         * tests/test-gc-hmac-sha1.c: New file.
66478
66479         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
66480
66481         * modules/gc-hmac-md5-tests: New file.
66482
66483         * tests/test-gc-md5.c: New file.
66484
66485         * modules/gc-md5-tests: New file.
66486
66487 2005-10-13  Simon Josefsson  <jas@extundo.com>
66488
66489         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
66490         Move memory allocation outside of loop.
66491
66492 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
66493
66494         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
66495         intermediate directory is in a read-only file system.  Problem
66496         reported by Eric Blake.
66497
66498 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
66499
66500         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
66501
66502 2005-10-12  Simon Josefsson  <jas@extundo.com>
66503
66504         * tests/test-hmac-sha1.c: New file.
66505
66506         * modules/hmac-sha1-tests: New file.
66507
66508         * modules/hmac-sha1: New file.
66509
66510 2005-10-12  Simon Josefsson  <jas@extundo.com>
66511
66512         * modules/gc-sha1: New file.
66513
66514 2005-10-12  Simon Josefsson  <jas@extundo.com>
66515
66516         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
66517
66518         * tests/test-gc-pbkdf2-sha1.c: New file.
66519
66520 2005-10-12  Simon Josefsson  <jas@extundo.com>
66521
66522         * modules/gc-md5, modules/gc-hmac-md5: New files.
66523
66524         * modules/gc (Files): Remove md5, memxor and hmac files.
66525
66526 2005-10-12  Simon Josefsson  <jas@extundo.com>
66527
66528         * m4/gc-pbkdf2-sha1.m4: New file.
66529
66530         * m4/gc-hmac-sha1.m4: New file.
66531
66532         * m4/gc-sha1: New file.
66533
66534         * m4/hmac-sha1.m4: New file.
66535
66536 2005-10-12  Simon Josefsson  <jas@extundo.com>
66537
66538         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
66539
66540         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
66541
66542 2005-10-12  Simon Josefsson  <jas@extundo.com>
66543
66544         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
66545         suggested by Bruno Haible <bruno@clisp.org>.
66546
66547 2005-10-12  Simon Josefsson  <jas@extundo.com>
66548
66549         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
66550
66551 2005-10-12  Simon Josefsson  <jas@extundo.com>
66552
66553         * lib/gc-pbkdf2-sha1.c: New file.
66554
66555         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
66556
66557 2005-10-12  Simon Josefsson  <jas@extundo.com>
66558
66559         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
66560
66561         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
66562
66563 2005-10-12  Simon Josefsson  <jas@extundo.com>
66564
66565         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
66566         GC_USE_HMAC_MD5, respectively.
66567
66568         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
66569         (gc_md5): Fix typo.
66570
66571         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
66572
66573         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
66574
66575         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
66576
66577 2005-10-12  Bruno Haible  <bruno@clisp.org>
66578
66579         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
66580         Reported by Stepan Kasal <kasal@ucw.cz>.
66581
66582 2005-10-11  Simon Josefsson  <jas@extundo.com>
66583
66584         * tests/test-crc.c: New file.
66585
66586         * modules/crc, modules/crc-tests: New files.
66587
66588 2005-10-11  Simon Josefsson  <jas@extundo.com>
66589
66590         * m4/crc.m4: New file.
66591
66592 2005-10-11  Simon Josefsson  <jas@extundo.com>
66593
66594         * lib/gc.h: Add gc_hash and gc_hash_buffer.
66595
66596         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
66597
66598         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
66599
66600 2005-10-11  Simon Josefsson  <jas@extundo.com>
66601
66602         * lib/crc.h, lib/crc.c: New files.
66603
66604         * lib/gc.h (gc_hash_buffer): Add doc.
66605
66606 2005-10-11  Bruno Haible  <bruno@clisp.org>
66607
66608         * modules/c-strcasestr: New file.
66609         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
66610
66611 2005-10-11  Bruno Haible  <bruno@clisp.org>
66612
66613         * modules/c-strcase: New file.
66614         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
66615
66616 2005-10-11  Bruno Haible  <bruno@clisp.org>
66617
66618         * lib/strcasecmp.c: Include limits.h.
66619         (strcasecmp): Avoid integer overflow on exotic platforms.
66620         * lib/strncasecmp.c: Include limits.h.
66621         (strncasecmp): Avoid integer overflow on exotic platforms.
66622         Reported by Paul Eggert.
66623
66624 2005-10-11  Bruno Haible  <bruno@clisp.org>
66625
66626         * lib/c-strcasestr.h: New file, from GNU gettext.
66627         * lib/c-strcasestr.c: New file, from GNU gettext.
66628
66629 2005-10-11  Bruno Haible  <bruno@clisp.org>
66630
66631         * lib/c-strcase.h: New file, from GNU gettext.
66632         * lib/c-strcasecmp.c: New file, from GNU gettext.
66633         * lib/c-strncasecmp.c: New file, from GNU gettext.
66634
66635 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
66636
66637         * modules/mempcpy (License): GPL -> LGPL.
66638         * modules/strchrnul (License): Likewise.
66639         * modules/sysexits (License): Likewise.
66640
66641 2005-10-08  Simon Josefsson  <jas@extundo.com>
66642
66643         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
66644
66645 2005-10-07  Simon Josefsson  <jas@extundo.com>
66646
66647         * m4/memxor.m4: Remove gl_C_RESTRICT call.
66648
66649 2005-10-06  Simon Josefsson  <jas@extundo.com>
66650
66651         * tests/test-hmac-md5.c: New file.
66652
66653         * modules/hmac-md5-tests: New file.
66654
66655         * modules/hmac-md5: New file.
66656
66657 2005-10-06  Simon Josefsson  <jas@extundo.com>
66658
66659         * m4/hmac-md5.m4: New file.
66660
66661         * m4/memxor.m4: Require gl_C_RESTRICT.
66662
66663 2005-10-06  Simon Josefsson  <jas@extundo.com>
66664
66665         * lib/memxor.c (memxor): Avoid casts and warnings.
66666
66667 2005-10-06  Simon Josefsson  <jas@extundo.com>
66668
66669         * lib/hmac-md5.c: New file.
66670
66671         * lib/hmac.h: New file.
66672
66673 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
66674
66675         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
66676         promotes to int, not unsigned int, to catch the AIX 5.3
66677         compiler bug.
66678
66679 2005-10-05  Simon Josefsson  <jas@extundo.com>
66680
66681         * modules/memxor: New file.
66682
66683         * modules/iconv (Files): Move config.rpath to havelib, it is used
66684         there.
66685
66686         * modules/havelib (Files): Add config.rpath.
66687
66688 2005-10-05  Simon Josefsson  <jas@extundo.com>
66689
66690         * m4/memxor.m4: New file.
66691
66692 2005-10-05  Simon Josefsson  <jas@extundo.com>
66693
66694         * lib/memxor.c (memxor): Fix compiler error.
66695
66696         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
66697         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
66698
66699         * lib/memxor.h, lib/memxor.c: New files.
66700
66701         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
66702         we assume all systems have it, suggested by Jim Meyering
66703         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
66704         any systems lack sys/socket.h; mingw32 is known to lack it, but we
66705         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
66706         same reasons.
66707
66708 2005-10-05  Simon Josefsson  <jas@extundo.com>
66709
66710         * config/srclist.txt: Add glibc bug 1423 for md5.h.
66711
66712 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
66713
66714         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
66715         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
66716         needed, since the source code now assumes these .h files.
66717
66718 2005-10-05  Derek Price  <derek@ximbiot.com>
66719
66720         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
66721
66722 2005-10-05  Bruno Haible  <bruno@clisp.org>
66723
66724         * modules/stdint (License): Change to LGPL.
66725
66726 2005-10-04  Simon Josefsson  <jas@extundo.com>
66727
66728         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
66729         D. Baushke" <mdb@gnu.org>.
66730
66731 2005-10-04  Bruno Haible  <bruno@clisp.org>
66732
66733         * lib/verify.h (verify_true): Provide alternative definition for C++.
66734
66735 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
66736
66737         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
66738         (SSIZE_MAX): New macro, if not already defined.
66739         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
66740         than 2 GiB.
66741
66742 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
66743
66744         Sync from coreutils.
66745         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
66746         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
66747         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
66748         ULLONG_MAX doesn't work with 2.7.2.1.
66749
66750 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
66751
66752         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
66753         From Ben Pfaff.
66754
66755         * modules/exclude (Depends-on): Depend on verify.
66756         * modules/strtoimax (Depends-on): Likewise.
66757         * modules/utimecmp (Depends-on): Likewise.
66758
66759 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
66760
66761         * lib/exclude.c: Include verify.h.
66762         (verify): Remove.  All callers changed to use verify.h's version.
66763         * lib/strtoimax.c: Likewise.
66764         * lib/utimecmp.c: Likewis.e
66765
66766         Sync from coreutils.
66767         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
66768         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
66769         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
66770         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
66771         bother returning ENOSYS if settimeofday or stime fails; just let
66772         them return whatever errno they want to return.
66773         * lib/utimens.c: Include unistd.h, for dup2.
66774         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
66775         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
66776
66777 2005-10-02  Jim Meyering  <jim@meyering.net>
66778
66779         Sync from coreutils.
66780         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
66781         from glibc-2.2.5 that fails for read-only files.
66782
66783 2005-10-02  Jim Meyering  <jim@meyering.net>
66784
66785         Sync from coreutils.
66786         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
66787         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
66788         `#if HAVE_CONFIG_H'.
66789         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
66790         Remove AT_FDCWD test.
66791         Do not consume the fd unless successful.
66792         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
66793         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
66794         block, so that we don't even try to compile it if settimeofday is
66795         available.  This works around a compilation failure on OSF1 V5.1,
66796         due to stime requiring a `long int*' while tv_sec is `int'.
66797
66798 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
66799
66800         Sync from coreutils.
66801         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
66802         against `yes', rather than just testing for nonempty.
66803
66804 2005-10-01  Simon Josefsson  <jas@extundo.com>
66805
66806         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
66807         and Darwin.
66808
66809         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
66810         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
66811         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
66812         freeaddrinfo and gai_strerror are declared by the POSIX headers.
66813         Check if struct addrinfo is declared.
66814
66815 2005-10-01  Simon Josefsson  <jas@extundo.com>
66816
66817         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
66818         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
66819         AI_* and EAI_* definitions.  Protect function declarations.
66820
66821 2005-10-01  Jim Meyering  <jim@meyering.net>
66822
66823         Sync from coreutils.
66824
66825         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
66826         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
66827         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
66828         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
66829         in the inet and nsl libraries.  Required on Solaris 5.7.
66830
66831 2005-10-01  Jim Meyering  <jim@meyering.net>
66832
66833         Sync from coreutils.
66834         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
66835         in the inet and nsl libraries.  Required on Solaris 5.7.
66836
66837 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
66838
66839         * lib/getdelim.c (getdelim): Remove unused variables.
66840
66841 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
66842
66843         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
66844         so that the code works even with ancient cpp.  Portability problem
66845         with GCC 2.7.2.1 reported by Thomas M.Ott.
66846
66847 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
66848
66849         * modules/regex (Depends-on): Add strcase.
66850
66851         * modules/gethostname (Licence): Change from GPL to LGPL, since
66852         gethostname.c is a trivial implementation of a standard library
66853         function.
66854         * modules/poll (License): Change from GPL to LGPL, since it's
66855         derived from LGPL code.
66856
66857 2005-09-27  Jim Meyering  <jim@meyering.net>
66858
66859         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
66860         HAVE_CONFIG_H.
66861
66862         * lib/intprops.h (signed_type_or_expr__): Define.
66863         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
66864         for unsigned types.
66865
66866 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
66867
66868         * lib/verify.h (verify_expr): Remove, replacing with:
66869         (verify_true): New macro that returns true instead of void.
66870         (verify_type__): Remove.
66871         (verify): Use verify_true rather than verify_type__.
66872
66873 2005-09-26  Bruno Haible  <bruno@clisp.org>
66874
66875         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
66876         is necessary.
66877         (lib_SOURCES): Remove mbchar.c.
66878         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
66879         (Files): Add m4/mbrtowc.m4.
66880         * modules/mbiter: Likewise.
66881         * modules/mbuiter: Likewise.
66882
66883 2005-09-26  Bruno Haible  <bruno@clisp.org>
66884
66885         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
66886         compile mbchar.c if they are not both present.
66887         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
66888         * m4/mbiter.m4 (gl_MBITER): Likewise.
66889         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
66890         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
66891         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
66892
66893 2005-09-25  Jim Meyering  <jim@meyering.net>
66894
66895         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
66896         also uses socklen_t.
66897
66898 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
66899
66900         * lib/utimens.c (ENOSYS): Define if not already defined.
66901         (futimens): Support having a null PATH if the file descriptor
66902         is nonnegative.
66903
66904         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
66905         Remove.
66906         (__attribute): Define to empty unless GCC 3.1 or later.
66907         This works around a core dump on OpenBSD 3.4, which has GCC
66908         2.95.3, which dumps core when given __attribute__(()).  It also
66909         simplifies other tests, since we really don't want to bother with
66910         worrying about which ancient version of GCC supported what.
66911         Original problem reported by Yoann Vandoorselaere, with part of
66912         the fix suggested by Derek Price.
66913
66914 2005-09-24  Jim Meyering  <jim@meyering.net>
66915
66916         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
66917         so we can once again use a positive bitfield width of 1 -- now we
66918         don't have to explain why we were using a bitfield width of 2.
66919
66920 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
66921
66922         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
66923         and similarly for the other external symbols.  Problem reported
66924         by James Gallager.
66925
66926         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
66927         bug reported by Jim Meyering.
66928
66929         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
66930         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
66931         not needed, since socklen is a prerequisite module.
66932
66933 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
66934
66935         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
66936         Problem reported by Eric Blake.
66937         (getaddrinfo): Initialize se so that it's not garbage.
66938         Redo internal storage allocation so that it doesn't make unportable
66939         assumptions about alignment.
66940         Fix a memory leak.
66941
66942         * lib/utimens.c (futimens): Use futimesat if available.
66943         Prefer it to futimes since it doesn't have the futimes bug.
66944
66945         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
66946         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
66947         Instead, declare a function that returns a pointer to an array,
66948         and use verify_type__ to declare the size of the array.
66949         Problem and germ of a solution reported by Bruno Haible.
66950         (verify_type__): Use 2, not 1, for bitfield size, to avoid
66951         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
66952
66953 2005-09-23  Jim Meyering  <jim@meyering.net>
66954
66955         Sync from coreutils.
66956         Correct build failure (socklen_t not defined) on at least
66957         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
66958         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
66959
66960 2005-09-23  Jim Meyering  <jim@meyering.net>
66961
66962         * modules/getaddrinfo (Depends-on): Add socklen.
66963
66964 2005-09-23  Bruno Haible  <bruno@clisp.org>
66965
66966         * tests/test-verify.c: New file.
66967
66968 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
66969
66970         Sync from coreutils.
66971
66972         * modules/argmatch (Depends-on): Add verify.
66973         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
66974         unistd-safer.
66975         * modules/save-cwd (Depends-on): Likewise.
66976
66977         * modules/openat (Files): Add lib/openat-die.c.
66978         (Depends-on): Remove error, exitfail.
66979         Add dirname.
66980
66981         * modules/verify: New file.
66982         * MODULES.html.sh (Diagnostics <assert.h>): New section,
66983         with "verify" module.
66984
66985 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
66986
66987         Sync from coreutils.
66988
66989         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
66990         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
66991         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
66992         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
66993         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
66994         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
66995         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
66996         Don't bother checking for string.h, stdlib.h, unistd.h.
66997         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
66998         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
66999         module's job.
67000         * m4/jm-macros.m4 (gl_MACROS): Likewise.
67001         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
67002
67003         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
67004         (gl_GETDATE): Use it.
67005
67006         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
67007
67008 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
67009
67010         Sync from coreutils.
67011
67012         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
67013         stat-time.h.
67014         * lib/argmatch.h: Include verify.h
67015         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
67016         (ARGMATCH_ASSERT): Remove; unused.
67017         * lib/canonicalize.c: Assume STDC_HEADERS.
67018         * lib/exclude.c: Include "strcase.h".
67019         * lib/regex_internal.h [!defined _LIBC]: Likewise.
67020         * lib/getusershell.c: Include stdio--.h rather than stdio.h
67021         and stdio-safer.h.
67022         (getusershell): Call fopen, not fopen_safer.
67023         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
67024         Do not include unistd-safer.h.
67025         (save_cwd): Don't call fd_safer; no longer needed
67026         now that we include fcntl--.h.
67027
67028         * lib/getdate.y (relative_time): New type.
67029         (RELATIVE_TIME_0): New constant.
67030         (parser_control): Use relative_time instead of doing it ourselves.
67031         (%union): Add new relative_time rel member.
67032         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
67033         Now typeless.
67034         (relunit, relunit_snumber): Now of type rel.
67035         (zone, rel, relunit, get_date): Adjust to above changes.
67036
67037         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
67038         Do not include unistd-safer.h.
67039         (getloadavg): Don't call fd_safer; no longer needed
67040         now that we include fcntl--.h.
67041
67042         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
67043         (make_dir_parents): Treat ENOSYS like EEXIST.
67044
67045         Improve quality of diagnostics on restore_cwd failure.
67046         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
67047         (make_dir_parents): Last arg is now int * (for errno), not bool *.
67048         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
67049         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
67050         each time through the loop.  Do not diagnose restore_cwd failure;
67051         that is the caller's job (and perhaps the caller does not care).
67052
67053         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
67054         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
67055         If the file already exists but is not a directory, don't bother
67056         to try to make its parents.
67057         Close potential file descriptor leak if we can't chdir("/") (!).
67058         Don't always return true if chdir($PWD) fails; return true only
67059         if the requested action was done successfully (except for the
67060         chdir($PWD)).
67061         Don't log final directory unless we actually made it.
67062         Refactor to avoid duplicate code to fix up permissions.
67063         Don't attempt to fix up parent permissions if chdir($PWD) fails.
67064
67065         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
67066         to make it a bit faster and (I hope) clearer.
67067         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
67068         Fix bug in formats like %2N.
67069
67070         * lib/verify.h: New file.
67071
67072 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
67073
67074         Sync from coreutils.
67075         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
67076
67077 2005-09-22  Jim Meyering  <jim@meyering.net>
67078
67079         Sync from coreutils.
67080
67081         * m4/lstat.m4 (gl_FUNC_LSTAT):
67082         Use AC_LIBSOURCES to require lstat.c and lstat.h.
67083         Remove obsolete comment.
67084         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
67085         * m4/xstrtod.m4: Likewise.
67086
67087         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
67088
67089 2005-09-22  Jim Meyering  <jim@meyering.net>
67090
67091         Sync from coreutils.
67092
67093         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
67094
67095         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
67096         the .tm_year member, since otherwise gcc-4.0 would now warn about
67097         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
67098
67099         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
67100         order to avoid an unsuppressible warning from gcc on 64-bit systems.
67101
67102         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
67103         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
67104         when run in a time zone for which daylight savings time is in effect
67105         for the starting date.
67106
67107         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
67108         stop us from restricting permissions of just-created absolute-named
67109         directories.
67110         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
67111         to restore initial working directory.
67112         * lib/mkdir-p.c (make_dir_parents): New parameter:
67113         different_working_dir, to tell caller if/when we change the working
67114         directory and are unable to return to the initial one.
67115         * lib/mkdir-p.h (make_dir_parents): Update prototype.
67116         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
67117         `return false'.  This fixes a bug introduced on 2004-07-30.
67118
67119         * lib/openat.c (fdopendir): Be sure to close the supplied
67120         file descriptor before returning.  This makes our replacement
67121         implementation a little closer to Solaris's, where fdopendir
67122         ties the file descriptor to the returned DIR* pointer.
67123         * lib/openat.c (unlinkat): New function.
67124         * lib/openat.h (unlinkat): Add prototype.
67125         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
67126         (openat_restore_fail): Rename from openat_restore_die.
67127         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
67128
67129         Provide an alternative to exiting immediately upon save_cwd or
67130         restore_cwd failure.  Now, an application can arrange e.g.,
67131         to perform a longjump in that case.
67132         * lib/openat.c: Include dirname.h.
67133         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
67134         (rpl_openat, fdopendir, fstatat): Call openat_save_die
67135         and openat_restore_die rather than calling error directly.
67136         Don't include "error.h" or "exitfail.h"; they're no longer needed.
67137
67138         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
67139         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
67140         define.
67141
67142         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
67143         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
67144                             int utc, int nanoseconds);
67145         Background:
67146         date should not have to allocate a megabyte of virtual memory to
67147         handle a format argument like +%1048575T.  When implemented with
67148         strftime, it must allocate such a buffer, use strftime to fill it
67149         in, print it, then free it.
67150         With fprintftime, it simply prints everything and exits.
67151         With no need for memory allocation, that's one fewer way to fail.
67152         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
67153         optional field width, not before, so we accept %9:z, not %:9z.
67154         (my_strftime): Be sure to use L_('x') for literals.
67155
67156         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
67157         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
67158         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
67159         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
67160         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
67161         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
67162         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
67163         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
67164         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
67165         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
67166         * lib/xgethostname.c, lib/xreadlink.c:
67167         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
67168
67169         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
67170         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
67171         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
67172         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
67173         and don't include <sys/file.h>).
67174
67175 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
67176
67177         Sync from coreutils.
67178
67179         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
67180         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
67181         [!LDAV_DONE]: Avoid unused variable warning.
67182
67183 2005-09-21  Bruno Haible  <bruno@clisp.org>
67184
67185         * lib/unicodeio.h (unicode_to_mb): New declaration.
67186
67187 2005-09-20  Derek Price  <derek@ximbiot.com>
67188
67189         * lib/getaddrinfo.c: Don't include <netdb.h> included from
67190         getaddrinfo.h.
67191
67192 2005-09-20  Bruno Haible  <bruno@clisp.org>
67193
67194         * gnulib-tool: Remove trailing slashes from the values specified for
67195         --source-base, --m4-base, --tests-base, --aux-dir.
67196         Suggested by Simon Josefsson <jas@extundo.com>.
67197
67198 2005-09-20  Bruno Haible  <bruno@clisp.org>
67199
67200         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
67201         func_modules_to_filelist, func_import, func_create_testdir): Make all
67202         sorting results locale-independent, so that gnulib-cache.m4 doesn't
67203         change when gnulib-tool is invoked in a different locale.
67204
67205 2005-09-19  Simon Josefsson  <jas@extundo.com>
67206
67207         * m4/socklen.m4: Fix typo.
67208
67209 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67210
67211         Use a consistent style for including <config.h>.
67212         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
67213         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
67214         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
67215         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
67216         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
67217         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
67218         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
67219         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
67220         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
67221         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
67222         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
67223         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
67224         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
67225         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
67226         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
67227         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
67228         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
67229         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
67230         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
67231         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
67232         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
67233         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
67234         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
67235         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
67236         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
67237         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
67238         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
67239         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
67240         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
67241         lib/xstrtoumax.c, lib/yesno.c:
67242         Standardize inclusion of config.h.
67243         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
67244         lib/inttostr.h:  Removed inclusion of config.h from header files.
67245         * lib/inttostr.c:  Adjusted in-tree users.
67246         * lib/timespec.h: Remove superfluous warning to include config.h.
67247         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
67248         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
67249         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
67250         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
67251         config.h with HAVE_CONFIG_H.
67252
67253 2005-09-19  Jim Meyering  <jim@meyering.net>
67254
67255         * modules/pathmax (License): Change to LGPL.
67256
67257 2005-09-19  Derek Price  <derek@ximbiot.com>
67258
67259         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
67260
67261 2005-09-19  Bruno Haible  <bruno@clisp.org>
67262
67263         * gnulib-tool (import): Provide default for --tests-base.
67264
67265 2005-09-19  Bruno Haible  <bruno@clisp.org>
67266
67267         * doc/quote.texi: New file, extracted from gnulib.texi.
67268         * doc/ctime.texi: New file, extracted from gnulib.texi.
67269         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
67270         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
67271         * doc/gnulib.texi: Include them.
67272
67273 2005-09-18  Bruno Haible  <bruno@clisp.org>
67274
67275         Portability fix.
67276         * gnulib-tool (func_readlink): New function.
67277         (func_ln_if_changed): Use it.
67278
67279 2005-09-18  Bruno Haible  <bruno@clisp.org>
67280
67281         * gnulib-tool: Support --with-tests also with --import.
67282         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
67283         (func_import): Use variables $testsbase and $inctests. Emit a
67284         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
67285         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
67286         SUBDIRS += $testsdir.
67287         (func_create_testdir): Update.
67288
67289 2005-09-18  Bruno Haible  <bruno@clisp.org>
67290
67291         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
67292         instead of $dry_run.
67293         (func_cp_if_changed, func_mv_if_changed): Remove functions.
67294         (func_ln_if_changed): Don't handle dry-run here.
67295         (func_import): In dry-run mode, detect more precisely which actions
67296         would be performed, and don't use "...ing" verbs.
67297
67298 2005-09-18  Bruno Haible  <bruno@clisp.org>
67299
67300         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
67301         (func_import): Use join on two temporary files instead of three nested
67302         loops, in order to determine which files are new or old.
67303
67304 2005-09-18  Bruno Haible  <bruno@clisp.org>
67305
67306         * gnulib-tool (func_import): Comment out code that spits out the
67307         new files with --dry-run.
67308
67309 2005-09-18  Bruno Haible  <bruno@clisp.org>
67310
67311         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
67312
67313 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
67314
67315         * lib/stat-time.h: New file.
67316         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
67317         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
67318         in a different way.
67319         (timespec_cmp): New function.
67320         * lib/utimecmp.c: Include stat-time.h.
67321         (SYSCALL_RESOLUTION): Depend on whether various struct stat
67322         members exist, not on the obsolescent ST_MTIM_NSEC.
67323         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
67324
67325 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
67326
67327         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
67328
67329 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
67330
67331         * MODULES.html.sh (File system functions): Add stat-time.
67332         * modules/stat-time: New file.
67333         * modules/timespec (Files): Remove m4/st_mtim.m4; this
67334         is now done in a different way, by the stat-time module.
67335         * modules/utimecmp (Depends-on): Add stat-time.
67336
67337 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67338
67339         * m4/st_mtim.m4: Remove.  Superseded by...
67340         * m4/stat-time.m4: New file.
67341         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
67342         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
67343
67344 2005-09-15  Derek Price  <derek@ximbiot.com>
67345
67346         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
67347
67348 2005-09-15  Derek Price  <derek@ximbiot.com>
67349
67350         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
67351         * lib/regex_internal.c: Ditto, using this...
67352         (__GNUC_PREREQ): ...new macro.
67353         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
67354         using...
67355         (__GNUC_PREREQ): ...this new macro.
67356
67357         * lib/strstr.h: Include string.h. Define strstr as a macro here.
67358
67359 2005-09-15  Derek Price  <derek@ximbiot.com>
67360             Paul Eggert  <eggert@cs.ucla.edu>
67361
67362         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
67363         changes, consolidating in...
67364         * lib/regex_internal.h: ...this file.
67365
67366 2005-09-13  Jim Meyering  <jim@meyering.net>
67367
67368         * lib/canon-host.c: Filter through gnu indent and reword comments
67369         slightly.
67370         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
67371
67372 2005-09-13  Derek Price  <derek@ximbiot.com>
67373
67374         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
67375         failure.
67376         Reported by Jim Meyering  <jim@meyering.net>.
67377
67378 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67379
67380         * lib/base64.c: Typo.
67381         (base64_encode): Put b64str in initialized data section.
67382
67383 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
67384
67385         Merge glibc and coreutils changes into gnulib, plus a few
67386         extra fixes.
67387         * lib/md5.c: Use #error rather than a string.
67388         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
67389         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
67390         (__attribute__): Define to empty for non recent-GCC.
67391         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
67392         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
67393         Renamed from their non-__ counterparts, with new macros replacing
67394         them if not _LIBC.  Add __THROW attribute.
67395         (rol): Remove.
67396         (struct md5_ctx): Align buffer if using GCC.
67397         * lib/sha1.h (struct sha1_ctx): Likewise.
67398         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
67399         The old name was backwards.
67400         (NOTSWAP): Remove; not used.
67401         (rol): New macro, moved here from md5.h.
67402         (sha1_process_block): Remove a FIXME that doesn't make sense.
67403
67404 2005-09-12  Derek Price  <derek@ximbiot.com>
67405
67406         Return usable errors from canon-host.
67407         * lib/canon-host.h: New file.
67408         * lib/canon-host.c (canon_host): Wrap...
67409         (canon_host_r): ...this new function, which now relies exclusively on
67410         getaddrinfo.
67411         (ch_strerror): New function.
67412         (last_cherror): New global.
67413         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
67414         interface.
67415         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
67416         void *.
67417         (freeaddrinfo): Free ai->ai_canonname when set.
67418
67419 2005-09-12  Derek Price  <derek@ximbiot.com>
67420
67421         Make canon-host require getaddrinfo.
67422         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
67423         AC_LIBSOURCE canon-host.h.  Call...
67424         (gl_PREREQ_CANON_HOST): ...this new function, which requires
67425         gl_GETADDRINFO.
67426         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
67427
67428 2005-09-12  Derek Price  <derek@ximbiot.com>
67429
67430         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
67431         LGPL.
67432         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
67433
67434 2005-09-12  Derek Price  <derek@ximbiot.com>
67435
67436         * lib/gai_strerror.c: Include config.h when available.  Include
67437         getaddrinfo.h before other headers to test interface.
67438         Reported by Larry Jones <lawrence.jones@ugs.com>.
67439
67440 2005-09-12  Derek Price  <derek@ximbiot.com>
67441             Paul Eggert  <eggert@cs.ucla.edu>
67442
67443         * modules/glob (Files): Add glob-libc.h.
67444
67445 2005-09-12  Derek Price  <derek@ximbiot.com>
67446             Paul Eggert  <eggert@cs.ucla.edu>
67447
67448         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
67449         glob_.h, glob-libc.h.
67450         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
67451
67452 2005-09-12  Derek Price  <derek@ximbiot.com>
67453             Paul Eggert  <eggert@cs.ucla.edu>
67454
67455         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
67456         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
67457         protecting things that should be done only in gnulib contexts.
67458         * lib/glob_.h: New file, containing only the glob things needed for
67459         gnulib.
67460         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
67461         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
67462         (glob, globfree, glob_pattern_p): Now defined simply in terms of
67463         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
67464         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
67465         and to respect the namespace rules better.
67466
67467 2005-09-08  Simon Josefsson  <jas@extundo.com>
67468
67469         * modules/socklen: New file.
67470
67471 2005-09-08  Simon Josefsson  <jas@extundo.com>
67472
67473         * m4/socklen.m4: New file.
67474
67475 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67476
67477         * modules/utimens (Files): Add m4/utimbuf.m4, since
67478         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
67479         Reported by Sergey Poznyakoff.
67480
67481 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67482
67483         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
67484         definitions, since that's the preferred style in glibc.
67485         Fix a minor spacing issue, and update copyright notice to match
67486         glibc's.
67487
67488 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67489
67490         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
67491
67492 2005-09-06  Simon Josefsson  <jas@extundo.com>
67493
67494         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
67495         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
67496
67497 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
67498
67499         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
67500         warning.
67501
67502 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
67503
67504         * config/srclist.txt: Add glibc bug 1302.
67505
67506 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
67507
67508         Change bitset word type from unsigned int to unsigned long int,
67509         as this has better performance on typical 64-bit hosts.
67510         Port bitset code to hosts with unusual word sizes.
67511         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
67512         (build_collating_symbol):
67513         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
67514         argument is a bitset.  This is merely a style issue, but it makes
67515         it clearer that an entire array is expected.
67516         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
67517         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
67518         Port to the case where bitset_word is not the same as unsigned int.
67519         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
67520         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
67521         Likewise.
67522         * lib/regexec.c (check_dst_limits_calc_pos_1,
67523         check_subexp_matching_top):
67524         (build_trtable, group_nodes_into_DFAstates):
67525         Likewise.
67526         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
67527         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
67528         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
67529         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
67530         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
67531         * lib/regcomp.c (optimize_subexps, lower_subexp):
67532         Work even if bitset_word has holes in its bitwise representation.
67533         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
67534         * lib/regexec.c (check_dst_limits_calc_pos_1,
67535         check_subexp_matching_top):
67536         Likewise.
67537         * lib/regex_internal.c (re_string_reconstruct):
67538         Don't assume UCHAR_MAX == 255.
67539         * lib/regex_internal.h (bitset_set_all): Likewise.
67540         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
67541         All uses changed.
67542         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
67543         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
67544         All uses changed.
67545         (BITSET_WORD_MAX): New macro.
67546         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
67547         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
67548         (bitset_empty, bitset_copy):
67549         Prefer sizeof (bitset) to multiplying it out ourselves.
67550         (bitset_not_merge): Remove; unused.
67551         (bitset_contain): Return bool, not unsigned int with one bit on.
67552         All callers changed.
67553         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
67554         alignment than re_node_set; do this by defining a new internal
67555         type struct dests_alloc and using it to allocate memory.
67556
67557 2005-09-05  Bruno Haible  <bruno@clisp.org>
67558
67559         * gnulib-tool (func_import): Fix comparison in handling of symbolic
67560         links.
67561
67562 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
67563
67564         * modules/size_max (Makefile.am): Add size_max.h
67565
67566 2005-09-04  Derek Price  <derek@ximbiot.com>
67567
67568         * gnulib-tool (func_import): Fix reversed $symbolic logic.
67569
67570 2005-09-03  Simon Josefsson  <jas@extundo.com>
67571
67572         * gnulib-tool: Fix typo.
67573
67574 2005-09-03  Simon Josefsson  <jas@extundo.com>
67575
67576         * config/srclist.txt: Add glibc bug 1293.
67577
67578 2005-09-03  Derek Price  <derek@ximbiot.com>
67579
67580         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
67581         From Larry Jones <lawrence.jones@ugs.com>.
67582
67583 2005-09-02  Simon Josefsson  <jas@extundo.com>
67584
67585         * modules/socklen: New file.
67586
67587 2005-09-02  Simon Josefsson  <jas@extundo.com>
67588
67589         * modules/havelib: New module.
67590
67591         * modules/gettext, modules/iconv, modules/lock, modules/readline:
67592         Use havelib.
67593
67594 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
67595
67596         Check for arithmetic overflow when calculating sizes, to prevent
67597         some buffer-overflow issues.  These patches are conservative, in the
67598         sense that when I couldn't determine whether an overflow was possible,
67599         I inserted a run-time check.
67600         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
67601         macros.
67602         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
67603         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
67604         (re_xnrealloc, re_x2nrealloc): New inline functions.
67605         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
67606         parse_bracket_exp):
67607         (build_equiv_class, build_charclass): Check for arithmetic overflow
67608         in size expression calculations.
67609         * lib/regex_internal.c (re_string_realloc_buffers):
67610         (build_wcs_upper_buffer, re_node_set_add_intersect):
67611         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
67612         (re_dfa_add_node, register_state): Likewise.
67613         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
67614         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
67615         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
67616         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
67617
67618 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
67619
67620         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
67621         m4/ulonglong.m4.  Problem reported by Martin Lambers.
67622
67623 2005-09-02  Bruno Haible  <bruno@clisp.org>
67624
67625         Support for lib vs. lib64 distinction on biarch platforms.
67626         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
67627         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
67628         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
67629
67630 2005-09-02  Bruno Haible  <bruno@clisp.org>
67631
67632         * gnulib-tool (import): In the other first-use case, provide defaults
67633         as well.
67634
67635 2005-09-02  Bruno Haible  <bruno@clisp.org>
67636
67637         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
67638         patches not yet found in the latest gettext release.
67639
67640 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67641
67642         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
67643         to avoid a collision with bits/local_lim.h in glibc.
67644         All uses changed.  Problem reported by Dmitry V. Levin in
67645         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
67646
67647         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
67648         bugs in int versus size_t comparisons.
67649         (re_string_context_at): Fix bug where the code assumed that
67650         Idx is signed.
67651
67652         Use bool where appropriate.
67653         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
67654         All callers changed.
67655         (calc_eclosure_iter): Likewise, for ROOT arg.
67656         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
67657         (build_charclass_op): Likewise, for NON_MATCH arg.
67658         * lib/regex_internal.c (re_string_allocate, re_string_construct):
67659         (re_string_construct_common): Likewise, for ICASE arg.
67660         * lib/regexec.c (re_search_2_stub, re_search_stub):
67661         Likewise, for RET_LEN arg.
67662         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
67663         (set_regs): Likewise, for FL_BACKTRACK arg.
67664         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
67665         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
67666         (calc_eclosure_iter, parse_bracket_exp):
67667         Use bool for internal variables that are booleans.
67668         * lib/regexec.c (re_search_internal, check_matching,
67669         proceed_next_node):
67670         (set_regs, build_sifted_states, sift_states_bkref):
67671         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
67672         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
67673         (find_collation_sequence_value):
67674         Likewise.
67675         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
67676         (re_node_set_compare):
67677         Return bool, not int. All callers changed.
67678         * lib/regexec.c (check_halt_node_context, check_dst_limits):
67679         (build_trtable, check_node_accept): Likewise.
67680         * lib/regex_internal.h: Include stdbool.h.
67681
67682         Fix bugs uncovered when converting to bool.
67683         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
67684         failure instead of charging ahead blindly.
67685         * lib/regex_internal.c (register_state): Likewise.
67686         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
67687         for freeing internal storage.
67688         (group_nodes_into_DFA_states): Use unsigned int, not int, for
67689         bitset pieces used as boolean, to avoid undefined behavior
67690         on hosts that do int overflow checking.
67691
67692 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67693
67694         * config/srclist.txt: Add glibc bugs 1285-1287.
67695
67696 2005-09-01  Jim Meyering  <jim@meyering.net>
67697
67698         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
67699         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
67700         Require gl_STAT_MACROS, too.
67701
67702 2005-09-01  Bruno Haible  <bruno@clisp.org>
67703
67704         * gnulib-tool (import): In the first-use case, provide defaults.
67705
67706 2005-09-01  Bruno Haible  <bruno@clisp.org>
67707
67708         * gnulib-tool (func_import): Remove the .tmp files.
67709
67710 2005-09-01  Bruno Haible  <bruno@clisp.org>
67711
67712         * gnulib-tool (func_import): Fix handling of symbolic links.
67713
67714 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67715
67716         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
67717         old glibc regex code mishandles strings longer than 2**31 bytes.
67718         This patch fixes this when the regex code is used in gnulib
67719         (i.e., outside glibc).
67720
67721         This patch should not affect the use of the regex code inside
67722         glibc.  No doubt this problem also needs to be handled for glibc
67723         as well, but the result will be an incompatible change to the
67724         glibc ABI, and the old ABI will have to be supported too.  That
67725         can be the the subject for another patch.
67726
67727         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
67728         governing whether the rest of this patch is active.  By default,
67729         the macro is disabled and the patch has no effect.
67730         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
67731         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
67732         (struct re_pattern_buffer, re_search, re_search_2, re_match):
67733         (re_match_2, re_set_registers): Use the new types.
67734         * lib/regex_internal.h (Idx, re_hashval_t): New types.
67735         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
67736         New macros.
67737         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
67738         (re_string_context_at, bin_tree_t, re_dfastate_t):
67739         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
67740         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
67741         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
67742         (re_string_char_size_at, re_string_wchar_at):
67743         (re_string_elem_size_at):
67744         Use the new types and macros to port to 64-bit hosts.
67745         Use unsigned types for internal values, so that the code
67746         mostly works even for arrays larger than SSIZE_MAX.
67747         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
67748         (search_duplicated_node, calc_eclosure_iter, fetch_number):
67749         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
67750         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
67751         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
67752         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
67753         (calc_inveclosure, parse_dup_op, build_range_exp):
67754         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
67755         (fetch_number, create_token_tree, mark_opt_subexp):
67756         Likewise.
67757         * lib/regex_internal.c (re_string_construct_common,
67758         create_ci_newstate):
67759         (create_cd_newstate, re_string_allocate, re_string_construct):
67760         (re_string_realloc_buffers, build_wcs_upper_buffer):
67761         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
67762         (re_string_reconstruct, re_string_peek_byte_case):
67763         (re_string_fetch_byte_case, re_string_context_at):
67764         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
67765         (re_node_set_init_copy, re_node_set_add_intersect):
67766         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
67767         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
67768         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
67769         (re_acquire_state, re_acquire_state_context, register_state):
67770         Likewise.
67771         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
67772         search_cur_bkref_entry):
67773         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
67774         (re_search_internal, re_search_2_stub, re_search_stub)
67775         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
67776         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
67777         (update_cur_sifted_state, check_dst_limits):
67778         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
67779         (check_subexp_limits, sift_states_bkref, merge_state_array):
67780         (check_subexp_matching_top, get_subexp, get_subexp_sub):
67781         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
67782         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
67783         (expand_bkref_cache, check_node_accept_bytes):
67784         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
67785         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
67786         (acquire_init_state_context, check_halt_node_context):
67787         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
67788         (sift_states_backward, clean_state_log_if_needed):
67789         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
67790         (find_recover_state, transit_state_sb, transit_state_mb):
67791         (transit_state_bkref, build_trtable, match_ctx_clean):
67792         Likewise.
67793         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
67794         to work around an assumption that REG_MISSING is negative.
67795
67796         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
67797         (seek_collating_symbol_entry) [defined _LIBC]:
67798         (lookup_collation_sequence_value) [defined _LIBC]:
67799         (build_range_exp, build_collating_symbol) [defined _LIBC]:
67800         Use prototypes rather than old-style function definitions.
67801         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
67802         (transit_state_sb) [0]:
67803         (find_collation_sequence_value) [defined _LIBC]: Likewise.
67804
67805         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
67806         rm_eo.
67807
67808         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
67809         (optimize_subexps, lower_subexp):
67810         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
67811         since the signed shift might overflow.  Use 1u<<31 instead.
67812         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
67813         Likewise.
67814         * lib/regexec.c (check_dst_limits_calc_pos_1,
67815         check_subexp_matching_top): Likewise.
67816
67817         * lib/regcomp.c (optimize_subexps, lower_subexp):
67818         Use CHAR_BIT rather than 8, for clarity.
67819         * lib/regexec.c (check_dst_limits_calc_pos_1):
67820         (check_subexp_matching_top): Likewise.
67821         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
67822         have to worry about portability issues when shifting it left.
67823         Remove no-longer-needed test for table_size > 0.
67824         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
67825         in a word, as the resulting behavior is undefined.
67826         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
67827         in one case, a <= should have been an <, and in another case the
67828         whole test was missing.
67829         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
67830         the standard name CHAR_BIT.
67831         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
67832         this is not true on one's complement and signed-magnitude hosts.
67833
67834         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
67835         next_last_offset.
67836         (struct re_dfa_t): Remove unused member states_alloc.
67837         * lib/regcomp.c (init_dfa): Don't initialize unused members.
67838
67839 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67840
67841         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
67842         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
67843         and large-file glibc and in 32-bit large-file Solaris.
67844
67845 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67846
67847         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
67848         lengths fit in regoff_t; this isn't true if regoff_t is the same
67849         width as size_t.
67850         * lib/regex.c (re_search_internal): 5th arg is LAST_START
67851         (= START + RANGE) instead of RANGE.  This avoids overflow
67852         problems when regoff_t is the same width as size_t.
67853         All callers changed.
67854         (re_search_2_stub): Check for overflow when adding the
67855         sizes of the two strings.
67856         (re_search_stub): Check for overflow when adding START
67857         to RANGE; if it occurs, substitute the extreme value.
67858
67859 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67860
67861         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
67862
67863 2005-08-31  Jim Meyering  <jim@meyering.net>
67864
67865         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
67866         a pointer-to-const.
67867         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
67868         (register_state): Likewise.
67869         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
67870         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
67871         (group_nodes_into_DFAstates): Likewise.
67872
67873 2005-08-31  Jim Meyering  <jim@meyering.net>
67874
67875         * check-module: Add a FIXME comment.
67876
67877 2005-08-31  Eric Blake  <ebb9@byu.net>
67878
67879         * modules/unistd-safer (Files): Add unistd--.h.
67880         * modules/stdio-safer (Files): Add stdio--.h.
67881
67882 2005-08-31  Derek Price  <derek@ximbiot.com>
67883
67884         * lib/getdelim.c (getdelim): Return EOF on EOF.
67885         Reported by Larry Jones <lawrence.jones@ugs.com>.
67886
67887 2005-08-31  Bruno Haible  <bruno@clisp.org>
67888
67889         Avoid unnecessary diffs in the generated lib/Makefile.am.
67890         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
67891         the generated files.
67892         (func_import): Don't set cmd.
67893
67894 2005-08-31  Bruno Haible  <bruno@clisp.org>
67895
67896         * lib/strstr.c: Include <stddef.h>, for NULL.
67897         * lib/strcasestr.c: Likewise.
67898         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
67899
67900 2005-08-31  Bruno Haible  <bruno@clisp.org>
67901
67902         * gnulib-tool: New option --macro-prefix.
67903         (func_import): Use macro_prefix.
67904         (import): Handle option --macro-prefix.
67905
67906 2005-08-31  Bruno Haible  <bruno@clisp.org>
67907
67908         * gnulib-tool (import): Rename most ac_* variables to cached_*.
67909         Also use new variables cached_lgpl, cached_libtool.
67910
67911 2005-08-31  Bruno Haible  <bruno@clisp.org>
67912
67913         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
67914         always instantiating them.
67915
67916 2005-08-31  Bruno Haible  <bruno@clisp.org>
67917
67918         * gnulib-tool (func_import): Read the previous cached settings
67919         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
67920         earlier added by gnulib but are now dropped. Warn when a gnulib file
67921         overwrites a non-gnulib file.
67922
67923 2005-08-31  Bruno Haible  <bruno@clisp.org>
67924
67925         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
67926         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
67927         projects that don't keep autogenerated files in CVS. Put into
67928         actioncmd only the specified modules, not the transitive closure.
67929
67930 2005-08-31  Bruno Haible  <bruno@clisp.org>
67931
67932         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
67933         Create directories that shall be filled.
67934         (import): Don't look for gl_* macros in configure.ac. Recurse across
67935         all directories containing a gnulib-cache.m4 files, if meaningful.
67936
67937 2005-08-31  Bruno Haible  <bruno@clisp.org>
67938
67939         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
67940         (import): Set seen_libtool when we see gl_LIBTOOL.
67941
67942 2005-08-31  Bruno Haible  <bruno@clisp.org>
67943
67944         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
67945         declaration macro definitions from generated gnulib.m4.
67946
67947 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
67948
67949         * lib/iconvme.h: Add prototype for iconv_alloc.
67950
67951 2005-08-29  Simon Josefsson  <jas@extundo.com>
67952
67953         * lib/iconvme.c: Fix errno.
67954
67955 2005-08-29  Bruno Haible  <bruno@clisp.org>
67956
67957         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
67958         that it works when the directory contains spaces.
67959
67960 2005-08-29  Bruno Haible  <bruno@clisp.org>
67961
67962         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
67963
67964 2005-08-29  Bruno Haible  <bruno@clisp.org>
67965
67966         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
67967         Emit more advice.
67968
67969 2005-08-29  Bruno Haible  <bruno@clisp.org>
67970         and Stepan Kasal  <kasal@ucw.cz>
67971
67972         * check-module: If more parameters are given, check each of them
67973         separately; add more exceptions, as noted by Jim Meyering.
67974         (check_module): New procedure.
67975         (%exempt_header): Now contains all exceptions.
67976
67977 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
67978
67979         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
67980
67981 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
67982
67983         * lib/iconvme.c: Split iconv_string into iconv_alloc.
67984
67985 2005-08-28  Bruno Haible  <bruno@clisp.org>
67986
67987         * m4/gnulib-tool.m4: New file.
67988
67989 2005-08-27  Jim Meyering  <jim@meyering.net>
67990
67991         * modules/unistd-safer (Files): Add pipe-safer.c.
67992         * modules/fcntl-safer (Files): Add creat-safer.c.
67993
67994 2005-08-27  Jim Meyering  <jim@meyering.net>
67995
67996         * m4/stdlib-safer.m4: New file.  From coreutils.
67997         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
67998         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
67999         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
68000         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
68001         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
68002
68003 2005-08-27  Jim Meyering  <jim@meyering.net>
68004
68005         * lib/fopen-safer.c: Merge minor changes from coreutils.
68006         * lib/dup-safer.c: Likewise.
68007         * lib/fd-safer.c: Likewise.
68008
68009         Merge from coreutils.
68010         * lib/stdio--.h: New file.
68011         * lib/stdlib--.h: New file.
68012         * lib/mkstemp-safer.c: New file.
68013
68014         GNU tar needs these.
68015         * lib/pipe-safer.c: New file.
68016         * lib/creat-safer.c: New file.
68017         * lib/fcntl--.h (creat): Define to creat_safer.
68018         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
68019         * lib/unistd--.h (pipe): Define to pipe_safer.
68020         * lib/unistd-safer.h: Declare pipe_safer.
68021
68022 2005-08-26  Simon Josefsson  <jas@extundo.com>
68023
68024         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
68025         Haible <bruno@clisp.org>.
68026
68027 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
68028
68029         * lib/regex_internal.h: Remove all references to
68030         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
68031         or better.
68032         (bitset_not, bitset_merge, bitset_not_merge):
68033         (bitset_mask, re_string_allocate, re_string_construct):
68034         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
68035         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
68036         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
68037         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
68038         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
68039         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
68040         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
68041         (re_acquire_state_context):
68042         Remove unnecessary forward decls.
68043         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
68044         Put __attribute at function definition,
68045         now that the function decl has been removed.
68046         * lib/regex_internal.c (re_string_peek_byte_case):
68047         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
68048         Likewise.
68049
68050 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
68051
68052         * m4/regex.m4: Add AC_PREREQ(2.50).
68053         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
68054
68055 2005-08-25  Simon Josefsson  <jas@extundo.com>
68056
68057         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
68058         __fsetlocking.
68059
68060 2005-08-25  Simon Josefsson  <jas@extundo.com>
68061
68062         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
68063         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
68064         GLIBC specific code.
68065
68066 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68067
68068         Make regex safe for g++.  This fixes one real bug (an "err"
68069         that should have been "*err").  g++ problem reported by
68070         Sam Steingold.
68071         * lib/regex_internal.h (re_calloc): New macro, consistent with
68072         re_malloc etc.  All callers of calloc changed to use re_calloc.
68073         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
68074         not int.  All callers changed.
68075         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
68076         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
68077         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
68078         (find_recover_state): Change "err" to "*err"; this fixes what
68079         appears to be a real bug.
68080         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
68081         versus int.
68082
68083 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68084
68085         * modules/regex (Depends-on): Add malloc, since the code
68086         assumes that !malloc(0) means failure.
68087
68088 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68089
68090         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
68091
68092         alloca modernization/simplification for regex.
68093         * lib/regex.c: Remove portability cruft for alloca.  This no longer
68094         needs to be at the start of the file, and can be moved into
68095         regex_internal.h and simplified.
68096         * lib/regex_internal.h: Include <alloca.h>.
68097         (__libc_use_alloca) [!defined _LIBC]: New macro.
68098         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
68099         now works outside glibc.
68100
68101 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68102
68103         * config/srclist.txt: Add glibc bugs 1241, 1245.
68104
68105 2005-08-25  Jim Meyering  <jim@meyering.net>
68106
68107         * lib/open-safer.c: Include <config.h>.
68108         Otherwise, we'd lose LARGEFILE support in any file using
68109         e.g. "fcntl--.h"
68110
68111 2005-08-25  Bruno Haible  <bruno@clisp.org>
68112
68113         * m4/minmax.m4: Require autoconf 2.52.
68114         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
68115         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
68116         alternatives of translit over the alphabet.
68117         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
68118
68119 2005-08-24  Simon Josefsson  <jas@extundo.com>
68120
68121         * tests/test-getpass.c: New file.
68122
68123 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68124
68125         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
68126         for GNU regex features.
68127
68128 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68129
68130         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
68131         * lib/regex.h (regerror): Likewise.
68132
68133         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
68134         requires this.  (The code never needed it.)
68135
68136         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
68137         All uses of recently-renamed identifiers changed to use the new,
68138         POSIX-compliant names.  The code will build and run just fine
68139         without these changes, but it's better to eat our own dog food
68140         and use the standard-conforming names.
68141
68142         * lib/regex.h: Fix a multitude of POSIX name space violations.
68143         These changes have an effect only for programs that define
68144         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
68145         do not change anything for programs compiled in the normal way.
68146         Also, there is no effect on the ABI.
68147
68148         (_REGEX_SOURCE): New macro.
68149         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
68150         defined and _GNU_SOURCE is not; this fixes a name space violation.
68151
68152         Rename the following macros to obey POSIX requirements.
68153         The old names are still visible as macros if _REGEX_SOURCE is defined.
68154         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
68155         RE_BACKSLASH_ESCAPE_IN_LISTS.
68156         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
68157         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
68158         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
68159         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
68160         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
68161         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
68162         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
68163         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
68164         (REG_INTERVALS): renamed from RE_INTERVALS.
68165         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
68166         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
68167         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
68168         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
68169         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
68170         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
68171         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
68172         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
68173         RE_UNMATCHED_RIGHT_PAREN_ORD.
68174         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
68175         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
68176         (REG_DEBUG): renamed from RE_DEBUG.
68177         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
68178         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
68179         unusual, since we can't clash with the POSIX REG_ICASE.
68180         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
68181         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
68182         (REG_NO_SUB): renamed from RE_NO_SUB.
68183         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
68184         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
68185         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
68186         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
68187         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
68188         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
68189         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
68190         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
68191         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
68192         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
68193         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
68194         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
68195         RE_SYNTAX_POSIX_MINIMAL_BASIC.
68196         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
68197         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
68198         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
68199         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
68200         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
68201         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
68202         (REG_FIXED): Renamed from REGS_FIXED.
68203         (REG_NREGS): Renamed from RE_NREGS.
68204
68205         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
68206         of other REG_* macros, since POSIX says the user is allowed to
68207         #undef these macros selectively.
68208
68209         (reg_errcode_t): Update comment stating what other tables need
68210         to be consistent.
68211
68212         Rename the following enum values to obey POSIX requirements.
68213         The old names are still visible as macros.
68214         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
68215         is not defined, since GNU is supposed to be a superset of POSIX as
68216         much as possible, and since we want reg_errcode_t to be a signed
68217         type for implementation consistency.
68218         (_REG_NOERROR): Renamed from REG_NOERROR.
68219         (_REG_NOMATCH): Renamed from REG_NOMATCH.
68220         (_REG_BADPAT): Renamed from REG_BADPAT.
68221         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
68222         (_REG_ECTYPE): Renamed from REG_ECTYPE.
68223         (_REG_EESCAPE): Renamed from REG_EESCAPE.
68224         (_REG_ESUBREG): Renamed from REG_ESUBREG.
68225         (_REG_EBRACK): Renamed from REG_EBRACK.
68226         (_REG_EPAREN): Renamed from REG_EPAREN.
68227         (_REG_EBRACE): Renamed from REG_EBRACE.
68228         (_REG_BADBR): Renamed from REG_BADBR.
68229         (_REG_ERANGE): Renamed from REG_ERANGE.
68230         (_REG_ESPACE): Renamed from REG_ESPACE.
68231         (_REG_BADRPT): Renamed from REG_BADRPT.
68232         (_REG_EEND): Renamed from REG_EEND.
68233         (_REG_ESIZE): Renamed from REG_ESIZE.
68234         (_REG_ERPAREN): Renamed from REG_ERPAREN.
68235         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
68236         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
68237         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
68238         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
68239
68240         (_REG_RE_NAME, _REG_RM_NAME): New macros.
68241         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
68242         changed.  But support the old name if the new one is not defined
68243         and if _REGEX_SOURCE.
68244
68245         Change the following member names in struct re_pattern_buffer.
68246         The old names are still supported if !_REGEX_SOURCE.
68247         The new names are always supported, regardless of _REGEX_SOURCE.
68248         (re_buffer): Renamed from buffer.
68249         (re_allocated): Renamed from allocated.
68250         (re_used): Renamed from used.
68251         (re_syntax): Renamed from syntax.
68252         (re_fastmap): Renamed from fastmap.
68253         (re_translate): Renamed from translate.
68254         (re_can_be_null): Renamed from can_be_null.
68255         (re_regs_allocated): Renamed from regs_allocated.
68256         (re_fastmap_accurate): Renamed from fastmap_accurate.
68257         (re_no_sub): Renamed from no_sub.
68258         (re_not_bol): Renamed from not_bol.
68259         (re_not_eol): Renamed from not_eol.
68260         (re_newline_anchor): Renamed from newline_anchor.
68261
68262         Change the following member names in struct re_registers.
68263         The old names are still supported if !_REGEX_SOURCE.
68264         The new names are always supported, regardless of _REGEX_SOURCE.
68265         (rm_num_regs): Renamed from num_regs.
68266         (rm_start): Renamed from start.
68267         (rm_end): Renamed from end.
68268
68269         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
68270         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
68271         Prepend __ to parameter names.
68272
68273         Undo yesterday's changes.
68274
68275 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68276
68277         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
68278         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
68279         lib/regex.c.
68280
68281 2005-08-24  Jim Meyering  <jim@meyering.net>
68282
68283         Sync from coreutils.
68284         * m4/fcntl-safer.m4: New file.
68285
68286         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
68287         and object files for this module.
68288
68289 2005-08-24  Jim Meyering  <jim@meyering.net>
68290
68291         Sync from coreutils.
68292         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
68293
68294 2005-08-24  Jim Meyering  <jim@meyering.net>
68295
68296         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
68297         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
68298
68299 2005-08-24  Jim Meyering  <jim@meyering.net>
68300
68301         * modules/fcntl-safer: New module.
68302         * modules/fts (Depends-on): Add fcntl-safer.
68303         * MODULES.html.sh (File descriptor based Input/Output):
68304         Add fcntl-safer.
68305
68306 2005-08-24  Bruno Haible  <bruno@clisp.org>
68307
68308         Support for unit test modules.
68309         * modules/README: Mention tests modules.
68310         * modules/TEMPLATE-TESTS: New file.
68311         * gnulib-tool: New options --extract-tests-module, --with-tests and
68312         --tests-base (unused for the moment).
68313         (testsbase, inctests): New variables.
68314         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
68315         (func_verify_module): Exclude TEMPLATE-TESTS.
68316         (func_verify_nontests_module, func_verify_tests_module): New functions.
68317         (func_get_dependencies): Add implicit dependency for tests modules.
68318         (func_get_tests_module): New function.
68319         (func_modules_transitive_closure): When --with-tests was specified,
68320         include the unit tests as well, unless explicitly avoided.
68321         (func_emit_lib_Makefile_am): Ignore the tests modules here.
68322         (func_emit_tests_Makefile_am): New function.
68323         (func_create_testdir): When --with-tests was specified, emit a
68324         tests/ directory.
68325         * MODULES.html.sh (Future developments): Update.
68326
68327 2005-08-24  Bruno Haible  <bruno@clisp.org>
68328
68329         * modules/tls-tests: New file.
68330         * tests/test-tls.c: New file, from GNU gettext.
68331
68332 2005-08-24  Bruno Haible  <bruno@clisp.org>
68333
68334         * modules/lock-tests: New file.
68335         * tests/test-lock.c: New file, from GNU gettext.
68336
68337 2005-08-24  Bruno Haible  <bruno@clisp.org>
68338
68339         * lib/lock.h: Add multiple inclusion guard.
68340         * lib/tls.h: Add multiple inclusion guard.
68341
68342 2005-08-24  Bruno Haible  <bruno@clisp.org>
68343
68344         * gnulib-tool: Add support for the --aux-dir option to
68345         --create-testdir, --create-megatestdir, --test, --megatest.
68346         (func_create_testdir, func_create_megatestdir): Optionally emit a
68347         AC_CONFIG_AUX_DIR directive.
68348         (create-testdir, create-megatestdir, test, megatest): Provide a
68349         default value for $auxdir.
68350
68351 2005-08-24  Bruno Haible  <bruno@clisp.org>
68352
68353         * gnulib-tool (import): Use compound statement instead of subshell
68354         where possible.
68355
68356 2005-08-24  Bruno Haible  <bruno@clisp.org>
68357
68358         * gnulib-tool (import): Change --aux-dir default to "build-aux".
68359
68360 2005-08-24  Bruno Haible  <bruno@clisp.org>
68361
68362         * gnulib-tool (func_version): Update.
68363
68364 2005-08-24  Bruno Haible  <bruno@clisp.org>
68365
68366         * gnulib-tool (func_import, func_create_testdir,
68367         func_create_megatestdir): Quote all autoconf macro arguments.
68368
68369 2005-08-24  Bruno Haible  <bruno@clisp.org>
68370
68371         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
68372         option --force, because --force causes the aclocal.m4 of each
68373         subdirectory to be newer than the corresponding config.h.in.
68374
68375 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68376
68377         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
68378         All contents moved to gl_REGEX.
68379         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
68380         assume that it does.
68381
68382 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68383
68384         * lib/regex.h (REG_NOSYS)
68385         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
68386         Define, since POSIX requires it as of 2001.
68387         (_REG_ENOSYS)
68388         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
68389         New private symbol, used to keep the enum signed in all cases.
68390         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
68391         Youngman in
68392         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
68393
68394         * lib/regex_internal.c (re_string_skip_chars, register_state):
68395         (calc_state_hash):
68396         Remove forward decls; no longer needed now that we use prototypes.
68397         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
68398         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
68399         (clean_state_log_if_needed): Likewise.
68400
68401 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68402
68403         * config/srclist.txt: Add glibc bugs 1231-1233.
68404
68405 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68406
68407         Fix problems reported by Sam Steingold in
68408         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
68409         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
68410         assumed that reg_errcode_t is a signed type, which is not
68411         necessarily true if _XOPEN_SOURCE is not defined.
68412         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
68413         since some compilers warn about it otherwise.
68414
68415 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68416
68417         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
68418         (init_word_char, create_initial_state, duplicate_node_closure):
68419         (fetch_token, peek_token_bracket, build_range_exp):
68420         (build_collating_symbol): Remove forward decls; no longer needed
68421         now that we use prototypes.
68422
68423         * lib/regcomp.c:
68424         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
68425         (re_compile_fastmap_iter, regcomp, regerror, regfree):
68426         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
68427         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
68428         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
68429         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
68430         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
68431         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
68432         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
68433         (build_range_exp, build_collating_symbol, parse_bracket_exp):
68434         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
68435         (build_charclass, build_charclass_op, fetch_number, create_tree):
68436         (create_token_tree, mark_opt_subexp, duplicate_tree):
68437         Use prototypes rather than old-style definitions.
68438
68439         * lib/regex_internal.c:
68440         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
68441         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
68442         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
68443         (re_string_reconstruct, re_string_peek_byte_case):
68444         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
68445         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
68446         (re_node_set_init_copy, re_node_set_add_intersect):
68447         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
68448         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
68449         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
68450         (re_acquire_state, re_acquire_state_context, register_state):
68451         (create_ci_newstate, create_cd_newstate, free_state):
68452         Likewise.
68453         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
68454         re_search_2):
68455         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
68456         (re_search_internal, prune_impossible_nodes):
68457         (acquire_init_state_context, check_matching, static):
68458         (check_halt_node_context, check_halt_state_context, proceed_next_node):
68459         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
68460         (update_regs, sift_states_backward, build_sifted_states):
68461         (clean_state_log_if_needed, merge_state_array):
68462         (update_cur_sifted_state, add_epsilon_src_nodes):
68463         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
68464         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
68465         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
68466         (find_recover_state, check_subexp_matching_top, transit_state_mb):
68467         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
68468         (check_arrival, check_arrival_add_next_nodes):
68469         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
68470         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
68471         (check_node_accept_bytes, check_node_accept, extend_buffers):
68472         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
68473         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
68474         (sift_ctx_init):
68475         Likewise.
68476
68477         * lib/regex_internal.h:
68478         (re_string_allocate, re_string_construct, re_string_reconstruct):
68479         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
68480         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
68481         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
68482         (re_string_context_at, re_string_peek_byte_case):
68483         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
68484         is defined, since we now use prototypes always.
68485
68486         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
68487         C89 or better.  All uses removed.
68488
68489 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68490
68491         * config/srclist.txt: Add glibc bugs 1220-1227.
68492
68493 2005-08-20  Jim Meyering  <jim@meyering.net>
68494
68495         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
68496         of unused local, dfa.
68497
68498 2005-08-20  Bruno Haible  <bruno@clisp.org>
68499
68500         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
68501
68502 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68503
68504         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
68505         (re_node_set_insert_last, re_dfa_add_node):
68506         Rename local variables to avoid GCC shadowing warnings.
68507
68508 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68509
68510         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
68511         [defined lint]: Suppress bogus uninitialized-variable warnings.
68512
68513         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
68514         and let the caller return REG_ESPACE if out of space.  This
68515         removes an uninitialied-variable warning with GCC 4.0.1, and also
68516         avoids taking the address of a local variable.  All callers
68517         changed.
68518
68519 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68520
68521         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
68522         $LIBCSRC/posix/regexec.c.
68523         Add glibc bug 1217 for regcomp.c.
68524
68525 2005-08-19  Jim Meyering  <jim@meyering.net>
68526
68527         * lib/regexec.c (proceed_next_node): Redo local variables to
68528         avoid GCC shadowing warnings.
68529
68530 2005-08-18  Bruno Haible  <bruno@clisp.org>
68531
68532         * lib/strstr.c (strstr): Fix return value in multibyte case.
68533         * lib/strcasestr.c (strcasestr): Likewise.
68534
68535 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
68536
68537         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
68538
68539 2005-08-17  Jim Meyering  <jim@meyering.net>
68540
68541         Make the %s format (seconds since the epoch) work for a negative
68542         number and when used with a zero-padded field width, e.g. %015s.
68543
68544         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
68545         label so that it precedes the code to set `digits'.  Otherwise,
68546         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
68547         print `00-22'.  Now, it prints `-0022', as it should.
68548
68549 2005-08-17  Bruno Haible  <bruno@clisp.org>
68550
68551         * modules/strstr (Files): Add m4/mbrtowc.m4.
68552         (Depends-on): Add mbuiter.
68553
68554 2005-08-17  Bruno Haible  <bruno@clisp.org>
68555
68556         * modules/strcasestr: New file.
68557         * MODULES.html.sh (String handling, based on ANSI C 89): Add
68558         strcasestr.
68559
68560 2005-08-17  Bruno Haible  <bruno@clisp.org>
68561
68562         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
68563
68564 2005-08-17  Bruno Haible  <bruno@clisp.org>
68565
68566         * modules/mbuiter: New file.
68567         * MODULES.html.sh (Extended multibyte and wide character utilities):
68568         Add mbuiter.
68569
68570 2005-08-17  Bruno Haible  <bruno@clisp.org>
68571
68572         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
68573         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
68574
68575 2005-08-17  Bruno Haible  <bruno@clisp.org>
68576
68577         * m4/strcasestr.m4: New file.
68578
68579 2005-08-17  Bruno Haible  <bruno@clisp.org>
68580
68581         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
68582         * lib/strstr.c: Completely rewritten, with multibyte locale support.
68583
68584 2005-08-17  Bruno Haible  <bruno@clisp.org>
68585
68586         * lib/strcasestr.h: New file.
68587         * lib/strcasestr.c: New file.
68588
68589 2005-08-17  Bruno Haible  <bruno@clisp.org>
68590
68591         * lib/strcasecmp.c: Use mbuiter.h.
68592
68593 2005-08-17  Bruno Haible  <bruno@clisp.org>
68594
68595         * lib/mbuiter.h: New file.
68596
68597 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
68598
68599         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
68600         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
68601         and gl_GETOPT are both invoked via different paths (as happens
68602         with GNU tar CVS because it uses both argp and getopt), the former
68603         wins.
68604
68605 2005-08-16  Bruno Haible  <bruno@clisp.org>
68606
68607         * modules/tls: New file.
68608         * MODULES.html.sh (Multithreading): Add tls.
68609
68610 2005-08-16  Bruno Haible  <bruno@clisp.org>
68611
68612         * modules/strnlen1: New file.
68613         * MODULES.html.sh (String handling): Add strnlen1.
68614
68615 2005-08-16  Bruno Haible  <bruno@clisp.org>
68616
68617         * modules/strcase (Files): Add m4/mbrtowc.m4.
68618         (Depends-on): Add strnlen1, mbchar.
68619
68620 2005-08-16  Bruno Haible  <bruno@clisp.org>
68621
68622         * modules/mbiter: New file.
68623         * MODULES.html.sh (Extended multibyte and wide character utilities):
68624         Add mbiter.
68625
68626 2005-08-16  Bruno Haible  <bruno@clisp.org>
68627
68628         * modules/mbfile: New file.
68629         * MODULES.html.sh (Extended multibyte and wide character utilities):
68630         Add mbfile.
68631
68632 2005-08-16  Bruno Haible  <bruno@clisp.org>
68633
68634         * modules/mbchar: New file.
68635         * MODULES.html.sh (Extended multibyte and wide character utilities):
68636         New section.
68637
68638 2005-08-16  Bruno Haible  <bruno@clisp.org>
68639
68640         * m4/tls.m4: New file, from GNU gettext.
68641
68642 2005-08-16  Bruno Haible  <bruno@clisp.org>
68643
68644         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
68645         always.
68646         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
68647
68648 2005-08-16  Bruno Haible  <bruno@clisp.org>
68649
68650         * m4/mbiter.m4: New file.
68651
68652 2005-08-16  Bruno Haible  <bruno@clisp.org>
68653
68654         * m4/mbfile.m4: New file.
68655
68656 2005-08-16  Bruno Haible  <bruno@clisp.org>
68657
68658         * m4/mbchar.m4: New file.
68659
68660 2005-08-16  Bruno Haible  <bruno@clisp.org>
68661
68662         * lib/tls.h: New file, from GNU gettext.
68663         * lib/tls.c: New file, from GNU gettext.
68664
68665 2005-08-16  Bruno Haible  <bruno@clisp.org>
68666
68667         * lib/strnlen1.h: New file.
68668         * lib/strnlen1.c: New file.
68669
68670 2005-08-16  Bruno Haible  <bruno@clisp.org>
68671
68672         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
68673         (mbi_init): Update.
68674         (mbi_avail, mbi_advance): Let the iteration end before the terminating
68675         NUL byte, not after it.
68676
68677 2005-08-16  Bruno Haible  <bruno@clisp.org>
68678
68679         * lib/strcase.h (strcasecmp): Add note in comments.
68680         * lib/strncasecmp.c: Use code from strcasecmp.c.
68681         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
68682         (strcasecmp): Work correctly in multibyte locales.
68683
68684 2005-08-16  Bruno Haible  <bruno@clisp.org>
68685
68686         * lib/mbiter.h: New file.
68687
68688 2005-08-16  Bruno Haible  <bruno@clisp.org>
68689
68690         * lib/mbfile.h: New file.
68691
68692 2005-08-16  Bruno Haible  <bruno@clisp.org>
68693
68694         * lib/mbchar.h: New file.
68695         * lib/mbchar.c: New file.
68696
68697 2005-08-16  Bruno Haible  <bruno@clisp.org>
68698
68699         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
68700         the valid ones. Makes the comparison operations transitive:
68701         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
68702         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
68703
68704 2005-08-15  Simon Josefsson  <jas@extundo.com>
68705
68706         * modules/ssize_t (License): Change to 'unlimited'.
68707
68708         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
68709
68710 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68711
68712         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
68713         Add comments for each pending glibc patch.
68714
68715 2005-08-15  Bruno Haible  <bruno@clisp.org>
68716
68717         * lib/regex.h (__restrict_arr): Don't define to __restrict if
68718         __cplusplus is defined.
68719
68720 2005-08-14  Jim Meyering  <jim@meyering.net>
68721
68722         Sync from coreutils.
68723
68724         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
68725         Use the hash-table-based cycle-detection code not just when
68726         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
68727         Reported by James Youngman in
68728         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
68729         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
68730         FTS_TIGHT_CYCLE_CHECK.
68731         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
68732         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
68733         once again.
68734         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
68735         * lib/fts.c (fd_safer): Remove decl.
68736         Include fcntl--.h rather than unistd-safer.h
68737         (fts_safe_changedir): Don't call fd_safer; no longer needed
68738         now that we include fcntl--.h.
68739
68740 2005-08-12  Simon Josefsson  <jas@extundo.com>
68741
68742         * modules/getndelim2: Use ssize_t module.
68743         * modules/getnline: Likewise.
68744         * modules/safe-read: Likewise.
68745         * modules/xreadlink: Likewise.
68746
68747         * modules/ssize_t: New file.
68748
68749 2005-08-12  Simon Josefsson  <jas@extundo.com>
68750
68751         * m4/readline.m4: Look for termcap, curses or ncurses if required.
68752
68753 2005-08-12  Simon Josefsson  <jas@extundo.com>
68754
68755         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68756         ssize_t.
68757
68758 2005-08-12  Simon Josefsson  <jas@extundo.com>
68759
68760         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
68761         readline, getdelim and check_version.
68762         (Support for systems lacking ISO C 99: Sizes of integer types):
68763         Add size_max.
68764
68765 2005-08-12  Bruno Haible  <bruno@clisp.org>
68766
68767         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
68768
68769 2005-08-11  Simon Josefsson  <jas@extundo.com>
68770
68771         * modules/readline: New file.
68772
68773         * modules/strnlen (Files): Add strnlen.h.
68774
68775 2005-08-11  Simon Josefsson  <jas@extundo.com>
68776
68777         * m4/readline.m4: New file.
68778
68779 2005-08-11  Simon Josefsson  <jas@extundo.com>
68780
68781         * lib/readline.h, readline.c: New file.
68782
68783 2005-08-11  Simon Josefsson  <jas@extundo.com>
68784
68785         * doc/gnulib.texi (Initial import, Finishing touches): Mention
68786         gl_AVOID.
68787
68788 2005-08-11  Bruno Haible  <bruno@clisp.org>
68789
68790         * lib/strnlen.h (strnlen): Change parameter name to match comment.
68791
68792 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
68793
68794         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
68795
68796 2005-08-10  Simon Josefsson  <jas@extundo.com>
68797
68798         * tests/test-iconvme.c: New file.
68799
68800 2005-08-10  Simon Josefsson  <jas@extundo.com>
68801
68802         * m4/strnlen.m4: New file.
68803
68804         * m4/strndup.m4: Don't check for strnlen declaration, done in
68805         strnlen.m4.
68806
68807 2005-08-10  Simon Josefsson  <jas@extundo.com>
68808
68809         * lib/strndup.c: Use strnlen.h.
68810
68811         * lib/strnlen.h: New file.
68812
68813 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
68814
68815         * README: Typos.
68816
68817 2005-08-02  Simon Josefsson  <jas@extundo.com>
68818
68819         * modules/readline: New file.
68820
68821 2005-08-02  Simon Josefsson  <jas@extundo.com>
68822
68823         * modules/getdelim: New file.
68824
68825         * modules/getline: Rewrite, don't use getndelim2.
68826
68827 2005-08-02  Simon Josefsson  <jas@extundo.com>
68828
68829         * m4/getline.m4: Separate out getdelim stuff into separate module.
68830
68831         * m4/getdelim.m4: New file.
68832
68833 2005-08-02  Simon Josefsson  <jas@extundo.com>
68834
68835         * lib/getline.h, getline.c: Rewrite.
68836
68837         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
68838
68839 2005-07-31  Bruno Haible  <bruno@clisp.org>
68840
68841         * lib/lock.h (gl_lock_initializer): New macro.
68842         (gl_lock_define_initialized): Use it.
68843         (gl_rwlock_initializer): New macro.
68844         (gl_rwlock_define_initialized): Use it.
68845         (gl_recursive_lock_initializer): New macro.
68846         (gl_recursive_lock_define_initialized): Use it.
68847
68848 2005-07-30  Karl Berry  <karl@gnu.org>
68849
68850         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
68851         Report from Ben Pfaff, regarding getopt.
68852
68853 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
68854
68855         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
68856         normal way.
68857         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
68858         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
68859         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
68860         (gl_GETOPT): Use the new macros.  Most of the implementation
68861         is moved to the new macros.  This is for programs like Emacs
68862         that don't want all the functionality of gl_GETOPT.
68863
68864 2005-07-26  Bruno Haible  <bruno@clisp.org>
68865
68866         * m4/lock.m4: Update from GNU gettext.
68867
68868 2005-07-26  Bruno Haible  <bruno@clisp.org>
68869
68870         * lib/lock.h: Update from GNU gettext.
68871         * lib/lock.c: Update from GNU gettext.
68872
68873 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
68874
68875         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
68876         obsolescent AC_TRY_RUN.  Include the default includes files, for
68877         'exit'.
68878
68879 2005-07-24  Bruno Haible  <bruno@clisp.org>
68880
68881         * modules/visibility: New file.
68882         * MODULES.html.sh (Misc): Add visibility.
68883
68884 2005-07-24  Bruno Haible  <bruno@clisp.org>
68885
68886         * m4/visibility.m4: New file.
68887
68888 2005-07-24  Bruno Haible  <bruno@clisp.org>
68889
68890         * doc/visibility.texi: New file.
68891
68892 2005-07-22  Bruno Haible  <bruno@clisp.org>
68893
68894         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
68895         $(ALLOCA_H), redundant through BUILT_SOURCES.
68896         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
68897         redundant through BUILT_SOURCES.
68898         * modules/byteswap (Makefile.am): Remove explicit dependency on
68899         $(BYTESWAP_H), redundant through BUILT_SOURCES.
68900         * modules/fnmatch (Makefile.am): Remove explicit dependency on
68901         $(FNMATCH_H), redundant through BUILT_SOURCES.
68902         * modules/getopt (Makefile.am): Remove explicit dependency on
68903         $(GETOPT_H), redundant through BUILT_SOURCES.
68904         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
68905         redundant through BUILT_SOURCES.
68906         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
68907         redundant through BUILT_SOURCES.
68908         * modules/stdbool (Makefile.am): Remove explicit dependency on
68909         $(STDBOOL_H), redundant through BUILT_SOURCES.
68910         * modules/stdint (Makefile.am): Remove explicit dependency on
68911         $(STDINT_H), redundant through BUILT_SOURCES.
68912         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
68913         Remove explicit dependency on $(SYSEXITS_H).
68914         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
68915
68916 2005-07-18  Simon Josefsson  <jas@extundo.com>
68917
68918         * lib/check-version.c (check_version): Accept identical versions too.
68919
68920 2005-07-18  Bruno Haible  <bruno@clisp.org>
68921
68922         * modules/lock: New file.
68923         * MODULES.html.sh (Multithreading): New section.
68924
68925 2005-07-18  Bruno Haible  <bruno@clisp.org>
68926
68927         * m4/lock.m4: New file, from GNU gettext.
68928
68929 2005-07-18  Bruno Haible  <bruno@clisp.org>
68930
68931         * lib/lock.h: New file, from GNU gettext.
68932         * lib/lock.c: New file, from GNU gettext.
68933
68934 2005-07-18  Bruno Haible  <bruno@clisp.org>
68935
68936         * lib/lock.h (gl_once_t): New type.
68937         (gl_once_define, gl_once): New macros.
68938         * lib/lock.c (fresh_once): New variable.
68939         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
68940         functions.
68941
68942 2005-07-16  Simon Josefsson  <jas@extundo.com>
68943
68944         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
68945         workaround, suggested by Bruno.
68946
68947 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
68948
68949         * modules/xalloc (Depends-on): Add xalloc-die.
68950         * modules/xvasprintf (Depends-on): Add xalloc-die.
68951
68952 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
68953
68954         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
68955         with a minor change.
68956
68957 2005-07-15  Bruno Haible  <bruno@clisp.org>
68958
68959         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
68960         When using lib/poll.c, define poll as rpl_poll.
68961
68962 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
68963
68964         * modules/argp (Depends-on): Remove unlocked-io.
68965
68966 2005-07-14  Derek Price  <derek@ximbiot.com>
68967
68968         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
68969         for glob symlink bug.
68970
68971 2005-07-14  Bruno Haible  <bruno@clisp.org>
68972
68973         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
68974         Instead, test for *_unlocked function declarations directly.
68975
68976 2005-07-11  Simon Josefsson  <jas@extundo.com>
68977
68978         * modules/size_max: New file.
68979
68980         * modules/xsize: Depend on size_max module for size_max.m4.
68981
68982 2005-07-11  Simon Josefsson  <jas@extundo.com>
68983
68984         * lib/size_max.h: New file.
68985
68986 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
68987
68988         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
68989         copyright symbol and the year.
68990         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
68991         (version_etc_va): Use parameterized copyright notice.
68992         Reword to conform to the current GNU coding standards.
68993
68994 2005-07-11  Karl Berry  <karl@gnu.org>
68995
68996         * doc/gnulib.texi (Quoting): new node.
68997         (Initial import): more info, from Patrice.
68998
68999 2005-07-11  Bruno Haible  <bruno@clisp.org>
69000
69001         * gnulib-tool (func_usage): Document option --avoid.
69002         (Command line options): Handle --avoid.
69003         (func_acceptable): New function.
69004         (func_modules_transitive_closure): Use it.
69005
69006 2005-07-11  Bruno Haible  <bruno@clisp.org>
69007
69008         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
69009         Reported by Jim Meyering.
69010
69011 2005-07-10  Bruno Haible  <bruno@clisp.org>
69012
69013         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
69014         Needed when size_t is smaller than 'unsigned int'.
69015         Reported by Paul Eggert.
69016
69017 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69018
69019         * modules/argp (Depends-on): Add unlocked-io
69020
69021 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69022
69023         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
69024         block of defines.
69025
69026 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
69027
69028         * config/srclist.txt: Comment out regcomp.c, since we have a porting
69029         fix now.
69030
69031 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
69032         and Paul Eggert  <eggert@cs.ucla.edu>
69033
69034         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
69035         in wint_t, not wchar_t.  Remove now-unnecessary cast.
69036
69037 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
69038
69039         * modules/regex (Files): Add lib/regex_internal.c,
69040         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
69041         (Depends-on): Add extensions.
69042         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
69043
69044 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
69045
69046         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
69047         pathconf.
69048         * m4/same.m4 (gl_SAME): Likewise.
69049         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
69050
69051         * m4/regex.m4: Adjust to new libc regex implementation.
69052         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
69053         all the .c and .h parts of (the new) regex.
69054         Quote the m4 stuff better.
69055         Check for RE_ICASE bug of old gnulib.
69056         Check for REG_STARTEND of recent libc.
69057         Rename local variables from jm_* to gl_*.
69058         Quote operand of "test -f".
69059         Say "recent enough" version of libc, not "version 2".
69060         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
69061         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
69062         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
69063         Remove check for btowc, isascii.
69064         Require AM_LANGINFO_CODESET.
69065
69066 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
69067
69068         * lib/regex.c, regex.h: Sync from libc.
69069         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
69070         * lib/regexec.c:
69071         New files, synced from libc, except that regex_internal.h
69072         currently has a small porting fix.
69073
69074 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
69075
69076         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
69077         regex_internal.c, regexec.c.
69078         Add regex_internal.h too, but as a comment, since the libc version
69079         is currently broken in gnulib mode.
69080
69081 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
69082
69083         Support programs like Emacs that use gnulib but not gettext.
69084         * MODULES.html.sh (Internationalization functions): Add gettext-h.
69085         * modules/gettext-h: New file.
69086         * modules/gettext (Files): Remove lib/gettext.h.
69087         (Depends-on): Add gettext-h.
69088         (Makefile.am): Remove lib_SOURCES.
69089         * modules/argmatch, modules/c-stack, modules/closeout:
69090         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
69091         * modules/execute, modules/file-type, modules/getaddrinfo:
69092         * modules/getopt, modules/human, modules/javacomp:
69093         * modules/javaexec, modules/mkdir-p, modules/obstack:
69094         * modules/openat, modules/pagealign_alloc, modules/pipe:
69095         * modules/quotearg, modules/regex, modules/rpmatch:
69096         * modules/unicodeio, modules/userspec, modules/version-etc:
69097         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
69098         * modules/xsetenv:
69099         Depend on gettext-h, not gettext.
69100
69101 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
69102
69103         * gnulib-tool (func_import): Add support for 'public domain' license.
69104         * modules/alloca, modules/atexit, modules/memmove:
69105         Now public domain, not GPL.
69106         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
69107         * modules/realloc, modules/strerror, modules/strtod:
69108         Now LGPL, not GPL.
69109
69110 2005-07-05  Bruno Haible  <bruno@clisp.org>
69111
69112         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
69113         autoconf CVS. Needed for mingw.
69114
69115 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69116
69117         Remove the dependency of the strftime module on the tzset module.
69118         * modules/strftime (Depends-on): Remove dependency on tzset.
69119
69120 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69121
69122         Remove the dependency of the strftime module on the tzset module.
69123         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
69124         gl_FUNC_TZSET_CLOBBER.
69125
69126 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69127
69128         Remove the dependency of the strftime module on the tzset module.
69129         * lib/strftime.c (my_strftime)
69130         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
69131         Copy the input structure, to work around some of the bug with
69132         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
69133         Solaris releases, you should also use the tzset module, but we won't
69134         require it as a dependency any more since we don't want LGPLed code
69135         to depend on GPLed code.
69136
69137 2005-07-02  Jim Meyering  <jim@meyering.net>
69138
69139         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
69140         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
69141         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
69142         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
69143
69144 2005-07-02  Jim Meyering  <jim@meyering.net>
69145
69146         * lib/backupfile.c (backup_args): Change a `0' to NULL.
69147
69148 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
69149
69150         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
69151         declares only 'struct timespec;' (!).
69152
69153 2005-07-01  Jim Meyering  <jim@meyering.net>
69154
69155         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
69156         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
69157         * lib/save-cwd.c, tempname.c:
69158         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
69159         and don't include <sys/file.h>).
69160
69161 2005-06-29  Jim Meyering  <jim@meyering.net>
69162
69163         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
69164         type name.  Use the variable name instead.
69165         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
69166         Likewise.
69167
69168 2005-06-28  Simon Josefsson  <jas@extundo.com>
69169
69170         * modules/check-version (Files): Add check-version.m4.
69171
69172 2005-06-28  Simon Josefsson  <jas@extundo.com>
69173
69174         * m4/check-version.m4: New file, suggested by Jim Meyering
69175         <jim@meyering.net>.
69176
69177 2005-06-28  Simon Josefsson  <jas@extundo.com>
69178
69179         * lib/check-version.h, lib/check-version.c: New files.
69180
69181 2005-06-28  Simon Josefsson  <jas@extundo.com>
69182
69183         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
69184         collision with global variable.  Better indentation.  Don't
69185         increment buffer pointer beyond buffer end.  Based on comments
69186         from Paul Eggert <eggert@cs.ucla.edu>.
69187
69188         * lib/base64.h: Indent.
69189
69190 2005-06-28  Simon Josefsson  <jas@extundo.com>
69191
69192         * doc/gnulib.texi (Library version handling): New section.
69193
69194 2005-06-28  Jim Meyering  <jim@meyering.net>
69195
69196         * check-module (find_included_lib_files): Hard-code another
69197         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
69198         but modules/fts-lgpl (correctly) does not list those files.
69199
69200         * modules/canonicalize (Files): Add lib/pathmax.h.
69201
69202 2005-06-25  Simon Josefsson  <jas@extundo.com>
69203
69204         * modules/check-version: New file.
69205
69206 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
69207
69208         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
69209         initializer of struct addrinfo, as an indication that we don't
69210         care how many members the structure has.
69211
69212 2005-06-24  Derek Price  <derek@ximbiot.com>
69213         and Bruno Haible  <bruno@clisp.org>
69214
69215         Remove stat module & update lstat.
69216         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
69217         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
69218         * m4/stat.m4: Remove this file.
69219
69220 2005-06-24  Derek Price  <derek@ximbiot.com>
69221         and Bruno Haible  <bruno@clisp.org>
69222
69223         Remove stat module & update lstat.
69224         * lib/stat.c: Remove this file...
69225         (slash_aware_lstat): ...moving this content and its support...
69226         * lib/lstat.c (rpl_lstat): ...into here.
69227         * lib/lstat.h: New file.
69228
69229 2005-06-24  Derek Price  <derek@ximbiot.com>
69230         and Bruno Haible  <bruno@clisp.org>
69231
69232         Remove stat module & update lstat.
69233         * config/srclist.txt (libc sources): Remove stat.
69234
69235 2005-06-24  Derek Price  <derek@ximbiot.com>
69236         and Bruno Haible  <bruno@clisp.org>
69237
69238         Remove stat module & update lstat.
69239         * MODULES.html.sh (stat): Remove.
69240         * MODULES.html: Regenerated.
69241         * modules/lstat (Description): Correct function name.
69242         (Files): Add "lstat.h".
69243         (Depends-on): Remove stat, add xalloc, stat-macros.
69244         * modules/stat: Remove this file.
69245         (Include): Add "lstat.h", remove <sys/stat.h>.
69246
69247 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
69248
69249         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
69250         (ranged_convert): Don't save conversion in a temporary struct.
69251         This causes a warning with GCC 4.0.0, and anyway in the typical
69252         case it's not worth the extra 100 bytes or so of code.
69253         (ranged_convert, __mktime_internal): When calling a function via a
69254         pointer P, use P () rather than (*P) (), as we now assume C89 or
69255         better.
69256
69257 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69258
69259         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
69260         "who -r" failed to give output.  Problem reported by Tim Waugh.
69261
69262         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
69263         (xcalloc): Use it to avoid needless tests.
69264         Problem reported by Jim Meyering.
69265
69266 2005-06-20  Derek Price  <derek@ximbiot.com>
69267
69268         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
69269         unnecessary for Autoconfs > 2.59c.
69270
69271 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69272
69273         * lib/argp.h (__option_is_short): Check upper limit of
69274         __key. Isprint() requires its argument to have the value
69275         of an unsigned char or EOF.
69276
69277 2005-06-16  Jim Meyering  <jim@meyering.net>
69278
69279         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
69280         when either N or S is zero.
69281
69282 2005-06-16  Derek Price  <derek@ximbiot.com>
69283
69284         * m4/bison.m4: Declare YACC & YFLAGS precious.
69285
69286 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
69287
69288         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
69289         multibyte string or pattern, fall back on unibyte matching.
69290         Problem reported by James Youngman.
69291
69292 2005-06-08  Bruno Haible  <bruno@clisp.org>
69293
69294         * modules/csharpcomp: New file.
69295         * MODULES.html.sh (C#): Add csharpcomp.
69296
69297 2005-06-08  Bruno Haible  <bruno@clisp.org>
69298
69299         * m4/csharpcomp.m4: New file, from GNU gettext.
69300
69301 2005-06-08  Bruno Haible  <bruno@clisp.org>
69302
69303         * lib/csharpcomp.h: New file, from GNU gettext.
69304         * lib/csharpcomp.c: New file, from GNU gettext.
69305         * lib/csharpcomp.sh.in: New file, from GNU gettext.
69306
69307 2005-06-08  Bruno Haible  <bruno@clisp.org>
69308
69309         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
69310         warning on mingw.
69311
69312 2005-06-07  Derek Price  <derek@ximbiot.com>
69313
69314         Sync from CVS.
69315         * lib/glob_.h: Indent nested #ifdef.
69316
69317 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
69318
69319         Sync from coreutils.
69320         Use "file name" when talking about file names, instead of "filename"
69321         or "path", as per the GNU coding standards.
69322         * lib/mkdir-p.c: Renamed from makepath.c.
69323         (make_dir_parents): Renamed from make_path.  All callers changed.
69324         * lib/mkdir-p.h: Likewise.  All includers changed.
69325         * lib/filenamecat.c: Renamed from path-concat.c.
69326         (file_name_concat): Renamed from path_concat.  All callers changed.
69327         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
69328         * lib/filenamecat.h: Likewise.  All includers changed.
69329         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
69330         in comments or local variable names.
69331         * lib/basename.c: Likewise.
69332         * lib/canonicalize.c, canonicalize.h: Likewise.
69333         * lib/dirname.c, dirname.h: Likewise.
69334         * lib/euidaccess.c: Likewise.
69335         * lib/exclude.c: Likewise
69336         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
69337         * lib/fsusage.c, fsuage.h: Likewise.
69338         * lib/fts.c, fts_.h: Likewise.
69339         * lib/getcwd.c: Likewise.
69340         * lib/getloadavg.c: Likewise.
69341         * lib/mkstemp.c: Likewise.
69342         * lib/mountlist.c, mountlist.h: Likewise.
69343         * lib/openat.c, openat.h: Likewise.
69344         * lib/readlink-stub.c: Likewise.
69345         * lib/readutmp.c, readutmp.h: Likewise.
69346         * lib/rename.c: Likewise.
69347         * lib/rmdir.c: Likewise.
69348         * lib/same.c: Likewise.
69349         * lib/savedir.c: Likewise.
69350         * lib/stripslash.c: Likewise.
69351         * lib/tempname.c: Likewise.
69352         * lib/xreadlink.c: Likewise.
69353         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
69354         All uses changed.
69355         * lib/exclude.h: Likewise.
69356
69357         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
69358         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
69359         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
69360         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
69361         * lib/pathmax.h: Include <limits.h> unconditionally, since other
69362         files have been getting away with it for years (MORE/BSD 4.3
69363         is extinct now).
69364         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
69365         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
69366
69367         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
69368         Define to 256, not 255, as per modern POSIX.
69369
69370 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
69371
69372         Sync from coreutils.
69373         Use "file name" when talking about file names, instead of "filename"
69374         or "path", as per the GNU coding standards.
69375         * MODULES.html.sh: mkdir-p renamed from makepath.
69376         filenamecat renamed from path-concat.
69377         * modules/filenamecat: Renamed from modules/path-concat.
69378         (Files): filenamecat.h and filenamecat.c renamed from
69379         path-concat.h and path-concat.c.
69380         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
69381         (Include): filenamecat.h, not path-concat.h.
69382         * modules/mkdir-p: Renamed from modules/makepath.
69383         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
69384         makepath.c.
69385         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
69386         (Include): mkdir-p.h, not makepath.h.
69387
69388 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
69389
69390         Sync from coreutils.
69391         * m4/mkdir-p.m4: Renamed from makepath.m4.
69392         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
69393         Rename files from makepath.c to mkdir-p.c, and from
69394         makepath.h to mkdir-p.h.
69395         * m4/filenamecat.m4: Renamed from path-concat.m4.
69396         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
69397         Rename files from path-concat.c to filenamecat.c,
69398         and from path-concat.h to filenamecat.h.
69399         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
69400         "file name" in local variables or comments.
69401         * m4/rename.m4: Likewise.
69402
69403 2005-06-01  Bruno Haible  <bruno@clisp.org>
69404
69405         * modules/csharpexec: New file.
69406         * MODULES.html.sh (C#): New section.
69407
69408 2005-06-01  Bruno Haible  <bruno@clisp.org>
69409
69410         * m4/csharp.m4: New file, from GNU gettext.
69411         * m4/csharpexec.m4: New file, from GNU gettext.
69412
69413 2005-06-01  Bruno Haible  <bruno@clisp.org>
69414
69415         * lib/csharpexec.h: New file, from GNU gettext.
69416         * lib/csharpexec.c: New file, from GNU gettext.
69417         * lib/csharpexec.sh.in: New file, from GNU gettext.
69418
69419 2005-05-31  Derek Price  <derek@ximbiot.com>
69420             Paul Eggert  <eggert@cs.ucla.edu>
69421
69422         Sync from cvs.
69423         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
69424
69425 2005-05-31  Derek Price  <derek@ximbiot.com>
69426             Paul Eggert  <eggert@cs.ucla.edu>
69427
69428         Sync from cvs.
69429         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
69430
69431 2005-05-29  Derek Price  <derek@ximbiot.com>
69432
69433         * config/srclist.txt (glob_.h, glob.c): Add these files.
69434
69435 2005-05-29  Derek Price  <derek@ximbiot.com>
69436
69437         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
69438         * modules/glob: New file.
69439         * modules/getlogin_r: Add link to POSIX spec in description.
69440
69441 2005-05-29  Derek Price  <derek@ximbiot.com>
69442             Paul Eggert  <eggert@cs.ucla.edu>
69443
69444         * m4/glob.m4: New file.
69445
69446 2005-05-29  Derek Price  <derek@ximbiot.com>
69447             Paul Eggert  <eggert@cs.ucla.edu>
69448
69449         * lib/glob_.h, lib/glob.c: New files.
69450
69451 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
69452
69453         * modules/fts (Files): Remove m4/inttypes-pri.m4.
69454         * modules/fts-lgpl (Depends-on): Remove gettext.
69455
69456 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
69457
69458         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
69459         and don't require gt_INTTYPES_PRI.
69460
69461 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
69462
69463         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
69464
69465         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
69466         the configuration hassle isn't worth it.
69467         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
69468         (LONGEST_MODIFIER, PRIuMAX): Remove.
69469
69470 2005-05-27  Bruno Haible  <bruno@clisp.org>
69471
69472         * lib/getlogin_r.h: Remove second include of <stddef.h>.
69473
69474 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
69475
69476         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
69477         _POSIX_PTHREAD_SEMANTICS for Solaris.
69478
69479 2005-05-25  Derek Price  <derek@ximbiot.com>
69480
69481         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
69482
69483 2005-05-25  Derek Price  <derek@ximbiot.com>
69484             Paul Eggert  <eggert@cs.ucla.edu>
69485
69486         * modules/getlogin_r, m4/getlogin_r.m4: New files.
69487         * lib/getlogin_r.c, getlogin_r.h: New files.
69488
69489 2005-05-25  Bruno Haible  <bruno@clisp.org>
69490             Derek Price  <derek@ximbiot.com>
69491
69492         * lib/getlogin_r.h: Simplify API documentation.
69493
69494 2005-05-23  Derek Price  <derek@ximbiot.com>
69495
69496         * modules/minmax (Files): Add m4/minmax.m4.
69497         (configure.ac): Add gl_MINMAX.
69498
69499 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
69500
69501         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
69502         so that unistd-safer.h (GPL'ed code) need not be included.
69503
69504 2005-05-22  Bruno Haible  <bruno@clisp.org>
69505
69506         * m4/minmax.m4: New file.
69507         Based on a patch by Derek Price <derek@ximbiot.com>.
69508
69509 2005-05-22  Bruno Haible  <bruno@clisp.org>
69510
69511         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
69512         (INT64_MIN): Fix definition.
69513         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
69514
69515         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
69516         NEED_SIGNED_INT_TYPES.
69517
69518         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
69519         HAVE_SYSTEM_INTTYPES.
69520
69521 2005-05-22  Bruno Haible  <bruno@clisp.org>
69522
69523         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
69524         Also include <sys/param.h> if it defines MIN, MAX.
69525         Based on a patch by Derek Price <derek@ximbiot.com>.
69526
69527 2005-05-21  Jim Meyering  <jim@meyering.net>
69528
69529         * modules/fts (Files): Add m4/inttypes-pri.m4.
69530         (Depends-on): Add lstat and remove gettext.  Alphabetize.
69531
69532 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
69533
69534         New fts module.
69535         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
69536         (setup_dir, free_dir): New functions.
69537         (enter_dir, leave_dir): Define trivial
69538         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
69539         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
69540         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
69541         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
69542         Move to fts-cycle.c.
69543         (fts_open): Use setup_dir.
69544         (fts_close): Use free_dir.
69545         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
69546         This adds a label and some gotos, but the alternatives were messier.
69547         Check for memory allocation failure when entering a dir.
69548         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
69549         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
69550         (FTS): New member fts_cycle, that is a union that contains the
69551         old active_dir_ht and cycle_state.  All uses changed to mention
69552         fts_cycle.ht and fts_cycle.state.
69553         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
69554         fts.c, with the following changes:
69555         (setup_dir, free_dir): New functions.
69556         (enter_dir): Now returns bool.  Return true if successful, false
69557         if memory exhausted.  All callers changed.
69558         Do not bother partly cleaning up on
69559         memory allocation failure; that is free_dir's job.
69560         However, free ad if hash_insert fails, to avoid memory leak.
69561         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
69562         fts->fts_options to see which union member to use.
69563
69564 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
69565
69566         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
69567         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
69568
69569 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
69570
69571         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
69572
69573 2005-05-20  Jim Meyering  <jim@meyering.net>
69574
69575         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
69576         Now a macro, to pacify GCC.
69577
69578 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
69579
69580         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
69581         of -1.
69582
69583 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
69584
69585         * lib/chown.c (rpl_chown): Return -1 on failure.
69586
69587 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
69588
69589         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
69590         Don't check for stddef.h.
69591         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
69592         don't use its results.
69593         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
69594         since we include them unconditionally.  Don't require
69595         AM_STDBOOL_H, since stdbool is a prerequisite.
69596         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
69597         since we assume C89 or better.
69598         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
69599         as we don't use their results.
69600         Don't check for fchdir, memmove, memset, strrchr, as we use
69601         them unconditionally.
69602         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
69603         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
69604
69605 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
69606
69607         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
69608         Include <stddef.h> unconditionally, since we assume C89 now.
69609         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
69610         * lib/fts.c: Include fts_.h first, to check interface.
69611         Do not include intprops.h; no longer needed.
69612         Include cycle-check.h and hash.h, since fts_.h no longer does.
69613         Remove unnecessary casts of closedir to void.
69614         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
69615         decide whether to decrement nlinks.
69616         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
69617         (FTS): Use struct hash_table * instead of Hash_table, so that
69618         we no longer need to include hash.h here.
69619
69620 2005-05-18  Jim Meyering  <jim@meyering.net>
69621
69622         * modules/dirfd (License): Change to LGPL.  Most of the code
69623         is already in the public domain.
69624
69625 2005-05-18  Jim Meyering  <jim@meyering.net>
69626
69627         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
69628         Reported by Yoann Vandoorselaere.
69629
69630 2005-05-17  Jim Meyering  <jim@meyering.net>
69631
69632         * m4/fts.m4: New file, from coreutils.
69633
69634 2005-05-17  Jim Meyering  <jim@meyering.net>
69635
69636         * lib/fts.c, lib/fts_.h: New files, from coreutils.
69637
69638 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
69639
69640         Sync from coreutils.
69641         * m4/unlinkdir.m4: New file.
69642
69643 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
69644
69645         Sync from coreutils.
69646         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
69647         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
69648         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
69649         White space changes only.
69650         * lib/makepath.c (make_path): Port to hosts where leading "//" is
69651         special.
69652         * lib/yesno.c: Include getline.h, not ctype.h.
69653         (yesno): Don't remove leading white space; POSIX doesn't allow it.
69654         Use getline to remove arbitrary restriction on response length.
69655
69656 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
69657
69658         * config/srclist-update: Spell out "Street" in FSF postal
69659         mail address; this is the style the FSF seems to prefer.
69660
69661         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
69662         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
69663         this updates FSF postal mail address.
69664
69665         Sync from coreutils.
69666         * modules/unlinkdir: New file.
69667         * modules/yesno (Depends-on): Add getline.
69668         * MODULES.html.sh (File system functions): Add unlinkdir.
69669
69670 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
69671
69672         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
69673         lib/strsep.h:
69674         Change the initial comment to refer to GPL, not LGPL.
69675         gnulib-tool will change it to LGPL as needed.
69676
69677         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
69678         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
69679         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
69680         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
69681         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
69682         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
69683         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
69684         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
69685         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
69686         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
69687         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
69688         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
69689         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
69690         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
69691         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
69692         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
69693         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
69694         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
69695         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
69696         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
69697         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
69698         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
69699         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
69700         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
69701         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
69702         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
69703         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
69704         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
69705         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
69706         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
69707         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
69708         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
69709         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
69710         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
69711         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
69712         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
69713         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
69714         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
69715         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
69716         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
69717         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
69718         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
69719         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
69720         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
69721         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
69722         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
69723         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
69724         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
69725         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
69726         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
69727         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
69728         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
69729         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
69730         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
69731         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
69732         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
69733         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
69734         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
69735         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
69736         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
69737         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
69738         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
69739         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
69740         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
69741         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
69742         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
69743         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
69744         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
69745         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
69746         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
69747         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
69748         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
69749         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
69750         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
69751         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
69752         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
69753         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
69754         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
69755         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
69756         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
69757         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
69758         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
69759         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
69760         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
69761         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
69762         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
69763         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
69764         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
69765         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
69766         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
69767         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
69768         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
69769         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
69770         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
69771         lib/yesno.c, lib/yesno.h:
69772         Update FSF postal mail address.
69773
69774 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
69775
69776         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
69777         tests/test-memmem.c, tests/test-stpncpy.c:
69778         Update FSF postal mail address.
69779
69780 2005-05-13  Bruno Haible  <bruno@clisp.org>
69781
69782         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
69783         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
69784         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
69785         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
69786         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
69787         Add support for 64-bit integers in the MSVC compiler.
69788
69789 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69790
69791         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
69792
69793 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
69794
69795         * gnulib-tool (func_import): Sort and uniquify recommended includes.
69796
69797 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
69798
69799         * doc/getdate.texi (General date syntax): Don't say that date
69800         date --iso-8601=ns generates acceptable dates; it doesn't yet.
69801         Problem reported by Nic Ferrier.
69802
69803 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69804
69805         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
69806         specified in ai_socktype. Fix invalid ai_protocol
69807         check. ai_protocol is usually set to 0 or depending on
69808         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
69809         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
69810         ai_socktype / ai_protocol in the returned addrinfo structure.
69811
69812 2005-05-10  Simon Josefsson  <jas@extundo.com>
69813
69814         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
69815         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
69816
69817 2005-05-10  Karl Berry  <karl@gnu.org>
69818
69819         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
69820         (from http://www.gnu.org/licenses).
69821         * doc/COPYING.LIB: also rename to COPYING.LESSER.
69822         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
69823         fdl.texi suffices.
69824
69825 2005-05-10  Karl Berry  <karl@gnu.org>
69826
69827         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
69828         (COPYING.DOC): remove.
69829
69830         * config/srclist-update: new FSF address.
69831
69832 2005-05-10  Derek Price  <derek@ximbiot.com>
69833
69834         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
69835         possible.
69836
69837 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69838             Bruno Haible  <bruno@clisp.org>
69839
69840         * modules/inet_ntop: New file.
69841         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69842         inet_ntop.
69843
69844 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69845             Bruno Haible  <bruno@clisp.org>
69846
69847         * m4/inet_ntop.m4: New file.
69848
69849 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69850             Bruno Haible  <bruno@clisp.org>
69851
69852         * lib/inet_ntop.h: New file.
69853         * lib/inet_ntop.c: New file, from glibc with modifications.
69854
69855 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
69856
69857         * modules/time_r (License): Change to LGPL.
69858         * modules/extensions (License): Change to LGPL.  Actually,
69859         the license is more permissive than that, but currently gnulib-tool
69860         doesn't know how to handle more-permissive licenses.
69861
69862         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
69863         Problem reported by Dave Love.
69864
69865 2005-05-08  Jim Meyering  <jim@meyering.net>
69866
69867         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
69868         blank.
69869
69870 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
69871
69872         * modules/argmatch (Depends-on): Add stdbool.
69873         * modules/backupfile (Depends-on): Likewise.
69874         * modules/chdir-long (Depends-on): Likewise.
69875         * modules/closeout (Depends-on): Likewise.
69876         * modules/cycle-check (Depends-on): Likewise.
69877         * modules/dirname (Depends-on): Likewise.
69878         * modules/fnmatch (Depends-on): Likewise.
69879         * modules/fsusage (Depends-on): Likewise.
69880         * modules/fwriteerror (Depends-on): Likewise.
69881         * modules/getcwd (Depends-on): Likewise.
69882         * modules/getloadavg (Depends-on): Likewise.
69883         * modules/hard-locale (Depends-on): Likewise.
69884         * modules/makepath (Depends-on): Likewise.
69885         * modules/mountlist (Depends-on): Likewise.
69886         * modules/nanosleep (Depends-on): Likewise.
69887         * modules/posixtm (Depends-on): Likewise.
69888         * modules/quotearg (Depends-on): Likewise.
69889         * modules/readtokens (Depends-on): Likewise.
69890         * modules/readtokens0 (Depends-on): Likewise.
69891         * modules/readutmp (Depends-on): Likewise.
69892         * modules/save-cwd (Depends-on): Likewise.
69893         * modules/strftime (Depends-on): Likewise.
69894         * modules/userspec (Depends-on): Likewise.
69895         * modules/utimecmp (Depends-on): Likewise.
69896         * modules/xgetcwd (Depends-on): Likewise.
69897         * modules/xnanosleep (Depends-on): Likewise.
69898         * modules/xstrtod (Depends-on): Likewise.
69899         * modules/yesno (Depends-on): Likewise.
69900
69901 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
69902
69903         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
69904         needless checks.
69905
69906 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
69907
69908         Merge from coreutils.  Among other things,
69909         add bulletproofing for cases where stdin, stdout, or stderr are closed.
69910         * lib/fd-safer.c: New file.
69911         * lib/fcntl-safer.h, open-safer.c: Remove.
69912         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
69913         * lib/dup-safer.c: Include unistd-safer.h first.
69914         Don't include errno.h.
69915         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
69916         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
69917         * lib/file-type.c: Rely on file-type.h change.
69918         * lib/getloadavg.c: Include unistd-safer.h.
69919         (getloadavg): Use safer open.
69920         * lib/getusershell.c: Include "stdio-safer.h".
69921         (getusershell): Use safer fopen.
69922         * lib/long-options.c (long_options): Use NULL rather than 0.
69923         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
69924         'free'.
69925         * lib/modechange.c: Likewise.
69926         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
69927         (MODE_DONE): New constant.
69928         (struct mode_change): Remove 'next' member.
69929         (make_node_op_equals): New function; like the old one of the
69930         same name, except it allocates an array.
69931         (mode_compile, mode_create_from_ref): Use it.
69932         (mode_compile): Allocate result as an array, not a linked list.
69933         Parse octal string ourself, so that we catch mistakes like "+0".
69934         (mode_adjust): Arg is an array, not a linked list.
69935         * lib/modechange.c: Include stat-macros.h, xalloc.h.
69936         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
69937         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
69938         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
69939         Remove.  This is now stat-macros.h's job.
69940         (talloc): Remove.  All callers replaced by xalloc, so that
69941         our invokers don't have to worry about reporting memory failures.
69942         (make_node_op_equals): Remove.
69943         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
69944         New constants.
69945         (struct mode_change): Moved here from modechange.h.
69946         (mode_append_entry): Remove.
69947         (mode_compile): Remove MASKED_OPS arg, since it encouraged
69948         apps to have incorrect behavior.  Use simpler algorithm for head
69949         and tail.  Don't futz with umask; that's now the job of mode_adjust.
69950         Detect more invalid usages rather than having somewhat-random behavior.
69951         Don't insert an "a=" action, as that leads to incorrect behavior.
69952         (mode_compile, mode_create_from_ref): Return NULL on error instead
69953         of an enum, since now there's only one way to have an error.  All
69954         callers changed.
69955         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
69956         at the correct time.  Simplify calculation of "+u" and its ilk.
69957         Don't mishandle "+X".
69958         (mode_free): Remove "register" and localize decls.
69959         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
69960         (struct mode_change): Move to modechange.c; callers don't
69961         need to see this stuff.
69962         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
69963         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
69964         (mode_change, mode_adjust): Reflect the new signatures noted above.
69965         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
69966         that might redefine system include files.
69967         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
69968         (my_usleep): Use NULL rather than (void *) 0.
69969         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
69970         Use siginterrupt to specify that system calls should be interrupted.
69971         (rpl_nanosleep): Move initialization of suspended closer to call of
69972         my_usleep.
69973         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
69974         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
69975         (desirable_utmp_entry): New function.
69976         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
69977         using x2nrealloc, to simplify logic.
69978         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
69979         size calculation.  Do not assume utmp file is a regular file.
69980         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
69981         (READ_UTMP_CHECK_PIDS): New constant.
69982         * lib/save-cwd.c: Include unistd-safer.h.
69983         (save_cwd): Use fd_safer.
69984         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
69985         [!_LIBC] Include "stat-macros.h" instead.
69986         * lib/unistd-safer.h (fd_safer): New decl.
69987
69988 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
69989
69990         * modules/getloadavg (Depends-on): Add unistd-safer.
69991         * modules/getusershell (Depends-on): Add stdio-safer.
69992         * modules/lstat (Depends-on): Remove xalloc.
69993         * modules/mkstemp (Depends-on): Add stat-macros.
69994         * modules/modechange (Depends-on): Remove xstrtol.
69995         Add stat-macros, xalloc.
69996         * modules/save-cwd (Depends-on): Add unistd-safer.
69997         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
69998         * modules/unistd-safer (Files): Add lib/fd-safer.c
69999         (Makefile.am): Remove lib_SOURCES.
70000
70001         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
70002         Remove fcntl-safer; unistd-safer supersedes it.
70003
70004 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
70005
70006         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
70007         AC_HEADER_STAT.
70008         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
70009         (gl_PREREQ_CHOWN): Remove.
70010         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
70011         it.  Don't require AC_HEADER_STAT.
70012         (gl_PREREQ_LSTAT): Remove.
70013         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
70014         Don't require AC_HEADER_STAT.
70015         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
70016         (gl_PREREQ_RMDIR): Remove.
70017         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
70018         mention stat-macros.h or AC_HEADER_STAT, since we'll make
70019         the stat-macros module a prerequisite.
70020         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
70021         * m4/filemode.m4 (gl_FILEMODE): Likewise.
70022         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
70023         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
70024         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
70025         variable names.
70026         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
70027         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
70028         variable prefixes.
70029         * m4/fcntl-safer.m4: Remove.
70030         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
70031         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
70032         Invoke gl_PREREQ_FD_SAFER.
70033         (gl_PREREQ_FD_SAFER): New macro.
70034         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
70035         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
70036         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
70037         Remove duplicate call to AC_LIBOBJ(readutmp).
70038         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
70039
70040         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
70041         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
70042
70043 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
70044
70045         * MODULES.html.sh (Misc): Add byteswap.
70046
70047 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
70048
70049         * modules/getcwd (Depends-on): Add extensions.
70050         * modules/openat (Depends-on): Likewise.
70051
70052 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
70053
70054         * modules/byteswap: New file.
70055
70056 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
70057
70058         * m4/byteswap.m4: New file.
70059
70060 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
70061
70062         * lib/byteswap_.h: New file.
70063
70064 2005-04-25  Karl Berry  <karl@gnu.org>
70065
70066         * m4/gettext.m4: Update from GNU gettext 0.14.4.
70067
70068 2005-04-25  Albert Chin  <china@thewrittenword.com>
70069
70070         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
70071         Toolkit C bug.
70072
70073 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
70074
70075         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
70076         (func_ln_if_changed): Remove forcibly for no error message
70077         in case file does not exist.
70078
70079 2005-04-19  Simon Josefsson  <jas@extundo.com>
70080
70081         * gnulib-tool (Options): Make --symlink mean --symbolic.
70082
70083 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
70084
70085         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
70086
70087 2005-04-16  Simon Josefsson  <jas@extundo.com>
70088
70089         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
70090
70091 2005-04-15  Simon Josefsson  <jas@extundo.com>
70092
70093         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
70094
70095 2005-04-15  Simon Josefsson  <jas@extundo.com>
70096
70097         * gnulib-tool: Rename --symlink to --symbolic.
70098
70099 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
70100
70101         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
70102         symbolic links to files instead of copying/moving.  Add --aux-dir,
70103         specifying directory relative --dir where auxiliary build tools
70104         are placed.
70105
70106 2005-04-14  Bruno Haible  <bruno@clisp.org>
70107
70108         * modules/allocsa (License): Change to LGPL.
70109         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
70110
70111 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
70112
70113         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
70114         that "UTC +1 second" continues to work.  Problem reported
70115         by Dmitry V. Levin.
70116         (relunit_snumber): New rule.
70117         (relunit): Use it.
70118
70119 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
70120
70121         * lib/getdate.y (universal_time_zone_table): New constant.
70122         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
70123         universal_time_zone_table.
70124         (lookup_zone): Prefer universal_time_zone_table to
70125         local_time_zone_table, so that "GMT" time stamps are allowed in
70126         London during the summer.  Problem reported by Ian Abbott.
70127
70128 2005-04-12  Jim Meyering  <jim@meyering.net>
70129
70130         * lib/human.c (humblock): Set *options even when returning due to
70131         xstrtoumax conversion failure.  Thanks to a used-uninitialized
70132         warning from gcc-4.
70133
70134 2005-04-09  Jim Meyering  <jim@meyering.net>
70135
70136         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
70137         -Wuninitialized: initialize tm0.tm_year.
70138
70139 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
70140
70141         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
70142         count, since there's no maximum.  All uses changed.
70143         Add member dsts_seen.
70144         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
70145         not being INT_MAX.
70146         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
70147         Use pc_rels_seen to decide whther a date is absolute.
70148
70149         * lib/getdate.y (number): Don't overwrite year.
70150         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
70151         check.
70152
70153 2005-04-02  Simon Josefsson  <jas@extundo.com>
70154
70155         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
70156         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
70157
70158 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
70159
70160         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
70161         where no absolute path name can be longer than PATH_MAX.
70162
70163 2005-03-27  Jim Meyering  <jim@meyering.net>
70164
70165         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
70166
70167 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
70168
70169         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
70170         "one's complement" -> "ones' complement" in comment, as per Knuth.
70171         "value of type" -> "type or expression" in comment.
70172         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
70173
70174 2005-03-26  Jim Meyering  <jim@meyering.net>
70175
70176         Comment nits.
70177         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
70178         Correct typos: s/or/of/.
70179
70180 2005-03-26  Jim Meyering  <jim@meyering.net>
70181
70182         * modules/check-include-files: Move to ../ and rename to...
70183         * check-module: ...this.
70184
70185 2005-03-25  Jim Meyering  <jim@meyering.net>
70186
70187         * modules/xvasprintf (Files): Add xalloc.h.
70188
70189 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
70190
70191         * modules/gettext (Files): config/config.rpath ->
70192         build-aux/config.rpath
70193         * modules/iconv (Files): Likewise.
70194         Problem reported by Oskar Liljeblad.
70195
70196 2005-03-23  Jim Meyering  <jim@meyering.net>
70197
70198         * modules/check-include-files: New script to check for
70199         missing dependencies, multiple includes, etc.
70200
70201         * modules/c-strtold (Depends-on): Add xalloc.
70202         * modules/c-strtod (Depends-on): Add xalloc.
70203         * modules/hash (Depends-on): Add xalloc.
70204         (Files): Remove lib/xalloc.h.
70205
70206         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
70207         * modules/userspec (Files): Add lib/inttostr.h.
70208
70209 2005-03-23  Jim Meyering  <jim@meyering.net>
70210
70211         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
70212
70213 2005-03-22  Jim Meyering  <jim@meyering.net>
70214
70215         * modules/stat-macros: New module.
70216         * modules/canonicalize, modules/euidaccess, modules/file-type,
70217         * modules/filemode, modules/lchown, modules/makepath,
70218         * modules/rmdir, modules/stat: Depend on new stat-macros module
70219         rather than listing lib/stat-macros.h manually.
70220         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
70221
70222 2005-03-22  Jim Meyering  <jim@meyering.net>
70223
70224         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
70225
70226 2005-03-22  Bruno Haible  <bruno@clisp.org>
70227
70228         * config/srclist.txt: Replace target directory 'config' with
70229         'build-aux'.
70230         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
70231         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
70232         ../build-aux/.
70233
70234 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
70235
70236         * modules/chdir-long (Depends-on): Add mempcpy.
70237
70238         * modules/acl, modules/backupfile, modules/c-strtod,
70239         modules/c-strtold, modules/canon-host, modules/canonicalize,
70240         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
70241         modules/exclude, modules/exitfail, modules/file-type,
70242         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
70243         modules/getdate, modules/getline, modules/getpagesize,
70244         modules/getpass, modules/getugroups, modules/group-member,
70245         modules/hard-locale, modules/hash, modules/human, modules/idcache,
70246         modules/inttostr, modules/long-options, modules/makepath,
70247         modules/md5, modules/memcasecmp, modules/memcoll,
70248         modules/modechange, modules/mountlist, modules/path-concat,
70249         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
70250         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
70251         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
70252         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
70253         modules/strftime, modules/strndup, modules/strverscmp,
70254         modules/timespec, modules/unlocked-io, modules/userspec,
70255         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
70256         modules/yesno:
70257         Remove lib_SOURCES line from Makefile.am section, as this is now
70258         done automatically by the corresponding Autoconf macro.
70259
70260 2005-03-21  Jim Meyering  <jim@meyering.net>
70261
70262         Changes imported from coreutils.
70263
70264         * lib/cycle-check.c: Don't include xalloc.h.
70265
70266         * lib/path-concat.c: Don't include assert.h.
70267         (path_concat): Remove assertion that would have triggered
70268         for ABASE starting with more than one slash.
70269         Reported by Andreas Schwab.
70270
70271         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
70272         properly when ABASE is an absolute file name.
70273         Correct the description of this function.
70274         Include <assert.h>.
70275         Add an assertion and a test driver.
70276         This fixes a bug introduced on 2004-07-02.
70277         Andreas Schwab reported the resulting failure of cp --parents:
70278         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
70279
70280 2005-03-21  Jim Meyering  <jim@meyering.net>
70281
70282         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
70283         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
70284
70285 2005-03-21  Jim Meyering  <jim@meyering.net>
70286         and  Paul Eggert  <eggert@cs.ucla.edu>
70287
70288         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
70289         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
70290         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
70291         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
70292         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
70293         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
70294         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
70295         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
70296         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
70297         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
70298         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
70299         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
70300         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
70301         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
70302         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
70303         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
70304         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
70305         for these modules.
70306
70307 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
70308
70309         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
70310         (which shouldn't happen), generate nothing instead of returning 0
70311         immediately, so that nstrftime (NULL, ...) doesn't return 0.
70312
70313 2005-03-16  Bruno Haible  <bruno@clisp.org>
70314
70315         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
70316         HAVE_LONGLONG_64BIT.
70317
70318 2005-03-16  Bruno Haible  <bruno@clisp.org>
70319
70320         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
70321         HAVE_LONGLONG_64BIT.
70322
70323 2005-03-16  Bruno Haible  <bruno@clisp.org>
70324
70325         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
70326         HAVE_LONGLONG_64BIT.
70327
70328 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
70329
70330         * lib/strftime.c (my_strftime): Prepend space to format so that we can
70331         reliably distinguish strftime failure from empty output on POSIX
70332         hosts.
70333
70334 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
70335
70336         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
70337         (iconv_string): Don't guess a size-zero buffer, as that might cause
70338         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
70339         result would be 'too large', where 'too large' is (heuristically)
70340         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
70341         overflow concerns.  This will prevent some unwanted malloc failures
70342         when the inputs are very large.
70343
70344 2005-03-15  Karl Berry  <karl@gnu.org>
70345
70346         * config/srclist.txt (config.rpath): from gettext.
70347         * config/config.rpath: update.
70348
70349 2005-03-15  Bruno Haible  <bruno@clisp.org>
70350
70351         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
70352         to 'negate'.
70353
70354         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
70355         variable.
70356
70357         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
70358         results.
70359
70360 2005-03-14  Simon Josefsson  <jas@extundo.com>
70361
70362         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
70363         <fx@gnu.org>.
70364
70365 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
70366
70367         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
70368         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
70369         intprops.h.
70370         * lib/strtol.c: Likewise.
70371
70372 2005-03-14  Jim Meyering  <jim@meyering.net>
70373
70374         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
70375         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
70376         to be nonzero so that we (and caller) can detect the difference
70377         between a valid zero-length expansion and an error return, even
70378         when the underlying strftime fails before writing anything into
70379         that location.
70380
70381 2005-03-14  Bruno Haible  <bruno@clisp.org>
70382
70383         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
70384         Update from GNU gettext 0.14.3.
70385
70386 2005-03-10  Jim Meyering  <jim@meyering.net>
70387
70388         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
70389
70390 2005-03-10  Jim Meyering  <jim@meyering.net>
70391
70392         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
70393         so that this module works on systems without fchdir.
70394
70395 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
70396
70397         Factor int-properties macros into a single file, except for
70398         glibc-related files.
70399         * lib/intprops.h: New file.
70400         * lib/getloadavg.c: Include it instead of limits.h.
70401         (INT_STRLEN_BOUND): Remove.
70402         * lib/human.c: Include intprops.h.
70403         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
70404         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
70405         302/1000.
70406         * lib/inttostr.h: Include intprops.h instead of limits.h.
70407         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
70408         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
70409         for consistency with intprops.h.
70410         (time_t_is_integer, twos_complement_arithmetic): Use them.
70411         * lib/sig2str.h: Include <signal.h>, intprops.h.
70412         (INT_STRLEN_BOUND): Remove.
70413         * lib/strftime.c (TYPE_SIGNED): Remove.
70414         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
70415         * lib/strtol.c: Adjust comments to match intprops.h.
70416         * lib/userspec.c: Include intprops.h.
70417         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
70418         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
70419         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
70420         instead of rolling our own expressions.
70421         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
70422
70423         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
70424         instead of int.
70425         (my_strftime): Do not mishandle years close to INT_MAX, by doing
70426         the right thing even if adding 1900 would overflow.  Similarly
70427         for tm_mon + 1 and tm_yday + 1.
70428         Make %Y always equivalent to %C%y, and similarly for %G and %g.
70429         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
70430         (DO_SIGNED_NUMBER): New macro.
70431         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
70432
70433 2005-03-07  Bruno Haible  <bruno@clisp.org>
70434
70435         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
70436
70437 2005-03-07  Bruno Haible  <bruno@clisp.org>
70438
70439         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
70440
70441 2005-03-04  Derek R. Price  <derek@ximbiot.com>
70442
70443         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
70444         (func_import): Only replace files via --import when they have actually
70445         changed.
70446
70447 2005-03-03  Derek R. Price  <derek@ximbiot.com>
70448
70449         * m4/mmap-anon.m4: New file.
70450         * m4/pagealign_alloc.m4: New file.
70451
70452 2005-03-03  Derek R. Price  <derek@ximbiot.com>
70453             Bruno Haible  <bruno@clisp.org>
70454
70455         * modules/pagealign_alloc: New file.
70456         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
70457
70458 2005-03-03  Derek R. Price  <derek@ximbiot.com>
70459             Bruno Haible  <bruno@clisp.org>
70460
70461         * lib/pagealign_alloc.h: New file.
70462         * lib/pagealign_alloc.c: New file.
70463
70464 2005-03-03  Bruno Haible  <bruno@clisp.org>
70465
70466         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
70467         Use an all-permissive copyright notice, recommended by RMS.
70468
70469 2005-03-02  Bruno Haible  <bruno@clisp.org>
70470
70471         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
70472         of AIX, the replacement has to be done only after <string.h> is
70473         included, therefore not in config.h. stpncpy.h does the replacement,
70474         and stpncpy.c uses it.
70475
70476 2005-03-02  Bruno Haible  <bruno@clisp.org>
70477
70478         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
70479         stpncpy.c uses it.
70480
70481 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70482
70483         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
70484         The workaround isn't strictly needed for POSIX conformance, and
70485         it's too much of a pain to configure and maintain.  We'll ask
70486         people to fix their kernels instead.
70487         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
70488         (NANOSLEEP_BUG_WORKAROUND): Remove.
70489         (xnanosleep): Remove the workaround.
70490
70491 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70492
70493         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
70494         Reported by Derek Price.
70495         (Include): Add "timespec.h".
70496
70497         * modules/xnanosleep (Depends-on): Remove gethrxtime.
70498
70499 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70500
70501         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
70502         to detect nanosleep bug.
70503
70504 2005-03-01  Bruno Haible  <bruno@clisp.org>
70505
70506         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
70507
70508 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
70509
70510         * modules/gethrxtime: New file.
70511         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
70512         (Depends-on): Add gethrxtime.
70513         (configure.ac): Add gl_XNANOSLEEP.
70514         (Makefile.am): Remove lib_SOURCES line.
70515
70516 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
70517
70518         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
70519         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
70520
70521 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
70522
70523         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
70524         * lib/timespec.h (gettime): Return void, since it always
70525         succeeds now.  All uses changed.
70526         * lib/gettime.c (gettime): Likewise.
70527         [HAVE_NANOTIME]: Prefer nanotime.
70528         Assume gettimeofday succeeds, as POSIX requires.
70529         Assime time () succeeds, since other code already does.
70530         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
70531         (timespec_subtract): Remove.
70532         (NANOSLEEP_BUG_WORKAROUND): New constant.
70533         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
70534         things considerably.  Use it only on GNU/Linux hosts, since the
70535         workaround shouldn't be needed elsewhere.
70536
70537 2005-02-24  Bruno Haible  <bruno@clisp.org>
70538
70539         * modules/gettext (Files): Add m4/glibc2.m4.
70540
70541 2005-02-24  Bruno Haible  <bruno@clisp.org>
70542
70543         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
70544         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
70545         * m4/progtest.m4:
70546         Update from GNU gettext 0.14.2.
70547         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
70548
70549 2005-02-24  Bruno Haible  <bruno@clisp.org>
70550
70551         * lib/localcharset.c: Update from GNU gettext 0.14.2.
70552         * lib/config.charset: Update from GNU gettext 0.14.2.
70553
70554 2005-02-24  Bruno Haible  <bruno@clisp.org>
70555
70556         * lib/gettext.h: Update from GNU gettext 0.14.2.
70557
70558 2005-02-23  Simon Josefsson  <jas@extundo.com>
70559
70560         * m4/iconvme.m4: New file.
70561
70562 2005-02-23  Jim Meyering  <jim@meyering.net>
70563
70564         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
70565         change.
70566         Thanks to Bruno Haible for catching it.
70567
70568 2005-02-22  Simon Josefsson  <jas@extundo.com>
70569
70570         * modules/iconvme: New file.
70571
70572         * MODULES.html.sh: Add iconvme.
70573
70574 2005-02-22  Simon Josefsson  <jas@extundo.com>
70575
70576         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
70577
70578 2005-02-22  Simon Josefsson  <jas@extundo.com>
70579
70580         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
70581
70582 2005-02-22  Jim Meyering  <jim@meyering.net>
70583
70584         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
70585         s/ifndef/ifdef/.
70586
70587 2005-02-20  Neil Conway  <neilc@samurai.com>
70588
70589         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
70590         returned by OSX/Darwin if the specified buffer is not large
70591         enough for the hostname.
70592
70593 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70594
70595         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
70596         pass it to _help, otherwise the latter coredumps trying to
70597         dereference state.root_argp.
70598
70599 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
70600
70601         * modules/chdir-long (Depends-on): Add memrchr.
70602         * modules/memrchr (Files): Add lib/memrchr.h.
70603         (Include): "memrchr.h".
70604
70605 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
70606
70607         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
70608
70609 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
70610
70611         * lib/memrchr.h: New file.
70612         * lib/chdir-long.c: Include it.
70613         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
70614         Don't bother including stddef.h.
70615
70616 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
70617
70618         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
70619         inclusion.
70620         Include <sys/types.h>, for dev_t.
70621         (ME_DUMMY, ME_REMOTE): Move from here....
70622         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
70623         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
70624         Dmitry V. Levin.
70625         Include mountlist.h first, to test the interface.
70626
70627 2005-01-29  Bruno Haible  <bruno@clisp.org>
70628
70629         * lib/progname.c (program_name): Initialize.
70630         Needed when linking statically on MacOS X.
70631
70632 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
70633
70634         Sync from coreutils.
70635         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
70636         (Depends-on): Add c-strtod.
70637         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
70638
70639 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
70640
70641         Sync from coreutils.
70642         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
70643
70644         Remove files that are specific to coreutils.
70645         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
70646
70647 2005-01-28  Bruno Haible  <bruno@clisp.org>
70648
70649         * modules/javacomp: New file.
70650         * MODULES.html.sh (Java): Add javacomp.
70651
70652 2005-01-28  Bruno Haible  <bruno@clisp.org>
70653
70654         * m4/javacomp.m4: New file, from GNU gettext.
70655
70656 2005-01-28  Bruno Haible  <bruno@clisp.org>
70657
70658         * lib/javacomp.sh.in: New file, from GNU gettext.
70659         * lib/javacomp.h: New file, from GNU gettext.
70660         * lib/javacomp.c: New file, from GNU gettext.
70661
70662 2005-01-26  Simon Josefsson  <jas@extundo.com>
70663
70664         * lib/gai_strerror.c: Use GPL in header.
70665
70666 2005-01-26  Bruno Haible  <bruno@clisp.org>
70667
70668         * modules/javaexec: New file.
70669         * MODULES.html.sh (Java): Add javaexec.
70670
70671 2005-01-26  Bruno Haible  <bruno@clisp.org>
70672
70673         * m4/javaexec.m4: New file, from GNU gettext.
70674
70675 2005-01-26  Bruno Haible  <bruno@clisp.org>
70676
70677         * lib/javaexec.sh.in: New file, from GNU gettext.
70678         * lib/javaexec.h: New file, from GNU gettext.
70679         * lib/javaexec.c: New file, from GNU gettext.
70680
70681 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70682
70683         * modules/lchown (Depends-on): Remove lchown.h
70684
70685 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70686
70687         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
70688         must be defined if the header file was not found, in order
70689         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
70690
70691 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70692
70693         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
70694         initializers for struct pentry_state.
70695         (__argp_error): Check return value of __asprintf
70696         (__argp_failure): Translate error message
70697
70698         * lib/argp-parse.c: Removed braces around the expansion of N_()
70699
70700 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70701
70702         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
70703         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
70704         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
70705         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
70706         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
70707         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
70708         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
70709         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
70710         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
70711         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
70712         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
70713         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
70714         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
70715         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
70716         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
70717         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
70718         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
70719         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
70720         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
70721         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
70722         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
70723         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
70724         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
70725         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
70726         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
70727         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
70728         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
70729         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
70730         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
70731         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
70732         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
70733         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
70734         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
70735         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
70736         xstrtol.m4, xstrtoumax.m4, yesno.m4:
70737         Use an all-permissive copyright notice, recommended by RMS.
70738
70739 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
70740
70741         * modules/chdir-long (Depends-on): Remove mempcpy.
70742
70743 2005-01-21  Jim Meyering  <jim@meyering.net>
70744
70745         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
70746         same value as for Solaris 9.
70747
70748         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
70749         component length.  This included changing the parameter to be
70750         of type `char *' rather than `char const *'.
70751         * lib/chdir-long.h (chdir_long): Update prototype.
70752
70753         * lib/openat.c (fdopendir, fstatat): New functions.
70754         * lib/openat.h: Include headers required for use of DIR and struct
70755         stat.
70756         [AT_SYMLINK_NOFOLLOW]: Define.
70757         (fdopendir, fstatat): Add prototypes.
70758
70759 2005-01-21  Bruno Haible  <bruno@clisp.org>
70760
70761         * modules/classpath: New file.
70762         * MODULES.html.sh (Java): Add classpath.
70763
70764 2005-01-21  Bruno Haible  <bruno@clisp.org>
70765
70766         * lib/classpath.h: New file, from GNU gettext.
70767         * lib/classpath.c: New file, from GNU gettext.
70768
70769 2005-01-20  Simon Josefsson  <jas@extundo.com>
70770
70771         * modules/version-etc-fsf: New file.
70772
70773 2005-01-20  Simon Josefsson  <jas@extundo.com>
70774
70775         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
70776         * lib/version-etc.c: Remove version_etc_copyright.
70777         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
70778         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
70779
70780 2005-01-20  Simon Josefsson  <jas@extundo.com>
70781
70782         * lib/base64.h (isbase64): Add.
70783
70784         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
70785         using a unsigned prototype, don't inline.
70786         (base64_decode): Use it.
70787
70788 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
70789
70790         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
70791         it.
70792
70793 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
70794
70795         * lib/save-cwd.c (save_cwd): Remove code to support the case
70796         where fchdir is missing or flaky.
70797
70798 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
70799
70800         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
70801
70802 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
70803
70804         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
70805         AC_LIBSOURCES now does this.
70806         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
70807         with new ullong_max module.
70808
70809 2005-01-19  Bruno Haible  <bruno@clisp.org>
70810
70811         * modules/sh-quote: New file.
70812         * MODULES.html.sh (Executing programs): Add sh-quote.
70813
70814 2005-01-19  Bruno Haible  <bruno@clisp.org>
70815
70816         * lib/sh-quote.h: New file, from GNU gettext.
70817         * lib/sh-quote.c: New file, from GNU gettext.
70818
70819 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
70820
70821         Merge from coreutils.
70822         * m4/ullong_max.m4: New file.
70823         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
70824         (gl_MACROS): Assume localeconv exists.
70825
70826 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
70827
70828         Merge changes from coreutils, as described below in several
70829         changelogs dated today.
70830
70831         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
70832         (O_DIRECTORY): Remove; not needed here, since "." must be
70833         a directory.  All uses removed.
70834         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
70835         universal on Suns, and we also need to test for IRIX.
70836         Revamp code to use 'if' rather than '#if'.
70837         Avoid unnecessary comparison of cwd->desc to 0.
70838
70839         * lib/utimens.c (futimens): Robustify the previous patch, by checking
70840         for known valid error numbers rather than observed invalid ones.
70841
70842 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
70843
70844         * modules/ullong_max: New file.
70845
70846         * modules/chdir-long, modules/openat: New files.
70847         * modules/save-cwd (Depends-on): Depend on chdir-long.
70848         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
70849
70850 2005-01-18  Jim Meyering  <jim@meyering.net>
70851
70852         Merge from coreutils.
70853         * m4/chdir-long.m4, m4/openat.m4: New files.
70854         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
70855         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
70856         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
70857         is sane and DOES follow symlinks.  Besides, testing 20 different
70858         systems found no broken chown implementations.
70859         Prompted by a change in rsync's copy of this macro.
70860         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
70861
70862         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
70863
70864         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
70865         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
70866         NULL-means-set-to-current-time semantics.
70867         Remove temporary file immediately, rather than waiting
70868         for configure's at-exit trap code to do it.
70869
70870 2005-01-18  Jim Meyering  <jim@meyering.net>
70871
70872         * lib/version-etc.c (version_etc_copyright): Update copyright date.
70873
70874         * lib/utimens.c (futimens): Account for the fact that futimes
70875         can also fail with errno == ENOSYS or errno == ENOENT.
70876         Patch from Dmitry V. Levin.
70877
70878         Change the name of the robust chdir function from chdir to chdir_long.
70879         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
70880         (restore_cwd): Use chdir_long, not chdir.
70881         * lib/chdir-long.c: Renamed from chdir.c.
70882         * lib/chdir-long.h: Renamed from chdir.h.
70883         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
70884         Hurd.
70885
70886 2005-01-18  Bruno Haible  <bruno@clisp.org>
70887
70888         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
70889         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
70890         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
70891         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
70892         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
70893         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
70894         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
70895         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
70896         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
70897         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
70898         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
70899         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
70900         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
70901         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
70902         Use an all-permissive copyright notice, recommended by RMS.
70903
70904 2005-01-18  Bob Proulx  <bob@proulx.com>
70905
70906         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
70907         simplify offsetof() macro construct to avoid compile failure with
70908         native HP-UX 11.0 ANSI C compiler.
70909
70910 2005-01-17  Bruno Haible  <bruno@clisp.org>
70911
70912         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
70913         redundant because stpncpy.m4 takes care of it.
70914
70915 2005-01-17  Bruno Haible  <bruno@clisp.org>
70916
70917         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
70918
70919 2005-01-17  Bruno Haible  <bruno@clisp.org>
70920
70921         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
70922         used.
70923
70924 2005-01-17  Bruno Haible  <bruno@clisp.org>
70925
70926         * lib/fwriteerror.h (fwriteerror): Change specification to include
70927         fclose.
70928         * lib/fwriteerror.c: Include <stdbool.h>.
70929         (fwriteerror): At the end, close the file stream. Record whether
70930         stdout was already closed.
70931
70932 2005-01-17  Bruno Haible  <bruno@clisp.org>
70933
70934         * lib/execute.c (environ): Declare if needed.
70935         * lib/pipe.c (environ): Likewise.
70936         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
70937
70938 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70939
70940         * modules/argp: Depend on vsnprintf
70941
70942 2005-01-10  Jim Meyering  <jim@meyering.net>
70943
70944         * modules/closeout (Depends-on): Add atexit.
70945
70946 2005-01-06  Bruno Haible  <bruno@clisp.org>
70947
70948         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
70949
70950 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
70951
70952         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
70953         definitions to be after all include files, to avoid collisions.
70954         Problem reported by Bob Proulx.
70955
70956 2005-01-04  Jim Meyering  <jim@meyering.net>
70957
70958         Changes imported from coreutils.
70959         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
70960         as the mkstemp template, use a temporary directory and an
70961         8.3-friendly template to avoid trouble on systems like DJGPP.
70962         Reported by Juan M. Guerrero via Stepan Kasal.
70963         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
70964         close. Remove the temporary directory right away, rather than waiting
70965         for configure's at-exit trap code to do it.
70966         Suggestion from Stepan Kasal.
70967
70968 2005-01-01  Simon Josefsson  <jas@extundo.com>
70969
70970         * gnulib-tool: Print #include directives when --import'ing.
70971
70972 2004-12-28  Simon Josefsson  <jas@extundo.com>
70973
70974         * tests/test-base64.c: Include required header files.  Remove
70975         unused variables.
70976
70977 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
70978
70979         * modules/error (Depends-on): Remove gettext.
70980
70981 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
70982
70983         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
70984         not needed.  This removes a dependency on the gettext module.
70985         [defined _LIBC]: Do not include <libintl.h>; not needed.
70986
70987 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
70988
70989         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
70990         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
70991
70992 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
70993
70994         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
70995         HAVE_DECL_STRTOLD.
70996
70997 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
70998
70999         * modules/getdate (Depends-on): Remove alloca-opt.
71000
71001 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
71002
71003         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
71004
71005 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
71006
71007         * lib/argp-parse.c: Include <stddef.h>.
71008         (alignof, alignto): New macros.
71009         (parser_init): Don't assume that void * is aligned sufficiently
71010         for struct option.
71011
71012         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
71013         need to extend the stack.
71014         (YYINITDEPTH): New macro, so that the initial stack isn't overly
71015         large.
71016
71017 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71018
71019         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
71020
71021 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
71022
71023         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
71024         (2004-10-24) change.  Apparently this was a false alarm.
71025
71026         * modules/getdate: Depend on alloca-opt, not alloca.
71027
71028 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
71029
71030         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
71031         Remove now-obsolete comment about AIX.
71032         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
71033         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
71034         (YYMAXDEPTH): New macro.
71035
71036 2004-12-18  Simon Josefsson  <jas@extundo.com>
71037
71038         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
71039
71040 2004-12-18  Bruno Haible  <bruno@clisp.org>
71041
71042         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
71043
71044 2004-12-18  Bruno Haible  <bruno@clisp.org>
71045
71046         * lib/fatal-signal.c (fatal_signals): Make non-const.
71047         (init_fatal_signals): New function.
71048         (uninstall_handlers, install_handlers): Ignore signals that were set to
71049         SIG_IGN.
71050         (at_fatal_signal): Call init_fatal_signals.
71051         (init_fatal_signal_set): Likewise. Ignore signals that were set to
71052         SIG_IGN.
71053         Reported by Paul Eggert.
71054
71055 2004-12-18  Bruno Haible  <bruno@clisp.org>
71056
71057         * doc/alloca.texi: New file.
71058         * doc/alloca-opt.texi: New file.
71059
71060 2004-12-17  Jim Meyering  <jim@meyering.net>
71061
71062         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
71063         Otherwise, install-sh could exit with improper exit status when
71064         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
71065
71066 2004-12-16  Simon Josefsson  <jas@extundo.com>
71067
71068         * tests/test-base64.c: Add license.
71069
71070 2004-12-15  Stepan Kasal  <address@hidden>
71071
71072         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
71073
71074 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
71075
71076         * modules/getcwd (Files): Add m4/d-ino.m4.
71077         Suggested by Mark D. Baushke.
71078
71079 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
71080
71081         * lib/getdate.y (textint): New member "negative".
71082         (time_zone_hhmm): New function.
71083         Expect 14 shift-reduce conflicts, not 13.
71084         (o_colon_minutes): New rule.
71085         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
71086         (yylex): Set the "negative" member of signed numbers.
71087
71088 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
71089
71090         * doc/getdate.texi (Time of day items, Time zone items):
71091         Describe new formats +00:00, UTC+00:00.
71092
71093 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
71094
71095         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
71096         spurious "-l"s.  Problem reported by Stepan Kasal.
71097
71098 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
71099
71100         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
71101         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
71102
71103 2004-12-04  Simon Josefsson  <jas@extundo.com>
71104
71105         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
71106         Vandoorselaere <yoann@prelude-ids.org>.
71107
71108 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
71109
71110         Changes imported from coreutils.
71111         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
71112         exist.
71113         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
71114
71115 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
71116
71117         Changes imported from coreutils.
71118         * lib/hard-locale.c: Assume <locale.h> exists.
71119         Include "strdup.h".
71120         (GLIBC_VERSION): New macro.
71121         (hard_locale): Assume setlocale exists.
71122         Rewrite to avoid #ifdef.
71123         Use strdup rather than malloc + strcpy.
71124         * lib/human.c: Assume <locale.h> exists.
71125         (human_readable): Assume localeconv exists.
71126
71127 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
71128
71129         * modules/hard-locale (Depends-on): Add strdup.
71130
71131 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
71132
71133         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
71134         convert T2, not T.  (Imported from libc.)
71135
71136 2004-11-30  Simon Josefsson  <jas@extundo.com>
71137
71138         * modules/restrict (License): Change to LGPL.
71139
71140 2004-11-30  Simon Josefsson  <jas@extundo.com>
71141
71142         * m4/restrict.m4: Add copyright and copying conditions.
71143
71144 2004-11-30  Simon Josefsson  <jas@extundo.com>
71145
71146         * m4/base64.m4: New file.
71147
71148 2004-11-30  Simon Josefsson  <jas@extundo.com>
71149
71150         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
71151         base64.
71152
71153         * tests/test-base64.c: New file.
71154
71155         * modules/base64: New file.
71156
71157 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
71158
71159         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
71160         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
71161
71162         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
71163
71164 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
71165
71166         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
71167         (__getcwd.c): Don't restore errno; glibc doesn't.
71168         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
71169         first, falling back to our code only if its results look suspicious.
71170         Ensure that the resulting buffer is only as large as necessary.
71171
71172         * lib/readutmp.c: Include readutmp.h first.
71173         Include <errno.h>, since readutmp.h no longer does that.
71174         * lib/readutmp.h: Don't include <errno.h>,
71175         <sys/param.h>, <time.h>; not needed to establish interface.
71176         (errno): Remove decl.
71177         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
71178         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
71179         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
71180
71181 2004-11-28  Simon Josefsson  <jas@extundo.com>
71182
71183         * lib/base64.h, base64.c: New file.
71184
71185 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
71186
71187         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
71188
71189 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
71190
71191         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
71192         (Depends-on): Remove pathmax, same.  Add mempcpy.
71193         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
71194         (Makefile.am): Append getcwd.h to lib_SOURCES.
71195         (Include): Add getcwd.h.
71196         (Maintainer): Change from Jim Meyering to "all, glibc",
71197         since getdate now uses intended-for-glibc code.
71198         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
71199         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
71200
71201 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
71202
71203         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
71204         HP's ANSI C compiler.
71205         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
71206         Declaring int functions causes warnings on some modern systems and
71207         shouldn't be needed to compile on ancient ones.
71208         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
71209         defined.
71210
71211         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
71212         with the following changes.
71213         (__set_errno): Parenthesize properly.
71214         Include <stdbool.h>.
71215         (MIN, MAX, MATCHING_INO): New macros.
71216         (__getcwd): Define with prototype, not K&R form.
71217         Use heuristics to allocate default buffer on stack if possible.
71218         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
71219         behavior, and to avoid the PATH_MAX limit when computing
71220         ../../../../...
71221         Use MATCHING_INO to compare inode number to file.
71222         Check for arithmetic overflow in size calculations.
71223         Fix bug in reallocation of dot array that caused getcwd to fail
71224         on directories nested deeper than 75.
71225         Be more careful about saving errno on error.
71226         Do not use realloc; use only free+malloc, as this is a bit
71227         more flexible and avoids a needless copy operation.
71228         Do not inspect st_dev and st_ino for symbolic links; POSIX
71229         doesn't specify the latter.
71230         Check for closedir errors.
71231         Avoid needless casts.
71232         Use "#ifdef weak_alias" around weak_alias, to be like other
71233         glibc code.
71234         The following changes to getcwd.c have effect only when used in
71235         gnulib; they have no effect inside glibc proper.
71236         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
71237         as alloca isn't used.
71238         (alloca, __alloca): Likewise.
71239         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
71240         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
71241         unconditionally, as gnulib assumes C89 or better.
71242         Do not include <sys/param.h>.
71243         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
71244         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
71245         better.
71246         (NULL) [!defined NULL]: Remove; we assume C89 or better.
71247         Include <dirent.h> in a way that is compatible with modern Autoconf.
71248         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
71249         New macros, if not already defined.
71250         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
71251         Use "_LIBC", not "defined _LIBC", for consistency.
71252         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
71253         a mempcpy module.
71254         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
71255         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
71256         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
71257         credit only to Jim Meyering and adjust the copyright dates.
71258         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
71259         <stdlib.h>, <unistd.h>, "pathmax.h".
71260         Instead, include "xgetcwd.h" (first) and "getcwd.h".
71261         (INITIAL_BUFFER_SIZE): Remove.
71262         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
71263
71264 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
71265
71266         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
71267         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
71268         Use the _ONCE methods, for efficiency.
71269         Check for fcntl.h.  In test program, include <errno.h>
71270         and <fcntl.h> if available.  Remove old K&R cruft from
71271         test program.  Check for common errors in GNU/Linux,
71272         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
71273         don't do AC_LIBOBJ, as that's getcwd.m4's job.
71274         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
71275         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
71276         name accordingly.
71277         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
71278         accommodate new getcwd.c.
71279         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
71280         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
71281         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
71282         that's all we need now.
71283
71284 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71285
71286         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
71287         argp-parse.c depends on getopt internals, that means we should
71288         always use our getopt, to be on the safe side.
71289         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
71290         order not to spoil the result of an eventual previous invocation
71291         of gl_GETOPT_SUBSTITUTE.
71292
71293 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71294
71295         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
71296         redefinition warnings. To avoid them, include the defines
71297         in `#if !defined __need_getopt ... #endif'. The only place
71298         where __getopt_argv_const is used is in definitions
71299         of getopt_long and getopt_long_only below, which are as well
71300         protected by `#ifndef __need_getopt'.
71301         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
71302         __need_getopt after including <stdio.h> and <unistd.h> These
71303         headers might have defined it.
71304
71305 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
71306
71307         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
71308
71309 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
71310
71311         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
71312         (futimens): New function, which uses futimes if available.
71313         (futimens, utimens): Support timespec==NULL, with same semantics
71314         as utime and utimens.
71315         * lib/utimens.h (futimens): New decl.
71316
71317 2004-11-23  Jim Meyering  <jim@meyering.net>
71318
71319         * lib/getopt_.h: Remove trailing blanks.
71320
71321 2004-11-23  Jim Meyering  <jim@meyering.net>
71322
71323         * lib/__fpending.c: Add comment.
71324
71325 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
71326
71327         * modules/canonicalize (Depends-on): Add xreadlink.
71328         Problem reported by James Youngman.
71329
71330 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71331
71332         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
71333         New macros.
71334         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
71335         optopt): Use them instead of invoking ## directly; otherwise, the
71336         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
71337
71338 2004-11-19  Bruno Haible  <bruno@clisp.org>
71339
71340         * lib/strtok_r.c: Move comments from here...
71341         * lib/strtok_r.h: ... to here.
71342
71343 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
71344
71345         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
71346         implementations that mishandle size_t overflow.
71347
71348 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
71349
71350         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
71351         might fail.  Problem reported by Yoann Vandoorselaere.
71352         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
71353         implementations that mishandle size_t overflow.
71354
71355 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71356
71357         * modules/canon-host (Depends-on): Add strdup.
71358
71359 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71360
71361         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
71362
71363 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71364
71365         * lib/canon-host.c: Include "strdup.h".
71366         (canon_host): Use getaddrinfo if available, so that IPv6 works.
71367         Use strdup instead of malloc/strcpy to duplicate strings.
71368
71369         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
71370         (human_space_before_unit): New constant.
71371         * lib/human.c (human_readable): Support it.
71372
71373         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
71374         (xgetcwd): Set errno correctly when failing.
71375         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
71376         the failure is actually due to a PATH_MAX problem.
71377
71378         Further getopt changes to make it more likely that glibc will
71379         buy the changes back.
71380         * lib/getopt.c (POSIXLY_CORRECT): New constant.
71381         (getopt): Use it, so to preserve glibc semantic
71382         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
71383         when compiling for libc.
71384         * lib/getopt_.h (__getopt_argv_const): Bring it back.
71385         (getopt_long, getopt_long_only): Use it.
71386
71387         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
71388         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
71389         (getopt): Argv is now char * const *, as per standard.
71390         (_getopt_internal_r, _getopt_internal): Argv is now char **,
71391         not char *__getopt_argv_const *.
71392         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
71393         _getopt_long_only_r): Likewise.
71394         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
71395         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
71396         _getopt_long_r, _getopt_long_only_r): Likewise.
71397         * lib/getopt_.h (__getopt_argv_const): Remove.
71398         (getopt): Argv is now char * const *, as per standard.
71399
71400         * lib/getdate.y (tORDINAL): New token.
71401         (day, relunit): Allow it for relative times.
71402         (relative_time_table): Use tORDINAL for ordinals.
71403
71404 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71405
71406         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
71407         Document that "second" isn't allowed as an ordinal number.
71408
71409 2004-11-16  Jim Meyering  <jim@meyering.net>
71410
71411         * modules/closeout (Depends-on): Add fpending.
71412
71413 2004-11-15  Jim Meyering  <jim@meyering.net>
71414
71415         * lib/closeout.c: Include "__fpending.h" once again.
71416         Include <stdbool.h>.
71417         (close_stdout): Don't fail just because stdout was closed initially,
71418         since some programs don't write to stdout in the normal course of
71419         operation (other than --version and --help), and we don't want this
71420         function to make e.g. `touch file >&-' fail.
71421         But do fail if it was closed and someone has tried to write to it.
71422         E.g., `printf foo >&-' must fail.
71423
71424 2004-11-13  Jim Meyering  <jim@meyering.net>
71425
71426         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
71427
71428 2004-11-12  Simon Josefsson  <jas@extundo.com>
71429
71430         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
71431         small doc fix is still pending.
71432
71433 2004-11-11  Simon Josefsson  <jas@extundo.com>
71434
71435         * modules/strtok_r: New file.
71436
71437         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71438         strtok_r.
71439
71440 2004-11-11  Simon Josefsson  <jas@extundo.com>
71441
71442         * m4/strtok_r.m4: New file.
71443
71444         * m4/getopt.m4: Replace opterr.
71445
71446 2004-11-11  Simon Josefsson  <jas@extundo.com>
71447
71448         * lib/strtok_r.h, strtok_r.c: New file.
71449
71450 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
71451
71452         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
71453         of replacing opterr, getopt, etc.  This should handle the
71454         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
71455
71456 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
71457
71458         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
71459         we can stop lying to compilers about the constness of argv when we
71460         are compiled outside glibc.
71461         (getopt, getopt_long, getopt_long_only): Use it.
71462         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
71463         _getopt_internal, getopt): Likewise.
71464         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
71465         _getopt_long_only_r): Likewise.
71466         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
71467         _getopt_long_r, _getopt_long_only_r): Likewise.
71468
71469         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
71470         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
71471         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
71472         the other external symbols.
71473         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
71474         declaration, since the above renaming now works around collisions.
71475
71476 2004-11-11  Jim Meyering  <jim@meyering.net>
71477
71478         * lib/linebreak.c: Remove trailing blanks.
71479         * lib/alloca_.h: Likewise.
71480         * lib/acosl.c: Likewise.
71481         * lib/euidaccess.c: Likewise.
71482         * lib/allocsa.h: Likewise.
71483
71484 2004-11-10  Simon Josefsson  <jas@extundo.com>
71485
71486         * m4/getaddrinfo.m4: New file.
71487
71488 2004-11-10  Simon Josefsson  <jas@extundo.com>
71489
71490         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
71491
71492 2004-11-10  Simon Josefsson  <jas@extundo.com>
71493
71494         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71495         getaddrinfo.
71496
71497         * modules/getaddrinfo: New file.
71498
71499 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
71500
71501         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
71502
71503 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
71504
71505         * lib/mktime.c (SHR): New macro, which is a portable
71506         substitute for >> that should work even on Crays.
71507         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
71508         Problem reported by Mark D. Baushke in
71509         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
71510         * lib/getdate.y (SHR): Likewise.
71511         (tm_diff): Use it.
71512         * lib/strftime.c (SHR): Likewise.
71513         (tm_diff): Use it.
71514         * lib/quotearg.c (struct quoting_options): Use unsigned int for
71515         quote_these_too, so that right shifts are well defined.  All uses
71516         changed.
71517
71518 2004-11-10  Jim Meyering  <jim@meyering.net>
71519
71520         Ensure that no close failure goes unreported.
71521         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
71522         return early when it seems there's nothing to flush.
71523         Don't include __fpending.h.
71524
71525 2004-11-10  Jim Meyering  <jim@meyering.net>
71526
71527         * modules/closeout (Depends-on): Remove fpending.
71528
71529 2004-11-10  Jim Meyering  <jim@meyering.net>
71530
71531         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
71532
71533 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71534
71535         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
71536         gl_FUNC_STRFTIME.
71537         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
71538         and AC_REQUIRE when possible, to avoid duplicate checks.
71539         Check for <wchar.h>.
71540
71541 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71542
71543         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
71544
71545 2004-11-09  Bruno Haible  <bruno@clisp.org>
71546
71547         * m4/sockpfaf.m4: New file.
71548
71549 2004-11-05  Bruno Haible  <bruno@clisp.org>
71550
71551         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
71552         Reported by Mark D. Baushke <mdb@cvshome.org>.
71553
71554 2004-11-04  Bruno Haible  <bruno@clisp.org>
71555
71556         2004-09-11  Bruno Haible  <bruno@clisp.org>
71557                 * allocsa.valgrind: New file.
71558         2004-02-06  Bruno Haible  <bruno@clisp.org>
71559                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
71560                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
71561                 Reported by Christopher Seip <chris.seip@hp.com>.
71562
71563 2004-11-04  Bruno Haible  <bruno@clisp.org>
71564
71565         * modules/allocsa (Files): Add lib/allocsa.valgrind.
71566         (Makefile.am): Distribute it.
71567
71568 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
71569
71570         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
71571         with errno == ERANGE if the buffer is too small.
71572         Problem reported by Mark D. Baushke.
71573
71574 2004-11-03  Albert Chin  <china@thewrittenword.com>
71575             Paul Eggert  <eggert@cs.ucla.edu>
71576
71577         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
71578         equivalent, substitute $ac_type for equivalent type rather than
71579         blindly using uint32_t *always* which won't work if uint32_t is not
71580         available.  Define _UINT32_T to work around typedef of uint32_t if
71581         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
71582         2.5.1.
71583
71584 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
71585
71586         * m4/jm-macros.m4: Sync from coreutils.
71587         (gl_MACROS): Check for mbrlen, for pathchk.
71588         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
71589
71590 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
71591
71592         * lib/xreadlink.c (MAXSIZE): New macro.
71593         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
71594         size does not exceed MAXSIZE.  Avoid cast.
71595         As suggested by Mark D. Baushke in
71596         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
71597         if readlink fails with buffer size just under MAXSIZE, try again
71598         with MAXSIZE.
71599
71600 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
71601
71602         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
71603
71604 2004-11-02  Derek R. Price  <derek@ximbiot.com>
71605         and  Paul Eggert  <eggert@cs.ucla.edu>
71606
71607         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
71608         (get_date): Overparenthesize to avoid GCC warning.
71609
71610 2004-11-02  Bruno Haible  <bruno@clisp.org>
71611
71612         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
71613         returns void.
71614
71615 2004-11-02  Bruno Haible  <bruno@clisp.org>
71616
71617         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
71618         function returns void.
71619
71620 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
71621
71622         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
71623         fflush_unlocked, flockfile, funlockfile, funlockfile,
71624         fputs_unlocked, putc_unlocked.
71625
71626 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
71627
71628         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
71629         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
71630         already declared.
71631
71632 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
71633
71634         * modules/getdate (Files): Add doc/getdate.texi.
71635         (Depends-on): Add setenv, xalloc.
71636
71637 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
71638
71639         * lib/getdate.y: Add support for TZ="foo" within a date string.
71640         Fix some bugs near time_t boundaries.  Reject dates with
71641         out-of-range components, e.g., "Sept 31".
71642         Include <stdlib.h>, "setenv.h", "xalloc.h".
71643         (ISDIGIT_LOCALE): Remove; unused.
71644         Note that the TZ and time functions used here are not reentrant.
71645         (mktime_ok, get_tz): New functions.
71646         (TZBUFSIZE): New constant.
71647         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
71648         This requires that we sometimes generate our own TZ="XXX..." setting.
71649
71650 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
71651
71652         * doc/getdate.texi: New file, from coreutils with modifications for
71653         the new TZ parsing.
71654
71655 2004-10-27  Derek R. Price  <derek@ximbiot.com>
71656
71657         * lib/mktime.c (not_equal_tm): Remove redundant check.
71658
71659 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71660
71661         * modules/regex (lib_SOURCES): Add regex.c.
71662         Reported by James Youngman in
71663         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
71664
71665 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71666
71667         * lib/getdate.y: Use Bison 1.875 features, and some minor
71668         code cleanups.  This change does not affect semantics.
71669         Don't include <stdlib.h>; no longer needed.
71670         Don't include unlocked-io.h; only the "#if TEST" code uses
71671         stdio, and performance isn't crucial there.
71672         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
71673         Bison 1.875 features as described below.
71674         All uses of "PC." replaced by "pc->".
71675         (YYSTYPE): Add a forward declaration.
71676         (yylex, yyerror): Use full prototypes in forward decls.
71677         Use "%pure-parser" rather than obsolescent "%pure_parser".
71678         Use %parse-param and %lex-param instead of obsolescent
71679         YYPARSE_PARAM and YYLEX_PARAM.
71680         (meridian_table, month_and_day_table, time_units_table,
71681         relative_time_table, time_zone_table, military_table,
71682         lookup_zone, lookup_word, get_date):
71683         Use NULL instead of 0 where appropriate.
71684         (to_hour): Avoid abort (), to avoid a dependency on
71685         stdlib.h.
71686         (yyerror, yylex): Now accepts parser_control * arg.
71687         (main) [TEST]: Use '\0' rather than 0 for char.
71688
71689 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
71690
71691         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
71692
71693 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
71694
71695         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
71696         It's now the caller's responsibility to handle the case where
71697         !HAVE_GETPAGESIZE && !defined getpagesize.
71698
71699         * lib/mktime.c (leapyear): Arg is long int, not int.
71700
71701 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
71702
71703         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
71704
71705 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
71706
71707         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
71708         missing.  Problem reported by James Youngman.
71709
71710 2004-10-16  Simon Josefsson  <jas@extundo.com>
71711
71712         * gnulib-tool: Fix comments.  Fix parse problem.
71713         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
71714
71715 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
71716
71717         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
71718         implementation of getopt_long.  Problem reported by Alexander Taler in:
71719         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
71720
71721 2004-10-15  Bruno Haible  <bruno@clisp.org>
71722
71723         * gnulib-tool: Untabify. Initialize supplied_libname.
71724         (func_usage): More homogenous output.
71725         (func_modules_transitive_closure, func_modules_to_filelist,
71726         func_emit_lib_Makefile_am): New functions.
71727         (func_import): New function, extracted from big case statement. Use
71728         func_get_license, func_modules_transitive_closure,
71729         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
71730         opt_lgpl. Don't use test -a, as it's not portable.
71731         (func_create_testdir): Use func_modules_transitive_closure,
71732         func_modules_to_filelist, func_emit_lib_Makefile_am.
71733
71734 2004-10-15  Bruno Haible  <bruno@clisp.org>
71735
71736         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
71737
71738 2004-10-15  Bruno Haible  <bruno@clisp.org>
71739
71740         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
71741         the portions belonging to each module.
71742         Suggested by Derek Robert Price <derek@ximbiot.com>.
71743
71744 2004-10-12  Simon Josefsson  <jas@extundo.com>
71745
71746         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
71747         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
71748         to real functions.
71749
71750 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71751
71752         * modules/vsnprintf: New file.
71753
71754 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71755
71756         * m4/vsnprintf.m4: New file.
71757
71758 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71759
71760         * lib/vsnprintf.h: New file.
71761         * lib/vsnprintf.c: New file.
71762
71763 2004-10-11  Bruno Haible  <bruno@clisp.org>
71764
71765         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
71766         vsnprintf.
71767
71768 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
71769
71770         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
71771
71772 2004-10-07  Bruno Haible  <bruno@clisp.org>
71773
71774         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
71775         fits into the provided buffer.
71776
71777 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
71778
71779         * lib/diacrit.c, diacrit.h: Add GPL notice.
71780
71781         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
71782         notice.
71783         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
71784         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
71785         This avoids a potential constant-folding bug.
71786
71787 2004-10-05  Bruno Haible  <bruno@clisp.org>
71788
71789         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
71790         for the declaration of strsep.
71791
71792 2004-10-05  Bruno Haible  <bruno@clisp.org>
71793
71794         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
71795
71796 2004-10-04  Simon Josefsson  <jas@extundo.com>
71797
71798         * modules/memmem: New file.
71799         * tests/test-memmem.c: New file.
71800         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
71801
71802 2004-10-04  Simon Josefsson  <jas@extundo.com>
71803
71804         * m4/memmem.m4: New file.
71805
71806 2004-10-04  Simon Josefsson  <jas@extundo.com>
71807
71808         * lib/memmem.h: New file.
71809         * lib/memmem.c: New file, taken from glibc.
71810
71811 2004-10-04  Simon Josefsson  <jas@extundo.com>
71812
71813         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
71814         '#ifdef USE_UNLOCKED_IO'.
71815
71816 2004-10-04  Simon Josefsson  <jas@extundo.com>
71817
71818         * config/srclist.txt: Add memmem from glibc.
71819
71820 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
71821
71822         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
71823
71824         * modules/argmatch, modules/argp, modules/closeout, modules/error,
71825         modules/exclude, modules/getdate, modules/getline,
71826         modules/getndelim2, modules/getpass, modules/getpass-gnu,
71827         modules/getusershell, modules/linebuffer, modules/md5,
71828         modules/mountlist, modules/posixtm, modules/readtokens,
71829         modules/readutmp, modules/regex, modules/sha1,
71830         modules/version-etc, modules/yesno:
71831         Remove dependency on unlocked-io.
71832
71833 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
71834
71835         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
71836
71837         * m4/unlocked-io.m4: Add copyright notice.
71838         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
71839
71840 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
71841
71842         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
71843         * lib/xmalloc.c (xmemdup): Likewise.
71844         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
71845         XFREE): Remove these long-obsolescent macros.
71846         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
71847         * lib/xstrdup.c: Remove.
71848
71849         * lib/regex.c (re_comp): Cast gettext return value to char *,
71850         Problem reported by Martin Neitzel via Mark D. Baushke.
71851
71852 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
71853
71854         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
71855         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
71856         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
71857         regex.c, sha1.c, version-etc.c, yesno.c:
71858         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
71859         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
71860         the includer's responsibility.
71861
71862         Sync from coreutils.
71863
71864         * lib/modechange.c (mode_compile): Don't decrement a pointer that
71865         points to the start of a string, as the C Standard says the
71866         resulting behavior is undefined.
71867
71868         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
71869         simple -> simple_backups, numbered_existing ->
71870         numbered_existing_backups, numbered -> numbered_backups
71871         to avoid shadowing problems.  All uses changed.
71872         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
71873         * lib/backupfile.c (check_extension, numbered_backup):
71874         Rename locals to avoid shadowing 'basename'.
71875         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
71876         once.
71877
71878         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
71879         * lib/.cvsignore: Add getopt.h.
71880
71881 2004-10-04  Bruno Haible  <bruno@clisp.org>
71882
71883         * modules/README: New file.
71884         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
71885         not a module.
71886
71887 2004-10-02  Jim Meyering  <jim@meyering.net>
71888
71889         * lib/dirfd.h, getpagesize.h: Add copyright notice.
71890
71891 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71892
71893         * modules/strsep: New file.
71894
71895 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71896
71897         * m4/strsep.m4: New file.
71898
71899 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71900
71901         * lib/strsep.h: New file.
71902         * lib/strsep.c: New file.
71903
71904 2004-10-01  Simon Josefsson  <jas@extundo.com>
71905
71906         * lib/snprintf.c (snprintf): Handle size==0.
71907
71908 2004-10-01  Simon Josefsson  <jas@extundo.com>
71909             Bruno Haible  <bruno@clisp.org>
71910
71911         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
71912         (snprintf): Declare 'args'.
71913
71914 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
71915
71916         * lib/snprintf.c: Remove comments as to why each header is needed.
71917
71918 2004-10-01  Bruno Haible  <bruno@clisp.org>
71919
71920         * MODULES.html.sh: Add strsep.
71921
71922 2004-09-30  Simon Josefsson  <jas@extundo.com>
71923
71924         * modules/snprintf: New file.
71925
71926 2004-09-30  Simon Josefsson  <jas@extundo.com>
71927
71928         * m4/snprintf.m4: New file.
71929
71930 2004-09-30  Simon Josefsson  <jas@extundo.com>
71931
71932         * lib/snprintf.h, lib/snprintf.c: New files.
71933
71934 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71935
71936         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
71937         (hol_entry_help): Never translate an empty string.
71938         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
71939         * lib/argp.h (OPTION_NO_TRANS): New option.
71940
71941 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
71942
71943         * modules/argp (Maintainer): Replace Simon Josefsson
71944         by Sergey Poznyakoff.
71945
71946 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
71947
71948         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
71949         changes merged back into glibc.
71950
71951 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
71952
71953         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
71954
71955 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
71956
71957         * lib/xvasprintf.c: Include xalloc.h.
71958         (xvasprintf): Use xalloc_die, not xmalloc_die.
71959
71960 2004-09-29  Bruno Haible  <bruno@clisp.org>
71961
71962         * modules/alloca-opt: New file, derived from modules/alloca.
71963         * modules/allocsa: Depend on alloca-opt instead of alloca.
71964         * modules/setenv: Likewise.
71965         * modules/vasnprintf: Likewise.
71966         * MODULES.html.sh: Add alloca-opt.
71967
71968 2004-09-28  Simon Josefsson  <jas@extundo.com>
71969
71970         * gnulib-tool: New parameter --lgpl, to asseert that modules are
71971         LGPL, and to replace license template from GPL to LGPL.
71972
71973 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
71974
71975         * modules/dummy: Change license to LGPL.
71976
71977 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
71978
71979         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
71980
71981 2004-09-24  Simon Josefsson  <jas@extundo.com>
71982
71983         * modules/minmax (License): Change from GPL to LGPL.
71984
71985 2004-09-23  Simon Josefsson  <jas@extundo.com>
71986
71987         * gnulib-tool (--import): Typo.
71988
71989 2004-09-23  Simon Josefsson  <jas@extundo.com>
71990
71991         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
71992
71993 2004-09-22  Bruno Haible  <bruno@clisp.org>
71994
71995         * modules/*: Add 'License' field.
71996         * gnulib-tool: Accept --extract-license option.
71997         (func_get_license): New function.
71998
71999 2004-09-21  Bruno Haible  <bruno@clisp.org>
72000
72001         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
72002         Reported by Simon Josefsson.
72003
72004 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
72005
72006         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
72007         gl_AC_TYPE_LONG_LONG.
72008
72009 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
72010
72011         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
72012
72013 2004-09-18  Simon Josefsson  <jas@extundo.com>
72014         and  Paul Eggert  <eggert@cs.ucla.edu>
72015
72016         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
72017         calls with autoreconf.  Define GL_LIB.
72018
72019 2004-09-14  Karl Berry  <karl@gnu.org>
72020
72021         * config/srclist.txt: unsync setenv.c, sigh.
72022
72023 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
72024
72025         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
72026         Problem reported by Bruno Haible in:
72027         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
72028
72029 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
72030
72031         * config/srclist.txt: Comment out argp-pvh.c.
72032
72033 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
72034
72035         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
72036         in case some system header has #define'd it.  Problem reported by
72037         Soeren D. Schulze in
72038         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
72039
72040 2004-09-09  Karl Berry  <karl@gnu.org>
72041
72042         * regex.[ch]: delete from the root.  These were supposed to be
72043                 synced with emacs cvs, but this has not happened for about
72044                 a year, and anyway nothing else uses emacs regex.[ch].
72045                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
72046                 lib/regex[.ch] is untouched.
72047
72048 2004-09-09  Bruno Haible  <bruno@clisp.org>
72049
72050         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
72051
72052 2004-09-09  Bruno Haible  <bruno@clisp.org>
72053
72054         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
72055         modifications.
72056         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
72057
72058 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
72059
72060         * modules/xvasprintf: New file.
72061         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
72062
72063 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
72064
72065         * lib/xvasprintf.h: New file.
72066         * lib/xvasprintf.c: New file.
72067         * lib/xasprintf.c: New file.
72068
72069 2004-09-08  Bruno Haible  <bruno@clisp.org>
72070
72071         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
72072
72073 2004-09-08  Bruno Haible  <bruno@clisp.org>
72074
72075         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
72076         length is > INT_MAX.
72077         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
72078         more.
72079
72080 2004-09-08  Bruno Haible  <bruno@clisp.org>
72081
72082         * lib/stdint_.h: New file, taken from GNU clisp.
72083
72084 2004-09-08  Bruno Haible  <bruno@clisp.org>
72085             Oskar Liljeblad  <oskar@osk.mine.nu>
72086
72087         * modules/stdint: New file.
72088         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
72089
72090 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72091
72092         Import from coreutils.
72093         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
72094         strings on unbounded length.  alloca's performance benefits aren't
72095         that important here.
72096         (V_STRDUP): Remove.
72097         (parse_with_separator): New function, with most of the internals
72098         of the old parse_user_spec.  Allow user to omit both user and group,
72099         for compatibility with FreeBSD.
72100         Clone only the user name, not the entire spec.
72101         Do not set *uid, *gid unless entirely successful.
72102         Avoid memory leak in some failing cases.
72103         Fix regression for USER.GROUP reported by Dmitry V. Levin in
72104         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
72105         (parse_user_spec): Rewrite to use parse_with_separator.
72106
72107 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72108
72109         * modules/userspec: Don't depend on alloca.
72110
72111 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72112
72113         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
72114
72115 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
72116
72117         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
72118         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
72119         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
72120
72121 2004-08-16  Simon Josefsson  <jas@extundo.com>
72122
72123         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
72124         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
72125         Add --dry-run for --import.
72126         Let user provided command line parameters override configure.ac
72127         settings.
72128
72129 2004-08-12  Simon Josefsson  <jas@extundo.com>
72130
72131         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
72132         as discussed with Paul Eggert in threads rooted at
72133         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
72134         and
72135         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
72136         Before, the test was empty, and relied on ELIDE_CODE in source
72137         code.)
72138         (gl_PREREQ_GETOPT): New macro.
72139         (gl_GETOPT): Use them.
72140
72141 2004-08-12  Simon Josefsson  <jas@extundo.com>
72142
72143         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
72144         * lib/getopt_.h: Renamed from getopt.h.
72145
72146 2004-08-12  Simon Josefsson  <jas@extundo.com>
72147
72148         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
72149         Change default library name from libfoo to libgnu.
72150         Now, if you have a configure.ac that says:
72151                 gl_SOURCE_BASE(gl)
72152                 gl_M4_BASE(gl/m4)
72153                 gl_MODULES(error getopt etcetera)
72154                 gl_INIT
72155         you can import all you need by running:
72156                 ../gnulib/gnulib-tool --import
72157
72158         * modules/getopt (Files): Rename getopt.h to getopt_.h.
72159         (Makefile.am): Rewrite, use logic from argz.
72160         (Include): Use <getopt.h> instead of "getopt.h".
72161
72162 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
72163
72164         * modules/argp (Files): Add m4/unlocked-io.m4.
72165         (Depends-on): Add extensions.
72166
72167 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
72168
72169         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
72170         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
72171         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
72172         Check for program_invocation_name, program_invocation_short_name,
72173         flockfile, funlockfile, features.h, _getopt_long_only_r.
72174
72175 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
72176
72177         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
72178         its complicated substitute.
72179         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
72180         and program_invocation_name.
72181         (__argp_basename) [!_LIBC]: Remove; the only use was
72182         replaced by its body.
72183         (__argp_short_program_name): Change condition from
72184         !defined __argp_short_program_name to
72185         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
72186         to match argp-namefrob.h.
72187         (__argp_failure): Don't assume strerror_r returns char *.
72188         * lib/argp-parse.c (N_): Define unconditionally.
72189         (argp_default_options): Fill out initializers with 0 to avoid
72190         gcc warnings.
72191
72192 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
72193
72194         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
72195         getopt1.c.
72196
72197 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
72198
72199         Merge from coreutils.
72200
72201         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
72202
72203         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
72204         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
72205
72206 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
72207
72208         Merge from coreutils.
72209
72210         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
72211         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
72212         for Reliant Unix 5.43.
72213
72214         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
72215         (union fooround): Use uintmax_t, not long int.
72216         The rest is a merge from libc:
72217         [defined _LIBC]: Include <shlib-compat.h>.
72218         (_obstack) [defined _LIBC]: Remove after 2.3.4.
72219
72220         * lib/settime.c (settime): Recode to avoid warning with
72221         Sun Forte C 6U2.
72222
72223         * lib/strverscmp.c: Convert to UTF-8.
72224
72225 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
72226
72227         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
72228         m4/uintmax_t.m4.
72229
72230 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72231
72232         * modules/xalloc-die: New file.
72233         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
72234
72235         * modules/md5 (Files): Add m4/uint32_t.m4.
72236         * modules/sha1: Renamed from modules/sha.
72237         (Files):
72238         Rename lib/sha.h to lib/sha1.h.
72239         Rename lib/sha.c to lib/sha1.c.
72240         Rename m4/sha.m4 to m4/sha1.m4.
72241         (lib_SOURCES): Likewise.
72242         (configure.ac): Rename gl_SHA to gl_SHA1.
72243         (Include): sha.h -> sha1.h.
72244
72245 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72246
72247         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
72248         * m4/sha1.m4: Renamed from sha.m4.
72249         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
72250
72251 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72252
72253         * lib/obstack.h (obstack_empty_p):
72254         Don't assume that chunk->contents is suitably aligned.
72255         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
72256         Likewise. Problem reported by Benno in
72257         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
72258
72259         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
72260         readable.  This could be improved further but it'd take some work.
72261
72262 2004-08-08  Simon Josefsson  <jas@extundo.com>
72263
72264         * modules/xgethostname (Depends-on): Remove exit and error (not
72265         used).
72266
72267         * modules/getpass-gnu: Add getpass.h.
72268         (Depends-on): Add stdbool.
72269         * modules/getpass: Add getpass.h.
72270
72271 2004-08-08  Simon Josefsson  <jas@extundo.com>
72272
72273         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
72274         Check getpass declaration.
72275
72276 2004-08-08  Simon Josefsson  <jas@extundo.com>
72277
72278         * lib/xgethostname.c: Don't include error.h (not used).
72279
72280         * lib/getpass.h: Add.
72281         * lib/getpass.c: Include getpass.h first.
72282
72283 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
72284
72285         * lib/xalloc-die.c: New file.
72286         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
72287         All uses removed.
72288         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
72289         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
72290         xalloc-die.c.
72291         (_, N_, xalloc_die): Move to xalloc-die.c.
72292         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
72293         so that we needn't mess with xalloc_msg_memory_exhausted.
72294
72295         * lib/sha1.h: Renamed from sha.h.
72296         (SHA1_H): Renamed from _SHA_H.
72297         (sha1_ctx): Renamed from sha_ctx.
72298         (sha1_init_ctx): Renamed from sha_init_ctx.
72299         (sha1_process_block): Renamed from sha_process_block.
72300         (sha1_process_bytes): Renamed from sha_process_bytes.
72301         (sha1_finish_ctx): Renamed from sha_finish_ctx.
72302         (sha1_read_ctx): Renamed from sha_read_ctx.
72303         (sha1_stream): Renamed from sha_stream.
72304         (sha1_buffer): Renamed from sha_buffer.
72305         * lib/sha1.c: Likewise; renamed from sha.c.
72306         Do not include <sys/types.h>.
72307         Include <stddef.h> rather than <stdlib.h>.
72308
72309 2004-08-08  Bruno Haible  <bruno@clisp.org>
72310
72311         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
72312         FILESYSTEM_PREFIX_LEN.
72313         * lib/progreloc.c: Likewise.
72314         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
72315
72316 2004-08-06  Simon Josefsson  <jas@extundo.com>
72317
72318         * modules/progname (Depends-on): Don't depend on stdbool.
72319
72320 2004-08-06  Simon Josefsson  <jas@extundo.com>
72321
72322         * modules/getsubopt: New file.
72323         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72324         getsubopt.
72325
72326 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
72327
72328         More merge from coreutils.
72329
72330         * m4/utimens.m4, m4/utimecmp.m4: New files.
72331         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
72332         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
72333         prereq.m4, sha.m4: Import changes from coreutils.
72334
72335 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
72336
72337         More merge from coreutils.
72338         * modules/raise, modules/readtokens0, modules/utimens:
72339         * modules/utimecmp, module/xnanosleep: New files.
72340         * modules/strftime: Add lib/strftime.h.
72341         Change include from <time.h> to "strftime.h".
72342         * modules/yesno: Add lib/yesno.h.
72343         * modules/backupfile: Remove lib/addext.c.
72344         * modules/euidaccess: Add stat-macros.h.
72345         * modules/canonicalize, modules/euidaccess,
72346         modules/filemode, modules/lchown, modules/makepath,
72347         modules/rmdir, modules/stat: Likewise.
72348
72349 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
72350
72351         Merge from tar.
72352         * lib/argp-help.c (make_hol, hol_append): Don't assume that
72353         SIZE_MAX is a valid preprocessor constant.
72354         (__argp_basename): Change from "#ifndef _LIBC"
72355         to "#ifndef __argp_short_program_name", so that
72356         we don't compile these functions for tar.
72357
72358         More merges from coreutils.
72359         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
72360         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
72361         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
72362         * lib/addext.c: Remove; no longer needed.
72363         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
72364         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
72365         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
72366         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
72367         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
72368         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
72369         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
72370         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
72371         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
72372         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
72373         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
72374         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
72375         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
72376         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
72377         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
72378         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
72379         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
72380         Import changes from coreutils.
72381
72382 2004-08-05  Simon Josefsson  <jas@extundo.com>
72383
72384         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
72385
72386 2004-08-05  Simon Josefsson  <jas@extundo.com>
72387
72388         * m4/getsubopt.m4: New file.
72389
72390 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
72391
72392         Merge from coreutils.
72393
72394         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
72395         * m4/getcwd-path-max.m4: New files.
72396
72397         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
72398         FILESYSTEM_PREFIX_LEN ->
72399         FILE_SYSTEM_PREFIX_LEN.
72400         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
72401         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
72402         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
72403         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
72404
72405         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
72406         prerequisite modules now handle the DOS stuff.
72407         Don't check for unistd.h.
72408
72409 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
72410
72411         Merge from coreutils.
72412
72413         * lib/.gdb-history: Remove; this doesn't belong here.
72414
72415         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
72416         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
72417         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
72418         * lib/getcwd.c: New files.
72419
72420         * lib/dirname.h: Include <stdbool.h>.
72421         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
72422         for consistency with POSIX terminology.  All uses changed.
72423         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
72424         (strip_trailing_slashes): Use bool for booleans.
72425         * lib/stripslash.c (strip_trailing_slashes): Likewise.
72426
72427         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
72428         sometimes returns a positive errno value even when it succeeds.
72429         (print_errno_message) [!LIBC]: Fall back on strerror if
72430         __strerror_r fails.
72431
72432         * lib/path-concat.c (mempcpy): Don't define if a system header defines
72433         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
72434         (longest_relative_suffix): New function.
72435         (path_concat): Use it.  Assume first argument is not NULL.
72436         Port to DOS.  Omit redundant separators.
72437         Report an error instead of returning NULL.
72438         Use mempcpy instead of memcpy.
72439         (xpath_concat): Remove: not declared or used.
72440
72441         * lib/same.h: Include <stdbool.h>
72442         (same_name): Return bool, not int.
72443         * lib/same.c (same_name): Likewise.
72444         (errno): Don't declare; we assume C89 or better now.
72445
72446         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
72447         if not already defined.
72448
72449         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
72450         * lib/dup-safer.c (errno): Likewise.
72451
72452 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
72453
72454         Merge from coreutils.
72455         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
72456         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
72457         * modules/path-concat: Don't depend on strdup.
72458
72459 2004-08-03  Simon Josefsson  <jas@extundo.com>
72460
72461         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
72462         * lib/progname.h: Don't include stdbool.h.
72463
72464 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
72465
72466         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
72467         * MODULES.html.sh (func_all_modules): Remove fatal.
72468
72469 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
72470
72471         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
72472
72473 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
72474
72475         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
72476         working.
72477
72478 2004-08-02  Simon Josefsson  <jas@extundo.com>
72479
72480         * lib/getsubopt.h: New file, with comments from Bruno Haible.
72481         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
72482         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
72483
72484 2004-08-01  Simon Josefsson  <jas@extundo.com>
72485
72486         * lib/xgetdomainname.c: Include stdlib.h, for free().
72487
72488 2004-07-19  Bruno Haible  <bruno@clisp.org>
72489
72490         * MODULES.html.sh (func_all_modules): Add dummy.
72491
72492 2004-07-16  Simon Josefsson  <jas@extundo.com>
72493
72494         * modules/dummy: New file.
72495
72496 2004-07-16  Simon Josefsson  <jas@extundo.com>
72497
72498         * lib/dummy.c: New file.
72499
72500 2004-07-16  Bruno Haible  <bruno@clisp.org>
72501
72502         * lib/backupfile.h: Add extern "C" for C++.
72503         * lib/closeout.h: Likewise.
72504         * lib/copy-file.h: Likewise.
72505         * lib/findprog.h: Likewise.
72506         * lib/full-write.h: Likewise.
72507         * lib/pathname.h: Likewise.
72508         * lib/progname.h: Likewise.
72509         * lib/stpcpy.h: Likewise.
72510         * lib/stpncpy.h: Likewise.
72511         * lib/strcase.h: Likewise.
72512         * lib/strstr.h: Likewise.
72513         * lib/xalloc.h: Likewise.
72514
72515         * lib/mbswidth.h: Add extern "C" for C++.
72516         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
72517
72518 2004-07-13  Robert Millan  <robertmh@gnu.org>
72519
72520         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
72521
72522 2004-07-09  Simon Josefsson  <jas@extundo.com>
72523
72524         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
72525         failed without this.)
72526
72527 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72528
72529         * modules/chown (Files): Add lib/fchown-stub.c, since
72530         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
72531
72532 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72533
72534         * lib/fchown-stub.c: New file.
72535
72536 2004-06-24  Jim Meyering  <jim@meyering.net>
72537
72538         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
72539
72540 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72541
72542         * modules/argz: Omit "#include".
72543
72544         * MODULES.html.sh (func_all_modules): Add calloc, to match
72545         2004-06-01 addition of calloc module.
72546
72547 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72548
72549         * m4/argz.m4: New file, which is autoupdated from libtool.
72550
72551 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72552
72553         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
72554         libtool.
72555
72556 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72557
72558         * config/srclist-update: Don't insist on "USA." before the
72559         close-comment, as libtool omits the period and puts the */ on a
72560         separate line.
72561         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
72562         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
72563
72564 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
72565
72566         * modules/argz: New file.
72567         * MODULES.html.sh (func_all_modules): Add argz.
72568
72569 2004-06-12  Jim Meyering  <jim@meyering.net>
72570         and  Paul Eggert  <eggert@cs.ucla.edu>
72571
72572         * modules/hash (Files): Add lib/xalloc.h.
72573         * modules/pipe (Depends-on): Add wait-process.
72574         * modules/stat (Depends-on): Add xalloc.
72575         * modules/userspec (Files): Add lib/userspec.h.
72576         * modules/xstrto
72577
72578         Upgrade from gettext-0.13.
72579         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
72580         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
72581         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
72582
72583 2004-06-10  Jim Meyering  <jim@meyering.net>
72584
72585         * lib/calloc.c: New file.
72586
72587 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
72588
72589         * lib/getdate.y (yylex): Allow space between sign and number.
72590         Problem reported by Dan Jacobson.
72591
72592 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
72593
72594         Merge from coreutils CVS.
72595
72596         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
72597         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
72598         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
72599         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
72600         xstrtol.m4: Fix copyright date and/or serial number.
72601
72602         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
72603         See if we need an fchown replacement.
72604         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
72605         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
72606         and use the replacement function if we detect either defect.
72607
72608         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
72609         gl_UTIMECMP.
72610
72611 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
72612         and  Jim Meyering  <jim@meyering.net>
72613
72614         Merge from coreutils CVS.
72615
72616         * lib/stat-macros.h: New file, with contents from file-type.h
72617         and coreutils' system.h.
72618         * lib/file-type.c: Include "stat-macros.h".
72619         * lib/file-type.h (file_type): Move all macro definitions to new file,
72620         stat-macros.h.
72621
72622         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
72623         Wrap old code with this conditional.
72624         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
72625         function that does not dereference symlinks.
72626         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
72627
72628         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
72629         dependency problems.
72630         (xreadlink): Accept new arg SIZE, for efficiency.
72631         All decls and uses changed.
72632         * lib/xreadlink.h: Include <stddef.h>, for size_t.
72633
72634         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
72635         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
72636
72637         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
72638         sysexits.h.
72639
72640 2004-06-01  Jim Meyering  <jim@meyering.net>
72641
72642         * m4/calloc.m4: New file.
72643
72644 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
72645
72646         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
72647         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
72648         Also, fix a typo in a diagnostic.
72649
72650 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
72651
72652         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
72653         or AC_FUNC_REALLOC.
72654
72655 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
72656
72657         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
72658         macros to be defined.
72659         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
72660         the allocator returns NULL because the requested size is zero.
72661
72662 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
72663
72664         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
72665         var.  Add comment explaining why libc still defines it.  This
72666         merges the following patch from glibc:
72667         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
72668
72669 2004-05-20  Andreas Schwab  <schwab@suse.de>
72670
72671         * m4/free.m4: Replace free if it not known to work, not the other
72672         way round.
72673
72674 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
72675
72676         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
72677         present in glibc since revision 1.1 of this file.
72678         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
72679         obstack_alignment_mask, obstack_alloc, obstack_base,
72680         obstack_blank, obstack_blank_fast, obstack_chunk_size,
72681         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
72682         obstack_grow0, obstack_init, obstack_int_grow,
72683         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
72684         obstack_next_free, obstack_object_size, obstack_ptr_grow,
72685         obstack_ptr_grow_fast, obstack_room): Remove declarations of
72686         nonexistent functions.
72687
72688 2004-05-18  Karl Berry  <karl@gnu.org>
72689
72690         * config/srclist.txt: break link for vasnprintf.c.
72691
72692 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
72693
72694         Port obstack to the AS/400, where pointers are 16 bytes wide and
72695         you cannot cast an integer to a valid pointer.  This patch is
72696         currently waiting to be integrated into glibc; see
72697         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
72698
72699         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
72700         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
72701         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
72702         (struct obstack): temp member is now a union of a pointer and
72703         an integer, instead of an integer.  All integer uses changed.
72704         This does not affect the physical layout of struct obstack,
72705         except on hosts (like the AS/400) where the size or alignment of
72706         void * is greater than that of ptrdiff_t.
72707         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
72708         __STDC__)]: Store temporary in pointer member of union, not
72709         integer member.
72710         * lib/obstack.c: Include <stddef.h>, for offsetof.
72711         (struct fooalign): Remove; it doesn't need a name.
72712         (union fooround): Change double to long double, and add void *.
72713         (DEFAULT_ALIGNMENT): Use offsetof to compute.
72714         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
72715         not a macro.  Hence the values are always int; so remove all
72716         casts-to-int in uses.
72717
72718 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
72719
72720         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
72721         we can get this patch merged into glibc.
72722
72723 2004-05-17  Derek R. Price  <derek@ximbiot.com>
72724             Paul Eggert  <eggert@cs.ucla.edu>
72725
72726         * m4/argp: Depend on alloca.
72727
72728 2004-05-17  Derek R. Price  <derek@ximbiot.com>
72729             Paul Eggert  <eggert@cs.ucla.edu>
72730
72731         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
72732         freecoding.
72733
72734 2004-05-17  Bruno Haible  <bruno@clisp.org>
72735
72736         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
72737         precision that consists of a '.' followed by an empty digit string.
72738         Patch by Tor Lillqvist <tml@iki.fi>.
72739
72740 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
72741
72742         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
72743         for backward compatibility with older code.  We need our own
72744         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
72745         it under some other name, and our alloca.h will define it.
72746
72747 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
72748             Derek Price  <derek@ximbiot.com>
72749
72750         * lib/alloca.c: Include <alloca.h>, to get our interface.
72751         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
72752         include <alloca.h> first.  Use C89 prototype for alloca; this
72753         requires including <stddef.h> for size_t.  Use extern "C" if C++.
72754         Use #elif for simplicity, since we can assume C89 now.
72755         Don't try to source the system alloca.h since it will not be found
72756         and to prevent recursively including its replacement.
72757         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
72758         * lib/regex.c: Likewise.
72759
72760 2004-05-16  Derek Price  <derek@ximbiot.com>
72761             Paul Eggert  <eggert@cs.ucla.edu>
72762
72763         getline cleanup.  This changes the getndelim2 API: both order of
72764         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
72765         no delimiter).
72766
72767         * lib/getline.c: Don't include stddef.h or stdio.h, since our
72768         interface does that.
72769         (getline): Always use getdelim, so that we don't have two
72770         copies of this code.
72771         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
72772         if available.
72773         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
72774         (GETNDELIM2_MAXIMUM): New macro.
72775         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
72776         instead of the old practice of delim2==0.  All callers changed.
72777         Return -1 on overflow, instead of returning junk.
72778         Do not set *linesize unless allocation succeeds.
72779         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
72780         that we include sys/types.h.
72781         * lib/getnline.h: Likewise.
72782         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
72783         (getndelim2): Reorder arguments.
72784         * lib/getnline.c (getnline, getndelim):
72785         Don't discard the NMAX argument.
72786         (getnline): Invoke getndelim, to avoid code duplication.
72787         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
72788         of (size_t) -1 by callers of the getnline family.
72789
72790 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
72791
72792         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
72793         Check for gettimeofday.
72794         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
72795         Check for settimeofday, stime.
72796
72797 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
72798
72799         * lib/nanosleep.c (suspended): Change its type from int to
72800         sig_atomic_t volatile.
72801         (first_call): Make it private to rpl_nanosleep, and have it
72802         be zero initially as that's a bit faster.
72803         (my_usleep): Round up fractional times instead of truncating them,
72804         as this is the usual meaning for 'sleep'.
72805
72806         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
72807         doesn't work.
72808         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
72809         (ENOSYS): Define if not defined.
72810         (settime): Fall back on stime if it exists and settimeofday fails.
72811         But don't bother with fallbacks if a method fails with errno == EPERM.
72812
72813 2004-05-11  Jim Meyering  <jim@meyering.net>
72814
72815         Prior to this change, the save_cwd caller required read access to the
72816         current directory on most systems (ones with the fchdir function).
72817
72818         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
72819         fails, try write-only, and finally, resort to using xgetcwd.
72820
72821 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
72822
72823         * lib/obstack.c, obstack.h: Import changes from libc.
72824
72825 2004-04-28  Bruno Haible  <bruno@clisp.org>
72826
72827         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
72828         also implicitly appends .exe to executables.
72829         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
72830         accepts Windows pathnames.
72831         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
72832         Treat Cygwin like Windows, since it now accepts Windows pathnames.
72833         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
72834         Treat Cygwin like Windows, since it now accepts Windows pathnames.
72835         Reported by Derek Robert Price <derek@ximbiot.com>.
72836
72837 2004-04-21  Karl Berry  <karl@gnu.org>
72838
72839         * config/srclist.txt (localcharset.c): break sync.
72840
72841 2004-04-20  Paul Eggert  <eggert@twinsun.com>
72842
72843         * m4/host-os.m4: Add a copyright notice.
72844
72845 2004-04-20  Jim Meyering  <jim@meyering.net>
72846
72847         Change UTILS_ to gl_ in AC_DEFINE'd names.
72848         Change utils_- and jm_-prefixed variables, too.
72849         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
72850         UTILS_FUNC_MKDIR_TRAILING_SLASH.
72851         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
72852
72853         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
72854         Don't emit trailing blanks.
72855         Also rename jm_-prefixed variables to have gl_ prefix.
72856
72857         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
72858         Also rename jm_-prefixed variables to have gl_ prefix.
72859
72860         * m4/jm-macros.m4: Reflect the renamings.
72861         * m4/prereq.m4: Likewise.
72862
72863 2004-04-20  Jim Meyering  <jim@meyering.net>
72864
72865         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
72866         memory.
72867
72868 2004-04-20  Jim Meyering  <jim@meyering.net>
72869             Bruno Haible  <bruno@clisp.org>
72870
72871         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
72872         memory when realloc fails.
72873
72874 2004-04-19  Jim Meyering  <jim@meyering.net>
72875
72876         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
72877         now that readutmp.c may call `free (0)'.
72878
72879 2004-04-19  Bruno Haible  <bruno@clisp.org>
72880
72881         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
72882         * m4/inttypes_h.m4: Likewise.
72883         * m4/stdint_h.m4: Likewise.
72884         * m4/intmax_t.m4: Likewise.
72885         * m4/uintmax_t.m4: Likewise.
72886
72887 2004-04-18  Jim Meyering  <jim@meyering.net>
72888
72889         * m4/prereq.m4: Don't forbid jm_ prefix.
72890
72891         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
72892         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
72893         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
72894         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
72895         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
72896         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
72897         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
72898         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
72899         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
72900         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
72901         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
72902         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
72903         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
72904         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
72905         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
72906         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
72907         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
72908         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
72909         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
72910
72911 2004-04-18  Jim Meyering  <jim@meyering.net>
72912
72913         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
72914         failure, don't leak memory and do call END_UTMP_ENT.
72915
72916 2004-04-16  Jim Meyering  <jim@meyering.net>
72917
72918         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
72919         coreutils' stat program.
72920         (gl_PREREQ): Don't require jm_PREREQ_STAT.
72921
72922 2004-04-11  Paul Eggert  <eggert@twinsun.com>
72923
72924         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
72925         C89.
72926         (CHAR_BIT): Remove, since we assume C89.
72927         Include <stdint.h> if available, as per current Autoconf CVS advice.
72928
72929 2004-03-31  Jim Meyering  <jim@meyering.net>
72930
72931         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
72932         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
72933         * m4/xalloc.m4: Likewise.
72934
72935 2004-03-30  Paul Eggert  <eggert@twinsun.com>
72936
72937         Merge from coreutils.
72938
72939         * m4/inttostr.m4: New file.
72940         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
72941         Require AM_STDBOOL_H and gl_TIMESPEC instead.
72942         Require gl_CLOCK_TIME.
72943         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
72944
72945 2004-03-30  Paul Eggert  <eggert@twinsun.com>
72946
72947         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
72948         not bool, to be more consistent with Unix conventions.
72949         Suggested by Bruno Haible.
72950
72951         Merge from coreutils.
72952
72953         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
72954         * lib/umaxtostr.c: New files.
72955
72956         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
72957         the usual <time.h> dance.
72958         (get_date): Change signature to support fractional time stamps.
72959         All callers changed.
72960         * lib/getdate.y: Include "getdate.h" first, as we can now
72961         assume C89 and don't need to worry about 'const'.
72962         Similarly, include "unlocked-io.h" near start, not in middle.
72963         Include <limits.h>.
72964         (textint.value): Use long int rather than int.
72965         (textint.digits): Use size_t rather than int.
72966         (BILLION, LOG10_BILLION): New constants.
72967         (parser_control): New member rel_ns.  Members day_ordinal,
72968         time_zone, month, day, hour, minutes, rel_year, rel_month,
72969         rel_day, rel_hour, rel_minutes, rel_seconds
72970         are now long int, not int.  Member seconds is now struct timespec,
72971         not int.  New member timespec_seen.  Members dates_seen, days_seen,
72972         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
72973         not int.
72974         (%union.intval): Now long int, not int.
72975         New member timespec.
72976         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
72977         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
72978         (spec): Now is a timespec or an item list.
72979         (timespec, items): New nonterminals.
72980         (time, rel, relunit, number, get_date):
72981         Add support for fractional seconds.
72982         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
72983         (gmtime, localtime, mktime): Remove decls; not needed with C89.
72984         (to_hour): First arg is now long int, not int.
72985         (to_year): Returns long int, not int.
72986         Don't treat year -70 like 70.
72987         (tm_diff): Returns long int, not int.
72988         (lookup_word): Use bool instead of int when appropriate.
72989         (yylex): Use size_t for count, not int.
72990         Detect overflow when parsing large integer constants.
72991         Add support for fractions.
72992         (get_date): Make pointers 'const' if possible.
72993         Use more-portable code to detect integer overflow.
72994         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
72995         Don't use ctime; it's not reliable if the year has >4 digits.
72996
72997         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
72998         This is for compatibility with BSD.
72999
73000         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
73001         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
73002         From coreutils' system.h.
73003
73004         * lib/userspec.c: Don't include "posixver.h".
73005         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
73006         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
73007         compatible extension.  Simplify code by removing a boolean int
73008         that was always nonzero if a string was nonnull.
73009
73010 2004-03-30  Jim Meyering  <jim@meyering.net>
73011
73012         Merge from coreutils.
73013
73014         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
73015         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
73016         on some systems one must include <grp.h> before it.
73017         Reported by Christian Krackowizer.
73018
73019 2004-03-30  Jim Meyering  <jim@meyering.net>
73020
73021         Merge from coreutils.
73022
73023         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
73024
73025         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
73026         an empty input stream.
73027
73028         * lib/readtokens.c: Include <stdbool.h>.
73029         (readtoken): Use `size_t' rather than int/long.
73030         All callers adjusted.
73031         Use `bool' rather than `int' where appropriate.
73032         Use memset rather than an explicit loop.
73033         Use x2nrealloc rather than xrealloc.
73034         Allow the use of `\0' as a delimiter.
73035         (readtokens): Likewise.
73036         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
73037
73038 2004-03-30  Jim Meyering  <jim@meyering.net>
73039
73040         * m4/realloc.m4: Remove file, since now it does no more than
73041         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
73042         the `configure.ac' section of module/realloc.
73043         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
73044
73045 2004-03-30  Bruno Haible  <bruno@clisp.org>
73046
73047         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
73048         nonnull.
73049
73050 2004-03-29  Paul Eggert  <eggert@twinsun.com>
73051
73052         Merge changes to getloadavg.c from coreutils and Emacs.
73053
73054         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
73055         Define to an expression, not to the empty string.
73056         Include cloexec.h and xalloc.h.
73057         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
73058         Use set_cloexec_flag rather than rolling our own.
73059         * lib/cloexec.c, lib/cloexec.h: New files.
73060
73061 2004-03-29  Paul Eggert  <eggert@twinsun.com>
73062
73063         * m4/cloexec.m4: New file.
73064
73065 2004-03-18  Paul Eggert  <eggert@twinsun.com>
73066
73067         * lib/getopt.h: Sync with libc CVS.
73068
73069 2004-03-18  Paul Eggert  <eggert@twinsun.com>
73070             Bruno Haible  <bruno@clisp.org>
73071
73072         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
73073         mbswidth.
73074
73075 2004-03-18  Paul Eggert  <eggert@twinsun.com>
73076             Bruno Haible  <bruno@clisp.org>
73077
73078         * lib/mbswidth.h: Include <wchar.h> only if
73079         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
73080         <wchar.h>.
73081         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
73082
73083 2004-03-09  Paul Eggert  <eggert@twinsun.com>
73084
73085         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
73086         Sync with libc CVS.
73087         * lib/getopt_int.h: New file, also synced from libc.
73088
73089 2004-03-09  Paul Eggert  <eggert@twinsun.com>
73090
73091         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
73092         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
73093         Bring back getopt.c, getopt.h, getopt1.c.
73094
73095 2004-03-07  Paul Eggert  <eggert@twinsun.com>
73096
73097         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
73098         All uses changed.  Check for sa_sigaction member; this fixes
73099         a bug first reported by Jason Andrade in
73100         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
73101
73102 2004-03-07  Paul Eggert  <eggert@twinsun.com>
73103
73104         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
73105         '#if' expressions.  Unlike the code it replaces, it does not
73106         depend on (defined _SC_PAGESIZE).  However, it does depend on
73107         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
73108         first reported by Jason Andrade in
73109         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
73110
73111 2004-02-25  Simon Josefsson  <jas@extundo.com>
73112
73113         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
73114
73115 2004-02-25  Simon Josefsson  <jas@extundo.com>
73116
73117         * lib/strdup.h: New file.
73118         * lib/strdup.c: Include it.
73119         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
73120         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
73121
73122 2004-02-23  Karl Berry  <karl@gnu.org>
73123
73124         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
73125         (from fencepost.gnu.org:/gd/gnuorg).
73126
73127 2004-02-23  Karl Berry  <karl@gnu.org>
73128
73129         * config/srclistvars.sh (GNUORG) [karl]: redefine.
73130         * config/srclist.txt: add maintain/standards documents.
73131
73132 2004-02-18  Bruno Haible  <bruno@clisp.org>
73133
73134         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
73135         Reported by Derek Robert Price <derek@ximbiot.com>.
73136
73137 2004-02-16  Karl Berry  <karl@gnu.org>
73138
73139         * config/mkinstalldirs, install-sh: update from automake.
73140
73141 2004-02-06  Karl Berry  <karl@gnu.org>
73142
73143         * m4/po.m4: update from gettext 0.14.1.
73144
73145 2004-02-06  Karl Berry  <karl@gnu.org>
73146
73147         * lib/config.charset: update from gettext 0.14.1.
73148
73149 2004-02-05  Paul Eggert  <eggert@twinsun.com>
73150
73151         Add comments and code, prompted by suggestions from Bruno Haible
73152         for sh-quote.
73153         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
73154         describing the enum quoting_style values.
73155         * lib/quotearg.c (quotearg_alloc): New function.
73156         (quotearg_buffer_restyled): Treat lone { and } as special.
73157         Treat = as special.  Work around bug with older shells
73158         that "see" a '\' that is really the 2nd byte of a multibyte char.
73159         Quote empty string with shell_quoting_style.
73160
73161 2004-02-03  Bruno Haible  <bruno@clisp.org>
73162
73163         * m4/pipe.m4: New file, from GNU gettext.
73164
73165 2004-02-03  Bruno Haible  <bruno@clisp.org>
73166
73167         * lib/pipe.h: New file, from GNU gettext.
73168         * lib/pipe.c: New file, from GNU gettext.
73169
73170 2004-01-27  Bruno Haible  <bruno@clisp.org>
73171
73172         * m4/execute.m4: New file, from GNU gettext.
73173
73174 2004-01-27  Bruno Haible  <bruno@clisp.org>
73175
73176         * lib/execute.h: New file, from GNU gettext.
73177         * lib/execute.c: New file, from GNU gettext.
73178         * lib/w32spawn.h: New file, from GNU gettext.
73179
73180 2004-01-24  Paul Eggert  <eggert@twinsun.com>
73181
73182         Merge from diffutils.
73183
73184         * lib/file-type.c (file_type): Add typed memory objects.
73185         * lib/file-type.h (S_TYPEISTMO): New macro.
73186
73187         * lib/c-stack.h (c_stack_action): Remove argv argument.
73188         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
73189         (die): Don't calculate message unless segv_action returns.
73190         (get_stack_location, min_address_from_argv, max_address_from_argv,
73191         volatile stack_base, volatile_stack_size): Remove.
73192         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
73193         that every segmentation violation is a stack overflow.  (Ouch!)
73194         See Debian bug 136249 (still outstanding) for more info about why
73195         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
73196
73197 2004-01-24  Paul Eggert  <eggert@twinsun.com>
73198
73199         Exit-status fix from coreutils.
73200
73201         Use exit_failure consistently in place of EXIT_FAILURE,
73202         so that program exit statuses are consistent on failure.
73203
73204         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
73205         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
73206         * lib/argmatch.h: Comment fix to match the above.
73207         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
73208         Now a macro referring to exit_failure, instead of a separate
73209         variable.  Include "exitfail.h" to get it.
73210         * lib/xstrtol.h: Include "exitfail.h".
73211         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
73212
73213         * lib/long-options.c (parse_long_options): Use prototype
73214         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
73215         for clarity.
73216
73217 2004-01-21  Jim Meyering  <jim@meyering.net>
73218
73219         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
73220         so as not to conflict with a different-sized __mktime_internal
73221         function in GNU libc.
73222         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
73223         Problem building statically-linked `ls' reported by Michael Brunnbauer.
73224
73225 2004-01-20  Karl Berry  <karl@gnu.org>
73226
73227         * config/config.guess: update from config.
73228
73229         * config/srclistvars.sh: GNUWWWLICENSES for karl.
73230
73231 2004-01-20  Bruno Haible  <bruno@clisp.org>
73232
73233         Safer stack allocation.
73234         * lib/setenv.c: Include allocsa.h.
73235         (alloca): Remove fallback definition.
73236         (freea): Remove macro.
73237         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
73238         instead of freea.
73239
73240 2004-01-20  Bruno Haible  <bruno@clisp.org>
73241
73242         * m4/eealloc.m4: New file, from GNU gettext.
73243
73244 2004-01-20  Bruno Haible  <bruno@clisp.org>
73245
73246         * m4/allocsa.m4: New file, from GNU gettext.
73247
73248 2004-01-20  Bruno Haible  <bruno@clisp.org>
73249
73250         * lib/xallocsa.h: New file, from GNU gettext.
73251         * lib/xallocsa.c: New file, from GNU gettext.
73252
73253 2004-01-20  Bruno Haible  <bruno@clisp.org>
73254
73255         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
73256
73257 2004-01-20  Bruno Haible  <bruno@clisp.org>
73258
73259         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
73260         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
73261         specially.
73262
73263 2004-01-20  Bruno Haible  <bruno@clisp.org>
73264
73265         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
73266         patch.
73267
73268 2004-01-20  Bruno Haible  <bruno@clisp.org>
73269
73270         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
73271
73272 2004-01-20  Bruno Haible  <bruno@clisp.org>
73273
73274         * lib/eealloc.h: New file.
73275
73276 2004-01-20  Bruno Haible  <bruno@clisp.org>
73277
73278         * lib/binary-io.h: Avoid warnings on Cygwin.
73279
73280 2004-01-20  Bruno Haible  <bruno@clisp.org>
73281
73282         * lib/allocsa.h: New file, from GNU gettext.
73283         * lib/allocsa.c: New file, from GNU gettext.
73284
73285 2004-01-18  Karl Berry  <karl@gnu.org>
73286
73287         * doc/gpl.texi, doc/lgpl.texi: new files.
73288
73289 2004-01-18  Karl Berry  <karl@gnu.org>
73290
73291         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
73292         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
73293
73294 2004-01-15  Paul Eggert  <eggert@twinsun.com>
73295
73296         Merge from coreutils.
73297
73298         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
73299         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
73300         (gl_DEFAULT_POSIX2_VERSION): Move
73301         the documentation from 'configure' into 'config.hin',
73302         so that 'configure --help' isn't burdened by it and
73303         we don't have to worry about its formatting there.
73304         Reword the documentation so that it's more succinct
73305         and can be run together into a single paragraph.
73306         * m4/same.m4 (gl_SAME): Check for pathconf.
73307
73308 2004-01-15  Paul Eggert  <eggert@twinsun.com>
73309
73310         Merge from coreutils.
73311
73312         * lib/posixver.c: Include posixver.h.
73313
73314         * lib/same.c: Include <stdbool.h>, <limits.h>.
73315         (_POSIX_NAME_MAX): Define if not defined.
73316         (MIN): New macro.
73317         (same_name): If file names are silently truncated, report
73318         that the file names are the same if they are the same after
73319         the silent truncation.
73320
73321         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
73322         conversion function.
73323         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
73324         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
73325         longer needed.
73326
73327 2004-01-15  Jim Meyering  <jim@meyering.net>
73328
73329         Merge from coreutils.
73330
73331         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
73332         if no library is required.
73333         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
73334         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
73335         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
73336         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
73337         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
73338         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
73339         value, $ac_cv_search_crypt, if it's "none required".
73340         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
73341         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
73342         not gl_FUNC_GETLOADAVG.
73343         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
73344         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
73345
73346 2004-01-15  Jim Meyering  <jim@meyering.net>
73347
73348         Merge from coreutils.
73349
73350         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
73351         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
73352         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
73353
73354         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
73355         optional configure-time default.
73356
73357         * lib/version-etc.c (version_etc_copyright): Update copyright date.
73358
73359         * lib/xreadlink.c (xreadlink): Correct outdated comment.
73360
73361 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
73362
73363         Merge from coreutils.
73364
73365         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
73366         value, $ac_cv_search_nanosleep, if it's "none required".
73367
73368 2004-01-14  Paul Eggert  <eggert@twinsun.com>
73369
73370         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
73371         with like-named macro in fnmatch.c.
73372         (EXT): Use an internal constant instead.
73373
73374         Merge fnmatch patches from glibc.
73375         * lib/fnmatch.c (mbsinit): Remove define.
73376         Add libc_hidden_ver (__fnmatch, fnmatch).
73377         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
73378         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
73379
73380 2004-01-14  Karl Berry  <karl@gnu.org>
73381
73382         * config/install-sh: update from automake.
73383
73384 2004-01-13  Karl Berry  <karl@gnu.org>
73385
73386         * config/install-sh: update from automake.
73387
73388 2004-01-09  Karl Berry  <karl@gnu.org>
73389
73390         * config/install-sh: update from automake.
73391
73392 2004-01-05  Karl Berry  <karl@gnu.org>
73393
73394         * config/config.{sub,guess}: update from config.
73395
73396 2003-12-31  Karl Berry  <karl@gnu.org>
73397
73398         * config/depcomp: update from automake.
73399
73400 2003-12-14  Karl Berry  <karl@gnu.org>
73401
73402         * lib/config.charset: update from gettext-runtime.
73403
73404 2003-12-03  Paul Eggert  <eggert@twinsun.com>
73405
73406         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
73407         Bug reported by Alfred M. Szmidt.
73408
73409 2003-12-03  Bruno Haible  <bruno@clisp.org>
73410
73411         * m4/gettext.m4: Upgrade from gettext-0.13.
73412         * m4/po.m4: Upgrade from gettext-0.13.
73413         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
73414         * m4/intmax.m4: New file, from gettext-0.13.
73415         * m4/printf-posix.m4: New file, from gettext-0.13.
73416
73417 2003-11-29  Karl Berry  <karl@gnu.org>
73418
73419         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
73420
73421 2003-11-25  Paul Eggert  <eggert@twinsun.com>
73422             Bruno Haible  <bruno@clisp.org>
73423
73424         * lib/printf-parse.h: Don't include sys/types.h.
73425         (ARG_NONE): New macro.
73426         (char_directive): Change type of *arg_index fields to size_t.
73427         * lib/printf-parse.c: Don't include sys/types.h.
73428         (SSIZE_MAX): Remove macro.
73429         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
73430         Remove unnecessary overflow check.
73431         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
73432         fields.
73433
73434 2003-11-25  Bruno Haible  <bruno@clisp.org>
73435
73436         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
73437
73438 2003-11-25  Bruno Haible  <bruno@clisp.org>
73439
73440         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
73441         gt_TYPE_SSIZE_T.
73442
73443 2003-11-24  Paul Eggert  <eggert@twinsun.com>
73444
73445         * modules/alloca: Remove dependency on xalloc.
73446
73447 2003-11-24  Paul Eggert  <eggert@twinsun.com>
73448
73449         * lib/alloca.c: Remove dependency on xalloc module.
73450         (xalloc_die): Remove.
73451         (memory_full) [!defined emacs]: New macro.
73452         [!defined emacs]: Don't include xalloc.h.
73453         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
73454         address arithmetic overflows.  Change datatypes a bit to avoid
73455         unnecessary casts.
73456
73457 2003-11-22  Jim Meyering  <jim@meyering.net>
73458
73459         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
73460         s/size/size_t/.
73461
73462 2003-11-21  Karl Berry  <karl@gnu.org>
73463
73464         * config/config.{sub,guess}: update from config.
73465
73466 2003-11-18  Karl Berry  <karl@gnu.org>
73467
73468         * config/config.{sub,guess}: update from config.
73469
73470         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
73471
73472 2003-11-17  Paul Eggert  <eggert@twinsun.com>
73473
73474         * README: Mention that S+T cannot overflow if S is the size of
73475         an existing object and T is sufficiently small.
73476
73477 2003-11-17  Jim Meyering  <jim@meyering.net>
73478
73479         On systems without utime and without a utimes function capable of
73480         dealing with a NULL struct utimbuf* argument, this utime replacement
73481         could -- in unusual circumstances -- leak a file descriptor.
73482         * lib/utime.c: Include <unistd.h> and <errno.h>.
73483         (utime_null): Be sure to close `fd' and to preserve errno.
73484         Reported by Geoff Collyer via Arnold Robbins.
73485
73486 2003-11-17  Bruno Haible  <bruno@clisp.org>
73487
73488         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
73489         (Depends-on): Add xsize.
73490
73491 2003-11-17  Bruno Haible  <bruno@clisp.org>
73492
73493         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
73494
73495 2003-11-17  Bruno Haible  <bruno@clisp.org>
73496
73497         * lib/vasnprintf.c (alloca): Remove fallback definition.
73498         (freea): Remove definition.
73499         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
73500         Reported by Paul Eggert.
73501
73502 2003-11-16  Paul Eggert  <eggert@twinsun.com>
73503             Bruno Haible  <bruno@clisp.org>
73504
73505         Protect against address arithmetic overflow.
73506         * lib/printf-args.h: Include stddef.h.
73507         (arguments): Change type of field 'count' to size_t.
73508         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
73509         'unsigned int' where appropriate.
73510         * lib/printf-parse.h: Include sys/types.h.
73511         (char_directive): Change type of *arg_index fields to ssize_t.
73512         (char_directives): Change type of fields 'count', max_*_length to
73513         size_t.
73514         * lib/printf-parse.c: Include sys/types.h and xsize.h.
73515         (SSIZE_MAX): Define fallback value.
73516         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
73517         instead of 'int' where appropriate. Check a_allocated, d_allocated
73518         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
73519         * lib/vasnprintf.c: Include xsize.h.
73520         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
73521         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
73522         overflow. Avoid wraparound when converting a width or precision from
73523         decimal to binary.
73524
73525 2003-11-16  Bruno Haible  <bruno@clisp.org>
73526
73527         Update from GNU gettext.
73528         * lib/printf-parse.c: Generalize to it can be compiled for wide
73529         strings.
73530         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
73531         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
73532         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
73533         SNPRINTF): New macros.
73534         Don't include <alloca.h> if the file is used inside libintl.
73535         (local_wcslen): New function, for Solaris 2.5.1.
73536         (VASNPRINTF): Use it instead of wcslen.
73537
73538 2003-11-16  Bruno Haible  <bruno@clisp.org>
73539
73540         * lib/xsize.h (xmax): New function.
73541         (xsum, xsum3, xsum4): Declare as "pure" functions.
73542
73543 2003-11-12  Paul Eggert  <eggert@twinsun.com>
73544
73545         * modules/xalloc (Files): Undo latest change, since xalloc.h
73546         no longer needs SIZE_MAX or PTRDIFF_MAX.
73547
73548 2003-11-12  Paul Eggert  <eggert@twinsun.com>
73549
73550         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
73551         gl_PTRDIFF_MAX.
73552
73553 2003-11-12  Paul Eggert  <eggert@twinsun.com>
73554
73555         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
73556         "return", to pacify some unknown compiler.  Problem reported
73557         by Joerg Schilling.
73558
73559 2003-11-12  Paul Eggert  <eggert@twinsun.com>
73560
73561         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
73562         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
73563         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
73564         heuristic is just as accurate as far as we know, and it removes a
73565         dependency on size_max.m4 and ptrdiff_max.m4.
73566
73567 2003-11-11  Bruno Haible  <bruno@clisp.org>
73568
73569         * modules/xsize (Files): Add m4/size_max.m4.
73570         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
73571
73572 2003-11-11  Bruno Haible  <bruno@clisp.org>
73573
73574         * m4/size_max.m4: New file.
73575         * m4/ptrdiff_max.m4: New file.
73576         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
73577         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
73578         (gl_XALLOC): Invoke it.
73579
73580 2003-11-11  Bruno Haible  <bruno@clisp.org>
73581
73582         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
73583         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
73584         defined.
73585
73586 2003-11-10  Paul Eggert  <eggert@twinsun.com>
73587
73588         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
73589         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
73590         rejected some allocations of exactly SIZE_MAX - 2 bytes.
73591         From Bruno Haible.
73592         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
73593         not (size_t) -1, since it's defined here.
73594
73595 2003-11-09  Karl Berry  <karl@gnu.org>
73596
73597         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
73598
73599 2003-11-06  Paul Eggert  <eggert@twinsun.com>
73600
73601         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
73602         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
73603         Reject sizes of exactly SIZE_MAX bytes.
73604         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
73605         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
73606
73607 2003-11-05  Bruno Haible  <bruno@clisp.org>
73608
73609         * lib/xsize.h: Include limits.h, to avoid a possible collision with
73610         SIZE_MAX defined in <limits.h> on Solaris.
73611
73612 2003-11-04  Jim Meyering  <jim@meyering.net>
73613
73614         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
73615         variable names, rather than @VAR@.
73616         * modules/poll: Likewise.
73617
73618 2003-11-04  Bruno Haible  <bruno@clisp.org>
73619
73620         * modules/xsize: New file.
73621         * modules/linebreak: Depend on xsize.
73622         * MODULES.html.sh (func_all_modules): Add xsize.
73623
73624 2003-11-04  Bruno Haible  <bruno@clisp.org>
73625
73626         * m4/xsize.m4: New file.
73627
73628 2003-11-04  Bruno Haible  <bruno@clisp.org>
73629
73630         * lib/xsize.h: New file.
73631         * lib/linebreak.c: Include xsize.h.
73632         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
73633         argument for overflow.
73634         Suggested by Paul Eggert.
73635
73636 2003-11-03  Karl Berry  <karl@gnu.org>
73637
73638         * config/config.{guess,sub}: update from config.
73639
73640 2003-11-03  Jim Meyering  <jim@meyering.net>
73641
73642         * modules/userspec (lib_SOURCES): Add userspec.h.
73643         (Include): Add "userspec.h".
73644         Improve description.
73645
73646 2003-11-03  Jim Meyering  <jim@meyering.net>
73647
73648         * lib/userspec.c: Include "userspec.h".
73649         * lib/userspec.h: New file.
73650
73651 2003-11-03  Bruno Haible  <bruno@clisp.org>
73652
73653         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
73654
73655 2003-11-03  Bruno Haible  <bruno@clisp.org>
73656
73657         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
73658         available, to avoid (extremely rare) race condition.
73659         Suggested by Paul Eggert.
73660
73661 2003-11-02  Karl Berry  <karl@gnu.org>
73662
73663         * config/srclist.txt (vasprintf.c): sync broken, sigh.
73664
73665 2003-10-31  Paul Eggert  <eggert@twinsun.com>
73666
73667         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
73668         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
73669         (read_filesystem_list): Set and use me_type_malloced.
73670         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
73671         whatever the type happens to be), for brevity and consistency.
73672         Check for size calculation overflow on Alphas running OSF/1.
73673
73674 2003-10-31  Jim Meyering  <jim@meyering.net>
73675
73676         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
73677
73678         * lib/linebuffer.c: Include <string.h> for declaration of memset.
73679
73680 2003-10-30  Paul Eggert  <eggert@twinsun.com>
73681             Bruno Haible  <bruno@clisp.org>
73682
73683         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
73684         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
73685
73686 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73687
73688         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
73689         netbsd*-gnu*.  Suggested by Robert Millan.
73690
73691 2003-10-29  Paul Eggert  <eggert@twinsun.com>
73692
73693         * modules/group-member: Depend on stdbool.
73694
73695 2003-10-29  Paul Eggert  <eggert@twinsun.com>
73696
73697         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
73698
73699 2003-10-29  Paul Eggert  <eggert@twinsun.com>
73700
73701         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
73702         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
73703         after the 'gnu' in these cases.  This fixes some bugs in the
73704         previous change, and is based on suggestions by Robert Millan.
73705
73706 2003-10-29  Paul Eggert  <eggert@twinsun.com>
73707
73708         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
73709         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
73710         no longer needed.
73711         * lib/quotearg.c (quotearg_n_options): Use it.
73712         * lib/group-member.c: Include <stdbool.h>.
73713         (free_group_info): Arg is now const *; don't free arg.
73714         (get_group_info): Now returns bool and accepts struct group_info *,
73715         rather than returning a malloc'ed struct group_info *.
73716         All uses changed.  Check for overflow in internal size calculation.
73717
73718         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
73719         rather than xmalloc/xrealloc.
73720         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
73721         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
73722         conformance bug: the old code used a pointer after freeing the
73723         storage that it addressed.
73724         * lib/hash.c (hash_initialize): Simplify the code by using
73725         xalloc_oversized rather than doing it by hand.
73726         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
73727         the buffer preserved.  Use free and xmalloc instead.
73728         * lib/quotearg.c (quotearg_n_options): Likewise.
73729         Use a simpler test for size overflow.  Don't use xalloc_oversized
73730         because unsigned int might be wider than size_t (!); this suggests
73731         that we should switch from unsigned int to size_t for slot numbers.
73732
73733 2003-10-28  Paul Eggert  <eggert@twinsun.com>
73734
73735         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
73736         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
73737         NetBSD kernels.  Requested by Richard Stallman.
73738
73739 2003-10-27  Paul Eggert  <eggert@twinsun.com>
73740
73741         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
73742         to allocate the returned structure.  Do not allocate a subarray,
73743         as x2nrealloc will do that.
73744         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
73745         instead of xnrealloc.
73746         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
73747
73748 2003-10-27  Bruno Haible  <bruno@clisp.org>
73749
73750         * lib/stdbool_.h: Better support for BeOS.
73751
73752 2003-10-26  Paul Eggert  <eggert@twinsun.com>
73753
73754         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
73755         now uses inline.
73756
73757 2003-10-26  Paul Eggert  <eggert@twinsun.com>
73758
73759         * lib/xalloc.h (xalloc_oversized): New static inline function, for
73760         callers that want to do their own size-overflow checking.  Include
73761         <stdbool.h>, since xalloc_oversized returns bool.
73762         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
73763         to use xalloc_oversized.
73764
73765         Add two functions x2realloc, x2nrealloc, for programs that grow
73766         arrays dynamically by doubling their sizes.
73767         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
73768         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
73769         New functions.
73770
73771         Port to C99 semantics for 'inline' of external functions.
73772         Bug reported by Bruno Haible.
73773         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
73774         with the old contents of xnmalloc.
73775         (xnmalloc, xmalloc): Use it.
73776         (xnrealloc_inline): New static inline function,
73777         with the old contents of xnrealloc.
73778         (xnrealloc, xrealloc): Use it.
73779
73780         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
73781         that.
73782
73783 2003-10-26  Karl Berry  <karl@gnu.org>
73784
73785         * config/srclist.txt (COPYING.DOC): no longer available from
73786         /gd/gnuorg; don't know where the ultimate source is.
73787
73788 2003-10-25  Paul Eggert  <eggert@twinsun.com>
73789
73790         Fix several address-calculation bugs in the hash modules,
73791         plus some minor code cleanup.
73792
73793         * lib/hash.h: Include <stdbool.h>, for bool.
73794         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
73795         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
73796         hash_get_n_entries, hash_get_max_bucket_length,
73797         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
73798         hash_rehash): Use size_t rather than unsigned.
73799         * lib/hash.c (struct hash_table, hash_get_n_buckets,
73800         hash_get_n_buckets_used, hash_get_n_entries,
73801         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
73802         hash_get_entries, hash_do_for_each, hash_string, is_prime,
73803         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
73804         Likewise.
73805         (SIZE_MAX): Define if not defined.
73806         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
73807         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
73808         hash_print):
73809         Use const * when possible.
73810         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
73811         (check_tuning): Fix bug: if tuning parameters were very close to
73812         0 or 1, rounding errors could have caused subscript violations.
73813         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
73814         (hash_initialize): Add 'fail:' label
73815         to free table and return NULL, and use it to simplify code.
73816         Use calloc rather than clearing the storage ourself.
73817         (hash_initialize, hash_rehash): Check for arithmetic overflow in
73818         buffer size calculations.
73819         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
73820         Include <stddef.h>, for size_t.
73821         * lib/hash-pjw.c (hash_pjw): Likewise.
73822         Switch to method described by Bruno Haible.
73823         Include <limits.h>, for CHAR_BIT.
73824         (SIZE_BITS): New macro.
73825
73826 2003-10-23  Paul Eggert  <eggert@twinsun.com>
73827
73828         * m4/getline.m4 (AM_FUNC_GETLINE):
73829         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
73830         hosts.  Problem reported by Derek Robert Price in
73831         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
73832         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
73833         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
73834
73835 2003-10-21  Paul Eggert  <eggert@twinsun.com>
73836
73837         * lib/getndelim2.c (getndelim2): When size calculation overflows,
73838         ceiling the allocation at NMAX bytes rather than silently
73839         discarding input bytes before NMAX is reached.  This makes
73840         a difference only if NMAX exceeds SIZE_MAX / 2.
73841
73842         * lib/obstack.c: Merge from glibc.
73843         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
73844         Add libc_hidden_def (_obstack_newchunk).
73845         (_obstack_free) [! defined _LIBC]: Remove.
73846         [defined _LIBC]: Make a strong alias from obstack_free, rather than
73847         a clone of the function body.
73848         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
73849         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
73850
73851         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
73852         glibc.
73853         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
73854         arg to memcpy.
73855
73856         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
73857         (obstack_ptr_grow_fast, obstack_int_grow_fast):
73858         Don't use lvalue casts, as GCC plans to remove support for them
73859         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
73860         was also present in the non-GCC version, indicating that this
73861         code had always been buggy and had never been widely used.
73862         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
73863         Use the fast variant of each macro, rather than copying the
73864         definiens of the fast variant; that way, we'll be more likely to
73865         catch future bugs in the fast variants.
73866
73867 2003-10-20  Bruno Haible  <bruno@clisp.org>
73868
73869         * modules/wait-process: New file.
73870         * MODULES.html.sh (func_all_modules): Add wait-process.
73871
73872 2003-10-20  Bruno Haible  <bruno@clisp.org>
73873
73874         * m4/wait-process.m4: New file.
73875
73876 2003-10-20  Bruno Haible  <bruno@clisp.org>
73877
73878         * lib/wait-process.h: New file, from GNU gettext.
73879         * lib/wait-process.c: New file, from GNU gettext.
73880
73881 2003-10-19  Jim Meyering  <jim@meyering.net>
73882
73883         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
73884         HPUX 10.20.
73885
73886 2003-10-18  Karl Berry  <karl@gnu.org>
73887
73888         * config/config.guess: update from config.
73889
73890 2003-10-16  Paul Eggert  <eggert@twinsun.com>
73891
73892         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
73893         (getgroups): First arg is int, not size_t.
73894         Don't let 'free' mangle errno.
73895
73896 2003-10-16  Paul Eggert  <eggert@twinsun.com>
73897
73898         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
73899
73900 2003-10-16  Karl Berry  <karl@gnu.org>
73901
73902         * config/config.{guess,sub}: update from config.
73903
73904 2003-10-16  Jim Meyering  <jim@meyering.net>
73905
73906         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
73907         memcpy.
73908
73909 2003-10-15  Paul Eggert  <eggert@twinsun.com>
73910
73911         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
73912         (SIZE_MAX): Remove.
73913         (new_exclude, add_exclude_file): Initial size no longer needs to
73914         be a power of 2.
73915         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
73916         our own address arithmetic overflow checking.
73917
73918         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
73919         (fnmatch): Do not alloca more than 2000 wide characters;
73920         instead, use malloc for large buffers.
73921         Check for address arithmetic overflow, and return -1
73922         with errno set to ENOMEM in that case.
73923         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
73924         (NEW_PATTERN): Do not alloca more than 8000 bytes;
73925         instead, return -1.  Check for address arithmetic overflow.
73926
73927 2003-10-14  Paul Eggert  <eggert@twinsun.com>
73928
73929         Handle invalid suffixes and overflow independently, so that
73930         callers can treat them independently as needed.  Fix some bugs in
73931         suffix handling, e.g., "100k@" was not diagnosed as an invalid
73932         suffix for a human-readable blocksize.  The major caller-visible
73933         change is the addition of a new
73934         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
73935         that both overflow and suffix chars were found.
73936
73937         * lib/human.c (humblock): Don't check separately for invalid suffix
73938         char; that is xstrtoumax's job (now that its bug is fixed).
73939         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
73940         INTMAX_MAX]: New macros.
73941         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
73942         TYPE_MAXIMUM): New macros.
73943         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
73944         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
73945         if overflow occurs, as it's what __strtol does and it's more useful
73946         in practice.
73947         (__xstrtol): If __strtol reports some error other than ERANGE,
73948         reflect it to the caller as LONGINT_INVALID.  If it reports
73949         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
73950         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
73951         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
73952         value.
73953         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
73954         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
73955         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
73956         [defined UINTMAX_MAX]: New macros.
73957
73958 2003-10-14  Bruno Haible  <bruno@clisp.org>
73959
73960         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
73961
73962 2003-10-14  Bruno Haible  <bruno@clisp.org>
73963
73964         * m4/sig_atomic_t: New file, from GNU gettext.
73965         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
73966
73967 2003-10-14  Bruno Haible  <bruno@clisp.org>
73968
73969         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
73970         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
73971         Also use volatile where needed.
73972
73973 2003-10-12  Paul Eggert  <eggert@twinsun.com>
73974
73975         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
73976         Change maintainer from Bruno Haible to 'all'.
73977
73978 2003-10-12  Paul Eggert  <eggert@twinsun.com>
73979
73980         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
73981
73982 2003-10-12  Paul Eggert  <eggert@twinsun.com>
73983
73984         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
73985         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
73986         and define in terms of the other primitives.
73987         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
73988         (SIZE_MAX): Define if not already defined.
73989         (array_size_overflow): New function.
73990         (xalloc_die): Abort instead of exiting if 'error' returns.
73991         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
73992         (xmalloc, xrealloc): Use them.
73993         (xcalloc): Check for address arithmetic overflow.
73994         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
73995         a bit faster than strcpy.
73996
73997 2003-10-10  Simon Josefsson  <jas@extundo.com>
73998
73999         * modules/argp (Depends-on): Add restrict and strcase.
74000
74001 2003-10-10  Simon Josefsson  <jas@extundo.com>
74002
74003         * m4/argp.m4: Add AC_C_INLINE.
74004
74005 2003-10-08  Paul Eggert  <eggert@twinsun.com>
74006
74007         Merge getpass from libc, plus a few fixes.
74008
74009         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
74010         Include <stdbool.h>.
74011         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
74012         __fsetlocking to empty.
74013         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
74014         do include <bits/libc-lock.h>.
74015         Do not include <fcntl.h>; not needed.
74016         [_LIBC]: Include <wchar.h>.
74017         (NOTCANCEL_MODE): New macro.
74018         (flockfile, funlockfile) [_LIBC]: New macros.
74019         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
74020         [!_LIBC]: New macros.
74021         (call_fclose): New function.
74022         (getpass): Use it.  Save tty stream separately; this simplifies the
74023         code and makes it more reliable if stdin happens to equal stdout.
74024         Invoke __fsetlocking on tty.
74025         Handle thread cancellation if needed.
74026         Namespace cleanup (use __tcgetattr, __getline).
74027         Use bool for Booleans.
74028         [USE_IN_LIBIO]: Handle wide streams.
74029         [!_LIBC]: Unconditionally do the fseek, since we don't know what
74030         stream might go where.
74031
74032         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
74033         doesn't have to include <stdio.h> before us.
74034         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
74035         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
74036         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
74037         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
74038         if not declared, so that we can use getpass.c code from libc without
74039         rewriting it.
74040         (flockfile, ftrylockfile, funlockfile): New macros.
74041
74042 2003-10-08  Paul Eggert  <eggert@twinsun.com>
74043
74044         * modules/getpass: Depend on stdbool.
74045
74046 2003-10-08  Paul Eggert  <eggert@twinsun.com>
74047
74048         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
74049
74050 2003-10-07  Karl Berry  <karl@gnu.org>
74051
74052         * config/config.{guess,sub}: update from config.
74053
74054 2003-10-06  Jim Meyering  <jim@meyering.net>
74055             Bruno Haible  <bruno@clisp.org>
74056
74057         This lets translators provide better translations for the
74058         "Written by ..." part of --version output.
74059         * lib/version-etc.h: Include stdarg.h.
74060         (version_etc_copyright): Declare as readonly.
74061         (version_etc): Make this function variadic with a NULL-terminated list
74062         of author name strings.
74063         (version_etc_va): New declaration.
74064         * lib/version-etc.c: Include stdarg.h, stdlib.h.
74065         (version_etc_copyright): Declare as readonly.
74066         (version_etc_va): New function. Provide a different translatable string
74067         for each possible number of authors < 10. Abbreviate when there are 10
74068         authors or more.
74069         (version_etc): Make this function variadic. Call version_etc_va.
74070         Suggestion from Gary V. Vaughan.
74071
74072         * lib/long-options.h (parse_long_options): Change prototype: the
74073         authors string is moved to the end and becomes variadic.
74074         * lib/long-options.c: Include stdarg.h.
74075         (parse_long_options): Make this function variadic, too.
74076         Call version_etc_va, not version_etc.
74077
74078 2003-10-06  Bruno Haible  <bruno@clisp.org>
74079
74080         * modules/version-etc-2: Remove file.
74081         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
74082
74083 2003-10-06  Bruno Haible  <bruno@clisp.org>
74084
74085         * modules/fatal-signal: New file.
74086         * MODULES.html.sh (func_all_modules): Add fatal-signal.
74087
74088 2003-10-06  Bruno Haible  <bruno@clisp.org>
74089
74090         * m4/fatal-signal.m4: New file.
74091         * m4/signalblocking.m4: New file, from GNU gettext.
74092
74093 2003-10-06  Bruno Haible  <bruno@clisp.org>
74094
74095         * lib/version-etc-2.h: Remove file.
74096         * lib/version-etc-2.c: Remove file.
74097
74098 2003-10-06  Bruno Haible  <bruno@clisp.org>
74099
74100         * lib/fatal-signal.h: New file, from GNU gettext.
74101         * lib/fatal-signal.c: New file, from GNU gettext.
74102
74103 2003-10-05  Paul Eggert  <eggert@twinsun.com>
74104
74105         * README: Rework advice for preventing empty .o files.
74106         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
74107         not <sys/types.h>.
74108
74109 2003-10-04  Karl Berry  <karl@gnu.org>
74110
74111         * lib/argp*: update from libc.
74112
74113 2003-10-04  Karl Berry  <karl@gnu.org>
74114
74115         * config/config.{guess,sub}: update from config.
74116
74117 2003-10-02  Bruno Haible  <bruno@clisp.org>
74118
74119         * modules/lchown (Include): Add lchown.h.
74120         * modules/time_r (Include): Use "..." syntax.
74121         * modules/xgetdomainname (Include): Add xgetdomainname.h.
74122
74123 2003-10-01  Simon Josefsson  <jas@extundo.com>
74124
74125         * MODULES.html.sh (func_all_modules): Move gethostname from section
74126         'based on' to section 'lacking' POSIX:2001.
74127
74128 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
74129
74130         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
74131         to output mode on the same stream.
74132
74133 2003-09-29  Paul Eggert  <eggert@twinsun.com>
74134
74135         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
74136         Fix arg typo in previous patch.
74137
74138 2003-09-28  Jim Meyering  <jim@meyering.net>
74139
74140         * lib/error.c: Correct cpp indentation.
74141
74142 2003-09-27  Paul Eggert  <eggert@twinsun.com>
74143
74144         * modules/free: New file.
74145
74146 2003-09-27  Paul Eggert  <eggert@twinsun.com>
74147
74148         * m4/free.m4: New file.
74149
74150 2003-09-27  Paul Eggert  <eggert@twinsun.com>
74151
74152         * lib/minmax.h (MIN, MAX)
74153         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
74154         Omit the special code that used __typeof__, since we worry that
74155         it could be more trouble than it's worth.  See:
74156         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
74157         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
74158
74159         * lib/free.c: New file.
74160
74161 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
74162
74163         Trivial fixes to Makefile.am parts of module listings.
74164         * modules/strstr: Append strstr.h to lib_SOURCES.
74165         * modules/strcase: Likewise, for strcase.h.
74166
74167 2003-09-27  Karl Berry  <karl@gnu.org>
74168
74169         * config/mkinstalldirs: update from automake.
74170
74171 2003-09-26  Paul Eggert  <eggert@twinsun.com>
74172
74173         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
74174         (error_tail): Do not loop, reallocating temporary buffer, since
74175         the output cannot contain more wide characters than the input
74176         contains bytes, the size must be big enough already.  This avoids
74177         one potential size overflow calculation.  Check for size overflow
74178         when calculating temporary buffer size.  Free temporary buffer
74179         when done, if it was allocated with malloc; this plugs a memory
74180         leak.  Remove casts from void * to pointers, that are no longer
74181         needed now that we're assuming C89 or better.
74182
74183         Merge error changes from glibc.
74184
74185         * lib/error.c, error.h: Update copyright notice header to match glibc.
74186         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
74187         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
74188         Disable cancellation while printing error.
74189         * lib/error.h: Prepend __ to parameter names.
74190
74191 2003-09-26  Jim Meyering  <jim@meyering.net>
74192
74193         * lib/error.c (error_tail): Move some declarations
74194         into inner scope where the local variables are used.
74195
74196 2003-09-26  Bruno Haible  <bruno@clisp.org>
74197
74198         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
74199         stpncpy().
74200         Don't define stpncpy through config.h; it's now done through stpncpy.h.
74201
74202 2003-09-26  Bruno Haible  <bruno@clisp.org>
74203
74204         * lib/stpncpy.h (gnu_stpncpy): New declaration.
74205         (stpncpy): Define as alias for gnu_stpncpy.
74206         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
74207
74208 2003-09-25  Simon Josefsson  <jas@extundo.com>
74209
74210         * lib/xgetdomainname.h: New file.
74211         * lib/xgetdomainname.c: New file.
74212
74213 2003-09-25  Simon Josefsson  <jas@extundo.com>
74214             Bruno Haible  <bruno@clisp.org>
74215
74216         * modules/getdomainname: New file.
74217         * modules/xgetdomainname: New file.
74218         * MODULES.html.sh (func_all_modules): Add getdomainname,
74219         xgetdomainname.
74220
74221 2003-09-25  Simon Josefsson  <jas@extundo.com>
74222             Bruno Haible  <bruno@clisp.org>
74223
74224         * m4/getdomainname.m4: New file.
74225
74226 2003-09-25  Simon Josefsson  <jas@extundo.com>
74227             Bruno Haible  <bruno@clisp.org>
74228
74229         * lib/getdomainname.h: New file.
74230         * lib/getdomainname.c: New file.
74231
74232 2003-09-25  Karl Berry  <karl@gnu.org>
74233
74234         * lib/argp-fmtstream.c, argp-help.c: update from libc.
74235
74236 2003-09-25  Karl Berry  <karl@gnu.org>
74237
74238         * config/install-sh: update from automake.
74239
74240 2003-09-25  Bruno Haible  <bruno@clisp.org>
74241
74242         * modules/version-etc-2: New file, from modules/version-etc with
74243         modifications.
74244         * MODULES.html.sh (func_all_modules): Add version-etc-2.
74245
74246 2003-09-25  Bruno Haible  <bruno@clisp.org>
74247
74248         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
74249         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
74250
74251 2003-09-24  Simon Josefsson  <jas@extundo.com>
74252
74253         * modules/xgethostname: Add xgethostname.h.
74254
74255 2003-09-24  Paul Eggert  <eggert@twinsun.com>
74256
74257         * lib/linebuffer.c (freebuffer): Don't free the argument, just
74258         the buffer associated with the argument.  Bug reported by
74259         Simon Josefsson.
74260
74261 2003-09-24  Paul Eggert  <eggert@twinsun.com>
74262
74263         * README: Document assumptions that 'int' is at least 32 bits
74264         wide, that integer arithmetic is 2's complement without overflow,
74265         that there are no holes in integer values, that adding sizes of
74266         two nonoverlapping objects can't overflow, and that all-bits-zero
74267         yields scalar zero.  Fix spelling and capitalization typos.
74268
74269 2003-09-19  Karl Berry  <karl@gnu.org>
74270
74271         * lib/argp.h: update from libc.
74272
74273 2003-09-17  Paul Eggert  <eggert@twinsun.com>
74274
74275         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
74276         to avoid spurious warnings like "AC_RUN_IFELSE was called before
74277         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
74278
74279 2003-09-17  Paul Eggert  <eggert@twinsun.com>
74280
74281         * gnulib-tool: Use "test -h", not "test -L", for portability
74282         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
74283         (tags_regexp): Remove, since \| doesn't conform to POSIX.
74284         (sed_extract_prog): Issue s commands one-by-one, rather than
74285         using \| in one s command.
74286
74287 2003-09-16  Paul Eggert  <eggert@twinsun.com>
74288
74289         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
74290         input error, instead of returning NULL the next time we are called
74291         (and therefore losing track of errno).
74292
74293 2003-09-16  Bruno Haible  <bruno@clisp.org>
74294
74295         * gnulib-tool (func_create_testdir): Warn about duplicated
74296         dependencies.
74297
74298 2003-09-15  Paul Eggert  <eggert@twinsun.com>
74299
74300         * modules/argmatch, modules/fatal, modules/obstack,
74301         modules/xalloc, modules/xgethostname: Sort dependencies by
74302         importance, not alphabetically.
74303
74304 2003-09-15  Paul Eggert  <eggert@twinsun.com>
74305
74306         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
74307         fails, so that the caller gets the proper errno.
74308
74309         * lib/readutmp.c (read_utmp): Likewise.
74310         Check for fstat error.  Close stream and free storage
74311         when failing.
74312
74313 2003-09-14  Karl Berry  <karl@gnu.org>
74314
74315         * config/srclist.txt (strdup.c): disable for c89 changes.
74316
74317 2003-09-14  Jim Meyering  <jim@meyering.net>
74318
74319         * lib/getloadavg.c: Correct cpp indentation.
74320         * lib/strdup.c: Likewise.
74321         * lib/vasnprintf.c: Likewise.
74322
74323 2003-09-14  Bruno Haible  <bruno@clisp.org>
74324
74325         * modules/fwriteerror: New file.
74326         * MODULES.html.sh (func_all_modules): Add fwriteerror.
74327
74328 2003-09-14  Bruno Haible  <bruno@clisp.org>
74329
74330         * lib/fwriteerror.h: New file.
74331         * lib/fwriteerror.c: New file.
74332
74333 2003-09-12  Paul Eggert  <eggert@twinsun.com>
74334
74335         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
74336         modules/xgethostname, modules/xalloc: Depend on exit.
74337
74338 2003-09-12  Paul Eggert  <eggert@twinsun.com>
74339
74340         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
74341
74342         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
74343         and AC_MINIX, too, so that their extensions are available.
74344
74345         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
74346         This macro has been superseded by gl_BACKUPFILE.
74347
74348         More patches to assume C89 or better.
74349
74350         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
74351
74352         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
74353         unconditionally.
74354         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
74355         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
74356         Include <string.h>, <stdlib.h> unconditionally.
74357         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
74358         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
74359         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
74360         headers or for string.h.
74361         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
74362         or strtoul.
74363
74364         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
74365         headers.
74366         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
74367         * m4/userspec.m4 (gl_USERSPEC): Likewise.
74368         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
74369         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
74370         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
74371         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
74372         memcpy, memset.
74373         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
74374         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
74375         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
74376         strtol.
74377         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
74378         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
74379         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
74380         strtoul.
74381
74382 2003-09-12  Paul Eggert  <eggert@twinsun.com>
74383
74384         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
74385         * lib/obstack.c [!defined _LIBC]: Likewise.
74386         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
74387         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
74388         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
74389
74390         More changes to assume C89 or better.
74391
74392         * lib/error.c (error_tail): Assume vprintf.
74393
74394         * lib/argmatch.c (getenv): Remove decl.
74395         * lib/progreloc.c (get_full_program_name): Define via prototype.
74396         * lib/setenv.c (clearenv): Likewise.
74397         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
74398         needed.
74399         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
74400         (malloc, memcpy): Remove decls.
74401         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
74402         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
74403         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
74404         (memcpy): Remove macro.
74405         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
74406         (__P): Remove.  All uses removed.
74407         (PTR): Remove.  All uses changed to void *.
74408         (CHAR_BIT, NULL): Remove.
74409         (spaces, zeros, memset_space, memset_zero)
74410         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
74411         Remove.
74412         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
74413         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
74414         Define with prototype.
74415         Remove now-unnecessary prototype decl.
74416         (extra_args_spec): Assume ANSI C.  All uses changed.
74417         (extra_args_spec_iso): Remove.
74418         (my_strftime, emacs_strftimeu): Define via prototype.
74419         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
74420         unconditionally.
74421         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
74422         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
74423         (strtoul, strtol): Remove decls.
74424         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
74425         LONG_MAX): Remove.
74426         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
74427         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
74428         (LOCALE_PARAM_PROTO): New macro.
74429         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
74430         (INTERNAL (strtol), strtol): Define with a prototype.
74431         (PARAMS): Remove.  All uses removed.
74432         * lib/tempname.c: Include <string.h> unconditionally.
74433         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
74434         * lib/xgethostname.c (main): Define with a prototype.
74435         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
74436         Include <stdlib.h> unconditionally.
74437         (calloc, malloc, realloc, free): Remove decls.
74438         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
74439         Include <stdlib.h> unconditionally.  Sort include file names.
74440         (strtod): Remove.
74441         (xstrtod): Define with a prototype.
74442         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
74443         (strtol, strtoul): Remove decls.
74444
74445 2003-09-11  Paul Eggert  <eggert@twinsun.com>
74446
74447         More patches to assume C89 or better.
74448         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
74449         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
74450         string.h, memchr, STDC_HEADERS.
74451
74452 2003-09-11  Paul Eggert  <eggert@twinsun.com>
74453
74454         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
74455         Include <stdlib.h>, <string.h> unconditionally.
74456         Remove now-unnecessary cast to char *.
74457         * lib/strnlen.c: Include <string.h> unconditionally.
74458         * lib/yesno.c (yesno): Define with a prototype.
74459
74460 2003-09-11  Bruno Haible  <bruno@clisp.org>
74461
74462         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
74463
74464 2003-09-10  Jim Meyering  <jim@meyering.net>
74465
74466         * lib/error.c: Correct indentation of cpp directives.
74467
74468 2003-09-10  Bruno Haible  <bruno@clisp.org>
74469
74470         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
74471         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
74472         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
74473         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
74474         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
74475         <stdlib.h> and <string.h> checks.
74476         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
74477         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
74478
74479 2003-09-10  Bruno Haible  <bruno@clisp.org>
74480
74481         * lib/strcspn.c: Include <string.h> unconditionally.
74482         * lib/strpbrk.c: Include <string.h> unconditionally.
74483         * lib/strstr.c: Include <string.h> unconditionally.
74484         * lib/unicodeio.c: Include <string.h> unconditionally.
74485         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
74486         * lib/unsetenv.c: Likewise.
74487         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
74488         * lib/yesno.c: Include <stdlib.h> unconditionally.
74489         (rpmatch): Add prototype.
74490
74491 2003-09-09  Paul Eggert  <eggert@twinsun.com>
74492
74493         More patches to assume C89 or better.
74494         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
74495         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
74496         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
74497         or for string.h.
74498         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
74499         stdlib.h.
74500         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
74501         C headers.
74502         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
74503         string.h.
74504         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
74505         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
74506         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
74507         or for string.h.
74508         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
74509         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
74510         C headers.
74511         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
74512         memcpy.
74513         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
74514         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
74515         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
74516         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
74517         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
74518         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
74519         string.h, free.
74520         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
74521         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
74522         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
74523         C headers, or for string.h.
74524         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
74525         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
74526         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
74527         headers, memory.h, stdlib.h, string.h, strings.h.
74528         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
74529         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
74530         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
74531         strchr.
74532         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
74533         headers, memory.h, string.h.
74534         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
74535         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
74536         free.
74537         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
74538         headers.
74539         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
74540         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
74541         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
74542         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
74543         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
74544
74545 2003-09-09  Paul Eggert  <eggert@twinsun.com>
74546
74547         More K&R removal.
74548
74549         * lib/acosl.c (main): Use a prototype.
74550         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
74551         tanl.c: Likewise.
74552
74553         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
74554
74555         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
74556         (getopt, etopt_long, getopt_long_only, _getopt_internal)
74557         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
74558         with a prototype.
74559         * lib/getopt.c (const): Remove macro.
74560         Include <string.h> unconditionally.
74561         (my_index): Remove; all uses changed to strchr.
74562         (strlen): Remove decl.
74563         (exchange): Remove forward decl; no longer needed.
74564         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
74565         Define with prototype.
74566         * lib/getopt1.c (const): Remove macro.
74567         (getopt_long, getopt_long_only, main): Define with prototype.
74568
74569         * lib/getugroups.c: Include <string.h> unconditionally.
74570
74571         * lib/getusershell.c: Include <stdlib.h> unconditionally.
74572         (getusershell, setusershell, endusershell, readname, main):
74573         Define with prototypes.
74574
74575         * lib/group-member.c: Include group-member.h first.
74576         Include <stdlib.h> unconditionally.
74577
74578         * lib/hard-locale.c: Include hard-locale.h first.
74579         Include <stdlib.h>, <string.h> unconditionally.
74580
74581         * lib/hash.c (free, malloc): Remove decls.
74582         Include <stdlib.h> unconditionally.
74583
74584         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
74585         (getenv): Do not declare.
74586
74587         * lib/idcache.c: Include <string.h> unconditionally.
74588
74589         * lib/long-options.c: Include long-options.h first, to test interface.
74590         Include <stdlib.h> unconditionally.
74591
74592         * lib/makepath.c: Include makepath.h first, to test interface.
74593         Include <stdlib.h> and <string.h> unconditionally.
74594
74595         * lib/linebuffer.c: Include <stdlib.h>.
74596         (free): Remove decl.
74597
74598         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
74599         stddef.h. rpl_malloc returns void *, not char *.
74600         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
74601         prototype.
74602
74603         * lib/md5.h: Include <limits.h> unconditionally.
74604         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
74605         (__P): Remove; all uses removed.
74606         * lib/md5.c: Include "md5.h" first.
74607         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
74608         md5_buffer, md5_process_bytes, md5_process_block):
74609         Define with prototypes.
74610         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
74611         * lib/sha.c: Include "sha.h" first.
74612         Include <stdlib.h>, <string.h> unconditionally.
74613
74614         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
74615         * lib/memcmp.c (__ptr_t): Likewise.
74616         * lib/memrchr.c (__ptr_t): Likewise.
74617         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
74618         Include <string.h> unconditionally.
74619         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
74620         * lib/memchr.c: Include <stdlib.h> unconditionally.
74621         * lib/memchr.c (LONG_MAX): Remove.
74622         * lib/memrchr.c (LONG_MAX): Likewise.
74623         * lib/memchr.c (__memchr): Define via a prototype.
74624         * lib/memrchr.c (__memrchr): Likewise.
74625         * lib/memcmp.c (__P): Remove, and remove all uses.
74626         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
74627         Remove forward decls; no longer needed.
74628         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
74629         Use types required by C89 in prototype.
74630
74631         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
74632         * lib/savedir.c: Likewise.
74633         * lib/mkdir.c (free): Remove decl.
74634         * lib/rmdir.c (rmdir): Define with a prototype.
74635         * lib/savedir.c: Include savedir.h first, to test interface.
74636
74637         * lib/mktime.c (STDC_HEADERS): Remove.
74638         Include <stdlib.h>, <string.h> unconditionally.
74639
74640         * lib/modechange.c: Include <stdlib.h> unconditionally.
74641         (malloc): Remove decl.
74642
74643         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
74644         (free): Remove decl.
74645
74646         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
74647         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
74648         (This type really should be intptr_t, but that's a C99ism.)
74649         (_obstack_memcpy): Remove: all uses changed to memcpy.
74650         Include <string.h> unconditionally.
74651         (struct obstack): Assume __STDC__ for types of members
74652         chunkfun, freefun, extra_arg.
74653         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
74654         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
74655         obstack_begin, obstack_specify_allocation,
74656         obstack_specify_allocation_with_arg, obstack_chunkfun,
74657         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
74658         Remove unprototyped decls and the macros that use them.
74659         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
74660         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
74661         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
74662         (defined __STDC__ && __STDC__)]:
74663         Remove nonprototyped code.
74664         Include <stdlib.h> unconditionally.
74665         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
74666         _obstack_allocated_p, _obstack_free, obstack_free,
74667         _obstack_memory_used, print_and_abort):
74668         Define using prototypes.
74669         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
74670         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
74671         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
74672         obstack_next_free, obstack_object_size, obstack_room) [0]:
74673         Remove unused, unprototyped code.
74674
74675         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
74676
74677         * lib/physmem.c (physmem_total, physmem_available, main): Define
74678         with prototypes.
74679
74680         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
74681         (main): Define with a prototype.
74682
74683         * lib/posixver.c (getenv): Remove decl.
74684
74685         * lib/putenv.c (malloc): Returns void *, not char *.
74686         Include <string.h> unconditionally.
74687         (strchr, memcpy, NULL): Do not define.
74688
74689         * lib/readtokens.c: Include readtokens.h first, to test interface.
74690         Include <stdlib.h>, <string.h> unconditionally.
74691         (init_tokenbuffer): Define with a prototype.
74692
74693         * lib/regex.c (PARAMS): Remove.  All uses removed.
74694         All uses of _RE_ARGS removed, too.
74695         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
74696         unconditionally.
74697         (bzero): Assume memset exists.
74698         (memcmp, memcpy, NULL): Remove.
74699         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
74700         char, or assignments to local vars of type signed char.
74701         (init_syntax_once, PREFIX(extract_number_and_incr),
74702         PREFIX(print_partial_compiled_pattern),
74703         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
74704         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
74705         PREFIX(regex_grow_registers), PREFIX(regex_compile),
74706         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
74707         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
74708         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
74709         wcs_compile_range, byte_compile_range, truncate_wchar,
74710         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
74711         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
74712         count_mbs_length, wcs_re_match_2_internal,
74713         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
74714         PREFIX(alt_match_null_string_p),
74715         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
74716         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
74717         regfree, PREFIX(extract_number)): Define with prototype.  Remove
74718         now-unnecessary declaration, if any.
74719         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
74720         regcomp, regexec):
74721         Remove now-unnecessary casts among pointer types.
74722         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
74723
74724         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
74725         (free): Remove decl.
74726
74727         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
74728
74729         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
74730         (free): Remove decl.
74731
74732         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
74733         * lib/xgetcwd.c: Likewise.
74734
74735         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
74736         (free): Remove decl.
74737
74738         * lib/strchrnul.c (strchrnul): Define with a prototype.
74739         Fix bug: c_in was not converted to char before searching.
74740
74741         The following changes are not K&R related:
74742
74743         * lib/group-member.h: Include <sys/types.h>, so that this file is
74744         self-contained.
74745         * lib/makepath.h: Likewise.
74746
74747         * lib/getusershell.c (readname, default_index, line_size, readname):
74748         Use size_t, not int, for sizes.
74749         (readname): If the size overflows, report an error instead of
74750         looping forever.
74751
74752 2003-09-09  Paul Eggert  <eggert@twinsun.com>
74753
74754         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
74755         libc.
74756
74757 2003-09-09  Paul Eggert  <eggert@twinsun.com>
74758
74759         * README: New section: portability guidelines.
74760
74761 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
74762
74763         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
74764         C89 spec.
74765
74766 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
74767
74768         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
74769
74770 2003-09-08  Paul Eggert  <eggert@twinsun.com>
74771
74772         Assume C89 or better; remove K&R cruft.
74773         A few of these changes were first proposed by Derek Robert Price
74774         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
74775
74776         * lib/addext.c: Include <string.h> unconditionally.
74777         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
74778         Don't declare getenv or malloc.
74779
74780         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
74781         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
74782         (NULL): Remove.
74783         (find_stack_direction, alloca): Use prototypes.
74784
74785         * lib/atexit.c (atexit): Define using a prototype.
74786
74787         * lib/basename.c, dirname.c, stripslash.c:
74788         Include <string.h> unconditionally.
74789
74790         * lib/bcopy.c: Include <stddef.h>.
74791         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
74792
74793         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
74794
74795         * lib/error.h (error, error_at_line, error_print_progname)
74796         [! (defined (__STDC__) && __STDC__)]: Remove decls.
74797         * lib/error.c: Include error.h first, to check interface.
74798         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
74799         (VA_START): Remove; all uses changeed to va_start.
74800         (exit, strerror): Remove decls.
74801         (error_print_progname): Prototype uncondionally.
74802         Don't include <errno.h>; no longer needed.
74803         (private_strerror): Remove.
74804         (error_tail): Always define.
74805         (error, error_at_line): Assume C89 or better; always use prototypes.
74806         * lib/fatal.c: Include "fatal.h" first, to test interface.
74807         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
74808         (VA_START): Remove; all uses changed to va_start.
74809         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
74810         this case.
74811         (exit): Remove decl.
74812         (fatal): Prototype unconditionally.  Assume va_start works.
74813         Abort at end, to pacify gcc.
74814
74815         * lib/euidaccess.c (main): Define with a prototype.
74816
74817         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
74818
74819         * lib/exitfail.c: Include <stdlib.h> unconditionally.
74820
74821         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
74822         prototypes.
74823         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
74824         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
74825         (getenv): Remove decl.
74826         (fnmatch): Define using a prototype.
74827         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
74828         (FCT): Define using a prototype.
74829
74830         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
74831
74832         * lib/gethostname.c: Include <stddef.h>.
74833         (gethostname): Define with prototype.  Length is size_t, not int.
74834
74835 2003-09-08  Paul Eggert  <eggert@twinsun.com>
74836
74837         Assume C89 or better; remove K&R cruft.
74838         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
74839         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
74840         string.h, getenv, malloc.
74841         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
74842         headers.
74843         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
74844         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
74845         do not check for strerror.
74846         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
74847         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
74848         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
74849         do not check for doprnt or vprintf.
74850         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
74851         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
74852
74853 2003-09-08  Paul Eggert  <eggert@twinsun.com>
74854
74855         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
74856         getversion.c should have been removed then, but was accidentally
74857         preserved.
74858
74859         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
74860         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
74861
74862 2003-09-08  Karl Berry  <karl@gnu.org>
74863
74864         * config/config.sub, config.guess, srclistvars.sh: update from savannah
74865                 config, forget about prep.
74866
74867         * config/depcomp, missing: update from automake.
74868
74869 2003-09-07  Paul Eggert  <eggert@twinsun.com>
74870
74871         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
74872         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
74873
74874 2003-09-07  Paul Eggert  <eggert@twinsun.com>
74875
74876         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
74877         copy_tm_result.  Bug reported by Simon Josefsson in
74878         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
74879
74880 2003-09-06  Paul Eggert  <eggert@twinsun.com>
74881
74882         * m4/time_r.m4: New file.
74883         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
74884         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
74885         is. Check for timegm declaration.
74886         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
74887         Do not check for gmtime_r.
74888         Replace mktime if __mktime_internal does not exist and if mktime
74889         hasn't been replaced already.
74890
74891 2003-09-06  Paul Eggert  <eggert@twinsun.com>
74892
74893         * lib/time_r.c, lib/time_r.h: New files.
74894
74895         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
74896         __localtime_r.
74897         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
74898         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
74899
74900         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
74901         __gmtime_r.
74902         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
74903         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
74904         Include <time_r.h>.
74905
74906         * lib/timegm.c: Switch to glibc implementation, with the following
74907         changes:
74908         [defined HAVE_CONFIG_H]: Include <config.h>.
74909         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
74910         (__mktime_internal) [!defined _LIBC]: New decl.
74911         (__gmtime_r) [!defined _LIBC]: New macro and function.
74912         (timegm): Use a prototype, since gnulib assumes C89.
74913         Do not bother declaring tmp to be const, as it's not really usefu.
74914         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
74915         (timegm): Declare only if HAVE_DECL_TIMEGM.
74916
74917 2003-09-06  Paul Eggert  <eggert@twinsun.com>
74918
74919         * MODULES.html.sh (func_all_modules): Add time_r.
74920         * modules/time_r: New file.
74921         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
74922         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
74923
74924 2003-09-03  Paul Eggert  <eggert@twinsun.com>
74925
74926         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
74927         Bug reported by Lute Kamstra in
74928         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
74929
74930         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
74931         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
74932         course with correspondingly smaller numbers for tomorrow and
74933         yesterday.  From Tadayoshi Funaba.  Originally installed into
74934         sh-utils on 1999-08-07, but the patch got lost (I guess during the
74935         coreutils merge?).
74936
74937 2003-08-31  Simon Josefsson  <jas@extundo.com>
74938
74939         * modules/timegm: New file.
74940         * MODULES.html.sh (func_all_modules): Add timegm.
74941
74942 2003-08-31  Simon Josefsson  <jas@extundo.com>
74943
74944         * m4/timegm.m4: New file.
74945
74946 2003-08-31  Simon Josefsson  <jas@extundo.com>
74947
74948         * lib/timegm.h: New file.
74949         * lib/timegm.c: New file.  Based on
74950         wget-1.8.2/src/http.c:mktime_from_utc.
74951
74952 2003-08-31  Karl Berry  <karl@gnu.org>
74953
74954         * lib/argp.h: update from libc.
74955
74956 2003-08-28  Bruno Haible  <bruno@clisp.org>
74957
74958         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
74959         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
74960         followed by '#define fnmatch fnmatch_posix' gives an error.
74961
74962 2003-08-28  Bruno Haible  <bruno@clisp.org>
74963
74964         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
74965         warning on QNX, which defines O_BINARY to 000000.
74966
74967 2003-08-27  Jim Meyering  <jim@meyering.net>
74968
74969         * m4/mkstemp.m4: Require that the system mkstemp be able to create
74970         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
74971         would fail after 32.  Reported by Danny Levinson.  Details here:
74972         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
74973
74974 2003-08-24  Bruno Haible  <bruno@clisp.org>
74975
74976         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
74977         MSVC7 <stdio.h> is included later.
74978
74979 2003-08-22  Simon Josefsson  <jas@extundo.com>
74980
74981         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
74982
74983 2003-08-20  Karl Berry  <karl@gnu.org>
74984
74985         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
74986
74987 2003-08-20  Bruno Haible  <bruno@clisp.org>
74988
74989         * modules/progname: New file.
74990         * MODULES.html.sh (func_all_modules): Add progname.
74991
74992 2003-08-20  Bruno Haible  <bruno@clisp.org>
74993
74994         * lib/progname.h: New file, from GNU gettext.
74995         * lib/progname.c: New file, from GNU gettext.
74996         * lib/progreloc.c: New file, from GNU gettext.
74997
74998 2003-08-19  Jim Meyering  <jim@meyering.net>
74999
75000         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
75001         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
75002
75003 2003-08-19  Bruno Haible  <bruno@clisp.org>
75004
75005         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
75006         more.
75007
75008 2003-08-19  Bruno Haible  <bruno@clisp.org>
75009
75010         * lib/xstrdup.c: Assume <string.h> exists.
75011
75012 2003-08-18  Paul Eggert  <eggert@twinsun.com>
75013
75014         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
75015         in makefile rules.
75016
75017 2003-08-18  Jim Meyering  <jim@meyering.net>
75018
75019         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
75020         * m4/lib-ld.m4: Likewise.
75021
75022 2003-08-18  Jim Meyering  <jim@meyering.net>
75023
75024         * lib/setenv.h: Indent nested cpp directive.
75025         * lib/vasnprintf.c: Remove trailing blanks.
75026
75027 2003-08-17  Simon Josefsson  <jas@extundo.com>
75028
75029         * modules/xstrndup: New file.
75030         * MODULES.html.sh (func_all_modules): Add xstrndup.
75031
75032 2003-08-17  Simon Josefsson  <jas@extundo.com>
75033
75034         * modules/argp: Fix autoconf macro name. Add more dependencies.
75035
75036 2003-08-17  Simon Josefsson  <jas@extundo.com>
75037
75038         * m4/xstrndup.m4: New file.
75039
75040 2003-08-17  Simon Josefsson  <jas@extundo.com>
75041
75042         * m4/argp.m4: New file.
75043
75044 2003-08-17  Simon Josefsson  <jas@extundo.com>
75045             Bruno Haible  <bruno@clisp.org>
75046
75047         * lib/xstrndup.h: New file.
75048         * lib/xstrndup.c: New file.
75049
75050 2003-08-17  Bruno Haible  <bruno@clisp.org>
75051
75052         * modules/strndup (Files, Include): Add lib/strndup.h.
75053
75054 2003-08-17  Bruno Haible  <bruno@clisp.org>
75055
75056         * modules/euidaccess (Files): Add lib/euidaccess.h.
75057
75058 2003-08-17  Bruno Haible  <bruno@clisp.org>
75059
75060         * lib/strndup.h: New file.
75061
75062 2003-08-17  Bruno Haible  <bruno@clisp.org>
75063
75064         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
75065         like AC_GNU_SOURCE.
75066         * modules/extensions (configure.ac): Comment out the invocation of
75067         gl_USE_SYSTEM_EXTENSIONS.
75068
75069 2003-08-16  Paul Eggert  <eggert@twinsun.com>
75070
75071         Merges from coreutils, etc.
75072         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
75073         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
75074         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
75075         fixing a typo.
75076         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
75077         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
75078
75079 2003-08-16  Paul Eggert  <eggert@twinsun.com>
75080
75081         Document merge from coreutils.
75082         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
75083         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
75084         * modules/utime: Add m4/utimes-null.m4.
75085
75086 2003-08-16  Paul Eggert  <eggert@twinsun.com>
75087
75088         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
75089         space, undoing this 2003-08-12 change:
75090         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
75091
75092 2003-08-16  Paul Eggert  <eggert@twinsun.com>
75093
75094         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
75095         strtoul.c from libc, undoing this 2003-08-12 change:
75096         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
75097
75098 2003-08-16  Jim Meyering  <jim@meyering.net>
75099
75100         Merges from coreutils.
75101         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
75102         prefix.  Adjust cache variables similarly.  Create 500 rather than
75103         just 300 files, to exercise bug on Darwin6.5, too.
75104         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
75105         $missing_dir.
75106         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
75107         AM_SYS_POSIX_TERMIOS.
75108         Reported by mkc@mathdogs.com.
75109         Also change use of $am_cv_sys_posix_termios
75110         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
75111         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
75112         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
75113         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
75114         in /proc/mounts until it finds one with matching device number.  This
75115         is unnecessary when the FILE argument *is* a mount point.  No stat call
75116         is necessary in that case.  So, disable the statvfs-testing code on
75117         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
75118         as RedHat bug# 84846.
75119         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
75120         to 1MB, so as not to render systems with no stack size limit (e.g.,
75121         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
75122         Include <unistd.h>.  On some systems,
75123         it is required for the definition of _SC_PAGESIZE.
75124
75125 2003-08-16  Jim Meyering  <jim@meyering.net>
75126
75127         Merge from coreutils.
75128         * lib/xstrtoimax.c: #else #if -> #elif.
75129         * lib/xstrtoumax.c: Likewise.
75130
75131 2003-08-16  Jim Meyering  <jim@meyering.net>
75132
75133         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
75134         * m4/utimes.m4: Removed.
75135         * m4/utimes-null.m4: Renamed from utimes.m4.
75136
75137         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
75138         to 1MB, so as not to render systems with no stack size limit (e.g.,
75139         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
75140         Include <unistd.h>.  On some systems,
75141         it is required for the definition of _SC_PAGESIZE.
75142
75143 2003-08-16  Jim Meyering  <jim@meyering.net>
75144         and Paul Eggert  <eggert@cs.ucla.edu>
75145
75146         Merges from coreutils, etc.
75147
75148         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
75149         using the latest version from cvs.  This avoids problems with #line
75150         directives using a vendor (Sun) compiler.
75151         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
75152         Don't set GETGROUPS_LIB here; now it's
75153         done via getgroups.m4's wrapper function.
75154         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
75155         rather than just in sh-util/configure.in, so that the
75156         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
75157         same.
75158         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
75159         AC_FUNC_GETLOADAVG where to find getloadavg.c.
75160         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
75161         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
75162         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
75163         Remove code that is now done by the newly-required macros.
75164         Append $(EXEEXT) to DF_PROG.
75165         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
75166         Do not invoke or require the following here,
75167         since prereq.m4 or some gnulib .m4 now does this for us:
75168         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
75169         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
75170         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
75171         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
75172         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
75173         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
75174         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
75175         AC_FUNC_OBSTACK.
75176         Do not replace the following functions, as this is now the job
75177         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
75178         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
75179         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
75180         atexit getpass, strdup, getpagesize.
75181         Replace 'raise'.
75182         Do not check for the following functions, as this is now the job
75183         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
75184         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
75185         setregid.
75186         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
75187         Check for sys/sysctl.h.
75188         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
75189         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
75190         of checking for ssize_t ourselves.
75191
75192         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
75193         Require every macro that gnulib/modules/* suggests for us.
75194         (jm_PREREQ_ADDEXT): New macro.
75195         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
75196         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
75197
75198         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
75199         (gl_PHYSMEM): Use it.
75200         Also check for `table' function.
75201         Check for new headers and functions.
75202         Add check for sys/sysmp.h.
75203         With suggestions from Kaveh Ghazi.
75204         Ignore headers that are present but cannot be compiled.  This
75205         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
75206         C 5.4.
75207
75208 2003-08-15  Paul Eggert  <eggert@twinsun.com>
75209
75210         Document merge from coreutils.
75211         * modules/userspec: Depend on posixver.
75212         * modules/strftime: Depend on tzset.
75213
75214 2003-08-15  Paul Eggert  <eggert@twinsun.com>
75215
75216         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
75217         rather than tab, after '#' in shell-script copyright notices.
75218         Suggested by Bruno Haible.
75219
75220 2003-08-15  Paul Eggert  <eggert@twinsun.com>
75221
75222         * config/srclist-update: Use three spaces, rather than tab, after '#'
75223         in shell-script copyright notices.  Suggested by Bruno Haible.
75224         Remove unnecessary parenthesization in regular expression.
75225
75226 2003-08-15  Jim Meyering  <jim@meyering.net>
75227
75228         Merge from coreutils.
75229         * lib/xgethostname.c: Include <stdlib.h>.
75230         (xghostname): Don't exit for anything other than memory-related
75231         failure; just return NULL.
75232         * lib/userspec.c: Include "posixver.h".
75233         (parse_user_spec): Accept `.' as a separator only
75234         in pre-POSIX-200112 mode.
75235         * lib/strtoimax.c: Use #elif rather than #else #if.
75236         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
75237         Remove function, now that we can rely on a working tzset function.
75238         [!_LIBC]: Ensure that the required autoconf test has been run.
75239         [!defined _NL_CURRENT && HAVE_STRFTIME]:
75240         Use underlying_strftime for %r.
75241         * lib/sha.c: Merge in some clean-up and optimization changes from
75242         glibc.
75243         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
75244         Ensure that it is a multiple of 64.
75245         Rearrange loop exit tests so as to avoid performing an
75246         additional fread after encountering an error or EOF.
75247         * lib/realloc.c: Update copyright date.
75248
75249 2003-08-15  Jim Meyering  <jim@meyering.net>
75250         and Paul Eggert  <eggert@twinsun.com>
75251
75252         Merge from coreutils.
75253         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
75254         member but strut utmpx does not.  Needed for AIX 4.3.3.
75255         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
75256
75257 2003-08-15  Jim Meyering  <jim@meyering.net>
75258         and Paul Eggert  <eggert@cs.ucla.edu>
75259
75260         Merges from coreutils, etc.
75261         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
75262         Require gl_FUNC_TZSET_CLOBBER.
75263         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
75264         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
75265         members.
75266
75267 2003-08-14  Paul Eggert  <eggert@twinsun.com>
75268
75269         Help the merge from coreutils.
75270         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
75271         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
75272         * m4/tzset.m4: Use it too.
75273
75274 2003-08-14  Paul Eggert  <eggert@twinsun.com>
75275
75276         * modules/tzset: New file.
75277
75278 2003-08-14  Jim Meyering  <jim@meyering.net>
75279
75280         Merges from coreutils.
75281         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
75282         variable names, rather than @FNMATCH_H@.
75283         * modules/alloca: Likewise for $(ALLOCA_H).
75284
75285         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
75286         the three copies of the literal target, `fnmatch.h'.
75287         * modules/alloca (alloca.h): Likewise.
75288
75289 2003-08-14  Jim Meyering  <jim@meyering.net>
75290
75291         Merge from coreutils.
75292         * m4/tzset.m4: New file.
75293         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
75294         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
75295         otherwise, AIX 5.1 systems would end up using the latter.
75296         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
75297         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
75298         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
75299         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
75300
75301 2003-08-14  Jim Meyering  <jim@meyering.net>
75302
75303         Merge from coreutils.
75304         * lib/obstack.h: Whitespace changes.
75305         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
75306         and xcalloc return values.
75307         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
75308         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
75309         hang on OSF/1 5.1 for DIR on both local and remote file systems.
75310         Reported by (and fix confirmed by) Nelson H. F. Beebe.
75311         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
75312         error from mntctl.
75313         Use mntctl's return value to drive the entry-processing loop, since
75314         we can't rely on the value of the vmt_length member in the last
75315         entry.  On some systems doing so could result in exhausting
75316         virtual memory.  Based in part on a patch from Mike Jetzer.
75317
75318 2003-08-14  Jim Meyering  <jim@meyering.net>
75319         and Paul Eggert  <eggert@twinsun.com>
75320
75321         Merges from coreutils, plus other fixes.
75322         * lib/physmem.c: Merge in portability changes from gcc/libiberty
75323         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
75324         for credits and details.  Thanks to Kaveh Ghazi for helping
75325         to keep these files in sync.
75326         (ARRAY_SIZE): Define it.
75327         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
75328         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
75329         (memcasecmp): Don't assume size_t fits in unsigned int.
75330         Remove casts and duplicate code.
75331         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
75332         (memcpy): Remove definition.
75333         Merge in some clean-up and optimization changes from glibc.
75334         [BLOCKSIZE]: Move definition to top of file.
75335         Ensure that it is a multiple of 64.
75336         Rearrange loop exit tests so as to avoid performing an
75337         additional fread after encountering an error or EOF.
75338         * lib/md5.h (md5_uintptr): Define.
75339         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
75340         return to the initial working directory.  Preserve errno
75341         for caller.
75342         * lib/idcache.c: Include "xalloc.h".
75343         (xmalloc, xrealloc): Remove decls.
75344         (getuser): Remove casts no longer required in C89.
75345         * lib/human.c: Include stdio.h, for sprintf.
75346         * lib/group-member.c: Include "xalloc.h".
75347         (xmalloc, xrealloc): Remove decls.
75348         (get_group_info): Remove casts no longer required in C89.
75349         * lib/getusershell.c (readname): Remove casts no longer required in
75350         C89.
75351         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
75352         * lib/getline.c: Whitespace fix, from coreutils.
75353
75354 2003-08-13  Paul Eggert  <eggert@twinsun.com>
75355
75356         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
75357         Check for isascii.
75358
75359         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
75360         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
75361         Undo previous (whitespace-only) change.
75362
75363 2003-08-13  Paul Eggert  <eggert@twinsun.com>
75364
75365         * lib/exclude.c: Include <ctype.h>
75366         (IN_CTYPE_DOMAIN): New macro.
75367         (is_space): New fn.
75368         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
75369         and empty lines.
75370
75371         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
75372         Undo previous (whitespace-only) change.
75373
75374 2003-08-13  Paul Eggert  <eggert@twinsun.com>
75375
75376         * config/srclist-update: Change update back to the old behavior,
75377         leaving whitespace alone.  Use one 'sed' command rather than a
75378         pipeline.
75379         (fixlicense): Now a variable, not a function.
75380         (remove_trailing_blanks): Remove.
75381         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
75382         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
75383         Undo previous (whitespace-only) change.
75384
75385 2003-08-12  Paul Eggert  <eggert@twinsun.com>
75386
75387         Merge from coreutils.
75388         * modules/euidaccess: Add lib_SOURCES, include for new
75389         file euidaccess.h
75390
75391 2003-08-12  Paul Eggert  <eggert@twinsun.com>
75392
75393         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
75394         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
75395         Normalize leading white space and remove trailing white space.
75396
75397         Merge from coreutils
75398         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
75399
75400         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
75401         0.12.1.  These files are now being upgraded automatically by
75402         ../config/srclist-update.
75403
75404 2003-08-12  Paul Eggert  <eggert@twinsun.com>
75405
75406         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
75407         Normalize leading white space and remove trailing white space.
75408         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
75409         notice, as per ../config/srclist-update.
75410
75411         Merge from coreutils.
75412         * lib/euidaccess.h: New file.
75413         * lib/euidaccess.c: Include it.
75414         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
75415         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
75416         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
75417
75418 2003-08-12  Paul Eggert  <eggert@twinsun.com>
75419
75420         * config/srclist-update: Add copyright notice.
75421         (remove_id_lines, remove_trailing_blanks): New constants.
75422         (fixfile): Use them to normalize spacing a bit in copied files.
75423         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
75424         Normalize leading white space and remove trailing white space.
75425
75426         * config/texinfo.tex: Sync with texinfo.
75427
75428         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
75429         strtoul.c from libc, to merge coreutils whitespace changes.
75430
75431         * config/srclist.txt: Get the following m4 files from gettext:
75432         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
75433         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
75434         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
75435         wint_t.m4.
75436
75437 2003-08-12  Karl Berry  <karl@gnu.org>
75438
75439         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
75440         been made.
75441
75442 2003-08-11  Paul Eggert  <eggert@twinsun.com>
75443
75444         * modules/gnu-source, m4/gnu-source.m4:
75445         Remove; we're assuming Autoconf 2.54 or later now.
75446         Suggested by Bruno Haible.
75447         * MODULES.html.sh (func_all_modules): Remove gnu-source.
75448
75449 2003-08-11  Bruno Haible  <bruno@clisp.org>
75450
75451         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
75452
75453 2003-08-11  Bruno Haible  <bruno@clisp.org>
75454
75455         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
75456         (vasnprintf): Use it instead of wcslen.
75457
75458 2003-08-11  Bruno Haible  <bruno@clisp.org>
75459
75460         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
75461         value to ensure that _Bool promotes to int. Use #define for _Bool when
75462         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
75463
75464 2003-08-10  Karl Berry  <karl@gnu.org>
75465
75466         * lib/regex.h: update from libc (whitespace fix).
75467
75468 2003-08-09  Paul Eggert  <eggert@twinsun.com>
75469
75470         Merge some files from coreutils.  These changes were
75471         originally made by Jim Meyering.
75472         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
75473         many older Unixes require this.
75474         * lib/alloca.c (alloca): Remove cast to argument of free;
75475         no longer needed in C89.
75476         * lib/alloca_.h, regex.h: Fix white space to match
75477         what GNU indent does.
75478
75479 2003-08-09  Paul Eggert  <eggert@twinsun.com>
75480
75481         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
75482         apparently Emacs's Unicode mode got confused before my 2003-08-05
75483         checkin.
75484
75485 2003-08-08  Paul Eggert  <eggert@twinsun.com>
75486
75487         * m4/extensions.m4: New file.
75488         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
75489         Require gl_USE_SYSTEM_EXTENSIONS.
75490         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
75491         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
75492
75493 2003-08-08  Paul Eggert  <eggert@twinsun.com>
75494
75495         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
75496         * modules/extensions, modules/gnu-source: New files.
75497         * modules/timespec, modules/unlocked-io: Depend on extensions.
75498
75499 2003-08-07  Paul Eggert  <eggert@twinsun.com>
75500
75501         * modules/restrict: New file.
75502         * MODULES.html.sh (func_all_modules): Add restrict.
75503         * modules/regex: Depend on restrict.
75504
75505 2003-08-07  Paul Eggert  <eggert@twinsun.com>
75506
75507         * m4/restrict.m4: New file.
75508         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
75509
75510 2003-08-07  Bruno Haible  <bruno@clisp.org>
75511
75512         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
75513         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
75514
75515 2003-08-07  Bruno Haible  <bruno@clisp.org>
75516
75517         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
75518         makes the module 'getndelim2' compatible with the module 'getline'.
75519
75520 2003-08-05  Paul Eggert  <eggert@twinsun.com>
75521
75522         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
75523         byte with "\201" to avoid glitches when editing that source file
75524         with multi-gnome-terminal.
75525
75526 2003-08-05  Paul Eggert  <eggert@twinsun.com>
75527
75528         * lib/bumpalloc.h: Remove.
75529
75530 2003-08-05  Paul Eggert  <eggert@twinsun.com>
75531
75532         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
75533         * modules/bumpalloc: Remove.
75534
75535 2003-08-04  Paul Eggert  <eggert@twinsun.com>
75536
75537         * lib/getloadavg.c: Change copyright notice and spacing to conform to
75538         GNU coding style.
75539
75540         Merge from coreutils.
75541         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
75542         1. From glibc.
75543         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
75544         from Karl Berry, implemented by Jim Meyering.
75545         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
75546         from Dmitry V. Levin.
75547         Remove anachronistic cast of xrealloc.
75548         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
75549         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
75550         type. Otherwise, it wouldn't compile with at least /bin/cc on
75551         ymp-cray-unicos9.0.2.X.
75552         Combine two mostly-identical uses of alloca into one.
75553         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
75554
75555 2003-08-04  Dave Love  <d.love@dl.ac.uk>
75556
75557         [From Emacs.]
75558
75559         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
75560         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
75561         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
75562         obsolete NLIST_NAME_UNION.
75563         [__GNU__]: Undef BSD and FSCALE.
75564         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
75565
75566 2003-08-03  Paul Eggert  <eggert@twinsun.com>
75567
75568         * lib/stdbool_.h (_Bool): Make it signed char, instead of
75569         an enum type, so that it's guaranteed to promote to int.  See:
75570         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
75571
75572 2003-08-03  Karl Berry  <karl@gnu.org>
75573
75574         * config/depcomp: update from automake.
75575
75576 2003-07-31  Paul Eggert  <eggert@twinsun.com>
75577
75578         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
75579         (strerror): Don't assume that a printable int fits in 14 bytes.
75580
75581 2003-07-31  Bruno Haible  <bruno@clisp.org>
75582
75583         * modules/getpass-gnu: New file.
75584         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
75585
75586 2003-07-31  Bruno Haible  <bruno@clisp.org>
75587
75588         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
75589
75590 2003-07-24  Karl Berry  <karl@gnu.org>
75591
75592         * config/missing: update from automake.
75593
75594 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
75595             Bruno Haible  <bruno@clisp.org>
75596
75597         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
75598         * lib/getline.c (getline, getdelim): Likewise.
75599         Remove _GNU_SOURCE define; now it's defined in config.h through
75600         m4/getline.m4.
75601
75602 2003-07-23  Karl Berry  <karl@gnu.org>
75603
75604         * config/config.sub: update from prep.
75605
75606 2003-07-22  Paul Eggert  <eggert@twinsun.com>
75607
75608         * modules/xalloc (Depends-on): Add exitfail.
75609         * modules/xmemcoll: Likewise.
75610
75611 2003-07-22  Paul Eggert  <eggert@twinsun.com>
75612
75613         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
75614         over-parenthesization in macros.
75615
75616         Sync with coreutils.
75617
75618         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
75619         required by C99.
75620
75621         Use `exit_failure' for xalloc and xmemcoll instead of their own
75622         private exit-failure variables.
75623         * lib/xalloc.h (xalloc_exit_failure): Remove.
75624         * lib/xmalloc.c: Likewise.  Include exitfail.h.
75625         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
75626         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
75627         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
75628         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
75629
75630 2003-07-20  Jim Meyering  <jim@meyering.net>
75631
75632         * modules/closeout (Depends-on): Add exitfail.
75633         Suggestion from Bruno Haible.
75634
75635 2003-07-19  Karl Berry  <karl@gnu.org>
75636
75637         * config/config.sub: update from prep.
75638
75639 2003-07-18  Paul Eggert  <eggert@twinsun.com>
75640
75641         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
75642         Remove.
75643         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
75644         to test that it can stand by itself.  Include "exitfail.h".
75645         Clients should set exit_failure instead.
75646         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
75647
75648 2003-07-18  Bruno Haible  <bruno@clisp.org>
75649
75650         * modules/getndelim2: New file.
75651         * modules/getline: Share files with module getndelim2.
75652         * modules/getnline: Depend on getndelim2 instead of sharing files with
75653         it. Add getnline.c to lib_SOURCES.
75654         * MODULES.html.sh (func_all_modules): Add getndelim2.
75655
75656 2003-07-18  Bruno Haible  <bruno@clisp.org>
75657
75658         * m4/getndelim2.m4: New file.
75659         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
75660         invoke gl_PREREQ_GETNDELIM2.
75661         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
75662         gl_PREREQ_GETNDELIM2.
75663         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
75664         gl_GETNDELIM2.
75665
75666 2003-07-18  Bruno Haible  <bruno@clisp.org>
75667
75668         * lib/getndelim2.h: New file.
75669         * lib/getndelim2.c: Make into a module of its own. Include config.h,
75670         getndelim2.h.
75671         (getndelim2): Make non-static. Change return type to ssize_t.
75672         * lib/getline.h: Change argument names.
75673         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
75674         * lib/getnline.c: Include getndelim2.h.
75675
75676 2003-07-18  Andreas Schwab  <schwab@suse.de>
75677
75678         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
75679
75680 2003-07-17  Karl Berry  <karl@gnu.org>
75681
75682         * config/config.sub: update from prep.
75683
75684 2003-07-17  Bruno Haible  <bruno@clisp.org>
75685
75686         * modules/getnline: New file.
75687         * modules/getline: Add lib/getndelim2.c to source file list.
75688         * MODULES.html.sh (func_all_modules): Add getnline.
75689
75690 2003-07-17  Bruno Haible  <bruno@clisp.org>
75691
75692         * m4/getnline.m4: New file.
75693
75694 2003-07-17  Bruno Haible  <bruno@clisp.org>
75695
75696         * m4/Makefile.am.in: Remove file.
75697         * m4/Makefile.am: Remove file.
75698         * m4/Makefile.in: Remove file.
75699
75700 2003-07-17  Bruno Haible  <bruno@clisp.org>
75701
75702         * lib/getnline.h: New file.
75703         * lib/getnline.c: New file.
75704         * lib/getndelim2.c: New file, extracted from getline.c.
75705         (getndelim2): Renamed from getdelim2, with added nmax argument.
75706         * lib/getline.c: Include getndelim2.c.
75707         (getdelim2): Moved out to getndelim2.c.
75708         (getline, getdelim): Update.
75709
75710 2003-07-17  Bruno Haible  <bruno@clisp.org>
75711
75712         * lib/Makefile.am: Remove file.
75713         * lib/Makefile.in: Remove file.
75714
75715 2003-07-17  Bruno Haible  <bruno@clisp.org>
75716
75717         * configure.in: Remove file.
75718         * Makefile.in: Remove file.
75719
75720 2003-07-17  Bruno Haible  <bruno@clisp.org>
75721
75722         * MODULES.html.sh: Put the </BODY> right before </HTML>.
75723
75724 2003-07-16  Karl Berry  <karl@gnu.org>
75725
75726         * config/srclist-update: was running fixlicense twice, which caused
75727                 texinfo.tex to be nullified for some reason.  Simplify,
75728                 $gplsrc is no longer needed as far as I can see?
75729
75730 2003-07-16  Jim Meyering  <jim@meyering.net>
75731
75732         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
75733
75734 2003-07-15  Paul Eggert  <eggert@twinsun.com>
75735
75736         * config/srclist.txt: Get the following files from gettext-runtime/intl
75737         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
75738         ref-del.sin.  From Bruno Haible.
75739         * config/srclist-update (fixfile): Change grep pattern again, since the
75740         previous fix didn't work (there was another trailing $).  Use
75741         '[$]' to escape the $s.
75742
75743 2003-07-15  Karl Berry  <karl@gnu.org>
75744
75745         * lib/vasnprintf.c: update from gettext.
75746
75747 2003-07-15  Karl Berry  <karl@gnu.org>
75748
75749         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
75750         gets expanded when surrounded by '$'.
75751
75752 2003-07-15  Jim Meyering  <jim@meyering.net>
75753
75754         * modules/save-cwd: Don't depend on error.  From Derek Price.
75755
75756 2003-07-15  Jim Meyering  <jim@meyering.net>
75757
75758         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
75759
75760 2003-07-14  Simon Josefsson  <jas@extundo.com>
75761
75762         * modules/mempcpy: New file.
75763         * MODULES.html.sh (func_all_modules): Add mempcpy.
75764
75765 2003-07-14  Simon Josefsson  <jas@extundo.com>
75766
75767         * m4/mempcpy.m4: New file.
75768
75769 2003-07-14  Simon Josefsson  <jas@extundo.com>
75770
75771         * lib/mempcpy.h: New file.
75772         * lib/mempcpy.c: New file.
75773
75774 2003-07-14  Paul Eggert  <eggert@twinsun.com>
75775
75776         * modules/getdate, modules/posixtm: Depend on mktime.
75777
75778 2003-07-14  Paul Eggert  <eggert@twinsun.com>
75779
75780         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
75781         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
75782         unicodeio.c, unicodeio.h, unlocked-io.h:
75783         Switch from LGPL to GPL.
75784
75785 2003-07-14  Paul Eggert  <eggert@twinsun.com>
75786
75787         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
75788         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
75789         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
75790         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
75791         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
75792         updated automatically by ../config/srclist-update.  This changes
75793         their license from LPGL to GPL.
75794
75795 2003-07-14  Paul Eggert  <eggert@twinsun.com>
75796
75797         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
75798         assumed to refer to the root of the most recent stable gettext version.
75799         * config/srclistvars.sh: Add defaults for eggert.
75800         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
75801         Match "This program" as well as "The program".  This is needed
75802         for gettext.
75803
75804 2003-07-14  Jim Meyering  <jim@meyering.net>
75805
75806         Don't emit diagnostics.  Let callers do that.
75807         * lib/save-cwd.c: Don't include "error.h".
75808         (save_cwd): Don't call error.  Ensure that errno is valid
75809         when returning nonzero.
75810
75811         * lib/save-cwd.h (restore_cwd): Update prototype.
75812         * lib/save-cwd.c (restore_cwd): Remove two parameters.
75813         Simplify.  Don't call error upon failure.  Let callers do that.
75814         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
75815         when auditing is enabled.  But don't bother updating the #if.
75816
75817 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
75818
75819         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
75820         it breaks C++ compilation.
75821         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
75822
75823 2003-07-10  Simon Josefsson  <jas@extundo.com>
75824
75825         * modules/strchrnul (Makefile.am): Add strchrnul.h.
75826
75827 2003-07-10  Jim Meyering  <jim@meyering.net>
75828
75829         * m4/clock_time.m4: Remove trailing blank.
75830         * m4/intmax_t.m4: Likewise.
75831
75832 2003-07-10  Jim Meyering  <jim@meyering.net>
75833
75834         * lib/vasnprintf.c: Remove trailing blanks.
75835         Make cpp indentation consistent.
75836
75837 2003-07-09  Paul Eggert  <eggert@twinsun.com>
75838
75839         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
75840         posixver.c, strftime.c, strnlen.c, strverscmp.c:
75841         Switch from LGPL to GPL.
75842
75843 2003-07-09  Paul Eggert  <eggert@twinsun.com>
75844
75845         * config/srclist.txt: Sort sublists.  Add
75846         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
75847         that differ from gnulib for one reason or another; we'd like this list
75848         to be smaller but for now let's document what we have.
75849
75850 2003-07-08  Paul Eggert  <eggert@twinsun.com>
75851
75852         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
75853         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
75854         and sweeter "eval x=$x".
75855         * config/srclist.txt: Get lib/argp* from glibc.
75856
75857 2003-07-07  Paul Eggert  <eggert@twinsun.com>
75858
75859         * lib/mktime.c: Fix some boundary cases and remove need for floating
75860         point.
75861
75862         Issue a compile-time diagnostic if time_t is floating point, or if
75863         two's complement arithmetic is not in effect, or if arithmetic
75864         right shift does not propagate the sign.  These assumptions were
75865         all in the original code but they weren't checked.
75866
75867         (TIME_T_MIDPOINT, verify): New macros.
75868         (__isleap): Remove; it has integer overflow problems.
75869         (leapyear): New function, without those problems.
75870         (ydhms_tm_diff): Remove; splitting into two parts.
75871         (ydhms_diff): New function, containing the arithmetic part of
75872         the old ydhms_tm_diff function.  Issue a compile-time
75873         diagnostic if we are not using C99 integer division.
75874         Avoid casts when possible.
75875         (guess_time_tm): New function, containing the checking part of
75876         the old ydhms_tm_diff function.  Return the new value, rather than
75877         the difference between it and the old.  Accept a new argument T
75878         so that *T specifies the old value.  Check for overflow in the result.
75879
75880         (__mktime_internal): Use a time_t offset, not a long int offset.
75881         This undoes the 2003-06-04 change, which is no longer needed now
75882         that we have better overflow checking.
75883         (localtime_offset): Likewise.
75884
75885         (__mktime_internal): Avoid harmful overflow on hosts where time_t
75886         and long are 64-bit but int is only 32-bit.
75887         (ydhms_diff): Use long int to store year1 and yday1.
75888         Issue a compile-time diagnostic if long int is not wide enough.
75889
75890         (__mktime_internal): Use long int to store adjusted year and yday.
75891         Use plain C rather than preprocessor commands, if that doesn't
75892         affect efficiency.
75893         Check for overflow (and try to repair) after each probe
75894         rather than checking only at the very end.  This avoids some bugs
75895         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
75896         does not equal GMT offset at maximum time).
75897         Use integer to check for overflow rather than floating point; this
75898         is more portable to non-IEEE hosts, and is a tad faster.
75899         When we detect that we are oscillating between two values,
75900         don't check whether tm_isdst has the requested value, since
75901         we already know the answer.  When tm_isdst has the wrong value,
75902         use a different heuristic to find the right one, based on the
75903         extreme values actually observed in practice in tz2003a,
75904         rather than the (overly optimistic) "previous 3 calendar quarters".
75905
75906         (not_equal_tm, print_tm, check_result): Use "const T" rather than
75907         "T const" to accommodate glibc style.
75908         (check_result): Use less-confusing report format.  "long" -> "long int.
75909         (main): Likewise.
75910         Don't loop if the iteration overflows time_t.
75911         Allow a negative step in the iteration.
75912
75913 2003-07-06  Karl Berry  <karl@gnu.org>
75914
75915         * config/depcomp: update from automake.
75916         * config/config.sub: update from prep.
75917
75918 2003-07-03  Karl Berry  <karl@gnu.org>
75919
75920         * config/config.guess: update from prep.
75921
75922 2003-07-01  Paul Eggert  <eggert@twinsun.com>
75923
75924         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
75925         xreadlink.c now includes it unconditionally.
75926
75927 2003-07-01  Paul Eggert  <eggert@twinsun.com>
75928
75929         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
75930         having it depend on HAVE_SYS_TYPES_H.
75931
75932 2003-07-01  Bruno Haible  <bruno@clisp.org>
75933
75934         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
75935         <sys/types.h> should be sufficient.
75936         Reported by Paul Eggert.
75937
75938 2003-06-26  Karl Berry  <karl@gnu.org>
75939
75940         * config/depcomp: update from automake.
75941
75942 2003-06-26  Bruno Haible  <bruno@clisp.org>
75943
75944         * modules/human: Depend on module stdbool.
75945
75946 2003-06-25  Bruno Haible  <bruno@clisp.org>
75947
75948         * modules/readlink: New file.
75949         * modules/xreadlink: Depend on it.
75950         * MODULES.html.sh (func_all_modules): Add readlink.
75951
75952 2003-06-25  Bruno Haible  <bruno@clisp.org>
75953
75954         * m4/readlink.m4: New file.
75955
75956 2003-06-25  Bruno Haible  <bruno@clisp.org>
75957
75958         * lib/readlink.c: New file.
75959
75960 2003-06-22  Karl Berry  <karl@gnu.org>
75961
75962         * config/srclist.txt: update mkinstalldirs from automake.
75963         * config/mkinstalldirs: update.
75964
75965 2003-06-22  Bruno Haible  <bruno@clisp.org>
75966
75967         Portability to mingw32.
75968         * m4/ssize_t.m4: New file, from GNU gettext.
75969         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
75970         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
75971
75972 2003-06-22  Bruno Haible  <bruno@clisp.org>
75973
75974         * modules/safe-read: Add m4/ssize_t.m4.
75975         * modules/xreadlink: Add m4/ssize_t.m4.
75976
75977 2003-06-20  Bruno Haible  <bruno@clisp.org>
75978
75979         Assume C89, so PARAMS isn't needed.
75980         * lib/unicodeio.h (PARAMS): Remove.
75981         * lib/unicodeio.c: Don't use PARAMS.
75982
75983 2003-06-18  Karl Berry  <karl@gnu.org>
75984
75985         * config/config.{guess,sub}: update from prep.
75986
75987 2003-06-18  Jim Meyering  <jim@meyering.net>
75988
75989         Merge changes from coreutils.
75990         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
75991         Remove explicit declarations of xmalloc and realloc.
75992         Include xalloc.h.
75993         (read_utmp): Remove anachronistic cast of xmalloc.
75994
75995 2003-06-17  Paul Eggert  <eggert@twinsun.com>
75996
75997         Assume C89, so PARAMS isn't needed.
75998         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
75999         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
76000         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
76001         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
76002         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
76003         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
76004         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
76005         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
76006         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
76007         lib/xstrtod.h, lib/xstrtol.h: Likewise.
76008         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
76009         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
76010         no longer needed. Anyway, config.h should always be included before any
76011         other file.
76012
76013 2003-06-11  Simon Josefsson  <jas@extundo.com>
76014
76015         * modules/sysexits: New file.
76016         * MODULES.html.sh (func_all_modules): Add sysexits.
76017
76018 2003-06-11  Simon Josefsson  <jas@extundo.com>
76019
76020         * lib/sysexit_.h: New file.
76021
76022 2003-06-11  Derek Price  <derek@ximbiot.com>
76023
76024         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
76025         necessary.
76026
76027 2003-06-11  Bruno Haible  <bruno@clisp.org>
76028
76029         * m4/sysexits.m4: New file.
76030
76031 2003-06-10  Simon Josefsson  <jas@extundo.com>
76032
76033         * lib/argp.h: New file, from glibc.
76034         * lib/argp-ba.c: New file, from glibc.
76035         * lib/argp-eexst.c: New file, from glibc.
76036         * lib/argp-fmtstream.c: New file, from glibc.
76037         * lib/argp-fmtstream.h: New file, from glibc.
76038         * lib/argp-fs-xinl.c: New file, from glibc.
76039         * lib/argp-help.c: New file, from glibc.
76040         * lib/argp-namefrob.h: New file, from glibc.
76041         * lib/argp-parse.c: New file, from glibc.
76042         * lib/argp-pv.c: New file, from glibc.
76043         * lib/argp-pvh.c: New file, from glibc.
76044         * lib/argp-xinl.c: New file, from glibc.
76045
76046 2003-06-10  Simon Josefsson  <jas@extundo.com>
76047
76048         * modules/strchrnul: New file.
76049
76050 2003-06-10  Simon Josefsson  <jas@extundo.com>
76051
76052         * modules/argp: New file.
76053
76054 2003-06-10  Simon Josefsson  <jas@extundo.com>
76055
76056         * m4/strchrnul.m4: New file.
76057
76058 2003-06-10  Simon Josefsson  <jas@extundo.com>
76059
76060         * lib/strchrnul.h: New file.
76061         * lib/strchrnul.c: New file.
76062
76063 2003-06-10  Bruno Haible  <bruno@clisp.org>
76064
76065         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
76066
76067 2003-06-07  Karl Berry  <karl@gnu.org>
76068
76069         * config/config.{guess,sub}: update from prep.
76070
76071 2003-06-07  Jim Meyering  <jim@meyering.net>
76072
76073         * modules/strtod: Use $(...) notation, not @...@ for
76074         AC_REPLACE'd variables.
76075         * modules/localcharset: Likewise.
76076
76077 2003-06-07  Jim Meyering  <jim@meyering.net>
76078
76079         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
76080         in place of my name in the copyright comment.
76081         Remove definition and uses of __P.
76082
76083         From coreutils.
76084         * lib/stat.c: Don't declare xmalloc explicitly.
76085         Instead, include "xalloc.h".
76086         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
76087         xrealloc, and xcalloc return values.
76088         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
76089         Improve comment.
76090         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
76091
76092 2003-06-07  Bruno Haible  <bruno@clisp.org>
76093
76094         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
76095         avoid AC_CONFIG_LINKS.
76096         * modules/fnmatch (Makefile.am): Use explicit creation rule for
76097         fnmatch.h, to avoid AC_CONFIG_LINKS.
76098         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
76099
76100 2003-06-07  Bruno Haible  <bruno@clisp.org>
76101
76102         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
76103         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
76104         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
76105         directory.
76106         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
76107         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
76108         directory.
76109
76110 2003-06-06  Jim Meyering  <jim@meyering.net>
76111
76112         Merge from coreutils.
76113         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
76114         Consolidate declarations and initializations of *_base* locals.
76115
76116         Merge from coreutils.
76117         This avoids a core dump on systems without GNU putenv,
76118         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
76119         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
76120         (unsetenv): New static function, from GNU libc.
76121         (rpl_putenv): Use it.
76122
76123         * lib/modechange.c: Remove trailing blanks.
76124
76125         Merge from coreutils.
76126         * lib/fsusage.c: Remove declaration of statfs.
76127         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
76128
76129         * lib/posixtm.c: Include <stdbool.h> unconditionally.
76130
76131 2003-06-06  Jim Meyering  <jim@meyering.net>
76132
76133         * lib/stdbool_.h: Renamed from stdbool.h.in.
76134
76135 2003-06-06  Jim Meyering  <jim@meyering.net>
76136             Bruno Haible  <bruno@clisp.org>
76137
76138         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
76139         Adjust Makefile.am snippet not to redirect directly to target.
76140         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
76141
76142 2003-06-05  Paul Eggert  <eggert@twinsun.com>
76143
76144         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
76145         mismatch, look in future quarters as well as past.  This fixes a
76146         bug when processing fall-backwards gaps immediately after a long
76147         period of daylight-saving time.
76148
76149         * lib/mktime.c: Assume freestanding C89 or better.
76150         (HAVE_LIMITS_H): Remove.  Assume it's 1.
76151         (__P): Remove; not used.
76152         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
76153         (mktime, not_equal_tm, print_tm, check_result,
76154         main): Use prototypes.  Use const * where appropriate.
76155         (main): Fix typo in testing code that uncovered by above changes.
76156         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
76157
76158 2003-06-04  Paul Eggert  <eggert@twinsun.com>
76159
76160         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
76161         locale.h, localeconv.  This merges changes from coreutils.
76162
76163         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
76164         It can be removed after the next Autoconf is released.
76165         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
76166         needed.
76167
76168 2003-06-04  Paul Eggert  <eggert@twinsun.com>
76169
76170         * lib/mktime.c: Fix Debian bug 177940
76171         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
76172         (localtime_offset): Now long int, not time_t, because we want it
76173         to be guaranteed to be signed.  All uses changed.
76174         (__mktime_internal): If overflow would occur when adding offset,
76175         don't add it.
76176
76177         Merge 'human' changes from coreutils.  Rewrite to support
76178         locale-specific notations like thousands separators.
76179         * lib/human.c: Simplify authorship notice.
76180         Include human.h immediately after config.h.
76181         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
76182         <limits.h>: Do not include, since human.h does.
76183         (SIZE_MAX, UINTMAX_MAX): New macros.
76184         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
76185         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
76186         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
76187         (power_letter): Renamed from suffixes.
76188         (generate_suffix_backwards): Remove.
76189         (adjust_value): Now takes int style (because of human.h changes)
76190         and long double value (for greater precision on some platforms).
76191         (group_number): New function.
76192         (human_readable): Use it.  Use integer options, not enum.
76193         Put the options before the sizes in the arg list.
76194         Support all the new options.
76195         The old human_readable function has been removed;
76196         use inttostr.h instead.
76197         (human_readable, default_block_size, humblock):
76198         Use uintmax_t, not int, for block sizes.
76199         (human_readable_inexact, block_size_types): Remove.
76200         (block_size_opts): New constant.
76201         (human_options): Renamed from human_block_size, with new signature
76202         that allows block sizes up to UINTMAX_MAX.  All callers changed.
76203         * lib/human.h: Add copyright and authorship notice.
76204         Include <limits.h> and <stdbool.h> unconditionally.
76205         (PARAMS): Remove.  All uses removed.
76206         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
76207         (enum human_inexact_style): Remove tag; now a nameless enum.
76208         (human_floor, human_ceiling, human_round_to_even): Now have
76209         values 2, 0, 1 rather than -1, 1, 0.
76210         (human_group_digits, human_suppress_point_zero, human_autoscale,
76211         human_base_1024, human_SI, human_B): New constants.
76212         (human_readable_inexact, human_block_size): Remove.
76213         (human_readable): Size args are now uintmax_t, not int.
76214         (human_options): New decl.
76215
76216         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
76217         unnecessary now that we assume C89 or better.  This change
76218         imported from coreutils.
76219
76220         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
76221         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
76222         in the 2003-05-30 sync from glibc.
76223
76224         .h files should stand alone, but we shouldn't include <sys/types.h>
76225         if we can get away with just <stddef.h>.
76226
76227         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
76228         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
76229         rather than <sys/types.h>, as we merely need size_t.
76230         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
76231         to get size_t.
76232         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
76233         Include <stdio.h>, to get FILE.
76234         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
76235         memcasecmp.h has included <stddef.h> and all we need is size_t.
76236         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
76237         our interface, instead of including <sys/types.h>
76238
76239 2003-06-04  Paul Eggert  <eggert@twinsun.com>
76240
76241         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
76242         now, as glibc mktime is buggy on non-glibc systems.
76243
76244 2003-06-03  Karl Berry  <karl@gnu.org>
76245
76246         * config/config.sub: update from prep.
76247
76248 2003-06-02  Paul Eggert  <eggert@twinsun.com>
76249
76250         [from coreutils]
76251         Fix some minor time-related bugs with POSIX time arguments.
76252         Some valid time stamps were being rejected (notably -1, and
76253         time stamps before 1900 on 64-bit hosts).  And some invalid
76254         time stamps were being accepted, e.g. September 31.
76255
76256         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
76257         that we can return (time_t) -1 successfully.
76258         * lib/posixtm.c: Likewise.
76259         [HAVE_STDBOOL_H]: Include <stdbool.h>.
76260         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
76261         (t): Remove static var.
76262         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
76263         of static var.  All uses changed.
76264         (year): Do not reject years before 1900; they can occur with
76265         64-bit time_t.
76266         (posix_time_parse): Do not check for out-of-range components;
76267         that is now the caller's responsibility, since our checks were
76268         only approximations.
76269         (posixtime): Use mktime to check for out-of-range components,
76270         since it knows them exactly.
76271         If mktime returns (time_t) -1, check whether an error actually occurred
76272         by invoking localtime on -1.
76273         (main) [TEST_POSIXTIME]: Check for input data errors, and report
76274         posixtime failures better.
76275         Improve the test data (in comments only).
76276
76277 2003-06-02  Karl Berry  <karl@gnu.org>
76278
76279         * config/mkinstalldirs (version): new variable.
76280         (--version): new option.
76281         (usage): improve message.
76282
76283 2003-05-30  Karl Berry  <karl@gnu.org>
76284
76285         * lib/mktime.c: update from libc.
76286
76287 2003-05-30  Bruno Haible  <bruno@clisp.org>
76288
76289         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
76290         * config/config.rpath: Upgrade to gettext-0.12.1.
76291
76292 2003-05-30  Bruno Haible  <bruno@clisp.org>
76293
76294         * m4/gettext.m4: Upgrade to gettext-0.12.1.
76295         * m4/nls.m4: New file, from gettext-0.12.1.
76296         * m4/po.m4: New file, from gettext-0.12.1.
76297         * m4/progtest.m4: Upgrade to gettext-0.12.1.
76298
76299 2003-05-30  Bruno Haible  <bruno@clisp.org>
76300
76301         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
76302         * lib/localcharset.h: Likewise.
76303         * lib/localcharset.c: Likewise.
76304
76305 2003-05-29  Karl Berry  <karl@gnu.org>
76306
76307         * config/config.rpath: update from gettext.
76308
76309 2003-05-28  Paul Eggert  <eggert@twinsun.com>
76310
76311         Assume the headers required for C89 freestanding compilers.
76312         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
76313         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
76314         * m4/human.m4 (gl_HUMAN): Likewise.
76315         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
76316         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
76317         * m4/userspec.m4 (gl_USERSPEC): Likewise.
76318         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
76319         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76320         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
76321
76322 2003-05-28  Paul Eggert  <eggert@twinsun.com>
76323
76324         Assume the headers required for C89 freestanding compilers.
76325         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
76326         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
76327         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
76328         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
76329         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
76330         define, since <limits.h> is guaranteed to do that.
76331         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
76332         * lib/exclude.c: Include <stdbool.h> unconditionally.
76333         * lib/tempname.c: Include <stddef.h> unconditionally.
76334         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
76335         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
76336         <stddef.h> does that.
76337         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
76338         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
76339         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
76340         needed.
76341         * lib/xstrtol.c: Likewise.
76342         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
76343         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
76344
76345         * lib/addext.c (addext): Use assignment rather than cast, to avoid
76346         warnings on some platforms.
76347
76348         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
76349         arbitrarily.
76350
76351 2003-05-26  Jim Meyering  <jim@meyering.net>
76352
76353         Merge in a change from coreutils:
76354         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
76355         that is guaranteed to be `no'.  Use `no_such_member' to indicate
76356         that condition, rather than `-1' which is slightly misleading.
76357         Change the name of the cache variable to have the gl_ prefix.
76358         Prompted by a patch from Richard Dawe for DJGPP.
76359
76360 2003-05-24  Karl Berry  <karl@gnu.org>
76361
76362         * config/config.guess: update from prep.
76363
76364 2003-05-22  Karl Berry  <karl@gnu.org>
76365
76366         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
76367
76368 2003-05-20  Karl Berry  <karl@gnu.org>
76369
76370         * config/config.guess: update from prep.
76371
76372 2003-05-18  Karl Berry  <karl@gnu.org>
76373
76374         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
76375         might actually be set by the user.
76376
76377         * config/depcomp, install-sh, mdate-sh: update from automake.
76378
76379 2003-05-17  Bruno Haible  <bruno@clisp.org>
76380
76381         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
76382         invalid expansion for AC_EGREP_CPP.
76383         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
76384         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
76385         Suggested by Akim Demaille <akim@epita.fr> in
76386         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
76387
76388 2003-05-12  Jim Meyering  <jim@meyering.net>
76389
76390         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
76391         the space-padded-by-default conversion specifiers, %e, %k, %l.
76392
76393 2003-05-12  Bruno Haible  <bruno@clisp.org>
76394
76395         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
76396         the string is longer than 4 KB.
76397
76398 2003-05-11  Karl Berry  <karl@gnu.org>
76399
76400         * config/config.{guess,sub}: update from prep.
76401
76402 2003-05-09  Bruno Haible  <bruno@clisp.org>
76403
76404         * modules/error: Add m4/strerror_r.m4 to file list.
76405
76406 2003-05-03  Bruno Haible  <bruno@clisp.org>
76407
76408         Upgrade to Unicode-4.0.
76409         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
76410         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
76411         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
76412         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
76413         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
76414         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
76415         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
76416         Change width of U+E0100..U+E01EF from 1 to 0.
76417
76418 2003-04-25  Jim Meyering  <jim@meyering.net>
76419
76420         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
76421         of type size_t, not int.
76422
76423 2003-04-25  Bruno Haible  <bruno@clisp.org>
76424
76425         * lib/copy-file.c: Include <stddef.h>, for size_t.
76426
76427 2003-04-21  Paul Eggert  <eggert@twinsun.com>
76428
76429         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
76430         code which expansion is under static control.  Patch imported from
76431         Akim Demaille's patch to Bison; see
76432         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
76433
76434 2003-04-14  Bruno Haible  <bruno@clisp.org>
76435
76436         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
76437
76438 2003-04-11  Jim Meyering  <jim@meyering.net>
76439
76440         Merge changes from Coreutils.
76441
76442         2003-03-22  Jim Meyering  <jim@meyering.net>
76443
76444         * lib/strftime.c (widen): Cast alloca return value to proper type.
76445
76446         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
76447
76448         From GNU libc.
76449         * lib/strftime.c (my_strftime): Handle very large width
76450         specifications for numeric values correctly.  Improve checks for
76451         overflow.
76452
76453         2003-01-19  Jim Meyering  <jim@meyering.net>
76454
76455         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
76456         definitions.
76457         (nl_get_alt_digit) [! defined my_strftime]: Define.
76458         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
76459         _nl_get_alt_digit and _nl_get_walt_digit.
76460
76461         * lib/strftime.c (my_strftime): Merge in locale-related changes from
76462         libc. These changes have no effect outside of _LIBC.
76463
76464 2003-04-10  Bruno Haible  <bruno@clisp.org>
76465
76466         * modules/findprog: New file.
76467         * MODULES.html.sh (func_all_modules): Add it.
76468
76469 2003-04-10  Bruno Haible  <bruno@clisp.org>
76470
76471         * m4/findprog.m4: New file.
76472         * m4/eaccess.m4: New file.
76473
76474 2003-04-10  Bruno Haible  <bruno@clisp.org>
76475
76476         * lib/findprog.h: New file, from GNU gettext.
76477         * lib/findprog.c: New file, from GNU gettext.
76478
76479 2003-04-05  Jim Meyering  <jim@meyering.net>
76480
76481         Merge changes from Coreutils.
76482
76483         * lib/exclude.h (PARAMS): Remove definition and uses.
76484         * lib/exclude.c: Remove uses of `PARAMS'.
76485
76486         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
76487         Add test-cases for DOS filenames. Declare program_name.
76488         (main): Set up program_name.  Patch by Rich Dawe.
76489
76490         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
76491         error from mntctl.
76492         Use mntctl's return value to drive the entry-processing loop, since
76493         we can't rely on the value of the vmt_length member in the last
76494         entry.  On some systems doing so could result in exhausting
76495         virtual memory.  Based in part on a patch from Mike Jetzer.
76496
76497 2003-04-04  Bruno Haible  <bruno@clisp.org>
76498
76499         * modules/linebreak: New file.
76500         * MODULES.html.sh (func_all_modules): Add it.
76501
76502 2003-04-04  Bruno Haible  <bruno@clisp.org>
76503
76504         * m4/linebreak.m4: New file.
76505
76506 2003-04-04  Bruno Haible  <bruno@clisp.org>
76507
76508         * lib/linebreak.h: New file, from GNU gettext.
76509         * lib/linebreak.c: New file, from GNU gettext with slight
76510         modifications.
76511         * lib/lbrkprop.h: New file, from GNU gettext.
76512
76513 2003-04-03  Bruno Haible  <bruno@clisp.org>
76514
76515         * modules/utf8-ucs4: New file.
76516         * modules/utf16-ucs4: New file.
76517         * modules/ucs4-utf8: New file.
76518         * modules/ucs4-utf16: New file.
76519         * MODULES.html.sh (func_all_modules): Add them.
76520
76521 2003-04-03  Bruno Haible  <bruno@clisp.org>
76522
76523         * m4/utf-ucs4.m4: New file.
76524         * m4/ucs4-utf.m4: New file.
76525
76526 2003-04-03  Bruno Haible  <bruno@clisp.org>
76527
76528         * lib/utf8-ucs4.h: New file, from GNU gettext.
76529         * lib/utf16-ucs4.h: New file, from GNU gettext.
76530         * lib/ucs4-utf8.h: New file, from GNU gettext.
76531         * lib/ucs4-utf16.h: New file, from GNU gettext.
76532
76533 2003-04-02  Bruno Haible  <bruno@clisp.org>
76534
76535         * modules/binary-io: New file.
76536         * MODULES.html.sh (func_all_modules): Add it.
76537
76538 2003-04-02  Bruno Haible  <bruno@clisp.org>
76539
76540         * lib/binary-io.h: New file, from GNU gettext.
76541
76542 2003-04-01  Bruno Haible  <bruno@clisp.org>
76543
76544         * modules/pathname: New file.
76545         * MODULES.html.sh (func_all_modules): Add it.
76546
76547 2003-04-01  Bruno Haible  <bruno@clisp.org>
76548
76549         * lib/pathname.h: New file, from GNU gettext.
76550         * lib/concatpath.c: New file, from GNU gettext.
76551
76552 2003-03-30  Bruno Haible  <bruno@clisp.org>
76553
76554         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
76555
76556 2003-03-30  Bruno Haible  <bruno@clisp.org>
76557
76558         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
76559         function chown() doesn't exist.
76560
76561 2003-03-28  Bruno Haible  <bruno@clisp.org>
76562
76563         * modules/copy-file: New file.
76564         * MODULES.html.sh (func_all_modules): Add it.
76565
76566 2003-03-28  Bruno Haible  <bruno@clisp.org>
76567
76568         * m4/copy-file.m4: New file.
76569
76570 2003-03-28  Bruno Haible  <bruno@clisp.org>
76571
76572         * lib/copy-file.h: New file, from GNU gettext.
76573         * lib/copy-file.c: New file, from GNU gettext.
76574
76575 2003-03-18  Jim Meyering  <jim@meyering.net>
76576
76577         * lib/quote.c (quote_n): Fix typo in comment.
76578
76579 2003-03-18  Bruno Haible  <bruno@clisp.org>
76580
76581         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
76582         checking.
76583         * m4/onceonly_2_57.m4: Likewise.
76584
76585 2003-03-17  Bruno Haible  <bruno@clisp.org>
76586
76587         * m4/onceonly.m4: Require autoconf 2.54 or newer.
76588         (m4_quote): Remove macro.
76589         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
76590
76591 2003-03-14  Jim Meyering  <jim@meyering.net>
76592
76593         Merge changes from Coreutils.
76594         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
76595         to be const, in order to avoid warnings.
76596         (obstack_room): Likewise.
76597         (obstack_empty_p): Likewise.
76598
76599 2003-03-14  Bruno Haible  <bruno@clisp.org>
76600
76601         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
76602         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
76603
76604 2003-03-13  Paul Eggert  <eggert@twinsun.com>
76605
76606         Merge changes from Bison.
76607         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
76608         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
76609         when compiling Bison 1.875's `bitset bset = obstack_alloc
76610         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
76611         * lib/hash.c: Include <stdbool.h> unconditionally.
76612
76613 2003-03-13  Paul Eggert  <eggert@twinsun.com>
76614
76615         * m4/onceonly.m4 (m4_quote): New macro.
76616         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
76617         Quote AC_FOREACH variable-expansions properly.
76618
76619 2003-03-13  Paul Eggert  <eggert@twinsun.com>
76620
76621         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
76622
76623 2003-03-09  Paul Eggert  <eggert@twinsun.com>
76624
76625         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
76626         Reported by Bruce Becker; see:
76627         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
76628
76629 2003-03-03  Paul Eggert  <eggert@twinsun.com>
76630             Bruno Haible  <bruno@clisp.org>
76631
76632         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
76633         Reported by John Hughes, see
76634         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
76635
76636 2003-02-20  Bruno Haible  <bruno@clisp.org>
76637
76638         * MODULES.html.sh (func_all_modules): Add poll.
76639
76640 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
76641
76642         * modules/poll: New file.
76643
76644 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
76645
76646         * lib/poll_.h: New file.
76647         * lib/poll.c: New file.
76648
76649 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
76650
76651         * m4/poll.m4: New file.
76652
76653 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
76654
76655         * modules/mathl: New file.
76656
76657 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
76658
76659         * lib/mathl.h: New file.
76660         * lib/acosl.c: New file.
76661         * lib/asinl.c: New file.
76662         * lib/atanl.c: New file.
76663         * lib/ceill.c: New file.
76664         * lib/cosl.c: New file.
76665         * lib/expl.c: New file.
76666         * lib/floorl.c: New file.
76667         * lib/frexpl.c: New file.
76668         * lib/ldexpl.c: New file.
76669         * lib/logl.c: New file.
76670         * lib/sincosl.c: New file.
76671         * lib/sinl.c: New file.
76672         * lib/sqrtl.c: New file.
76673         * lib/tanl.c: New file.
76674         * lib/trigl.c: New file.
76675         * lib/trigl.h: New file.
76676
76677 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
76678
76679         * m4/mathl.m4: New file.
76680
76681 2003-02-18  Bruno Haible  <bruno@clisp.org>
76682
76683         * MODULES.html.sh (func_all_modules): Add mathl.
76684
76685 2003-02-17  Bruno Haible  <bruno@clisp.org>
76686
76687         * modules/mkdtemp: New module.
76688         * MODULES.html.sh (func_all_modules): Add it.
76689
76690 2003-02-17  Bruno Haible  <bruno@clisp.org>
76691
76692         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
76693
76694 2003-02-17  Bruno Haible  <bruno@clisp.org>
76695
76696         * lib/mkdtemp.h: New file, from GNU gettext.
76697         * lib/mkdtemp.c: New file, from GNU gettext.
76698
76699 2003-02-02  Jim Meyering  <jim@meyering.net>
76700
76701         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
76702         e.g. glibc-2.2.93.
76703
76704 2003-01-31  Bruno Haible  <bruno@clisp.org>
76705
76706         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
76707         'rpl_rename'.
76708         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
76709         'rpl_strnlen'.
76710         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
76711         'rpl_strtod'.
76712         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
76713         'rpl_utime'.
76714
76715 2003-01-31  Bruno Haible  <bruno@clisp.org>
76716
76717         * lib/rename.c: #undef rename before defining rpl_rename.
76718         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
76719
76720 2003-01-30  Bruno Haible  <bruno@clisp.org>
76721
76722         * modules/vasnprintf, modules/vasprintf: New modules.
76723         * MODULES.html.sh (func_all_modules): Add them.
76724
76725 2003-01-30  Bruno Haible  <bruno@clisp.org>
76726
76727         * m4/signed.m4: New file, from GNU gettext.
76728         * m4/longdouble.m4: New file, from GNU gettext.
76729         * m4/wchar_t.m4: New file, from GNU gettext.
76730         * m4/wint_t.m4: New file, from GNU gettext.
76731         * m4/vasnprintf.m4: New file.
76732         * m4/vasprintf.m4: New file.
76733
76734 2003-01-30  Bruno Haible  <bruno@clisp.org>
76735
76736         * lib/printf-args.h: New file, from GNU gettext.
76737         * lib/printf-args.c: New file, from GNU gettext.
76738         * lib/printf-parse.h: New file, from GNU gettext.
76739         * lib/printf-parse.c: New file, from GNU gettext.
76740         * lib/vasnprintf.h: New file, from GNU gettext.
76741         * lib/vasnprintf.c: New file, from GNU gettext.
76742         * lib/asnprintf.c: New file, from GNU gettext.
76743         * lib/vasprintf.h: New file, from GNU gettext with modifications.
76744         * lib/vasprintf.c: New file, from GNU gettext.
76745         * lib/asprintf.c: New file, from GNU gettext.
76746
76747 2003-01-29  Bruno Haible  <bruno@clisp.org>
76748
76749         * modules/stpncpy: New module.
76750         * MODULES.html.sh (func_all_modules): Add it.
76751
76752 2003-01-29  Bruno Haible  <bruno@clisp.org>
76753
76754         * m4/stpncpy.m4: New file.
76755
76756 2003-01-29  Bruno Haible  <bruno@clisp.org>
76757
76758         * lib/stpncpy.h: New file, from GNU gettext with modifications.
76759         * lib/stpncpy.c: New file, from GNU gettext with modifications.
76760
76761 2003-01-28  Bruno Haible  <bruno@clisp.org>
76762
76763         * modules/c-ctype: New module.
76764         * MODULES.html.sh (func_all_modules): Add it.
76765
76766 2003-01-28  Bruno Haible  <bruno@clisp.org>
76767
76768         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
76769         Paul Eggert.
76770         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
76771         Paul Eggert.
76772
76773 2003-01-27  Bruno Haible  <bruno@clisp.org>
76774
76775         * modules/xsetenv: New module.
76776         * MODULES.html.sh (func_all_modules): Add it.
76777
76778 2003-01-27  Bruno Haible  <bruno@clisp.org>
76779
76780         * lib/xsetenv.h: New file, from GNU gettext.
76781         * lib/xsetenv.c: New file, from GNU gettext.
76782
76783 2003-01-23  Jim Meyering  <jim@meyering.net>
76784
76785         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
76786         from working on systems without dirfd (at least Irix and OSF1/Tru64).
76787
76788 2003-01-23  Bruno Haible  <bruno@clisp.org>
76789
76790         * modules/minmax: New module.
76791         * MODULES.html.sh (func_all_modules): Add it.
76792
76793 2003-01-23  Bruno Haible  <bruno@clisp.org>
76794
76795         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
76796         Eggert.
76797
76798 2003-01-22  Bruno Haible  <bruno@clisp.org>
76799
76800         * modules/exit: New module.
76801         * MODULES.html.sh (func_all_modules): Add it.
76802
76803 2003-01-22  Bruno Haible  <bruno@clisp.org>
76804
76805         * lib/exit.h: New file, from GNU gettext.
76806
76807 2003-01-19  Bruno Haible  <bruno@clisp.org>
76808
76809         * gnulib-tool: Recognize option --extract-maintainer.
76810         (func_get_maintainer): New function.
76811         * modules/*: Add Maintainer entry.
76812
76813 2003-01-16  Jim Meyering  <jim@meyering.net>
76814
76815         * m4/regex.m4: The `regex' struct is both input and output.
76816         Initialize it before each use.  Patch by Tim Waugh.
76817
76818 2003-01-16  Bruno Haible  <bruno@clisp.org>
76819
76820         * MODULES.html.sh: Add a table of contents. Add the module name as
76821         leftmost column. Add hyperlinks.
76822
76823 2003-01-15  Bruno Haible  <bruno@clisp.org>
76824
76825         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
76826
76827 2003-01-15  Bruno Haible  <bruno@clisp.org>
76828
76829         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
76830         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
76831         suffix.
76832
76833 2003-01-15  Bruno Haible  <bruno@clisp.org>
76834
76835         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
76836
76837 2003-01-15  Bruno Haible  <bruno@clisp.org>
76838
76839         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
76840         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
76841
76842 2003-01-14  Jim Meyering  <jim@meyering.net>
76843
76844         * lib/same.c (same_name): Tweak a comment.
76845
76846 2003-01-14  Bruno Haible  <bruno@clisp.org>
76847
76848         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
76849         when a string comparison is sufficient.
76850
76851 2003-01-14  Bruno Haible  <bruno@clisp.org>
76852
76853         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
76854         'unsigned int'.
76855
76856 2003-01-14  Bruno Haible  <bruno@clisp.org>
76857
76858         * lib/hash-pjw.c: Add comment about low quality of this function.
76859
76860 2003-01-13  Bruno Haible  <bruno@clisp.org>
76861
76862         * modules/stpcpy: Distribute lib/stpcpy.h.
76863         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
76864
76865 2003-01-13  Bruno Haible  <bruno@clisp.org>
76866
76867         * modules/*: Add a description.
76868         * modules/strpbrk: Fix Makefile.am snippet.
76869         * modules/strtoimax: Fix dependencies.
76870         * modules/strtoumax: Likewise.
76871
76872 2003-01-13  Bruno Haible  <bruno@clisp.org>
76873
76874         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
76875         * modules/alloca (Makefile.am): All object files depend on alloca.h.
76876         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
76877
76878 2003-01-13  Bruno Haible  <bruno@clisp.org>
76879
76880         * gnulib-tool (func_create_testdir): Store config/* files in the main
76881         directory.
76882         * config.rpath: Move to ...
76883         * config/config.rpath: ... here.
76884         * modules/gettext: Contains config/config.rpath, not config.rpath.
76885         * modules/iconv: Likewise.
76886
76887 2003-01-12  Paul Eggert  <eggert@twinsun.com>
76888
76889         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
76890         to avoid collisions with libcurses and libreadline.
76891
76892         * m4/getstr.m4: Remove.
76893         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
76894
76895 2003-01-12  Paul Eggert  <eggert@twinsun.com>
76896
76897         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
76898         to avoid collisions with libcurses and libreadline.
76899
76900         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
76901         * lib/getstr.h, getstr.c: Remove.
76902         * lib/getline.c: Include "getline.h", to check interface.
76903         Move body of old getstr.c here: this defines MIN_CHUNK and
76904         declares getdelim2, which is renamed from getstr.
76905         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
76906
76907         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
76908         All uses changed.
76909         * lib/linebuffer.h: Likewise.
76910         (readline): Remove backward-compatibility macro.
76911
76912 2003-01-12  Paul Eggert  <eggert@twinsun.com>
76913
76914         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
76915         to avoid collisions with libcurses and libreadline.
76916         * getstr: Remove.
76917         * MODULES.html.sh: Remove getstr.
76918         * modules/getline: Depend on unlocked-io, not getstr.
76919
76920 2003-01-12  Jim Meyering  <jim@meyering.net>
76921
76922         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
76923
76924 2003-01-10  Bruno Haible  <bruno@clisp.org>
76925
76926         * modules/alloca: Change Makefile.am requirements. Simplify Include
76927         requirements. Add lib/alloca_.h to file list.
76928
76929 2003-01-10  Bruno Haible  <bruno@clisp.org>
76930
76931         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
76932
76933 2003-01-10  Bruno Haible  <bruno@clisp.org>
76934
76935         * lib/alloca_.h: New file.
76936         * lib/getdate.y: Unconditionally include alloca.h.
76937         * lib/makepath.c: Likewise.
76938         * lib/setenv.c: Likewise.
76939         * lib/userspec.c: Likewise.
76940
76941 2003-01-09  Karl Berry  <karl@gnu.org>
76942
76943         * MODULES.html.sh: include `dirname $0` in PATH, to find
76944         gnulib-tool.
76945
76946 2003-01-09  Bruno Haible  <bruno@clisp.org>
76947
76948         * modules/stdbool: Change configure.ac, Makefile.am requirements.
76949         Simplify Include requirements. Add lib/stdbool.h.in to file list.
76950
76951 2003-01-09  Bruno Haible  <bruno@clisp.org>
76952
76953         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
76954
76955 2003-01-09  Bruno Haible  <bruno@clisp.org>
76956
76957         * lib/stdbool.h.in: New file.
76958
76959 2003-01-09  Bruno Haible  <bruno@clisp.org>
76960
76961         * gnulib-tool (func_all_modules): Ignore files ending in ~.
76962         * MODULES.html.sh: Likewise.
76963
76964 2003-01-08  Jim Meyering  <jim@meyering.net>
76965
76966         * lib/full-write.c: Undefine and define-away `const' after inclusion
76967         of errno.h, not before.  Suggestion from Bruno Haible.
76968
76969 2003-01-08  Bruno Haible  <bruno@clisp.org>
76970
76971         * modules/full-read: Depend on full-write.
76972
76973 2003-01-08  Bruno Haible  <bruno@clisp.org>
76974
76975         * lib/safe-read.c: Include specification header first, to ensure its
76976         selfcontainedness.
76977         * lib/full-write.c: Likewise.
76978
76979 2003-01-07  Jim Meyering  <jim@meyering.net>
76980
76981         * lib/full-write.c: Rework so that it may serve to define full_read,
76982         too.
76983         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
76984
76985 2003-01-07  Bruno Haible  <bruno@clisp.org>
76986
76987         * lib/strtoimax.c: Include <stdint.h> as an alternative to
76988         <inttypes.h>.
76989         * lib/xstrtol.h: Likewise.
76990         * lib/xstrtoimax.c: Likewise.
76991         * lib/xstrtoumax.c: Likewise.
76992         * lib/human.h: Likewise.
76993
76994         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
76995         on systems that have <inttypes.h> but not <stdint.h>.
76996
76997 2003-01-07  Bruno Haible  <bruno@clisp.org>
76998
76999         * MODULES.html.sh: Add copyright notice.
77000         (missed_files): Omit CVS directory entries.
77001         (func_module): Make it work with sed-3.02.
77002         * MODULES.txt: Remove file.
77003
77004 2003-01-06  Jim Meyering  <jim@meyering.net>
77005
77006         * lib/version-etc.c: Update year in translatable copyright string.
77007
77008 2003-01-03  Karl Berry  <karl@gnu.org>
77009
77010         * config/config.{guess,sub}: update from prep.
77011
77012 2003-01-02  Karl Berry  <karl@gnu.org>
77013
77014         * doc/COPYING.DOC: belatedly updated to 1.2.
77015
77016 2003-01-01  Karl Berry  <karl@gnu.org>
77017
77018         * gnulib-tool (func_verify_module): report module name $module in
77019         error message, not $1.
77020         * gnulib-tool (create-testdir): don't complain if destdir couldn't
77021         be created, only if it doesn't exist.
77022         * gnulib-tool (last_checkin_date): don't expand the $Date here.
77023
77024 2002-12-31  Paul Eggert  <eggert@twinsun.com>
77025
77026         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
77027
77028 2002-12-31  Paul Eggert  <eggert@twinsun.com>
77029
77030         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
77031         memcmp if strcoll doesn't work.
77032
77033 2002-12-31  Bruno Haible  <bruno@clisp.org>
77034
77035         * lib/utime.c (utime_null): No need to call ftruncate if the file was
77036         nonempty.
77037
77038 2002-12-31  Bruno Haible  <bruno@clisp.org>
77039
77040         * lib/memcoll.c (STRCOLL): New macro.
77041         (memcoll): Use it.
77042
77043 2002-12-31  Bruno Haible  <bruno@clisp.org>
77044
77045         * lib/localcharset.h: New file.
77046         * lib/localcharset.c: Include it.
77047         * lib/unicodeio.c: Likewise.
77048
77049 2002-12-31  Bruno Haible  <bruno@clisp.org>
77050
77051         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
77052         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
77053
77054 2002-12-31  Bruno Haible  <bruno@clisp.org>
77055
77056         * lib/getline.h: Include <stddef.h>, for size_t.
77057
77058         * lib/unicodeio.h: Include <stddef.h>, for size_t.
77059         * lib/unicodeio.c: Don't include <stddef.h>.
77060
77061 2002-12-31  Bruno Haible  <bruno@clisp.org>
77062
77063         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
77064         HAVE_TM_ZONE.
77065
77066 2002-12-24  Karl Berry  <karl@gnu.org>
77067
77068         * config/config.guess: update from prep.
77069
77070 2002-12-24  Bruno Haible  <bruno@clisp.org>
77071
77072         General infrasructure.
77073         * m4/README: Rewritten.
77074         * m4/onceonly.m4: New file.
77075         * m4/onceonly_2_57.m4: New file.
77076
77077         Module atexit.
77078         * m4/atexit.m4: New file.
77079
77080         Module strtod.
77081         * m4/strtod.m4: New file.
77082
77083         Module strtol.
77084         * m4/strtol.m4: New file.
77085
77086         Module strtoul.
77087         * m4/strtoul.m4: New file.
77088
77089         Module memchr.
77090         * m4/memchr.m4: New file.
77091
77092         Module memcmp.
77093         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
77094         (jm_FUNC_MEMCMP): Invoke it.
77095
77096         Module memcpy.
77097         * m4/memcpy.m4: New file.
77098
77099         Module memmove.
77100         * m4/memmove.m4: New file.
77101
77102         Module memset.
77103         * m4/memset.m4: New file.
77104
77105         Module strcspn.
77106         * m4/strcspn.m4: New file.
77107
77108         Module strpbrk.
77109         * m4/strpbrk.m4: New file.
77110
77111         Module strstr.
77112         * m4/strstr.m4: New file.
77113
77114         Module strerror.
77115         * m4/strerror.m4: New file.
77116
77117         Module mktime.
77118         * m4/mktime.m4: Renamed from jm-mktime.m4.
77119         (gl_PREREQ_MKTIME): New macro.
77120         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
77121
77122         Module malloc.
77123         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
77124         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
77125         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
77126
77127         Module realloc.
77128         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
77129         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
77130         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
77131
77132         Module strftime.
77133         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
77134         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
77135         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
77136         gl_TM_GMTOFF.
77137         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
77138
77139         Module xalloc.
77140         * m4/xalloc.m4: New file.
77141
77142         Module alloca.
77143         * m4/alloca.m4: New file.
77144
77145         Module putenv.
77146         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
77147         (jm_FUNC_PUTENV): Invoke it.
77148
77149         Module setenv.
77150         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
77151         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
77152         when invoked twice.
77153         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
77154         gt_FUNC_SETENV.
77155
77156         Module memrchr.
77157         * m4/memrchr.m4: New file.
77158
77159         Module stpcpy.
77160         * m4/stpcpy.m4: New file.
77161
77162         Module strcase.
77163         * m4/strcase.m4: New file.
77164
77165         Module strdup.
77166         * m4/strdup.m4: New file.
77167
77168         Module strnlen.
77169         * m4/strnlen.m4: New file.
77170
77171         Module strndup.
77172         * m4/strndup.m4: New file.
77173
77174         Module xstrtod.
77175         * m4/xstrtod.m4: New file.
77176
77177         Module xstrtol.
77178         * m4/xstrtol.m4: New file.
77179
77180         Module getdate.
77181         * m4/getdate.m4: New file.
77182
77183         Module unlocked-io.
77184         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
77185         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
77186         * m4/jm-glibc-io.m4n: Remove file.
77187
77188         Module long-options.
77189         * m4/long-options.m4: New file.
77190
77191         Module md5.
77192         * m4/md5.m4: New file.
77193
77194         Module sha.
77195         * m4/sha.m4: New file.
77196
77197         Module getstr.
77198         * m4/getstr.m4: New file.
77199
77200         Module getline.
77201         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
77202         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
77203         <sys/types.h>, for size_t. Use the function name gnu_getline, not
77204         simply getline. Infoke gl_PREREQ_GETLINE.
77205
77206         Module obstack.
77207         * m4/obstack.m4: New file.
77208
77209         Module hash.
77210         * m4/hash.m4: New file.
77211
77212         Module readtokens.
77213         * m4/readtokens.m4: New file.
77214
77215         Module strverscmp.
77216         * m4/strverscmp.m4: New file.
77217
77218         Module stdbool.
77219         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
77220         OSF/1.
77221
77222         Module strtoll.
77223         * m4/strtoll.m4: New file.
77224
77225         Module strtoull.
77226         * m4/strtoull.m4: New file.
77227
77228         Module strtoimax.
77229         * m4/strtoimax.m4: New file.
77230
77231         Module strtoumax.
77232         * m4/strtoumax.m4: New file.
77233
77234         Module xstrtoimax.
77235         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
77236         jm_AC_PREREQ_XSTRTOIMAX.
77237         Moved the strtol prerequisites to strtol.m4.
77238         Moved the strtoll prerequisites to strtoll.m4.
77239         Moved the strtoimax prerequisites to strtoimax.m4.
77240
77241         Module xstrtoumax.
77242         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
77243         jm_AC_PREREQ_XSTRTOUMAX.
77244         Moved the strtoul prerequisites to strtoul.m4.
77245         Moved the strtoull prerequisites to strtoull.m4.
77246         Moved the strtoumax prerequisites to strtoumax.m4.
77247
77248         Module chown.
77249         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
77250         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
77251
77252         Module dup2.
77253         * m4/dup2.m4: New file.
77254
77255         Module ftruncate.
77256         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
77257         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
77258
77259         Module getgroups.
77260         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
77261         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
77262
77263         Module gettimeofday.
77264         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
77265         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
77266         gl_PREREQ_GETTIMEOFDAY.
77267
77268         Module mkdir.
77269         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
77270         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
77271
77272         Module mkstemp.
77273         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
77274         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
77275         jm_AC_TYPE_UINTMAX_T.
77276         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
77277
77278         Module stat.
77279         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
77280         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
77281
77282         Module lstat.
77283         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
77284         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
77285
77286         Module timespec.
77287         * m4/timespec.m4 (gl_TIMESPEC): New macro.
77288         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
77289         * m4/st_mtim.m4: Indentation.
77290
77291         Module nanosleep.
77292         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
77293         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
77294         gl_PREREQ_NANOSLEEP.
77295
77296         Module regex.
77297         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
77298         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
77299         (gl_REGEX): New macro.
77300
77301         Module rename.
77302         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
77303         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
77304
77305         Module rmdir.
77306         * m4/rmdir.m4: New file.
77307
77308         Module utime.
77309         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
77310         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
77311         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
77312
77313         Module dirname.
77314         * m4/dirname.m4: New file.
77315
77316         Module getopt.
77317         * m4/getopt.m4: New file.
77318
77319         Module unistd-safer.
77320         * m4/unistd-safer.m4: New file.
77321
77322         Module fnmatch.
77323         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
77324         declaration.
77325         (gl_PREREQ_FNMATCH_EXTRA): New macro.
77326         (gl_FUNC_FNMATCH_POSIX): New macro.
77327         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
77328         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
77329         simply fnmatch.
77330
77331         Module exclude.
77332         * m4/exclude.m4: New file.
77333
77334         Module human.
77335         * m4/human.m4: New file.
77336
77337         Module acl.
77338         * m4/acl.m4: Nop.
77339
77340         Module backupfile.
77341         * m4/backupfile.m4: New file.
77342         * m4/d-ino.m4: Indentation.
77343
77344         Module fsusage.
77345         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
77346         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
77347         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
77348
77349         Module dirfd.
77350         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
77351         requirements.
77352
77353         Module euidaccess.
77354         * m4/euidaccess.m4: New file.
77355
77356         Module file-type.
77357         * m4/file-type.m4: New file.
77358
77359         Module fileblocks.
77360         * m4/fileblocks.m4: New file.
77361
77362         Module filemode.
77363         * m4/filemode.m4: New file.
77364
77365         Module isdir.
77366         * m4/isdir.m4: New file.
77367
77368         Module lchown.
77369         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
77370         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
77371
77372         Module makepath.
77373         * m4/makepath.m4: New file.
77374
77375         Module modechange.
77376         * m4/modechange.m4: New file.
77377
77378         Module mountlist.
77379         * m4/mountlist.m4: New file.
77380         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
77381         Indentation.
77382
77383         Module path-concat.
77384         * m4/path-concat.m4: New file.
77385
77386         Module pathmax.
77387         * m4/pathmax.m4: New file.
77388
77389         Module same.
77390         * m4/same.m4: New file.
77391
77392         Module save-cwd.
77393         * m4/save-cwd.m4: New file.
77394
77395         Module savedir.
77396         * m4/savedir.m4: New file.
77397
77398         Module xgetcwd.
77399         * m4/xgetcwd.m4: New file.
77400         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
77401
77402         Module xreadlink.
77403         * m4/xreadlink.m4: New file.
77404
77405         Module safe-read.
77406         * m4/safe-read.m4: New file.
77407
77408         Module safe-write.
77409         * m4/safe-write.m4: New file.
77410
77411         Module closeout.
77412         * m4/closeout.m4: New file.
77413
77414         Module stdio-safer.
77415         * m4/stdio-safer.m4: New file.
77416
77417         Module getpass.
77418         * m4/getpass.m4: New file.
77419
77420         Module getugroups.
77421         * m4/getugroups.m4: New file.
77422
77423         Module group-member.
77424         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
77425         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
77426
77427         Module idcache.
77428         * m4/idcache.m4: New file.
77429
77430         Module userspec.
77431         * m4/userspec.m4: New file.
77432
77433         Module gettime.
77434         * m4/clock_time.m4: New file.
77435         * m4/gettime.m4: New file.
77436
77437         Module settime.
77438         * m4/settime.m4: New file.
77439
77440         Module posixtm.
77441         * m4/posixtm.m4: New file.
77442
77443         Module gethostname.
77444         * m4/gethostname.m4: New file.
77445
77446         Module canon-host.
77447         * m4/canon-host.m4: New file.
77448
77449         Module gettext.
77450         * m4/codeset.m4: New file, from gettext-0.11.5.
77451         * m4/gettext.m4: New file, from gettext-0.11.5.
77452         * m4/glibc21.m4: New file, from gettext-0.11.5.
77453         * m4/iconv.m4: New file, from gettext-0.11.5.
77454         * m4/intdiv0.m4: New file, from gettext-0.11.5.
77455         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
77456         * m4/inttypes.m4: New file, from gettext-0.11.5.
77457         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
77458         * m4/isc-posix.m4: New file, from gettext-0.11.5.
77459         * m4/lcmessage.m4: New file, from gettext-0.11.5.
77460         * m4/lib-ld.m4: New file, from gettext-0.11.5.
77461         * m4/lib-link.m4: New file, from gettext-0.11.5.
77462         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
77463         * m4/progtest.m4: New file, from gettext-0.11.5.
77464         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
77465         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
77466         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
77467
77468         Module localcharset.
77469         * m4/localcharset.m4: New file.
77470
77471         Module hard-locale.
77472         * m4/hard-locale.m4: New file.
77473
77474         Module mbswidth.
77475         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
77476         onceonly macros.
77477         * m4/mbrtowc.m4: Add comment.
77478
77479         Module memcasecmp.
77480         * m4/memcasecmp.m4: New file.
77481
77482         Module memcoll.
77483         * m4/memcoll.m4: New file.
77484
77485         Module unicodeio.
77486         * m4/unicodeio.m4: New file.
77487
77488         Module rpmatch.
77489         * m4/rpmatch.m4: New file.
77490
77491         Module yesno.
77492         * m4/yesno.m4: New file.
77493
77494         Module exitfail.
77495         * m4/exitfail.m4: New file.
77496
77497         Module c-stack.
77498         * m4/c-stack.m4 (gl_C_STACK): New macro.
77499         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
77500
77501         Module error.
77502         * m4/error.m4 (gl_ERROR): New macro.
77503         (jm_PREREQ_ERROR): Use onceonly macros.
77504
77505         Module fatal.
77506         * m4/fatal.m4: New file.
77507
77508         Module getloadavg.
77509         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
77510         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
77511
77512         Module getpagesize.
77513         * m4/getpagesize.m4: New file.
77514
77515         Module getusershell.
77516         * m4/getusershell.m4: New file.
77517
77518         Module physmem.
77519         * m4/physmem.m4: New file.
77520
77521         Module posixver.
77522         * m4/posixver.m4: New file.
77523
77524         Module quotearg.
77525         * m4/quotearg.m4: New file.
77526
77527         Module quote.
77528         * m4/quote.m4: New file.
77529
77530         Module readutmp.
77531         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
77532
77533         Module sig2str.
77534         * m4/sig2str.m4: New file.
77535
77536         Other.
77537         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
77538         ulonglong.m4.
77539         * m4/intmax_t.m4: New file.
77540         * m4/d-type.m4: Indentation.
77541         * m4/jm-macros.m4: Update.
77542         * m4/prereq.m4 (jm_PREREQ): Update.
77543         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
77544         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
77545         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
77546         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
77547         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
77548         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
77549         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
77550         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
77551         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
77552         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
77553         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
77554         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
77555         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
77556         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
77557         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
77558         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
77559         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
77560         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
77561         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
77562
77563 2002-12-24  Bruno Haible  <bruno@clisp.org>
77564
77565         * MODULES.txt: Update according to m4/ changes.
77566
77567         Module gettext.
77568         * config.rpath: New file, from gettext-0.11.5.
77569
77570         * modules/*: New module descriptions.
77571         * gnulib-tool: New file.
77572         * MODULES.html.sh: New file.
77573
77574 2002-12-21  Karl Berry  <karl@gnu.org>
77575
77576         * doc/fdl.texi: update to version 1.2.
77577
77578 2002-12-19  Karl Berry  <karl@gnu.org>
77579
77580         * config/config.guess: update from prep.
77581
77582 2002-12-18  Bruno Haible  <bruno@clisp.org>
77583
77584         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
77585         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
77586
77587 2002-12-17  Bruno Haible  <bruno@clisp.org>
77588
77589         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
77590         stdlib.h, string.h.
77591
77592 2002-12-17  Bruno Haible  <bruno@clisp.org>
77593
77594         * lib/canon-host.c (strdup): Remove unused declaration.
77595
77596         * lib/fsusage.c: Include full_read.h.
77597         (get_fs_usage): Use full_read instead of safe_read.
77598
77599         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
77600
77601 2002-12-12  Karl Berry  <karl@gnu.org>
77602
77603         * config/config.guess: update from prep.
77604
77605 2002-12-11  Bruno Haible  <bruno@clisp.org>
77606
77607         * m4/setenv.m4: New file, from gettext-0.11.5.
77608
77609 2002-12-11  Bruno Haible  <bruno@clisp.org>
77610
77611         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
77612         not unsetenv().
77613         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
77614         modifications:
77615
77616         2002-12-11  Bruno Haible  <bruno@clisp.org>
77617
77618                 * setenv.c (alloca): Fall back to malloc.
77619                 (freea): New macro.
77620                 (setenv): Use freea() to free memory allocated with alloca().
77621
77622         2002-11-13  Bruno Haible  <bruno@clisp.org>
77623
77624                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
77625                 function declarations.
77626                 * unsetenv.c (unsetenv): Likewise.
77627
77628         2002-03-04  Bruno Haible  <bruno@clisp.org>
77629
77630                 Portability to AIX 4.3.3.
77631                 * unsetenv.c: New file, extracted from setenv.c.
77632                 * setenv.c: Move the unsetenv() function to unsetenv.c.
77633
77634         2001-12-20  Bruno Haible  <bruno@clisp.org>
77635
77636                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
77637                 use malloc instead. For SunOS 4.
77638
77639         2001-12-11  Bruno Haible  <bruno@clisp.org>
77640
77641                 * setenv.c: Declare alloca.
77642                 (compar_fn_t): New typedef.
77643                 (KNOWN_VALUE, STORE_VALUE): Use it.
77644
77645         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
77646         setenv.h.
77647
77648 2002-12-10  Paul Eggert  <eggert@twinsun.com>
77649
77650         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
77651         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
77652         Choose values that are less likely to collide with system fnmatch
77653         options.
77654         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
77655         defined (e.g., a pure POSIX system).
77656         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
77657         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
77658
77659 2002-12-06  Paul Eggert  <eggert@twinsun.com>
77660
77661         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
77662         a pain in practice to deal with generated m4 files.  This change
77663         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
77664
77665         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
77666         and jm-glibc-io.m4, as they are no longer a special case.
77667         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
77668         kludge and the auto-generation stuff.  Check only whether the
77669         functions are declared, not whether they exist, since older hosts
77670         that don't declare the functions can't use the optimization anyway.
77671
77672 2002-12-06  Jim Meyering  <jim@meyering.net>
77673
77674         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
77675
77676         Merge in changes from libc's misc/error.c, in preparation
77677         for the merge of gnulib's changes back into libc.
77678
77679         * lib/error.c (_): Define only if not already defined.
77680         Move definition to follow all #include directives.
77681         Include unlocked-io.h only if !_LIBC.
77682         [_LIBC]: Include <libio/libioP.h>.
77683         [USE_IN_LIBIO]: Include <libio/iolibio.h>
77684         (fflush): Tweak definition to use INTUSE.
77685         (putc): Define.
77686
77687 2002-12-05  Paul Eggert  <eggert@twinsun.com>
77688
77689         * lib/alloca.c [defined emacs]: Include "lisp.h".
77690         (xalloc_die) [defined emacs]: New macro.
77691         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
77692         [! defined emacs]: Include <xalloc.h>.
77693         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
77694         (pointer): Typedef to POINTER_TYPE *.
77695         (malloc): Remove decl; we now always use xmalloc.
77696         (alloca): Use old-style definition, since Emacs needs this.
77697         Check for arithmetic overflow when computing combined size.
77698
77699 2002-12-04  Paul Eggert  <eggert@twinsun.com>
77700
77701         Do not generate unlocked-io.h automatically, since it's easier to
77702         maintain it by hand.
77703
77704         * lib/unlocked-io.h: New file, from GNU diffutils,
77705         but with proper copyright notice and attribution.
77706         * lib/gen-uio: Remove.
77707         * lib/Makefile.am: Add copyright notice.
77708         (libfetish_a_SOURCES): Add unlocked-io.h.
77709         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
77710         (DISTCLEANFILES, io_functions): Remove macros.
77711         (EXTRA_DIST): Remove gen_uio.
77712         (unlocked-io.h): Remove rule.
77713
77714 2002-12-04  Jim Meyering  <jim@meyering.net>
77715
77716         Reflect the fact that stat.c and lstat.c are no longer generated.
77717         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
77718         (DISTCLEANFILES): Likewise.
77719         (EXTRA_DIST): Likewise.
77720         (all_local): Don't depend on stat.c or lstat.c.
77721         (stat.c, lstat.c): Remove rules.
77722         (EXTRA_DIST): Remove xstat.in.
77723
77724         * lib/xstat.in: Remove file.  Contents moved into stat.c.
77725         * lib/stat.c: New file.  Contents mostly from xstat.in.
77726         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
77727         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
77728
77729         * lib/safe-read.c: Rework so that it may serve to define safe_write,
77730         too.
77731         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
77732
77733 2002-12-03  Jim Meyering  <jim@meyering.net>
77734
77735         * lib/safe-read.c, safe-write.c: Change variable names and comments,
77736         but not semantics, to minimize the differences between these two files.
77737         (safe_read): Change comment to mention SAFE_READ_ERROR.
77738
77739         * lib/safe-read.c (IS_EINTR): Define.
77740         (safe_read): Use IS_EINTR in place of in-function cpp directives.
77741
77742 2002-12-02  Jim Meyering  <jim@meyering.net>
77743
77744         * lib/safe-read.c (EINTR): Define.
77745         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
77746         (INT_MAX): Provide fallback.
77747         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
77748
77749         * lib/safe-read.h (SAFE_READ_ERROR): Define.
77750
77751 2002-12-02  Bruno Haible  <bruno@clisp.org>
77752
77753         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
77754         Define, taken from safe-read.c.
77755         (INT_MAX): Provide fallback.
77756         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
77757         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
77758
77759         * lib/safe-read.c (EINTR): Remove definition.
77760         (safe_read): Don't use EINTR if it is absent.
77761
77762 2002-12-01  Jim Meyering  <jim@meyering.net>
77763
77764         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
77765         zero.
77766         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
77767
77768 2002-11-27  Paul Eggert  <eggert@twinsun.com>
77769
77770         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
77771         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
77772         with `if (! (value < limit)) abort ();', for readability.
77773
77774 2002-11-26  Karl Berry  <karl@gnu.org>
77775
77776         * lib/strdup.c: copy from libc again, with jim's ok.
77777         * lib/.cppi-disable: re-add strdup.c
77778
77779 2002-11-25  Karl Berry  <karl@gnu.org>
77780
77781         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
77782         instead of "strtol.c".
77783
77784 2002-11-25  Karl Berry  <karl@gnu.org>
77785
77786         * config/install-sh: update from automake for variable quoting, $0 in
77787         error msgs, etc.
77788
77789         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
77790         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
77791         entry.
77792
77793 2002-11-25  Jim Meyering  <jim@meyering.net>
77794
77795         * lib/mktime.c: Sync from libc, now that it has the latest fix.
77796
77797 2002-11-24  Karl Berry  <karl@gnu.org>
77798
77799         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
77800         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
77801
77802 2002-11-24  Jim Meyering  <jim@meyering.net>
77803
77804         Update from coreutils:
77805
77806         * lib/mktime.c: Merge in changes from libc.
77807
77808         Avoid a link-time failure on some Linux systems.
77809         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
77810         (otherwise).
77811         (__mon_yday): Declare with the STATIC attribute.
77812         (__mktime_internal): Likewise.
77813         Based on a report from Greg Schafer.
77814
77815 2002-11-23  Jim Meyering  <jim@meyering.net>
77816
77817         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
77818         Use `unsigned', not `int', as type of index.
77819
77820         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
77821
77822         * lib/fsusage.c: Remove unneeded parentheses around operands of
77823         `defined'.
77824
77825 2002-11-22  Paul Eggert  <eggert@twinsun.com>
77826
77827         * lib/quotearg.h: Allow multiple inclusion by surrounding with
77828         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
77829         so that we can be included first.
77830         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
77831         * lib/quotearg.c: Include quotearg.h immediately after config.h.
77832         No need to include stddef.h or sys/types.h any more.
77833         Surround local include files with "", not "<>".
77834         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
77835         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
77836         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
77837         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
77838         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
77839         (ISPRINT): Remove; no longer needed now that we assume C89.
77840
77841         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
77842         Preserve errno.
77843
77844         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
77845         quotearg_char): Use SIZE_MAX rather than
77846         (size_t) -1 when we are talking about "infinity".
77847
77848         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
77849
77850 2002-11-22  Paul Eggert  <eggert@twinsun.com>
77851
77852         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
77853         hint that one should use `if (! x) abort ();' rather than `assert
77854         (x);', and anyway it's one less thing to worry about configuring.
77855         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
77856         hash_rehash, hash_insert): Use abort rather than assert.
77857
77858 2002-11-22  Bruno Haible  <bruno@clisp.org>
77859
77860         * lib/safe-read.h: Assume C89. Add comments.
77861         (safe_read): Change return type to size_t.
77862         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
77863         byte counts > SSIZE_MAX correctly.
77864         * lib/safe-write.h: New file.
77865         * lib/safe-write.c: New file.
77866         * lib/full-read.h: New file.
77867         * lib/full-read.c: New file.
77868         * lib/full-write.h: Assume C89. Add comments.
77869         * lib/full-write.c: Include safe-write.h.
77870         (full_write): Rewritten to use safe_write.
77871         Suggested by Jim Meyering and Paul Eggert.
77872
77873 2002-11-21  Jim Meyering  <jim@meyering.net>
77874
77875         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
77876
77877         Merge in changes from the coreutils.
77878
77879         2002-09-25  Paul Eggert  <eggert@twinsun.com>
77880         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
77881         <stdint.h>.
77882         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
77883         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
77884         int.  Work more efficiently if X is the same width as uintmax_t.
77885         Do not compare X to -1, to avoid bogus compiler warning.
77886         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
77887         Don't assume that f_frsize and f_bsize are the same type.
77888
77889         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
77890         warning on FreeBSD.
77891
77892         * lib/makepath.c (make_path): Restore umask *before* creating the final
77893         component.
77894         (make_path): Minor reformatting.
77895
77896         * lib/xmalloc.c: Adjust to work with new autoconf macros,
77897         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
77898         HAVE_MALLOC/HAVE_REALLOC.
77899
77900         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
77901         dummy ones.  At least on GNU/Linux systems, `auto' means something
77902         else.
77903         From Michael Stone.
77904
77905 2002-11-21  Bruno Haible  <bruno@clisp.org>
77906
77907         Remove case insensitive option matching.
77908         * lib/argmatch.h (argcasematch): Remove declaration.
77909         (ARGCASEMATCH): Remove macro.
77910         (__xargmatch_internal): Remove case_sensitive argument.
77911         (XARGMATCH): Update.
77912         (XARGCASEMATCH): Remove macro.
77913         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
77914         case_sensitive argument.
77915         (argcasematch): Remove function.
77916         (__xargmatch_internal): Remove case_sensitive argument.
77917         (main): Use XARGMATCH instead of XARGCASEMATCH.
77918
77919         * lib/xmalloc.c: Change compile-time error message. Add comment about
77920         required autoconf version.
77921
77922 2002-11-20  Paul Eggert  <eggert@twinsun.com>
77923
77924         Merge argmatch cleanups from Bison.  Assume C89.
77925
77926         * lib/argmatch.c: Include config.h here, not in argmatch.h.
77927         Include stdlib.h, for EXIT_FAILURE.
77928         Always include <string.h>, since we assume C89.
77929         (EXIT_FAILURE): Remove pre-C89 bug workaround.
77930         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
77931         Include <stddef.h> instead, since it's all we need for size_t.
77932         (PARAMS): Remove.  All uses removed.
77933         (ARRAY_CARDINALITY): Do not bother to #undef.
77934         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
77935         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
77936         Remove unnecessary parentheses.
77937         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
77938         Insert necessary parentheses.
77939         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
77940         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
77941
77942 2002-11-19  Bruno Haible  <bruno@clisp.org>
77943
77944         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
77945         * lib/mbswidth.h: Include <stddef.h>, for size_t.
77946
77947         * lib/mbswidth.h (PARAMS): Remove macro.
77948         (mbswidth, mbsnwidth): Use ANSI C function declarations.
77949         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
77950
77951         * lib/gcd.h (PARAMS): Remove macro.
77952         (gcd): Use ANSI C function declarations.
77953         * lib/gcd.c (gcd): Likewise.
77954
77955 2002-11-15  Bruno Haible  <bruno@clisp.org>
77956
77957         * lib/strcspn.c: Include <stddef.h>.
77958         (strcspn): Use ANSI C function declaration. Change return type to
77959         size_t. Use NULL.
77960         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
77961         (strpbrk): Use NULL.
77962         * lib/strpbrk.h (PARAMS): Remove macro.
77963         (strpbrk): Use ANSI C function declaration.
77964         * lib/strstr.c: Don't include <sys/types.h>.
77965         * lib/strstr.h (PARAMS): Remove macro.
77966         (strstr): Use ANSI C function declarations.
77967
77968 2002-11-14  Karl Berry  <karl@gnu.org>
77969
77970         * config/mkinstalldirs: `do' on separate line, instead of
77971         `for var; do'.
77972
77973 2002-11-06  Bruno Haible  <bruno@clisp.org>
77974
77975         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
77976         * lib/gcd.c (gcd): Likewise.
77977
77978 2002-11-05  Bruno Haible  <bruno@clisp.org>
77979
77980         * lib/gcd.h: New file, from gettext-0.11.5.
77981         * lib/gcd.c: New file, from gettext-0.11.5.
77982
77983 2002-11-05  Bruno Haible  <bruno@clisp.org>
77984
77985         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
77986         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
77987         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
77988         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
77989
77990         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
77991         <libintl.h>.
77992         * lib/makepath.c: Include gettext.h instead of <locale.h> and
77993         <libintl.h>.
77994
77995         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
77996         * lib/human.c: Include gettext.h instead of <libintl.h>.
77997         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
77998         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
77999         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
78000         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
78001         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
78002         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
78003         (textdomain): Remove definition.
78004         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
78005
78006         * lib/long-options.c: Remove include of <libintl.h> and definition of
78007         _.
78008         * lib/same.c: Remove include of <libintl.h> and definition of _.
78009
78010 2002-11-04  Owen Taylor  <otaylor@redhat.com>
78011
78012         * lib/config.charset: A few additions for Solaris.
78013
78014 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
78015
78016         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
78017         * lib/localcharset.c (locale_charset): Declare as extern "C".
78018
78019 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
78020
78021         * lib/config.charset: msdos in uk_UA uses CP1125.
78022
78023 2002-11-04  Bruno Haible  <bruno@clisp.org>
78024
78025         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
78026         * lib/strcase.h: New file, from GNU gettext-0.11.5.
78027         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
78028         * lib/strstr.h: New file, from GNU gettext-0.11.5.
78029         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
78030
78031 2002-11-04  Bruno Haible  <bruno@clisp.org>
78032
78033         * lib/localcharset.c (locale_charset): Don't return an empty string.
78034
78035 2002-11-04  Bruno Haible  <bruno@clisp.org>
78036
78037         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
78038         aliases.
78039
78040 2002-11-04  Bruno Haible  <bruno@clisp.org>
78041
78042         * lib/config.charset: Update for newest glibc. Add canonical names
78043         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
78044
78045 2002-11-04  Bruno Haible  <bruno@clisp.org>
78046
78047         * lib/config.charset: Add support for NetBSD.
78048
78049 2002-11-04  Bruno Haible  <bruno@clisp.org>
78050
78051         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
78052
78053 2002-11-01  Bruno Haible  <bruno@clisp.org>
78054
78055         * configure.in: Add AC_CONFIG_AUX_DIR call.
78056         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
78057         test/Makefile.
78058         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
78059
78060 2002-09-28  Karl Berry  <karl@gnu.org>
78061
78062         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
78063         installed automake until the next release, since changes have been
78064         made.
78065
78066 2002-09-25  Karl Berry  <karl@gnu.org>
78067
78068         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
78069         * lib/getopt*: copy from libc/posix.
78070         * lib/gettext.h: copy from gettext.
78071         * lib/.cppi-disable: add strdup.c, gettext.h.
78072
78073 2002-09-25  Karl Berry  <karl@gnu.org>
78074
78075         * config/srclist.txt: enable gettext.h check.
78076         * config/config.{guess,sub}: update from prep.
78077         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
78078                 from automake 1.6.3.
78079         See srclist*.
78080
78081 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
78082
78083         * regex.c (PATFETCH): Remove the translating fetch.
78084         (PATFETCH_RAW): Rename to PATFETCH.
78085         (set_image_of_range): New fun.
78086         (SET_RANGE_TABLE_WORK_AREA): Use it.
78087         (regex_compile): Don't translate the pattern chars so eagerly.
78088         Only do it when inserting an `exactn' bytecode or when handling
78089         a char-range.
78090         (mutually_exclusive_p): Avoid empty statement.
78091
78092 2002-07-06  Jim Meyering  <meyering@lucent.com>
78093
78094         * m4/README: Don't mention Makefile.am.in.
78095         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
78096
78097 2002-07-01  Jim Meyering  <meyering@lucent.com>
78098
78099         * lib/c-stack.c: Include sys/time.h.
78100         From Volker Borchert.
78101
78102 2002-06-26  Paul Eggert  <eggert@twinsun.com>
78103
78104         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
78105
78106 2002-06-26  Paul Eggert  <eggert@twinsun.com>
78107
78108         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
78109         New macro.  Use it uniformly instead of
78110         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
78111         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
78112         reported by Vin Shelton.
78113
78114 2002-06-22  Paul Eggert  <eggert@twinsun.com>
78115
78116         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
78117         Do not assume SA_SIGINFO behavior.
78118         Bug reported by Jim Meyering on NetBSD 1.5.2.
78119
78120 2002-06-22  Jim Meyering  <meyering@lucent.com>
78121
78122         * m4/c-stack.m4: New file, from diffutils-2.8.2.
78123         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
78124
78125         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
78126         now that configure.ac uses AC_GNU_SOURCE.
78127         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
78128         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
78129
78130         Update to latest tools.  Suggestions from Paul Eggert.
78131         * m4/stdbool.m4: New file, from diffutils-2.8.2.
78132         * m4/gnu-source.m4: Update from diffutils-2.8.2.
78133         * m4/fnmatch.m4: Likewise.
78134         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
78135         to AC_HEADER_STDBOOL
78136
78137 2002-06-22  Jim Meyering  <meyering@lucent.com>
78138
78139         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
78140         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
78141
78142 2002-06-22  Jim Meyering  <meyering@lucent.com>
78143
78144         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
78145
78146         * lib/exitfail.c, exitfail.h: Likewise.
78147         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
78148
78149         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
78150         of fnmatch.h.
78151         (EXTRA_DIST): Add fnmatch_loop.c.
78152         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
78153
78154         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
78155         * lib/fnmatch.c: Update from diffutils-2.8.2.
78156         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
78157         * lib/fnmatch.h: Remove file.
78158
78159 2002-06-21  Jim Meyering  <meyering@lucent.com>
78160
78161         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
78162         * m4/mbrtowc.m4: Likewise.
78163
78164         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
78165         * m4/mbswidth.m4: Reflect name change:
78166         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
78167         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
78168
78169         * m4/lib-link.m4: Update from gettext-0.11.2.
78170         * m4/gettext.m4: Likewise.
78171
78172         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
78173         From Alfred M. Szmidt.
78174
78175 2002-06-18  Paul Eggert  <eggert@twinsun.com>
78176
78177         * lib/file-type.h: Report an error if neither S_ISREG nor
78178         S_IFREG is defined, instead of using a test specific to glibc
78179         2.2.  This should be safe, since POSIX requires S_ISREG and
78180         Unix Version 7 had S_IFREG.  We don't need to check for
78181         <sys/types.h> since we don't use any symbols that it defines.
78182
78183 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
78184
78185         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
78186         $@-t, so that each temporary file name is unique and valid in the first
78187         8 characters, for operation under DOS.
78188
78189 2002-06-15  Paul Eggert  <eggert@twinsun.com>
78190
78191         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
78192
78193 2002-06-15  Jim Meyering  <meyering@lucent.com>
78194
78195         Work even with DJGPP 2.03, which lacks support for symlinks.
78196         From Richard Dawe.
78197         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
78198         is defined.
78199         * lib/lchown.c (S_ISLNK): Likewise.
78200
78201 2002-06-15  Jim Meyering  <meyering@lucent.com>
78202
78203         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
78204         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
78205         have been included before this file.
78206
78207 2002-06-14  Jim Meyering  <meyering@lucent.com>
78208
78209         * lib/file-type.h: Use the version from diffutils-2.8.2.
78210         * lib/file-type.c: Likewise.
78211
78212 2002-06-07  Jim Meyering  <meyering@lucent.com>
78213
78214         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
78215         They're needed at least for NetBSD 1.5.2.
78216         ($statxfs_includes): Include those same headers.
78217         ($statxfs_includes): Include sys/vfs.h if available.
78218         ($statxfs_includes): Likewise for sys/statvfs.h.
78219         Check for the following members in both structs statfs and statvfs:
78220         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
78221
78222 2002-06-01  Jim Meyering  <meyering@lucent.com>
78223
78224         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
78225         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
78226
78227 2002-05-28  Jim Meyering  <meyering@lucent.com>
78228
78229         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
78230         Reported by Volker Borchert.
78231
78232 2002-05-27  Jim Meyering  <meyering@lucent.com>
78233
78234         Fix a problem seen only on nonconforming systems whereby ls.c's
78235         use of localtime, and then of gettimeofday would cause trouble:
78236         the localtime call used to initialize rpl_gettimeofday's save
78237         mechanism would clobber ls's current local time information so
78238         that in any long listing the first file would always be listed
78239         with date 1970-01-01.  Analysis by Volker Borchert.
78240
78241         * lib/gettimeofday.c (localtime): Undefine.
78242         (rpl_localtime): New function.
78243
78244 2002-05-27  Jim Meyering  <meyering@lucent.com>
78245
78246         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
78247         localtime.
78248
78249         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
78250         use the replacement function; it wouldn't resolve at link time.
78251         Reported by Volker Borchert.
78252
78253 2002-05-22  Jim Meyering  <meyering@lucent.com>
78254
78255         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
78256         file-type.h.
78257         * lib/file-type.h: New file.
78258         * lib/file-type.c (file_type): New file/function.  Extracted from
78259         diffutils.
78260
78261 2002-04-30  Jim Meyering  <meyering@lucent.com>
78262
78263         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
78264
78265 2002-04-29  Paul Eggert  <eggert@twinsun.com>
78266
78267         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
78268
78269 2002-04-29  Paul Eggert  <eggert@twinsun.com>
78270
78271         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
78272         Do not check for alloca.h (no longer used) or stdbool.h (was never
78273         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
78274
78275 2002-04-29  Paul Eggert  <eggert@twinsun.com>
78276
78277         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
78278
78279 2002-04-29  Jim Meyering  <meyering@lucent.com>
78280
78281         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
78282         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
78283         Use AC_FUNC_STRNLEN here instead.
78284
78285         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
78286         With autoconf-2.53a, it's part of AC_PROG_CC.
78287
78288 2002-04-28  Paul Eggert  <eggert@twinsun.com>
78289
78290         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
78291         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
78292
78293 2002-04-28  Paul Eggert  <eggert@twinsun.com>
78294
78295         * lib/sig2str.h, lib/sig2str.c: New files.
78296         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
78297
78298 2002-04-28  Paul Eggert  <eggert@twinsun.com>
78299
78300         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
78301         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
78302         of 127, since 64 is the largest conceivable number for ancient
78303         nonstandard hosts.
78304         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
78305
78306 2002-04-28  Jim Meyering  <meyering@lucent.com>
78307
78308         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
78309
78310 2002-04-24  Jim Meyering  <meyering@lucent.com>
78311
78312         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
78313         (jm_PREREQ): Use it.
78314
78315         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
78316         mach/mach.h fcntl.h.
78317         Check for this function: setlocale.
78318
78319 2002-04-24  Jim Meyering  <meyering@lucent.com>
78320
78321         * lib/gettext.h: New file, from Gettext.
78322         * lib/Makefile.am (INCLUDES): Remove -I../intl.
78323         (libfetish_a_SOURCES): Add gettext.h.
78324
78325 2002-04-16  Jim Meyering  <meyering@lucent.com>
78326
78327         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
78328         ut_pid, ut_id, ut_exit.
78329
78330 2002-04-16  Jim Meyering  <meyering@lucent.com>
78331
78332         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
78333         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
78334         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
78335
78336 2002-04-12  Jim Meyering  <meyering@lucent.com>
78337
78338         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
78339         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
78340         existence of the getmntinfo function.  Needed for Darwin 5.3.
78341
78342         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
78343         This is necessary at least on Darwin 5.3.
78344
78345         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
78346         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
78347         strnlen.o in the library, and that makes some versions of ranlib
78348         object.
78349
78350 2002-04-12  Jim Meyering  <meyering@lucent.com>
78351
78352         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
78353
78354 2002-04-09  Jim Meyering  <meyering@lucent.com>
78355
78356         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
78357         to be more precise.  Rather than saying we're checking whether the
78358         function `works', say what we're testing.
78359         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
78360         Reported by Bruno Haible.
78361
78362 2002-03-10  Jim Meyering  <meyering@lucent.com>
78363
78364         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
78365         Suggestion from Santiago Vila.
78366
78367 2002-03-08  Jim Meyering  <meyering@lucent.com>
78368
78369         * lib/rename.c: Mention that this wrapper is needed also on
78370         mips-dec-ultrix4.4 systems.
78371
78372 2002-03-02  Jim Meyering  <meyering@lucent.com>
78373
78374         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
78375         not HAVE_CLOCK_SETTIME.
78376
78377 2002-02-27  Paul Eggert  <eggert@twinsun.com>
78378
78379         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
78380         Check for clock_settime.
78381
78382 2002-02-27  Paul Eggert  <eggert@twinsun.com>
78383
78384         * lib/nanosleep.h: Rename to....
78385         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
78386
78387         * lib/gettime.c: New file.
78388         * lib/settime.c: New file.
78389         * lib/stime.c: Remove.
78390
78391         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
78392         timespec.h.  Remove nanosleep.h.
78393
78394 2002-02-25  Paul Eggert  <eggert@twinsun.com>
78395
78396         * m4/acl.m4: New file.
78397         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
78398         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
78399
78400 2002-02-25  Paul Eggert  <eggert@twinsun.com>
78401
78402         * lib/acl.c, lib/acl.h: New files.
78403         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
78404
78405 2002-02-24  Jim Meyering  <meyering@lucent.com>
78406
78407         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
78408         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
78409         cause trouble.  Reported by Nelson Beebe.
78410
78411 2002-02-23  Paul Eggert  <eggert@twinsun.com>
78412
78413         * lib/path-concat.c (xpath_concat): Reorder code to pacify
78414         compilers that don't know that xalloc_die never returns.
78415
78416 2002-02-20  Jim Meyering  <meyering@lucent.com>
78417
78418         * lib/getdate.c: Regenerate using bison-1.33.
78419
78420 2002-02-17  Jim Meyering  <meyering@lucent.com>
78421
78422         * config/config.guess (main): Don't use `head -1'; it's no longer
78423         portable. Use `sed 1q' instead.
78424
78425 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
78426
78427         * m4/codeset.m4: Upgrade to gettext-0.11.
78428         * m4/gettext.m4: Upgrade to gettext-0.11.
78429         * m4/glibc21.m4: Upgrade to gettext-0.11.
78430         * m4/iconv.m4: Upgrade to gettext-0.11.
78431         * m4/isc-posix.m4: Upgrade to gettext-0.11.
78432         * m4/lcmessage.m4: Upgrade to gettext-0.11.
78433         * m4/lib-ld.m4: New file, from gettext-0.11.
78434         * m4/lib-link.m4: New file, from gettext-0.11.
78435         * m4/lib-prefix.m4: New file, from gettext-0.11.
78436         * m4/progtest.m4: Upgrade to gettext-0.11.
78437
78438 2002-02-15  Paul Eggert  <eggert@twinsun.com>
78439
78440         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
78441         (jm_PREREQ): Use it.
78442
78443 2002-02-15  Paul Eggert  <eggert@twinsun.com>
78444
78445         * lib/posixver.c, lib/posixver.h: New files.
78446         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
78447
78448 2002-02-02  Paul Eggert  <eggert@twinsun.com>
78449             Bruno Haible  <bruno@clisp.org>
78450
78451         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
78452         (fwrite_success_callback): New declaration.
78453         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
78454         print_unicode_char. Call failure callback instead of error.
78455         (fwrite_success_callback): New function.
78456         (exit_failure_callback): New function.
78457         (fallback_failure_callback): New function.
78458         (print_unicode_char): Call unicode_to_mb.
78459
78460 2002-01-26  Jim Meyering  <meyering@lucent.com>
78461
78462         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
78463         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
78464
78465 2002-01-26  Jim Meyering  <meyering@lucent.com>
78466
78467         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
78468
78469 2002-01-22  Paul Eggert  <eggert@twinsun.com>
78470
78471         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
78472
78473 2002-01-22  Jim Meyering  <meyering@lucent.com>
78474
78475         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
78476         Otherwise, some versions of automake would omit the rule that makes
78477         Makefile from Makefile.in.
78478
78479 2002-01-21  Paul Eggert  <eggert@twinsun.com>
78480
78481         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
78482         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
78483         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
78484         (memcoll): Set errno to zero if there is no error.
78485
78486         * lib/quotearg.c (quotearg_buffer_restyled):
78487         Fix bug with quoting buffers containing NUL when backslashing escapes.
78488         This bug was exposed by the other changes in this patch.
78489         (quotearg_n_options): New arg ARGSIZE.
78490         All callers changed.
78491         (quoting_options_from_style): New function.
78492         (quotearg_n_style): Use it.
78493         (quotearg_n_style_mem): New function.
78494
78495         * lib/quotearg.h (quotearg_n_style_mem): New function.
78496
78497 2002-01-19  Jim Meyering  <meyering@lucent.com>
78498
78499         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
78500         Remove useless quotes: DF_PROG="df".
78501         * m4/strnlen.m4: New file.
78502
78503 2002-01-16  Paul Eggert  <eggert@twinsun.com>
78504
78505         * lib/backupfile.c (ISDIGIT): Comment fix.
78506         * lib/getdate.y (ISDIGIT): Likewise.
78507         * lib/posixtm.c (ISDIGIT, year): Likewise.
78508         * lib/strverscmp.c (ISDIGIT): Likewise.
78509         * lib/userspec.c (ISDIGIT): Likewise.
78510
78511 2002-01-16  Jim Meyering  <meyering@lucent.com>
78512
78513         * lib/getdate.y: Add three semicolons, each just before a closing
78514         brace. Bison (as of version 1.31) no longer papers over that mistake.
78515
78516 2002-01-05  Jim Meyering  <meyering@lucent.com>
78517
78518         * lib/version-etc.c (version_etc_copyright): Update copyright year.
78519
78520 2001-12-19  Paul Eggert  <eggert@twinsun.com>
78521
78522         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
78523         not silently exit merely because the output buffer happens to
78524         have nothing pending.
78525
78526 2001-12-18  Paul Eggert  <eggert@twinsun.com>
78527
78528         See the big note in ../ChangeLog.
78529         * lib/human.c (suffixes): Prefer K to k for 1024.
78530         (generate_suffix_backwards): New function.
78531         (human_readable_inexact): Use it.
78532         * lib/xstrtol.c (__xstrtol): If there is no number but there
78533         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
78534         Accept 'K' as well as 'k'.
78535
78536 2001-12-15  Jim Meyering  <meyering@lucent.com>
78537
78538         * lib/regex.h (__restrict_arr): Update from libc.
78539
78540         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
78541         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
78542         (STREQ): Define.
78543
78544 2001-12-14  Jim Meyering  <meyering@lucent.com>
78545
78546         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
78547         Suggestion from Bruno Haible.
78548
78549 2001-12-10  Jim Meyering  <meyering@lucent.com>
78550
78551         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
78552         xrealloc, Instead, include "xalloc.h".
78553         (initbuffer): Don't cast xmalloc return value to char*.
78554         (readline): Reword comment.
78555         Don't cast xrealloc return value to char*
78556         Return NULL, not 0.
78557
78558 2001-12-09  Jim Meyering  <meyering@lucent.com>
78559
78560         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
78561         about `signed and unsigned type in conditional expression'.
78562         * lib/posixtm.c (posix_time_parse): Likewise.
78563
78564         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
78565
78566         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
78567         to avoid a pedantic warning.
78568
78569         * lib/getstr.c: Don't include assert.h.
78570         (getstr): Remove warning-evoking assertions.
78571         Return -1 if offset parameter is out of bounds.
78572         Change the type of a local from int to size_t.
78573
78574         * lib/strftime.c (my_strftime_localtime_r): Include this function
78575         definition in the `#if ! HAVE_TM_GMTOFF' block.
78576
78577         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
78578         Include xalloc.h instead.
78579
78580 2001-12-02  Jim Meyering  <meyering@lucent.com>
78581
78582         * lib/tempname.c: Don't declare getenv, thus reverting the change of
78583         2001-11-18.  It's no longer necessary, now that stdlib.h is always
78584         included.
78585
78586         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
78587         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
78588
78589 2001-11-30  Akim Demaille  <akim@epita.fr>
78590
78591         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
78592         before being defined.
78593
78594 2001-11-27  Paul Eggert  <eggert@twinsun.com>
78595
78596         * lib/quotearg.h (quotearg_n, quotearg_n_style):
78597         First arg is int, not unsigned.
78598         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
78599         (SIZE_MAX, UINT_MAX): New macros.
78600         (quotearg_n_options): Abort if N is negative.
78601         Avoid overflow check on hosts where size_t is 64 bits and int
78602         is 32 bits, as overflow is impossible there.
78603         Fix off-by-one typo that caused unnecessary reallocation.
78604
78605 2001-11-27  Jim Meyering  <meyering@lucent.com>
78606
78607         * lib/tempname.c: Merge with version from libc.
78608         * lib/regex.c: Likewise.
78609
78610         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
78611         systems for which STDC_HEADERS is 0, it was not included, resulting in
78612         a warning about an integer-to-pointer conversion problem with getenv.
78613         Reported by Volker Borchert.
78614
78615 2001-11-26  Jim Meyering  <meyering@lucent.com>
78616
78617         * lib/gtod.h: Remove file.
78618         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
78619         * lib/gettimeofday.c: Don't include gtod.h.
78620         (GTOD_init): Remove function.
78621         (rpl_gettimeofday): Do its job here instead, rather than aborting.
78622         Suggestion from Volker Borchert.
78623
78624 2001-11-23  Jim Meyering  <meyering@lucent.com>
78625
78626         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
78627         it.
78628         * lib/hash.c (struct hash_table): Define it here instead.
78629
78630 2001-11-22  Jim Meyering  <meyering@lucent.com>
78631
78632         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
78633
78634 2001-11-20  Jim Meyering  <meyering@lucent.com>
78635
78636         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
78637         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
78638
78639 2001-11-19  Jim Meyering  <meyering@lucent.com>
78640
78641         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
78642         directory.  Use "conftestXXXXXX" as the template.
78643         Suggestion from Paul Eggert.
78644
78645         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
78646         immediately, so the test doesn't mistakenly hit the max-open-files
78647         limit.
78648
78649 2001-11-18  Paul Eggert  <eggert@twinsun.com>
78650
78651         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
78652         (TEMPORARIES): New macro.
78653         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
78654         removes an artificial limitation (e.g. HP-UX 10.20, where
78655         TMP_MAX is 17576).
78656
78657 2001-11-18  Jim Meyering  <meyering@lucent.com>
78658
78659         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
78660
78661 2001-11-18  Jim Meyering  <meyering@lucent.com>
78662
78663         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
78664         on SunOS 4.
78665
78666         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
78667         files will be created before anything else.
78668
78669 2001-11-17  Paul Eggert  <eggert@twinsun.com>
78670
78671         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
78672         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
78673
78674 2001-11-17  Jim Meyering  <meyering@lucent.com>
78675
78676         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
78677         Prompted by a report from Bob Proulx.
78678
78679         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
78680         Instead, require UTILS_FUNC_MKSTEMP.
78681
78682 2001-11-17  Jim Meyering  <meyering@lucent.com>
78683
78684         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
78685         Now, that's done as part of AC_FUNC_STRTOD.
78686
78687 2001-11-17  Jim Meyering  <meyering@lucent.com>
78688
78689         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
78690         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
78691         rather than group writable.  Patch by Juan F. Codagnone.
78692
78693         * lib/readtokens.c: Remove explicit declarations of xmalloc and
78694         xrealloc, Instead, include "xalloc.h".
78695
78696         * lib/mountlist.c: Include unlocked-io.h after all system headers.
78697         Remove explicit declarations of xmalloc, xrealloc,
78698         and xstrdup.  Instead, include "xalloc.h".
78699
78700         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
78701         unlocked-io.h.
78702         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
78703         Likewise.
78704         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
78705
78706         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
78707         Reported by Padraig Brady.
78708
78709         * lib/mkstemp.c: #undef mkstemp.
78710         Include config.h.
78711         (rpl_mkstemp): Rename from mkstemp.
78712         Protoize.
78713
78714 2001-11-16  Jim Meyering  <meyering@lucent.com>
78715
78716         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
78717         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
78718         determine the amount of total physical memory, use pstat_getstatic.
78719         HPUX-11 doesn't define _SC_PHYS_PAGES.
78720         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
78721         If sysconf couldn't be used to determine the amount of available
78722         physical memory, use both pstat_getstatic and pstat_getdynamic.
78723         Based on a patch from Bob Proulx.
78724
78725 2001-11-10  Jim Meyering  <meyering@lucent.com>
78726
78727         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
78728         (jm_PREREQ): Use it.
78729
78730 2001-11-09  Jim Meyering  <meyering@lucent.com>
78731
78732         * m4/jm-macros.m4: Require autoconf-2.52f.
78733         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
78734         Use these AC_-prefixed names, not the AM_-prefixed ones.
78735
78736         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
78737
78738 2001-11-05  Jim Meyering  <meyering@lucent.com>
78739
78740         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
78741
78742 2001-11-04  Jim Meyering  <meyering@lucent.com>
78743
78744         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
78745         $DEFS.
78746
78747 2001-11-03  Jim Meyering  <meyering@lucent.com>
78748
78749         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
78750         of AC_DEFUN.
78751
78752         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
78753         know the name of the variable in the macro definition.
78754
78755 2001-11-03  Jim Meyering  <meyering@lucent.com>
78756
78757         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
78758         in argmatch_to_argument call.
78759
78760         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
78761         argument.
78762
78763         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
78764         e.g., a fault due to an attempt to free a NULL pointer.
78765
78766 2001-11-01  Jim Meyering  <meyering@lucent.com>
78767
78768         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
78769         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
78770
78771 2001-11-01  Jim Meyering  <meyering@lucent.com>
78772
78773         * lib/dirfd.c, lib/dirfd.h: New files.
78774         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
78775
78776         * lib/hash.c (hash_print) [TESTING]: Clean up.
78777
78778 2001-10-22  Paul Eggert  <eggert@twinsun.com>
78779
78780         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
78781         to avoid a warning if -Wall.
78782
78783 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
78784
78785         * README: New file
78786         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
78787         (per RMS's instructions, this is now the canonical source)
78788         * lgpl/, gpl/: New directories.
78789
78790 2001-10-21  Paul Eggert  <eggert@twinsun.com>
78791
78792         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
78793
78794 2001-10-21  Jim Meyering  <meyering@lucent.com>
78795
78796         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
78797         this code would end up calling gettext even in packages built
78798         with --disable-nls.
78799         * lib/getopt.c (_): Likewise.
78800         * lib/regex.c (_): Likewise.
78801
78802 2001-10-20  Paul Eggert  <eggert@twinsun.com>
78803
78804         * m4/error.m4 (jm_PREREQ_ERROR):
78805         Do not invoke AC_CHECK_FUNCS with strerror_r, as
78806         AC_FUNC_STRERROR_R does that.
78807         Check for strerror declaration.
78808
78809         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
78810         are supposed to have them these days.
78811         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
78812         Merge changes from latest Autoconf CVS.
78813         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
78814         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
78815         POSIX decided to standardize on the int flavor of strerror_r.
78816
78817 2001-10-20  Paul Eggert  <eggert@twinsun.com>
78818
78819         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
78820         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
78821         Use strerror_r that is only a macro, even if it is not a function.
78822         (strerror): Check for HAVE_DECL_STRERROR before declaring.
78823         (private_strerror): Use prototypes, not old-style function definition.
78824         (print_errno_message): New function.
78825         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
78826         char*-flavored one.
78827         (error_tail, error, error_at_line): Use it.
78828
78829 2001-10-11  Jim Meyering  <meyering@lucent.com>
78830
78831         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
78832         and quote_n (1, ... to avoid clobbering a buffer.
78833
78834 2001-10-05  Jim Meyering  <meyering@lucent.com>
78835
78836         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
78837         hash-pjw.h.
78838         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
78839         * lib/hash-pjw.h: New file.
78840
78841 2001-09-30  Jim Meyering  <meyering@lucent.com>
78842
78843         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
78844         `struct fsstat' has the `f_fstypename' member.
78845         Use that to define FS_TYPE, which is now used to make
78846         the getfsstat link test tighter.
78847
78848 2001-09-30  Jim Meyering  <meyering@lucent.com>
78849
78850         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
78851         Include <sys/ucred.h>, for Apple Darwin.
78852         Include sys/mount.h and sys/fs_types.h only if available.
78853         (FS_TYPE): Define.
78854         (read_filesystem_list): Use FS_TYPE.
78855
78856 2001-09-29  Paul Eggert  <eggert@twinsun.com>
78857
78858         * lib/exclude.c (excluded_filename): 0 -> false, since it's
78859         a boolean context.
78860
78861 2001-09-29  Jim Meyering  <meyering@lucent.com>
78862
78863         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
78864         [one-argument getmntent function]): Include stdio.h before mntent.h.
78865         SunOS 4.1.x needs it for the declaration of `FILE'.
78866         Patch by Volker Borchert.
78867
78868         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
78869         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
78870         sys/fs_types.h, and make the link-test for getfsstat guard #include
78871         directives with appropriate #if HAVE_*_H tests so that we can
78872         detect getfsstat on Apple Darwin1.3.7 systems.
78873         Reported by Nelson Beebe.
78874         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
78875
78876 2001-09-28  Paul Eggert  <eggert@twinsun.com>
78877
78878         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
78879         #defines strtoimax.  Also treat the other strto* functions
78880         like strtoimax.
78881
78882         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
78883         Check for strtoul and strtoumax,
78884         as those declarations are made even in the signed case.
78885         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
78886         Likewise, for strtol and strtoimax.
78887
78888 2001-09-28  Paul Eggert  <eggert@twinsun.com>
78889
78890         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
78891         #defines strtoimax.  Also treat the other strto* functions
78892         like strtoimax.
78893
78894         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
78895         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
78896         (strtoimax, strtoumax): Do not declare if already defined as a macro.
78897
78898 2001-09-26  Jim Meyering  <meyering@lucent.com>
78899
78900         Most macros in unlocked-io.h had the wrong number of arguments.
78901         * lib/gen-uio: New script.
78902         (USE_UNLOCKED_IO): Define to 1 if not already defined.
78903         * lib/unlocked-io.hin: Remove file.
78904         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
78905         rather than trying to embed it here.
78906         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
78907         Reported by Padraig Brady.
78908
78909 2001-09-25  Volker Borchert  <bt@teknon.de>
78910
78911         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
78912         `result'.
78913
78914 2001-09-24  Jim Meyering  <meyering@lucent.com>
78915
78916         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
78917
78918 2001-09-23  Jim Meyering  <meyering@lucent.com>
78919
78920         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
78921         instead of the mere test for existence of mntent.h.  The latter
78922         would get a false-positive on AIX 3.4 systems.
78923         In the outer getmntent if-block, don't die if neither of the getmntent
78924         tests succeeds.  Instead, just fall through and continue with the
78925         remaining tests.
78926
78927 2001-09-23  Jim Meyering  <meyering@lucent.com>
78928
78929         * lib/mountlist.c: Remove useless parentheses in #if directives.
78930         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
78931         the deprecated MOUNTED symbol is no longer defined in mntent.h.
78932
78933 2001-09-22  Jim Meyering  <meyering@lucent.com>
78934
78935         * m4/gettext.m4: New file.  From gettext.
78936         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
78937         * m4/progtest.m4: Likewise
78938         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
78939         * m4/glibc21.m4: Likewise.
78940
78941         * m4/libintl.m4: Remove.  No longer used.
78942
78943 2001-09-22  Jim Meyering  <meyering@lucent.com>
78944
78945         * lib/localcharset.c: Update from latest gettext.
78946         * lib/config.charset: Likewise.
78947
78948 2001-09-20  Jim Meyering  <meyering@lucent.com>
78949
78950         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
78951         strtoimax.
78952         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
78953         strtoumax.
78954
78955 2001-09-20  Jim Meyering  <meyering@lucent.com>
78956
78957         * lib/xstrtol.c (strtoimax): Guard declaration with
78958         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
78959         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
78960         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
78961         (strtoumax): Likewise, for completeness (it wasn't necessary).
78962
78963 2001-09-17  Paul Eggert  <eggert@twinsun.com>
78964
78965         * lib/strtoimax.c (HAVE_LONG_LONG):
78966         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
78967         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
78968         to work around bug in IBM C compiler.
78969
78970 2001-09-17  Jim Meyering  <meyering@lucent.com>
78971
78972         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
78973         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
78974         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
78975         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
78976         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
78977         whenever the right hand side need not be expanded by the shell.
78978
78979 2001-09-16  Paul Eggert  <eggert@twinsun.com>
78980
78981         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
78982         library.  It's not correct, as some older glibcs are buggy.
78983         fnmatch wasn't fixed until glibc 2.2.
78984
78985         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
78986         special shell magic here.
78987
78988 2001-09-16  Jim Meyering  <meyering@lucent.com>
78989
78990         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
78991         * m4/jm-macros.m4: Require it.
78992
78993 2001-09-16  Jim Meyering  <meyering@lucent.com>
78994
78995         * lib/mkdir.c: New file.
78996
78997 2001-09-15  Jim Meyering  <meyering@lucent.com>
78998
78999         * m4/jm-macros.m4: Check for help2man.
79000
79001 2001-09-11  Jim Meyering  <meyering@lucent.com>
79002
79003         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
79004         The body, by Paul Eggert, was moved here from configure.in.
79005         * m4/jm-macros.m4: Require UTILS_HOST_OS.
79006
79007 2001-09-04  Paul Eggert  <eggert@twinsun.com>
79008
79009         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
79010         (jm_PREREQ): Use it.
79011
79012 2001-09-04  Paul Eggert  <eggert@twinsun.com>
79013
79014         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
79015         Use ssize_t, not int, to store result of readlink.
79016         Check for ssize_t overflow as well as size_t overflow,
79017         as POSIX says the result of readlink is implementation-defined
79018         when ssize_t overflows.
79019         Remove unnecessary cast to char*.
79020         Use free+malloc instead of realloc, as the storage doesn't need
79021         to be preserved and it's clearer and can be more efficient that way.
79022         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
79023         * lib/xreadlink.h (xreadlink): Update prototype.
79024
79025 2001-09-04  Paul Eggert  <eggert@twinsun.com>
79026
79027         * lib/xgetcwd.c: Revert some of the previous change; intead,
79028         fix the HAVE_GETCWD_NULL code to behave more like the
79029         !HAVE_GETCWD_NULL code used to.
79030
79031         Include "xalloc.h".
79032         (xgetcwd): Do not return NULL when memory is exhausted; instead,
79033         invoke xalloc_die.
79034
79035 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79036
79037         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
79038         sys/param.h, as pathmax.h includes them.
79039
79040 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79041
79042         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
79043         (jm_PREREQ_XGETCWD): New macro.
79044
79045         * m4/getcwd.m4: New file.
79046
79047 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79048
79049         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
79050         like the HAVE_GETCWD_NULL code.
79051         Include pathmax.h if not HAVE_GETCWD.
79052         Do not include xalloc.h.
79053         (INITIAL_BUFFER_SIZE): New symbol.
79054         Do not use xmalloc / xrealloc, since the caller is responsible for
79055         handling errors.  Preserve errno around `free' during failure.
79056         Do not overrun buffer when using getwd.
79057
79058 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79059
79060         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
79061         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
79062         getcwd (NULL, 0).
79063
79064 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79065
79066         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
79067         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
79068         spotted by Jim Meyering.
79069
79070 2001-09-03  Jim Meyering  <meyering@lucent.com>
79071
79072         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
79073         failure.
79074
79075 2001-09-02  Jim Meyering  <meyering@lucent.com>
79076
79077         * lib/error.c: Update from GNU libc.
79078
79079 2001-09-01  Jim Meyering  <meyering@lucent.com>
79080
79081         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
79082         Used by df.
79083
79084 2001-09-01  Jim Meyering  <meyering@lucent.com>
79085
79086         * lib/xreadlink.c: New file.
79087         * lib/xreadlink.h: New file.
79088         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
79089         xreadlink.h.
79090
79091         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
79092         doesn't conflict with sparc Solaris 7's definition in
79093         /usr/include/sys/int_types.h.
79094
79095         * lib/exclude.c: Use `""', not `<>' to #include non-system header
79096         files.
79097         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
79098         and strncasecmp as r-values.  Unixware didn't have declarations.
79099
79100 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79101
79102         * lib/xstrtol.h: Add copyright notice.
79103         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
79104         LONGINT_INVALID_SUFFIX_CHAR.
79105
79106 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79107
79108         * lib/xstrtol.c (strtoimax): New decl.
79109
79110 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79111
79112         * lib/xgetcwd.c: Don't include pathmax.h.
79113         Include stdlib.h and unistd.h if available.
79114         Include xalloc.h.
79115         (xmalloc, xstrdup, free): Remove decls.
79116         (xgetcwd): Don't assume sizes fit in unsigned.
79117         Check for overflow when computing sizes.
79118         Simplify reallocation code.
79119
79120 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79121
79122         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
79123         a directory's st_size can have an arbitrary value, so the old
79124         usage could waste an arbitrary amount of memory.  All uses
79125         changed.
79126         * lib/savedir.h: Update prototype.
79127
79128 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79129
79130         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
79131
79132         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
79133         old strtoimax.c.
79134
79135         Also, make the following further changes to make this file's
79136         configuration more similar to that of strtol.c:
79137         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
79138         (strtoumax, uintmax_t, strtoull, strtol): Remove.
79139         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
79140         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
79141         changed to signed values.
79142
79143         And make the following changes as well:
79144         Fix copyright notice, as 1999 was missing.
79145         (verify): New macro.
79146         (strtoimax): Check sizes at compile-time, not run-time.
79147         Prefer strtol to strtoll if both work.
79148         (main): Remove; it was not that useful and was a pain to maintain.
79149
79150         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
79151
79152 2001-08-31  Jim Meyering  <meyering@lucent.com>
79153
79154         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
79155         Use an initial, malloc'd, buffer of length 128 rather than
79156         a statically allocated one of length 1024.
79157
79158 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79159
79160         Simplify code, partly by assuming autoconf 2.52 semantics.
79161
79162         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
79163
79164         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
79165         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
79166         All uses removed.
79167         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
79168         Move AC_REQUIRE to next-to-top level, to avoid confusion.
79169         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
79170         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
79171         jm_AC_HEADER_INTTYPES_H.
79172         * m4/jm-macros.m4 (jm_MACROS): Likewise.
79173
79174         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
79175
79176         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
79177         Quote first arg of AC_DEFUN.
79178         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
79179         since they are needed to parse the include file even if we need
79180         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
79181         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
79182         but with opposite signedness.
79183
79184 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79185
79186         Merge 'exclude' changes from tar 1.13.22.
79187         This fixes one or two unlikely storage allocation overflow bugs,
79188         but doesn't change user-visible behavior otherwise.
79189
79190 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79191
79192         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
79193         (jm_PREREQ_EXCLUDE): New macro.
79194
79195 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79196
79197         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
79198         tm to be declared.
79199
79200 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79201
79202         * lib/hash.c: Remove '2001' from copyright notice.
79203
79204 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79205
79206         * lib/full-write.h: New file.
79207         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
79208         * lib/full-write.c: Correct credits, as cccp.c no longer
79209         exists and anyway it was so heavily changed from the old cccp
79210         code as to be unrecognizable.  Include full-write.h.
79211         (full_write): Return size_t, with short writes meaning failure.
79212         All callers changed.  This fixes a bug with large buffers
79213         on 64-bit hosts.
79214         * lib/utime.c: Include full-write.h.
79215
79216 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79217
79218         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
79219         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
79220         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
79221         Include if available.
79222         (<xalloc.h>): Include
79223         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
79224         (verify): New macro.  Use it to verify that EXCLUDE macros do not
79225         collide with FNM macros.
79226         (struct patopts): New struct.
79227         (struct exclude): Use it, as exclude patterns now come with options.
79228         (new_exclude): Support above changes.
79229         (new_exclude, add_exclude_file):
79230         Initial size must now be a power of two to simplify overflow checking.
79231         (free_exclude, fnmatch_no_wildcards): New function.
79232         (excluded_filename): No longer requires options arg, as the options
79233         are determined by add_exclude.  Now returns bool, not int.
79234         (excluded_filename, add_exclude):
79235         Add support for the fancy new exclusion options.
79236         (add_exclude, add_exclude_file): Now takes int options arg.
79237         Check for arithmetic overflow when computing sizes.
79238         (add_exclude_file): xrealloc might modify errno, so don't
79239         realloc until after errno might be used.
79240
79241         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
79242         New macros.
79243         (free_exclude): New decl.
79244         (add_exclude, add_exclude_file): Now takes int options arg.
79245         (excluded_filename): No longer requires options arg, as the options
79246         are determined by add_exclude.  Now returns bool, not int.
79247
79248 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79249
79250         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
79251
79252 2001-08-27  Jim Meyering  <meyering@lucent.com>
79253
79254         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
79255
79256         * lib/version-etc.c (N_): Remove definition.
79257         Revert most of last change.
79258         Instead, simply don't mark the `Copyright...' string for translation.
79259         Based on advice from Paul Eggert.
79260
79261         * lib/strtoxmax.c: Tweak comment.
79262
79263 2001-08-26  Jim Meyering  <meyering@lucent.com>
79264
79265         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
79266
79267         * m4/xstrtoimax.m4: New file.
79268         * m4/xstrtoumax.m4: Add comments explaining why we
79269         AC_REPLACE_FUNCS(strtol).
79270
79271 2001-08-26  Jim Meyering  <meyering@lucent.com>
79272
79273         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
79274         of copyright with `%s' so translators don't get an untranslated
79275         message in 2002.
79276         (COPYRIGHT_YEAR): Define.
79277         (version_etc): Use fprintf rather than fputs.
79278         Suggestion from Ulrich Drepper.
79279
79280         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
79281
79282         * lib/strtoll.c: New file, from GNU libc.
79283         * lib/xstrtoimax.c: New file.
79284
79285         * lib/xstrtol.h: Add xstrtoimax.
79286         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
79287         * lib/strtoimax.c: New file.  Likewise, but first define
79288         STRTOUXMAX_SIGNED.
79289
79290         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
79291         ...
79292         * lib/strtoxmax.c: ... then renamed to this.
79293
79294 2001-08-18  Paul Eggert  <eggert@twinsun.com>
79295
79296         * m4/inttypes.m4: Add AC_PREREQ(2.13).
79297         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
79298         (jm_AC_TYPE_INTMAX_T): New macro.
79299         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
79300
79301         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
79302
79303         * m4/longlong.m4: Renamed from ulonglong.m4.
79304         * m4/inttypes.m4: Renamed from inttypes_h.m4.
79305         * m4/uintmax_t.m4: Removed.
79306
79307 2001-08-13  Paul Eggert  <eggert@twinsun.com>
79308
79309         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
79310         Port to Solaris 8, where 'sed' requires a space after the 'r'
79311         command, and where sh dislikes "$/".  Clean up the spacing a bit.
79312         Redirect output to $tmp just once.
79313
79314 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
79315
79316         * lib/addext.c (<errno.h>): Include.
79317         (errno): Declare if not defined.
79318         (addext): Work correctly when pathconf returns -1 and leaves
79319         errno alone because there is no limit.  Also, work even if
79320         pathconf returns a value greater than SIZE_MAX.
79321
79322 2001-08-12  Jim Meyering  <meyering@lucent.com>
79323
79324         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
79325         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
79326         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
79327         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
79328         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
79329         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
79330         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
79331         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
79332         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
79333         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
79334         utime.m4, utimes.m4, xstrtoumax.m4:
79335         Quote the first argument in each use of AC_DEFUN.
79336
79337 2001-08-12  Jim Meyering  <meyering@lucent.com>
79338
79339         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
79340         Simply `return getcwd (NULL, 0);'.
79341         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
79342         Use 1300 as initial value for length, not PATH_MAX.
79343
79344         * lib/pathmax.h: Clean up cpp syntax.
79345
79346 2001-08-12  Jim Meyering  <meyering@lucent.com>
79347
79348         * lib/gettimeofday.c: New file.
79349         * lib/gtod.h: New file.
79350         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
79351
79352 2001-08-05  Jim Meyering  <meyering@lucent.com>
79353
79354         * m4/jm-macros.m4: Require autoconf-2.52.
79355
79356 2001-08-04  Jim Meyering  <meyering@lucent.com>
79357
79358         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
79359         stmt, to get in sync with glibc.
79360
79361 2001-08-03  Paul Eggert  <eggert@twinsun.com>
79362
79363         The following changes are from gettext 0.10.39 as maintained by
79364         Bruno Haible.
79365
79366         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
79367         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
79368         with inverted sense.  All uses changed.
79369
79370         * lib/mbswidth.c: Don't include <limits.h>.
79371         Include <stdlib.h> and <string.h> unconditionally.
79372         (iswcntrl, mbsinit, ISCNTRL): New macros.
79373         (mbsnwidth): Use K&R style function declarations.
79374         Don't bother checking for MB_LEN_MAX == 1, since the compiler
79375         can optimize it when MB_CUR_MAX == 1.
79376         The width of control characters is zero, not 1.
79377
79378 2001-08-03  Paul Eggert  <eggert@twinsun.com>
79379
79380         The following changes are from gettext 0.10.39 as maintained by
79381         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
79382
79383         * m4/codeset.m4: Upgrade to serial AM1.
79384         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
79385         all uses changed.  Quote first arg of AC_DEFUN.
79386         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
79387
79388         * m4/iconv.m4: Upgrade to serial AM2.
79389         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
79390         Add --with-libconv-prefix.
79391         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
79392         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
79393         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
79394         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
79395         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
79396
79397         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
79398         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
79399         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
79400         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
79401         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
79402         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
79403         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
79404         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
79405         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
79406
79407         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
79408         string.h any more.
79409
79410         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
79411         not the default value.
79412
79413         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
79414         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
79415         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
79416         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
79417         Also check for iswcntrl, used for wcwidth fallback.
79418         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
79419         to Autoconf 2.13.
79420
79421 2001-08-03  Jim Meyering  <meyering@lucent.com>
79422
79423         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
79424         as it was in the original.  Reported by Paul Eggert.
79425
79426 2001-07-16  Jim Meyering  <meyering@lucent.com>
79427
79428         * m4/gettimeofday.m4: New file.
79429         Prompted by a report from Bernhard Baehr.
79430
79431 2001-07-15  Jim Meyering  <meyering@lucent.com>
79432
79433         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
79434         stuff. Now it's in ../Makefile.cfg.
79435
79436 2001-07-15  Jim Meyering  <meyering@lucent.com>
79437
79438         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
79439         (BUILT_SOURCES): Add unlocked-io.h.
79440         (io_functions): Define.
79441         (unlocked-io.h): New rule.
79442         (DISTCLEANFILES): Add unlocked-io.h.
79443         (all-local): Depend on unlocked-io.h, to ensure it is created.
79444
79445         * lib/unlocked-io.hin: New file
79446
79447         * lib/regex.c: Update from glibc.
79448
79449 2001-07-05  Jim Meyering  <meyering@lucent.com>
79450
79451         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
79452         recommendation.
79453         (libfetish_a_SOURCES): Put all .h files here instead.
79454         Remove a thus-exposed (better checks in automake) duplicate and
79455         two unnecessary .h files.
79456
79457 2001-07-04  Jim Meyering  <meyering@lucent.com>
79458
79459         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
79460         that generates jm-glibc-io.m4 so that it doesn't trigger any make
79461         distcheck failure.
79462
79463 2001-07-02  Jim Meyering  <meyering@lucent.com>
79464
79465         The following changes were prompted by suggestions from Bruno Haible.
79466
79467         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
79468         is now generated.
79469         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
79470         definition of EXTRA_DIST.
79471         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
79472         ensure that the generated file is created/updated whenever the list
79473         of $(unlocked_functions) is changed.
79474         (jm-glibc-io.m4): New rule.
79475         (unlocked-io.h): New rule -- currently unused.
79476
79477 2001-06-24  Jim Meyering  <meyering@lucent.com>
79478
79479         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
79480         unmatched right bracket, rather than kludging it with an extra,
79481         falsely-matching quote in a comment.  Patch by Akim Demaille.
79482
79483 2001-06-11  Jim Meyering  <meyering@lucent.com>
79484
79485         * lib/regex.c: Update from GNU libc.
79486
79487 2001-05-27  Jim Meyering  <meyering@lucent.com>
79488
79489         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
79490         Check for ut_type in struct utmp.
79491
79492 2001-05-27  Jim Meyering  <meyering@lucent.com>
79493
79494         * lib/readutmp.h (UT_TYPE): Define.
79495
79496 2001-05-24  Jim Meyering  <meyering@lucent.com>
79497
79498         * lib/argmatch.c: Include "quote.h".
79499         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
79500         quote function.  Reported by Göran Uddeborg.
79501
79502 2001-05-22  Jim Meyering  <meyering@lucent.com>
79503
79504         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
79505         now that we use the package-supplied version unconditionally.
79506         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
79507
79508 2001-05-21  Jim Meyering  <meyering@lucent.com>
79509
79510         * m4/regex.m4: Change a couple backticks to single quotes to avoid
79511         shell syntax errors.
79512
79513 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
79514
79515         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
79516
79517 2001-05-20  Paul Eggert  <eggert@twinsun.com>
79518
79519         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
79520         Don't bother to check library strftime, since
79521         we'll be using our own my_strftime function anyway.
79522         Define my_strftime instead of strftime.
79523
79524 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
79525
79526         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
79527         which is not yet declared.
79528
79529 2001-05-15  Jim Meyering  <meyering@lucent.com>
79530
79531         * m4/regex.m4: Use proper quoting so brackets appear in the test
79532         program.
79533         Reported by, and with help from, Bruno Haible.
79534
79535 2001-05-13  Jim Meyering  <meyering@lucent.com>
79536
79537         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
79538         undefined.
79539
79540 2001-05-11  Paul Eggert  <eggert@twinsun.com>
79541
79542         dirname code cleanup.  base_name now behaves more compatibly
79543         with POSIX basename when given file names that have trailing
79544         slashes, and similarly for dir_name.  Add new primitives
79545         base_len and dir_len.  Put the directory-name-related decls
79546         into dirname.h.
79547
79548         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
79549         * lib/backupfile.c (base_name): Likewise.
79550         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
79551         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
79552         * lib/makepath.c (strip_trailing_slashes): Likewise.
79553         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
79554         ISSLASH): Likewise.
79555         * lib/rename.c (strip_trailing_slashes): Likewise.
79556         * lib/same.c (base_name): Likewise.
79557         * lib/stripslash.c (ISSLASH): Likewise.
79558
79559         * lib/addext.c: Include <dirname.h> after size_t is defined.
79560         * lib/backupfile.c: Likewise.
79561
79562         * lib/addext.c (addext): Use base_len to trim redundant
79563         trailing slashes instead of doing it ourselves.
79564         But do not trim the last slash if it is not redundant.
79565
79566         * lib/backupfile.c (find_backup_file_name,
79567         max_backup_version): Use base_len instead of rolling it ourselves.
79568         Handle the case of "" and (on DOS) "C:" correctly.
79569
79570         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
79571         needed. Include <string.h>, <dirname.h>.
79572         (base_name): Allow file names ending in slashes, other than names
79573         that are all slashes.  In this case, return the basename followed
79574         by the slashes.  This is more general, and can be used in places
79575         where the original base_name purposely had an assertion failure.
79576         (base_len): New function.
79577
79578         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
79579         Do not include <assert.h>; no longer needed.
79580         Include xalloc.h.
79581         (memrchr): Remove decl.
79582         (dir_name_r): Remove.
79583         (dir_len): Renamed from dirlen.  All callers changed.
79584         Rewrite in terms of base_name, for simplicity and consistency.
79585         (dir_name): Never return NULL.  All callers changed.
79586         Do not include <stdlib.h> in test program; no longer needed.
79587         return 0; is fine for test program.
79588
79589         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
79590         New macros.
79591         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
79592
79593         * lib/path-concat.c (path_concat): Use base_len to compute
79594         base length, not strlen; this means we cannot rely on memcpy
79595         to null-terminate.
79596
79597         * lib/same.c (STREQ): Remove.
79598         (same_name): Handle the case where the basename ends in trailing '/'.
79599
79600         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
79601         a slash was stripped.  Do not strip the last slash after a
79602         file system prefix.
79603
79604 2001-05-11  Paul Eggert  <eggert@twinsun.com>
79605
79606         * lib/Makefile.am (libfetish_a_SOURCES):
79607         Add strftime.c, since we now compile it on all hosts.
79608
79609         * lib/strftime.c (my_strftime):
79610         Define to nstrftime if emacs, but only if my_strftime is not defined.
79611         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
79612         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
79613         Add one more extra argument: a nanoseconds value.
79614         All uses changed.
79615         (ns): New macro.
79616         (my_strftime function): Add %N format.
79617         (emacs_strftimeu): Renamed from emacs_strftime,
79618         with extra ut argument.
79619
79620 2001-05-09  Paul Eggert  <eggert@twinsun.com>
79621
79622         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
79623
79624 2001-04-21  Jim Meyering  <meyering@lucent.com>
79625
79626         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
79627         doesn't interfere.
79628
79629 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
79630
79631         * m4/ftruncate.m4: Check for chsize.
79632         Link with ftruncate.o unconditionally if ftruncate is missing.
79633         This was required when cross-compiling to i586-mingw32msvc.
79634
79635 2001-04-08  Jim Meyering  <meyering@lucent.com>
79636
79637         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
79638         recomputed; that's necessary when the offset spans a DST transition.
79639         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
79640
79641 2001-04-02  Jim Meyering  <meyering@lucent.com>
79642
79643         * lib/regex.h, regex.c: Update from GNU libc.
79644
79645 2001-03-24  Jim Meyering  <meyering@lucent.com>
79646
79647         * m4/jm-macros.m4: Require autoconf-2.49d.
79648
79649 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
79650
79651         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
79652
79653 2001-03-19  Paul Eggert  <eggert@twinsun.com>
79654
79655         * lib/version-etc.c (version_etc_copyright): Update to 2001.
79656
79657 2001-03-17  Jim Meyering  <meyering@lucent.com>
79658
79659         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
79660         now that the version in autoconf is equivalent.
79661         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
79662
79663         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
79664         Suggestion from Akim Demaille.
79665
79666         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
79667         (jm_PREREQ_TEMPNAME): New function.
79668
79669 2001-03-16  Paul Eggert  <eggert@twinsun.com>
79670
79671         * lib/tempname.c (uint64_t): Define to uintmax_t if
79672         not defined, and if UINT64_MAX is not defined.
79673         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
79674         Reported by John David Anglin.
79675
79676 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
79677
79678         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
79679         resolve alias if codeset is empty.
79680         * lib/config.charset (BeOS): Use wildcard syntax.
79681
79682 2001-03-13  Jim Meyering  <meyering@lucent.com>
79683
79684         * lib/path-concat.c (path_concat)
79685         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
79686         concatenating e.g., `C:' and `foo'.
79687         From Bruno Haible.
79688
79689 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
79690
79691         * lib/localcharset.c (locale_charset): Don't use
79692         setlocale(LC_CTYPE,NULL). Don't return NULL.
79693         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
79694
79695 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
79696
79697         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
79698         support for DOS/DJGPP.
79699
79700 2001-03-01  Paul Eggert  <eggert@twinsun.com>
79701
79702         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
79703         lacks mkstemp.  Compile our own tempname.c if we compile our own
79704         mkstemp.c, as mkstemp relies on tempname.
79705
79706 2001-03-01  Jim Meyering  <meyering@lucent.com>
79707
79708         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
79709         AH_VERBATIM really does output its argument verbatim.
79710
79711 2001-02-28  Paul Eggert  <eggert@twinsun.com>
79712
79713         * lib/Makefile.am (libfetish_a_SOURCES):
79714         Add dup-safer.c, fopen-safer.c.
79715         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
79716
79717         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
79718         * lib/unistd-safer.h: New files.
79719
79720 2001-02-25  Paul Eggert  <eggert@twinsun.com>
79721
79722         The mkstemp replacement is taken from glibc 2.2.2, with some
79723         portability fixes for use outside glibc, as follows:
79724
79725         * lib/tempname.c (struct_stat64): New macro.
79726         (direxists, __gen_tempname): Use it.
79727         This avoids a portability problem with Solaris 8.
79728
79729         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
79730         (<stddef.h>, <stdint.h>, <string.h>):
79731         Include only if STDC_HEADERS || _LIBC.
79732         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
79733         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
79734         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
79735         (__set_errno): Define this macro if <errno.h> doesn't.
79736         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
79737         Define these macros if <stdio.h> doesn't.
79738         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
79739         Define these macros if <sys/stat.h>
79740         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
79741         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
79742         __xstat64): Define if not _LIBC.
79743         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
79744         (__gen_tempname): Invoke gettimeofday only if
79745         HAVE_GETTIMEOFDAY || _LIBC;
79746         otherwise, fall back on plain "time".
79747         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
79748
79749         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
79750
79751         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
79752
79753 2001-02-18  Paul Eggert  <eggert@twinsun.com>
79754
79755         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
79756
79757 2001-02-17  Paul Eggert  <eggert@twinsun.com>
79758
79759         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
79760         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
79761         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
79762         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
79763
79764 2001-02-17  Paul Eggert  <eggert@twinsun.com>
79765
79766         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
79767         Remove workaround macros for hosts that have mbrtowc but not
79768         mbstate_t, as we now insist on proper declarations for both
79769         before using mbrtowc.
79770
79771 2001-02-17  Jim Meyering  <meyering@lucent.com>
79772
79773         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
79774         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
79775         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
79776         UnixWare 7.1.1.
79777
79778         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
79779         rather than AC_CACHE_VAL.
79780
79781 2001-02-17  Jim Meyering  <meyering@lucent.com>
79782
79783         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
79784         around included file name.
79785
79786         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
79787
79788         * lib/strftime.c: Update from GNU libc (the only changes were to
79789         comments).
79790
79791 2001-02-17  Jim Meyering  <meyering@lucent.com>
79792
79793         * lib/regex.c: Update from libc.
79794
79795 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
79796
79797         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
79798         clash.
79799
79800 2001-02-16  Paul Eggert  <eggert@twinsun.com>
79801
79802         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
79803         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
79804         Reported by Mark Hounschell via Paul Eggert.
79805
79806 2001-02-07  Jim Meyering  <meyering@lucent.com>
79807
79808         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
79809
79810 2001-02-05  Jim Meyering  <meyering@lucent.com>
79811
79812         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
79813         it includes the patch required for `large file' support with at least
79814         HP-UX's 10.20 /bin/cc.
79815
79816 2001-02-03  Jim Meyering  <meyering@lucent.com>
79817
79818         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
79819         AS_IF, now that it works once again (mysteriously).
79820         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
79821
79822 2001-01-30  Jim Meyering  <meyering@lucent.com>
79823
79824         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
79825         * m4/chown.m4: Rename conftestchown to conftest.chown.
79826         * m4/rename.m4: s/conftestdir/conftest.d1/ and
79827         s/conftestdir2/conftest.d2/.
79828         * m4/utimes.m4: s/conftestdata/conftest.data/
79829         Inspired by Pavel Roskin's change in autoconf.
79830
79831 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
79832
79833         * lib/config.charset: Update for FreeBSD 4.2.
79834
79835 2001-01-27  Jim Meyering  <meyering@lucent.com>
79836
79837         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
79838         a use of AS_IF.
79839         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
79840
79841 2001-01-26  Jim Meyering  <meyering@lucent.com>
79842
79843         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
79844         quotearg.c includes it.
79845
79846 2001-01-26  Jim Meyering  <meyering@lucent.com>
79847
79848         * lib/quotearg.c: Include stddef.h.
79849         * lib/quote.c: Include stddef.h.
79850         Reported by Axel Kittenberger.
79851
79852         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
79853         line in double quotes so that it evokes a better diagnostic.
79854         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
79855         Reported by Axel Kittenberger.
79856
79857 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
79858
79859         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
79860         as if it was a `charset'.
79861
79862 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
79863
79864         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
79865         has const.
79866
79867 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
79868
79869         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
79870         to avoid a warning.  Add back 'const' to inptr.
79871
79872 2001-01-20  Jim Meyering  <meyering@lucent.com>
79873
79874         Be sure that headers are checked before used in code compiled
79875         for the type checks.
79876         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
79877         In place of that, invoke jm_CHECK_ALL_TYPES.
79878         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
79879         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
79880         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
79881         The check for ssize_t was mistakenly run before the test for unistd.h.
79882
79883         The configure-time check for stdbool.h was missing.
79884         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
79885         (jm_PREREQ_HASH): New function.
79886
79887 2001-01-17  Jim Meyering  <meyering@lucent.com>
79888
79889         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
79890         for autoconf-2.49c.
79891         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
79892
79893 2001-01-16  Jim Meyering  <meyering@lucent.com>
79894
79895         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
79896         From Bruno Haible.
79897
79898 2001-01-14  Jim Meyering  <meyering@lucent.com>
79899
79900         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
79901         foo and bar.  Create conftestdir/ in the script, not in the C code.
79902         Remove directories in the script, not in the C code.
79903         Remove conftestdir{,2} before trying to create the directory.
79904         Make the entire configure script fail if the mkdir fails.
79905
79906 2001-01-14  Jim Meyering  <meyering@lucent.com>
79907
79908         * lib/rename.c: New file.  From Volker Borchert.
79909         Include stdlib.h, string.h or strings.h, and xalloc.h.
79910         Use strip_trailing_slashes rather than open-coding it.
79911
79912 2001-01-03  Paul Eggert  <eggert@twinsun.com>
79913
79914         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
79915
79916 2001-01-03  Jim Meyering  <meyering@lucent.com>
79917
79918         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
79919         of local `inptr' to avoid warning with some system declarations of
79920         iconv.
79921
79922 2001-01-02  Volker Borchert  <bt@teknon.de>
79923
79924         * m4/rename.m4: New file.
79925         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
79926
79927 2001-01-01  Jim Meyering  <meyering@lucent.com>
79928
79929         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
79930         even on systems with utmpx.h.  It's necessary for the declaration of
79931         utmp's ut_user member.  Reported by Andreas Jaeger.
79932
79933         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
79934         available. They are required for the declarations of getgrgid and
79935         getpwuid resp.
79936         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
79937         Reported by Andreas Jaeger.
79938
79939 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
79940
79941         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
79942         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
79943         so `make install' also works in VPATH builds.
79944
79945 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
79946
79947         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
79948         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
79949         can be used in subdirectories.
79950
79951 2000-12-29  Paul Eggert  <eggert@twinsun.com>
79952
79953         * lib/modechange.c: Do not assume that mode_t uses the
79954         traditional octal encoding.  E.g. "chmod 1 FOO" should set
79955         the other-execute bit of FOO even if S_IXOTH != 1.
79956
79957         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
79958         WOTH, XOTH, ALLM): New macros.
79959         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
79960          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
79961         Use them.
79962         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
79963         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
79964         (mode_compile):
79965         No need to use uintmax_t; unsigned long is long enough.
79966         Don't bother to get suffix since we don't use it.
79967
79968 2000-12-26  Jim Meyering  <meyering@lucent.com>
79969
79970         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
79971         better with autoheader.
79972
79973 2000-12-24  Jim Meyering  <meyering@lucent.com>
79974
79975         * lib/hash.c (is_prime): Return explicit boolean values.
79976         (hash_get_first): Return NULL to appease Irix5.6's 89.
79977         Reported by Nelson Beebe.
79978
79979 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
79980
79981         * lib/localcharset.c (locale_charset): Add support for Win32.
79982
79983 2000-12-18  Paul Eggert  <eggert@twinsun.com>
79984
79985         * lib/physmem.h, lib/physmem.c: New files.
79986
79987         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
79988         (noinst_HEADERS): Add physmem.h.
79989
79990         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
79991         't' for compatibility with Solaris 8 sort.
79992
79993 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
79994
79995         * lib/config.charset: Add support for BeOS.
79996
79997 2000-12-17  Jim Meyering  <meyering@lucent.com>
79998
79999         * m4/dos.m4 (jm_AC_DOS): New file and macro.
80000         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
80001
80002 2000-12-16  Jim Meyering  <meyering@lucent.com>
80003
80004         This bug had a serious impact on chown: `chown N:M FILE' (for integer
80005         N and M) would have treated it like `chown N:N FILE'.
80006
80007         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
80008
80009 2000-12-16  Jim Meyering  <meyering@lucent.com>
80010
80011         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
80012         SHELLS_FILE to a file name that's useful on djgpp systems.
80013         Include stdlib.h.
80014         (ADDITIONAL_DEFAULT_SHELLS): Define.
80015         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
80016         Based mostly on a patch from Prashant TR.
80017
80018 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
80019
80020         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
80021         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
80022         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
80023
80024 2000-12-08  Andreas Schwab  <schwab@suse.de>
80025
80026         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
80027         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
80028
80029 2000-12-07  Jim Meyering  <meyering@lucent.com>
80030
80031         * lib/stripslash.c (ISSLASH): Define.
80032         (strip_trailing_slashes): Use ISSLASH rather than comparing against
80033         `/'.
80034         From Prashant TR.
80035
80036         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
80037         (dir_name_r): Declare this function as static.
80038         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
80039         manifest itself on a name containing a mix of slashes and
80040         backslashes.
80041         Make this function work with names starting with a DOS-style
80042         drive letter and colon prefix.
80043         (dir_name): Append `.' if necessary.
80044         Based mostly on patches from Prashant TR and Eli Zaretskii.
80045
80046         * lib/dirname.h (dir_name_r): Remove prototype.
80047
80048 2000-12-06  Paul Eggert  <eggert@twinsun.com>
80049
80050         * m4/off_t-format.m4: Remove this file.
80051         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
80052
80053 2000-12-06  Jim Meyering  <meyering@lucent.com>
80054
80055         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
80056         replacement strtoull, we may well need the replacement strtoul, too.
80057         Check for declarations of strtoul and strtoull.
80058         Check for strtol.  Mainly as a cue to cause automake to include
80059         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
80060         Check for limits.h -- strtol.c needs it.
80061
80062 2000-12-05  Jim Meyering  <meyering@lucent.com>
80063
80064         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
80065
80066 2000-12-04  Jim Meyering  <meyering@lucent.com>
80067
80068         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
80069         Also include memory.h, stdlib.h, unistd.h if appropriate.
80070         Reported by Andreas Jaeger (conflicting declaration of malloc).
80071
80072 2000-12-02  Jim Meyering  <meyering@lucent.com>
80073
80074         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
80075         * m4/jm-macros.m4 (jm_MACROS): require it.
80076
80077 2000-12-02  Jim Meyering  <meyering@lucent.com>
80078
80079         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
80080
80081 2000-12-01  Paul Eggert  <eggert@twinsun.com>
80082
80083         * lib/memrchr.c: Include <config.h> before any system include file.
80084
80085 2000-11-30  Jim Meyering  <meyering@lucent.com>
80086
80087         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
80088
80089 2000-11-30  Jim Meyering  <meyering@lucent.com>
80090
80091         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
80092
80093 2000-11-29  Paul Eggert  <eggert@twinsun.com>
80094
80095         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
80096
80097 2000-11-26  Jim Meyering  <meyering@lucent.com>
80098
80099         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
80100
80101 2000-11-22  Paul Eggert  <eggert@twinsun.com>
80102
80103         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
80104         size of (size_t) -1; it's not portable.
80105
80106 2000-11-17  Jim Meyering  <meyering@lucent.com>
80107
80108         * lib/strstr.c: Update from GNU libc.
80109
80110 2000-11-17  Akim Demaille  <akim@epita.fr>
80111
80112         * lib/obstack.h: Formatting changes.
80113         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
80114         prevent type checking.
80115         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
80116         cast the value to (void *): assigning a `foo *' to a `void *'
80117         variable is valid.
80118         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
80119
80120 2000-11-16  Jim Meyering  <meyering@lucent.com>
80121
80122         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
80123
80124 2000-11-11  Jim Meyering  <meyering@lucent.com>
80125
80126         * lib/error.c: Add a couple #includes, merging from GNU libc version.
80127
80128 2000-11-10  Jim Meyering  <meyering@lucent.com>
80129
80130         * lib/obstack.h: Update from GNU libc.
80131         * lib/obstack.c: Likewise.
80132
80133 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
80134
80135         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
80136
80137 2000-11-06  Paul Eggert  <eggert@twinsun.com>
80138
80139         * lib/getusershell.c (setusershell): Use rewind rather than
80140         fseek/fseeko, to avoid configuration hassles with fseeko.
80141         Don't bother opening SHELLS_FILE if shellstream is NULL;
80142         it's not necessary.
80143
80144 2000-11-05  Jim Meyering  <meyering@lucent.com>
80145
80146         * lib/makepath.h (make_dir): Declare.
80147         * lib/makepath.c (make_dir): Remove `static' attribute.
80148         Tweak a comment.
80149
80150 2000-11-04  Jim Meyering  <meyering@lucent.com>
80151
80152         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
80153
80154 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
80155
80156         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
80157         last one in a bucket, advance to the next bucket.
80158
80159 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
80160
80161         * lib/fnmatch.c: Do not comment out all the code if we are using
80162         the GNU C library, because in some cases we are replacing buggy
80163         code in the GNU C library itself.
80164
80165 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
80166
80167         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
80168         (regex_compile): Catch bogus \(\1\).
80169
80170 2000-10-30  Paul Eggert  <eggert@twinsun.com>
80171
80172         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
80173         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
80174         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
80175
80176 2000-10-30  Paul Eggert  <eggert@twinsun.com>
80177
80178         * lib/error.h, getline.h, modechange.h:
80179         Remove "2000" from Copyright line, as the file hasn't been
80180         changed this year other than in the copyright notice.
80181
80182         * lib/xalloc.h: Add "2000" to Copyright line, as this file
80183         was changed this year.
80184
80185 2000-10-29  Jim Meyering  <meyering@lucent.com>
80186
80187         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
80188         renaming.
80189         * m4/ls-mntd-fs.m4: Likewise
80190
80191 2000-10-29  Jim Meyering  <meyering@lucent.com>
80192
80193         * lib/xstat.in: Fix grammar in comment.
80194
80195 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
80196
80197         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
80198         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
80199         doesn't define __restrict_arr.
80200
80201 2000-10-28  Jim Meyering  <meyering@lucent.com>
80202
80203         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
80204         (jm_PREREQ_MEMCHR): New function.
80205
80206 2000-10-28  Jim Meyering  <meyering@lucent.com>
80207
80208         * lib/memchr.c: Update from libc.
80209         Adjust for portability:
80210         [HAVE_STDLIB_H]: Include stdlib.h.
80211         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
80212         Undef __memchr, too.
80213         [!weak_alias]: Define __memchr to memchr.
80214
80215         * lib/regex.c: Update from libc.
80216         * lib/regex.h: Likewise.
80217         * lib/getopt1.c: Likewise.
80218         * lib/memcmp.c: Likewise.
80219
80220         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
80221         Avoid using fseek, when possible -- it's broken by design.
80222         Patch by Ulrich Drepper.
80223
80224 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
80225
80226         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
80227         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
80228         Giving in to popular pressure to shut up the compiler with casts.
80229
80230 2000-10-26  Jim Meyering  <meyering@lucent.com>
80231
80232         * lib/strftime.c: Update from libc.
80233
80234 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
80235
80236         * regex.c: More `unsigned char' -> `re_char' changes.
80237         Also change several `int' into `re_wchar_t'.
80238         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
80239         (PUSH_FAILURE_POINTER): Don't cast any more.
80240         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
80241         We want GCC to complain, since this piece of code makes
80242         re_match non-reentrant, which *should* be fixed.
80243         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
80244         (EXTEND_BUFFER): Use RETALLOC.
80245         (SET_LIST_BIT): Don't cast.
80246         (re_wchar_t): New type.
80247         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
80248         that those two functions will always properly return.
80249         (IMMEDIATE_QUIT_CHECK): Cast to void.
80250         (analyse_first): Use recursion rather than an explicit stack.
80251         (re_compile_fastmap): Can't fail anymore.
80252         (re_search_2): Don't check re_compile_fastmap for failure.
80253         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
80254         Now also sets the new value (passed in a new argument).
80255         (re_match_2_internal): Use it.
80256         Also, use a new var `reg' of type size_t when looping through regs
80257         rather than reuse the inappropriate `mcnt'.
80258
80259 2000-10-25  Jim Meyering  <meyering@lucent.com>
80260
80261         * lib/obstack.c: Update from libc.
80262
80263 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
80264
80265         * regex.c (regex_compile): Change the way of handling a range from
80266         a char less than 256 to a char not less than 256.
80267
80268 2000-10-24  Andrew Innes  <andrewi@gnu.org>
80269
80270         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
80271         NT-Emacs only.
80272         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
80273         so that re_search functions only quit when callers expect them to.
80274
80275 2000-10-23  Jim Meyering  <meyering@lucent.com>
80276
80277         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
80278         wrong.  That set_locale call must not have any side effects.
80279         From Paul Eggert.
80280
80281 2000-10-22  Jim Meyering  <meyering@lucent.com>
80282
80283         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
80284         [CYCLIC]: Remove now-unused definition.
80285
80286         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
80287         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
80288         Suggestion from Ulrich Drepper.
80289
80290 2000-10-21  Jim Meyering  <meyering@lucent.com>
80291
80292         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
80293         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
80294         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
80295
80296 2000-10-21  Jim Meyering  <meyering@lucent.com>
80297
80298         * lib/dirname.c (memrchr): Declare if necessary.
80299         (dir_name): Remove the restriction that there be no
80300         trailing slashes.  Now, this code skips past them, effectively
80301         ignoring them.
80302         [TEST_DIRNAME] (main): New unit tests.
80303
80304         * lib/memrchr.c: New file from GNU libc.
80305         Undef __memrchr, too.
80306         [!weak_alias]: Define __memrchr to memrchr.
80307         Guard weak_alias use with `#ifdef weak_alias'.
80308
80309 2000-10-21  Jim Meyering  <meyering@lucent.com>
80310
80311         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
80312         (dir_name): Use dir_name_r.
80313         * lib/dirname.h (dir_name_r): Declare it.
80314
80315 2000-10-17  Jim Meyering  <meyering@lucent.com>
80316
80317         * lib/quote.h (PARAMS): Define and use.
80318         Reported by Akim Demaille.
80319
80320         * lib/getopt.c: Update from libc.
80321
80322 2000-10-16  Jim Meyering  <meyering@lucent.com>
80323
80324         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
80325         setlocale.
80326         From Jan Fedak.
80327
80328 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
80329
80330         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
80331
80332 2000-09-25  Jim Meyering  <meyering@lucent.com>
80333
80334         * lib/md5.h (rol): Define (from GnuPG).
80335
80336         * lib/sha.c: Give credit (GnuPG) where due.
80337         (M): Use rol rather than open-coding it.
80338         Add a FIXME comment.
80339
80340 2000-09-21  Jim Meyering  <meyering@lucent.com>
80341
80342         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
80343         Reported by Michael Stone.
80344
80345 2000-09-20  Jim Meyering  <meyering@lucent.com>
80346
80347         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
80348         (noinst_HEADERS): Add sha.h.
80349         Based on code from Scott G. Miller and from GnuPG.
80350
80351 2000-09-18  Jim Meyering  <meyering@lucent.com>
80352
80353         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
80354         LIBS. Otherwise, everyone ends up linking with -lelf for some
80355         configurations.
80356         Reported by Mike Stone.
80357
80358 2000-09-15  Jim Meyering  <meyering@lucent.com>
80359
80360         * lib/regex.c: Update from libc.
80361
80362 2000-09-10  Jim Meyering  <meyering@lucent.com>
80363
80364         * lib/getopt.c (_getopt_internal): Update from glibc.
80365
80366 2000-09-09  Jim Meyering  <meyering@lucent.com>
80367
80368         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
80369         think it should be used as a general replacement for isascii.
80370         * lib/fnmatch.c: Likewise.
80371         * lib/mbswidth.c: Likewise
80372         * lib/regex.c: Likewise.
80373
80374         Don't use atoi.
80375         * lib/userspec.c: Include sys/param.h and limits.h.
80376         Include xstrtol.h.
80377         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
80378         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
80379         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
80380         UID, GID.  Check range.
80381
80382 2000-09-06  Jim Meyering  <meyering@lucent.com>
80383
80384         * lib/getopt.c (_getopt_internal): Update from glibc.
80385
80386 2000-08-30  Jim Meyering  <meyering@lucent.com>
80387
80388         * lib/strftime.c: Merge in changes from GNU libc.
80389
80390 2000-08-26  Jim Meyering  <meyering@lucent.com>
80391
80392         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
80393         * m4/fpending.m4: New file.
80394
80395 2000-08-26  Jim Meyering  <meyering@lucent.com>
80396
80397         * lib/closeout.c: Include "__fpending.h".
80398         (close_stdout_status): Return right away if there's nothing to flush.
80399
80400         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
80401         * lib/__fpending.c: New file.
80402         * lib/__fpending.h: New file.
80403
80404 2000-08-20  Jim Meyering  <meyering@lucent.com>
80405
80406         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
80407         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
80408         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
80409
80410 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
80411
80412         Improve fileutils installation on systems where running
80413         programs (like install) can't be unlinked.
80414         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
80415         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
80416
80417 2000-08-07  Paul Eggert  <eggert@twinsun.com>
80418
80419         Standardize on "memory exhausted" instead of "Memory exhausted"
80420         or "virtual memory exhausted".
80421         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
80422         "virtual memory exhausted".
80423         * lib/same.c (same_name): Invoke xalloc_die instead of printing
80424         our own message.
80425         * lib/userspec.c (parse_user_spec): Likewise.
80426         * lib/bumpalloc.h: comment fix
80427         * lib/same.c, userspec.c: Include xalloc.h.
80428
80429         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
80430         not char *const and pointing to a constant array.
80431         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
80432         (xrealloc): Comment fix.
80433
80434         * lib/userspec.c (parse_user_spec):
80435         Don't translate a message until just before returning,
80436         to avoid unnecessary translation.
80437
80438 2000-08-07  Jim Meyering  <meyering@lucent.com>
80439
80440         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
80441         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
80442         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
80443         getgroups.c, gethostname.c, getopt.h, group-member.c,
80444         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
80445         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
80446         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
80447         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
80448         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
80449         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
80450         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
80451         yesno.c: Back out Copyright date changes for each file with no change
80452         this year.  This eases coordination with other programs using the same
80453         source code modules.  From Paul Eggert.
80454
80455 2000-08-06  Paul Eggert  <eggert@twinsun.com>
80456
80457         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
80458         not char, for compatibility with glibc 2.1.3 strftime.c.
80459
80460 2000-08-03  Greg McGary  <greg@mcgary.org>
80461
80462         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
80463         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
80464         (EXTEND_BUFFER): Use them.
80465
80466 2000-08-01  Jim Meyering  <meyering@lucent.com>
80467
80468         * lib/dirname.c (ISSLASH): Define.
80469         (BACKSLASH_IS_PATH_SEPARATOR): Define.
80470         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
80471         both `\' and `/' may be use as path separators.
80472         Based on a patch from Prashant TR.
80473
80474 2000-07-31  Paul Eggert  <eggert@twinsun.com>
80475
80476         * lib/quotearg.c (quotearg_n_options): Don't make the initial
80477         slot vector a constant, since it might get modified.
80478
80479 2000-07-31  Jim Meyering  <meyering@lucent.com>
80480
80481         * lib/xmalloc.c: Use `virtual memory exhausted', not
80482         `Memory exhausted'.
80483         * lib/obstack.c (print_and_abort): Likewise.
80484
80485 2000-07-30  Paul Eggert  <eggert@twinsun.com>
80486
80487         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
80488         buffer, so that the caller can always quote one small
80489         component of a "memory exhausted" message in slot 0.
80490         From a suggestion by Jim Meyering.
80491
80492 2000-07-30  Jim Meyering  <meyering@lucent.com>
80493
80494         * lib/makepath.c (make_path): Quote the other instance, too.
80495
80496         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
80497         (STATIC_BUF_SIZE): Define.
80498         (quotearg_n_options): Use only statically allocated storage when
80499         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
80500         than STATIC_BUF_SIZE.
80501
80502 2000-07-29  Jim Meyering  <meyering@lucent.com>
80503
80504         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
80505         * lib/dirname.c (dir_name): Likewise.
80506
80507         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
80508         `/'.
80509
80510         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
80511         (dir_name): Assert that there are no trailing slashes.
80512
80513 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
80514
80515         * lib/mbswidth.h (mbswidth): Add a flags argument.
80516         (mbswidth): New declaration.
80517         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
80518         * lib/mbswidth.c (mbswidth): Add a flags argument.
80519         (mbsnwidth): New function.
80520
80521 2000-07-24  Jim Meyering  <meyering@lucent.com>
80522
80523         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
80524
80525 2000-07-23  Paul Eggert  <eggert@twinsun.com>
80526
80527         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
80528
80529 2000-07-23  Paul Eggert  <eggert@twinsun.com>
80530
80531         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
80532         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
80533         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
80534         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
80535         invoke multibyte primitives.
80536
80537 2000-07-23  Paul Eggert  <eggert@twinsun.com>
80538
80539         * lib/quotearg.c:
80540         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
80541         so that mbstate_t is always defined.
80542
80543         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
80544         be 1 in at least one GCC installation, and this configuration
80545         error is likely to be common.  Ignoring MB_LEN_MAX hurts
80546         performance on hosts that have mbrtowc but have only unibyte
80547         locales, but I assume these hosts are rare.
80548
80549 2000-07-23  Paul Eggert  <eggert@twinsun.com>
80550
80551         * lib/mbswidth.c (_XOPEN_SOURCE):
80552         Don't define; this causes problems on Solaris 7.
80553         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
80554
80555 2000-07-23  Jim Meyering  <meyering@lucent.com>
80556
80557         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
80558         too: getgrgid, getpwuid, getuid.
80559
80560 2000-07-23  Jim Meyering  <meyering@lucent.com>
80561
80562         * lib/basename.c (base_name): Add an assertion.
80563
80564 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
80565
80566         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
80567         shadow its mbsinit function.
80568
80569 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
80570
80571         * lib/mbswidth.h: New file.
80572         * lib/mbswidth.c: New file.
80573         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
80574         (noinst_HEADERS): Add mbswidth.h.
80575
80576 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
80577
80578         * lib/config.charset: Add support for FreeBSD. Improve support for
80579         HP-UX and IRIX 6.
80580
80581 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
80582
80583         * m4/mbswidth.m4: New file.
80584         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
80585
80586 2000-07-15  Jim Meyering  <meyering@lucent.com>
80587
80588         * lib/makepath.c: Include quote.h.
80589         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
80590         corresponding argument in a `quote (...)' call.
80591         Give better diagnostics.
80592
80593         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
80594         (noinst_HEADERS): Add quote.h.
80595
80596         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
80597         from tar's src/misc.c.
80598         * lib/quote.h: New file.  Prototypes for same.
80599
80600 2000-07-14  Paul Eggert  <eggert@twinsun.com>
80601
80602         From a suggestion by Bruno Haible.
80603         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
80604         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
80605         to decide whether to define the BeOS workaround macro;
80606         this adjusts to the change to AC_MBSTATE_T.
80607
80608 2000-07-14  Jim Meyering  <meyering@lucent.com>
80609
80610         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
80611         jm_AC_TYPE_UINTMAX_T.
80612
80613 2000-07-13  Paul Eggert  <eggert@twinsun.com>
80614
80615         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
80616
80617         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
80618         quotearg_buffer_restyled): Add support for
80619         clocale_quoting_style.  Undo previous change to
80620         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
80621         and "{RIGHT QUOTATION MARK}" msgids.
80622
80623 2000-07-10  Paul Eggert  <eggert@twinsun.com>
80624
80625         From a suggestion by Bruno Haible.
80626         * m4/mbstate_t.m4 (AC_MBSTATE_T):
80627         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
80628         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
80629         and mbstate_t, to a single-part test that simply defines mbstate_t.
80630         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
80631         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
80632
80633 2000-07-10  Jim Meyering  <meyering@lucent.com>
80634
80635         * m4/strerror_r.m4: Mirror the correction made in autoconf.
80636
80637         * m4/gnu-source.m4: Output to confdefs.h directly.
80638         Suggestion from Akim Demaille.
80639
80640 2000-07-09  Paul Eggert  <eggert@twinsun.com>
80641
80642         The old behavior of quoting `like this' doesn't look good with
80643         newer, ISO-style fonts.  See:
80644         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
80645
80646         Instead, quote "like this" by default.  Let the translator
80647         tailor the locale-specific quoting behavior by providing
80648         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
80649
80650         * lib/quotearg.c (N_): New macro.
80651         (gettext_default): New function.
80652         (quotearg_buffer_restyled): Use
80653         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
80654         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
80655
80656 2000-07-09  Jim Meyering  <meyering@lucent.com>
80657
80658         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
80659         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
80660
80661         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
80662         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
80663
80664 2000-07-09  Jim Meyering  <meyering@lucent.com>
80665
80666         * lib/Most files: Update copyright dates to include 2000.
80667
80668 2000-07-08  Jim Meyering  <meyering@lucent.com>
80669
80670         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
80671         if not defined.
80672         (xgethostname): Remove now-unnecessary #ifdef.
80673         Move declaration of `err' into loop where it's used.
80674
80675 2000-07-05  Paul Eggert  <eggert@twinsun.com>
80676         and Bruno Haible  <haible@clisp.cons.org>
80677
80678         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
80679         only if the test for an object-type mbstate_t fails.  This
80680         prevents us from mistakenly reporting that mbstate_t is a
80681         system object type after we "#define mbstate_t int" to work
80682         around its lack.
80683
80684 2000-07-05  Paul Eggert  <eggert@twinsun.com>
80685         and Bruno Haible  <haible@clisp.cons.org>
80686
80687         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
80688
80689 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
80690
80691         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
80692         to strerror_r.
80693         Include <ctype.h> for use of isalpha.
80694
80695 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
80696
80697         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
80698         by allocating a larger buffer. Test the gethostname return value for
80699         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
80700         returns an error and ENAMETOOLONG isn't defined.
80701
80702 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
80703
80704         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
80705         dimension.
80706
80707 2000-07-04  Jim Meyering  <meyering@lucent.com>
80708
80709         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
80710         of the deprecated AC_CHECKING.
80711
80712 2000-07-04  Jim Meyering  <meyering@lucent.com>
80713
80714         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
80715         Reported by Bruno Haible.
80716
80717 2000-07-04  Jim Meyering  <meyering@lucent.com>
80718
80719         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
80720         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
80721         lacks mbrtowc.
80722
80723 2000-07-03  Paul Eggert  <eggert@twinsun.com>
80724
80725         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
80726         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
80727
80728 2000-07-03  Paul Eggert  <eggert@twinsun.com>
80729         and Bruno Haible  <haible@clisp.cons.org>
80730
80731         * lib/quotearg.c (mbrtowc):
80732         Assign to *pwc, and return 1 only if result is nonzero.
80733         (iswprint): Use ISPRINT when substituting our own mbrtowc.
80734
80735 2000-07-03  Jim Meyering  <meyering@lucent.com>
80736
80737         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
80738
80739 2000-07-03  Jim Meyering  <meyering@lucent.com>
80740
80741         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
80742         This is necessary to get a definition of e.g., UTMP_FILE on
80743         HP-UX 10.20.
80744         From Bob Proulx.
80745
80746 2000-07-02  Jim Meyering  <meyering@lucent.com>
80747
80748         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
80749
80750         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
80751         AC_LIBOBJ(function_name).
80752         * m4/chown.m4: Likewise.
80753         * m4/fnmatch.m4: Likewise.
80754         * m4/ftruncate.m4: Likewise.
80755         * m4/getgroups.m4: Likewise.
80756         * m4/getline.m4: Likewise.
80757         * m4/group-member.m4: Likewise.
80758         * m4/jm-macros.m4: Likewise.
80759         * m4/lstat.m4: Likewise.
80760         * m4/malloc.m4: Likewise.
80761         * m4/memcmp.m4: Likewise.
80762         * m4/nanosleep.m4: Likewise.
80763         * m4/putenv.m4: Likewise.
80764         * m4/realloc.m4: Likewise.
80765         * m4/regex.m4: Likewise.
80766         * m4/stat.m4: Likewise.
80767         * m4/strftime.m4: Likewise.
80768
80769 2000-07-02  Jim Meyering  <meyering@lucent.com>
80770
80771         * lib/quotearg.c (mbstate_t): Don't define here.
80772
80773 2000-07-02  Jim Meyering  <meyering@lucent.com>
80774
80775         * lib/nanosleep.c (SIGCONT): Define if not already defined.
80776
80777 2000-07-01  Jim Meyering  <meyering@lucent.com>
80778
80779         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
80780
80781 2000-07-01  Jim Meyering  <meyering@lucent.com>
80782
80783         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
80784         problem.
80785
80786 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
80787
80788         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
80789         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
80790
80791 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
80792
80793         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
80794         per change in ../m4/ls-mntd-fs.m4.
80795         (read_filesystem_list): Ignore symbolic links.
80796
80797 2000-06-29  Jim Meyering  <meyering@lucent.com>
80798
80799         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
80800         for declaration of strcmp.
80801
80802         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
80803
80804         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
80805         Avoid warning by casting result to `char *' to remove `const'.
80806
80807 2000-06-28  Jim Meyering  <meyering@lucent.com>
80808
80809         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
80810         included by quotearg.c, for which we perform this test.  From
80811         Bruno Haible.
80812
80813 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
80814
80815         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
80816         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
80817         <utmpx.h> exists, put readutmp.o into LIBOBJS.
80818
80819 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
80820
80821         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
80822
80823 2000-06-26  Paul Eggert  <eggert@twinsun.com>
80824
80825         savedir now sets errno on failure and invokes xmalloc to get memory.
80826         Fix a couple of other minor bugs while we're at it.
80827
80828         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
80829         (NAMLEN): Remove macro.
80830         (malloc, realloc): Remove decls.
80831         (stpcpy): Likewise.
80832         ("xalloc.h"): Include.
80833         (NAME_SIZE_DEFAULT): New macro.
80834         (savedir): Use xmalloc / xrealloc to allocate memory.
80835         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
80836         Skip "" directory entries.
80837         Use strlen to calculate directory entry length, since the old method
80838         is rarely used these days and isn't worth supporting.
80839         Don't use a pointer after freeing it.
80840         Check for integer overflow when calculating allocation size.
80841         Use memcpy to copy entries, instead of stpcpy.
80842         Set errno properly when returning NULL.
80843         Check for readdir error.
80844
80845 2000-06-26  Jim Meyering  <meyering@lucent.com>
80846
80847         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
80848
80849 2000-06-25  Jim Meyering  <meyering@lucent.com>
80850
80851         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
80852         Linux header bug when _XOPEN_SOURCE is defined to 500.
80853
80854 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
80855
80856         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
80857         deficiency.
80858
80859 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
80860
80861         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
80862         Include xalloc.h.
80863         Don't include <stdlib.h>.  Don't declare malloc, realloc.
80864
80865 2000-06-24  Jim Meyering  <meyering@lucent.com>
80866
80867         * m4/strerror_r.m4: Revive this file -- to try out an experimental
80868         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
80869         for which strerror does return char*, but which lacks a conveniently
80870         accessible declaration of the function.  If the compile-test says
80871         strerror_r doesn't work, then resort to a `run'-test that works on
80872         BeOS and segfaults on DEC Unix.
80873
80874 2000-06-24  Jim Meyering  <meyering@lucent.com>
80875
80876         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
80877
80878 2000-06-23  Paul Eggert  <eggert@twinsun.com>
80879
80880         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
80881         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
80882
80883 2000-06-23  Paul Eggert  <eggert@twinsun.com>
80884
80885         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
80886         (mbrtowc, mbstate_t): Define substitutes if
80887         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
80888         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
80889         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
80890
80891 2000-06-23  Jim Meyering  <meyering@lucent.com>
80892
80893         * m4/afs.m4: Add missing AC_MSG_RESULT.
80894         Reported by Bruno Haible.
80895
80896         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
80897         Suggestion from Bruno Haible.
80898
80899 2000-06-23  Jim Meyering  <meyering@lucent.com>
80900
80901         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
80902
80903 2000-06-21  Jim Meyering  <meyering@lucent.com>
80904
80905         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
80906
80907 2000-06-21  Jim Meyering  <meyering@lucent.com>
80908
80909         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
80910         (noinst_HEADERS): Add getstr.h.
80911
80912         * lib/getline.c (getstr): Move into a separate file.
80913         * lib/getstr.c (getstr): New file, extracted from getline.c, with
80914         the following changes: new parameter, delim2; both delim[12]
80915         parameters have type `int', not `char'.  The latter would lose
80916         with 8-bit delimiters.
80917         * lib/getstr.h: New file.
80918
80919 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
80920
80921         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
80922         than 1024, return a memory chunk of least possible size, instead
80923         of size PATH_MAX + 2. In the loop, increment the size proportionally.
80924         Use free/xmalloc instead of xrealloc to avoid copying for very long
80925         paths.
80926
80927 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
80928
80929         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
80930         the empty string.
80931
80932 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
80933
80934         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
80935         address, not strdup.  Include <stdlib.h> and don't declare free().
80936
80937 2000-06-19  Jim Meyering  <meyering@lucent.com>
80938
80939         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
80940
80941 2000-06-18  Jim Meyering  <meyering@lucent.com>
80942
80943         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
80944
80945         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
80946         `checking whether...' message to be consistent with that of the
80947         lstat test.
80948
80949 2000-06-18  Jim Meyering  <meyering@lucent.com>
80950
80951         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
80952         Besides, these days every porting target provides a mkdir function.
80953
80954         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
80955         needed. (this snippet comes from src/system.h).
80956
80957 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
80958
80959         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
80960
80961 2000-06-15  Paul Eggert  <eggert@twinsun.com>
80962
80963         * lib/human.c (adjust_value): New function.
80964         (human_readable_inexact): Apply rounding style even when
80965         printing approximate values.
80966
80967 2000-06-14  Paul Eggert  <eggert@twinsun.com>
80968
80969         * lib/human.c (human_readable_inexact): Allow an input block
80970         size that is not a multiple of the output block size, and vice versa.
80971         Reported by Piergiorgio Sartor.
80972
80973 2000-06-14  Paul Eggert  <eggert@twinsun.com>
80974
80975         * lib/getdate.y (get_date): Apply relative times after time
80976         zone indicator, not before.  Reported by Todd A. Jacobs.
80977
80978 2000-06-13  Jim Meyering  <meyering@lucent.com>
80979
80980         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
80981
80982         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
80983
80984 2000-06-12  Paul Eggert  <eggert@twinsun.com>
80985
80986         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
80987
80988 2000-06-12  Jim Meyering  <meyering@lucent.com>
80989
80990         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
80991         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
80992         optional argument.
80993         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
80994         the optional argument, `lib'.
80995
80996 2000-06-08  Jim Meyering  <meyering@lucent.com>
80997
80998         * m4/largefile.m4: Remove file (now that it's part of autoconf).
80999
81000 2000-06-04  Paul Eggert  <eggert@twinsun.com>
81001
81002         Rewrite largefile configuration so that we don't need to run
81003         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
81004         AC_CANONICAL_HOST in configure.in -- jmm]
81005
81006         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
81007         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
81008         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
81009         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
81010         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
81011         All uses changed.
81012         Instead of inspecting the output of getconf, try to compile the
81013         test program without and with the macro definition.
81014         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
81015         for getconf.  Instead, check for the needed flags by compiling
81016         test programs.
81017
81018 2000-06-04  Paul Eggert  <eggert@twinsun.com>
81019
81020         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
81021
81022 2000-06-04  Jim Meyering  <meyering@lucent.com>
81023
81024         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
81025         SunOS 4.1.4 for which gid_t is an unsigned type.
81026
81027 2000-06-03  Jim Meyering  <meyering@lucent.com>
81028
81029         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
81030         now that autoconf requires that.
81031
81032         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
81033         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
81034         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
81035
81036 2000-06-03  Jim Meyering  <meyering@lucent.com>
81037
81038         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
81039
81040 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
81041
81042         * m4/glibc21.m4: New file.
81043         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
81044
81045 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
81046
81047         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
81048         newer, don't install charset.alias.
81049         * lib/config.charset: Change the Linux/glibc rules so they become empty
81050         on glibc-2.1 or newer.
81051
81052 2000-06-02  Jim Meyering  <meyering@lucent.com>
81053
81054         * lib/mountlist.c: Back out last change.  Instead, do this...
81055         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
81056         me_dummy member using the same `ignore'-testing code.
81057         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
81058         fs_type strings.
81059         From Mark D. Roth.
81060
81061 2000-05-29  Jim Meyering  <meyering@lucent.com>
81062
81063         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
81064         mounts with the `ignore' attribute.  Based on a patch from
81065         Mark D. Roth.
81066
81067 2000-05-28  Jim Meyering  <meyering@lucent.com>
81068
81069         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
81070         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
81071         * m4/stat.m4: Likewise.
81072         * m4/lstat.m4: Likewise.
81073         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
81074
81075         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
81076         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
81077
81078 2000-05-26  Jim Meyering  <meyering@lucent.com>
81079
81080         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
81081
81082 2000-05-24  Jim Meyering  <meyering@lucent.com>
81083
81084         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
81085         autoconf requires that.
81086         * m4/lib-check.m4: Likewise.
81087         * m4/jm-macros.m4: Likewise.
81088         * m4/strftime.m4: Likewise.
81089
81090         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
81091         AC_CHECK_DECLS, now that autoconf requires that.
81092
81093 2000-05-22  Jim Meyering  <meyering@lucent.com>
81094
81095         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
81096         * m4/lstat.m4: Likewise.
81097
81098 2000-05-22  Jim Meyering  <meyering@lucent.com>
81099
81100         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
81101
81102 2000-05-20  Jim Meyering  <meyering@lucent.com>
81103
81104         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
81105         (jm_PREREQ): Use it.
81106
81107 2000-05-18  Jim Meyering  <meyering@lucent.com>
81108
81109         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
81110         back, too, since it may have been modified by allocate_entry.
81111         (hash_delete): Rewrite to use neither the assignment operator
81112         nor the comma operator in an if-expression.
81113
81114 2000-05-15  Paul Eggert  <eggert@twinsun.com>
81115
81116         * lib/closeout.c:
81117         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
81118         Remove; no longer needed.
81119         "quotearg.h": Add include.
81120         (file_name): Do not bother to explicitly initialize to NULL; it's less
81121         efficient on some hosts.
81122         (close_stdout_status): Remove test as to whether stdout was already
81123         closed; it breaks for the case "echo x | sort >&-".
81124         Quote file name colons.
81125         Do not assume that _("write error") lacks format strings.
81126
81127 2000-05-15  Jim Meyering  <meyering@lucent.com>
81128
81129         * lib/version-etc.c (version_etc_copyright): Update the copyright
81130         string used in all --version output.
81131
81132 2000-05-14  Jim Meyering  <meyering@lucent.com>
81133
81134         * lib/closeout.c (close_stdout_set_file_name): New function.
81135         (close_stdout_status): Use new file-scoped global.
81136         Return right away if fstat says the stdout file descriptor is invalid.
81137         * lib/closeout.h (close_stdout_set_file_name): Declare.
81138
81139 2000-05-10  Jim Meyering  <meyering@lucent.com>
81140
81141         * lib/closeout.c [default_exit_status]: New file-scoped variable.
81142         (close_stdout_set_status): New function.
81143         * lib/closeout.h (close_stdout_set_status): Declare.
81144
81145 2000-05-09  Jim Meyering  <meyering@lucent.com>
81146
81147         * m4/gettext.m4: Rename this...
81148         * m4/libintl.m4: ...to this.
81149
81150 2000-05-08  Jim Meyering  <meyering@lucent.com>
81151
81152         * lib/long-options.c: Don't include closeout.h.
81153         (parse_long_options): Don't call close_stdout for --version.
81154
81155 2000-05-06  Paul Eggert  <eggert@twinsun.com>
81156
81157         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
81158         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
81159         2.1.3 bug.  This avoids a clash when files like regex.c define
81160         _GNU_SOURCE.
81161
81162 2000-05-06  Jim Meyering  <meyering@lucent.com>
81163
81164         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
81165         (AC_REPLACE_FUNCS): Add strnlen.
81166
81167         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
81168         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
81169
81170         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
81171         AC_SEARCH_LIBS call for nanosleep.
81172         (LIB_NANOSLEEP): Set and AC_SUBST.
81173
81174 2000-05-06  Jim Meyering  <meyering@lucent.com>
81175
81176         * lib/strnlen.c: Undefine __strnlen and strnlen.
81177         [!weak_alias]: Define __strnlen to strnlen.
81178
81179         * lib/atexit.c: New file, from libiberty.
81180
81181 2000-05-06  Jim Meyering  <meyering@lucent.com>
81182
81183         * lib/closeout.c (close_stdout_status): Also check for errors on the
81184         stderr stream.
81185
81186 2000-05-05  Jim Meyering  <meyering@lucent.com>
81187
81188         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
81189         AC_SEARCH_LIBS call for clock_gettime.
81190         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
81191
81192         * m4/search-libs.m4: Update from autoconf.
81193
81194         su doesn't work on Solaris 2.6.
81195         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
81196         <shadow.h>.  Reported by Dragos Harabor.
81197
81198 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
81199
81200         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
81201         memcpy instead of xmalloc, xrealloc, path_concat.
81202         (locale_charset): Treat empty environment variables as absent.
81203         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
81204
81205 2000-05-04  Jim Meyering  <meyering@lucent.com>
81206
81207         * lib/getopt.c: Update from glibc.
81208         * lib/obstack.c: Likewise.
81209         * lib/obstack.h: Likewise.
81210         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
81211         file
81212
81213         * lib/regex.h: Likewise.
81214         * lib/strndup.c: Likewise.
81215         * lib/strnlen.c: New file, from glibc.
81216
81217 2000-05-03  Jim Meyering  <meyering@lucent.com>
81218
81219         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
81220
81221 2000-05-02  Paul Eggert  <eggert@twinsun.com>
81222
81223         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
81224         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
81225         compile-time test, rather than inspecting host and OS, to
81226         decide whether to define _LARGEFILE_SOURCE.
81227
81228 2000-05-01  Jim Meyering  <meyering@lucent.com>
81229
81230         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
81231
81232         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
81233         Based on a patch from Bruno Haible.
81234
81235 2000-05-01  Jim Meyering  <meyering@lucent.com>
81236
81237         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
81238
81239 2000-04-29  Jim Meyering  <meyering@lucent.com>
81240
81241         * lib/path-concat.c: Declare strdup only if it's not defined.
81242         * lib/canon-host.c: Likewise.
81243
81244 2000-04-28  Jim Meyering  <meyering@lucent.com>
81245
81246         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
81247         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
81248         is included first, then limits.h is included by locale.h by libintl.h.
81249         From John David Anglin.
81250
81251 2000-04-25  Jim Meyering  <meyering@lucent.com>
81252
81253         * lib/makepath.c (S_IRWXUGO): Define.
81254         (make_path): Always perform explicit chmod if MODE specifies any
81255         of the `special' permission bits.  Prompted by a bug report against
81256         install from Mate Wierdl and Joost van Baal.
81257
81258 2000-04-18  Jim Meyering  <meyering@lucent.com>
81259
81260         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
81261         (jm_PREREQ): Use it.
81262
81263 2000-04-18  Jim Meyering  <meyering@lucent.com>
81264
81265         * lib/README: New file.
81266
81267         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
81268         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
81269
81270 2000-04-17  Jim Meyering  <meyering@lucent.com>
81271
81272         Get it right :-)
81273         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
81274         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
81275         Suggestion from Akim Demaille.
81276
81277 2000-04-17  Jim Meyering  <meyering@lucent.com>
81278
81279         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
81280         the definition of it to rpl_strftime also defined-away the system's
81281         declaration.
81282
81283 2000-04-15  Jim Meyering  <meyering@lucent.com>
81284
81285         Use `C' to denote so-called `contiguous' files, the same way
81286         that tar does.
81287         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
81288         (ftypelet): Use S_ISCTG.
81289         From Michael Deutschmann.
81290
81291 2000-04-14  Jim Meyering  <meyering@lucent.com>
81292
81293         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
81294         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
81295         clobbered.
81296
81297 2000-04-14  Jim Meyering  <meyering@lucent.com>
81298
81299         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
81300
81301 2000-04-13  Jim Meyering  <meyering@lucent.com>
81302
81303         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
81304         AH_VERBATIM to insert required #ifndef into config.h.in.
81305         Suggestion from Akim Demaille.
81306
81307 2000-04-12  Jim Meyering  <meyering@lucent.com>
81308
81309         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
81310         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
81311         Christian Krackowizer.
81312
81313         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
81314         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
81315         (AC_SYS_LARGEFILE): Require.
81316         (AM_C_PROTOTYPES): Require.
81317
81318 2000-04-08  Jim Meyering  <meyering@lucent.com>
81319
81320         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
81321         names don't conflict.  Reported by Eli Zaretskii.
81322
81323 2000-04-07  Jim Meyering  <meyering@lucent.com>
81324
81325         * lib/putenv.c: Move inclusion of errno.h so it follows that of
81326         sys/types.h, to work around system header problems on AIX 3.2.5.
81327         From Bruno Haible.
81328
81329 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
81330
81331         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
81332         bug.  Deal with the different error behavior of Irix iconv.
81333
81334 2000-04-05  Paul Eggert  <eggert@twinsun.com>
81335
81336         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
81337         IRIX if the installer said otherwise.
81338
81339 2000-04-05  Jim Meyering  <meyering@lucent.com>
81340
81341         Portability tweaks required for ultrix4.3.
81342         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
81343         (jm_CHECK_DECLS): Add getutent to the list of functions.
81344         (_jm_DECL_HEADERS): Add utmpx.h.
81345         From John David Anglin.
81346
81347         * m4/strftime.m4: Back out the 2000-04-02 change.
81348         Instead of that change, simply undefine putenv in the test program.
81349
81350 2000-04-05  Jim Meyering  <meyering@lucent.com>
81351
81352         Portability tweaks required for ultrix4.3.
81353         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
81354         getutent.
81355         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
81356         * lib/canon-host.c: Declare strdup.
81357         * lib/path-concat.c: Likewise.
81358         From John David Anglin.
81359
81360 2000-04-04  Jim Meyering  <meyering@lucent.com>
81361
81362         Be more DOS 8.3-friendly.
81363         * lib/ref-add.sin: Renamed from ref-add.sed.in.
81364         * lib/ref-del.sin: Renamed from ref-del.sed.in.
81365         * lib/Makefile.am: Reflect renaming.
81366         Reported by Eli Zaretskii.
81367
81368         Use a temporary file name that won't clash with `charset.alias'
81369         in the DOS 8.3 name space.
81370         * lib/Makefile.am (charset_tmp): Define.
81371         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
81372         (uninstall-local): Likewise.
81373         Reported by Eli Zaretskii.
81374
81375 2000-04-03  Jim Meyering  <meyering@lucent.com>
81376
81377         * m4/gettext.m4: Fix typo in comment.
81378
81379         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
81380         textutils/configure.in).  Suggestion from Paul Eggert.
81381         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
81382
81383 2000-04-02  Paul Eggert  <eggert@twinsun.com>
81384
81385         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
81386         variable in the shell rather than using putenv, which isn't
81387         portable.  This avoids the configure-time inter-test dependency
81388         on the potentially-renamed putenv function.
81389
81390 2000-03-30  Paul Eggert  <eggert@twinsun.com>
81391
81392         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
81393         before checking struct stat.st_blksize, so that
81394         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
81395
81396 2000-03-29  Paul Eggert  <eggert@twinsun.com>
81397
81398         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
81399         since strftime.c uses HAVE_STRFTIME to decide whether to use
81400         the underlying strftime.
81401
81402 2000-03-29  Paul Eggert  <eggert@twinsun.com>
81403
81404         * lib/time/strftime.c (my_strftime): Make sure we call the system
81405         strftime, not ourselves, when invoking the underlying strftime.
81406
81407 2000-03-24  Jim Meyering  <meyering@lucent.com>
81408
81409         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
81410         (charset_alias): Define.
81411         (install-exec-local): Factor out common code.
81412         (uninstall-local): Split lines longer than 80.
81413         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
81414         (SUFFIXES): Define.
81415         (.sed.in.sed): New rule.  Don't redirect directly to $@.
81416         (CLEANFILES): Add ref-add.sed and ref-del.sed.
81417
81418 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
81419
81420         * lib/config.charset: Output a line containing "Packages using this
81421         file".
81422         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
81423         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
81424         ref-del.sed): New rules.
81425
81426 2000-03-17  Jim Meyering  <meyering@lucent.com>
81427
81428         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
81429         Otherwise, include <strings.h>
81430
81431 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
81432
81433         * lib/unicodeio.c (utf8_wctomb): New function.
81434         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
81435         format instead of in UCS-4 with platform dependent endianness.
81436
81437 2000-03-10  Jim Meyering  <meyering@lucent.com>
81438
81439         * m4/lib-check.m4: Look for getspnam in -lgen, too.
81440         From Marco Franzen.
81441
81442 2000-03-07  Paul Eggert  <eggert@twinsun.com>
81443
81444         * lib/savedir.c (savedir): Work even if directory size is
81445         negative; this can happen with some screwy NFS configurations.
81446
81447 2000-03-06  Jim Meyering  <meyering@lucent.com>
81448
81449         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
81450         if it's NULL (because we ran out of memory).  From Bruno Haible.
81451
81452 2000-03-05  Jim Meyering  <meyering@lucent.com>
81453
81454         * lib/localcharset.c ("path-concat.h"): Include.
81455         (get_charset_aliases): Use path_concat instead of ANSI string
81456         concatenation.
81457
81458         * lib/unicodeio.h (PARAMS): Define.
81459         Use it to guard prototype.
81460
81461 2000-03-04  Jim Meyering  <meyering@lucent.com>
81462
81463         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
81464         for lib/localcharset.c.
81465
81466 2000-03-04  Jim Meyering  <meyering@lucent.com>
81467
81468         * lib/Makefile.am (install-exec-local): Create $(libdir) before
81469         installing into it.
81470         (uninstall-local): Uncomment this rule so `make distcheck' works
81471         once again.
81472
81473         * lib/unicodeio.c (<errno.h>): Include it.
81474         (errno): Declare if not defined.
81475
81476         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
81477
81478         * lib/config.charset: New version, incorporating remarks from a linux
81479         i18n mailing list.  From Bruno Haible.
81480
81481 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
81482
81483         * m4/codeset.m4: New file.
81484         * m4/iconv.m4: New file.
81485         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
81486
81487 2000-03-03  Jim Meyering  <meyering@lucent.com>
81488
81489         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
81490
81491 2000-03-02  Jim Meyering  <meyering@lucent.com>
81492
81493         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
81494         the messages come out on separate lines.
81495
81496         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
81497         rather than jm_CHECK_DECLARATIONS.
81498         * m4/decl.m4: Remove now-unused file.
81499
81500         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
81501         geteuid.
81502
81503 2000-03-02  Jim Meyering  <meyering@lucent.com>
81504
81505         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
81506
81507 2000-03-01  Jim Meyering  <meyering@lucent.com>
81508
81509         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
81510         * lib/unicodeio.c: Likewise.
81511
81512 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
81513
81514         * lib/config.charset: New file.
81515         * lib/localcharset.c: New file.
81516         * lib/unicodeio.h, lib/unicodeio.c: New files.
81517         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
81518         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
81519         (noinst_HEADERS): Add unicodeio.h.
81520         (all-local, install-exec-local, charset.alias): New targets.
81521
81522 2000-02-28  Paul Eggert  <eggert@twinsun.com>
81523
81524         * lib/quotearg.c (ALERT_CHAR): New macro.
81525         (quotearg_buffer_restyled): Use it.
81526
81527 2000-02-27  Jim Meyering  <meyering@lucent.com>
81528
81529         * m4/check-decl.m4: Add getenv to the list.
81530
81531 2000-02-27  Jim Meyering  <meyering@lucent.com>
81532
81533         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
81534         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
81535
81536         * lib/backupfile.c: Guard inclusion of stdlib.h with
81537         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
81538         Declare malloc if needed.
81539
81540         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
81541         `#ifndef HAVE_DECL..'
81542         now that autoconf always defines the HAVE_DECL_ symbols.
81543         * lib/human.c: Likewise.
81544         * lib/same.c: Likewise.
81545         * lib/strtoumax.c: Likewise.
81546
81547         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
81548         declaration check was not run.
81549         * lib/hash.c: Likewise.
81550         * lib/human.c: Likewise.
81551         * lib/same.c: Likewise.
81552         * lib/strtoumax.c: Likewise.
81553
81554         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
81555         `.', then first look up the entire `.'-containing string as a login
81556         name.
81557
81558 2000-02-23  Jim Meyering  <meyering@lucent.com>
81559
81560         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
81561         in place of my hack.
81562
81563 2000-02-18  Paul Eggert  <eggert@twinsun.com>
81564
81565         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
81566         (textint): New typedef.
81567         (parser_control): Member year changed from int to textint.
81568         All uses changed.
81569         (YYSTYPE): Removed; replaced by %union with int and textint members.
81570         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
81571         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
81572         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
81573         (tSNUMBER, tUNUMBER): Now of type <textintval>.
81574         (date, number, to_year): Use width of number in digits, not its value,
81575         to determine whether it's a 2-digit year, or a 2-digit time.
81576         (yylex): Store number of digits of numeric tokens.
81577         Reported by John Kendall.
81578
81579         (parser_control): Changed from struct parser_control to typedef (for
81580         consistency).  All uses changed.
81581
81582         (tID): Removed; not used.
81583         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
81584
81585 2000-02-14  Paul Eggert  <eggert@twinsun.com>
81586
81587         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
81588         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
81589
81590 2000-02-12  Jim Meyering  <meyering@lucent.com>
81591
81592         * lib/userspec.c (ISDIGIT): Define it.
81593         (isdigit): Remove definition.
81594         (is_number): Use ISDIGIT, not isdigit.
81595         <libintl.h>: Include.
81596         (_ and N_): Define.
81597         (parse_user_spec): Mark translatable strings.
81598
81599 2000-02-10  Jim Meyering  <meyering@lucent.com>
81600
81601         With these changes, nanosleep.[ch] are finally enough like the other
81602         lib/* replacement files to compile on a few more losing systems.
81603
81604         * lib/nanosleep.h: Don't include config.h.
81605         Remove prototype from declaration of nanosleep.
81606         (PARAMS): Remove now-unneeded definition.
81607         * lib/nanosleep.c: #undef nanosleep.
81608         (rpl_nanosleep): Rename from nanosleep.
81609
81610 2000-02-10  Jim Meyering  <meyering@lucent.com>
81611
81612         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
81613         gnu_nanosleep to rpl_nanosleep.
81614
81615 2000-02-09  Jim Meyering  <meyering@lucent.com>
81616
81617         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
81618         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
81619
81620 2000-02-08  Akim Demaille  <akim@epita.fr>
81621
81622         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
81623         `[' and `]' and remove uses of `changequote'.
81624         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
81625         (AC_SYS_LARGEFILE): Likewise.
81626         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
81627         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
81628         of changequote.
81629         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
81630         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
81631         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
81632         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
81633
81634 2000-02-05  Jim Meyering  <meyering@lucent.com>
81635
81636         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
81637         Remove explicit use of AC_HEADER_TIME.  It is required by
81638         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
81639         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
81640         in autoconf whereby the expansion of the latter ended up preceding
81641         the expansion of its prerequisite, AC_HEADER_TIME.
81642         Reported by Volker Borchert.
81643
81644 2000-02-03  Jim Meyering  <meyering@lucent.com>
81645
81646         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
81647
81648 2000-02-03  Jim Meyering  <meyering@lucent.com>
81649
81650         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
81651         rather than with `#if HAVE_UTMPNAME'.
81652
81653 2000-02-02  Jim Meyering  <meyering@lucent.com>
81654
81655         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
81656         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
81657         Reported by Eli Zaretskii.
81658
81659 2000-02-01  Jim Meyering  <meyering@lucent.com>
81660
81661         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
81662
81663 2000-01-31  Jim Meyering  <meyering@lucent.com>
81664
81665         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
81666         functions.  Add the time.h and sys/time.h headers along with the
81667         AC_REQUIRE'ment of AC_HEADER_TIME.
81668
81669 2000-01-31  Jim Meyering  <meyering@lucent.com>
81670
81671         * lib/nanosleep.h (nanosleep): Guard declaration with
81672         `#if ! HAVE_DECL_NANOSLEEP'.
81673         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
81674         the declaration in that vendor's sys/timers.h.
81675         Reported by Christian Krackowizer.
81676
81677         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
81678         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
81679         (ISPRINT): Likewise.
81680         Reported by Tom Tromey.
81681
81682 2000-01-30  Jim Meyering  <meyering@lucent.com>
81683
81684         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
81685
81686         * m4/prereq.m4 (utmp_includes): Define.
81687         Check for ut_user and ut_name members in both struct utmpx
81688         and struct utmp.
81689
81690 2000-01-30  Jim Meyering  <meyering@lucent.com>
81691
81692         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
81693         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
81694         header files where only utmpx.ut_user is declared.
81695
81696         * lib/readutmp.h (UT_USER): Define.
81697
81698 2000-01-29  Jim Meyering  <meyering@lucent.com>
81699
81700         * m4/lib-check.m4: New file containing library-related checks from
81701         fileutils and sh-utils (textutils had none).
81702
81703 2000-01-28  Jim Meyering  <meyering@lucent.com>
81704
81705         * m4/perl.m4: Change format of warning message to look more like that
81706         from the missing script.  Suggestion from François Pinard.
81707
81708 2000-01-25  Jim Meyering  <meyering@lucent.com>
81709
81710         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
81711         well as time.h in the compile check.
81712         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
81713         Fix typo in cross-compiling case: s/yes/no/.
81714
81715 2000-01-23  Jim Meyering  <meyering@lucent.com>
81716
81717         * m4/jm-macros.m4: Move df-related tests here from
81718         fileutils/configure.in
81719
81720         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
81721         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
81722
81723         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
81724         s/space/ac_fsusage_space/.
81725         (jm_FILE_SYSTEM_USAGE): Take two parameters.
81726
81727         * m4/ftruncate.m4: New file (derived from part of
81728         fileutils/configure.in).
81729         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
81730         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
81731
81732         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
81733         AC_SUBST these here, rather than just in sh-util/configure.in, so
81734         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
81735         all the same.
81736         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
81737         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
81738         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
81739         (AC_SUBST(POW_LIBM)): Likewise.
81740         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
81741
81742 2000-01-23  Jim Meyering  <meyering@lucent.com>
81743
81744         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
81745         obstack.c.
81746
81747 2000-01-22  Jim Meyering  <meyering@lucent.com>
81748
81749         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
81750
81751         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
81752
81753         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
81754         configure.in
81755         (AC_CHECK_HEADERS): Likewise for sh-utils.
81756         (AC_CHECK_HEADERS): Likewise for textutils.
81757         Merge the three lists of headers.
81758
81759         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
81760         from fileutils' configure.in.
81761
81762         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
81763         code. Moved tests into their own function (_jm_DECL_HEADERS) in
81764         check-decl.m4.
81765
81766         * m4/check-decl.m4: Use #if rather than #ifdef.
81767         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
81768         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
81769         (_jm_DECL_HEADERS): Define new function.
81770         (jm_CHECK_DECLARATIONS): Require it.
81771
81772 2000-01-22  Jim Meyering  <meyering@lucent.com>
81773
81774         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
81775         [! HAVE_DECL_STRTOULL]: Declare strtoull.
81776         Required for some AIX systems.  Reported by Christian Krackowizer.
81777         [TESTING] (main): New function.
81778
81779         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
81780         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
81781         letters.
81782
81783         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
81784         iswprint.
81785
81786         * lib/strverscmp.c (ISDIGIT): Define.
81787         (strverscmp): Use ISDIGIT, not isdigit.
81788
81789 2000-01-19  Jim Meyering  <meyering@lucent.com>
81790
81791         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
81792         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
81793         defines `struct timespec' in <sys/time.h>
81794
81795         * m4/c-bs-a.m4: Remove uses of changequote altogether.
81796         Thanks to Akim for explaining.
81797
81798 2000-01-17  Paul Eggert  <eggert@twinsun.com>
81799
81800         * lib/nanosleep.c (nanosleep):
81801         Don't use SA_INTERRUPT to decide whether to call sigaction, as
81802         POSIX.1 doesn't require SA_INTERRUPT and some systems
81803         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
81804         it's been part of POSIX.1 since day 1 (in 1988).
81805
81806 2000-01-17  Jim Meyering  <meyering@lucent.com>
81807
81808         * lib/interlock: Remove unused file.  Reported by François Pinard.
81809
81810 2000-01-16  Paul Eggert  <eggert@twinsun.com>
81811
81812         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
81813         alert, backslash, formfeed, and vertical tab unnecessarily in
81814         shell quoting style.
81815
81816 2000-01-16  Jim Meyering  <meyering@lucent.com>
81817
81818         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
81819         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
81820         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
81821         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
81822
81823 2000-01-16  Jim Meyering  <meyering@lucent.com>
81824
81825         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
81826         because the latter didn't work.
81827
81828 2000-01-15  Jim Meyering  <meyering@lucent.com>
81829
81830         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
81831         (AC_REPLACE_FUNCS): Add memcpy and memset.
81832         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
81833         Add strpbrk.
81834         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
81835
81836 2000-01-12  Jim Meyering  <meyering@lucent.com>
81837
81838         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
81839         (jm_PREREQ): Use it.
81840         (jm_PREREQ_READUTMP): New macro.
81841         (jm_PREREQ): Use it.
81842
81843 2000-01-11  Paul Eggert  <eggert@twinsun.com>
81844
81845         Quote multibyte characters correctly.
81846         * m4/c-bs-a.m4: New file.
81847         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
81848         (jm_PREREQ): Use it.
81849
81850 2000-01-11  Paul Eggert  <eggert@twinsun.com>
81851
81852         * m4/uintmax_t.m4: Port to autoconf 2.13.
81853
81854 2000-01-08  Jim Meyering  <meyering@ascend.com>
81855
81856         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
81857         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
81858
81859 2000-01-04  Jim Meyering  <meyering@ascend.com>
81860
81861         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
81862         jm_STRUCT_DIRENT_D_TYPE.
81863         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
81864         jm_STRUCT_DIRENT_D_INO.
81865         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
81866         jm_STRUCT_UTIMBUF.
81867         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
81868         renamings.
81869         * m4/utime.m4: Likewise.
81870
81871         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
81872         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
81873
81874 2000-01-03  Paul Eggert  <eggert@twinsun.com>
81875
81876         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
81877         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
81878
81879 2000-01-02  Jim Meyering  <meyering@ascend.com>
81880
81881         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
81882         remember if this is necessary.
81883
81884 1999-12-26  Jim Meyering  <meyering@ascend.com>
81885
81886         * m4/jm-macros.m4: Use it here.
81887         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
81888
81889 1999-12-23  Jim Meyering  <meyering@ascend.com>
81890
81891         * m4/jm-macros.m4: Check for clock_gettime (moved from
81892         fileutils/configure.in)
81893         Check for gettimeofday.
81894
81895 1999-12-20  Jim Meyering  <meyering@ascend.com>
81896
81897         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
81898         autoconf-2.14a-1999-12-20.
81899
81900 1999-12-19  Jim Meyering  <meyering@ascend.com>
81901
81902         * m4/lstat-slash.m4: New file.
81903         * m4/jm-macros.m4: Use the new macro:
81904         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
81905
81906 1999-12-07  Jim Meyering  <meyering@ascend.com>
81907
81908         * m4/perl.m4: Require that File::Compare be available, too.
81909         Too many systems seem to lack it.
81910
81911         * m4/strftime.m4: Add checks for most of the cpp macros tested in
81912         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
81913
81914 1999-11-18  Paul Eggert  <eggert@twinsun.com>
81915
81916         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
81917         problem with the QNX 4.25 shell, which doesn't propagate exit
81918         status of failed commands inside shell assignments.
81919
81920 1999-11-17  Jim Meyering  <meyering@ascend.com>
81921
81922         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
81923
81924 1999-11-07  Jim Meyering  <meyering@ascend.com>
81925
81926         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
81927
81928 1999-11-06  Jim Meyering  <meyering@ascend.com>
81929
81930         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
81931         * m4/jm-macros.m4 (jm_MACROS): Use it here.
81932
81933 1999-11-05  Jim Meyering  <meyering@ascend.com>
81934
81935         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
81936         configure.in of textutils, fileutils, and sh-utils into this one
81937         (shared between those packages) file.
81938         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
81939         AC_STRUCT_ST_BLKSIZE.
81940
81941 1999-11-03  Jim Meyering  <meyering@ascend.com>
81942
81943         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
81944         of AC_CHECK_TYPE checks includes unistd.h.
81945         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
81946         Suggestion from Akim Demaille.
81947
81948 1999-10-30  Jim Meyering  <meyering@ascend.com>
81949
81950         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
81951         m4-quoted string.
81952         * m4/ls-mntd-fs.m4: Likewise.
81953         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
81954         * m4/jm-winsz1.m4: Likewise.
81955
81956         * m4/const.m4: Remove file, since the fix made it into the experimental
81957         version of autoconf.
81958         * m4/mktime.m4: Likewise.
81959
81960         * m4/check-type.m4: Remove file, now that the latest version of
81961         AC_CHECK_TYPE takes a third arg to specify additional #includes.
81962
81963         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
81964         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
81965         AC_CHECK_TYPE.
81966
81967 1999-10-04  Jim Meyering  <meyering@ascend.com>
81968
81969         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
81970
81971 1999-09-22  Paul Eggert  <eggert@twinsun.com>
81972
81973         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
81974         2.95.1 bug with HP-UX 10.20.
81975
81976 1999-09-17  Jim Meyering  <meyering@ascend.com>
81977
81978         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
81979         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
81980         due to missing strdup (against sh-utils-2.0).
81981
81982 1999-08-29  Jim Meyering  <meyering@ascend.com>
81983
81984         * m4/jm-macros.m4: Require jm_BISON.
81985         * m4/bison.m4: New file.
81986
81987 1999-08-17  Paul Eggert  <eggert@twinsun.com>
81988
81989         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
81990         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
81991
81992 1999-08-05  Jim Meyering  <meyering@ascend.com>
81993
81994         * m4/getline.m4: Rename test file from conftestdata to conftest.data
81995         to avoid conflicts with `conftest' on 8+3 filesystems.
81996         Suggestion from Eli Zaretskii.
81997
81998 1999-08-04  Jim Meyering  <meyering@ascend.com>
81999
82000         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
82001         fileutils and sh-utils (textutils's getline test was inadequate).
82002         (AM_FUNC_GETLINE): Run this test.
82003         (AC_CHECK_FUNCS): Check for getdelim.
82004         Reported by Bob Proulx.
82005
82006 1999-08-02  Jim Meyering  <meyering@ascend.com>
82007
82008         * m4/jm-macros.m4: Add a comment.
82009
82010 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82011
82012         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
82013         <inttypes.h> defines strtoumax as a macro (and not as a
82014         function).
82015
82016 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82017
82018         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
82019         that we can shift, multiply and divide unsigned long long
82020         values; Ultrix cc can't do it.
82021
82022 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82023
82024         * m4/mktime.m4: New file, which is a preview of what should appear
82025         in the next public autoconf release.
82026
82027 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82028
82029         * m4/lfs.m4: Remove this file.
82030         * m4/largefile.m4: New file.  It contains the old contents of
82031         lfs.m4, except that all names with prefix AC_LFS have been
82032         changed to use the prefix AC_SYS_LARGEFILE instead, to be
82033         compatible with future autoconf versions.  Also, some minor m4
82034         quoting problems have been fixed.
82035
82036 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82037
82038         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
82039         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
82040         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
82041         and simplify the shell code.
82042
82043 1999-08-01  Jim Meyering  <meyering@ascend.com>
82044
82045         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
82046         m4.
82047
82048 1999-07-20  Jim Meyering  <meyering@ascend.com>
82049
82050         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
82051
82052 1999-07-15  Jim Meyering  <meyering@ascend.com>
82053
82054         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
82055
82056 1999-05-22  Jim Meyering  <meyering@ascend.com>
82057
82058         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
82059
82060 1999-05-20  Jim Meyering  <meyering@ascend.com>
82061
82062         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
82063         Add a colon after each `then' in case $4 is empty.
82064
82065 1999-05-16  Jim Meyering  <meyering@ascend.com>
82066
82067         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
82068
82069 1999-05-10  Jim Meyering  <meyering@ascend.com>
82070
82071         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
82072
82073         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
82074         AC_FUNC_MKTIME.
82075
82076 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
82077
82078         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
82079
82080 1999-05-04  Paul Eggert  <eggert@twinsun.com>
82081
82082         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
82083         not CPPFLAGS, so that linking works correctly in IRIX.
82084
82085 1999-04-30  Paul Eggert  <eggert@twinsun.com>
82086
82087         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
82088
82089 1999-04-20  Paul Eggert  <eggert@twinsun.com>
82090
82091         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
82092         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
82093         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
82094         jm_AC_TYPE_UNSIGNED_LONG_LONG.
82095         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
82096
82097         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
82098
82099 1999-04-20  Jim Meyering  <meyering@ascend.com>
82100
82101         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
82102         AC_REPLACE xstroull if necessary.  From Paul Eggert.
82103         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
82104
82105 1999-04-18  Jim Meyering  <meyering@ascend.com>
82106
82107         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
82108         * m4/jm-macros.m4: Use it.
82109
82110 1999-04-06  Jim Meyering  <meyering@ascend.com>
82111
82112         * m4/strftime.m4: Remove test for %f.
82113
82114 1999-03-29  Jim Meyering  <meyering@ascend.com>
82115
82116         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
82117         superset of the AC_TYPE_* checks in the textutils, fileutils,
82118         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
82119         AC_TYPE_PID_T.
82120
82121 1999-03-28  Jim Meyering  <meyering@ascend.com>
82122
82123         * m4/jm-macros.m4: Define GNU_PACKAGE here.
82124         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
82125         replaced e.g., in the *.sh files of the sh-utils.
82126
82127 1999-03-20  Jim Meyering  <meyering@ascend.com>
82128
82129         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
82130         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
82131         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
82132
82133 1999-03-19  Jim Meyering  <meyering@ascend.com>
82134
82135         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
82136
82137 1999-03-12  Jim Meyering  <meyering@ascend.com>
82138
82139         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
82140
82141 1999-03-07  Jim Meyering  <meyering@ascend.com>
82142
82143         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
82144         declared.
82145
82146 1999-02-17  Jim Meyering  <meyering@ascend.com>
82147
82148         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
82149         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
82150
82151 1999-02-07  Jim Meyering  <meyering@ascend.com>
82152
82153         * m4/group-member.m4: New file -- extracted from sh-utils'
82154         configure.in.
82155
82156         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
82157         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
82158
82159 1999-02-06  Jim Meyering  <meyering@ascend.com>
82160
82161         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
82162         * m4/fnmatch.m4: Likewise.
82163         * m4/getgroups.m4: Likewise.
82164         * m4/lstat.m4: Likewise.
82165         * m4/malloc.m4: Likewise.
82166         * m4/putenv.m4: Likewise.
82167         * m4/realloc.m4: Likewise.
82168         * m4/regex.m4: Likewise.
82169         * m4/stat.m4: Likewise.
82170         * m4/strftime.m4: Likewise.
82171         Suggestion from Alain Magloire.
82172
82173         * m4/chown.m4: Use `.$ac_objext', not `.o'.
82174         * m4/fnmatch.m4: Likewise.
82175         * m4/getgroups.m4: Likewise.
82176         * m4/getline.m4: Likewise.
82177         * m4/lstat.m4: Likewise.
82178         * m4/malloc.m4: Likewise.
82179         * m4/memcmp.m4: Likewise.
82180         * m4/putenv.m4: Likewise.
82181         * m4/realloc.m4: Likewise.
82182         * m4/regex.m4: Likewise.
82183         * m4/stat.m4: Likewise.
82184         * m4/strftime.m4: Likewise.
82185         Suggestion from Alain Magloire.
82186
82187         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
82188         an argument.
82189
82190         * m4/regex.m4: Add a run-time Test for proper operation of
82191         re_compile_pattern.
82192
82193 1999-01-31  Jim Meyering  <meyering@ascend.com>
82194
82195         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
82196
82197 1999-01-30  Jim Meyering  <meyering@ascend.com>
82198
82199         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
82200
82201         * m4/jm-mktime.m4: Make this a wrapper around the official
82202         AM_FUNC_MKTIME rather than my private copy, now that the official one
82203         is up to date.
82204         * m4/mktime.m4: Remove file.
82205
82206         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
82207         * m4/uptime.m4: Likewise.
82208         * m4/uintmax_t.m4: Likewise.
82209
82210 1999-01-28  Jim Meyering  <meyering@ascend.com>
82211
82212         * m4/jm-macros.m4: Use jm_AFS.
82213         * m4/afs.m4: New file (from fileutils' configure.in).
82214
82215         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
82216         * m4/chown.m4: Likewise.
82217         * m4/d-ino.m4: Likewise.
82218         * m4/d-type.m4: Likewise.
82219         * m4/fnmatch.m4: Likewise.
82220         * m4/getgroups.m4: Likewise.
82221         * m4/gettext.m4: Likewise.
82222         * m4/jm-mktime.m4: Likewise.
82223         * m4/jm-winsz2.m4: Likewise.
82224         * m4/lcmessage.m4: Likewise.
82225         * m4/ls-mntd-fs.m4: Likewise.
82226         * m4/malloc.m4: Likewise.
82227         * m4/memcmp.m4: Likewise.
82228         * m4/putenv.m4: Likewise.
82229         * m4/realloc.m4: Likewise.
82230         * m4/st_mtim.m4: Likewise.
82231         * m4/strftime.m4: Likewise.
82232
82233 1999-01-16  Jim Meyering  <meyering@ascend.com>
82234
82235         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
82236         (ARGMATCH_DIE_DECL): Define.
82237
82238 1999-01-12  Jim Meyering  <meyering@ascend.com>
82239
82240         * m4/Makefile.am.in: Rewrite to avoid using fmt.
82241         Reported by Lars Hecking.
82242
82243 1999-01-10  Jim Meyering  <meyering@ascend.com>
82244
82245         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
82246         gross kludge.
82247         * m4/inttypes_h.m4: Likewise.
82248         * m4/lstat.m4: Likewise.
82249         * m4/malloc.m4: Likewise.
82250         * m4/readdir.m4: Likewise.
82251         * m4/realloc.m4: Likewise.
82252         * m4/st_dm_mode.m4: Likewise.
82253         * m4/stat.m4: Likewise.
82254         * m4/utimbuf.m4: Likewise.
82255         * m4/utimes.m4: Likewise.
82256
82257         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
82258         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
82259         comments in config.h.in are meaningful.
82260
82261         * m4/jm-macros.m4: Require autoconf-2.13 here.
82262
82263         * m4/regex.m4: By default, don't use the included regex.c on systems
82264         with glibc 2.  Suggestion from Uli Drepper.
82265
82266 1999-01-02  Jim Meyering  <meyering@ascend.com>
82267
82268         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
82269
82270 1998-12-18  Jim Meyering  <meyering@ascend.com>
82271
82272         * m4/Makefile.am.in (Makefile.am): Simplify rule.
82273         Based on a suggestion from Lars Hecking.
82274
82275 1998-11-16  Paul Eggert  <eggert@twinsun.com>
82276
82277         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
82278
82279 1998-11-16  Jim Meyering  <meyering@ascend.com>
82280
82281         * m4/lfs.m4: Double-quote the `uname...` expression.
82282
82283 1998-11-14  Jim Meyering  <meyering@ascend.com>
82284
82285         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
82286         * m4/stat.m4: Likewise.
82287
82288 1998-11-03  Jim Meyering  <meyering@ascend.com>
82289
82290         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
82291         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
82292
82293 1998-10-18  Jim Meyering  <meyering@ascend.com>
82294
82295         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
82296
82297 1998-10-17  Jim Meyering  <meyering@ascend.com>
82298
82299         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
82300         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
82301         calls for those previously hard-coded headers.  Instead, take a new
82302         parameter.
82303         (jm_CHECK_DECLARATIONS): Reflect interface change.
82304         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
82305         (jm_CHECK_DECL_LOCALTIME_R): New macro.
82306
82307         * m4/mktime.m4: Test for spring-forward gap before long-running test.
82308
82309 1998-10-14  Jim Meyering  <meyering@ascend.com>
82310
82311         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
82312         instead of "TZ=America/Vancouver".  From Paul Eggert.
82313
82314 1998-10-11  Jim Meyering  <meyering@ascend.com>
82315
82316         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
82317         This adds a test for a recently added compatibility fix for mktime.c.
82318         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
82319
82320 1998-09-27  Jim Meyering  <meyering@ascend.com>
82321
82322         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
82323
82324         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
82325         ../configure.in, including a change from Gordon Matzigkeit to allow
82326         cross-compiling for the Hurd.
82327
82328         * m4/glibc.m4: New file/macro to test for the GNU C Library
82329         versions 1 and 2.  From Gordon Matzigkeit.
82330         Indent.
82331
82332 1998-09-21  Jim Meyering  <meyering@ascend.com>
82333
82334         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
82335
82336 1998-08-18  Paul Eggert  <eggert@twinsun.com>
82337
82338         Port nanosecond-resolution times to UnixWare 2.1.2 and
82339         pedantic Solaris 2.6.
82340
82341         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
82342         AC_STRUCT_ST_MTIM.
82343         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
82344         Generate name of ns member, instead of just 1 or undef.
82345         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
82346
82347 1998-08-15  Jim Meyering  <meyering@ascend.com>
82348
82349         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
82350         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
82351         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
82352         instead of jm_TYPE_SSIZE_T.
82353
82354 1998-08-12  Jim Meyering  <meyering@ascend.com>
82355
82356         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
82357
82358 1998-08-02  Jim Meyering  <meyering@ascend.com>
82359
82360         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
82361         in acconfig.h manually.
82362
82363 1998-07-31  Paul Eggert  <eggert@twinsun.com>
82364
82365         * m4/st_mtim.m4: New file.
82366
82367 1998-07-28  Jim Meyering  <meyering@ascend.com>
82368
82369         * m4/utimes.m4: Undef stat.
82370
82371 1998-07-25  Jim Meyering  <meyering@ascend.com>
82372
82373         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
82374         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
82375
82376 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
82377
82378         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
82379         uid and gid actually remain unchanged.
82380
82381 1998-07-07  Jim Meyering  <meyering@ascend.com>
82382
82383         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
82384
82385 1998-07-04  Jim Meyering  <meyering@ascend.com>
82386
82387         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
82388         to prove that this macro can be used in packages without regex.c.
82389
82390 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
82391
82392         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
82393         is to be used.
82394
82395 1998-07-03  Jim Meyering  <meyering@ascend.com>
82396
82397         * m4/gettext.m4: Add -lintl if it's found to be necessary.
82398
82399         * m4/gettext.m4: New file -- from gettext-0.10.35.
82400         * m4/lcmessage.m4: Likewise.
82401         * m4/progtest.m4: Likewise.
82402
82403         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
82404         * m4/jm-macros.m4: Require the new macro.
82405
82406 1998-06-29  Jim Meyering  <meyering@ascend.com>
82407
82408         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
82409         for the definition of NGROUPS (used in a system header included
82410         by sys/mount.h).
82411
82412 1998-06-28  Jim Meyering  <meyering@ascend.com>
82413
82414         * m4/ls-mntd-fs.m4: New file.
82415         * m4/fstypename.m4: New file.
82416
82417         * m4/jm-macros.m4: Require the new macro.
82418         * m4/jm-glibc-io.m4: New file.
82419
82420 1998-05-19  Jim Meyering  <meyering@ascend.com>
82421
82422         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
82423         * m4/lchown.m4: New file.
82424
82425         * m4/Makefile.am.in: New file.
82426         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
82427
82428 1998-05-14  Jim Meyering  <meyering@ascend.com>
82429
82430         * m4/Makefile.am (EXTRA_DIST): Add them.
82431         * m4/jm-macros.m4: New file.
82432         * m4/utimbuf.m4: New file.
82433
82434 1998-05-12  Jim Meyering  <meyering@ascend.com>
82435
82436         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
82437
82438 1998-05-11  Jim Meyering  <meyering@ascend.com>
82439
82440         * m4/isc-posix.m4: New file.
82441
82442 1998-05-10  Jim Meyering  <meyering@ascend.com>
82443
82444         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
82445
82446 1998-05-09  Jim Meyering  <meyering@ascend.com>
82447
82448         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
82449         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
82450         with automake.
82451
82452         * m4/ssize_t.m4: New file.
82453         * m4/mktime.m4: Remove file -- the new automake has this now.
82454
82455 1998-04-26  Jim Meyering  <meyering@ascend.com>
82456
82457         * m4/assert.m4: New file.
82458         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
82459
82460 1998-04-05  Jim Meyering  <meyering@ascend.com>
82461
82462         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
82463         (jm_PREREQ): Use it here.
82464
82465 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
82466
82467         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
82468         in acconfig.h.
82469
82470 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
82471
82472         * m4/prereq.m4: New file.
82473         * m4/error.m4: New file.
82474         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
82475
82476 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
82477
82478         * m4/getline.m4: Don't set am_cv_func_working_getline before the
82479         cache-check for the same variable -- that defeated the purpose of
82480         the test; the test program was never run.  This was a problem only
82481         on systems with losing getline functions -- HP-UX 10.20 is one.
82482         Reported by Bjorn Helgaas.
82483
82484 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
82485
82486         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
82487
82488 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
82489
82490         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
82491
82492         * m4/const.m4: New file.  Use an initializer in this declaration
82493         typedef int charset[2]; const charset x;
82494         Reported by Bob Glickstein.
82495
82496 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
82497
82498         * m4/chown.m4: Fix reversed types on -1 args to chown.
82499         From Kaveh Ghazi.
82500
82501 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
82502
82503         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
82504         Add lseek and memchr.
82505
82506         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
82507         T.E.Dickey <dickey@clark.net> said that some older preprocessors
82508         have a 20-character limit on names.
82509
82510 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
82511
82512         * m4/inttypes_h.m4: New file.
82513         * m4/uintmax_t.m4: New file.
82514         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
82515
82516
82517         -----
82518
82519         Local Variables:
82520         coding: utf-8
82521         End:
82522
82523         Copyright (C) 1997-2011 Free Software Foundation, Inc.
82524
82525         Copying and distribution of this file, with or without
82526         modification, are permitted provided the copyright notice
82527         and this notice are preserved.